query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Does not modify bb
public static CharSequence asHexString( ByteBuffer bb ) { inputs.notNull( bb, "bb" ); ByteBuffer slice = bb.slice(); CharBuffer res = CharBuffer.allocate( slice.remaining() * 2 ); while ( slice.hasRemaining() ) { byte b = slice.get(); res.put( HEX_CHARS[ ( b >> 4 ) & 0x0f ] ); res.put( HEX_CHARS[ b & 0x0f ] ); } res.flip(); return res.asReadOnlyBuffer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public void mergeBlock(BasicBlock bb){\n this.tail.remove();\n if(bb.getParent().getExitBB() == bb){\n bb.getParent().setExitBB(this);\n }\n\n Instruction ptr = bb.getHead();\n while(ptr != null){\n if(ptr instanceof Phi){\n Instruction nct = ptr.getNxt();\n ((Phi) ptr).getRes().replaceUser(((Phi) ptr).getBranches().iterator().next().getFirst());\n ptr.remove();\n ptr = nct;\n } else {\n ptr.setBasicBlock(this);\n ptr.setPrev(tail);\n if(this.head == null)\n head = ptr;\n else tail.setNxt(ptr);\n\n tail = ptr;\n ptr = ptr.getNxt();\n }\n }\n\n for(BasicBlock succ: bb.getSuccessors()){\n this.successors.add(succ);\n succ.getPredecessorBB().add(this);\n }\n bb.setHead(null);\n bb.setTail(null);\n bb.replaceUser(this);\n bb.deleteItself();\n\n }", "public static BB transformbBB(Transform t, BB bb) {\n\t\tVector2f center = bb.getCenter();\n\t\tfloat hw = (bb.r - bb.l) * 0.5f;\n\t\tfloat hh = (bb.t - bb.b) * 0.5f;\n\n\t\tfloat a = t.a * hw, b = t.c * hh, d = t.b * hw, e = t.d * hh;\n\t\tfloat hw_max = cpfmax(cpfabs(a + b), cpfabs(a - b));\n\t\tfloat hh_max = cpfmax(cpfabs(d + e), cpfabs(d - e));\n\t\treturn BB.forExtents(t.transformPoint(center), hw_max, hh_max);\n\t}", "public void cases(BareBones bb, String str){\r\n\r\n if(str.indexOf(\"clear\") != -1){\r\n bb.clearParser(str);\r\n }\r\n else{\r\n if(str.indexOf(\"incr\") != -1){\r\n bb.incrParser(str);\r\n }\r\n else{\r\n if(str.indexOf(\"decr\") != -1){\r\n bb.decrParser(str);\r\n }\r\n }\r\n }\r\n }", "public bb b() {\n return a(this.a);\n }", "private static ByteBuffer fill(ByteBuffer bb) {\n final int limit = bb.limit();\n bb.limit(bb.capacity());\n for (int i=0;i<bb.capacity();i++) {\n bb.put(i,(byte)i);\n }\n bb.limit(limit);\n return bb;\n }", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "public abstract void b(StringBuilder sb);", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "BAnyBlock createBAnyBlock();", "public Arbol_BB( String raiz ) {\r\n this.raiz = ( raiz ); \r\n subABizq = null;\r\n subABder = null;\r\n }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "void writeBody(ByteBuf bb, TranscoderContext context) throws Exception;", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(']');\n }", "public Arbol_BB() {\r\n raiz = \"\";\r\n subABizq = null;\r\n subABder = null;\r\n }", "public MemBufferHolder(A ar, ByteBuffer bb) {\n\t\tsuper(bb, ar);\n\t}", "void readBody(ByteBuf bb, TranscoderContext context) throws Exception;", "public void setBbGuid(String bbGuid) {\r\n\t\tthis.bbGuid = bbGuid;\r\n\t}", "@Override\n\tpublic void visit(SendBlock sb) {\n\t\tSystem.out.println(\"SendBlock reću\");\n\t\tbyte[] body = sb.getBody();\n\t\tbyte[] indexB = new byte[4], beginB = new byte[4];\n\t\tTorrent torrent = ph.getTorrent();\n\t\tint index = 0, begin = 0;\n\t\tbyte[] block = new byte[sb.length - 9];\n\n\t\tindexB = Arrays.copyOfRange(body, 0, 4);\n\t\tindex = byteArrayToInt(indexB);\n\n\t\tbeginB = Arrays.copyOfRange(body, 4, 8);\n\t\tbegin = byteArrayToInt(beginB);\n\n\t\tblock = Arrays.copyOfRange(body, 8, body.length);\n\n\t\tPiece piece = torrent.getPieces().get(index);\n\t\tpiece.feed(begin, block);\n\t\tSystem.out.println(\"piece fed\");\n\t\tif (piece.getChecked()) {\n\t\t\tHave h = new Have(indexB);\n\t\t\tthis.ph.addMessageQueue(h);\n\t\t\tSystem.out.println(\"have envoye, block bien reću\");\n\t\t}\n\t}", "public void m21425b(as asVar, bc bcVar) throws bv {\n int i = 0;\n asVar = (ax) asVar;\n ar arVar = new ar(Ascii.VT, Ascii.FF, asVar.mo7199s());\n bcVar.f18795a = new HashMap(arVar.f18601c * 2);\n for (int i2 = 0; i2 < arVar.f18601c; i2++) {\n String v = asVar.mo7202v();\n bb bbVar = new bb();\n bbVar.mo7211a(asVar);\n bcVar.f18795a.put(v, bbVar);\n }\n bcVar.m21448a(true);\n BitSet b = asVar.mo7205b(2);\n if (b.get(0)) {\n aq aqVar = new aq(Ascii.FF, asVar.mo7199s());\n bcVar.f18796b = new ArrayList(aqVar.f18598b);\n while (i < aqVar.f18598b) {\n ba baVar = new ba();\n baVar.mo7211a(asVar);\n bcVar.f18796b.add(baVar);\n i++;\n }\n bcVar.m21452b(true);\n }\n if (b.get(1)) {\n bcVar.f18797c = asVar.mo7202v();\n bcVar.m21454c(true);\n }\n }", "protected abstract MS_LineBuilder prepareContent(MS_LineBuilder lb);", "public final synchronized CharBuffer decode(ByteBuffer bb) {\n\t\ttry {\n\t\t\tif (cachedDecoder == null) {\n\t\t\t\tcachedDecoder = newDecoder().onMalformedInput(\n\t\t\t\t\t\tCodingErrorAction.REPLACE).onUnmappableCharacter(\n\t\t\t\t\t\tCodingErrorAction.REPLACE);\n\t\t\t} else\n\t\t\t\tcachedDecoder.reset();\n\n\t\t\treturn cachedDecoder.decode(bb);\n\t\t} catch (CharacterCodingException e) {\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}", "protected cxl a(Block parambec)\r\n/* 11: */ {\r\n/* 12:237 */ LinkedHashMap localLinkedHashMap = Maps.newLinkedHashMap(parambec.b());\r\n/* 13: */ \r\n/* 14:239 */ String str1 = bbf.M.toString((Comparable)localLinkedHashMap.remove(bbf.M));\r\n/* 15:240 */ localLinkedHashMap.remove(bbf.b);\r\n/* 16: */ \r\n/* 17:242 */ String str2 = ((Boolean)parambec.getData(bbf.b)).booleanValue() ? \"all\" : \"normal\";\r\n/* 18:243 */ return new cxl(str1 + \"_double_slab\", str2);\r\n/* 19: */ }", "@Override\n\tvoid parseBranch(int index, boolean branched) {\n\t\t\n\t}", "public ByteBuffer buffer() { return bb; }", "private static void registerBlock(Block b)\n\t{\n\t}", "public void queueMessage(ByteBuffer bb) {\n\t\tqueue.add(bb);\n\t\tprocessOut();\n\t\tupdateInterestOps();\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(bb(\"{{}\"));\n\t\tSystem.out.println(bb(\"[[]\"));\n\t\tSystem.out.println(bb(\"({}[])\"));\n\t}", "static void perform_sbb(String passed){\n\t\tint type = type_of_sbb(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tsbb_with_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tsbb_with_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public /* synthetic */ void mo7209b(as asVar, bp bpVar) throws bv {\n m21417a(asVar, (bc) bpVar);\n }", "static void tick(Block b) {\n int[] pos = b.pos;\n char[][] piece = b.piece;\n if (canPlace(pos[0] + 1, pos[1], piece)) {\n pos[0]++;\n }\n else\n place(pos[0], pos[1], piece);\n }", "BOp createBOp();", "static void hardDrop(Block b) {\n int[] pos = b.pos;\n char[][] piece = b.piece;\n\n while (canPlace(pos[0] + 1, pos[1], piece))\n pos[0]++;\n\n place(pos[0], pos[1], piece);\n }", "public void toBuffer(ByteBufWrapper paramhd)\r\n/* 23: */ {\r\n/* 24:40 */ paramhd.a(a.toJson(this.b));\r\n/* 25: */ }", "public void m21419b(as asVar, bc bcVar) throws bv {\n bcVar.m21466o();\n asVar.mo7181a(bc.f18790e);\n if (bcVar.f18795a != null) {\n asVar.mo7178a(bc.f18791f);\n asVar.mo7180a(new ar(Ascii.VT, Ascii.FF, bcVar.f18795a.size()));\n for (Entry entry : bcVar.f18795a.entrySet()) {\n asVar.mo7176a((String) entry.getKey());\n ((bb) entry.getValue()).mo7214b(asVar);\n }\n asVar.mo7184d();\n asVar.mo7182b();\n }\n if (bcVar.f18796b != null && bcVar.m21462k()) {\n asVar.mo7178a(bc.f18792g);\n asVar.mo7179a(new aq(Ascii.FF, bcVar.f18796b.size()));\n for (ba b : bcVar.f18796b) {\n b.mo7214b(asVar);\n }\n asVar.mo7185e();\n asVar.mo7182b();\n }\n if (bcVar.f18797c != null && bcVar.m21465n()) {\n asVar.mo7178a(bc.f18793h);\n asVar.mo7176a(bcVar.f18797c);\n asVar.mo7182b();\n }\n asVar.mo7183c();\n asVar.mo7173a();\n }", "BranchingBlock createBranchingBlock();", "public void b(StringBuilder sb) {\n throw new AssertionError();\n }", "public void queueMessage(ByteBuffer bb) {\n queue.add(bb);\n processOut();\n updateInterestOps();\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void mo2508a(bxb bxb);", "public final /* synthetic */ void zzy() {\n zzbu zzw = zzw();\n if (zzw != null) {\n this.zzbb.add(zzw);\n }\n }", "public void applyBrake() {\n\t\t\r\n\t}", "@Override\n\tpublic void b() {\n\n\t}", "private final zzgy zzgb() {\n }", "static void sbb_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tmult%=256;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "@Override\n public void b() {\n }", "public final JCBasicBlock bb2() throws RecognitionException {\n JCBasicBlock basicBlock = null;\n\n\n Token ID12=null;\n Token INT13=null;\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:854:39: ( OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:856:1: OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS\n {\n match(input,OPEN_PARENTHESIS,FOLLOW_OPEN_PARENTHESIS_in_bb2970); \n\n ID12=(Token)match(input,ID,FOLLOW_ID_in_bb2972); \n\n match(input,COMMA,FOLLOW_COMMA_in_bb2974); \n\n INT13=(Token)match(input,INT,FOLLOW_INT_in_bb2976); \n\n match(input,CLOSE_PARENTHESIS,FOLLOW_CLOSE_PARENTHESIS_in_bb2978); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: bb2 : (ID,INT) = (\" + (ID12!=null?ID12.getText():null) + \",\" + (INT13!=null?INT13.getText():null) + \")\");\n }\n int bbWCET = Integer.parseInt((INT13!=null?INT13.getText():null));\n basicBlock = problem.accessBasicBlock((ID12!=null?ID12.getText():null), bbWCET);\t\t\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 basicBlock;\n }", "public void b(bq nbttagcompound)\r\n/* 250: */ {\r\n/* 251:204 */ super.b(nbttagcompound);\r\n/* 252: */ \r\n/* 253:206 */ nbttagcompound.a(\"cvm\", this.CoverSides);\r\n/* 254:207 */ byte[] cov = new byte[Integer.bitCount(this.CoverSides) * 2];\r\n/* 255:208 */ int dp = 0;\r\n/* 256:209 */ for (int i = 0; i < 6; i++) {\r\n/* 257:210 */ if ((this.CoverSides & 1 << i) != 0)\r\n/* 258: */ {\r\n/* 259:211 */ cov[dp] = ((byte)(this.Covers[i] & 0xFF));\r\n/* 260:212 */ cov[(dp + 1)] = ((byte)(this.Covers[i] >> 8));\r\n/* 261:213 */ dp += 2;\r\n/* 262: */ }\r\n/* 263: */ }\r\n/* 264:215 */ nbttagcompound.a(\"cvs\", cov);\r\n/* 265: */ }", "public void baocun() {\n\t\t\n\t}", "public void visit(SendBlock sb);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b) {\n\t\treturn null;\r\n\t}", "protected abstract void a(bru parambru);", "public abstract void outputComplementBmp(FastStringBuffer buf);", "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "static void sbb_with_mem(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "public Number[] parse(ByteBuffer bb) {\r\n return formatter.parse(bb);\r\n }", "public void cleanMapFile1(final ByteBuffer bb) {\n\t\tSystem.gc();\n\t}", "@Override\n\tpublic void createBanque(Banque b) {\n\t\t\n\t}", "@Override\r\n\tpublic void visit(ParkB parkB) {\n\t\t\r\n\t}", "public String updateProductionBlock(ProductionBlock pb);", "@Override\n\tpublic String toString() {\n\t\treturn \"BB[\" + origin.getX0() + \",\" + origin.getY0() + \",\"\n\t\t\t\t+ this.width + \",\" + this.height + \"]\";\n\t}", "void bc(String message);", "private C_TidyBag(Builder builder) {\n super(builder);\n }", "public void ballVSbrick(Ball bb, Brick br) {\n Rectangle bb_box = new Rectangle(bb.getX(), bb.getY(), bb.getWidth(), bb.getHeight());\r\n Rectangle br_box = new Rectangle(br.getX(), br.getY(), br.getWidth(), br.getHeight());\r\n\r\n if (bb_box.intersects(br_box)) {\r\n //collision\r\n if (bb.getVX() < 0 && bb.getVY() < 0) {//-x,-y\r\n bb.setVY(bb.getVY() * -1);\r\n //remove brick\r\n //totalBricks.get(i)\r\n }//Inconsistent with collision\r\n else if (bb.getVX() > 0 && (bb.getVY() > 0)) {//+x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//works\r\n else if (bb.getVX() < 0 && (bb.getVY() > 0)) {//-x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//also inconsistent with collision\r\n else if(bb.getVX()>0 && bb.getVY()<0){//+x,-y\r\n bb.setVY(bb.getVY()*-1);\r\n }\r\n }\r\n if (totalBricks.isEmpty()) {\r\n this.setCleared(true);\r\n }\r\n //when the ball hits a brick\r\n //remove the brick\r\n //update velocity of ball\r\n\r\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public Block(Block bl) {\r\n\t\tthis.type = bl.type;\r\n\t\tthis.point_BlockTopRight = new Point3D(bl.point_BlockTopRight);\r\n\t\tthis.point_BlockDownleft = new Point3D(bl.point_BlockDownleft);\r\n\t\tthis.setpoint_BlockTopLeft(new Point3D(bl.getpoint_BlockTopRight().y(),bl.getpoint_BlockDownleft().x()));\r\n\t\tthis.setPoint_BlockDownRight(new Point3D(bl.getpoint_BlockDownleft().y(),bl.getpoint_BlockTopRight().x()));\r\n\t\tthis.IDBloack = bl.IDBloack;\r\n\r\n\t}", "@Test\n public void testAddCase2b()\n {\n RedBlackTree<Integer> tree = new RedBlackTree<Integer>();\n tree.add(1);\n tree.add(2);\n assert(\"[b:1]\\n[r:2]\\n\".equals(tree.toString()));\n }", "public final JCBasicBlock bb() throws RecognitionException {\n JCBasicBlock basicBlock = null;\n\n\n Token ID7=null;\n Token INT8=null;\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:504:38: ( OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:506:1: OPEN_PARENTHESIS ID COMMA INT CLOSE_PARENTHESIS\n {\n match(input,OPEN_PARENTHESIS,FOLLOW_OPEN_PARENTHESIS_in_bb535); \n\n ID7=(Token)match(input,ID,FOLLOW_ID_in_bb537); \n\n match(input,COMMA,FOLLOW_COMMA_in_bb539); \n\n INT8=(Token)match(input,INT,FOLLOW_INT_in_bb541); \n\n match(input,CLOSE_PARENTHESIS,FOLLOW_CLOSE_PARENTHESIS_in_bb543); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: bb : (ID,INT) = (\" + (ID7!=null?ID7.getText():null) + \",\" + (INT8!=null?INT8.getText():null) + \")\");\n }\n int bbWCET = Integer.parseInt((INT8!=null?INT8.getText():null));\n basicBlock = problem.createBasicBlock((ID7!=null?ID7.getText():null), bbWCET);\t\t\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 basicBlock;\n }", "public abstract void zzc(B b, int i, int i2);", "zzbe(zzbc zzbc, Handler handler) {\n super((Handler) null);\n this.zzcp = zzbc;\n }", "void appendBreakInfo(StringBuilder sb) throws NotConnectedException\t{ Extensions.appendBreakInfo(this, sb, false);\t}", "@Override\r\n\tpublic Node visitBlock(BlockContext ctx) {\n\t\treturn super.visitBlock(ctx);\r\n\t}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public void b(ahd paramahd) {}", "public MyStringBuilder2 append(MyStringBuilder2 b)\n\t{\n\t\tString str = b.toString();\n\t\t\n\t\tif(length == 0 && str != null) {\n\t\t\tCNode newNode = new CNode(str.charAt(0));\n\t\t\tfirstC = newNode;\n\t\t\tlastC = newNode;\n\t\t\tlength++;\n\t\t\trecursiveAppendString(str, 1);\n\t\t} else {\n\t\t\trecursiveAppendString(str, 0);\n\t\t}\n\t\t\n\t\tappend(str);\n\t\treturn this;\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void setBB(AxisAlignedBB axis) {\n\t\tthis.minX = axis.minX;\n\t\tthis.minY = axis.minY;\n\t\tthis.minZ = axis.minZ;\n\t\tthis.maxX = axis.maxX;\n\t\tthis.maxY = axis.maxY;\n\t\tthis.maxZ = axis.maxZ;\n\t}", "public abstract void appendBlock();", "@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b, int offset, int len) {\n\t\treturn null;\r\n\t}", "public SwiftPattern getBbanPattern() {\n return bbanPattern;\n }", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "@ReflectiveMethod(name = \"b\", types = {NMSNBTTagCompound.class})\n public void b(NMSNBTTagCompound nBTTagCompound){\n NMSWrapper.getInstance().exec(nmsObject, nBTTagCompound);\n }", "private BBlock makeEdge(Stmt pstmt, BBlock pblock) {\n //##53 Stmt nextStmt;\n\n // Fukuda 2005.07.07\n Stmt nextStmt;\n // Fukuda 2005.07.07\n Stmt nextStmt1;\n LabeledStmt lastStmt;\n Label l;\n IfStmt stmtIF;\n LoopStmt stmtLOOP;\n SwitchStmt stmtSWITCH;\n Stmt loopInitPart; //##53\n BBlock loopInitBlock; //##53\n BBlock currBlock;\n BBlock thenBlock;\n BBlock elseBlock;\n BBlock LabelBlock;\n BBlock bodyBlock;\n BBlock stepBlock;\n BBlock loopbackBlock;\n BBlock CondInitBlock;\n BBlock endBlock;\n BBlock defaultBlock;\n BBlock switchBlock;\n LabelBlock = null;\n BBlock lLoopStepBlock; //##70\n\n int lop;\n nextStmt = pstmt;\n currBlock = pblock;\n lGlobalNextStmt = nextStmt; //##70\n\n flow.dbg(5, \"\\nmakeEdge\", \"to stmt= \" + pstmt + \" from B\" + pblock); //##53\n\n while (nextStmt != null) {\n lop = nextStmt.getOperator();\n flow.dbg(5, \"\\nMakeEdge\", \"nextStmt = \" + nextStmt +\n \" nextToNext \" + ioRoot.toStringObject(nextStmt.getNextStmt())\n + \" lGlobalNextStmt \" + lGlobalNextStmt); //##53 //##70\n\n switch (lop) {\n case HIR.OP_IF:\n stmtIF = (IfStmt) nextStmt;\n thenBlock = makeEdge(stmtIF.getThenPart(), currBlock);\n elseBlock = makeEdge(stmtIF.getElsePart(), currBlock);\n LabelBlock = (BBlock) fResults.getBBlockForLabel(stmtIF.getEndLabel());\n\n //\t\t\t\tLabelBlock =stmtIF.getEndLabel().getBBlock();\n addEdge(thenBlock, LabelBlock);\n addEdge(elseBlock, LabelBlock);\n //##53 currBlock = LabelBlock;\n //##53 nextStmt = nextStmt.getNextStmt();\n //##53 BEGIN\n LabeledStmt lIfEnd = (LabeledStmt)stmtIF.getChild(4);\n flow.dbg(6, \" \", \"if-end \" + lIfEnd.toStringShort());\n if (lIfEnd.getStmt() != null)\n currBlock = makeEdge(lIfEnd.getStmt(), LabelBlock);\n else\n currBlock = LabelBlock;\n nextStmt = getNextStmtSeeingAncestor(stmtIF);\n flow.dbg(6, \" next-of-if \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n //##53 END\n\n break;\n\n case HIR.OP_LABELED_STMT:\n LabelBlock = (BBlock) fResults.getBBlockForLabel(((LabeledStmt) nextStmt).getLabel());\n addEdge(currBlock, LabelBlock);\n currBlock = LabelBlock;\n nextStmt1 = ((LabeledStmt) nextStmt).getStmt();\n\n if (nextStmt1 == null) {\n //##53 nextStmt = nextStmt.getNextStmt();\n nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n flow.dbg(6, \" next-of-labeledSt \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n } else {\n nextStmt = nextStmt1;\n }\n lGlobalNextStmt = nextStmt; //##70\n\n break;\n\n case HIR.OP_SWITCH:\n\n int CaseCount;\n stmtSWITCH = (SwitchStmt) nextStmt;\n CaseCount = stmtSWITCH.getCaseCount();\n\n for (int i = 0; i < CaseCount; i++) {\n //\t\t\t\t\tLabelBlock=stmtSWITCH.getCaseLabel(i).getBBlock();\n LabelBlock = (BBlock) fResults.getBBlockForLabel(stmtSWITCH.getCaseLabel(\n i));\n addEdge(currBlock, LabelBlock);\n }\n\n //\t\t\t\tLabelBlock=stmtSWITCH.getDefaultLabel().getBBlock();\n defaultBlock = (BBlock) fResults.getBBlockForLabel(stmtSWITCH.getDefaultLabel());\n endBlock = (BBlock) fResults.getBBlockForLabel(stmtSWITCH.getEndLabel());\n if (defaultBlock == null)\n addEdge(currBlock, endBlock);\n else\n addEdge(currBlock, defaultBlock);\n bodyBlock = makeEdge(stmtSWITCH.getBodyStmt(), currBlock);\n\n //\t\t\t\tendBlock=stmtSWITCH.getEndLabel().getBBlock();\n addEdge(bodyBlock, endBlock);\n //##53 currBlock = endBlock;\n //##53 nextStmt = nextStmt.getNextStmt();\n //##53 BEGIN\n LabeledStmt lSwitchEnd = (LabeledStmt)stmtSWITCH.getChild(4);\n flow.dbg(6, \" \", \"switch-end \" + lSwitchEnd.toStringShort());\n if (lSwitchEnd.getStmt() != null)\n currBlock = makeEdge(lSwitchEnd.getStmt(), endBlock);\n else\n currBlock = endBlock;\n nextStmt = getNextStmtSeeingAncestor(stmtSWITCH);\n flow.dbg(6, \" next-of-switch \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n //##53 END\n\n break;\n\n case HIR.OP_WHILE:\n case HIR.OP_FOR:\n case HIR.OP_INDEXED_LOOP:\n case HIR.OP_UNTIL:\n stmtLOOP = (LoopStmt) nextStmt;\n l = stmtLOOP.getLoopBackLabel();\n\n //\t\t\t\tloopbackBlock = (BBlock)fResults.getBBlockForLabel( l);\n loopbackBlock = (BBlock) fResults.getBBlockForLabel(l);\n lLoopStepBlock = (BBlock) fResults.getBBlockForLabel(stmtLOOP.getLoopStepLabel()); //##70\n //\t\t\t\tendBlock = stmtLOOP.getLoopEndLabel().getBBlock();\n endBlock = (BBlock) fResults.getBBlockForLabel(stmtLOOP.getLoopEndLabel());\n flow.dbg(6, \"Loop\", \"backBlock \" + loopbackBlock + \" stepLabel \" +\n stmtLOOP.getLoopStepLabel() + \" stepBlock \" +\n lLoopStepBlock + \" endBlock \" + endBlock); //##70\n /* //##53\n CondInitBlock = makeEdge(stmtLOOP.getConditionalInitPart(),\n currBlock);\n\n if (CondInitBlock == currBlock) {\n addEdge(currBlock, loopbackBlock);\n bodyBlock = makeEdge(stmtLOOP.getLoopBodyPart(),\n loopbackBlock);\n\n //\t\t\t\t\t\tcurrBlock.getSuccEdge(loopbackBlock).flagBox().setFlag(Edge.LOOP_BACK_EDGE, true); //## Tan //##9\n } else {\n bodyBlock = makeEdge(stmtLOOP.getLoopBodyPart(),\n CondInitBlock);\n addEdge(CondInitBlock, endBlock);\n }\n */ //##53\n //##53 BEGIN\n loopInitPart = stmtLOOP.getLoopInitPart();\n // loopInitPart may contain jump-to-loopBodyPart to implement\n // conditional initiation.\n // Make edge from currBlock to LoopInitPart.\n flow.dbg(6, \" make-edge to loop-init part from \" + currBlock ); //##70\n loopInitBlock = makeEdge(loopInitPart, currBlock);\n // How about loopInitBlock to loopBackBlock ?\n // Add edge from currBlock to loopBackBlock ?\n flow.dbg(6, \" add-edge to loop-back block from \" + currBlock + \" initBlock \" + loopInitBlock); //##70\n addEdge(currBlock, loopbackBlock);\n // Make edge from loopbackBlock to loop-body part.\n flow.dbg(6, \" make-edge to loop-body part from loop-back block \" + loopbackBlock ); //##70\n bodyBlock = makeEdge(stmtLOOP.getLoopBodyPart(),\n loopbackBlock);\n //##53 END\n l = stmtLOOP.getLoopStepLabel();\n\n if (l != null) {\n stepBlock = (BBlock) fResults.getBBlockForLabel(l);\n\n //\t\t\t\t\t\taddEdge(bodyBlock,stepBlock);\n if (stepBlock != null) {\n // How about from bodyBlock to stepBlock ?\n // The label of step block is attached at the end of body block.\n if (bodyBlock != stepBlock) {\n flow.dbg(5, \" add edge\", \"from loop-body part \" + bodyBlock\n + \" to stepBlock \" + stepBlock); //##70\n addEdge(bodyBlock, stepBlock);\n }\n // Make edge from stepBlock to loopbackBlock.\n flow.dbg(5, \" add edge\", \"from loop-step block \" + stepBlock\n + \" to loop-back block \" + loopbackBlock); //##70\n addEdge(stepBlock, loopbackBlock);\n stepBlock.getSuccEdge(loopbackBlock).flagBox().setFlag(Edge.LOOP_BACK_EDGE,\n true); //## Tan //##9\n // Make edge from stepBlock to loop-step part.\n flow.dbg(5, \" make-edge to loop-step part from stepBlock \" + stepBlock); //##70\n BBlock lStepBlock2 = makeEdge(stmtLOOP.getLoopStepPart(),\n stepBlock); //##53\n } else {\n flow.dbg(4, \" stepBlock of \" + stmtLOOP + \" is null\"); //##70\n if (bodyBlock != null) { // no step part (or merged with the body)\n // Add edge from bodyBlock to loopbackBlock.\n flow.dbg(5, \" add edge from bodyBlock \" + bodyBlock + \" to loop-back block \" + loopbackBlock); //##70\n addEdge(bodyBlock, loopbackBlock);\n bodyBlock.getSuccEdge(loopbackBlock).flagBox().setFlag(Edge.\n LOOP_BACK_EDGE,\n true); //## Tan //##9\n }\n else {\n //System.out.println(\"Returned or Jumped\");//\n }\n }\n\n if (stmtLOOP.getLoopEndCondition() == (Exp) null) {\n // Add edge from loopbackBlock to endBlock.\n addEdge(loopbackBlock, endBlock);\n } else if (stepBlock != null) {\n // End condition is not null.\n // Add edge from stepBlock to endBlock.\n // How about stepBlock to end-condition part ?\n addEdge(stepBlock, endBlock);\n } else {\n // End condition is not null and\n // stepBlock is null.\n // Add edge from bodyBlock to endBlock.\n // How about bodyBlock to end-condition block ?\n addEdge(bodyBlock, endBlock);\n }\n } else {\n // No loop-step label.\n // Add edge from bodyBlock to loopbackBlock.\n addEdge(bodyBlock, loopbackBlock);\n // Add edge from loopbackBlock to endBlock.\n addEdge(loopbackBlock, endBlock);\n }\n\n //##53 currBlock = endBlock;\n //##53 nextStmt = nextStmt.getNextStmt();\n //##53 BEGIN\n LabeledStmt lLoopEnd = (LabeledStmt)stmtLOOP.getChild(7);\n flow.dbg(6, \" \", \"loop-end \" + lLoopEnd.toStringShort());\n if (lLoopEnd.getStmt() != null) {\n currBlock = makeEdge(lLoopEnd.getStmt(), endBlock);\n }else\n currBlock = endBlock;\n flow.dbg(5, \" get next statement\", \"of loop \" + stmtLOOP.toStringShort());\n nextStmt = getNextStmtSeeingAncestor(stmtLOOP);\n flow.dbg(6, \" next-of-loop \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n //##53 END\n\n break;\n\n case HIR.OP_RETURN:\n currBlock = null;\n //##53 nextStmt = nextStmt.getNextStmt();\n nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n flow.dbg(6, \" next-of-return \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n break;\n\n case HIR.OP_JUMP:\n l = ((JumpStmt) nextStmt).getLabel();\n LabelBlock = (BBlock) fResults.getBBlockForLabel(l);\n addEdge(currBlock, LabelBlock);\n currBlock = null;\n //##53 nextStmt = nextStmt.getNextStmt();\n nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n flow.dbg(6, \" next-of-jump \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n break;\n\n case HIR.OP_BLOCK:\n currBlock = makeEdge(((BlockStmt) nextStmt).getFirstStmt(),\n currBlock); //## Fukuda 020322\n //##53 nextStmt = ((BlockStmt) nextStmt).getNextStmt(); //## Fukuda 020322\n //global nextStmt ??\n //##70 nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n nextStmt = getNextStmtSeeingAncestor(lGlobalNextStmt); //##70\n flow.dbg(6, \" next-of-block \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n break;\n\n default:\n // Non-control statement.\n //##53 nextStmt = nextStmt.getNextStmt();\n nextStmt = getNextStmtSeeingAncestor(nextStmt); //##53\n flow.dbg(6, \" next-of-default \" + nextStmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n lGlobalNextStmt = nextStmt; //##70\n }\n } // end of while\n flow.dbg(5, \" return \" + currBlock + \" for \" + pstmt+ \" lGlobalNextStmt \" + lGlobalNextStmt); //##70\n return currBlock;\n }", "public final void lb() throws RecognitionException {\n JCBasicBlock lbb =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:261:4: (lbb= bb (rb= lb )? )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:261:6: lbb= bb (rb= lb )?\n {\n pushFollow(FOLLOW_bb_in_lb271);\n lbb=bb();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: lb: lbb=bb\");\n }\n problem.addBasicBlockToLinearSection(lbb);\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:270:2: (rb= lb )?\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( (LA9_0==OPEN_PARENTHESIS) ) {\n alt9=1;\n }\n switch (alt9) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:270:2: rb= lb\n {\n pushFollow(FOLLOW_lb_in_lb279);\n lb();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: lb: (rb=lb)?\");\n }\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 ;\n }", "public static bcm a(Block parambec, EnumDirection paramej, boolean paramBoolean1, boolean paramBoolean2)\r\n/* 22: */ {\r\n/* 23: 42 */ return new bdv(parambec, paramej, paramBoolean1, paramBoolean2);\r\n/* 24: */ }", "public final /* synthetic */ void zzx() {\n zzbu zzw = zzw();\n if (zzw != null) {\n this.zzbb.add(zzw);\n }\n }", "public void a(bq nbttagcompound)\r\n/* 226: */ {\r\n/* 227:184 */ super.a(nbttagcompound);\r\n/* 228: */ \r\n/* 229: */ \r\n/* 230: */ \r\n/* 231:188 */ int cs2 = nbttagcompound.e(\"cvm\") & 0x3F;\r\n/* 232:189 */ this.CoverSides |= cs2;\r\n/* 233:190 */ byte[] cov = nbttagcompound.j(\"cvs\");\r\n/* 234:191 */ if ((cov != null) && (cs2 > 0))\r\n/* 235: */ {\r\n/* 236:192 */ int sp = 0;\r\n/* 237:193 */ for (int i = 0; i < 6; i++) {\r\n/* 238:194 */ if ((cs2 & 1 << i) != 0)\r\n/* 239: */ {\r\n/* 240:195 */ this.Covers[i] = ((short)((cov[sp] & 0xFF) + ((cov[(sp + 1)] & 0xFF) << 8)));\r\n/* 241: */ \r\n/* 242:197 */ sp += 2;\r\n/* 243: */ }\r\n/* 244: */ }\r\n/* 245: */ }\r\n/* 246:200 */ rebuildSticky();\r\n/* 247: */ }", "public abstract void zzb(B b, int i, long j);", "private static Block registerBlockWithoutItem(String MODID, String name, Block b){\n return Registry.register(Registry.BLOCK, MODID+\":\"+name, b);\n }", "public final void lb2() throws RecognitionException {\n JCBasicBlock lbb2 =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:624:5: (lbb2= bb2 (rb2= lb2 )? )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:624:7: lbb2= bb2 (rb2= lb2 )?\n {\n pushFollow(FOLLOW_bb2_in_lb2706);\n lbb2=bb2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: lb2: lbb2=bb2\");\n }\n\n\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:632:2: (rb2= lb2 )?\n int alt16=2;\n int LA16_0 = input.LA(1);\n\n if ( (LA16_0==OPEN_PARENTHESIS) ) {\n alt16=1;\n }\n switch (alt16) {\n case 1 :\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:632:2: rb2= lb2\n {\n pushFollow(FOLLOW_lb2_in_lb2714);\n lb2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: lb2: (rb2=lb2)?\");\n }\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 ;\n }", "public void free(Block b) {\n if(b.length <= 0) return;\n\n if (b.start + b.length > limit) limit = b.start + b.length; // grows with free\n\n // query adjacent blocks\n Block prev = freeSpace.floor(b);\n Block next = freeSpace.higher(b);\n\n if (prev != null && prev.start + prev.length > b.start) {\n throw new RuntimeException(\"Corrupted. DEBUG PRV \" + prev.start + \"+\" + prev.length + \">\" + b.start);\n }\n if (next != null && next.start < b.start + b.length) {\n throw new RuntimeException(\"Corrupted. DEBUG NEX \" + next.start + \"<\" + b.start + \"+\" + b.length);\n }\n\n // merge them if possible\n \n Block n = Block.mergeBlocks(b, prev);\n if(n != null) { freeSpace.remove(prev); b = n; }\n\n n = Block.mergeBlocks(b, next);\n if(n != null) { freeSpace.remove(next); b = n; }\n\n freeSpace.add(b);\n }", "public CommentHeader(BaseBlock bb, byte[] commentHeader) {\r\n super(bb);\r\n\r\n int pos = 0;\r\n// unpSize = Raw.readShortLittleEndian(commentHeader, pos);\r\n pos += 2;\r\n unpVersion |= commentHeader[pos] & 0xff;\r\n pos++;\r\n\r\n unpMethod |= commentHeader[pos] & 0xff;\r\n pos++;\r\n// commCRC = Raw.readShortLittleEndian(commentHeader, pos);\r\n\r\n }", "private void join (Block b) {\n\t\tArrayList<Block> neighbors = getAdj(b); // All of the neighbors.\n\t\tfor (Block neighbor: neighbors) { // Iterates through all of the neighbors.\n\t\t\tif (neighbor.t == ' ') { // Important, checks if the neighbor is a wall or not.\n\t\t\t\tfor (Block member: neighbor.tree) {\n\t\t\t\t\tb.tree.add(member);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Block member : b.tree) { // Iterates through all of the members of the tree.\n\t\t\tif (member.t == ' ') member.tree = b.tree; // Sets the trees of the members to the shared tree. \n\t\t}\n\t\tb.t = ' ';\n\t}", "public void b()\r\n/* 16: */ {\r\n/* 17:15 */ super.b();\r\n/* 18: */ \r\n/* 19:17 */ this.n.add(new bug(0, this.l / 2 - 100, 140, cwc.a(\"gui.cancel\", new Object[0])));\r\n/* 20: */ }", "private void fixInnerParent(BaleElement be)\n{\n BaleAstNode sn = getAstChild(be);\n while (cur_parent != cur_line && sn == null) {\n cur_parent = cur_parent.getBaleParent();\n cur_ast = cur_parent.getAstNode();\n sn = getAstChild(be);\n }\n\n // now see if there are any internal elements that should be used\n while (sn != null && sn != cur_ast && sn.getLineLength() == 0) {\n BaleElement.Branch nbe = createInnerBranch(sn);\n if (nbe == null) break;\n addElementNode(nbe,0);\n nbe.setAstNode(sn);\n cur_parent = nbe;\n cur_ast = sn;\n sn = getAstChild(be);\n }\n}", "BElementStructure createBElementStructure();", "protected Pair<JilExpr,List<JilStmt>> doStringConcat(Expr.BinOp bop){\n \t\tString builderLab = \"$builder\" + stringbuilder_label++;\r\n \t\tPair<JilExpr,List<JilStmt>> lhs = doExpression(bop.lhs());\r\n \t\tPair<JilExpr,List<JilStmt>> rhs = doExpression(bop.rhs());\r\n \t\t\r\n \t\tList<JilStmt> stmts = lhs.second();\r\n \t\tstmts.addAll(lhs.second());\r\n \t\tstmts.addAll(rhs.second());\r\n \t\t\r\n \t\tType.Clazz builder = new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\"StringBuilder\");\r\n \t\t\t\t\t\t\r\n \t\tstmts.add(new JilStmt.Assign(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\tnew JilExpr.New(builder, new ArrayList<JilExpr>(),\r\n \t\t\t\t\t\tnew Type.Function(T_VOID), bop.attributes())));\t\t\t\t\t\r\n \t\t\r\n \t\tType lhs_t = lhs.first().type(); \r\n \t\tif(lhs_t instanceof Type.Primitive || isString(lhs_t)) {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(lhs.first());\r\n \t\t\tstmts.add(new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder), \"append\",\r\n \t\t\t\t\tparams, new Type.Function(new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\"), lhs.first().type()), new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\")));\r\n \t\t} else {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(lhs.first());\r\n \t\t\tstmts.add(new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\t\t\"append\", params, new Type.Function(new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"),\r\n \t\t\t\t\tJAVA_LANG_OBJECT), new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\")));\t\r\n \t\t}\r\n \r\n \t\t// Now, do the right hand side\r\n \t\tJilExpr r;\r\n \t\tType rhs_t = rhs.first().type(); \r\n \t\tif(rhs_t instanceof Type.Primitive || isString(rhs_t)) {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(rhs.first());\r\n \t\t\tr = new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder), \"append\",\r\n \t\t\t\t\tparams, new Type.Function(new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\"), rhs_t), new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"));\r\n \t\t} else {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(rhs.first());\r\n \t\t\tr = new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\t\t\"append\", params, new Type.Function(new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"), JAVA_LANG_OBJECT),\r\n \t\t\t\t\tnew Type.Clazz(\"java.lang\", \"StringBuilder\"));\r\n \t\t}\r\n \r\n \t\tr = new JilExpr.Invoke(r, \"toString\", new ArrayList<JilExpr>(),\r\n \t\t\t\tnew Type.Function(JAVA_LANG_STRING), JAVA_LANG_STRING);\r\n \t\t\r\n \t\treturn new Pair<JilExpr,List<JilStmt>>(r,stmts);\r\n \t}", "void buildBlock(Tile t);", "static void a(bu bu2, y.c.y y2) {\n Object object;\n Object object2;\n A a2;\n block8 : {\n boolean bl2;\n block7 : {\n bl2 = fj.z;\n a2 = bu2.t();\n y.c.x x2 = y2.a();\n while (x2.f()) {\n object2 = x2.e();\n a2.a(object2, true);\n x2.g();\n if (!bl2) {\n if (!bl2) continue;\n }\n break block7;\n }\n bu2.a(d.a, a2);\n }\n boolean bl3 = bu2.c(d) != null;\n object2 = new d();\n object2.b(3);\n object2.a(2);\n if (bl3) {\n object = new v();\n object.b(2);\n object.a(e);\n object.f(true);\n object.d(4);\n object.e(false);\n object.c(5);\n object.c(true);\n object.a(1);\n object.b(true);\n object.c(1);\n object.a(\"routingPreferMiddleOfNode\", (Object)Boolean.TRUE);\n i i2 = new i(new n(new ab(new y.f.i.X((ah)object))));\n object2.b(new hX(i2));\n if (!bl2) break block8;\n }\n object2.c(2);\n }\n object2.d(5);\n object2.a(true);\n object2.b(false);\n try {\n object = new bI(1);\n object.a(false);\n object.b(true);\n object.d().a(true);\n object.a(bu2, (ah)object2);\n return;\n }\n finally {\n bu2.d_(d.a);\n bu2.a(a2);\n }\n }" ]
[ "0.6995717", "0.6133169", "0.61253345", "0.6006366", "0.59985197", "0.59883595", "0.5982077", "0.5878086", "0.58156604", "0.5810636", "0.57335436", "0.572797", "0.5717635", "0.5622544", "0.5617538", "0.55888903", "0.555049", "0.552512", "0.5523857", "0.55203176", "0.55154485", "0.5512359", "0.55015975", "0.5486987", "0.54711354", "0.5436306", "0.5432141", "0.5427967", "0.542492", "0.54214686", "0.5374411", "0.5374236", "0.5366401", "0.53653437", "0.53493375", "0.53485006", "0.5344394", "0.5343814", "0.53425485", "0.53325504", "0.5328373", "0.53254294", "0.5312104", "0.53076416", "0.52903", "0.5279664", "0.52728033", "0.526452", "0.5258991", "0.52468264", "0.524449", "0.52358115", "0.52352786", "0.5235233", "0.5233295", "0.5226681", "0.52184683", "0.5215308", "0.5210409", "0.5198362", "0.5194607", "0.5192532", "0.5190295", "0.5168396", "0.51589274", "0.514708", "0.5139292", "0.5124326", "0.5120755", "0.5117902", "0.5113591", "0.51063806", "0.51049286", "0.5102464", "0.509264", "0.50894916", "0.5086235", "0.5086235", "0.5076543", "0.506271", "0.50523186", "0.5052166", "0.50465727", "0.5036794", "0.50362724", "0.5033319", "0.5029352", "0.50275695", "0.50258493", "0.5012819", "0.50099283", "0.5004803", "0.49991253", "0.49907583", "0.49884555", "0.49850443", "0.49828464", "0.49769145", "0.49763", "0.49755326", "0.49705735" ]
0.0
-1
could make this public at some point
private static boolean isHexChar( char ch ) { return ( ch >= '0' && ch <= '9' ) || ( ch >= 'a' && ch <= 'f' ) || ( ch >= 'A' && ch <= 'F' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void getExras() {\n }", "public void mo38117a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected abstract Set method_1559();", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n void init() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "protected Doodler() {\n\t}", "public abstract Object mo26777y();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void m50366E() {\n }", "protected void mo6255a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public abstract void mo56925d();", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void m23075a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "protected void init() {\n // to override and use this method\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void jugar() {}", "public void mo4359a() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "protected boolean func_70041_e_() { return false; }" ]
[ "0.67120284", "0.66142225", "0.6512455", "0.6466605", "0.64194655", "0.6368553", "0.6342545", "0.62971526", "0.62971526", "0.6266523", "0.6246427", "0.62149924", "0.6207397", "0.6175678", "0.6175678", "0.61465615", "0.61429846", "0.61209714", "0.6119989", "0.6109647", "0.60932916", "0.6070326", "0.60701007", "0.6067092", "0.6056691", "0.60496587", "0.6049167", "0.60426223", "0.6038959", "0.6036524", "0.60248065", "0.60156506", "0.6014013", "0.6006245", "0.60031044", "0.60031044", "0.60031044", "0.60031044", "0.60031044", "0.60031044", "0.5997718", "0.5993965", "0.59932065", "0.59805775", "0.5978917", "0.5973783", "0.597282", "0.5968728", "0.5957188", "0.5951737", "0.5948195", "0.5937954", "0.59271014", "0.5925851", "0.59244865", "0.59053826", "0.5899317", "0.5899317", "0.5895363", "0.5884301", "0.58788484", "0.5877138", "0.5876544", "0.58599854", "0.584931", "0.5844344", "0.58403605", "0.5840188", "0.5840188", "0.58395094", "0.5830736", "0.5829782", "0.5829782", "0.5829782", "0.5829782", "0.5829782", "0.5829782", "0.5829782", "0.5822897", "0.58168316", "0.58168316", "0.58168316", "0.58141136", "0.5809155", "0.5804409", "0.5804099", "0.5791393", "0.5791393", "0.5791393", "0.5791393", "0.5791393", "0.5775764", "0.5775646", "0.5775646", "0.57753956", "0.57713014", "0.57713014", "0.5767836", "0.57673806", "0.57673806", "0.57512987" ]
0.0
-1
Only tested now for unixlike systems
public static String which( CharSequence cmd ) { String cmdStr = inputs.notNull( cmd, "cmd" ).toString(); String path = System.getenv( ENV_PATH ); if ( path != null ) { for ( String dir : PAT_PATH_SEP.split( path ) ) { File f = new File( dir, cmdStr ); if ( f.exists() && f.canExecute() ) return f.toString(); } } return null; // if we get here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSystem();", "private boolean osIstLinux() {\n\t\treturn System.getProperty(\"os.name\").equals(\"Linux\");\n\t}", "String operatingSystem();", "public native String canopenUtils(String[] cmd);", "public int findIndexOfFirstEolBetter(String source) {\n char[] sourceChars = source.toCharArray();\n for (int i = 0; i < sourceChars.length; i++) {\n if (isUnixEol(sourceChars[i])) {\n return i;\n }\n }\n return -1;\n }", "private void determinePlatform() {\n \t\tString os = System.getProperty(\"os.name\");\n \t\t\n \t\tif (os == null)\n \t\t\tthrow new RuntimeException();\n \t\t\n \t\tif (os.startsWith(WINDOWS_ID))\n \t\t\tisWindows = true;\n \t\telse\n \t\t\tisUnixLike = true;\n \t}", "private boolean m21866j() {\n /*\n r12 = this;\n r0 = 2\n java.io.File[] r0 = new java.io.File[r0]\n java.io.File r1 = new java.io.File\n java.lang.String r2 = \"/proc/tty/drivers\"\n r1.<init>(r2)\n r2 = 0\n r0[r2] = r1\n java.io.File r1 = new java.io.File\n java.lang.String r3 = \"/proc/cpuinfo\"\n r1.<init>(r3)\n r3 = 1\n r0[r3] = r1\n int r1 = r0.length\n r4 = r2\n L_0x0019:\n if (r4 >= r1) goto L_0x007d\n r5 = r0[r4]\n boolean r6 = r5.exists()\n if (r6 == 0) goto L_0x007a\n boolean r6 = r5.canRead()\n if (r6 == 0) goto L_0x007a\n r6 = 1024(0x400, float:1.435E-42)\n char[] r6 = new char[r6]\n java.lang.StringBuilder r7 = new java.lang.StringBuilder\n r7.<init>()\n r8 = 0\n java.io.BufferedReader r9 = new java.io.BufferedReader // Catch:{ Exception -> 0x0074, all -> 0x006d }\n java.io.InputStreamReader r10 = new java.io.InputStreamReader // Catch:{ Exception -> 0x0074, all -> 0x006d }\n java.io.FileInputStream r11 = new java.io.FileInputStream // Catch:{ Exception -> 0x0074, all -> 0x006d }\n r11.<init>(r5) // Catch:{ Exception -> 0x0074, all -> 0x006d }\n r10.<init>(r11) // Catch:{ Exception -> 0x0074, all -> 0x006d }\n r9.<init>(r10) // Catch:{ Exception -> 0x0074, all -> 0x006d }\n L_0x0042:\n int r5 = r9.read(r6) // Catch:{ Exception -> 0x006b, all -> 0x0068 }\n r8 = -1\n if (r5 == r8) goto L_0x004d\n r7.append(r6, r2, r5) // Catch:{ Exception -> 0x006b, all -> 0x0068 }\n goto L_0x0042\n L_0x004d:\n if (r9 == 0) goto L_0x0052\n r9.close() // Catch:{ IOException -> 0x0052 }\n L_0x0052:\n java.lang.String r5 = r7.toString()\n java.lang.String[] r6 = f16401e\n int r7 = r6.length\n r8 = r2\n L_0x005a:\n if (r8 >= r7) goto L_0x007a\n r9 = r6[r8]\n boolean r9 = r5.contains(r9)\n if (r9 == 0) goto L_0x0065\n return r3\n L_0x0065:\n int r8 = r8 + 1\n goto L_0x005a\n L_0x0068:\n r0 = move-exception\n r8 = r9\n goto L_0x006e\n L_0x006b:\n r8 = r9\n goto L_0x0074\n L_0x006d:\n r0 = move-exception\n L_0x006e:\n if (r8 == 0) goto L_0x0073\n r8.close() // Catch:{ IOException -> 0x0073 }\n L_0x0073:\n throw r0\n L_0x0074:\n if (r8 == 0) goto L_0x0079\n r8.close() // Catch:{ IOException -> 0x0079 }\n L_0x0079:\n return r2\n L_0x007a:\n int r4 = r4 + 1\n goto L_0x0019\n L_0x007d:\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.startapp.android.p163a.C5073a.m21866j():boolean\");\n }", "public static String convertWinFilePathToLinux(String inputFilePath) {\n\n\t\tif (inputFilePath == null) return null;\n\t\tif (inputFilePath.isEmpty()) return \"\";\n\n\t\t// Only convert file path if OS is NOT Windows\n\t\tif(!System.getProperty(\"os.name\").toLowerCase().contains(\"win\")) \n\t\t{\n\t\t\t// Only convert file path if OS is NOT Windows\n\t\t\tinputFilePath = inputFilePath.trim();\n\n\t\t\t// Only convert file path if it starts with \\\\\n\t\t\tif (!inputFilePath.startsWith(\"\\\\\\\\\")) return inputFilePath;\n\n\t\t\t// Remove leading \\\\ from inputFilePath\n\t\t\tinputFilePath = inputFilePath.substring(2);\n\n\t\t\t// Extract server name from inputFilePath\n\t\t\tString server_name = inputFilePath.substring(0,inputFilePath.indexOf(\"\\\\\"));\n\t\t\tinputFilePath = inputFilePath.substring(inputFilePath.indexOf(\"\\\\\")+1,inputFilePath.length());\n\t\t\tint index = server_name.indexOf(\".\");\n\t\t\tif (index > 0) {\n\t\t\t\tserver_name = server_name.substring(0,index);\n\t\t\t}\n\t\t\tserver_name = server_name.toLowerCase(); // all lower case in server name\n\n\t\t\t// Replace all \\ with /\n\t\t\tinputFilePath = inputFilePath.replace('\\\\', '/');\n\n\t\t\t// SPECIAL CASE: Remove \"gnem\" from thummper paths\n\t\t\tif (server_name.equals(\"thummper\") || server_name.equals(\"tonto2\")) {\n\t\t\t\tString gnem_string = inputFilePath.substring(0,inputFilePath.indexOf(\"/\"));\n\t\t\t\tif (gnem_string.equalsIgnoreCase(\"gnem\")) {\n\t\t\t\t\tinputFilePath = inputFilePath.substring(inputFilePath.indexOf(\"/\")+1,inputFilePath.length());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Prepend /nfs/ -- where all of our network shares are mounted\n\t\t\tinputFilePath = \"/nfs/\" + server_name + \"/\" + inputFilePath;\n\n\t\t\treturn inputFilePath;\n\n\n\t\t\t/* OLD\n // find index of third \"\\\" by finding first instance of \"\\\" after \n // skipping the first 2 characters (\"\\\\\")\n int thirdSlashIndex = inputFilePath.indexOf('\\\\', 2);\n\n // only convert if the first part of the string also contains \n // a \".\" character. This is necessary as this function may\n // get called more than once for the same string, and we only\n // want to modify it if the first portion contains\n // \"server.floobee.com or \"123.456.789.yyy\".\n if(inputFilePath.startsWith(\"\\\\\\\\\") && thirdSlashIndex >= 2\n && inputFilePath.substring(0,thirdSlashIndex).contains(\".\")){\n // create substring starting from the third slash \n // (this drops \"\\\\server\" from the string)\n inputFilePath = inputFilePath.substring(thirdSlashIndex);\n }\n\n // replace all \"\\\" with \"/\"\n inputFilePath = inputFilePath.replace('\\\\', '/'); \n\t\t\t */\n\t\t}\n\n\t\treturn inputFilePath; \n\t}", "private static java.lang.String m149886a() {\n /*\n r0 = 0\n java.io.BufferedReader r1 = new java.io.BufferedReader // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.io.InputStreamReader r2 = new java.io.InputStreamReader // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.io.FileInputStream r3 = new java.io.FileInputStream // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r5 = \"/proc/\"\n r4.<init>(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n int r5 = android.os.Process.myPid() // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r4.append(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r5 = \"/cmdline\"\n r4.append(r5) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r4 = r4.toString() // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r3.<init>(r4) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.String r4 = \"iso-8859-1\"\n r2.<init>(r3, r4) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n r1.<init>(r2) // Catch:{ Throwable -> 0x0072, all -> 0x0068 }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r2.<init>() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n L_0x002e:\n int r3 = r1.read() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n if (r3 <= 0) goto L_0x0039\n char r3 = (char) r3 // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r2.append(r3) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n goto L_0x002e\n L_0x0039:\n org.chromium.f r3 = org.chromium.C48317f.m149883a() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n boolean r3 = r3.loggerDebug() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n if (r3 == 0) goto L_0x005e\n org.chromium.f r3 = org.chromium.C48317f.m149883a() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r4 = \"Process\"\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r6 = \"get processName = \"\n r5.<init>(r6) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r6 = r2.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r5.append(r6) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n java.lang.String r5 = r5.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r3.loggerD(r4, r5) // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n L_0x005e:\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0073, all -> 0x0066 }\n r1.close() // Catch:{ Exception -> 0x0065 }\n L_0x0065:\n return r2\n L_0x0066:\n r0 = move-exception\n goto L_0x006c\n L_0x0068:\n r1 = move-exception\n r7 = r1\n r1 = r0\n r0 = r7\n L_0x006c:\n if (r1 == 0) goto L_0x0071\n r1.close() // Catch:{ Exception -> 0x0071 }\n L_0x0071:\n throw r0\n L_0x0072:\n r1 = r0\n L_0x0073:\n if (r1 == 0) goto L_0x0078\n r1.close() // Catch:{ Exception -> 0x0078 }\n L_0x0078:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.chromium.C48320i.m149886a():java.lang.String\");\n }", "String platform();", "public boolean unMountSmb(java.io.File r19) {\n /*\n r18 = this;\n r11 = r19.exists();\n if (r11 != 0) goto L_0x0008;\n L_0x0006:\n r4 = 0;\n L_0x0007:\n return r4;\n L_0x0008:\n r10 = r19.getPath();\n r11 = 0;\n r11 = r10.charAt(r11);\n r14 = 47;\n if (r11 == r14) goto L_0x0029;\n L_0x0015:\n r11 = new java.lang.StringBuilder;\n r11.<init>();\n r14 = \"/\";\n r11 = r11.append(r14);\n r11 = r11.append(r10);\n r10 = r11.toString();\n L_0x0029:\n r11 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0068 }\n r11.<init>();\t Catch:{ Exception -> 0x0068 }\n r14 = \"busybox umount -fl \";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r11 = r11.append(r10);\t Catch:{ Exception -> 0x0068 }\n r14 = \" > \";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r14 = \"/data/etc/log\";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r14 = \" 2>&1\";\n r11 = r11.append(r14);\t Catch:{ Exception -> 0x0068 }\n r3 = r11.toString();\t Catch:{ Exception -> 0x0068 }\n r11 = 2;\n r2 = new java.lang.String[r11];\t Catch:{ Exception -> 0x0068 }\n r11 = 0;\n r14 = \"#!/system/bin/sh\";\n r2[r11] = r14;\t Catch:{ Exception -> 0x0068 }\n r11 = 1;\n r2[r11] = r3;\t Catch:{ Exception -> 0x0068 }\n r0 = r18;\n r11 = r0.ShellFileWrite(r2);\t Catch:{ Exception -> 0x0068 }\n if (r11 != 0) goto L_0x006b;\n L_0x0066:\n r4 = 0;\n goto L_0x0007;\n L_0x0068:\n r6 = move-exception;\n r4 = 0;\n goto L_0x0007;\n L_0x006b:\n r0 = r18;\n r11 = r0.SystemProperties_set;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = 0;\n r15 = 2;\n r15 = new java.lang.Object[r15];\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 0;\n r17 = \"ctl.start\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 1;\n r17 = \"cifsmanager\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r11.invoke(r14, r15);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r12 = java.lang.System.currentTimeMillis();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n L_0x0088:\n r0 = r18;\n r11 = r0.SystemProperties_get;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = 0;\n r15 = 2;\n r15 = new java.lang.Object[r15];\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 0;\n r17 = \"init.svc.cifsmanager\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r16 = 1;\n r17 = \"\";\n r15[r16] = r17;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r7 = r11.invoke(r14, r15);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r7 = (java.lang.String) r7;\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r7 == 0) goto L_0x00ce;\n L_0x00a6:\n r11 = \"stopped\";\n r11 = r7.equals(r11);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r11 == 0) goto L_0x00ce;\n L_0x00af:\n r11 = r18.ShellLogRead();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n if (r11 == 0) goto L_0x00ce;\n L_0x00b5:\n r4 = r19.delete();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r8 = 0;\n r9 = r8;\n L_0x00bb:\n if (r4 != 0) goto L_0x00fa;\n L_0x00bd:\n r8 = r9 + 1;\n r11 = 20;\n if (r9 >= r11) goto L_0x0007;\n L_0x00c3:\n r14 = 50;\n java.lang.Thread.sleep(r14);\t Catch:{ InterruptedException -> 0x00f8, IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee }\n L_0x00c8:\n r4 = r19.delete();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r9 = r8;\n goto L_0x00bb;\n L_0x00ce:\n r14 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n java.lang.Thread.sleep(r14);\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = java.lang.System.currentTimeMillis();\t Catch:{ IllegalArgumentException -> 0x00e4, IllegalAccessException -> 0x00e9, InvocationTargetException -> 0x00ee, InterruptedException -> 0x00f3 }\n r14 = r14 - r12;\n r16 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;\n r11 = (r14 > r16 ? 1 : (r14 == r16 ? 0 : -1));\n if (r11 < 0) goto L_0x0088;\n L_0x00de:\n r4 = r19.delete();\n goto L_0x0007;\n L_0x00e4:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00e9:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00ee:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00f3:\n r5 = move-exception;\n r5.printStackTrace();\n goto L_0x00de;\n L_0x00f8:\n r11 = move-exception;\n goto L_0x00c8;\n L_0x00fa:\n r8 = r9;\n goto L_0x0007;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: zidoo.samba.manager.RockSmbManager.unMountSmb(java.io.File):boolean\");\n }", "@Override\r\n\tpublic boolean convertUnixFileToDOS(String filePath) throws FileSystemUtilException {\r\n\t\ttry {\r\n\t\t\treturn new ConvertFiles().unixToDos(filePath);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception::\",e);\r\n\t\t\tthrow new FileSystemUtilException(\"F00002\",null,Level.ERROR,e);\t\r\n\t\t}\r\n\t}", "private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }", "java.lang.String getOs();", "String getOs();", "@Override\r\n\tpublic boolean convertDOSFileToUnix(String filePath) throws FileSystemUtilException {\r\n\t\ttry {\r\n\t\t\treturn new ConvertFiles().dosToUnix(filePath);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception::\",e);\r\n\t\t\tthrow new FileSystemUtilException(\"F00002\",null,Level.ERROR,e);\t\r\n\t\t}\r\n\t}", "public abstract String getSystem( );", "public void ignoredTestParserUbuntu10_04_en()\n throws Exception\n {\n final Map map = checkStream( \"Linux\" );\n\n final FileAttributes o = (FileAttributes) map.get(\n \"src/main/java/org/codehaus/plexus/components/io/attributes/AttributeConstants.java\" );\n\n // -rw-r--r-- 1 1020 1030 11108 Mar 16 22:42 build.xml\n assertEquals( \"-rw-rw-r--\", new String( o.getLsModeParts() ) );\n assertEquals( 1020, o.getUserId().intValue() );\n assertEquals( 1030, o.getGroupId().intValue() );\n // Should probably test pass 2 too...\n }", "public static void main(String[] args) {\n\t\tFile f = new File(\"src/com/briup/java_day19/ch11/FileTest.txt\");// \"src/com/briup/\"(win and linux)\r\n\t\t\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tif(!f.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\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\t\t}\r\n\t\tSystem.out.println(f.canWrite());\r\n\t\tSystem.out.println(f.canExecute());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.getAbsolutePath());//override toString\r\n\t\tSystem.out.println(f.getAbsoluteFile());\r\n\t\tSystem.out.println(f.getName());\r\n\t\tSystem.out.println(f.getParent());\r\n\t\tSystem.out.println(f.getParentFile());\r\n\t\tSystem.out.println(f.isDirectory());\r\n\t\tSystem.out.println(f.isFile());\r\n\t\tSystem.out.println(f.length());//how many byte\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tString[] str = f.getParentFile().list();\r\n\t\tSystem.out.println(Arrays.toString(str));\r\n\t\tfor(String s:str){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"=================\");\r\n\t\tFile pf = f.getParentFile();\r\n\t\tString[] str2 = pf.list(new FilenameFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t//文件名以txt结尾的\r\n//\t\t\t\treturn name.endsWith(\"java\");\r\n//\t\t\t\treturn name.contains(\"Byte\");\r\n\t\t\t\treturn name.startsWith(\"Byte\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor(String s:str2){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t\t\r\n\t}", "public static String convertToLinuxPath(String path) {\n\t\t// just remove E: drive letter from path\n\t\treturn path.replaceFirst(\"E:\", \"\");\n\t}", "private void formatSystem() {}", "public boolean isUnixSymlink() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"84f6051d-bdd8-4173-bc7a-b13069f78695\");\n return (getUnixMode() & UnixStat.FILE_TYPE_FLAG) == UnixStat.LINK_FLAG;\n }", "public static boolean useIText() {\n\t\treturn (isWindows() || isLinux() || isSolaris());\n\t}", "private static String nativeLocationInJar() {\n\t\tString OS = System.getProperty(\"os.name\");\n\t\tString arch = System.getProperty(\"os.arch\");\n\t\tlog.info(\"Found OS={}, arch={}\", OS, arch);\n\t\tString key = OS+\"_\"+arch;\n\t\tswitch(key)\n\t\t{\n\t\tcase \"Linux_amd64\":\n\t\t\treturn \"native/MANIFEST.Linux_amd64\";\n\t\tcase \"Windows 7_amd64\":\n\t\tcase \"Windows 8_amd64\":\n\t\tcase \"Windows 8.1_amd64\":\n\t\t\treturn \"native/MANIFEST.Windows_amd64\";\n\t\t}\n\t\tlog.error(\"No matching native library for {}\", key);\n\t\tthrow new Error(\"No matching native library for \"+key);\n\t}", "private static String getSetCommand()\n {\n String setCmd;\n String osName = System.getProperty(\"os.name\");\n\n if (osName.indexOf(\"indows\") != -1)\n {\n if (osName.indexOf(\"indows 9\") != -1)\n {\n setCmd = \"command.com /c set\";\n }\n else\n {\n setCmd = \"cmd.exe /c set\";\n }\n }\n else\n {\n setCmd = \"/usr/bin/env\";\n //should double check for all unix platforms\n }\n return setCmd;\n }", "public static final boolean isUnix() {\n return (getOperatingSystem() & OS_UNIX_MASK) != 0;\n }", "String intermediateSystemName();", "public String createUnixShellCommand(SeqAnalysisLocal seqAnalysis);", "private static boolean isMacOSX() {\n String os = System.getProperty(\"os.name\").toLowerCase();\n return os.contains(\"mac\") || os.contains(\"darwin\");\n }", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "SystemData systemData();", "private static long m133353n() {\n C41940c c = C35574k.m114859a().mo70094i().mo102932c();\n String str = C39811er.f103468d;\n C7573i.m23582a((Object) str, \"ShortVideoConfig2.sDir\");\n File a = c.mo102928a(str);\n long j = 0;\n if (a.exists() && a.isDirectory()) {\n Set a2 = C41911c.m133283a();\n File[] listFiles = a.listFiles();\n C7573i.m23582a((Object) listFiles, \"filesRoot.listFiles()\");\n Iterable c2 = C7519g.m23444c((T[]) listFiles);\n Collection arrayList = new ArrayList();\n Iterator it = c2.iterator();\n while (true) {\n boolean z = false;\n if (!it.hasNext()) {\n break;\n }\n Object next = it.next();\n File file = (File) next;\n if (file.exists() && file.isFile()) {\n z = true;\n }\n if (z) {\n arrayList.add(next);\n }\n }\n for (File file2 : (List) arrayList) {\n String name = file2.getName();\n C7573i.m23582a((Object) name, \"undeleted.name\");\n if (!C7634n.m23721b(name, \"synthetise_\", false)) {\n String name2 = file2.getName();\n C7573i.m23582a((Object) name2, \"undeleted.name\");\n if (!C7634n.m23723c(name2, \"-concat-v\", false)) {\n String name3 = file2.getName();\n C7573i.m23582a((Object) name3, \"undeleted.name\");\n if (!C7634n.m23723c(name3, \"-concat-a\", false)) {\n }\n }\n Iterator it2 = a2.iterator();\n int i = 0;\n while (true) {\n if (!it2.hasNext()) {\n i = -1;\n break;\n }\n Object next2 = it2.next();\n if (i < 0) {\n C7525m.m23465b();\n }\n String str2 = (String) next2;\n String path = file2.getPath();\n C7573i.m23582a((Object) path, \"undeleted.path\");\n if (C7634n.m23721b(path, str2, false)) {\n break;\n }\n i++;\n }\n if (-1 == i) {\n j += file2.length();\n }\n }\n }\n }\n return j;\n }", "private static boolean executeTool(final String windows, final String unix, final File input, final File output) {\r\n\t\tProcessBuilder pb = null;\r\n\t\tif (SystemUtils.IS_OS_WINDOWS) {\r\n\t\t\t// use the batch\r\n\t\t\tpb = new ProcessBuilder(DEX2JAR_BASEPATH + windows, input.getAbsolutePath(), \"-o\",\r\n\t\t\t\t\toutput.getAbsolutePath());\r\n\t\t} else if (SystemUtils.IS_OS_LINUX || SystemUtils.IS_OS_MAC) {\r\n\t\t\t// use the sh\r\n\t\t\tpb = new ProcessBuilder(DEX2JAR_BASEPATH + unix, input.getAbsolutePath(), \"-o\", output.getAbsolutePath());\r\n\t\t}\r\n\r\n\t\tif (pb != null) {\r\n\t\t\ttry {\r\n\t\t\t\tpb.start().waitFor();\r\n\t\t\t} catch (IOException | InterruptedException e) {\r\n\t\t\t\tLOG.error(\"Failed to execute dex2jar or other similar subtooling.\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static void systemCmd(String cmd) \n\t{\n\n\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\ttry \n\t\t{ \n\t\t\tProcess p=Runtime.getRuntime().exec(cmd); \n\t\t\tp.waitFor(); \n\t\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream())); \n\t\t\tString line=reader.readLine(); \n\t\t\twhile(line!=null) \n\t\t\t{ \n\t\t\t\tSystem.out.println(line); \n\t\t\t\tline=reader.readLine(); \n\t\t\t} \n\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Exception: while executing systemCmd \" + cmd);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String checkUserLibDir() {\n\t\t// user .libPaths() to list all paths known when R is run from the \n\t\t// command line\n \tif (!runRCmd(\"R -e \\\".libPaths()\\\" -s\")) {\n \t\tlogger.error(\"Could not detect user lib path.\");\n \t} else {\n \t\t// split on '\"'. This gives irrelevant strings, but those will\n \t\t// not match a user.home anyway\n \t\tString[] parts = status.split(\"\\\\\\\"\");\n \t\tString userHome = System.getProperty(\"user.home\");\n \t\tlogger.debug(\"user.home: \" + userHome);\n \t\tfor (int i=0; i<parts.length; i++) {\n \t\t\tString part = parts[i];\n \t\t\t// The replacement for front-slashes for windows systems.\n \t\t\tif (part != null && part.startsWith(userHome) || part.replace(\"/\", \"\\\\\").startsWith(userHome)) {\n \t\t\t\t// OK, we found the first lib path in $HOME\n \t\t\t\treturn part;\n \t\t\t}\n \t\t}\n \t}\n\t\treturn null;\n }", "public abstract FStat stat(UnixRuntime r, String path) throws ErrnoException;", "private static void locateLinuxFonts(File file) {\n if (!file.exists()) {\n System.err.println(\"Unable to open: \" + file.getAbsolutePath());\n return;\n }\n\n try {\n InputStream in = new FileInputStream(file);\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n ByteArrayOutputStream temp = new ByteArrayOutputStream();\n PrintStream pout = new PrintStream(temp);\n while (reader.ready()) {\n String line = reader.readLine();\n if (line.indexOf(\"DOCTYPE\") == -1) {\n pout.println(line);\n }\n }\n\n in = new ByteArrayInputStream(temp.toByteArray());\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n\n Document document = builder.parse(in);\n\n NodeList dirs = document.getElementsByTagName(\"dir\");\n for (int i = 0; i < dirs.getLength(); i++) {\n Element element = (Element) dirs.item(i);\n String dir = element.getFirstChild().getNodeValue();\n\n if (dir.startsWith(\"~\")) {\n dir = dir.substring(1);\n dir = userhome + dir;\n }\n\n addFontDirectory(new File(dir));\n }\n\n NodeList includes = document.getElementsByTagName(\"include\");\n for (int i = 0; i < includes.getLength(); i++) {\n Element element = (Element) dirs.item(i);\n String inc = element.getFirstChild().getNodeValue();\n if (inc.startsWith(\"~\")) {\n inc = inc.substring(1);\n inc = userhome + inc;\n }\n\n locateLinuxFonts(new File(inc));\n }\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(\"Unable to process: \" + file.getAbsolutePath());\n }\n }", "private SysUtils(){}", "private static String getCommand(File file) {\n if (OperatingSystemDetector.isMac()) return String.format(\"open %s\", file);\n if (OperatingSystemDetector.isWindows()) return String.format(\"cmd /c start %s\", file);\n if (OperatingSystemDetector.isLinux()) return String.format(\"xdg-open %s\", file);\n return \"\";\n }", "private static String getFileRoot(String file) {\r\n \treturn file.substring(0, file.indexOf('.'));\r\n }", "private static boolean readReadWriteFile() {\n File mountFile = new File(\"/proc/mounts\");\n StringBuilder procData = new StringBuilder();\n if (mountFile.exists()) {\n try {\n FileInputStream fis = new FileInputStream(mountFile.toString());\n DataInputStream dis = new DataInputStream(fis);\n BufferedReader br = new BufferedReader(new InputStreamReader(\n dis));\n String data;\n while ((data = br.readLine()) != null) {\n procData.append(data).append(\"\\n\");\n }\n\n br.close();\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n String[] tmp = procData.toString().split(\"\\n\");\n for (String aTmp : tmp) {\n // Kept simple here on purpose different devices have\n // different blocks\n if (aTmp.contains(\"/dev/block\")\n && aTmp.contains(\"/system\")) {\n if (aTmp.contains(\"rw\")) {\n // system is rw\n return true;\n } else if (aTmp.contains(\"ro\")) {\n // system is ro\n return false;\n } else {\n return false;\n }\n }\n }\n }\n return false;\n }", "private static boolean isIgnorePath(String aPath)\n {\n if (aPath.startsWith(\"/sun\")) return true;\n if (aPath.startsWith(\"/apple\")) return true;\n if (aPath.startsWith(\"/com/sun\")) return true;\n if (aPath.startsWith(\"/com/apple\")) return true;\n if (aPath.startsWith(\"/com/oracle\")) return true;\n if (aPath.startsWith(\"/java/applet\")) return true;\n if (aPath.startsWith(\"/java/awt/dnd\")) return true;\n if (aPath.startsWith(\"/java/awt/im\")) return true;\n if (aPath.startsWith(\"/java/awt/peer\")) return true;\n if (aPath.startsWith(\"/java/beans\")) return true;\n if (aPath.startsWith(\"/java/lang/model\")) return true;\n if (aPath.startsWith(\"/java/nio/channels\")) return true;\n if (aPath.startsWith(\"/java/security\")) return true;\n if (aPath.startsWith(\"/java/util/concurrent\")) return true;\n if (aPath.startsWith(\"/java/util/Spliterators\")) return true;\n if (aPath.startsWith(\"/javax/crypto\")) return true;\n if (aPath.startsWith(\"/javax/net\")) return true;\n if (aPath.startsWith(\"/javax/security\")) return true;\n if (aPath.startsWith(\"/javax/accessibility\")) return true;\n if (aPath.startsWith(\"/javax/imageio\")) return true;\n if (aPath.startsWith(\"/javax/print\")) return true;\n if (aPath.startsWith(\"/javax/sound\")) return true;\n if (aPath.startsWith(\"/javax/swing/b\")) return true;\n if (aPath.startsWith(\"/javax/swing/colorchooser\")) return true;\n if (aPath.startsWith(\"/javax/swing/event\")) return true;\n if (aPath.startsWith(\"/javax/swing/filechooser\")) return true;\n if (aPath.startsWith(\"/javax/swing/plaf\")) return true;\n if (aPath.startsWith(\"/javax/swing/text\")) return true;\n if (aPath.startsWith(\"/javax/swing/tree\")) return true;\n if (aPath.startsWith(\"/javax/swing/undo\")) return true;\n if (aPath.startsWith(\"/jdk\")) return true;\n if (aPath.startsWith(\"/org/omg\")) return true;\n if (aPath.startsWith(\"/org/w3c\")) return true;\n if (aPath.startsWith(\"/META-INF\")) return true;\n\n // If inner class, return false\n if (aPath.contains(\"$\"))\n return true;\n\n // Return true\n return false;\n }", "public boolean isOSLinux() {\n\t\tboolean result = false;\n\t\tString linuxEnvKey = \"HOME\";\n\t\tString linuxValue = \"/\";\n\t\tif(System.getenv(linuxEnvKey) != null) {\n\t\t\tif(System.getenv(linuxEnvKey).startsWith(linuxValue)) {\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public UnixFakeFileSystem() {\n this.setDirectoryListingFormatter(new UnixDirectoryListingFormatter());\n }", "private String m16127b(String str) {\n BufferedReader bufferedReader;\n BufferedReader bufferedReader2 = null;\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec(\"getprop \" + str).getInputStream()), OguryChoiceManager.TcfV2.Purpose.DEVELOP_AND_IMPROVE_PRODUCTS);\n try {\n String readLine = bufferedReader.readLine();\n bufferedReader.close();\n C4647b.m16104a((Closeable) bufferedReader);\n return readLine;\n } catch (IOException unused) {\n C4647b.m16104a((Closeable) bufferedReader);\n return null;\n } catch (Throwable th) {\n th = th;\n bufferedReader2 = bufferedReader;\n C4647b.m16104a((Closeable) bufferedReader2);\n throw th;\n }\n } catch (IOException unused2) {\n bufferedReader = null;\n C4647b.m16104a((Closeable) bufferedReader);\n return null;\n } catch (Throwable th2) {\n th = th2;\n C4647b.m16104a((Closeable) bufferedReader2);\n throw th;\n }\n }", "private OperatingSystemInfo( ) {\r\n\t\tfinal String system_osname = System.getProperty(\"os.name\");\r\n\t\tfinal String system_osarch = System.getProperty(\"os.arch\");\r\n\t\tb64bit = system_osarch.endsWith(\"64\");\r\n\t\tboolean bWindows = system_osname.contains(\"Windows\");\r\n\t\tboolean bMac = system_osname.contains(\"Mac\");\r\n\t\tboolean bLinux = system_osname.contains(\"Linux\");\r\n\t\tif (bWindows) {\r\n\t\t\tosType = OsType.WINDOWS;\r\n\t\t\tosnamePrefix = \"win\";\r\n\t\t\texeSuffix = \".exe\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".dll$\");\r\n\t\t} else if (bMac) {\r\n\t\t\tosType = OsType.MAC;\r\n\t\t\tosnamePrefix = \"mac\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".*[dylib|jnilib]$\");\r\n\t\t} else if (bLinux) {\r\n\t\t\tosType = OsType.LINUX;\r\n\t\t\tosnamePrefix = \"linux\";\r\n\t\t\texeSuffix = \"\";\r\n\t\t\tsharedLibraryPattern = Pattern.compile(\".+\\\\.so[.\\\\d]*$\"); //libc.so, libc.so.1, libc.so.1.4\r\n\t\t} else {\r\n\t\t\tthrow new RuntimeException(system_osname + \" is not supported by the Virtual Cell.\");\r\n\t\t}\r\n\t\tdescription = osnamePrefix;\r\n\t\tString BIT_SUFFIX = \"\";\r\n\t\tif (b64bit) {\r\n\t\t\tBIT_SUFFIX =\"_x64\";\r\n\t\t\tdescription += \"64\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdescription += \"32\";\r\n\t\t}\r\n\t\texeBitSuffix = BIT_SUFFIX + exeSuffix;\r\n\t\tnativeLibDirectory = osnamePrefix + (b64bit ? \"64/\" : \"32/\");\r\n\t\tnativelibSuffix = BIT_SUFFIX;\r\n\t}", "private boolean isInternal(String name) {\n return name.startsWith(\"java.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"com.sun.\")\n || name.startsWith(\"javax.\")\n || name.startsWith(\"oracle.\");\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tString str=sc.next();\r\n\t\tFile f=new File(str);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.canWrite());\r\n System.out.println(f.length());\r\n System.out.println(f.getClass());\r\n\t}", "public static String t() {\n int n10;\n Object object;\n Object object2;\n String string2 = c;\n if (string2 != null) {\n return string2;\n }\n c = string2 = \"\";\n int n11 = 0;\n Object object3 = null;\n try {\n object2 = Runtime.getRuntime();\n object = \"cat /proc/version\";\n object3 = ((Runtime)object2).exec((String)object);\n }\n catch (IOException iOException) {}\n object3 = ((Process)object3).getInputStream();\n object = Charset.defaultCharset();\n object2 = new InputStreamReader((InputStream)object3, (Charset)object);\n int n12 = 8192;\n object3 = new BufferedReader((Reader)object2, n12);\n object2 = string2;\n try {\n while ((object = ((BufferedReader)object3).readLine()) != null) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append((String)object2);\n stringBuilder.append((String)object);\n object2 = stringBuilder.toString();\n }\n }\n catch (IOException iOException) {}\n if ((n10 = TextUtils.equals((CharSequence)object2, (CharSequence)string2)) == 0) {\n n10 = ((String)object2).indexOf(\"version \") + 8;\n string2 = ((String)object2).substring(n10);\n object3 = \" \";\n n11 = string2.indexOf((String)object3);\n object2 = null;\n c = string2 = string2.substring(0, n11);\n }\n return c;\n }", "private void findOsVersion() {\n\t\tisGBOrLower = AppUtility.isAndroidGBOrLower();\n\t\tisICSOrHigher = AppUtility.isAndroidICSOrHigher();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tif(args==null && args.length==0) {\n\t\t\tSystem.out.println(\"Null\");\n\t\t}else{\n\t\t\tSystem.out.println(Arrays.deepToString(args));\n\t\t}\n\t\t\n\t\tEnumeration<Object> en= System.getProperties().keys();\n\t\t\n\t\t//while(en.hasMoreElements()) {\n\t\t\t//String key=(String)en.nextElement();\n\t\t\tSystem.out.println(\"java.class.path\"+\"__val__\"+System.getProperties().getProperty(\"java.class.path\"));\n\t\t//}\n\t\t\t\n\t\t//System.out.println(System.getProperties());\n\t\t\n\t\tFile dir_curr=new File(\".\");//in realtÓ Ŕ una directory\n\t\tFile filet=new File(\"filet.txt\");//un file\n\t\t\n\t\tSystem.out.println(filet.getAbsolutePath());\n\t\n\t\tSystem.out.println(Arrays.deepToString(dir_curr.list()));\n\t\n\t\tSystem.out.println(Arrays.deepToString(filet.list()));\n\t\t\n\t\tSystem.out.println(filet.isFile());\n\t\t\n\t\tSystem.out.println(dir_curr.isFile());\n\t\n\t\tString z=null;\n\t}", "private int getLinuxLoggedInUsers() throws IOException {\n String command = \"/usr/bin/users\";\n List<String> users = new ArrayList<String>();\n ProcessBuilder builder = new ProcessBuilder();\n Process proc = null;\n proc = builder.command(command).start();\n \n StreamManager sm = new StreamManager();\n \n try {\n InputStream stdin = sm.handle(proc.getInputStream());\n Reader isr = sm.handle(new InputStreamReader(stdin, \"UTF-8\"));\n BufferedReader br = (BufferedReader) sm.handle(new BufferedReader(isr));\n String line = null;\n while ((line = br.readLine()) != null) {\n users.add(line);\n }\n return users.size();\n } finally {\n // Close all the streams/readers\n sm.closeAll();\n }\n }", "private static native boolean open_0(long nativeObj, String filename);", "public static void main(String[] args) {\nsyso \n\t}", "public String detectOsPath(String os) {\n\t\tif (os==null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (os.contains(\"win\") || os.contains(\"Win\") || os.contains(\"WIN\")) {\n\t\t\tthis.defaultFileOutputLocation = System.getProperty(\"user.home\") + \"\\\\Desktop\\\\convertedProducts\";\n\t\t\t\n\t\t\treturn WIN;\n\t\t}\n\t\tif (os.contains(\"mac\") || os.contains(\"Mac\") || os.contains(\"MAC\") || os.contains(\"IOS\") || os.contains(\"iOS\")) {\n\t\t\tthis.defaultFileOutputLocation = System.getProperty(\"user.home\") + \"/Desktop/convertedProducts\";\n\t\t\t\n\t\t\treturn MAC;\n\t\t}\n\t\tif (os.contains(\"nix\") || os.contains(\"aix\") || os.contains(\"nux\") || os.contains(\"unt\") || os.contains(\"UNT\") || os.contains(\"sunos\")) {\n\t\t\tthis.defaultFileOutputLocation = System.getProperty(\"user.home\") + \"/Desktop/convertedProducts\";\n\t\t\t\n\t\t\treturn UNIX;\n\t\t}\n\t\treturn null;\n\t}", "public void setUnixMode(final int mode) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a13d2215-1fc7-4e0b-b063-a68e25c9c4e3\");\n setExternalAttributes((mode << SHORT_SHIFT) | ((mode & 0200) == 0 ? 1 : 0) | (isDirectory() ? 0x10 : 0));\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"c0f46ba4-3aa9-49bd-8d58-a3ffdd50c894\");\n platform = PLATFORM_UNIX;\n }", "String getExecutable();", "private AsciiUtils() {\r\n\t}", "public static void main(String[] args) {\n\t\tFile file = new File(\".\"+File.separator+\"MyFile.txt\"); // this file must be at the directory of J2SE\n\t\t\n\t\tlong length = file.length();\n\t\t/**\n\t\t * long length()\n\t\t * get the Bytes of this file\n\t\t */\n\t\tSystem.out.println(\"file size: \"+length);\n\t\t\n\t\t\n\t\t/**\n\t\t * file.getName();\n\t\t */\n\t\tSystem.out.println(\"file name: \" + file.getName());\n\t\t\n\t\t/**\n\t\t * file.getPath()\n\t\t * file.getAbsolutePath()\n\t\t */\n\t\tSystem.out.println(\"file path: \" + file.getPath());\n\t\tSystem.out.println(\"file absolute path: \" + file.getAbsolutePath());\n\t\t\n\t\t\n\t\t/**\n\t\t * file.latModifed()\n\t\t * last modified time\n\t\t */\n\t\tlong lastm = file.lastModified();\n\t\tSystem.out.println(lastm);\n\t\tDate date = new Date();\n\t\tdate.setTime(lastm);\n\t\tSimpleDateFormat timeFormatter = new SimpleDateFormat(\"yyyy MM-dd, HH:mm:ss\");\n\t\tString timeString = timeFormatter.format(date);\n\t\tSystem.out.println(\"last modified: \"+ timeString);\n\t\t\n\t\t\n\t\t\n\t\t/**\n\t\t * boolean exists()\n\t\t * query if there such file exists in our hard disk\n\t\t */\n\t\tif (file.exists()) {\n\t\t\tSystem.out.println(\"exists\");\n\t\t}else{\n\t\t\tSystem.out.println(\"not exist\");\n\t\t}\n\t\t\t\n\t\t/**\n\t\t * boolean.isFile()\n\t\t */\n\t\tif (file.isFile()) {\n\t\t\tSystem.out.println(\"is file\");\n\t\t}\n\t\tif (file.isDirectory()){\n\t\t\tSystem.out.println(\"is directory\");\n\t\t}\n\t\t\n\t\t/**\n\t\t * read write\n\t\t */\n\t\tif (file.canRead()) {\n\t\t\tSystem.out.println(\"file can read\");\n\t\t}\n\t\tif (file.canWrite()) {\n\t\t\tSystem.out.println(\"file can write\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "public static String m569b() {\r\n LineNumberReader lineNumberReader;\r\n Throwable th;\r\n InputStreamReader inputStreamReader = null;\r\n String str = \"0000000000000000\";\r\n InputStreamReader inputStreamReader2;\r\n try {\r\n inputStreamReader2 = new InputStreamReader(Runtime.getRuntime().exec(\"cat /proc/cpuinfo | grep Serial\").getInputStream());\r\n try {\r\n lineNumberReader = new LineNumberReader(inputStreamReader2);\r\n int i = 1;\r\n while (i < 100) {\r\n try {\r\n String readLine = lineNumberReader.readLine();\r\n if (readLine != null) {\r\n if (readLine.indexOf(\"Serial\") >= 0) {\r\n str = readLine.substring(readLine.indexOf(\":\") + 1, readLine.length()).trim();\r\n break;\r\n }\r\n i++;\r\n }\r\n } catch (Exception e) {\r\n inputStreamReader = inputStreamReader2;\r\n } catch (Throwable th2) {\r\n th = th2;\r\n }\r\n }\r\n try {\r\n lineNumberReader.close();\r\n } catch (IOException e2) {\r\n }\r\n try {\r\n inputStreamReader2.close();\r\n } catch (IOException e3) {\r\n }\r\n } catch (Exception e4) {\r\n lineNumberReader = null;\r\n inputStreamReader = inputStreamReader2;\r\n if (lineNumberReader != null) {\r\n try {\r\n lineNumberReader.close();\r\n } catch (IOException e5) {\r\n }\r\n }\r\n if (inputStreamReader != null) {\r\n try {\r\n inputStreamReader.close();\r\n } catch (IOException e6) {\r\n }\r\n }\r\n return str;\r\n } catch (Throwable th3) {\r\n th = th3;\r\n lineNumberReader = null;\r\n if (lineNumberReader != null) {\r\n try {\r\n lineNumberReader.close();\r\n } catch (IOException e7) {\r\n }\r\n }\r\n if (inputStreamReader2 != null) {\r\n try {\r\n inputStreamReader2.close();\r\n } catch (IOException e8) {\r\n }\r\n }\r\n throw th;\r\n }\r\n } catch (Exception e9) {\r\n lineNumberReader = null;\r\n if (lineNumberReader != null) {\r\n lineNumberReader.close();\r\n }\r\n if (inputStreamReader != null) {\r\n inputStreamReader.close();\r\n }\r\n return str;\r\n } catch (Throwable th4) {\r\n th = th4;\r\n lineNumberReader = null;\r\n inputStreamReader2 = null;\r\n if (lineNumberReader != null) {\r\n lineNumberReader.close();\r\n }\r\n if (inputStreamReader2 != null) {\r\n inputStreamReader2.close();\r\n }\r\n throw th;\r\n }\r\n return str;\r\n }", "public abstract String inReadLine() throws JVMIOException;", "void gotMyMac();", "public abstract String getOsID();", "public abstract FD open(UnixRuntime r, String path, int flags, int mode) throws ErrnoException;", "private boolean isRecDirWindows() {\n File testfile = new File(RecDir + LINUX_SEPARATOR + \"PodcastRecorder.tst\");\n\n // If it failed assume it's a Windows filesystem. Linux filesystems will happily accept the Windows separator.\n if (testfile==null || !(testfile instanceof File)) {\n return true;\n }\n\n // If the testfile exists it must be a Linux filesystem.\n if (testfile.exists()) {\n testfile.delete();\n return false;\n }\n\n // Try to create a new file.\n try {\n\n // If it worked it must be a Linux filesystem.\n if (testfile.createNewFile()) {\n testfile.delete();\n return false;\n }\n } catch (Exception e) {\n return true;\n }\n\n return false;\n }", "abstract protected String getWrapperFileNameBase();", "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "@Override \n\t\tprotected String findEclipseOnPlatform(File dir) {\n\t\t\tFile possible = new File(dir, getWindowsExecutableName());\n\t\t\treturn (possible.isFile()) ? dir.getAbsolutePath() : null;\n\t\t}", "File getExecutable();", "@Test\r\n public void introspectConfiguration() {\r\n HelpConfigStreamConsumer consumer = new HelpConfigStreamConsumer();\r\n consumer.consumeLine(\"iMaker 09.24.01, 10-Jun-2009.\");\r\n consumer.consumeLine(\"Finding available configuration file(s):\");\r\n consumer.consumeLine(\"/epoc32/rom/config/platform/product/image_conf_product.mk\");\r\n consumer.consumeLine(\"/epoc32/rom/config/platform/product/image_conf_product_ui.mk\");\r\n consumer.consumeLine(\"X:/epoc32/rom/config/platform/product/image_conf_product.mk\");\r\n consumer.consumeLine(\"X:/epoc32/rom/config/platform/product/image_conf_product_ui.mk\");\r\n consumer.consumeLine(\"\");\r\n \r\n // Verifying string output\r\n String[] expected = new String[4];\r\n expected[0] = \"/epoc32/rom/config/platform/product/image_conf_product.mk\";\r\n expected[1] = \"/epoc32/rom/config/platform/product/image_conf_product_ui.mk\";\r\n expected[2] = \"X:/epoc32/rom/config/platform/product/image_conf_product.mk\";\r\n expected[3] = \"X:/epoc32/rom/config/platform/product/image_conf_product_ui.mk\";\r\n assertArrayEquals(expected, consumer.getConfigurations().toArray(new String[4]));\r\n\r\n // Verifying the file output\r\n File[] expectedFile = new File[4];\r\n if (new File(\"/epoc32/rom/config/platform/product/image_conf_product.mk\").isAbsolute()) {\r\n // Unix like os\r\n expectedFile[0] = new File(\"/epoc32/rom/config/platform/product/image_conf_product.mk\");\r\n expectedFile[1] = new File(\"/epoc32/rom/config/platform/product/image_conf_product_ui.mk\");\r\n expectedFile[2] = new File(new File(\".\"), \"X:/epoc32/rom/config/platform/product/image_conf_product.mk\");\r\n expectedFile[3] = new File(new File(\".\"), \"X:/epoc32/rom/config/platform/product/image_conf_product_ui.mk\");\r\n } else {\r\n // Windows like os\r\n expectedFile[0] = new File(new File(\".\"), \"/epoc32/rom/config/platform/product/image_conf_product.mk\");\r\n expectedFile[1] = new File(new File(\".\"), \"/epoc32/rom/config/platform/product/image_conf_product_ui.mk\");\r\n expectedFile[2] = new File(\"X:/epoc32/rom/config/platform/product/image_conf_product.mk\");\r\n expectedFile[3] = new File(\"X:/epoc32/rom/config/platform/product/image_conf_product_ui.mk\");\r\n }\r\n assertArrayEquals(expectedFile, consumer.getConfigurations(new File(\".\")).toArray(new File[4]));\r\n }", "public static String osName() {\r\n Object _osname=null;\r\n \r\n try {\r\n _osname=System.getProperty(\"os.name\");\r\n }\r\n catch (Exception ex) {\r\n _osname=null;\r\n ex.printStackTrace();\r\n }\r\n \r\n String _name=\"\";\r\n if (_osname!=null) _name=_osname.toString();\r\n \r\n return _name;\r\n }", "protected String getSystemLocationFor( final String os )\n {\n if( os.startsWith( \"Windows\" ) )\n {\n return \"\\\\Program Files\\\\Ant\";\n }\n else if( '/' == File.separatorChar )\n {\n if( os.startsWith( \"Linux\" ) ) return \"/usr/local/ant\";\n else return \"/opt/ant\";\n }\n else\n {\n return File.separator + \"ant\";\n }\n }", "public static boolean isMac()\n {\n return System.getProperty(\"os.name\").toLowerCase().startsWith(\"mac os x\");\n }", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static native FileStatus lstat(String path) throws IOException;", "private void setPwdByOS() {\n\t\t\n\t\tString home = System.getProperty(\"user.home\");\n\t\t\n\t\tif (OSUtils.isWindows()) {\n\t\t\tpwd = home + \"\\\\client\\\\\";\n\t\t\t\n\t\t} else if (OSUtils.isMac() || OSUtils.isUnix()) {\n\t\t\tpwd = home + \"/client/\";\n\t\t\t\n\t\t}\n\t\t\n\t\tboolean exists = FileUtils.createDirectory(pwd);\n\t\tif (!exists) {\n\t\t\tSystem.err.println(\"Failed to create PWD: \" + pwd);\n\t\t}\n\t\n\t}", "public static String getFileName(String file_path)\n {\n String file_separator = System.getProperty(\"file.separator\"); //Bug Id 81741\n if (file_path == null)\n return null;\n else if (file_path.substring(file_path.length() - 1).equals(file_separator)) //Bug Id 81741, substitute file_separator to System.getProperty(\"file.separator\")\n return null;\n else\n {\n\t //Bug Id 81741, Start \n\t if (\"/\".equals(file_separator) && (file_path.indexOf(file_separator) == -1))\n\t {\n\t file_path = file_path.replaceAll(\"\\\\\\\\\", \"/\");\n\t }\n\t //Bug Id 81741, End\n\t return (new File(file_path)).getName();\n }\n \n }", "public static void main(String[] src) throws UnsupportedEncodingException {\n List<String> cmd = new ArrayList<>();\n cmd.add(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n cmd.add(\"-no-remote\");\n cmd.add(\"-P\");\n cmd.add(\"aesha2\");\n// cmd.add(\"\\\"fileName\\\"\");\n ProcessBuilder builder = new ProcessBuilder().command(cmd);\n Process process = null;\n int exitCode=-1;\n\n try {\n process = builder.start();\n final Process finalProcess = process;\n Thread t=new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n finalProcess.destroy();\n }\n });\n t.start();\n exitCode = process.waitFor();\n } catch (InterruptedException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n } catch (IOException e) {\n String ed=new String(e.getMessage());\n System.out.println(ed);\n }\n process.destroy();\n System.out.println(exitCode);\n }", "@android.annotation.SuppressLint({\"NewApi\"})\n private void listRoots() {\n /*\n r23 = this;\n r21 = 0;\n r0 = r21;\n r1 = r23;\n r1.currentDir = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r21.clear();\n r17 = new java.util.HashSet;\n r17.<init>();\n r21 = android.os.Environment.getExternalStorageDirectory();\n r5 = r21.getPath();\n r12 = android.os.Environment.isExternalStorageRemovable();\n r6 = android.os.Environment.getExternalStorageState();\n r21 = \"mounted\";\n r0 = r21;\n r21 = r6.equals(r0);\n if (r21 != 0) goto L_0x003c;\n L_0x0031:\n r21 = \"mounted_ro\";\n r0 = r21;\n r21 = r6.equals(r0);\n if (r21 == 0) goto L_0x0084;\n L_0x003c:\n r8 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r8.<init>();\n r21 = android.os.Environment.isExternalStorageRemovable();\n if (r21 == 0) goto L_0x02ae;\n L_0x004d:\n r21 = \"SdCard\";\n r22 = 2131494825; // 0x7f0c07a9 float:1.861317E38 double:1.0530983673E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r8.title = r0;\n r21 = 2131165433; // 0x7f0700f9 float:1.7945083E38 double:1.052935626E-314;\n r0 = r21;\n r8.icon = r0;\n L_0x0062:\n r0 = r23;\n r21 = r0.getRootSubtitle(r5);\n r0 = r21;\n r8.subtitle = r0;\n r21 = android.os.Environment.getExternalStorageDirectory();\n r0 = r21;\n r8.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r8);\n r0 = r17;\n r0.add(r5);\n L_0x0084:\n r3 = 0;\n r4 = new java.io.BufferedReader;\t Catch:{ Exception -> 0x0302 }\n r21 = new java.io.FileReader;\t Catch:{ Exception -> 0x0302 }\n r22 = \"/proc/mounts\";\n r21.<init>(r22);\t Catch:{ Exception -> 0x0302 }\n r0 = r21;\n r4.<init>(r0);\t Catch:{ Exception -> 0x0302 }\n L_0x0094:\n r14 = r4.readLine();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r14 == 0) goto L_0x02dd;\n L_0x009a:\n r21 = \"vfat\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x00b0;\n L_0x00a5:\n r21 = \"/mnt\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0094;\n L_0x00b0:\n r21 = org.telegram.messenger.BuildVars.LOGS_ENABLED;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x00b7;\n L_0x00b4:\n org.telegram.messenger.FileLog.d(r14);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n L_0x00b7:\n r19 = new java.util.StringTokenizer;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = \" \";\n r0 = r19;\n r1 = r21;\n r0.<init>(r14, r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r20 = r19.nextToken();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r16 = r19.nextToken();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r17;\n r1 = r16;\n r21 = r0.contains(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00d5:\n r21 = \"/dev/block/vold\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0094;\n L_0x00e0:\n r21 = \"/mnt/secure\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00eb:\n r21 = \"/mnt/asec\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x00f6:\n r21 = \"/mnt/obb\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x0101:\n r21 = \"/dev/mapper\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x010c:\n r21 = \"tmpfs\";\n r0 = r21;\n r21 = r14.contains(r0);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0094;\n L_0x0117:\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r21;\n r1 = r16;\n r0.<init>(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.isDirectory();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 != 0) goto L_0x0163;\n L_0x0126:\n r21 = 47;\n r0 = r16;\n r1 = r21;\n r11 = r0.lastIndexOf(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = -1;\n r0 = r21;\n if (r11 == r0) goto L_0x0163;\n L_0x0136:\n r21 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21.<init>();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r22 = \"/storage/\";\n r21 = r21.append(r22);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r22 = r11 + 1;\n r0 = r16;\n r1 = r22;\n r22 = r0.substring(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.append(r22);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r15 = r21.toString();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r0 = r21;\n r0.<init>(r15);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r21 = r21.isDirectory();\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n if (r21 == 0) goto L_0x0163;\n L_0x0161:\n r16 = r15;\n L_0x0163:\n r0 = r17;\n r1 = r16;\n r0.add(r1);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n r13 = new org.telegram.ui.DocumentSelectActivity$ListItem;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r13.<init>();\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = r16.toLowerCase();\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r22 = \"sd\";\n r21 = r21.contains(r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n if (r21 == 0) goto L_0x02c5;\n L_0x0182:\n r21 = \"SdCard\";\n r22 = 2131494825; // 0x7f0c07a9 float:1.861317E38 double:1.0530983673E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.title = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n L_0x0190:\n r21 = 2131165433; // 0x7f0700f9 float:1.7945083E38 double:1.052935626E-314;\n r0 = r21;\n r13.icon = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r23;\n r1 = r16;\n r21 = r0.getRootSubtitle(r1);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.subtitle = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = new java.io.File;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r1 = r16;\n r0.<init>(r1);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.file = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r23;\n r0 = r0.items;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r21 = r0;\n r0 = r21;\n r0.add(r13);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n goto L_0x0094;\n L_0x01bd:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\t Catch:{ Exception -> 0x01c3, all -> 0x02d5 }\n goto L_0x0094;\n L_0x01c3:\n r7 = move-exception;\n r3 = r4;\n L_0x01c5:\n org.telegram.messenger.FileLog.e(r7);\t Catch:{ all -> 0x0300 }\n if (r3 == 0) goto L_0x01cd;\n L_0x01ca:\n r3.close();\t Catch:{ Exception -> 0x02ec }\n L_0x01cd:\n r9 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r9.<init>();\n r21 = \"/\";\n r0 = r21;\n r9.title = r0;\n r21 = \"SystemRoot\";\n r22 = 2131495071; // 0x7f0c089f float:1.8613668E38 double:1.053098489E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.subtitle = r0;\n r21 = 2131165426; // 0x7f0700f2 float:1.7945069E38 double:1.0529356226E-314;\n r0 = r21;\n r9.icon = r0;\n r21 = new java.io.File;\n r22 = \"/\";\n r21.<init>(r22);\n r0 = r21;\n r9.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r9);\n r18 = new java.io.File;\t Catch:{ Exception -> 0x02f7 }\n r21 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x02f7 }\n r22 = \"Telegram\";\n r0 = r18;\n r1 = r21;\n r2 = r22;\n r0.<init>(r1, r2);\t Catch:{ Exception -> 0x02f7 }\n r21 = r18.exists();\t Catch:{ Exception -> 0x02f7 }\n if (r21 == 0) goto L_0x0254;\n L_0x0223:\n r10 = new org.telegram.ui.DocumentSelectActivity$ListItem;\t Catch:{ Exception -> 0x02f7 }\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r10.<init>();\t Catch:{ Exception -> 0x02f7 }\n r21 = \"Telegram\";\n r0 = r21;\n r10.title = r0;\t Catch:{ Exception -> 0x02fd }\n r21 = r18.toString();\t Catch:{ Exception -> 0x02fd }\n r0 = r21;\n r10.subtitle = r0;\t Catch:{ Exception -> 0x02fd }\n r21 = 2131165426; // 0x7f0700f2 float:1.7945069E38 double:1.0529356226E-314;\n r0 = r21;\n r10.icon = r0;\t Catch:{ Exception -> 0x02fd }\n r0 = r18;\n r10.file = r0;\t Catch:{ Exception -> 0x02fd }\n r0 = r23;\n r0 = r0.items;\t Catch:{ Exception -> 0x02fd }\n r21 = r0;\n r0 = r21;\n r0.add(r10);\t Catch:{ Exception -> 0x02fd }\n r9 = r10;\n L_0x0254:\n r9 = new org.telegram.ui.DocumentSelectActivity$ListItem;\n r21 = 0;\n r0 = r23;\n r1 = r21;\n r9.<init>();\n r21 = \"Gallery\";\n r22 = 2131493847; // 0x7f0c03d7 float:1.8611186E38 double:1.053097884E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.title = r0;\n r21 = \"GalleryInfo\";\n r22 = 2131493848; // 0x7f0c03d8 float:1.8611188E38 double:1.0530978846E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r9.subtitle = r0;\n r21 = 2131165529; // 0x7f070159 float:1.7945278E38 double:1.0529356735E-314;\n r0 = r21;\n r9.icon = r0;\n r21 = 0;\n r0 = r21;\n r9.file = r0;\n r0 = r23;\n r0 = r0.items;\n r21 = r0;\n r0 = r21;\n r0.add(r9);\n r0 = r23;\n r0 = r0.listView;\n r21 = r0;\n org.telegram.messenger.AndroidUtilities.clearDrawableAnimation(r21);\n r21 = 1;\n r0 = r21;\n r1 = r23;\n r1.scrolling = r0;\n r0 = r23;\n r0 = r0.listAdapter;\n r21 = r0;\n r21.notifyDataSetChanged();\n return;\n L_0x02ae:\n r21 = \"InternalStorage\";\n r22 = 2131493929; // 0x7f0c0429 float:1.8611352E38 double:1.0530979246E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\n r0 = r21;\n r8.title = r0;\n r21 = 2131165528; // 0x7f070158 float:1.7945276E38 double:1.052935673E-314;\n r0 = r21;\n r8.icon = r0;\n goto L_0x0062;\n L_0x02c5:\n r21 = \"ExternalStorage\";\n r22 = 2131493730; // 0x7f0c0362 float:1.8610948E38 double:1.0530978263E-314;\n r21 = org.telegram.messenger.LocaleController.getString(r21, r22);\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n r0 = r21;\n r13.title = r0;\t Catch:{ Exception -> 0x01bd, all -> 0x02d5 }\n goto L_0x0190;\n L_0x02d5:\n r21 = move-exception;\n r3 = r4;\n L_0x02d7:\n if (r3 == 0) goto L_0x02dc;\n L_0x02d9:\n r3.close();\t Catch:{ Exception -> 0x02f2 }\n L_0x02dc:\n throw r21;\n L_0x02dd:\n if (r4 == 0) goto L_0x0305;\n L_0x02df:\n r4.close();\t Catch:{ Exception -> 0x02e5 }\n r3 = r4;\n goto L_0x01cd;\n L_0x02e5:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n r3 = r4;\n goto L_0x01cd;\n L_0x02ec:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x01cd;\n L_0x02f2:\n r7 = move-exception;\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x02dc;\n L_0x02f7:\n r7 = move-exception;\n L_0x02f8:\n org.telegram.messenger.FileLog.e(r7);\n goto L_0x0254;\n L_0x02fd:\n r7 = move-exception;\n r9 = r10;\n goto L_0x02f8;\n L_0x0300:\n r21 = move-exception;\n goto L_0x02d7;\n L_0x0302:\n r7 = move-exception;\n goto L_0x01c5;\n L_0x0305:\n r3 = r4;\n goto L_0x01cd;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.DocumentSelectActivity.listRoots():void\");\n }", "public String mo21862h(String str) {\n if (this.f24535g == null) {\n return str;\n }\n try {\n if (new File(str).isAbsolute()) {\n return str;\n }\n } catch (Exception unused) {\n }\n return this.f24530b.mo22054a(str).getAbsolutePath();\n }", "public byte[] getCmdString() {\n \t\t\n \t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \t\tString strCmd = null;\n \t\tbyte[] byteCmd = null; \t\t\n \t\t\n \t\tSystem.out.print(\"bash$ \");\n \t\ttry {\n\t\t\tstrCmd = br.readLine();\t\n\t\t\tbyteCmd = new byte[ strCmd.length() ]; \n\t\t\tbyteCmd = strCmd.getBytes(\"UTF-8\");\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\tSystem.out.println(\"caught exception.. \");\n\t\t}\n \t\t \t\t \t\t\n \t\treturn byteCmd; \t\n \t}", "private String quoteUnixCredentials(String str) {\n return str.replace(\"'\", \"'\\\\''\");\n }", "private FileUtil() {}", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "private static int getPidForUnix(Process process)\n\t{\n\t\tint pid = -1;\n\t\tif (process.getClass().getName().equals(\"java.lang.UNIXProcess\")) {\n\t\t\t/* get the PID on unix/linux systems */\n\t\t\ttry {\n\t\t\t\tField f = process.getClass().getDeclaredField(\"pid\");\n\t\t\t\tf.setAccessible(true);\n\t\t\t\tpid = f.getInt(process);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tLOGGER.error(\"failed to get pid for process [ \" + process.toString() + \" ] : \" + e.getMessage(), e);\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t\treturn pid;\n\t}", "zzand mo29852bb() throws RemoteException;", "protected static String getFilename(String base) {\n //return Integer.toHexString(base.hashCode()) + \".map\";\n return base + \".map\";\n }", "static private native int imeToRunes(long handle, int chars);", "protected static String subtitute(String str) {\n String[] tokens = str.split(\"\\\\s*\\\\|\\\\s*\");\n for (String token : tokens) {\n String replacement = System.getenv(token);\n if (replacement != null) {\n return replacement;\n }\n }\n return str;\n }", "public File tryFindSshExecutable();", "@Test\n public void shouldHandleSystemEnvironmentWhileComputingDigest() throws IOException {\n SystemEnvironment sysEnv = new SystemEnvironment();\n\n assertThat(sysEnv.getDigest(), not(nullValue()));\n }", "@Override\n public String getSystemDir() {\n return null;\n }", "private boolean InstallAsRoot() {\n try {\n java.io.InputStream insExec = getResources().openRawResource(2130968576);\n java.io.InputStream insWd = getResources().openRawResource(2130968577);\n WriteRawResources(insExec, new java.lang.StringBuilder(java.lang.String.valueOf(android.os.Environment.getExternalStorageDirectory().getAbsolutePath())).append(java.io.File.separator).append(com.p003fa.p004c.Utilities.GetExecName(this.context)).toString());\n WriteRawResources(insWd, new java.lang.StringBuilder(java.lang.String.valueOf(android.os.Environment.getExternalStorageDirectory().getAbsolutePath())).append(java.io.File.separator).append(com.p003fa.p004c.Utilities.GetWatchDogName(this.context)).toString());\n if (com.p003fa.p004c.RootCommandExecutor.Execute(this.context)) {\n return true;\n }\n new java.io.File(new java.lang.StringBuilder(java.lang.String.valueOf(android.os.Environment.getExternalStorageDirectory().getAbsolutePath())).append(java.io.File.separator).append(com.p003fa.p004c.Utilities.GetExecName(this.context)).toString()).delete();\n new java.io.File(new java.lang.StringBuilder(java.lang.String.valueOf(android.os.Environment.getExternalStorageDirectory().getAbsolutePath())).append(java.io.File.separator).append(com.p003fa.p004c.Utilities.GetWatchDogName(this.context)).toString()).delete();\n return false;\n } catch (java.lang.Exception e) {\n try {\n new java.io.File(new java.lang.StringBuilder(java.lang.String.valueOf(android.os.Environment.getExternalStorageDirectory().getAbsolutePath())).append(java.io.File.separator).append(com.p003fa.p004c.Utilities.GetExecName(this.context)).toString()).delete();\n new java.io.File(new java.lang.StringBuilder(java.lang.String.valueOf(android.os.Environment.getExternalStorageDirectory().getAbsolutePath())).append(java.io.File.separator).append(com.p003fa.p004c.Utilities.GetWatchDogName(this.context)).toString()).delete();\n return false;\n } catch (java.lang.Exception e2) {\n return false;\n }\n }\n }", "public boolean mountSmb(java.lang.String r11, java.lang.String r12, java.lang.String r13, java.lang.String r14, java.lang.String r15) {\n /*\n r10 = this;\n r8 = r10.creatMountPoint(r12);\n if (r8 != 0) goto L_0x0008;\n L_0x0006:\n r8 = 0;\n L_0x0007:\n return r8;\n L_0x0008:\n r8 = new java.lang.StringBuilder;\n r8.<init>();\n r9 = \"busybox mount -t cifs -o iocharset=utf8,username=\";\n r8 = r8.append(r9);\n r8 = r8.append(r14);\n r9 = \",password=\";\n r8 = r8.append(r9);\n r8 = r8.append(r15);\n r9 = \",uid=1000,gid=1015,file_mode=0775,dir_mode=0775,rw \\\"\";\n r8 = r8.append(r9);\n r8 = r8.append(r11);\n r9 = \"\\\" \\\"\";\n r8 = r8.append(r9);\n r8 = r8.append(r12);\n r9 = \"\\\"\";\n r8 = r8.append(r9);\n r0 = r8.toString();\n zidoo.device.DeviceUtils.execute(r0);\n r8 = 47;\n r3 = r11.lastIndexOf(r8);\t Catch:{ IllegalArgumentException -> 0x0078 }\n r8 = -1;\n if (r3 != r8) goto L_0x006c;\n L_0x0050:\n r7 = r11;\n L_0x0051:\n r5 = 0;\n r6 = r5;\n L_0x0053:\n r8 = 50;\n java.lang.Thread.sleep(r8);\t Catch:{ InterruptedException -> 0x0073 }\n L_0x0058:\n r8 = 3;\n r8 = new java.lang.String[r8];\t Catch:{ IllegalArgumentException -> 0x0078 }\n r9 = 0;\n r8[r9] = r13;\t Catch:{ IllegalArgumentException -> 0x0078 }\n r9 = 1;\n r8[r9] = r7;\t Catch:{ IllegalArgumentException -> 0x0078 }\n r9 = 2;\n r8[r9] = r12;\t Catch:{ IllegalArgumentException -> 0x0078 }\n r8 = r10.isMounted(r8);\t Catch:{ IllegalArgumentException -> 0x0078 }\n if (r8 == 0) goto L_0x008d;\n L_0x006a:\n r8 = 1;\n goto L_0x0007;\n L_0x006c:\n r8 = r3 + 1;\n r7 = r11.substring(r8);\t Catch:{ IllegalArgumentException -> 0x0078 }\n goto L_0x0051;\n L_0x0073:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ IllegalArgumentException -> 0x0078 }\n goto L_0x0058;\n L_0x0078:\n r1 = move-exception;\n r1.printStackTrace();\n L_0x007c:\n r4 = new java.io.File;\n r4.<init>(r12);\n r8 = r4.exists();\n if (r8 == 0) goto L_0x008a;\n L_0x0087:\n r4.delete();\n L_0x008a:\n r8 = 0;\n goto L_0x0007;\n L_0x008d:\n r5 = r6 + 1;\n r8 = 20;\n if (r6 >= r8) goto L_0x007c;\n L_0x0093:\n r6 = r5;\n goto L_0x0053;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: zidoo.samba.manager.RockSmbManager.mountSmb(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String):boolean\");\n }", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }" ]
[ "0.55487555", "0.5517064", "0.54482687", "0.53771615", "0.5355023", "0.5327143", "0.5223906", "0.51532674", "0.5141862", "0.51231354", "0.5099469", "0.50971544", "0.5077452", "0.5073335", "0.5054886", "0.5044852", "0.50050366", "0.50035614", "0.49562097", "0.48947015", "0.48685622", "0.4850178", "0.4849623", "0.48306376", "0.48248053", "0.4815218", "0.48111412", "0.4809552", "0.48069862", "0.47719485", "0.47719485", "0.47719485", "0.47719485", "0.47719485", "0.47696584", "0.4768792", "0.47682258", "0.47649541", "0.47620675", "0.47400796", "0.47400337", "0.47311503", "0.47238117", "0.47227085", "0.47186056", "0.47169375", "0.4707411", "0.47010705", "0.46861303", "0.46844938", "0.4680162", "0.46743065", "0.46736926", "0.46683517", "0.46680012", "0.46637532", "0.4639714", "0.46372086", "0.46097445", "0.46088383", "0.46067494", "0.460361", "0.46022174", "0.46009964", "0.45989135", "0.4594735", "0.45887536", "0.4579774", "0.45797548", "0.45737642", "0.45728967", "0.4571918", "0.45712933", "0.45710585", "0.45700994", "0.45627534", "0.45591635", "0.45585918", "0.45585918", "0.45585918", "0.45581636", "0.45571765", "0.4553752", "0.45452836", "0.45433107", "0.45426175", "0.45423687", "0.45422128", "0.4540794", "0.45404017", "0.45395416", "0.4537196", "0.45320714", "0.45308128", "0.4523743", "0.4523639", "0.45211294", "0.45205203", "0.452047", "0.4515366", "0.45097452" ]
0.0
-1
The methods which follow are support methods for converting java strings to json strings. The method is included here instead of in the JSON libs since JSON strings are also a very convenient, safe, and meaningful way to serialize unicode strings in general
private static void appendUnicodeEscape( char ch, StringBuilder sb ) { sb.append( "\\u" ); String numStr = Integer.toString( ch, 16 ); if ( ch <= '\u000F' ) sb.append( "000" ); else if ( ch <= '\u00FF' ) sb.append( "00" ); else if ( ch <= '\u0FFF' ) sb.append( "0" ); sb.append( Integer.toString( ch, 16 ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONString(String stringIn)\n {\n this.string = stringIn;\n }", "public abstract String toJsonString();", "static String getStringJsonEscaped(String str) {\n JsonStringEncoder e = JsonStringEncoder.getInstance();\n StringBuilder sb = new StringBuilder();\n e.quoteAsString(str, sb);\n return sb.toString();\n }", "@org.junit.Test\n public void jsString()\n {\n assertEquals(\"empty\", \"''\", Encodings.toJSString(\"\"));\n assertEquals(\"simple\", \"'test'\", Encodings.toJSString(\"test\"));\n assertEquals(\"escape\", \"'escape \\\\\\'\\\\\\\"strings\\\\\\\"\\\\''\",\n Encodings.toJSString(\"escape '\\\"strings\\\"'\"));\n }", "public final native String toJson() /*-{\n // Safari 4.0.5 appears not to honor the replacer argument, so we can't do this:\n \n // var replacer = function(key, value) {\n // if (key == '__key') {\n // return;\n // }\n // return value;\n // }\n // return $wnd.JSON.stringify(this, replacer);\n \n var key = this.__key;\n delete this.__key;\n var rf = this.__rf;\n delete this.__rf;\n var gwt = this.__gwt_ObjectId;\n delete this.__gwt_ObjectId;\n // TODO verify that the stringify() from json2.js works on IE\n var rtn = $wnd.JSON.stringify(this);\n this.__key = key;\n this.__rf = rf;\n this.__gwt_ObjectId = gwt;\n return rtn;\n }-*/;", "public abstract String toJson();", "public static Value makeJSONStr() {\n return theJSONStr;\n }", "String toJson() throws IOException;", "public static JSONObject strToJson(String jsonstring) {\n JSONParser parser = new JSONParser();\n JSONObject json = null;\n try {\n json = (JSONObject) parser.parse(jsonstring);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return json;\n }", "public static String encodeJsString(String s) throws Exception {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"\\\"\");\r\n for (Character c : s.toCharArray())\r\n {\r\n switch(c)\r\n {\r\n case '\\\"': \r\n sb.append(\"\\\\\\\"\");\r\n break;\r\n case '\\\\': \r\n sb.append(\"\\\\\\\\\");\r\n break;\r\n case '\\b': \r\n sb.append(\"\\\\b\");\r\n break;\r\n case '\\f': \r\n sb.append(\"\\\\f\");\r\n break;\r\n case '\\n': \r\n sb.append(\"\\\\n\");\r\n break;\r\n case '\\r': \r\n sb.append(\"\\\\r\");\r\n break;\r\n case '\\t': \r\n sb.append(\"\\\\t\");\r\n break;\r\n default: \r\n Int32 i = (int)c;\r\n if (i < 32 || i > 127)\r\n {\r\n sb.append(String.format(StringSupport.CSFmtStrToJFmtStr(\"\\\\u{0:X04}\"),i));\r\n }\r\n else\r\n {\r\n sb.append(c);\r\n } \r\n break;\r\n \r\n }\r\n }\r\n sb.append(\"\\\"\");\r\n return sb.toString();\r\n }", "private JSONObject serializeJson(String text){\n try {\n JSONObject jsonObject = new JSONObject(text);\n return jsonObject;\n }catch (JSONException err){\n return null;\n }\n }", "public String toJson(final String object) {\n if (object != null && (object.startsWith(\"[\") || object.startsWith(\"{\")\n || (object.startsWith(\"\\\"[\") || object.startsWith(\"\\\"{\")))) {\n return object;\n } else\n return \"{\\\"\" + \"{\\\"success\\\" : 1}\" + \"\\\":\\\"\" + object + \"\\\"}\";\n }", "void mo59932a(String str, JSONObject jSONObject);", "public static JsonObject stringToJSON(String json) {\n try {\n JsonParser parser = new JsonParser();\n JsonObject Jso = parser.parse(json).getAsJsonObject();\n return Jso;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return new JsonObject();\n }\n }", "public static Example stringToJSON(String s){\n Gson gson = new Gson();\n JsonReader reader = new JsonReader(new StringReader(s));\n reader.setLenient(true);\n\n Example ex = gson.fromJson(reader, Example.class);\n\n return ex;\n }", "static public Json wrapString(String string, QName type) {\n JsonObject json = new JsonObject();\n json.put(Manager.XP_VALUE.toString(), string);\n json.put(Manager.XP_TYPE.toString(), type.toString());\n return json;\n }", "void mo26099a(String str, JSONObject jSONObject);", "void mo16412a(String str, JSONObject jSONObject);", "public final void mString() throws RecognitionException {\n try {\n int _type = String;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /development/json-antlr/grammar/JSON.g:91:9: ( '\\\"' ( EscapeSequence | ~ ( '\\\\u0000' .. '\\\\u001f' | '\\\\\\\\' | '\\\\\\\"' ) )* '\\\"' )\n // /development/json-antlr/grammar/JSON.g:92:2: '\\\"' ( EscapeSequence | ~ ( '\\\\u0000' .. '\\\\u001f' | '\\\\\\\\' | '\\\\\\\"' ) )* '\\\"'\n {\n match('\\\"'); \n // /development/json-antlr/grammar/JSON.g:92:6: ( EscapeSequence | ~ ( '\\\\u0000' .. '\\\\u001f' | '\\\\\\\\' | '\\\\\\\"' ) )*\n loop7:\n do {\n int alt7=3;\n int LA7_0 = input.LA(1);\n\n if ( (LA7_0=='\\\\') ) {\n alt7=1;\n }\n else if ( ((LA7_0>=' ' && LA7_0<='!')||(LA7_0>='#' && LA7_0<='[')||(LA7_0>=']' && LA7_0<='\\uFFFF')) ) {\n alt7=2;\n }\n\n\n switch (alt7) {\n \tcase 1 :\n \t // /development/json-antlr/grammar/JSON.g:92:8: EscapeSequence\n \t {\n \t mEscapeSequence(); \n\n \t }\n \t break;\n \tcase 2 :\n \t // /development/json-antlr/grammar/JSON.g:92:25: ~ ( '\\\\u0000' .. '\\\\u001f' | '\\\\\\\\' | '\\\\\\\"' )\n \t {\n \t if ( (input.LA(1)>=' ' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\\uFFFF') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop7;\n }\n } while (true);\n\n match('\\\"'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\n public boolean isMaybeStrJSON() {\n checkNotPolymorphicOrUnknown();\n return (flags & STR_JSON) != 0;\n }", "public String toJSONString() throws CharConversionException, UnsupportedEncodingException {\n return objectMap.toJSONString();\n }", "private static String nativeObjectToJSONString(NativeObject nativeObject) throws Exception \n { \n \tMap<String, String> mapJson = new LinkedHashMap<String, String>();\n \tMap<String, Class<?>> mapTypeJson = new LinkedHashMap<String, Class<?>>();\n \t\n Object[] ids = nativeObject.getIds(); \n for (Object id : ids) \n { \n String key = id.toString();\n Object value = nativeObject.get(key, nativeObject);\n if(!(value instanceof Undefined)) {\n Object json = toJson(value);\n mapJson.put(key, json+\"\");\n if(!(json instanceof String) && json!=null) mapTypeJson.put(key, json.getClass()); \n }\n } \n \n return HAPUtilityJson.buildMapJson(mapJson, mapTypeJson); \n }", "public static String javaStringEscape(String str)\n {\n test:\n {\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\n':\n case '\\r':\n case '\\\"':\n case '\\\\':\n break test;\n }\n }\n return str;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n switch (ch) {\n default:\n sb.append(ch);\n break;\n case '\\n':\n sb.append(\"\\\\n\");\n break;\n case '\\r':\n sb.append(\"\\\\r\");\n break;\n case '\\\"':\n sb.append(\"\\\\\\\"\");\n break;\n case '\\\\':\n sb.append(\"\\\\\\\\\");\n break;\n }\n }\n return sb.toString();\n }", "public static JsonElement stringToJSON2(String json) {\n try {\n JsonElement parser = new JsonPrimitive(json);\n System.out.println(parser.getAsString());\n //JsonObject Jso = new JsonObject();\n //Jso = (JsonObject) parser.p(json);\n return parser;\n } catch (Exception e) {\n return new JsonObject();\n }\n }", "private static String asJsonString(final Object obj) {\n try {\n return new ObjectMapper().writeValueAsString(obj);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "static JsonResource forString( String contents ) {\n return new JsonResource() {\n @Override\n public <T> T readFrom( ReadMethod<T> consumer ) throws IOException {\n try ( ByteArrayInputStream stream = new ByteArrayInputStream(contents.getBytes(Json.getDefaultConfig().getCharset())) ) {\n return consumer.read(stream);\n }\n }\n };\n }", "public static void writeJSONString(@Nullable Object value, Appendable out) throws IOException {\n if (value == null) {\n out.append(\"null\");\n\n } else if (value instanceof CharSequence) {\n out.append('\\\"');\n escape((CharSequence) value, out);\n out.append('\\\"');\n\n } else if (value instanceof Double) {\n if (((Double) value).isInfinite() || ((Double) value).isNaN()) {\n out.append(\"null\");\n } else {\n out.append(value.toString());\n }\n\n } else if (value instanceof Float) {\n if (((Float) value).isInfinite() || ((Float) value).isNaN()) {\n out.append(\"null\");\n } else {\n out.append(value.toString());\n }\n\n } else if ((value instanceof Number) || (value instanceof Boolean)) {\n out.append(value.toString());\n\n } else if (value instanceof Map<?, ?>) {\n writeJSONString((Map<?, ?>) value, out);\n\n } else if (value instanceof Path) {\n // Path is also an Iterable, but typically desired to be written as a single String.\n writeJSONString(value.toString(), out);\n\n } else if (value instanceof Iterable<?>) {\n writeJSONString((Iterable<?>) value, out);\n\n } else {\n throw new NotSerializableException(\n \"Object of class \" + value.getClass().getName() + \" cannot be written as JSON\");\n }\n }", "public interface JsonConverter {\n /** Deserializes a JSON string into a Java object.\n * @param source JSON string.\n * @param type Class type.\n * @param <T> type of class to return.\n * @return A Java object representing the same information as found in the JSON string.\n */\n <T> T fromJson(String source, Class<T> type);\n\n /** Deserializes a JSON string into a Java object.\n * @param source JSON string.\n * @param type JavaType class type.\n * @param <T> type of class to return.\n * @return A Java object representing the same information as found in the JSON string.\n */\n <T> T fromJson(String source, JavaType type);\n\n /** Serializes a Java object into a JSON string.\n * @param source A Java object.\n * @param <T> type of class of the source.\n * @return A JSON string representing the data represented in the Java object.\n */\n <T> String toJson(T source);\n}", "public EncodeAndDecodeStrings() {}", "public interface JsonUtil {\n /**\n * Encode {@link org.schemarepo.Subject}s into a {@link String} for use by\n * {@link #subjectNamesFromJson(String)}\n *\n * The format is an array of objects containing a name field, for example:\n *\n * [{\"name\": \"subject1\"}, {\"name\": \"subject2\"}]\n *\n * @param subjects the Subject objects to encode\n * @return The {@link org.schemarepo.Subject} objects encoded as a String\n */\n String subjectsToJson(Iterable<Subject> subjects);\n\n /**\n * Decode a string created by {@link #subjectsToJson(Iterable)}\n *\n * @param str The String to decode\n * @return an {@link java.lang.Iterable} of {@link Subject}\n */\n Iterable<String> subjectNamesFromJson(String str);\n\n /**\n * Encode {@link org.schemarepo.SchemaEntry} objects into a {@link String} for use by\n * {@link #schemasFromJson(String)}\n *\n * The format is an array of objects containing id and schema fields, for example:\n *\n * [{\"id\": \"0\", \"schema\": \"schema1\"}, {\"id\": \"2\", \"schema\": \"schema2\"}]\n *\n * @param allEntries the SchemaEntry objects to encode\n * @return The {@link org.schemarepo.SchemaEntry} objects encoded as a String\n */\n String schemasToJson(Iterable<SchemaEntry> allEntries);\n\n /**\n * Decode a string created by {@link #schemasToJson(Iterable)}\n *\n * @param str The String to decode\n * @return An {@link java.lang.Iterable} of {@link SchemaEntry}\n */\n Iterable<SchemaEntry> schemasFromJson(String str);\n}", "public static JSONTypeEnum detectStringJSONType(String stringOfUnknownType) {\n JSONTokener tokenizer = new JSONTokener(stringOfUnknownType);\n switch (tokenizer.nextClean()) {\n case '{':\n return JSONTypeEnum.OBJECT;\n case '[':\n return JSONTypeEnum.ARRAY;\n default:\n return JSONTypeEnum.STRING;\n }\n }", "public static String GetJSONString(String resourceString) {\n String retVal = \"\";\n resourceString = resourceString.replaceAll(\"<API_.*?>\", \"\").replaceAll(\"</API_.*?>\", \"\");\n try {\n String json = XML.toJSONObject(resourceString).toString();\n json = \"{\" + json.substring(1, json.length() - 1).replaceAll(\"\\\\{\", \"\\\\[{\").replaceAll(\"\\\\}\", \"\\\\]}\") + \"}\";\n retVal = json;\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return retVal;\n }", "@Test\n public void testBugFound151110() {\n String s = \"{\\\"names\\\":[{\\\"firstname\\\":\\\"Sebastian\\\",\\\"surname\\\":\\\"\\\\u00c5kesson\\\",\\\"gender\\\":\\\"male\\\"}]}\";\n Binson obj = Binson.fromJson(s);\n assertEquals(\"Åkesson\", obj.getArray(\"names\").getObject(0).getString(\"surname\"));\n }", "public String encodeValue(String value) {\r\n\t\treturn (null == value) ? \"\" : JSONUtil.encodeString(value);\r\n\t}", "private static String valueToJSONString(Object value) throws Exception \n {\n\t\t JSONObject json = new JSONObject(); \n\t if (value instanceof IdScriptableObject && \n\t ((IdScriptableObject)value).getClassName().equals(\"Date\") == true) \n\t { \n\t // Get the UTC values of the date \n\t Object year = NativeObject.callMethod((IdScriptableObject)value, \"getUTCFullYear\", null); \n\t Object month = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMonth\", null); \n\t Object date = NativeObject.callMethod((IdScriptableObject)value, \"getUTCDate\", null); \n\t Object hours = NativeObject.callMethod((IdScriptableObject)value, \"getUTCHours\", null); \n\t Object minutes = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMinutes\", null); \n\t Object seconds = NativeObject.callMethod((IdScriptableObject)value, \"getUTCSeconds\", null); \n\t Object milliSeconds = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMilliseconds\", null); \n\t \n\t // Build the JSON object to represent the UTC date \n\t \n\t json.put(\"zone\",\"UTC\"); \n\t json.put(\"year\",year); \n\t json.put(\"month\",month); \n\t json.put(\"date\",date); \n\t json.put(\"hours\",hours); \n\t json.put(\"minutes\",minutes); \n\t json.put(\"seconds\",seconds); \n\t json.put(\"milliseconds\",milliSeconds); \n\t return json.toString(); \n\t } \n\t else if (value instanceof NativeJavaObject) \n\t { \n\t Object javaValue = Context.jsToJava(value, Object.class); \n\t return javaValue.toString(); \n\t } \n\t else if (value instanceof NativeArray) \n\t { \n\t // Output the native array \n\t return nativeArrayToJSONString((NativeArray)value); \n\t } \n\t else if (value instanceof NativeObject) \n\t { \n\t // Output the native object \n\t return nativeObjectToJSONString((NativeObject)value); \n\t } \n\t else if( value instanceof Function){\n\t \treturn Context.toString(value);\n\t }\n\t else \n\t { \n\t return value.toString(); \n\t } \n }", "public static String getJson() {\n\t\treturn jsonString;\n\t}", "String toJSON();", "public String toJsonString() {\n String str;\n String str2;\n try {\n if (this.lifetime == null) {\n str = \"null\";\n } else {\n str = \"\\\"\" + this.lifetime.toString() + \"\\\"\";\n }\n if (this.frequency == null) {\n str2 = \"\";\n } else {\n str2 = \",\\\"frequency\\\":\" + this.frequency;\n }\n return \"{\\\"enabled\\\":\" + this.enabled + str2 + \",\\\"lifetime\\\":\" + str + \"}\";\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return \"\";\n }\n }", "public static JSONObject saveStringToJSONObject(final String json) {\n JSONObject jsonObject = null;\n try {\n jsonObject = new JSONObject(json);\n } catch (final JSONException e) {\n Log.e(TAG, \"\" + e.getMessage());\n }\n return jsonObject;\n }", "private void serializeString(final String string, final StringBuffer buffer)\n {\n String decoded = Unserializer.decode(string, charset);\n\n buffer.append(\"s:\");\n buffer.append(decoded.length());\n buffer.append(\":\\\"\");\n buffer.append(string);\n buffer.append(\"\\\";\");\n }", "public static void setJsonString(String jsonString) {\n\t\tMockSocket.jsonString = jsonString;\n\t}", "@Test\n public void testToJSONString() {\n System.out.println(\"toJSONString\");\n Setting s = Setting.factory();\n s.setStype(Setting.SETTING_TYPE.TPATH);\n s.setName(\"mytest\");\n String userFile = System.getProperty(\"user.dir\");\n\n s.setValue(Paths.get(userFile));\n String jResult = s.toJSONString();\n String jExpected = \"{\\\"stype\\\":\\\"TPATH\\\",\\\"name\\\":\\\"mytest\\\",\\\"value\\\":\\\"J:\\\\\\\\Java\\\\\\\\DBCUtilLib\\\"}\";\n assertEquals(jExpected, jResult);\n\n s.setValue(Setting.SETTING_TYPE.TPATH, Paths.get(userFile));\n jResult = s.toJSONString();\n assertEquals(jExpected, jResult);\n\n }", "JSONObject toJson();", "JSONObject toJson();", "public String getJson() {\n Object ref = json_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getJson() {\n Object ref = json_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getJson() {\n Object ref = json_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n json_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String renderJsonString(Object model) {\r\n \r\n StringBuffer buffer = new StringBuffer();\r\n jsonSerializer.deepSerialize(model, buffer);\r\n StringBuilder jsonResponse = new StringBuilder();\r\n jsonResponse.append(buffer);\r\n \r\n //Pattern.compile(regex).matcher(str).replaceAll(repl)\r\n String s = pattrenEscapedBackquote.matcher(jsonResponse.toString()).replaceAll(\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n //String s = jsonResponse.toString().replaceAll(\"\\\\\\\\\\\\\\\\\", \"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\r\n s = pattrenEscapedQuoubleQuotePrefixedwithBackquote.matcher(s).replaceAll(\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\");\r\n //s = s.replaceAll(\"\\\\\\\\\\\\\\\"\", \"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\");\r\n s = pattrenForDoubleQuote.matcher(s).replaceAll(\"$1\\\\\\\\\\\"\");\r\n s = pattrenEscapedQuoubleQuoteNotPrefixedwithBackquote.matcher(s).replaceAll(\"$1\\\\\\\\\\\"\");\r\n //s = s.replaceAll(\"([^\\\\\\\\])\\\"\", \"$1\\\\\\\\\\\"\");\r\n \r\n return (\"\\\"\" + s + \"\\\"\");\r\n }", "public static String toJSString(String inText)\n {\n //String text = HTMLDocument.simpleConvert(inText);\n // TODO: check if we need HTML conversion here and if this could be moved\n // to util or something\n return \"'\" + escapeJS(inText) + \"'\";\n }", "public static Object toJson(Object nativeObject) throws Exception\n { \n \tObject out = null;\n \tif(nativeObject instanceof String){\n \t\tout = nativeObject.toString();\n \t}\n \telse if(nativeObject instanceof ConsString){\n \t\tout = nativeObject.toString();\n \t}\n \telse if(nativeObject instanceof Integer){\n \t\tout = nativeObject;\n \t}\n \telse if(nativeObject instanceof Boolean){\n \t\tout = nativeObject;\n \t}\n \telse if(nativeObject instanceof Double){\n \t\tout = nativeObject;\n \t}\n \telse if (nativeObject instanceof NativeArray) \n { \n out = new JSONArray(nativeArrayToJSONString((NativeArray)nativeObject)); \n } \n else if (nativeObject instanceof NativeObject) \n { \n \tString kkkk = nativeObjectToJSONString((NativeObject)nativeObject);\n \ttry {\n out = new JSONObject(kkkk); \n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\tSystem.out.println(kkkk);\n// \t\tthrow e;\n \t}\n }\n else if(nativeObject instanceof Function){\n \tout = new HAPFunctionType(Context.toString(nativeObject));\n }\n else if(nativeObject instanceof NativeJavaObject){\n \tObject javaObj = ((NativeJavaObject)nativeObject).unwrap();\n \tout = toJson(javaObj);\n \tif(out==null){\n \tString jsonStr = HAPSerializeManager.getInstance().toStringValue(javaObj, HAPSerializationFormat.JSON);\n \tif(javaObj instanceof List || javaObj instanceof Set) out = new JSONArray(jsonStr);\n \telse out = new JSONObject(jsonStr);\n \t}\n }\n else if(nativeObject instanceof Undefined) {\n// \tthrow new HAPCommonException(\"Undefined Value!!!!\");\n }\n \treturn out; \n }", "public JSONResponse(String jsonString) {\n this.jsonString = jsonString;\n }", "public String toJsonString() {\n\t\tString json = null;\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\n\t\ttry {\n\t\t\tjson = mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\t}", "String getJson();", "String getJson();", "String getJson();", "public static String jsonQuote(String value) {\n\tif (value == null)\n\t return null;\n\telse\n\t return String.format(\"\\\"%s\\\"\", value);\n }", "public String toJSON() throws JSONException;", "public abstract Object toJson();", "String parseObjectToJson(Object obj);", "public String getJson();", "public String getJson() {\n Object ref = json_;\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 json_ = s;\n return s;\n }\n }", "public String getJson() {\n Object ref = json_;\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 json_ = s;\n return s;\n }\n }", "public String getJson() {\n Object ref = json_;\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 json_ = s;\n return s;\n }\n }", "private static String escapeJavaString(String input)\n {\n int len = input.length();\n // assume (for performance, not for correctness) that string will not expand by more than 10 chars\n StringBuilder out = new StringBuilder(len + 10);\n for (int i = 0; i < len; i++) {\n char c = input.charAt(i);\n if (c >= 32 && c <= 0x7f) {\n if (c == '\"') {\n out.append('\\\\');\n out.append('\"');\n } else if (c == '\\\\') {\n out.append('\\\\');\n out.append('\\\\');\n } else {\n out.append(c);\n }\n } else {\n out.append('\\\\');\n out.append('u');\n // one liner hack to have the hex string of length exactly 4\n out.append(Integer.toHexString(c | 0x10000).substring(1));\n }\n }\n return out.toString();\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = new JSONObject(jSONObject0);\n JSONObject jSONObject2 = jSONObject1.putOpt(\"\", jSONObject0);\n Byte.compare((byte)42, (byte)42);\n JSONObject.quote(\"\");\n Byte.toUnsignedInt((byte)42);\n JSONObject.valueToString(jSONObject2, (-1394), (-1394));\n JSONObject jSONObject3 = new JSONObject(\"{\\n\\\"java.lang.String@0000000003\\\": {},\\n\\\"java.lang.String@0000000004\\\": \\\"java.lang.Class@0000000005\\\"\\n}\");\n String string0 = \"&<uWyN63)KiOjjs&n3\";\n JSONObject jSONObject4 = null;\n try {\n jSONObject4 = new JSONObject(\"&<uWyN63)KiOjjs&n3\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // A JSONObject text must begin with '{' at character 1 of &<uWyN63)KiOjjs&n3\n //\n verifyException(\"wheel.json.JSONTokener\", e);\n }\n }", "public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }", "private static String nativeArrayToJSONString(NativeArray nativeArray) throws Exception \n { \n Object[] propIds = nativeArray.getIds(); \n if (isArray(propIds) == true) \n {\n \tList<String> jsonArray = new ArrayList<String>();\n \tClass typeClass = null;\n for (int i=0; i<propIds.length; i++) \n { \n Object propId = propIds[i]; \n if (propId instanceof Integer) \n { \n Object value = nativeArray.get((Integer)propId, nativeArray);\n Object json = toJson(value);\n jsonArray.add(json+\"\");\n if(typeClass==null) typeClass = json.getClass();\n } \n } \n return HAPUtilityJson.buildArrayJson(jsonArray.toArray(new String[0]), typeClass);\n } \n else \n { \n \tMap<String, String> mapJson = new LinkedHashMap<String, String>();\n \tMap<String, Class<?>> mapTypeJson = new LinkedHashMap<String, Class<?>>();\n for (Object propId : propIds) \n { \n \tString key = propId.toString();\n Object value = nativeArray.get(key, nativeArray);\n Object json = toJson(value);\n mapJson.put(key, json+\"\");\n mapTypeJson.put(key, json.getClass()); \n } \n return HAPUtilityJson.buildMapJson(mapJson, mapTypeJson); \n }\n }", "@Override\r\n\tpublic String toJsonString() {\n\t\treturn null;\r\n\t}", "String getStringFromDictionary(JSONObject json, String str);", "public interface JsonConverter {\n\n /**\n * Encode the given object in a compatible form for the event bus.\n *\n * @param value the value to encode\n * @return the encoded object\n */\n Object encodeObject(Object value);\n\n /**\n * Decode the given object encoded with the encodeObject method.\n *\n * @param value the value to decode\n * @return the decoded object\n */\n Object decodeObject(Object value);\n}", "public static JSONObject parseStringToJSon(String jsonData) throws JSONException {\n final String trimmed = jsonData.trim ();\n final JSONTokener tokener = new JSONTokener (trimmed);\n JSONObject jsonObject = new JSONObject (tokener);\n return jsonObject;\n }", "public interface JsonParser {\n\n /**\n * convert string to POJO\n *\n * @param jsonString - string to convert to POJO\n * @param classType - POJO Type / Class Type to use for the deserialization\n * @param <T> the returned desirialized POJO\n * @return desiarilized POJO\n */\n <T> T toJsonPOJO(String jsonString, Class<T> classType);\n\n /**\n * convert from POJO to json string\n * @param data POJO to convert to json String\n * @return json string\n */\n String toJSONString(Object data);\n}", "@Override\n public String toString() {\n //https://github.com/google/gson/issues/388\n\n String src = super.toString();\n StringBuilder builder = new StringBuilder(src.length() * 4);\n for (char c : src.toCharArray()) {\n if (c >= 0x80) {\n // 为所有非ASCII字符生成转义的unicode字符\n writeUnicodeEscape(builder, c);\n } else {\n // 为ASCII字符中前128个字符使用转义的unicode字符\n int code = (c < ESCAPE_CODES.length ? ESCAPE_CODES[c] : 0);\n if (code == 0) {\n // 此处不用转义\n builder.append(c);\n } else if (code < 0) {\n // 通用转义字符\n writeUnicodeEscape(builder, (char) (-code - 1));\n } else {\n // 短转义字符 (\\n \\t ...)\n builder.append(\"\\\\\").append((char) code);\n }\n }\n }\n return builder.toString();\n }", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "<T> String toJson(T source);", "String getJSON();", "private JSON() {\n\t}", "public static void writeJSONString(@Nullable Object value, Path file) throws IOException {\n // We escape everything, so pure ASCII remains\n try (Writer out = IO.openOutputFile(file, StandardCharsets.US_ASCII)) {\n writeJSONString(value, out);\n }\n }", "@Override\r\n\tprotected void convertStringConst(String str) {\r\n\t\tappend(\"\\'\\\"\", str.replace(\"\\'\",\"\\'\\'\"), \"\\\"\\'\");\r\n\t}", "public XML2JSONObject(String name) {\r\n setName(name);\r\n setType(Type.String);\r\n }", "public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }", "public String toJson()\n\t{\n\t\tJsonStringEncoder encoder = JsonStringEncoder.getInstance();\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append('{');\n\n\t\tboolean needComma = true;\n\t\tif (m_Message != null)\n\t\t{\n\t\t\tchar [] message = encoder.quoteAsString(m_Message.toString());\n\t\t\tbuilder.append(\"\\n \\\"message\\\" : \\\"\").append(message).append('\"').append(',');\n\t\t\tneedComma = false;\n\t\t}\n\n\t\tif (m_ErrorCode != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n \\\"errorCode\\\" : \").append(m_ErrorCode.getValueString());\n\t\t\tneedComma = true;\n\t\t}\n\n\t\tif (m_Cause != null)\n\t\t{\n\t\t\tif (needComma)\n\t\t\t{\n\t\t\t\tbuilder.append(',');\n\t\t\t}\n\t\t\tchar [] cause = encoder.quoteAsString(m_Cause.toString());\n\t\t\tbuilder.append(\"\\n \\\"cause\\\" : \\\"\").append(cause).append('\"');\n\t\t}\n\n\t\tbuilder.append(\"\\n}\\n\");\n\n\t\treturn builder.toString();\n\t}", "private Object _getJSONTextValue() {\r\n if (_textValue != null) {\r\n switch (_type.getValue()) {\r\n case Type.BOOLEAN:\r\n return Boolean.valueOf(_textValue);\r\n case Type.NUMBER:\r\n return Double.valueOf(_textValue);\r\n default:\r\n return _textValue;\r\n }\r\n }\r\n return JSONNull.getInstance().toString();\r\n }", "public static String JsonToString(JsonObject jso, String param, String defaulx) {\n try {\n JsonElement res = securGetJSON(jso, param);\n if (res != null) {\n String result = res.getAsString();\n result = result.trim().replace(\"\\n\", \"\\\\n\").replace(\"\\t\", \"\\\\t\").replace(\"'\", \"''\");\n return result;\n } else {\n return defaulx;\n }\n } catch (Exception e) {\n// System.out.println(\"erro json a string\");\n return defaulx;\n }\n }", "@Test\n public void testMapOfStrings() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(4, jtc.stringMap.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"value1\\\":\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value2\\\":\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value3\\\":\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"value4\\\":\\\"456\\\"\"));\n }", "@Test\n @SmallTest\n public void testSerializeToJson() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-is-hidden':false,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n JSONObject expectedJsonObject = new JSONObject(jsonObjectString);\n\n CrashInfo c = createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertEquals(c.serializeToJson(), expectedJsonObject.toString());\n }", "String toJSONString(Object data);", "public String convertToString() {\n return mJSONObject.toString();\n }", "public String toJson() throws Exception {\r\n\t\treturn SimpleJson.HashMapToText(getJsonToken());\r\n\t}", "@Override\n public String toString() {\n return jsonString;\n }", "@Test\n\tpublic void testJsonEncoding() throws IOException {\n\t\tvalidateEncodingHandling(\"UTF16BE.json\", Charsets.UTF_16BE, \"The\\uD801\\uDC37 Na\\uD834\\uDD1Em\\uD834\\uDD1Ee\\uD801\\uDC37\");\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.ISO_8859_1, \"³ for ?, ¿ for ?\");\n\t\t// Reading ISO8859-1 as UTF8 will result in mapping errors. This is expected and can't be avoided if the wrong encoding has been specified.\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.UTF_8, \"� for ?, � for ?\");\n\t}", "public interface JsonPaser<C> {\n public JsonPaser me();\n\n public C toJson(String json);\n\n public String toJsonString(Object object);\n\n public <T> T toObject(String json, Class<T> type);\n\n public <T> T[] toObjectArray(String json, Class<T> type);\n\n public <T> Collection<T> toObjectList(String json, Class<T> type);\n\n public <T> T toObject(String name, C c, Class<T> type);\n\n public <T> T[] toObjectArray(String name, C c, Class<T> type);\n\n public <T> Collection<T> toObjectList(String name, C c, Class<T> type);\n\n}", "private static Object m7292a(String str) throws JSONException {\n Object obj = null;\n String trim = str.trim();\n if (trim.startsWith(\"{\") || trim.startsWith(\"[\")) {\n obj = new JSONTokener(trim).nextValue();\n }\n return obj == null ? trim : obj;\n }", "public static String javaScriptStringEnc(String s) {\n int ln = s.length();\n for (int i = 0; i < ln; i++) {\n char c = s.charAt(i);\n if (c == '\"' || c == '\\'' || c == '\\\\' || c == '>' || c < 0x20) {\n StringBuffer b = new StringBuffer(ln + 4);\n b.append(s.substring(0, i));\n while (true) {\n if (c == '\"') {\n b.append(\"\\\\\\\"\");\n } else if (c == '\\'') {\n b.append(\"\\\\'\");\n } else if (c == '\\\\') {\n b.append(\"\\\\\\\\\");\n } else if (c == '>') {\n b.append(\"\\\\>\");\n } else if (c < 0x20) {\n if (c == '\\n') {\n b.append(\"\\\\n\");\n } else if (c == '\\r') {\n b.append(\"\\\\r\");\n } else if (c == '\\f') {\n b.append(\"\\\\f\");\n } else if (c == '\\b') {\n b.append(\"\\\\b\");\n } else if (c == '\\t') {\n b.append(\"\\\\t\");\n } else {\n b.append(\"\\\\x\");\n int x = c / 0x10;\n b.append((char)\n (x < 0xA ? x + '0' : x - 0xA + 'A'));\n x = c & 0xF;\n b.append((char)\n (x < 0xA ? x + '0' : x - 0xA + 'A'));\n }\n } else {\n b.append(c);\n }\n i++;\n if (i >= ln) {\n return b.toString();\n }\n c = s.charAt(i);\n }\n } // if has to be escaped\n } // for each characters\n return s;\n }", "public static String asJsonString(VoteSession voteSession) {\n try {\n ObjectMapper objectMapper = new ObjectMapper();\n objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);\n objectMapper.registerModules(new JavaTimeModule());\n\n return objectMapper.writeValueAsString(voteSession);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static String getJsonString(Object obj) {\n\t\tString res = \"{}\";\n\t\tStringWriter out = new StringWriter();\n\t\ttry {\n\t\t\tJSONValue.writeJSONString(obj, out);\n\t\t\tres = out.toString();\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Error converting obj to string\", e);\n\t\t}\n\t\treturn res;\n\t}", "public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}", "public interface ConstString\n{\n\tString STRING_ENCODING_UTF8 = \"UTF-8\";\n\tString APPLICATION_XML = \"application/xml\";\n\tString APPLICATION_JSON = \"application/json\";\n\tString APP_JSON_UTF_8 = \"application/json;charset=UTF-8\";\n\tString APP_XML_UTF_8 = \"application/xml;charset=UTF-8\";\n}", "public native String stringFromJNI();", "public native String stringFromJNI();", "public native String stringFromJNI();" ]
[ "0.7163834", "0.71413463", "0.6817635", "0.6750428", "0.66676396", "0.64996904", "0.6474623", "0.64507866", "0.63077027", "0.62921506", "0.62142193", "0.61749035", "0.61234707", "0.60989195", "0.60886544", "0.6059833", "0.60468614", "0.604117", "0.601524", "0.5983991", "0.5966843", "0.5902865", "0.5901301", "0.58593255", "0.58436555", "0.58338046", "0.582167", "0.5808162", "0.5797714", "0.5792461", "0.5781053", "0.5779254", "0.57789713", "0.57662696", "0.5738604", "0.57299894", "0.5691033", "0.56615543", "0.5661322", "0.56342715", "0.5623687", "0.5612751", "0.56088763", "0.56088763", "0.55982244", "0.55982244", "0.55982244", "0.5598064", "0.5597079", "0.55952746", "0.55927193", "0.556449", "0.5562402", "0.5562402", "0.5562402", "0.55534047", "0.55382866", "0.55332285", "0.55163926", "0.551261", "0.5501605", "0.5501605", "0.5501605", "0.5486576", "0.5483756", "0.54770565", "0.54675794", "0.5463521", "0.5463352", "0.5458016", "0.54561377", "0.545373", "0.5447635", "0.5437662", "0.54354876", "0.5423797", "0.5410673", "0.5392548", "0.5382527", "0.5375762", "0.5369792", "0.5367297", "0.5365144", "0.53640443", "0.53541195", "0.5348602", "0.53463393", "0.5327964", "0.5324878", "0.53176486", "0.5312473", "0.5311616", "0.5311554", "0.5309911", "0.5306442", "0.5304243", "0.53009874", "0.530042", "0.5294824", "0.5294824", "0.5294824" ]
0.0
-1
Invio del turno di gioco ai client.
public void sendTurno() throws RemoteException, InterruptedException, IOException ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void action(BotInstance bot, Message message);", "@Test\n public void play() {\n System.out.println(client.botBegin());\n }", "public void nuevoTurno(Integrante i, String act, String sig);", "void askTurn();", "private void sendGameCommand(){\n\n }", "@Override\n public void action() {\n ACLMessage acl = blockingReceive();\n System.err.println(\"Hola, que gusto \" + acl.getSender() + \", yo soy \" + getAgent().getName());\n new EnviarMensaje().enviarMensajeString(ACLMessage.INFORM, \"Ag4\", getAgent(), \"Hola agente, soy \" + getAgent().getName(),\n \"COD0001\");\n }", "void turnOn() throws ActorServiceCallException;", "@Override\n public void action() {\n ACLMessage acl = receive();\n if (acl != null) {\n if (acl.getPerformative() == ACLMessage.REQUEST) {\n try {\n ContentElement elemento = myAgent.getContentManager().extractContent(acl);\n if (elemento instanceof PublicarServicio) {\n PublicarServicio publicar = (PublicarServicio) elemento;\n Servicio servicio = publicar.getServicio();\n jadeContainer.iniciarChat(servicio.getTipo(), servicio.getDescripcion());\n //myAgent.addBehaviour(new IniciarChatBehaviour(myAgent, servicio.getTipo(), servicio.getDescripcion()));\n } else if (elemento instanceof EnviarMensaje) {\n EnviarMensaje enviar = (EnviarMensaje) elemento;\n Mensaje mensaje = enviar.getMensaje();\n jadeContainer.enviarMensajeChatJXTA(mensaje.getRemitente(), mensaje.getMensaje());\n }\n } catch (CodecException ex) {\n System.out.println(\"CodecException: \" + ex.getMessage());\n } catch (UngroundedException ex) {\n System.out.println(\"UngroundedException: \" + ex.getMessage());\n } catch (OntologyException ex) {\n System.out.println(\"OntologyException: \" + ex.getMessage());\n }\n }\n } else {\n block();\n }\n }", "public String interact() {\n return \"Nguiikk!\";\n }", "private void playAI (int actualAI) {\n }", "public void sendStartGame() {\n \t\tclient.sendTCP(new StartGame());\n \t}", "@Override\r\n public void sendClientGame(ClientGame clientGame) {\r\n\r\n //System.out.println(\"Invio \"+clientGame+clientGame.getReserve()+\" a \"+username);\r\n ClientGameNetObject clientGameNetObject = new ClientGameNetObject(MessageHeaderEnum.CLIENTGAME.toString(),clientGame);\r\n //System.out.println(clientGameNetObject+\" : \"+clientGameNetObject.getClientGame().getReserve()+\" : \"+clientGame.getActivePlayerUsername());\r\n sendObject(clientGameNetObject);\r\n }", "void onTurn(GameIO io, GameState move);", "public void powerOn() { //power_on\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.ON));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.ON) {\n isTurningOn = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n }\n }", "public void interactuarCon(VehiculoMoto vehiculo) {\r\n Vehiculo nuevoVehiculo = VehiculoAuto.nuevoVehiculo(vehiculo);\r\n this.actualizarMovimiento(nuevoVehiculo, vehiculo);\r\n observador.cambiarVehiculo(nuevoVehiculo);\r\n Logger.instance.log(\"Cambio de vehiculo! Ahora es un auto.\\n\");\r\n }", "public void DoGoToSeat() {\n\t\tcommand = Command.FollowWaiter;\n\t}", "public void beginTurn(){\n }", "public void launchTurn() {\n \twhile (getCurrentPlayer() instanceof AbstractIA) {\n \t\tSystem.out.println(\"Some thing happen or nothing\");\n \t\tjouerIA();\n \t\tendTurn();\n \t\t//setCurrentPlayer(getJoueur1());\t\n \t}\n \t\n }", "public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }", "public String interact() {\n return suara;\n }", "private void turn() throws IOException {\n // get the color of turn\n int turn = fromServer.readInt();\n\n if(turn == this.color){\n boardComponent.setEnabled(true);\n setMsgText(\"It's your turn\");\n } else if (turn == this.opponentColor) {\n boardComponent.setEnabled(false);\n setMsgText(\"Waiting\");\n } else {\n\n }\n }", "@Override\r\n\tpublic void doMessage(InnerMessage msg, IConnect session) throws Exception {\n\t\tGameGateEnterGameSuccessResponse resq = GameGateEnterGameSuccessResponse.parseFrom(msg.getBody());\r\n\t\tIConnect con = ConnectorManage.getMinaConnect(msg.getClientSessionId());\r\n\t\tif (con != null) {\r\n\t\t\tcon.setRoleId(resq.getRoleId());\r\n\t\t\tMessageSend.sendGateToClient(createEnterGameResponse(resq.getRoleId()), msg.getClientSessionId());\r\n\t\t\tlog.error(\"send client ok\" + msg.getClientSessionId());\r\n\t\t} else {\r\n\t\t\tlog.error(\"不存在id\" + msg.getClientSessionId());\r\n\t\t}\r\n\t}", "public void sendRequest() {\r\n\t\t\r\n\t\tclient.join(this, isHost, gameCode, playerName, playerNumber);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void startTurn() {\n\t\t\r\n\t}", "public void mostrarTurnos(String act, String sig);", "public void execute() {\n\t\tString userID = clientMediator.getUserName();\n\t\tString id = reactToController.communicateWith(userID);\n\t\tif(id != null){\n\t\t\tclientMediator.setReactTo(id);\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tString message = reactToController.reactToEntity(id,userID);\n\t\t\tString result = \"You just interacted with \" + id + \", so you \" + message + \" at \" + df.format(new Date()).toString();\n\t\t\tclientMediator.setReactResult(result);\n\t\t\tclientMediator.getEventQueue().add(new ReactToEvent(id,userID));\n\t\t}\n\t}", "private void getAI(){\n\n }", "public void forfaitCli() throws IOException, InterruptedException {\n printOut(cliToolsManager.sceneInitializer(80));\n\n for(int i=0;i<15;i++)\n printOut(\"\");\n\n printOut(cliToolsManager.centerThatString(\"TUTTI GLI ALTRI GIOCATORI SI SONO DISCONNESSI\", 80));\n printOut(cliToolsManager.centerThatString(\"HAI VINTO\", 80));\n\n printOut(\"\");\n printOut(\"\");\n\n printOut(cliToolsManager.simpleQuestionsMaker(\"Premi qualsiasi tasto per uscire\", 80, true));\n readIt();\n }", "GameResult start(Player uno , Player due , Model model ,Controller controller , ViewInterface view , gestioneInput io) throws IOException;", "public void connect() {\n aiConfiguration = new AIConfiguration(getClientAccessToken(),\n AIConfiguration.SupportedLanguages.English,\n AIConfiguration.RecognitionEngine.System);\n aiService = AIService.getService(context, aiConfiguration);\n aiService.setListener(this);\n aiDataService = new AIDataService(context, aiConfiguration);\n }", "void action(String response, GameChatEvent cause) throws InterruptedException, IOException;", "@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\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});\r\n\t\t}", "public void playTurn() {\r\n\r\n }", "void onClickNextTurn();", "void onTurn();", "public void doInteract()\r\n\t{\n\t}", "void provideNewTurn();", "@Test\n public void cash() {\n System.out.println(BotClient.getCash(0));\n }", "public void requestBot(String s) {\n\t\tLEDManager.requestConnection(s);\n\t}", "private void humanTurn() \n {\n \n playTurn();\n }", "public void act() \n {\n verificaClique();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),InGame.class);\n\t\t\t\t\t\tBille bille= Bille.getBille();\n\t\t\t\t\t\tchrono.reset();\n\t\t\t\t\t\tbille.setVies(8);\n\t\t\t\t\t\ti.putExtra(\"lvl\", InGame.getlvl()+1);\n\t\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t\t}", "default void interactWith(Teleporter tp) {\n\t}", "default void interactWith(Torch torch) {\n\t}", "public void sendToTrivia() {\n Intent intent = new Intent(getApplicationContext(), TriviaActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }", "@Override\n\tpublic void onNaviTurnClick() {\n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\t\tint arg1) {\n\t\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),InGame.class);\n\t\t\t\t\t\tBille bille= Bille.getBille();\n\t\t\t\t\t\tchrono.reset();\n\t\t\t\t\t\tbille.setVies(8);\n\t\t\t\t\t\ti.putExtra(\"lvl\", InGame.getlvl());\n\t\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t\t}", "public void turno(Personaje opp);", "public void interact(Human user)\n {\n System.out.println(\"You will have to talk to the Starbucks(c) cashier to get a cup of COFFEE\"); \n }", "private void makeAction(JSONObject request, DataOutputStream clientStream) throws IOException, ParseException {\n\t\tGossip_action_message.Action action = Gossip_parser.getClientAction(request);\n\t\tString sender = Gossip_parser.getClientName(request);\n\t\tString receiver = Gossip_parser.getClientReceiver(request);\n\n\t\ttry {\n\t\t\tswitch(action) {\n\t\t\t\n\t\t\t\tcase LOOKUP_OP: {\n\t\t\t\t\tif (data.searchUser(receiver) == true)\n\t\t\t\t\t\tsendReply(new Gossip_userinfo_message(Gossip_success_message.successMsg.USERINFO, data.getUser(receiver)), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase FRIENDSHIP_OP: {\n\t\t\t\t\tif (!data.addFriendship(sender, receiver))\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.FRIENDALREADY), clientStream);\n\t\t\t\t\telse\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase RM_FRIENDSHIP_OP: {\n\t\t\t\t\tif (!data.removeFriendship(sender, receiver))\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.FAIL_OP), clientStream);\n\t\t\t\t\telse\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase MSG_FRIEND_OP: {\n\t\t\t\t\t//non è permesso scambiare messaggi tra utenti non amici\n\t\t\t\t\tif (!data.getFriends(sender).contains(data.getUser(receiver)))\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.OPNOTALLOWED), clientStream);\n\t\t\t\t\telse {\n\t\t\t\t\t\tGossip_text_notification_message notification;\n\t\t\t\t\t\tString text = Gossip_parser.getText(request);\n\t\t\t\t\t\tString senderLang = Gossip_parser.getLang(data.getUser(sender).getLanguage());\n\t\t\t\t\t\tString receiverLang = Gossip_parser.getLang(data.getUser(receiver).getLanguage());\n\t\t\t\t\t\t//traduco testo\n\t\t\t\t\t\tString translatedText = Gossip_translator.translate(text, senderLang, receiverLang);\n\t\t\t\t\t\tSocket receiver_socket;\n\t\t\t\t\t\t//se la traduzione mi restituisce null, invio il testo non tradotto\n\t\t\t\t\t\tif (translatedText == null)\n\t\t\t\t\t\t\tnotification = new Gossip_text_notification_message(sender, text);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tnotification = new Gossip_text_notification_message(sender, translatedText);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//recupero il socket per le notifiche al client\n\t\t\t\t\t\t\treceiver_socket = data.getUser(receiver).getMessageSocket();\n\t\t\t\t\t\t\tsynchronized(receiver_socket) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//invio notifica\n\t\t\t\t\t\t\t\tsendReply(notification, new DataOutputStream(receiver_socket.getOutputStream()));\n\t\t\t\t\t\t\t\t//invio risposta\n\t\t\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (FriendOfflineException e) {\n\t\t\t\t\t\t\t//amico offline\n\t\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.FRIENDOFFLINE), clientStream);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase FILE_FRIEND_OP: {\n\t\t\t\t\t//non è permesso inviare file a utenti che non sono amici\n\t\t\t\t\tif (!data.getFriends(sender).contains(data.getUser(receiver)))\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.OPNOTALLOWED), clientStream);\n\t\t\t\t\telse {\n\t\t\t\t\t\tString filename = Gossip_parser.getFilename(request);\n\t\t\t\t\t\tSocket receiver_socket;\n\t\t\t\t\t\tGossip_file_notification_message notification = new Gossip_file_notification_message(sender, filename);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//recupero socket per le notificihe\n\t\t\t\t\t\t\treceiver_socket = data.getUser(receiver).getMessageSocket();\n\t\t\t\t\t\t\tsynchronized (receiver_socket) {\n\t\t\t\t\t\t\t\tsendReply(notification, new DataOutputStream(receiver_socket.getOutputStream()));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//ridirigo quello che scrive il receiver verso il mittente (hostname e porta per ricevere il file)\n\t\t\t\t\t\t\t\tclientStream.writeUTF(new DataInputStream(new BufferedInputStream(receiver_socket.getInputStream())).readUTF());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (FriendOfflineException e) {\n\t\t\t\t\t\t\t//friend offline\n\t\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.FRIENDOFFLINE), clientStream);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} break;\n\t\t\t}\n\t\t} catch (NodeNotFoundException e) {\n\t\t\t//utente non registrato\n\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.NICKUNKNOWN), clientStream);\n\t\t}\n\t}", "private void initChatbot(){\n final AIConfiguration config = new AIConfiguration(dialogFlowKey,\n AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);\n aiDataService = new AIDataService(getActivity(),config);\n customAIServiceContext = AIServiceContextBuilder.buildFromSessionId(uuid);\n aiRequest = new AIRequest();\n\n }", "public void interact() {\r\n\t\t\r\n\t}", "@Override\n public void interact(){\n if(System.currentTimeMillis() - lastInteraction < 200){\n return;\n }\n\n // Set new lastInterTime\n lastInteraction = System.currentTimeMillis();\n\n // Code\n try {\n System.out.println(getPlayer().getJoueur().getPosition());\n getPlayer().getCollisionner().getInteractiveObject(getPlayer().getJoueur().getVisual()).interact(getPlayer());\n } catch (InstanceNotFoundException e) {\n System.out.println(e.getMessage());\n return;\n }\n }", "@Override\n public void interact() {\n System.out.print(\"Halo aku ikan di bawah laut dalam lho, aku punya lampu supaya aku\" \n + \"bisa tetap melihat di kegelapan\");\n }", "@Override\r\n\tpublic void onNaviTurnClick() {\n\r\n\t}", "public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }", "public void connectToAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.CONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.CONNECT) {\n isConnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "GameState requestActionGamePiece();", "public void addAI(String inpt, int passedCommunicationTurn) {\n\t\tString[] ais = inpt.split(\":\");\n\t\tfor(int p = 0; p < ais.length; p++){\n\t\t\t\n\t\t\tSystem.out.println(ais[p] + \" GameEngine\");\n\t\t}\n\t\t//System.out.println(ais.length + \" GameEngine\");\n\t\tfor(int a = 0; a < ais.length; a++){\n\t\t\t\n\t\t\t//System.out.println(ais[a] + \" GameEngine\");\n\t\t\tString[] aiInfo = ais[a].split(\" \");\n//\t\t\tfor(int i = 0; i < aiInfo.length; i++){\n//\t\t\t\t\n//\t\t\t\tSystem.out.println(aiInfo[i] + \" GameEngine\");\n//\t\t\t}\n\t\t\tMethodParameter parameters = new MethodParameter();\n\t\t\tparameters.setAddAI(new Integer(aiInfo[0]),new Long(aiInfo[1]),aiInfo[2]);\n\t\t\t\n\t\t\tif(passedCommunicationTurn != -1){\n\t\t\t\tcommands.add(MethodCallup.ADDAI, parameters, communicationTurn);\n\t\t\t}else{\n\t\t\t\tcommands.add(MethodCallup.ADDAI, parameters, passedCommunicationTurn);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void sendRequest(Action action) {\n ACLMessage request = new ACLMessage(ACLMessage.REQUEST);\n request.setLanguage(new SLCodec().getName());\n request.setOntology(MobilityOntology.getInstance().getName());\n try {\n getContentManager().fillContent(request, action);\n request.addReceiver(action.getActor());\n send(request);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "void willStartTurn() throws RemoteException;", "Turno consultarTurno();", "public interface ApiCommand extends Serializable {\n public void execute(GiftApiClient apiClient);\n}", "void realizarSolicitud(Cliente cliente);", "public static void continueChat()\r\n {\r\n do\r\n {\r\n NPCChat.clickContinue(true);\r\n General.sleep(300, 450);\r\n }\r\n while (NPCChat.getClickContinueInterface() != null);\r\n General.sleep(300, 350);\r\n }", "@Override\n\tpublic void run() \n\t{\n\t\tcommunicator = com.zeroc.Ice.Util.initialize();\n GameServerPrx clientPrx = GameServerPrx.checkedCast(\n communicator.stringToProxy(\"client:default -h 58.167.142.74 -p 10002\")).ice_twoway().ice_secure(false).ice_collocationOptimized(false).ice_compress(true);\n\n if(clientPrx == null)\n {\n //If connection is failed due to server problems\n System.err.println(\"SB Connect: \" + \"Invalid proxy\");\n return;\n }\n System.out.println(\"SB Connect: \" + \"Connected\");\n Server server = new Server();\n server.address = ServerInfo.ADDRESS;\n server.UUID = ServerInfo.UUID;\n server.port = ServerInfo.PORT;\n server.name = ServerInfo.NAME;\n server.players = (short) players;\n\t\tclientPrx.sendServerDetails(server);\n\t\tSystem.out.println(\"SB Connect: \" + \"Data sent\");\n\t}", "public void comer(){\r\n\t\tSystem.out.println(\"He comido\");\r\n\t}", "public void otherTurn\n (String name);", "public static void main(String... args) {\n\n OAuthRequest oathReq = new OAuthRequest();\n Gson gson = new Gson();\n String hostname = get(\"ne.url.hostname\");\n String urlOAuth2 = hostname + get(\"ne.url.auth\");\n\n try {\n // 3. Set the generated Client ID, Secret generated in https://developer.equinix.com (Your App).\n // 4. Set the grant type to \"password' or 'client_credentials' if you want API Gateway to generate the Access token.\n oathReq.clientId(get(\"ne.client.access.client.id\"));\n oathReq.clientSecret(get(\"ne.client.access.client.secret\"));\n oathReq.grantType(get(\"ne.client.access.client.granttype\"));\n oathReq.userName(get(\"ne.client.access.client.username\"));\n String password = new String(Base64.getDecoder().decode(get(\"ne.client.access.client.base64.password\")), \"UTF-8\");\n oathReq.userPassword(password);\n\n HttpResponse<String> response = Unirest.post(urlOAuth2)\n .header(\"Content-Type\", get(\"ne.client.http.body.contenttype\"))\n .body(gson.toJson(oathReq)).asString();\n OAuthResponse oauthResponse = gson.fromJson(response.getBody(), OAuthResponse.class);\n\n\n System.out.println(\"OAuth2 Access Token: \" + oauthResponse.getAccessToken());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void executeAccion(Client client, Model model) {\n\n if (Constants.ADD.equals(client.getAction())) {\n final String uri = \"https://backend.bgarcial.me/clients\";\n RestTemplate restTemplate = new RestTemplate();\n Client result = restTemplate.postForObject(uri, client, Client.class);\n System.out.println(\"Run Name:\" + result.getName());\n System.out.println(\"Run Id:\" + result.getId());\n\n model.addAttribute(\"message\", \"Calling the Backend - User was Added\");\n\n } else if (Constants.Delete.equals(client.getAction())) {\n final String uri = \"https://backend.bgarcial.me/clients/delete\";\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.postForObject(uri, client, ArrayList.class);\n model.addAttribute(\"message\", \"Calling the Backend - User was Removed!\");\n }\n }", "public void act() \n {\n movegas();\n \n atingido2(); \n \n }", "public void Turn(){\r\n \r\n }", "private void sendCommand(int recipient, int action) {\r\n\t\tString command = \"*\" + recipient + \";\" + action + \";\" + \"0\" + \";\" + \"0\"\r\n\t\t\t\t+ \"#\";\r\n\t\tlogger.debug(\"Sende Kommando\");\r\n\t\tcom.sendString(command);\r\n\t\tlogger.debug(\"Senden des Kommandos beendet\");\r\n\t}", "public void ejecutarConsola() {\n\n try {\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n this.imprimir(this._agente.getActions());\n this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"SOLUCIONADO\");\n } else {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }", "@Override\n public void interact() {\n System.out.println(\"Hi I'm Kingfisher Bird! \");\n System.out.println(\"I can fly at 40km/h top speed \");\n }", "public boolean startClient(OnlineScene game) {\n InetSocketAddress hostAddress = new InetSocketAddress(Client.address, port);\n try {\n client = SocketChannel.open(hostAddress);\n client.configureBlocking(true);\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n\n name = Scene.userInfo != null ? Scene.userInfo.getUserID() : UIHandler.username;\n\n log(\"started\");\n this.game = game;\n\n startThreads();\n sendRegisterMessage();\n return true;\n }", "public abstract Action takeTurn();", "protected void volverInicio() {\n\t\tIntent i = new Intent(this, ImcActivity.class);\n\t\tthis.startActivity(i);\n\t\t\n\t}", "public SetPlayerTurnAction() {}", "Client join(Participant participant);", "public void sendeLobby();", "private void cs0() {\n\t\t\tif(!Method.isChatiing()){\n\t\t\t\tMethod.npcInteract(RUNESCAPEGUIDE, \"Talk-to\");\n\t\t\t}\n\t\t\t\n\t\t}", "public void tellJoke(){\n new EndpointAsyncTask().execute(this);\n }", "@Override\r\n public void doTrigger(Join im, IIrcControl control) {\r\n WhoisRequest.startWhois(im.getServerPeer(), control, Collections.singleton(im.getFrom().getNick()), null);\r\n }", "public void interactuarCon(VehiculoAuto vehiculo) {\r\n Vehiculo nuevoVehiculo = Vehiculo4x4.nuevoVehiculo(vehiculo);\r\n this.actualizarMovimiento(nuevoVehiculo, vehiculo);\r\n observador.cambiarVehiculo(nuevoVehiculo);\r\n Logger.instance.log(\"Cambio de vehiculo! Ahora es una 4x4.\\n\");\r\n }", "public void doTurn() {\n\t\tGFrame.getInstance().aiHold();\n\t}", "public void itsYourTurn();", "public void setAI(boolean ai) {\r\n this.ai = ai;\r\n }", "public void takeTurn(IViewRequestor requestor);", "void waitingForMyTurn();", "public abstract void interact (Player p, int interactAmount);", "public static void main(String[] args){\n\n GameClientImpl client = new GameClientImpl();\n client.startConnection(\"127.0.0.1\", ProtocolConfiguration.PORT);\n\n }", "void action(Locale locale, Player player, InventoryGUI gui);", "public void playerTurnStart() {\n\r\n\t}", "public void onTurnBegin() {\n\n\t}", "@Override\n public void interact(Player player) {\n if(player.getHasKey()) {\n System.out.println(\"You turn the key in the keyhole.\");\n openDoor(player);\n } else {\n System.out.println(\"It's a really old door made out of murky dark wood. On the right side of the door, there is a handle in pure gold. \\n \" +\n \"The sparkling handle seems out of place in comparisson to the rest of the door. You try to turn it, but the door seems locked. \\n \" +\n \"Underneath the handle you spot a keyhole. ....*NÖFF*.... something... or someone seems to be on the other side\");\n }\n }", "public void startOppTurn(GameState state) {\n }", "public TurnoVOClient() {\r\n }", "public Player getPlayerInTurn();", "public void yourTurn();" ]
[ "0.5753302", "0.5669856", "0.56693375", "0.56423026", "0.5593687", "0.55909175", "0.55883986", "0.55815876", "0.553919", "0.5521702", "0.5508172", "0.54552513", "0.5454281", "0.54504097", "0.54172474", "0.5409939", "0.5391959", "0.53800035", "0.537359", "0.5368816", "0.53615326", "0.53501475", "0.5338476", "0.5308738", "0.5304748", "0.52895266", "0.52818745", "0.527971", "0.5271497", "0.5271384", "0.527068", "0.5267385", "0.52672064", "0.52543837", "0.52519214", "0.5249992", "0.52447814", "0.52444375", "0.5243179", "0.5234325", "0.52291924", "0.5226599", "0.5218365", "0.5215973", "0.52119386", "0.5204208", "0.5203346", "0.5196054", "0.51956415", "0.5187102", "0.51843095", "0.5182633", "0.51724035", "0.51711774", "0.5162958", "0.51614213", "0.51537013", "0.5139873", "0.5138893", "0.51385194", "0.51237893", "0.51202995", "0.5115106", "0.511115", "0.50878584", "0.5085626", "0.50841177", "0.5080731", "0.5078665", "0.5074835", "0.5073364", "0.5072356", "0.506916", "0.5065212", "0.5062671", "0.5060486", "0.5058144", "0.5050522", "0.50475234", "0.5040601", "0.5040425", "0.5039424", "0.5038674", "0.5038288", "0.503362", "0.502495", "0.5022558", "0.5018781", "0.50151473", "0.501143", "0.50104433", "0.5000778", "0.500076", "0.49960384", "0.49945956", "0.49828243", "0.49776205", "0.49752912", "0.4972945", "0.49711996" ]
0.67016715
0
Invio dell'oggetto partita (stato della), aggiornato, ai client.
public void sendPartita(Partita partita) throws InterruptedException, RemoteException, IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void crearPedidoGenerandoOPC() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25, 29, 33 };\n\t\tint[] cantidades = { 6, 8, 11 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 3\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\t\t\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}", "void realizarSolicitud(Cliente cliente);", "public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\n }", "public void sendTurno() throws RemoteException, InterruptedException, IOException ;", "public static void promedioBoletaCliente() {\r\n\t\tPailTap clienteBoleta = getDataTap(\"C:/Paula/masterset/data/9\");\r\n\t\tPailTap boletaProperty = getDataTap(\"C:/Paula/masterset/data/4\");\r\n\t\t\r\n\t\tSubquery promedio = new Subquery(\"?Cliente_id\", \"?Promedio\", \"?Dia\")\r\n\t\t\t\t.predicate(clienteBoleta, \"_\", \"?data\")\r\n\t\t\t\t.predicate(boletaProperty, \"_\", \"?data2\")\r\n\t\t\t\t.predicate(new ExtractClienteBoleta(), \"?data\").out(\"?Cliente_id\", \"?Boleta_id\", \"?Dia\")\r\n\t\t\t\t.predicate(new ExtractBoletaTotal(), \"?data2\").out(\"?Boleta_id\",\"?Total\")\r\n\t\t\t\t.predicate(new Avg(), \"?Total\").out(\"?Promedio\");\r\n\t\t\r\n\t\tSubquery tobatchview = new Subquery(\"?json\")\r\n\t\t\t\t.predicate(promedio, \"?Cliente\", \"?Promedio\", \"?Dia\")\r\n\t\t\t\t.predicate(new ToJSON(), \"?Cliente\", \"?Promedio\", \"?Dia\").out(\"?json\");\r\n\t\tApi.execute(new batchview(), tobatchview);\r\n\t\t//Api.execute(new StdoutTap(), promedio);\r\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}", "public void getOrdini(){\n caricamento = ProgressDialog.show(getActivity(), \"Cerco i tuoi ordini!\",\r\n \"Connessione con il server in corso...\", true);\r\n caricamento.show();\r\n\r\n JSONObject postData = new JSONObject();\r\n try {\r\n postData.put(\"id_utente\", Parametri.id);\r\n\r\n } catch (Exception e) {\r\n caricamento.dismiss();\r\n return;\r\n }\r\n\r\n Connessione conn = new Connessione(postData, \"POST\");\r\n conn.addListener(this);\r\n //In Parametri.IP c'è la path a cui va aggiunta il nome della pagina.php\r\n conn.execute(Parametri.IP + \"/SistudiaMieiOrdiniAndroid.php\");\r\n\r\n }", "public void recibir_estado_partida(){\n\n }", "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "public void apagarClienteConta(ApagarDadosFaturamentoHelper helper) throws ErroRepositorioException;", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void interactuarCon(VehiculoMoto vehiculo) {\r\n Vehiculo nuevoVehiculo = VehiculoAuto.nuevoVehiculo(vehiculo);\r\n this.actualizarMovimiento(nuevoVehiculo, vehiculo);\r\n observador.cambiarVehiculo(nuevoVehiculo);\r\n Logger.instance.log(\"Cambio de vehiculo! Ahora es un auto.\\n\");\r\n }", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "@Override\r\n public void sendClientGame(ClientGame clientGame) {\r\n\r\n //System.out.println(\"Invio \"+clientGame+clientGame.getReserve()+\" a \"+username);\r\n ClientGameNetObject clientGameNetObject = new ClientGameNetObject(MessageHeaderEnum.CLIENTGAME.toString(),clientGame);\r\n //System.out.println(clientGameNetObject+\" : \"+clientGameNetObject.getClientGame().getReserve()+\" : \"+clientGame.getActivePlayerUsername());\r\n sendObject(clientGameNetObject);\r\n }", "private static void crearPedidoGenerandoOPP() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25 };\n\t\tint[] cantidades = { 7 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 2\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}", "@Override\n\tpublic void cadastrar(Cliente o) {\n\t\t\n\t}", "public interface GestionAsintomaticosInt extends Remote\n{\n \n public boolean registrarAsintomatico(PacienteCllbckInt objPaciente, int idPaciente) throws RemoteException;\n public boolean enviarIndicador(int id, float ToC) throws RemoteException;\n}", "@Override\n public void action() {\n ACLMessage acl = receive();\n if (acl != null) {\n if (acl.getPerformative() == ACLMessage.REQUEST) {\n try {\n ContentElement elemento = myAgent.getContentManager().extractContent(acl);\n if (elemento instanceof PublicarServicio) {\n PublicarServicio publicar = (PublicarServicio) elemento;\n Servicio servicio = publicar.getServicio();\n jadeContainer.iniciarChat(servicio.getTipo(), servicio.getDescripcion());\n //myAgent.addBehaviour(new IniciarChatBehaviour(myAgent, servicio.getTipo(), servicio.getDescripcion()));\n } else if (elemento instanceof EnviarMensaje) {\n EnviarMensaje enviar = (EnviarMensaje) elemento;\n Mensaje mensaje = enviar.getMensaje();\n jadeContainer.enviarMensajeChatJXTA(mensaje.getRemitente(), mensaje.getMensaje());\n }\n } catch (CodecException ex) {\n System.out.println(\"CodecException: \" + ex.getMessage());\n } catch (UngroundedException ex) {\n System.out.println(\"UngroundedException: \" + ex.getMessage());\n } catch (OntologyException ex) {\n System.out.println(\"OntologyException: \" + ex.getMessage());\n }\n }\n } else {\n block();\n }\n }", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "public String obtemOponente(Integer idJogador) throws RemoteException;", "public void iniciarNovaPartida(Integer posicao);", "public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + respuesta);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }", "private void executeRicercaAccertamentoPerOrdinativo() {\n \tif (model.getGestioneOrdinativoStep1Model().getAnnoAccertamento() == null || model.getGestioneOrdinativoStep1Model().getNumeroAccertamento() == null) {\n\n \t\tif(!sonoInAggiornamento()){\n \t\t\t\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamento(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamentoOriginale(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(0);\n\n \t\t\tRicercaAccertamentiSubAccertamenti request= new RicercaAccertamentiSubAccertamenti();\n \t\t\trequest.setEnte(sessionHandler.getEnte());\n \t\t\trequest.setRichiedente(sessionHandler.getRichiedente());\n\n\n \t\t\tParametroRicercaAccSubAcc param= new ParametroRicercaAccSubAcc();\n \t\t\tparam.setAnnoEsercizio(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setAnnoAccertamento(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setDisponibilitaAdIncassare(true);\n\n \t\t\t// Capitolo\n \t\t\tif (model.getGestioneOrdinativoStep1Model().getCapitolo() != null) {\n \t\t\t\tparam.setNumeroCapitolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getNumCapitolo());\n \t\t\t\tparam.setNumeroArticolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getArticolo());\n \t\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb()){\n \t\t\t\t\tparam.setNumeroUEB(model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb().intValue());\n \t\t\t\t}\n \t\t\t}\n\n\n \t\t\tparam.setCodiceDebitore(model.getGestioneOrdinativoStep1Model().getSoggetto().getCodCreditore());\n \t\t\tparam.setIsRicercaDaAccertamento(false);\n \t\t\trequest.setParametroRicercaAccSubAcc(param);\n\n\n \t\t\taddNumAndPageSize(request, \"listaAccertamentoOrdinativoId\");\n\n \t\t\tRicercaAccertamentiSubAccertamentiResponse response= movimentoGestionService.ricercaAccertamentiSubAccertamentiPerOrdinativoIncasso(request);\n\n \t\t\tif(response.isFallimento() || !response.getErrori().isEmpty()){\n\n \t\t\t\t//setto gli errori cosi che siano segnalati lato app!\n \t\t\t\taddErrori(response.getErrori());\n\n \t\t\t}else{\n\n \t\t\t\tif (response.getListaAccertamenti() != null && response.getListaAccertamenti().size() > 0) {\n \t\t\t\t\tfor (Accertamento currentAccetamento : response.getListaAccertamenti()) {\n \t\t\t\t\t\taddAccertamentiESubAccertamentiInUnicaLista(currentAccetamento);\n \t\t\t\t\t}\n\n \t\t\t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(response.getNumRisultati());\n \t\t\t\t\t\n \t\t\t\t\tif(model.getGestioneOrdinativoStep2Model().getListaAccertamento()==null || model.getGestioneOrdinativoStep2Model().getListaAccertamento().size()==0){\n \t\t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t}\n \t\t\t}\n\n \t\t}\n \t}\n }", "public Interfaz_RegistroClientes() {\n initComponents();\n limpiar();\n }", "@Override\r\n\t\tpublic void action() {\n\t\t\t\r\n\t\t\tACLMessage request = new ACLMessage (ACLMessage.REQUEST);\r\n\t\t\trequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\trequest.addReceiver(new AID(\"BOAgent\",AID.ISLOCALNAME));\r\n\t\t\trequest.setLanguage(new SLCodec().getName());\t\r\n\t\t\trequest.setOntology(RequestOntology.getInstance().getName());\r\n\t\t\tInformMessage imessage = new InformMessage();\r\n\t\t\timessage.setPrice(Integer.parseInt(price));\r\n\t\t\timessage.setVolume(Integer.parseInt(volume));\r\n\t\t\ttry {\r\n\t\t\t\tthis.agent.getContentManager().fillContent(request, imessage);\r\n\t\t\t} catch (CodecException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (OntologyException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.agent.addBehaviour(new AchieveREInitiator(this.agent, request)\r\n\t\t\t{\t\t\t\r\n\t\t\t/**\r\n\t\t\t\t * \r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = -8866775600403413061L;\r\n\r\n\t\t\t\tprotected void handleInform(ACLMessage inform)\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});\r\n\t\t}", "public Boolean execEdit(ContentInterventoRequestBean req){\n System.out.println(\"InterventoLogics - execEdit: \"+ req.toString());\n InterventoClient client = new InterventoClient(req);\n try {\n //CERCO L'UUID\n client.getByFk();\n List<InterventoWorkableBean> reqList = client.getResList();\n\n //MODIFICO SE CONTENUTO è PRESENTE\n if(!reqList.isEmpty()){\n System.out.println(\"Contenuto trovato - execEdit\");\n\n req.setUuid(reqList.get(0).getUuid());\n client = new InterventoClient(req);\n\n if(req.getAllegato()!= null && req.getAllegato().getFile() != null){\n client.postFile(\"field_allegato\");\n\n FileWorkableBean workableFile = client.getResFile();\n req.getAllegato().setUuid(workableFile.getUuid());\n req.getAllegato().setDescription(workableFile.getDescription());\n GenericFile gf = new GenericFile();\n gf.setUuid(workableFile.getUuid());\n gf.setFile(req.getAllegato().getFile());\n gf.setName(req.getAllegato().getName());\n gf.setDescription(workableFile.getDescription());\n\n client.patchUpdateContentFile(\"field_allegato\", gf);\n }\n\n client.patch();\n }else{\n System.out.println(\"Contenuto non trovato - execEdit: \"+ req.toString());\n return false;\n }\n }catch(Exception e){\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "private Cliente obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri):Entrada\");\n \n StringBuffer nombreCli = new StringBuffer();\n\n // crear cliente\n Cliente cliente = new Cliente();\n cliente.setOidCliente(oidCliente);\n\n // completar oidEstatus\n BigDecimal oidEstatus = null;\n\n {\n BelcorpService bs1;\n RecordSet respuesta1;\n String codigoError1;\n StringBuffer query1 = new StringBuffer();\n\n try {\n bs1 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError1 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError1));\n }\n\n try {\n query1.append(\" SELECT CLIE_OID_CLIE, \");\n query1.append(\" ESTA_OID_ESTA_CLIE \");\n query1.append(\" FROM MAE_CLIEN_DATOS_ADICI \");\n query1.append(\" WHERE CLIE_OID_CLIE = \" + oidCliente);\n respuesta1 = bs1.dbService.executeStaticQuery(query1.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta1 \" + respuesta1);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError1 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError1));\n }\n\n if (respuesta1.esVacio()) {\n cliente.setOidEstatus(null);\n } else {\n oidEstatus = (BigDecimal) respuesta1\n .getValueAt(0, \"ESTA_OID_ESTA_CLIE\");\n cliente.setOidEstatus((oidEstatus != null) ? new Long(\n oidEstatus.longValue()) : null);\n }\n }\n // completar oidEstatusFuturo\n {\n BelcorpService bs2;\n RecordSet respuesta2;\n String codigoError2;\n StringBuffer query2 = new StringBuffer();\n\n try {\n bs2 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError2 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError2));\n }\n\n try {\n query2.append(\" SELECT OID_ESTA_CLIE, \");\n query2.append(\" ESTA_OID_ESTA_CLIE \");\n query2.append(\" FROM MAE_ESTAT_CLIEN \");\n query2.append(\" WHERE OID_ESTA_CLIE = \" + oidEstatus);\n respuesta2 = bs2.dbService.executeStaticQuery(query2.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta2 \" + respuesta2); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError2 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError2));\n }\n\n if (respuesta2.esVacio()) {\n cliente.setOidEstatusFuturo(null);\n } else {\n {\n BigDecimal oidEstatusFuturo = (BigDecimal) respuesta2\n .getValueAt(0, \"ESTA_OID_ESTA_CLIE\");\n cliente.setOidEstatusFuturo((oidEstatusFuturo != null) \n ? new Long(oidEstatusFuturo.longValue()) : null);\n }\n }\n }\n // completar periodoPrimerContacto \n {\n BelcorpService bs3;\n RecordSet respuesta3;\n String codigoError3;\n StringBuffer query3 = new StringBuffer();\n\n try {\n bs3 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError3 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError3));\n }\n\n try {\n query3.append(\" SELECT A.CLIE_OID_CLIE, \");\n query3.append(\" A.PERD_OID_PERI, \");\n query3.append(\" B.PAIS_OID_PAIS, \");\n query3.append(\" B.CANA_OID_CANA, \");\n query3.append(\" B.MARC_OID_MARC, \");\n query3.append(\" B.FEC_INIC, \");\n query3.append(\" B.FEC_FINA, \");\n query3.append(\" C.COD_PERI \");\n query3.append(\" FROM MAE_CLIEN_PRIME_CONTA A, \");\n query3.append(\" CRA_PERIO B, \");\n query3.append(\" SEG_PERIO_CORPO C \");\n query3.append(\" WHERE A.CLIE_OID_CLIE = \" + oidCliente);\n query3.append(\" AND A.PERD_OID_PERI = B.OID_PERI \");\n query3.append(\" AND B.PERI_OID_PERI = C.OID_PERI \");\n respuesta3 = bs3.dbService.executeStaticQuery(query3.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta3 \" + respuesta3); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError3 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError3));\n }\n\n if (respuesta3.esVacio()) {\n cliente.setPeriodoPrimerContacto(null);\n } else {\n Periodo periodo = new Periodo();\n\n {\n BigDecimal oidPeriodo = (BigDecimal) respuesta3\n .getValueAt(0, \"PERD_OID_PERI\");\n periodo.setOidPeriodo((oidPeriodo != null) \n ? new Long(oidPeriodo.longValue()) : null);\n }\n\n periodo.setCodperiodo((String) respuesta3\n .getValueAt(0, \"COD_PERI\"));\n periodo.setFechaDesde((Date) respuesta3\n .getValueAt(0, \"FEC_INIC\"));\n periodo.setFechaHasta((Date) respuesta3\n .getValueAt(0, \"FEC_FINA\"));\n periodo.setOidPais(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"PAIS_OID_PAIS\")).longValue()));\n periodo.setOidCanal(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"CANA_OID_CANA\")).longValue()));\n periodo.setOidMarca(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"MARC_OID_MARC\")).longValue()));\n cliente.setPeriodoPrimerContacto(periodo);\n }\n }\n // completar AmbitoGeografico\n {\n BelcorpService bs4;\n RecordSet respuesta4;\n String codigoError4;\n StringBuffer query4 = new StringBuffer();\n\n try {\n bs4 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError4 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError4));\n }\n\n try {\n //jrivas 29/6/2005\n //Modificado INC. 19479\n SimpleDateFormat sdfFormato = new SimpleDateFormat(\"dd/MM/yyyy\");\n String fechaDesde = sdfFormato.format(peri.getFechaDesde());\n String fechaHasta = sdfFormato.format(peri.getFechaHasta());\n\n query4.append(\" SELECT sub.oid_subg_vent, reg.oid_regi, \");\n query4.append(\" zon.oid_zona, sec.oid_secc, \");\n query4.append(\" terr.terr_oid_terr, \");\n query4.append(\" sec.clie_oid_clie oid_lider, \");\n query4.append(\" zon.clie_oid_clie oid_gerente_zona, \");\n query4.append(\" reg.clie_oid_clie oid_gerente_region, \");\n query4.append(\" sub.clie_oid_clie oid_subgerente \");\n query4.append(\" FROM mae_clien_unida_admin una, \");\n query4.append(\" zon_terri_admin terr, \");\n query4.append(\" zon_secci sec, \");\n query4.append(\" zon_zona zon, \");\n query4.append(\" zon_regio reg, \");\n query4.append(\" zon_sub_geren_venta sub \");\n //jrivas 27/04/2006 INC DBLG50000361\n //query4.append(\" , cra_perio per1, \");\n //query4.append(\" cra_perio per2 \");\n query4.append(\" WHERE una.clie_oid_clie = \" + oidCliente);\n query4.append(\" AND una.ztad_oid_terr_admi = \");\n query4.append(\" terr.oid_terr_admi \");\n query4.append(\" AND terr.zscc_oid_secc = sec.oid_secc \");\n query4.append(\" AND sec.zzon_oid_zona = zon.oid_zona \");\n query4.append(\" AND zon.zorg_oid_regi = reg.oid_regi \");\n query4.append(\" AND reg.zsgv_oid_subg_vent = \");\n query4.append(\" sub.oid_subg_vent \");\n //jrivas 27/04/2006 INC DBLG50000361\n query4.append(\" AND una.perd_oid_peri_fin IS NULL \");\n \n // sapaza -- PER-SiCC-2013-0960 -- 03/09/2013\n //query4.append(\" AND una.ind_acti = 1 \");\n \n /*query4.append(\" AND una.perd_oid_peri_fin = \");\n query4.append(\" AND una.perd_oid_peri_ini = per1.oid_peri \");\n query4.append(\" per2.oid_peri(+) \");\n query4.append(\" AND per1.fec_inic <= TO_DATE ('\" + \n fechaDesde + \"', 'dd/MM/yyyy') \");\n query4.append(\" AND ( per2.fec_fina IS NULL OR \");\n query4.append(\" per2.fec_fina >= TO_DATE ('\" + fechaHasta \n + \"', 'dd/MM/yyyy') ) \");*/\n\n respuesta4 = bs4.dbService.executeStaticQuery(query4.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"respuesta4: \" + respuesta4);\n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError4 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError4));\n }\n\n Gerente lider = new Gerente();\n Gerente gerenteZona = new Gerente();\n Gerente gerenteRegion = new Gerente();\n Gerente subGerente = new Gerente();\n\n if (respuesta4.esVacio()) {\n cliente.setAmbitoGeografico(null);\n } else {\n AmbitoGeografico ambito = new AmbitoGeografico();\n ambito.setOidSubgerencia(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SUBG_VENT\")).longValue()));\n ambito.setOidRegion(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_REGI\")).longValue()));\n ambito.setOidZona(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_ZONA\")).longValue()));\n ambito.setOidSeccion(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SECC\")).longValue()));\n\n //jrivas 29/6/2005\n //Modificado INC. 19479\n ambito.setOidTerritorio(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"TERR_OID_TERR\")).longValue()));\n\n if (respuesta4.getValueAt(0, \"OID_LIDER\") != null) {\n lider.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_LIDER\")).longValue()));\n }\n\n if (respuesta4.getValueAt(0, \"OID_GERENTE_ZONA\") != null) {\n gerenteZona.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_GERENTE_ZONA\")).longValue()));\n ;\n }\n\n if (respuesta4.getValueAt(0, \"OID_GERENTE_REGION\") != null) {\n gerenteRegion.setOidCliente(new Long(((BigDecimal) \n respuesta4.getValueAt(0, \"OID_GERENTE_REGION\"))\n .longValue()));\n }\n\n if (respuesta4.getValueAt(0, \"OID_SUBGERENTE\") != null) {\n subGerente.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SUBGERENTE\")).longValue()));\n }\n\n ambito.setLider(lider);\n ambito.setGerenteZona(gerenteZona);\n ambito.setGerenteRegion(gerenteRegion);\n ambito.setSubgerente(subGerente);\n\n cliente.setAmbitoGeografico(ambito);\n }\n }\n // completar nombre\n {\n BelcorpService bs5;\n RecordSet respuesta5;\n String codigoError5;\n StringBuffer query5 = new StringBuffer();\n\n try {\n bs5 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError5 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError5));\n }\n\n try {\n query5.append(\" SELECT OID_CLIE, \");\n query5.append(\" VAL_APE1, \");\n query5.append(\" VAL_APE2, \");\n query5.append(\" VAL_NOM1, \");\n query5.append(\" VAL_NOM2 \");\n query5.append(\" FROM MAE_CLIEN \");\n query5.append(\" WHERE OID_CLIE = \" + oidCliente.longValue());\n respuesta5 = bs5.dbService.executeStaticQuery(query5.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta5 \" + respuesta5);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError5 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError5));\n }\n\n if (respuesta5.esVacio()) {\n cliente.setNombre(null);\n } else {\n \n if(respuesta5.getValueAt(0, \"VAL_NOM1\")!=null) {\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_NOM1\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_NOM2\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_NOM2\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_APE1\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_APE1\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_APE2\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_APE2\"));\n }\n \n cliente.setNombre(nombreCli.toString());\n }\n }\n\n UtilidadesLog.info(\" DAOSolicitudes.obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri):Salida\");\n return cliente;\n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "public interface IOnlineSearchClient {\n\n /**\n * Passes a result / item to this client.\n * @param dco\n */\n public void addObject(DcObject dco);\n \n /**\n * Indicates a task is currently running.\n */\n public void processing();\n \n /**\n * Indicates a task has been stopped and a new task can be started.\n */\n public void stopped();\n \n /**\n * Passes a message to this client.\n * @param message\n */\n public void addMessage(String message);\n \n /**\n * Passes an error to this client.\n * @param t \n */\n public void addError(Throwable t);\n \n /**\n * Passes an error message to this client.\n * @param t \n */\n public void addError(String message);\n \n /**\n * Passes a warning message to this client.\n * @param t \n */\n public void addWarning(String warning);\n \n /**\n * Returns the total count of added items (see {@link #addObject(DcObject)})\n */\n public int resultCount();\n \n /**\n * Returns the current module.\n * @return The module\n */\n public DcModule getModule();\n \n /**\n * Passes the count of results which are going to be processed.\n * This way the client knows how many items to expect.\n * @param i The total count.\n */\n public void processingTotal(int i);\n \n /**\n * The current result number being processed (x of x).\n * @param i\n */\n public void processed(int i);\n}", "public void sendRequest() {\r\n\t\t\r\n\t\tclient.join(this, isHost, gameCode, playerName, playerNumber);\r\n\t\t\r\n\t}", "public Sesion(Cliente cl) {\n this.cliente = cl;\n estado = Estado.inicioBot;\n accion = Accion.iniciarSesion;\n valor = ValorAIngresar.pin;\n mensajeRecibido = null;\n respuesta = new Respuesta();\n }", "public VotoRespuesta vota(Usuario user, Respuesta resp, boolean up) throws PrivilegioInsuficienteException;", "public String execute() {\n\t\ttry {\n\t\t\tHashMap<Integer, RigaVenditeCommercianti> map = new HashMap<Integer, RigaVenditeCommercianti>();\n\t\t\tlistaTotali = new LinkedList<RigaVenditeCommercianti>();\n\t\t\t\n\t\t\tFatture fatture = new Fatture();\n\t\t\tfatture.setOrderByCliente();\n\t\t\tCollection colFatture = fatture.getFatture(dataDal, dataAl);\n\t\t\tIterator itr = colFatture.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tFattura fattura = (Fattura) itr.next();\t\n\t\t\t\tfattura.calcolaTotali();\n\t\t\t\tif (map.containsKey(fattura.getIdCliente().intValue())) {\n\t\t\t\t\t//Aggiungi totali alla riga attuale\n\t\t\t\t\tRigaVenditeCommercianti riga = map.get(fattura.getIdCliente().intValue());\n\t\t\t\t\triga.setTotaleFattura(riga.getTotaleFattura().add(fattura.getTotaleFattura()));\n\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tfattura.calcolaTotali();\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 4\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva1())) { //IVA AL 4\n\t\t\t\t\t\triga.setImponibile1(riga.getImponibile1().add(imponibili.get(riga.getIva1())[0]));\n\t\t\t\t\t\triga.setImposta1(riga.getImposta1().add(imponibili.get(riga.getIva1())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 10\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile2(riga.getImponibile2().add(imponibili.get(riga.getIva2())[0]));\n\t\t\t\t\t\triga.setImposta2(riga.getImposta2().add(imponibili.get(riga.getIva2())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 20\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile3(riga.getImponibile3().add(imponibili.get(riga.getIva3())[0]));\n\t\t\t\t\t\triga.setImposta3(riga.getImposta3().add(imponibili.get(riga.getIva3())[1]));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t//Crea riga per cliente\n\t\t\t\t\tRigaVenditeCommercianti riga = new RigaVenditeCommercianti();\n\t\t\t\t\triga.setCliente(fattura.getCliente());\n\t\t\t\t\triga.setTotaleFattura(fattura.getTotaleFattura());\n\t\t\t\t\t\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\tIvas dao = new Ivas();\n\t\t\t\t\tdao.setOrderByDescrizione(DataAccessObject.ORDER_ASC);\n\t\t\t\t\tCollection aliquote = dao.getElements();\n\t\t\t\t\t\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor(Object obj : aliquote)\n\t\t\t\t\t{\n\t\t\t\t\t\tIva iva = (Iva)obj;\n\t\t\t\t\t\tif(iva.getValore().floatValue() < 4) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tBigDecimal imponibile = new BigDecimal(0);\n\t\t\t\t\t\tBigDecimal imposta = new BigDecimal(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(imponibili.containsKey(iva.getValore()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\timponibile = imponibili.get(iva.getValore())[0];\n\t\t\t\t\t\t\timposta = imponibili.get(iva.getValore())[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva1(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile1(imponibile);\n\t\t\t\t\t\t\triga.setImposta1(imposta);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva2(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile2(imponibile);\n\t\t\t\t\t\t\triga.setImposta2(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva3(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile3(imponibile);\n\t\t\t\t\t\t\triga.setImposta3(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 3) break;\n\t\t\t\t\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tmap.put(fattura.getIdCliente().intValue(), riga);\n\t\t\t\t\tlistaTotali.add(riga);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tstampaErrore(\"PrintVendite.execute()\", e);\n\t\t\treturn ERROR;\n\t\t}\n\t\treturn SUCCESS;\n\t}", "@Override\n public DatosIntercambio subirFichero(String nombreFichero,int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\n \t//AQUI HACE FALTA CONOCER LA IP PUERTO DEL ALMACEN\n \t//Enviamos los datos para que el servicio Datos almacene los metadatos \n \tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \t\n \t//aqui deberiamos haber combropado un mensaje de error si idCliente < 0 podriamos saber que ha habido error\n int idCliente = datos.almacenarFichero(nombreFichero,idSesionCliente);\n int idSesionRepo = datos.dimeRepositorio(idCliente);//sesion del repositorio\n Interfaz.imprime(\"Se ha agregado el fichero \" + nombreFichero + \" en el almacen de Datos\"); \n \n //Devolvemos la URL del servicioClOperador con la carpeta donde se guardara el tema\n DatosIntercambio di = new DatosIntercambio(idCliente , \"rmi://\" + direccionServicioClOperador + \":\" + puertoServicioClOperador + \"/cloperador/\"+ idSesionRepo);\n return di;\n }", "public void agregarItemRentadoACliente(@Param(\"idcli\") long id, \n \t\t@Param(\"idit\") int idit, \n \t\t@Param(\"fechai\") Date fechainicio,\n \t\t@Param(\"fechaf\") Date fechafin);", "public interface ChungToiIInterface extends Remote {\n\n /**\n * Este método registra o jogador no jogo\n *\n * @param nome string com o nome do usuário/jogador\n * @return\n * id (valor inteiro) do usuário (que corresponde a um número de identificação único para\n * este usuário durante uma partida); ­1 se este usuário já está cadastrado;\n * ­2 se o número máximo de jogadores tiver sido atingido.\n * @throws RemoteException\n */\n int registraJogador(String nome) throws RemoteException;\n\n /**\n * Este método encerra a partida\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return ­1 (erro);  0 (ok)\n * @throws RemoteException\n */\n int encerraPartida(int id) throws RemoteException;\n\n /**\n * Este método indica se existe partida\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return  ­2 (tempo de espera esgotado);  ­1 (erro); \n * 0 (ainda não há partida);  1 (sim, há partida e o\n * jogador inicia jogando com as peças claras, identificadas, por exemplo, com letras de “C” para\n * deslocamento perpendicular ou “c” para deslocamento diagonal); 2 (sim, há\n * partida e o\n * jogador é o segundo a jogar, com os as peças escuras, identificadas, por exemplo, a letra “E”\n * para deslocamento perpendicular ou “e” para deslocamento diagonal)\n * @throws RemoteException\n */\n int temPartida(int id) throws RemoteException;\n\n /**\n * Este método indica que o jogador está na sua vez\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return\n * ­2 (erro: ainda não há 2 jogadores registrados na partida), ­1 (erro), 0 (não), 1 (sim), 2\n * (é o vencedor), 3 (é o perdedor), 4 (houve empate), 5 (vencedor por WO), 6 (perdedor por WO)\n *\n * @throws RemoteException\n */\n int ehMinhaVez(int id) throws RemoteException;\n\n /**\n * Este método retorna o tabuleiro em uma string\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return string vazio em caso de erro ou string representando o tabuleiro de jogo\n * O tabuleiro pode, por exemplo, ser representado por 9 caracteres indicando respectivamente o\n * estado de cada casa (de 0 até 8) do tabuleiro: 'C' (peça clara no sentido perpendicular), 'c' (peça\n * clara no sentido diagonal), 'E' (peça escura no sentido perpendicular), 'e' (peça escura no sentido\n * diagonal), '.' (casa não ocupada). \n * @throws RemoteException\n */\n String obtemTabuleiro(int id) throws RemoteException;\n\n /**\n * Este método posiciona a peça do jogador no tabuleiro\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @param x posição do tabuleiro onde a\n * peça deve ser posicionada (de 0 até 8, inclusive)\n * @param y posição do tabuleiro onde a\n * peça deve ser posicionada (de 0 até 8, inclusive)\n * @param orientacao orientação da peça (0 correspondendo à\n * orientação perpendicular, e 1 correspondendo à orientação diagonal)\n * @return\n * 2 (partida encerrada, o que ocorrerá caso o jogador demore muito para enviar a sua\n * jogada e ocorra o  time­out \n * de 60 segundos para envio de jogadas), 1 (tudo certo), 0 (posição\n * inválida, por exemplo, devido a uma casa já ocupada), ­1 (parâmetros inválidos), ­2 (partida não\n * iniciada: ainda não há dois jogadores registrados na partida), ­3 (não é a vez do jogador).\n * @throws RemoteException\n */\n int posicionaPeca(int id, int x, int y, int orientacao) throws RemoteException;\n\n /**\n * Este método move a peça do jogador no tabuleiro\n *\n * @param id do usuário (obtido através da chamada registraJogador) \n * @param x posição do tabuleiro onde se\n * encontra a peça que se deseja mover (de 0 até 8, inclusive)\n * @param y posição do tabuleiro onde se\n * encontra a peça que se deseja mover (de 0 até 8, inclusive)\n * @param sentido sentido do deslocamento (0 a 8, inclusive). Para o\n * sentido do deslocamento deve­se usar a seguinte convenção: 0 = diagonal esquerda­superior; 1 =\n * para cima; 2 = diagonal direita­superior; 3 = esquerda; 4 = sem movimento; 5 = direita; 6 =\n * diagonal esquerda­inferior; 7 = para baixo; 8 = diagonal direita­inferior.\n * @param numero_casas número de casas deslocadas (0, 1 ou 2)\n * @param orientacao orientação da peça depois da jogada (0\n * correspondendo a orientação perpendicular, e 1 correspondendo à orientação diagonal)\n * @return\n * 2 (partida encerrada, o que ocorrerá caso o jogador demore muito para enviar a sua\n * jogada e ocorra o time­out de 60 segundos para envio de jogadas), 1 (tudo certo), 0 (movimento\n * inválido, por exemplo, em um sentido e deslocamento que resulta em uma posição ocupada ou\n * fora   do   tabuleiro),   ­1   (parâmetros   inválidos),   ­2   (partida\n *   não   iniciada:   ainda   não   há   dois\n * jogadores registrados na partida), ­3 (não é a vez do jogador).\n * @throws RemoteException\n */\n int movePeca(int id, int x, int y, int sentido, int numero_casas, int orientacao) throws RemoteException;\n\n /**\n * Este método obtem o nome do oponente\n *\n * @param id do usuário (obtido através da chamada registraJogador)\n * @return string vazio para erro ou string com o nome do oponente\n * @throws RemoteException\n */\n String obtemOponente(int id) throws RemoteException;\n}", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public thExecOTX(globalAreaData m, JSONObject jo) {\n gDatos = m;\n gSub = new srvRutinas(gDatos);\n this.params = jo;\n }", "public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }", "private void generalRequest(LocalRequestType type) {\n\n\t\tPosition carPosition = null;\n\n\t\tif (Storage.getInstance().getCarPosition().isPresent()) {\n\t\t\tcarPosition = Storage.getInstance().getCarPosition().get();\n\t\t}\n\n\t\tLocalRequest request = new LocalRequest(\"id\" + this.requestIndex, type, Storage.getInstance().getUserPosition(),\n\t\t\t\tcarPosition, this.privateReplyChannel);\n\t\tthis.requestIndex++;\n\t\tGson gson = new GsonBuilder().create();\n\t\tString json = gson.toJson(request);\n\t\ttry {\n\t\t\tchannel.basicPublish(R.LOCAL_INTERACTIONS_CHANNEL, \"\", null, json.getBytes());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void respuestaObj(WSInfomovilMethods metodo,\n\t\t\t\t\tWsInfomovilProcessStatus status, Object obj) {\n\t\t\t\t\n\t\t\t}", "Curso modificaCurso(Curso curso);", "public void ejecutarConsola() {\n\n try {\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n this.imprimir(this._agente.getActions());\n this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"SOLUCIONADO\");\n } else {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }", "public Cliente(String cpf, Object object, String nome, Object object0, int codCliente) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public static void main(String... args) {\n\n OAuthRequest oathReq = new OAuthRequest();\n Gson gson = new Gson();\n String hostname = get(\"ne.url.hostname\");\n String urlOAuth2 = hostname + get(\"ne.url.auth\");\n\n try {\n // 3. Set the generated Client ID, Secret generated in https://developer.equinix.com (Your App).\n // 4. Set the grant type to \"password' or 'client_credentials' if you want API Gateway to generate the Access token.\n oathReq.clientId(get(\"ne.client.access.client.id\"));\n oathReq.clientSecret(get(\"ne.client.access.client.secret\"));\n oathReq.grantType(get(\"ne.client.access.client.granttype\"));\n oathReq.userName(get(\"ne.client.access.client.username\"));\n String password = new String(Base64.getDecoder().decode(get(\"ne.client.access.client.base64.password\")), \"UTF-8\");\n oathReq.userPassword(password);\n\n HttpResponse<String> response = Unirest.post(urlOAuth2)\n .header(\"Content-Type\", get(\"ne.client.http.body.contenttype\"))\n .body(gson.toJson(oathReq)).asString();\n OAuthResponse oauthResponse = gson.fromJson(response.getBody(), OAuthResponse.class);\n\n\n System.out.println(\"OAuth2 Access Token: \" + oauthResponse.getAccessToken());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void makeChatOp(JSONObject request, DataOutputStream clientStream) throws IOException {\n\t\tGossip_chat_message.ChatOp op = Gossip_parser.getChatAction(request);\n\t\tString sender = Gossip_parser.getClientName(request);\n\t\tString chatname = Gossip_parser.getChatName(request);\n\t\ttry {\n\t\t\tswitch(op) {\n\t\t\t\tcase CREATE_CHAT_OP: {\n\t\t\t\t\tdata.addChat(chatname, sender);\n\t\t\t\t\tsendReply(new Gossip_chat_info_message(data.getChat(chatname)), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase ADDME_OP: {\n\t\t\t\t\tboolean ret = data.addMember(chatname, sender);\n\t\t\t\t\tif (ret == false)\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.NICKALREADY), clientStream);\n\t\t\t\t\telse\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase REMOVEME_OP: {\n\t\t\t\t\tdata.removeMember(chatname, sender);\n\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase CLOSE_CHAT_OP: {\n\t\t\t\t\tif (data.removeChat(chatname, sender) == true)\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t\telse\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.OPNOTALLOWED), clientStream);\n\t\t\t\t} break;\n\t\t\t}\n\t\t}//utente non registrato\n\t\t catch (NodeNotFoundException e) {\n\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.NICKUNKNOWN), clientStream);\n\t\t }\n\t\t //nome chat già in uso\n\t\t catch (ChatAlreadyException e) {\n\t\t\t sendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.CHATALREADY), clientStream);\n\t\t }\n\t\t //chat non esistente\n\t\t catch (ChatNotFoundException e) {\n\t\t\t sendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.CHATUNKNOWN), clientStream);\n\t\t }\n\t\tcatch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.FAIL_OP), clientStream);\n\t\t}\n\t\t//errore nella creazione di una chat\n\t\tcatch (PortNotFoundException e) {\n\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.FAIL_OP), clientStream);\n\t\t}\n\t}", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "@Override\r\n public void onClick(View v) {\n consultarSesiones(sucursal.getId(),clienteID, fecha, beacon);\r\n }", "public void envioMensajes(Rubik cuboRubik, String movimiento, int opcion, String ip) {\n try {\n// System.out.println(\"Entro\");\n Socket socketEnvio = new Socket(ip, puertoEnvio);\n DataOutputStream envio = new DataOutputStream(socketEnvio.getOutputStream());\n if (opcion == 1) {\n System.out.println(\"Envio Mensaje tipo 1.\");\n Mensaje mensaje = new Mensaje(cuboRubik, movimiento, opcion);\n envio.writeUTF(gson.toJson(mensaje));\n } else if (opcion == 3) {\n Mensaje mensaje = new Mensaje(opcion);\n envio.writeUTF(gson.toJson(mensaje));\n }\n } catch (IOException e) {\n System.out.println(\"Problema: \" + e.getMessage());\n }\n }", "public void gravarCliente() {\n\t\tCliente cliente = new DAO<Cliente>(Cliente.class)\n\t\t\t\t.buscaPorId(this.clienteId);\n\t\tthis.solicitacao.adicionaCliente(cliente);\n\t\tSystem.out.println(\"Cliente a gravar é \" + cliente.getNome());\n\t}", "@Override\n\tpublic void respuestaObj(WSInfomovilMethods metodo,\n\t\t\tWsInfomovilProcessStatus status, Object obj) {\n\n\t}", "public CUClienteComplementoOV()\t{\n\n\t\t}", "public void interactuarCon(Vehiculo4x4 vehiculo) {\r\n Vehiculo nuevoVehiculo = VehiculoMoto.nuevoVehiculo(vehiculo);\r\n this.actualizarMovimiento(nuevoVehiculo, vehiculo);\r\n observador.cambiarVehiculo(nuevoVehiculo);\r\n Logger.instance.log(\"Cambio de vehiculo! Ahora es una moto.\\n\");\r\n }", "@Override\r\n\tpublic void service(AgiRequest arg0, AgiChannel arg1) throws AgiException {\n\t\t\r\n String tpunch = getVariable(\"timeforpunch\");\r\n\t\t\r\n\t\tString docid = getVariable(\"DOCID\");\r\n\t\tString punchact = getVariable(\"ACTPUNCH\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString unid = getVariable(\"UNIQUEID\");\r\n\t\tString fname = \"edit\" + unid + \".WAV\";\r\n\t\tFile f = new File(\"/var/spool/asterisk/monitor/\" + fname);\r\n \t\r\n \tlong fsize = f.length();\r\n \tbyte[] data = new byte[(int)fsize];\r\n \t\r\n \ttry{\r\n \t FileInputStream fin = new FileInputStream(f);\r\n \t\r\n \t fin.read(data);\r\n \t\r\n \t fin.close();\r\n \t}catch(Exception e)\r\n \t{\r\n \t\t\r\n \t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString[] opts = new String[4];\r\n\t\topts[0] = docid;\r\n\t\topts[1] = punchact;\r\n\t\topts[2] = tpunch;\r\n\t\topts[3] = fname;\r\n\t\t\r\n\t\tString cmd = \"EDITPUNCHINTIME\";\r\n\t\t\r\n\t\t\r\n String url = \"http://www.heightsre.com/Examples/Test/PunchCLK.nsf/AstPortal\";\r\n\t \r\n\t\tNotesWSClient wsclient = new NotesWSClient(url);\r\n\t\t\r\n\t\tString[] res = wsclient.generalCommand(cmd, opts, data);\r\n\t\t\r\n\t\tdata = null;\r\n\t\t\r\n\r\n\t}", "private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void action() {\n\t\tMessageTemplate mt=MessageTemplate.or(MessageTemplate.MatchContent(\"comida\"), MessageTemplate.MatchContent(\"bebida\"));\r\n ACLMessage msg = myAgent.receive(mt);\r\n if(msg!=null){\r\n \tif(msg.getContent().compareTo(\"comida\")==0){\r\n \t\tif(Comida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo hambre todavia\"); \r\n myAgent.send(reply);\r\n Comida=Comida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n \telse if(msg.getContent().compareTo(\"bebida\")==0){\r\n \t\tif(Bebida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo sed todavia\"); \r\n myAgent.send(reply);\r\n Bebida=Bebida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n }\r\n if (Comida==0 && Bebida==0){\r\n \tmyAgent.doDelete();\r\n }\r\n\t}", "private HttpResponse sendCreateComputer() {\r\n\t\tHttpResponse result = null;\r\n Log.i(TAG,\"sendCreateComputer to: \"+ m_url);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//\r\n\t\t\t// Use this client instead of default one! June 2013\r\n\t\t\t//\r\n\t\t\tHttpClient httpclient = getNewHttpClient();\r\n\t\t\tHttpPost verb = new HttpPost(m_url);\r\n\t\t\tverb.addHeader(\"User-Agent\", \"occi-client/1.0\");\r\n\t\t\tverb.addHeader(\"Content-Type\", \"text/occi\");\r\n\t\t\tverb.addHeader(\"Accept\", \"text/occi\");\r\n\t\t\t\r\n\t\t\t// TODO: Replace with input values\r\n\t\t\tString urlEncodedAccount2 = \"cGx1Z2Zlc3QyMDEzOnBsdWdmZXN0MjAxMw==\"; // plugfest2013\r\n\t\t\tverb.addHeader(\"Authorization\", \"Basic \" + urlEncodedAccount2);\r\n\t Log.e(TAG,\"Authorization: Basic \"+ urlEncodedAccount2);\r\n\r\n\t\t\t\r\n\t //\r\n\t // Note: For this demo, put OCCI message in header.\r\n\t //StringBuffer payload = new StringBuffer();\r\n\t //\r\n\t verb.addHeader(\"Category\", \"compute\");\r\n\t verb.addHeader(\"Category\", \"compute; scheme=\\\"http://schemas.ogf.org/occi/infrastructure#\\\"; class=\\\"kind\\\"\");\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.hostname=\"+m_Compute.getTitle());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.memory=\"+ m_Compute.getMemory());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.cores=\"+ m_Compute.getCores());\r\n\t verb.addHeader(\"X-OCCI-Attribute\", \"occi.compute.state=\"+ m_Compute.getStatusAsString());\t\t\t\t\t\t\r\n\r\n\r\n\t\t\tHttpResponse httpResp = httpclient.execute(verb);\t\t\t\r\n\t\t\tint response = httpResp.getStatusLine().getStatusCode();\r\n\t\t if (response == 200 || response == 204 || response == 201) {\r\n\t\t \tresult = httpResp;\r\n\t\t } else {\r\n\t\t Log.e(TAG,\"Bad Repsonse, code: \"+ response);\r\n\t\t }\r\n\t\t} catch (Throwable t) {\r\n\t\t} \r\n\t\treturn result;\t\t\r\n\t}", "@Override\n public void opcionEscogida(String app) {\n\n if(app.equals(\"camara\")){\n fotoCamara();\n eleccion=1;\n }else{\n //opcion galeria\n fotoGaleria();\n eleccion=2;\n }\n\n }", "public static void main(String [ ] args){\n\t\t Fecha Hoy = new Fecha(12,12,2020);\r\n\t\t ArrayList<Cuenta> cuentas = new ArrayList<Cuenta>();\r\n\t\t \r\n\t\t Cuenta c0 = new CtaAhorros(10000,10);\r\n\t\t Cuenta c1 = new CtaCheques(256070,0);\r\n\t\t Cuenta c2 = new CtaCredito(13245,100);\r\n\t\t Cuenta c3 = new CtaCheques(765,20);\r\n\t\t Cuenta c4 = new CtaAhorros(9000,20);\r\n\t\t Cuenta c5 = new CtaAhorros(2300,10);\r\n\t\t Cuenta c6 = new CtaCredito(25000,12);\r\n\t\t \r\n\t\t cuentas.add(c0);\r\n\t\t cuentas.add(c1);\r\n\t\t cuentas.add(c2);\r\n\t\t cuentas.add(c3);\r\n\t\t cuentas.add(c4);\r\n\t\t cuentas.add(c5);\r\n\t\t \r\n\t\t Cliente C1=new Cliente(\"QUIJOTE\",cuentas,\"QX400\");\r\n\t\t Hoy.AvanzarTiempo(11,1,0);\r\n\t\t \r\n\t\t C1.depositar(1,1200, Hoy);\r\n\t\t C1.retirar(2,1100, Hoy);\r\n\t\t System.out.println(\"saldo cuenta 3:\"+C1.consultar(3,Hoy));\r\n\t\t C1.depositar(4,600, Hoy);\r\n\t\t \r\n\t\t //C1.reportarEdosCtas();\r\n\t\t \r\n\t\t }", "public DatosInvitado() {\n\t\tsuper(MensajesVentanas.ventanaActiva);\n\t\tinitialize();\n\n\t\tjButtonAceptar.addActionListener(this);\n\t\tjButtonAceptar.addKeyListener(this);\n\t\tjButtonCancelar.addActionListener(this);\n\t\tjButtonCancelar.addKeyListener(this);\n\t\tjTextField.addKeyListener(this);\n\t\tjTextPane.addKeyListener(this);\n\t\t\n\t\tif(CR.meVenta.getVenta() != null && CR.meVenta.getVenta().getCliente().getNombreCompleto() != null){\n\t\t\tgetJTextField().setText(CR.meVenta.getVenta().getCliente().getNombreCompleto());\n\t\t\tjTextPane.requestFocus();\n\t\t}else if(CR.meServ.getListaRegalos()!=null && CR.meServ.getListaRegalos().getCliente()!=null){\n\t\t\tgetJTextField().setText(CR.meServ.getListaRegalos().getCliente().getNombreCompleto());\n\t\t\tjTextPane.requestFocus();\n\t\t}\n\t\t\n\t\tif(CR.meServ.getListaRegalos()!=null && CR.meServ.getListaRegalos().getDedicatoria()!=null)\n\t\t\tjTextPane.setText(CR.meServ.getListaRegalos().getDedicatoria());\n\t}", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "private void executeAccion(Client client, Model model) {\n\n if (Constants.ADD.equals(client.getAction())) {\n final String uri = \"https://backend.bgarcial.me/clients\";\n RestTemplate restTemplate = new RestTemplate();\n Client result = restTemplate.postForObject(uri, client, Client.class);\n System.out.println(\"Run Name:\" + result.getName());\n System.out.println(\"Run Id:\" + result.getId());\n\n model.addAttribute(\"message\", \"Calling the Backend - User was Added\");\n\n } else if (Constants.Delete.equals(client.getAction())) {\n final String uri = \"https://backend.bgarcial.me/clients/delete\";\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.postForObject(uri, client, ArrayList.class);\n model.addAttribute(\"message\", \"Calling the Backend - User was Removed!\");\n }\n }", "private void esegui() {\n /* variabili e costanti locali di lavoro */\n OperazioneMonitorabile operazione;\n\n try { // prova ad eseguire il codice\n\n /**\n * Lancia l'operazione di analisi dei dati in un thread asincrono\n * al termine il thread aggiorna i dati del dialogo\n */\n operazione = new OpAnalisi(this.getProgressBar());\n operazione.avvia();\n\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "private void pararServicioPomodoro(){\n Intent pararServicio = new Intent(this,ServicioPomodoro.class);\n pararServicio.setAction(\"intentParar\");\n startService(pararServicio);\n tiempo.stop();\n tiempo.setBase(SystemClock.elapsedRealtime());\n }", "private void doRequest(String orden){\n if (method == 1){\n //EXECUTE RECIBIR PEDIDO\n doPost(orden, \"Recolectado por \" + usuario.getmUsuario(), VolleyController.RECIBIR_URL);\n } else if (method == 2){\n //EXECUTE ENTREGAR PEDIDO\n initComment(orden, \"Entregado por \" + usuario.getmUsuario() + \" a\", VolleyController.ENTREGAR_URL);\n } else if (method == 3){\n //GET COMMENT\n initComment(orden, usuario.getmUsuario(), VolleyController.INTENTAR_URL);\n } else if (method == 4){\n //EXECUTE DEVOLVER PRODUCTO\n initComment(orden, \"Se devuelve el pedido, \" + usuario.getmUsuario(), VolleyController.DEVOLVER_URL);\n }\n }", "public void send(int id, Object o){\r\n\t\tclients[findClient(id)].send(o);\r\n\t}", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "private void peticionDeCliente() throws IOException, InterruptedException {\n\t\tString mensaje = null;\n\t\tboolean salir = false;\n\t\twhile(!salir) {\n\t\t\tmensaje = in.readLine();\n\t\t\tif(mensaje!=null && !mensaje.split(\";\")[0].equals(\"Comprobacion\")) {\n\t\t\t\tthis.tcpServidor.colaPeticion.put(mensaje); //ALMACENA SOLICITUD EN COLA_PETICIONES\n\t\t\t\tSystem.out.println(\"Peticion del cliente \"+this.idCliente+\": \"+ mensaje);\n\t\t\t}\n\t\t}\n\t}", "public void mostraOggetto(int idGioc, String value){\n\t\t if(\"Y\".equals(value))\n\t\t\t partita.getPlayers().getGiocatore(idGioc).mostraEquipaggiamento();\n\t\t if(\"N\".equals(value)){\n\t\t\t StatiGioco prossimoStato=partita.nextPhase(StatiGioco.OBJECTSTATE,StatiGioco.DONTKNOW, idGioc);\n\t\t\t partita.getPlayers().getGiocatore(idGioc).setStatoAttuale(prossimoStato);\n\t\t\t if(prossimoStato.equals(StatiGioco.DRAWSTATE))\n\t\t\t\tsuono(idGioc); \n\t\t\t}\n\t\t\treturn;\n\n\t }", "private void iniciarServicioPomodoro(int pomodoro, int corto, int largo){\n Intent inicioServicio = new Intent(this,ServicioPomodoro.class);\n inicioServicio.setAction(\"intentIniciar\");\n inicioServicio.putExtra(\"intervaloPomodoro\", pomodoro);\n inicioServicio.putExtra(\"intervaloDescansoCorto\", corto);\n inicioServicio.putExtra(\"intervaloDescansoLargo\", largo);\n startService(inicioServicio);\n tiempo.setBase(SystemClock.elapsedRealtime());\n tiempo.start();\n controlCronometro();\n }", "private void obtenerClienteRecomendante(Cliente clienteParametro, Long \n oidPais) throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendante(Cliente\"\n +\"clienteParametro, Long oidPais):Entrada\");\n // query sobre INC\n BelcorpService bsInc = null;\n RecordSet respuestaInc = null;\n StringBuffer queryInc = new StringBuffer();\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n try {\n //jrivas 17/8/2005\n //Inc 20556 \n queryInc.append(\" SELECT RECT.CLIE_OID_CLIE, FEC_INIC, FEC_FINA \");\n queryInc.append(\" FROM INC_CLIEN_RECDO RDO, CRA_PERIO, \");\n queryInc.append(\" INC_CLIEN_RECTE RECT \");\n queryInc.append(\" WHERE PERD_OID_PERI = OID_PERI \");\n queryInc.append(\" AND RDO.CLIE_OID_CLIE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND CLR3_OID_CLIE_RETE = OID_CLIE_RETE \");\n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n // query sobre MAE\n BelcorpService bsMae = null;\n RecordSet respuestaMae = null;\n StringBuffer queryMae = new StringBuffer();\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n ClienteRecomendante clienteRecomendante = new ClienteRecomendante();\n boolean hayRecomendante;\n\n if (!respuestaInc.esVacio()) {\n // tomo los datos de INC\n hayRecomendante = true;\n\n {\n BigDecimal recomendante = (BigDecimal) respuestaInc\n .getValueAt(0, \"CLIE_OID_CLIE\");\n clienteRecomendante.setRecomendante((recomendante != null) \n ? new Long(recomendante.longValue()) : null);\n }\n\n clienteRecomendante.setFechaInicio((Date) respuestaInc\n .getValueAt(0, \"FEC_INIC\"));\n // fecha fin de INC\n {\n Date fechaFin = (Date) respuestaInc.getValueAt(0, \"FEC_FINA\");\n clienteRecomendante.setFechaFin((fechaFin != null) \n ? fechaFin : null);\n }\n \n /* */\n // JVM, sicc 20070381 , agrega bloque que recupera datos del periodo \n // {\n Date fec_desd = (Date) respuestaInc.getValueAt(0, \"FEC_INIC\");\n\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n \n queryInc = new StringBuffer();\n \n try {\n queryInc.append(\" select x.n, x.oid_peri, x.fec_inic, x.fec_fina, x.pais_oid_pais, x.marc_oid_marc, x.cana_oid_cana \"); \n queryInc.append(\" from ( \"); \n queryInc.append(\" select 1 n, b.oid_peri as oid_peri, \"); \n queryInc.append(\" b.fec_inic as fec_inic, \"); \n queryInc.append(\" b.fec_fina as fec_fina, \"); \n queryInc.append(\" b.pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" b.marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" b.cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from mae_clien_prime_conta a, cra_perio b, seg_perio_corpo c \"); \n queryInc.append(\" where a.clie_oid_clie = \" + clienteParametro.getOidCliente()); \n queryInc.append(\" and a.perd_oid_peri = b.oid_peri \"); \n queryInc.append(\" and b.peri_oid_peri = c.oid_peri \"); \n queryInc.append(\" and b.oid_peri in ( \"); \n queryInc.append(\" select oid_peri \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(fec_desd) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date ('\"+ df.format(fec_desd) +\"', 'DD/MM/YYYY') <= fec_fina ) \");\n queryInc.append(\" union \"); \n queryInc.append(\" select rownum + 1 as n, oid_peri as oid_peri, \"); \n queryInc.append(\" fec_inic as fec_inic, \"); \n queryInc.append(\" fec_fina as fec_fina, \"); \n queryInc.append(\" pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(fec_desd) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date('\"+ df.format(fec_desd) +\"', 'DD-MM-YYYY') <= fec_fina \");\n queryInc.append(\" order by oid_peri asc \"); \n queryInc.append(\" ) x \"); \n queryInc.append(\" order by n \"); \n \n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n BigDecimal bd;\n Periodo periodo = new Periodo();\n \n if (!respuestaInc.esVacio()) {\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"OID_PERI\");\n periodo.setOidPeriodo(new Long(bd.longValue()));\n periodo.setFechaDesde((Date) respuestaInc.getValueAt(0, \"FEC_INIC\"));\n periodo.setFechaHasta((Date) respuestaInc.getValueAt(0, \"FEC_FINA\")); \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"PAIS_OID_PAIS\");\n periodo.setOidPais(new Long(bd.longValue()));\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"MARC_OID_MARC\");\n periodo.setOidMarca(new Long(bd.longValue()));\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"CANA_OID_CANA\");\n periodo.setOidCanal(new Long(bd.longValue()));\n } \n \n clienteParametro.setPeriodo(periodo);\n\n/* */\n } else {\n // BELC300022542 - gPineda - 24/08/06\n try {\n queryInc = new StringBuffer();\n \n //jrivas 4/7/2005\n //Inc 16978\n queryInc.append(\" SELECT CLIE_OID_CLIE_VNTE, FEC_DESD, FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNDO = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n \n // BELC300022542 - gPineda - 24/08/06\n //queryInc.append(\" AND COD_TIPO_VINC = '\" + ConstantesMAE.TIPO_VINCULO_RECOMENDADA + \"'\");\n queryInc.append(\" AND IND_RECO = 1 \");\n \n respuestaMae = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMae \" + respuestaMae); \n \n \n // JVM, sicc 20070381 , agrega bloque que recupera datos del periodo \n // {\n if (!respuestaMae.esVacio()) { \n Date fec_desd = (Date) respuestaMae.getValueAt(0, \"FEC_DESD\");\n \n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n \n queryInc = new StringBuffer();\n \n try {\n queryInc.append(\" select x.n, x.oid_peri, x.fec_inic, x.fec_fina, x.pais_oid_pais, x.marc_oid_marc, x.cana_oid_cana \"); \n queryInc.append(\" from ( \"); \n queryInc.append(\" select 1 n, b.oid_peri as oid_peri, \"); \n queryInc.append(\" b.fec_inic as fec_inic, \"); \n queryInc.append(\" b.fec_fina as fec_fina, \"); \n queryInc.append(\" b.pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" b.marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" b.cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from mae_clien_prime_conta a, cra_perio b, seg_perio_corpo c \"); \n queryInc.append(\" where a.clie_oid_clie = \" + clienteParametro.getOidCliente()); \n queryInc.append(\" and a.perd_oid_peri = b.oid_peri \"); \n queryInc.append(\" and b.peri_oid_peri = c.oid_peri \"); \n queryInc.append(\" and b.oid_peri in ( \"); \n queryInc.append(\" select oid_peri \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(fec_desd) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date ('\"+ df.format(fec_desd) +\"', 'DD/MM/YYYY') <= fec_fina ) \");\n queryInc.append(\" union \"); \n queryInc.append(\" select rownum + 1 as n, oid_peri as oid_peri, \"); \n queryInc.append(\" fec_inic as fec_inic, \"); \n queryInc.append(\" fec_fina as fec_fina, \"); \n queryInc.append(\" pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(fec_desd) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date('\"+ df.format(fec_desd) +\"', 'DD-MM-YYYY') <= fec_fina \");\n queryInc.append(\" order by oid_peri asc \"); \n queryInc.append(\" ) x \"); \n queryInc.append(\" order by n \"); \n \n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n BigDecimal bd;\n Periodo periodo = new Periodo();\n \n if (!respuestaInc.esVacio()) {\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"OID_PERI\");\n periodo.setOidPeriodo(new Long(bd.longValue()));\n periodo.setFechaDesde((Date) respuestaInc.getValueAt(0, \"FEC_INIC\"));\n periodo.setFechaHasta((Date) respuestaInc.getValueAt(0, \"FEC_FINA\")); \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"PAIS_OID_PAIS\");\n periodo.setOidPais(new Long(bd.longValue()));\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"MARC_OID_MARC\");\n periodo.setOidMarca(new Long(bd.longValue()));\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"CANA_OID_CANA\");\n periodo.setOidCanal(new Long(bd.longValue()));\n } \n \n clienteParametro.setPeriodo(periodo);\n } \n // } \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if (!respuestaMae.esVacio()) {\n hayRecomendante = true;\n clienteRecomendante.setRecomendante(new Long(((BigDecimal) \n respuestaMae.getValueAt(0, \"CLIE_OID_CLIE_VNTE\"))\n .longValue()));\n\n {\n Date fechaInicio = (Date) respuestaMae\n .getValueAt(0, \"FEC_DESD\");\n clienteRecomendante.setFechaInicio((fechaInicio != null) \n ? fechaInicio : null);\n }\n // fecha fin de MAE\n {\n Date fechaFin = (Date) respuestaMae\n .getValueAt(0, \"FEC_HAST\");\n clienteRecomendante.setFechaFin((fechaFin != null) \n ? fechaFin : null);\n }\n } else {\n hayRecomendante = false;\n }\n }\n // tomo los datos de MAE\n if (hayRecomendante) {\n \n // JVM, sicc 20070381 , agrega bloque que recupera datos del periodo \n // {\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n \n queryInc = new StringBuffer();\n \n try {\n queryInc.append(\" select x.n, x.oid_peri, x.fec_inic, x.fec_fina, x.pais_oid_pais, x.marc_oid_marc, x.cana_oid_cana \"); \n queryInc.append(\" from ( \"); \n queryInc.append(\" select 1 n, b.oid_peri as oid_peri, \"); \n queryInc.append(\" b.fec_inic as fec_inic, \"); \n queryInc.append(\" b.fec_fina as fec_fina, \"); \n queryInc.append(\" b.pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" b.marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" b.cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from mae_clien_prime_conta a, cra_perio b, seg_perio_corpo c \"); \n queryInc.append(\" where a.clie_oid_clie = \" + clienteRecomendante.getRecomendante()); \n queryInc.append(\" and a.perd_oid_peri = b.oid_peri \"); \n queryInc.append(\" and b.peri_oid_peri = c.oid_peri \"); \n queryInc.append(\" and b.oid_peri in ( \"); \n queryInc.append(\" select oid_peri \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendante.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date ('\"+ df.format(clienteRecomendante.getFechaInicio()) +\"', 'DD/MM/YYYY') <= fec_fina ) \");\n queryInc.append(\" union \"); \n queryInc.append(\" select rownum + 1 as n, oid_peri as oid_peri, \"); \n queryInc.append(\" fec_inic as fec_inic, \"); \n queryInc.append(\" fec_fina as fec_fina, \"); \n queryInc.append(\" pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendante.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date('\"+ df.format(clienteRecomendante.getFechaInicio()) +\"', 'DD-MM-YYYY') <= fec_fina \");\n queryInc.append(\" order by oid_peri asc \"); \n queryInc.append(\" ) x \"); \n queryInc.append(\" order by n \"); \n \n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n BigDecimal bd;\n Periodo periodo = new Periodo();\n \n if (!respuestaInc.esVacio()) {\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"OID_PERI\");\n periodo.setOidPeriodo(new Long(bd.longValue()));\n periodo.setFechaDesde((Date) respuestaInc.getValueAt(0, \"FEC_INIC\"));\n periodo.setFechaHasta((Date) respuestaInc.getValueAt(0, \"FEC_FINA\")); \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"PAIS_OID_PAIS\");\n periodo.setOidPais(new Long(bd.longValue()));\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"MARC_OID_MARC\");\n periodo.setOidMarca(new Long(bd.longValue()));\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"CANA_OID_CANA\");\n periodo.setOidCanal(new Long(bd.longValue()));\n } \n\n clienteRecomendante.setPeriodo(periodo);\n // } \n \n Cliente clienteLocal = new Cliente();\n clienteLocal.setOidCliente(clienteRecomendante.getRecomendante());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendante.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n clienteParametro.setClienteRecomendante(clienteRecomendante);\n \n } else {\n clienteParametro.setClienteRecomendante(null);\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendante(Cliente\"\n +\" clienteParametro, Long oidPais):Salida\");\n }", "public void conectarServicio(){\n\t\tIntent intent = new Intent(this,CalcularServicio.class);\n\t\tbindService(intent, mConexion, Context.BIND_AUTO_CREATE);\n\t\tmServicioUnido = true;\n\t}", "private void doGetSobotInfo() {\n showProgress(\"\");\n RetrofitApiFactory.createApi(MineApi.class)\n .doGetSobotInfo(0, null, null)\n .compose(RxSchedulers.compose())\n .compose((this).bindUntilEvent(ActivityEvent.DESTROY))\n .subscribe(new FastObserver<BaseData<SobotSystemEntity>>(this) {\n\n @Override\n public void onSuccess(BaseData<SobotSystemEntity> data) {\n SobotApiUtils.getInstance().toCustomServicePage(getContext(), UserInfoCache.get(), null, data.getData());\n }\n });\n }", "private void verificar_comando(String comando, InterfazRemota interfaz, int puerto) {\n\tString cmd[] = comando.split(\"[\\\\s]+\");\n\tString aux[];\n\tString servidor;\n\tString archivo;\n\n\tif (cmd[0].equalsIgnoreCase(\"C\") && cmd.length == 3){\n\t if (cmd[1].equalsIgnoreCase(\"-t\") || cmd[1].equalsIgnoreCase(\"-k\")){\n\t\ttry {\n\t\t SalidaDFS salida = interfaz.dfs_distribuido(cmd[1] + \" \" + cmd[2], new Vector<String>());\n\t\t if ((salida.resultado).equals(\"\")){\n\t\t\tSystem.out.println(\"No hubo resultados \\n\");\n\t\t }\n\t\t else {\n\t\t\tSystem.out.println(salida.resultado);\n\t\t }\n\t\t \n\t\t}\n\t\tcatch (java.rmi.RemoteException r) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor\");\n\t\t}\n\t\tfinally {\n\t\t return;\n\t\t}\n\t }\n\t /* Comando invalido */\n\t else System.out.println(\"Codigo Invalido\");\n\t}\n\t/* Solicitar una foto */\n\telse if (cmd[0].equalsIgnoreCase(\"D\") && cmd.length == 2 && cmd[1].matches(\"[\\\\S]+[:][\\\\S]+jpg\")){\n\t aux = cmd[1].split(\":\");\n\t servidor = aux[0];\n\t archivo = aux[1];\n\t try {\n\t\tInterfazRemota transferencia = null;\n\t\t\n\t\ttry {\n\t\t transferencia = (InterfazRemota)java.rmi.Naming.lookup(\"//\" + servidor + \":\" + puerto + \"/fotop2p\");\n\t\t}\n\t\tcatch (NotBoundException e) {\n\t\t System.err.println(\"No existe el servicio solicitado en \" + servidor + \":\" + puerto);\n\t\t System.exit(-1);\n\t\t}\n\t\tcatch (MalformedURLException m) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor: URL incorrecta\");\n\t\t System.exit(-1);\n\t\t}\n\t\tcatch (java.rmi.RemoteException r) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor\");\n\t\t System.exit(-1);\n\t\t}\n\n\t\tbyte [] foto = transferencia.archivo_a_bytes(archivo);\n\t\t\n\t\tif (foto == null) {\n\t\t System.out.println(\"Foto no encontrada o error al abrirla en el servidor\");\n\t\t}\n\t\telse {\n\t\t FileOutputStream fos = new FileOutputStream(\"./\" + archivo);\n\t\t BufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\t bos.write(foto,0,foto.length);\n\t\t System.out.println(\"Foto recibida exitosamente \\n\");\n\n\t\t}\n\t }\n\t catch (java.rmi.RemoteException r) {\n\t\tSystem.err.println(\"No se pudo establecer conexion con el servidor\");\n\t }\n\t catch(IOException i) {\n\t\tSystem.err.println(\"Error al escribir el archivo\");\n\t }\n\t finally {\n\t\treturn;\n\t }\n\t}\n\t/* obterner numero de alcanzables */\n\telse if (cmd[0].equalsIgnoreCase(\"A\") && cmd.length == 1){\n\t try {\n\t\tVector<String> alc = interfaz.alcanzables(new Vector<String>());\n\t\tSystem.out.println(\"Alcanzables: \" + alc.size());\n\t }\n\t catch (java.rmi.RemoteException r) {\n\t\tSystem.out.println(\"No se pudo establecer conexion con el servidor\");\n\t\t\n\t\tSystem.out.println(r.getMessage());\n\t\tr.printStackTrace();\n\t }\n\t finally {\n\t\treturn;\n\t }\n\t}\n\t/* Salir */\n\telse if (cmd[0].equalsIgnoreCase(\"Q\") && cmd.length == 1 ){\n\t System.out.println(\"Chao\");\n\t System.exit(0);\n\t}\n \telse {\n\t System.out.println(\"Comando Invalido\");\n\t return;\n\t}\n }", "public void acionarInadimplencia(InstrumentoFinanceiroDO ativo);", "@Override\r\n\tpublic void service(AgiRequest request, AgiChannel channel)\r\n\t\t\tthrows AgiException {\n\t\t\r\n\t\tString numsel = getVariable(\"EXTEN\");\r\n\t\tif (numsel.endsWith(\"#\"))\r\n\t\t\tnumsel = numsel.substring(0, numsel.length()-1);\r\n\t\t\r\n\t\tString oilnum = getVariable(\"oilponum\");\r\n\t\t\r\n\t\t\r\n\t\tint iNumSel = Integer.parseInt(numsel);\r\n\t\tint ioilNum = Integer.parseInt(oilnum);\r\n\t\t\r\n\t\t\r\n\t\tif (iNumSel>ioilNum || iNumSel<1)\r\n\t\t{\r\n\t\t\tsetExtension(\"i\");\r\n\t\t\tsetPriority(\"1\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tString docid = getVariable(\"DOC\" + iNumSel);\r\n\t\tString phone = getVariable(\"PHONE\" + iNumSel);\r\n\t\t\r\n\t\t\r\n\t\tsetVariable(\"DOCID\", docid);\r\n\t\tsetVariable(\"oilcomphone\", phone);\r\n\t\t\r\n\t//\tString conPhone = getVariable(\"custphone\" + iNumSel);\r\n\t//\tString cellphone = getVariable(\"cellphone\" + iNumSel);\r\n\t\t\r\n\t//\tsetVariable(\"spphone\", conPhone);\r\n\t//\tsetVariable(\"SPDIALNUM\", conName);\r\n\t//\tsetVariable(\"spphone\", conPhone);\r\n\t//\tsetVariable(\"cellphone\", cellphone);\r\n\r\n\t}", "Reserva Obtener();", "public TurnoVOClient() {\r\n }", "public AgregarClientes(Directorio directorio) {\n initComponents();\n this.directorio=directorio;\n \n \n }", "public void Ingresar() {\nTipoCliente();\n\t\t\t\t\t\t\t\t\t\n}", "@Override\n\tpublic void send(Message event) {\n\t\t// read and parse heyOOCSI message\n\t\tif (event.getRecipient().equals(\"heyOOCSI!\")) {\n\t\t\tsynchronized (clients) {\n\t\t\t\tevent.data.forEach((k, v) -> {\n\t\t\t\t\tif (v instanceof ObjectNode) {\n\t\t\t\t\t\tObjectNode on = ((ObjectNode) v);\n\n\t\t\t\t\t\t// seems we have an object, let's parse it\n\t\t\t\t\t\tOOCSIDevice od = new OOCSIDevice();\n\t\t\t\t\t\tod.name = k;\n\t\t\t\t\t\tod.deviceId = on.at(\"/properties/device_id\").asText(\"\");\n\t\t\t\t\t\ton.at(\"/components\").fields().forEachRemaining(e -> {\n\t\t\t\t\t\t\tDeviceEntity dc = new DeviceEntity();\n\t\t\t\t\t\t\tdc.name = e.getKey();\n\t\t\t\t\t\t\tJsonNode value = e.getValue();\n\t\t\t\t\t\t\tdc.channel = value.get(\"channel_name\").asText(\"\");\n\t\t\t\t\t\t\tdc.type = value.get(\"type\").asText(\"\");\n\t\t\t\t\t\t\tdc.icon = value.get(\"icon\").asText(\"\");\n\t\t\t\t\t\t\t// retrieve default value or state which are mutually exclusive\n\t\t\t\t\t\t\tif (value.has(\"value\")) {\n\t\t\t\t\t\t\t\tdc.value = value.get(\"value\").asText();\n\t\t\t\t\t\t\t} else if (value.has(\"state\")) {\n\t\t\t\t\t\t\t\tdc.value = value.get(\"state\").asText();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tod.components.add(dc);\n\t\t\t\t\t\t});\n\t\t\t\t\t\ton.at(\"/location\").fields().forEachRemaining(e -> {\n\t\t\t\t\t\t\tif (e.getValue().isArray()) {\n\t\t\t\t\t\t\t\tFloat[] locationComponents = new Float[2];\n\t\t\t\t\t\t\t\tlocationComponents[0] = new Float(((ArrayNode) e.getValue()).get(0).asDouble());\n\t\t\t\t\t\t\t\tlocationComponents[1] = new Float(((ArrayNode) e.getValue()).get(1).asDouble());\n\t\t\t\t\t\t\t\tod.locations.put(e.getKey(), locationComponents);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\ton.at(\"/properties\").fields().forEachRemaining(e -> {\n\t\t\t\t\t\t\tod.properties.put(e.getKey(), e.getValue().asText());\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// check contents of device\n\n\t\t\t\t\t\t// then add to clients\n\t\t\t\t\t\tclients.put(k, od);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tif (event.data.containsKey(\"clientHandle\")) {\n\t\t\t\tString clientHandle = (String) event.data.get(\"clientHandle\");\n\t\t\t\tif (clients.containsKey(clientHandle)) {\n\t\t\t\t\tOOCSIDevice od = clients.get(clientHandle);\n\t\t\t\t\tClient c = server.getClient(event.getSender());\n\t\t\t\t\tif (c != null) {\n\t\t\t\t\t\tc.send(new Message(token, event.getSender()).addData(\"clientHandle\", clientHandle)\n\t\t\t\t\t\t .addData(\"location\", od.serializeLocations())\n\t\t\t\t\t\t .addData(\"components\", od.serializeComponents())\n\t\t\t\t\t\t .addData(\"properties\", od.serializeProperties()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (event.data.containsKey(\"x\") && event.data.containsKey(\"y\")\n\t\t\t && event.data.containsKey(\"distance\")) {\n\t\t\t\ttry {\n\t\t\t\t\tfinal float x = ((Number) event.data.get(\"x\")).floatValue();\n\t\t\t\t\tfinal float y = ((Number) event.data.get(\"y\")).floatValue();\n\t\t\t\t\tfinal float distance = ((Number) event.data.get(\"distance\")).floatValue();\n\n\t\t\t\t\t// check if we need to truncate the client list, according to the \"n closest clients\"\n\t\t\t\t\tfinal int closest;\n\t\t\t\t\tif (event.data.containsKey(\"closest\")) {\n\t\t\t\t\t\tclosest = ((Number) event.data.get(\"closest\")).intValue();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclosest = 100;\n\t\t\t\t\t}\n\n\t\t\t\t\t// build list of all client within given distance\n\t\t\t\t\tMap<Double, String> clientNames = new HashMap<>();\n\t\t\t\t\tclients.values().stream().forEach(od -> {\n\t\t\t\t\t\tod.locations.entrySet().forEach(loc -> {\n\t\t\t\t\t\t\tFloat[] location = loc.getValue();\n\t\t\t\t\t\t\tdouble dist = Math.hypot(Math.abs(location[0] - x), Math.abs(location[1] - y));\n\t\t\t\t\t\t\tif (dist < distance) {\n\t\t\t\t\t\t\t\tclientNames.put(dist, od.deviceId);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\n\t\t\t\t\t// create sorted list of clients, potentially truncated by \"closest\"\n\t\t\t\t\tList<String> cns = clientNames.entrySet().stream().sorted(Map.Entry.comparingByKey()).limit(closest)\n\t\t\t\t\t .map(e -> e.getValue()).collect(Collectors.toList());\n\n\t\t\t\t\t// assemble the clients within distance from reference point and send back\n\t\t\t\t\tClient c = server.getClient(event.getSender());\n\t\t\t\t\tif (c != null) {\n\t\t\t\t\t\tc.send(new Message(token, event.getSender()).addData(\"x\", x).addData(\"y\", y)\n\t\t\t\t\t\t .addData(\"distance\", distance).addData(\"clients\", cns.toArray(new String[] {})));\n\t\t\t\t\t}\n\t\t\t\t} catch (NumberFormatException | ClassCastException e) {\n\t\t\t\t\t// could not parse the coordinates or distance, do nothing\n\t\t\t\t}\n\t\t\t} else if (event.data.containsKey(\"location\")) {\n\t\t\t\tString location = ((String) event.data.get(\"location\")).trim();\n\t\t\t\tSet<String> clientNames = new HashSet<>();\n\t\t\t\tclients.values().stream().forEach(od -> {\n\t\t\t\t\tod.locations.keySet().forEach(loc -> {\n\t\t\t\t\t\tif (loc.equalsIgnoreCase(location)) {\n\t\t\t\t\t\t\tclientNames.add(od.deviceId);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\t\t// assemble the clients within given location and send back\n\t\t\t\tClient c = server.getClient(event.getSender());\n\t\t\t\tif (c != null) {\n\t\t\t\t\tc.send(new Message(token, event.getSender()).addData(\"location\", location).addData(\"clients\",\n\t\t\t\t\t clientNames.toArray(new String[] {})));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void pegaInstanciaDialogo(AposentadoriaCompulsoria obj) {\n\t\t\n\t}", "@Override\r\n\tpublic void doMessage(InnerMessage msg, IConnect session) throws Exception {\n\t\tGameGateEnterGameSuccessResponse resq = GameGateEnterGameSuccessResponse.parseFrom(msg.getBody());\r\n\t\tIConnect con = ConnectorManage.getMinaConnect(msg.getClientSessionId());\r\n\t\tif (con != null) {\r\n\t\t\tcon.setRoleId(resq.getRoleId());\r\n\t\t\tMessageSend.sendGateToClient(createEnterGameResponse(resq.getRoleId()), msg.getClientSessionId());\r\n\t\t\tlog.error(\"send client ok\" + msg.getClientSessionId());\r\n\t\t} else {\r\n\t\t\tlog.error(\"不存在id\" + msg.getClientSessionId());\r\n\t\t}\r\n\t}", "public void Apms(AggRMPsndocVO[] aggvos)throws Exception{\n\t\t if (ArrayUtils.isEmpty(aggvos)) {\r\n\t\t throw new BusinessException(ResHelper.getString(\"6021psndoc\", \"06021psndoc0002\"));\r\n\t\t }\r\n\t\t List<RMPsnJobVO> voList = new ArrayList();\r\n\t\t for (Object selectData : aggvos)\r\n\t\t {\r\n\t\t AggRMPsndocVO aggVO = (AggRMPsndocVO)selectData;\r\n\t\t if (!ArrayUtils.isEmpty(aggVO.getTableVO(RMPsnJobVO.getDefaultTableName()))) {\r\n\t\t CollectionUtils.addAll(voList, aggVO.getTableVO(RMPsnJobVO.getDefaultTableName()));\r\n\t\t }\r\n\t\t }\r\n\t\t if (CollectionUtils.isEmpty(voList)) {\r\n\t\t throw new BusinessException(ResHelper.getString(\"6021psndoc\", \"06021psndoc0102\", new String[] { getBtnName() }));\r\n\t\t }\r\n\t\t doArrange((RMPsnJobVO[]) aggvos[0].getTableVO(RMPsnJobVO.getDefaultTableName()),aggvos);\r\n//\t\t RMShowJobDialog dlg = null;\r\n//\t\t if ((aggvos.length == 1) && (voList.size() == 1))\r\n//\t\t {\r\n//\t\t if (1 != MessageDialog.showOkCancelDlg(getEntranceUI(), ResHelper.getString(\"6021pub\", \"06021pub0040\", new String[] { getBtnName() }), ResHelper.getString(\"6021psndoc\", \"06021psndoc0003\")))\r\n//\t\t {\r\n//\t\t putValue(\"message_after_action\", ResHelper.getString(\"6001uif2\", \"06001uif20002\"));\r\n//\t\t return;\r\n//\t\t }\r\n//\t\t dlg = getDialog();\r\n//\t\t dlg.doPrimary((RMPsnJobVO[])voList.toArray(new RMPsnJobVO[0]));\r\n//\t\t }\r\n//\t\t else\r\n//\t\t {\r\n//\t\t dlg = getDialog();\r\n//\t\t dlg.setValue(voList.toArray(new RMPsnJobVO[0]));\r\n//\t\t dlg.showModal();\r\n//\t\t }\r\n//\t\t clearDialog(dlg);\r\n\t\t ShowStatusBarMsgUtil.showStatusBarMsg(IShowMsgConstant.getSaveSuccessInfo(), getContext());\r\n\t }", "public static void main(String[] args) {\n EosApi api = EosApiFactory.create(\"https://api.jungle.alohaeos.com\");\n //EosApi api = EosApiFactory.create(\"https://jungle.cryptolions.io\");\n //EosApi api = EosApiFactory.create(\"https://eos.newdex.one\");\n //System.out.println(api.getChainInfo());\n //buyRam(api, \"5K3iYbkjpvZxxAJyHQVAtJmCi4CXetBKq3CfcboMz21Y5Pjvovo\", \"bihuexwallet\", \"bihuexwallet\",15000);\n //delegate(api, \"5KD2hyi84H46ND8citJr6L84mYegnX1UKw9osLnF3qpcjoeRAAn\", \"carilking111\", \"carilking444\",\"1.5000 EOS\",\"1.5000 EOS\");\n //updateAuth(api,\"5JhoFQMN9xWGMFfUDJHHPVsuSytSDot8Q5TNv3rN6VVGPbjTrGN\",\"carilking444\",\"EOS82Psyaqk86jbSdSmGzonNCUHsBp1Xj42q37g6UkiA1UhzLe57j\",\"active\");\n //updateAuth(api,\"5JrTcSsUmzoLDxsNFcpGBRt2Wd488qTmHp5yfBPy71MbxaqSJ4g\",\"carilking555\",\"EOS5X6Sbmbc2zaJ8EHNZmdSnA26DsuTim59pdUNiNd34HugzvTp5m\",\"active\");\n //transfer(api,\"5JhoFQMN9xWGMFfUDJHHPVsuSytSDot8Q5TNv3rN6VVGPbjTrGN\", \"carilking444\",\"carilking111\",BigDecimal.valueOf(0.01),\"喵喵喵~\");\n //Object obj=api.getTransaction(new TransactionRequest(\"e5aeee319e8c767cdda35a3b6d460328f958833e58723bc18581765494018700\"));\n //System.out.println(obj);\n List<String> accounts = new ArrayList<>();\n accounts.add(\"carilking111\");\n accounts.add(\"carilking444\");\n //updateMultipleAuth(api, \"5JPNqMSZ8M567hgDGW9CmD9vr2RaDm1eWpJqHaHa2S5xKTMmFKm\", \"heydoojqgege\", 2, accounts, \"active\");\n //proposeTransfer(api, \"5K3iYbkjpvZxxAJyHQVAtJmCi4CXetBKq3CfcboMz21Y5Pjvovo\", \"bihuexwallet\", \"firstmsig152\", \"heydoojqgege\", \"carilking222\", BigDecimal.valueOf(0.2), \"test1\", accounts);\n //approveTransfer(api,\"5KD2hyi84H46ND8citJr6L84mYegnX1UKw9osLnF3qpcjoeRAAn\",\"carilking111\",\"bihuexwallet\",\"firstmsig151\");\n //execPropose(api,\"5K3iYbkjpvZxxAJyHQVAtJmCi4CXetBKq3CfcboMz21Y5Pjvovo\",\"bihuexwallet\",\"bihuexwallet\",\"firstmsig151\");\n }", "public Tavolo (String id_tavolo, int num_posti){\n this.id_tavolo = id_tavolo;\n this.num_posti = num_posti;\n interno = true;\n disponibile = true;\n AssegnamentiTavolo = new ArrayList<Invitato>(num_posti);\n postiTot=num_posti;\n }", "@Override\n\tpublic void goToUIPrestamo() {\n\t\tif(uiHomePrestamo!=null){\n\t\t\tif(!uiHomePrestamo.getModo().equals(\"HISTORIAL\")){\n\t\t\t\tuiHomePrestamo.getUIPrestamoImpl().sendPrestamoHistorial(beanPrestamo.getIdPrestamo());\n\t\t\t}\t\t\n\t\t\tuiHomePrestamo.getContainer().showWidget(0);\n\t\t\tuiHomePrestamo.getUIPrestamoImpl().cargarTabla();\n\t\t}else if(uiHomeCobranza!=null){\n\t\t\tuiHomeCobranza.getUIPrestamoImpl().sendPrestamoHistorial(beanPrestamo.getIdPrestamo());\n\t\t\tuiHomeCobranza.getContainer().showWidget(1);\n\t\t\tuiHomeCobranza.getUIPrestamoImpl().cargarPrestamoGestorCobranza();\n\t\t}\n\t\t\t\t\t\n\t}", "protected void onTick() {\n\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (userRequest != null) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"Essayez reservation du tourisme \" + userRequest.getTourism().getAddressDestination());\n\t\t\t\t\tDFAgentDescription tmp = new DFAgentDescription();\n\t\t\t\t\tServiceDescription sd = new ServiceDescription();\n\t\t\t\t\tsd.setType(\"Reservation tour \");\n\t\t\t\t\ttmp.addServices(sd);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDFAgentDescription[] result = DFService.search(myAgent, tmp);\n\t\t\t\t\t\tbrokerAgent = new AID[result.length];\n\t\t\t\t\t\tfor (int i = 0; i < result.length; ++i) {\n\t\t\t\t\t\t\tbrokerAgent[i] = result[i].getName();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (FIPAException fe) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tfe.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tmyAgent.addBehaviour(new RequestPerformer());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Agent utilisateur: n'a pas la demande\");\n\t\t\t\t}\n\t\t\t}", "public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n SendRequestToFriend(myAgent.friends.get(i));\n }\n\n // Crée un filtre pour lire d'abord les messages des amis et des leaders des amis\n MessageTemplate temp = MessageTemplate.MatchReceiver(myfriends);\n MessageTemplate temp2 = MessageTemplate.MatchReceiver(friendsLeader);\n MessageTemplate tempFinal = MessageTemplate.or(temp, temp2);\n\n // Réception des messages\n ACLMessage messageFriendly = myAgent.receive(tempFinal);\n // si on n'est pas dans un groupe\n if (messageFriendly != null && !inGroup) {\n \t// s'il reçoit une proposition d'un amis/ leader d'un ami, il accepte, peu importe le poste et s econsidère dans le groupe\n if (messageFriendly.getPerformative() == ACLMessage.PROPOSE) {\n AcceptProposal(messageFriendly, Group.Role.valueOf(messageFriendly.getContent()));\n inGroup = true;\n }\n // s'il reçoit un CONFIRM, il enregistre le leader\n else if (messageFriendly.getPerformative() == ACLMessage.CONFIRM) {\n myLeader = messageFriendly.getSender();\n }\n // s'il reçoit un INFORM, il enregistre l'AID du leader de son ami afin de recevoir ses messages et lui demande son poste préféré\n else if (messageFriendly.getPerformative() == ACLMessage.INFORM) {\n AddFriendsLeaderToList(messageFriendly);\n AnswerByAskingPreferedJob(messageFriendly);\n }\n // sinon, il renvoie une erreur\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFriendly );\n }\n }\n // si on est dans un groupe\n else if (messageFriendly != null && inGroup) { \n \t// s'il reçoit une requete et qu'il est déjà dans un groupe, il renvoir l'AID de son leader à son ami\n if (messageFriendly.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFriendly);\n }\n // s'il reçoit un DISCONFIRM, il se remet en quete de job\n else if (messageFriendly.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFriendly);\n }\n else {\n \t// sinon, il refuse tout offre\n RefuseOffer(messageFriendly);\n }\n }\n else {\n \t// on check ensuite les messages des inconnus, une fois ceux des amis triés\n ACLMessage messageFromInconnu = myAgent.receive();\n \n // si on n'est pas dans un groupe\n if (messageFromInconnu != null && !inGroup) {\n \n boolean offerPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent().equals((\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\"));\n boolean offerNotPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent() != (\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\" );\n \n //on accepte l offre s'il s'agit de notre role préféré\n if (offerPreferedJob){\n AcceptProposal(messageFromInconnu, myAgent.preferedRole);\n }\n // on refuse s'il ne s'agit pas de notre offre favorite en redemandant notre job préféré\n else if (offerNotPreferedJob){\n RefuseOffer(messageFromInconnu);\n }\n // si on reçoit une confimation, on se considère dans un groupe et on enregistre notre leader\n else if (messageFromInconnu.getPerformative() == ACLMessage.CONFIRM){\n inGroup = true;\n myLeader = messageFromInconnu.getSender();\n }\n // sinon, il s'agit d'une erreure\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFromInconnu );\n }\n }\n // si on est dans un groupe\n else if (messageFromInconnu != null && inGroup) {\n \t// si on reçoit une requete, on renvoie à notre leader\n if (messageFromInconnu.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFromInconnu);\n }\n // si on reçoit un DISCONFIRM, on repart en quete de job\n else if (messageFromInconnu.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFromInconnu);\n }\n // sinon on refuse\n else {\n RefuseOffer(messageFromInconnu);\n }\n }\n // si le message est vide, on bloque le flux\n else {\n block();\n }\n }\n }", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public ICliente getCodCli();", "private void makeAction(JSONObject request, DataOutputStream clientStream) throws IOException, ParseException {\n\t\tGossip_action_message.Action action = Gossip_parser.getClientAction(request);\n\t\tString sender = Gossip_parser.getClientName(request);\n\t\tString receiver = Gossip_parser.getClientReceiver(request);\n\n\t\ttry {\n\t\t\tswitch(action) {\n\t\t\t\n\t\t\t\tcase LOOKUP_OP: {\n\t\t\t\t\tif (data.searchUser(receiver) == true)\n\t\t\t\t\t\tsendReply(new Gossip_userinfo_message(Gossip_success_message.successMsg.USERINFO, data.getUser(receiver)), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase FRIENDSHIP_OP: {\n\t\t\t\t\tif (!data.addFriendship(sender, receiver))\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.FRIENDALREADY), clientStream);\n\t\t\t\t\telse\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase RM_FRIENDSHIP_OP: {\n\t\t\t\t\tif (!data.removeFriendship(sender, receiver))\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.FAIL_OP), clientStream);\n\t\t\t\t\telse\n\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase MSG_FRIEND_OP: {\n\t\t\t\t\t//non è permesso scambiare messaggi tra utenti non amici\n\t\t\t\t\tif (!data.getFriends(sender).contains(data.getUser(receiver)))\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.OPNOTALLOWED), clientStream);\n\t\t\t\t\telse {\n\t\t\t\t\t\tGossip_text_notification_message notification;\n\t\t\t\t\t\tString text = Gossip_parser.getText(request);\n\t\t\t\t\t\tString senderLang = Gossip_parser.getLang(data.getUser(sender).getLanguage());\n\t\t\t\t\t\tString receiverLang = Gossip_parser.getLang(data.getUser(receiver).getLanguage());\n\t\t\t\t\t\t//traduco testo\n\t\t\t\t\t\tString translatedText = Gossip_translator.translate(text, senderLang, receiverLang);\n\t\t\t\t\t\tSocket receiver_socket;\n\t\t\t\t\t\t//se la traduzione mi restituisce null, invio il testo non tradotto\n\t\t\t\t\t\tif (translatedText == null)\n\t\t\t\t\t\t\tnotification = new Gossip_text_notification_message(sender, text);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tnotification = new Gossip_text_notification_message(sender, translatedText);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//recupero il socket per le notifiche al client\n\t\t\t\t\t\t\treceiver_socket = data.getUser(receiver).getMessageSocket();\n\t\t\t\t\t\t\tsynchronized(receiver_socket) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//invio notifica\n\t\t\t\t\t\t\t\tsendReply(notification, new DataOutputStream(receiver_socket.getOutputStream()));\n\t\t\t\t\t\t\t\t//invio risposta\n\t\t\t\t\t\t\t\tsendReply(new Gossip_server_message(Gossip_server_message.Op.SUCCESS_OP), clientStream);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (FriendOfflineException e) {\n\t\t\t\t\t\t\t//amico offline\n\t\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.FRIENDOFFLINE), clientStream);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} break;\n\t\t\t\t\n\t\t\t\tcase FILE_FRIEND_OP: {\n\t\t\t\t\t//non è permesso inviare file a utenti che non sono amici\n\t\t\t\t\tif (!data.getFriends(sender).contains(data.getUser(receiver)))\n\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.OPNOTALLOWED), clientStream);\n\t\t\t\t\telse {\n\t\t\t\t\t\tString filename = Gossip_parser.getFilename(request);\n\t\t\t\t\t\tSocket receiver_socket;\n\t\t\t\t\t\tGossip_file_notification_message notification = new Gossip_file_notification_message(sender, filename);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//recupero socket per le notificihe\n\t\t\t\t\t\t\treceiver_socket = data.getUser(receiver).getMessageSocket();\n\t\t\t\t\t\t\tsynchronized (receiver_socket) {\n\t\t\t\t\t\t\t\tsendReply(notification, new DataOutputStream(receiver_socket.getOutputStream()));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//ridirigo quello che scrive il receiver verso il mittente (hostname e porta per ricevere il file)\n\t\t\t\t\t\t\t\tclientStream.writeUTF(new DataInputStream(new BufferedInputStream(receiver_socket.getInputStream())).readUTF());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (FriendOfflineException e) {\n\t\t\t\t\t\t\t//friend offline\n\t\t\t\t\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.FRIENDOFFLINE), clientStream);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} break;\n\t\t\t}\n\t\t} catch (NodeNotFoundException e) {\n\t\t\t//utente non registrato\n\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.NICKUNKNOWN), clientStream);\n\t\t}\n\t}", "public String annullaSubAccertamento(){\n\t\t//informazioni per debug:\n\t\tsetMethodName(\"annullaSubAccertamento\");\n\t\tdebug(methodName, \"uid da annullare--> \"+getUidSubDaAnnullare());\n\t\t\n\t\t//compongo la request per il servizio di annulla:\n\t\tAnnullaMovimentoEntrata reqAnnulla = convertiModelPerChiamataServizioAnnulla(getUidSubDaAnnullare());\n\t\t\n\t\t//richiamo il servizio di annulla:\n\t\tAnnullaMovimentoEntrataResponse response = movimentoGestionService.annullaMovimentoEntrata(reqAnnulla);\n\n\t\t//analizzo la risposta del servizio:\n\t\tif(!response.isFallimento()){\n\t\t\t// RICARICO L'ACCERTAMENTO EVITANDO LA MEGA QUERY\n\t\t\tif(response.getAccertamento()!= null){\n\t\t\t\tmodel.setAccertamentoRicaricatoDopoInsOAgg(response.getAccertamento());\n\t\t\t}\n\t\t\t\n\t\t\t//richiamo il metodo di caricamento passandogli flagPostAggiorna a true:\n\t\t\tricaricaSubAccertamenti(true);\n\t\t\t\n\t\t\t//setto il messaggio di esito positivo:\n\t\t\taddActionMessage(ErroreFin.OPERAZIONE_EFFETTUATA_CORRETTAMENTE.getCodice() + \" \" + ErroreFin.OPERAZIONE_EFFETTUATA_CORRETTAMENTE.getErrore(\"\").getDescrizione());\n\t\t}else{\n\t\t\t//presenza errori\n\t\t\taddErrori(response.getErrori());\n\t\t\treturn INPUT;\n\t\t}\n\t\t\n\t\treturn SUCCESS;\n\t}", "@Path(\"/Enviar\")\r\n @POST\r\n @Consumes(MediaType.APPLICATION_JSON)\r\n @Produces(MediaType.APPLICATION_JSON) \r\n public Response SendPromotion(String query){\r\n logger.debug(\"Promociones - Enviar - query: \" + query); \r\n \r\n //obtenemos el nombre del cliente\r\n JSONObject jsonObjectRequest = new JSONObject(query); \r\n String nombre = jsonObjectRequest.get(\"nombre\").toString(); \r\n \r\n String msg = MSG_PROCESS_NOT_STARTED;\r\n int cod = -1; \r\n JSONArray result = new JSONArray();\r\n \r\n if(!nombre.equals(\"\")){\r\n //obtenemos la id del cliente a través del nombre\r\n ClienteDao clienteDao = new ClienteDao();\r\n int idCliente = clienteDao.GetId(nombre);\r\n logger.debug(\"SendPromotion - idCustomer: \"+idCliente);\r\n if(idCliente != -1){\r\n //comprobamos que el cliente tenga al menos una reserva\r\n boolean existeReserva = clienteDao.ExisteReserva(idCliente);\r\n if(existeReserva){\r\n //obtenemos las reservas del cliente\r\n ReservaDao reservaDao = new ReservaDao();\r\n ArrayList<Reserva> reservas = reservaDao.GetReservasCliente(idCliente);\r\n \r\n if(reservas.size() > 0){\r\n //obtenemos la preferencia de envío del cliente\r\n String preferencia = clienteDao.GetPreferencia(idCliente);\r\n if(!preferencia.equals(\"\")){\r\n //insertamos en el JSON el nombre del cliente y la preferencia de envío\r\n JSONObject client = new JSONObject();\r\n if (preferencia.equals(\"email\")){\r\n client.put(\"metodoenvio\",\"EMAIL\");\r\n }else{\r\n client.put(\"metodoenvio\",\"SMS\");\r\n }\r\n client.put(\"nombrecliente\",nombre);\r\n result.put(client);\r\n\r\n HotelDao hotelDao = new HotelDao();\r\n ArrayList<Promocion> hotelesPromocionables;\r\n //para todas las reservas del cliente\r\n for(Reserva reserva : reservas){\r\n //obtenemos el id del hotel a través del id de la reserva\r\n int idHotel = reserva.getIdHotel(); \r\n if(idHotel != -1){ \r\n //obtenemos la ciudad del hotel a través la id\r\n String ciudad = hotelDao.GetCiudad(idHotel);\r\n if(!ciudad.equals(\"\")){\r\n //obtenemos los hoteles que se pueden promocionar al cliente en base a la ciudad de anteriores reservas\r\n hotelesPromocionables = hotelDao.GetHotelesPromocionables(idHotel,ciudad);\r\n JSONArray hoteles = new JSONArray();\r\n\r\n if(hotelesPromocionables.size() > 0){\r\n //obtenemos el nombre del hotel a través de su id\r\n String nombreHotel = hotelDao.GetNombre(idHotel);\r\n if(!nombreHotel.equals(\"\")){\r\n //insertamos en el JSON el nombre del hotel ya reservado y la ciudad\r\n JSONObject infoHotelReservado = new JSONObject();\r\n infoHotelReservado.put(\"Hotel Ya Reservado\",nombreHotel);\r\n infoHotelReservado.put(\"Ciudad\",ciudad); \r\n hoteles.put(infoHotelReservado);\r\n\r\n JSONArray promociones = new JSONArray();\r\n //para todos los hoteles promocionales\r\n for(Promocion hp : hotelesPromocionables){\r\n //insertamos el nombre y plantilla del hotel a promocionar\r\n JSONObject p = new JSONObject();\r\n p.put(\"Nombre Hotel\", hp.getNombreHotel());\r\n p.put(\"Asunto\",hp.getAsunto());\r\n p.put(\"Cuerpo\",hp.getCuerpo());\r\n promociones.put(p); \r\n }\r\n hoteles.put(promociones);\r\n }else{\r\n cod = 10;\r\n msg = MSG_10;\r\n }\r\n }else{\r\n cod = 9;\r\n msg = MSG_9;\r\n }\r\n result.put(hoteles);\r\n }else{\r\n cod = 8;\r\n msg = MSG_8;\r\n }\r\n }else{\r\n cod = 7;\r\n msg = MSG_7;\r\n }\r\n cod = 1;\r\n msg = MSG_1;\r\n }\r\n }else{\r\n cod = 6;\r\n msg = MSG_6;\r\n }\r\n }else{\r\n cod = 5;\r\n msg = MSG_5;\r\n } \r\n }else{\r\n cod = 4;\r\n msg = MSG_4;\r\n } \r\n }else{\r\n cod = 3;\r\n msg = MSG_3;\r\n } \r\n }else{\r\n if(nombre.equals(\"\")){\r\n cod = 2;\r\n msg = MSG_2;\r\n }\r\n } \r\n \r\n JSONObject response = new JSONObject(); \r\n response.put(\"msg\",msg);\r\n response.put(\"cod\",cod);\r\n response.put(\"result\",result);\r\n return Response.status(200).entity(response.toString()).build(); \r\n }", "private void handleOptionOne() {\n\n ClientData clientData = view.askForClientPersonalDataAndCreateClientData(); // zwracamy stworzonego w widoku clienta z wrpowadoznych scanerem danych\n clientModel.save(clientData); // zapisujemy clienta do bazy danych\n view.showClientInformation(clientData); // wyswietlamy info o jego pinie itp.\n\n }", "public interface ApiCommand extends Serializable {\n public void execute(GiftApiClient apiClient);\n}", "public abstract void indicarRespuesta(CombinacionRespuesta combinacionAdversario);" ]
[ "0.61833423", "0.60005164", "0.595572", "0.5853232", "0.58352953", "0.5826589", "0.56930274", "0.5689244", "0.5620356", "0.5619636", "0.5592562", "0.55328023", "0.5505119", "0.5498442", "0.54615706", "0.5442159", "0.5435876", "0.54320765", "0.54293984", "0.5416221", "0.5406347", "0.54038274", "0.5401397", "0.5372298", "0.5359808", "0.5346426", "0.5314317", "0.530876", "0.5305421", "0.52791864", "0.5275831", "0.5275528", "0.5252932", "0.5249112", "0.5247311", "0.52328366", "0.5229819", "0.52291214", "0.5222655", "0.52161753", "0.5205219", "0.5202559", "0.51999485", "0.5198676", "0.5198227", "0.51775694", "0.5171367", "0.5168447", "0.5166272", "0.51589847", "0.51496184", "0.5145886", "0.51366615", "0.5128054", "0.51228964", "0.51203924", "0.5108199", "0.5105094", "0.5098395", "0.5094857", "0.5088714", "0.5087582", "0.5084242", "0.50789374", "0.5072059", "0.5066587", "0.5065517", "0.50617987", "0.50608104", "0.50587445", "0.50569785", "0.50556004", "0.50503534", "0.50497705", "0.5044598", "0.50410444", "0.50394106", "0.5037308", "0.50359404", "0.5035262", "0.5034748", "0.503418", "0.50320876", "0.5030399", "0.5030003", "0.50233006", "0.50142026", "0.5010154", "0.50047284", "0.50040144", "0.4999945", "0.49985123", "0.49982437", "0.49973425", "0.4996028", "0.49950936", "0.4994122", "0.4989551", "0.4985737", "0.4983609" ]
0.5675389
8
Invio della stringa conclusiva del gioco (es: "hai vinto!")
public void sendString(String string) throws RemoteException, IOException, InterruptedException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "void prosegui(String messaggio);", "public void come(String comida) {\n System.out.println(\"Estoy comiendo \" + comida);\n }", "public static void main(String[] args) {\n\r\n String nome = \"Mario\"; //object literal\r\n String outro = \"Alura\"; //má prática, sempre prefere a sintaxe literal\r\n\r\n String novo = outro.replace(\"A\", \"a\");\r\n System.out.println(novo);\r\n\r\n String novo2 = nome.toLowerCase(); //também teste toUpperCase()\r\n System.out.println(novo2);\r\n\r\n char c = nome.charAt(3); //char i\r\n System.out.println(c);\r\n\r\n int pos = nome.indexOf(\"rio\");\r\n System.out.println(pos);\r\n\r\n String sub = nome.substring(1);\r\n System.out.println(sub);\r\n\r\n for (int i = 0; i < nome.length(); i++) {\r\n System.out.println(nome.charAt(i));\r\n }\r\n\r\n StringBuilder builder = new StringBuilder(\"Socorram\");\r\n builder.append(\"-\");\r\n builder.append(\"me\");\r\n builder.append(\", \");\r\n builder.append(\"subi \");\r\n builder.append(\"no \");\r\n builder.append(\"ônibus \");\r\n builder.append(\"em \");\r\n builder.append(\"Marrocos\");\r\n String texto = builder.toString();\r\n\r\n System.out.println(texto);\r\n }", "private String encodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 1); \n }", "String sayHI(String msg){\n return msg + \"juga nama saya\" + this.nama;\n }", "public static void main(String[] args) {\n StringBuilder sb = new StringBuilder(\"Eu Programando\");\r\n StringBuilder sb2 = sb.append(\" nessa aula\");\r\n sb.append(\" mais uma coisa\");\r\n sb.append(\" e mais outra\");\r\n sb2.append(\" e mais uma pra finalizar\");\r\n\r\n // \"Eu programando\"\r\n // \"Eu programando nessa aula\"\r\n // \"Eu \"\r\n // \"Amando\"\r\n String s1 = \"Eu programando\";\r\n String s2 = s1.concat(\" nessa aula\");\r\n s1.substring(0,2);\r\n s1.replace(\"Eu Progra\", \"A\");\r\n\r\n System.out.println(\"#####################################\");\r\n System.out.println(\"StringBuilder sb: \" + sb);\r\n System.out.println(\"StringBuilder sb2: \" + sb2);\r\n System.out.println(\"String s1: \" + s1);\r\n System.out.println(\"String s2: \" + s2);\r\n }", "void stampaMessaggio(String messaggio);", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "public String turno(enemigo enem){\n\t\tString tur;\n\t\ttur=atacar(enem);\n\t\treturn tur;\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public static void main(String[] args) {\n String frase;\n String frase2 = \"\";//debe ser inicializada\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Ingrese una frase\");\n frase = sc.nextLine();\n\n int i = 0;\n\n while (i < frase.length()) {//ou con for et if y else, los i++ estarian solo en el for\n if (frase.charAt(i) != ' ') {\n frase2 = frase2.concat(frase.substring(i, i + 1));\n } else {//el else solo pedia tranformar los espacios en alterisco que se hace solo con\n frase2 = frase2.concat(\"*\");//esto//y esto\n while (frase.charAt(i) == ' ') {\n i++;\n }\n frase2 = frase2.concat(frase.substring(i, i + 1));\n }\n i++;\n }//faltaria una primera condicion como en los 2 ejercicios precedentes pa que no imprima asteriscos antes de la 1era letra\n System.out.println(frase2);\n }", "public String greet(String someone) {\n\t\treturn String.format(\"Hello How are you, %s!\", someone);\n\t}", "private void testString() {\n\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\tmessage.setPayload(\"Gimme a break, man!\");\n\t\tsend(message);\n\t}", "public String infoline()\n {\n return \" > You see delicious COFFEE being brewed from behind the starbucks counter\";}", "@Override\n\tpublic void talk(String s) {\n\t\tString[] stuff=s.split(\" \");\n\t\tString talkString=\"\";\n\t\tfor (String string : stuff) {\n\t\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\t\tif(i<string.length()/2) {\n\t\t\t\t\ttalkString+=\"o\";\n\t\t\t\t}else {\n\t\t\t\ttalkString+=\"i\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttalkString+=\"nk \";\n\t\t}\n\t\tSystem.out.println(talkString);\n\t}", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "static void printWord(String propozitie) {\n System.out.println(propozitie);\n\n\n }", "public String talkNiceWords() {\n\t\treturn \"How are you\";\n\t}", "public static void main(String arg[]) {\n String frase1 = \"Había vez circo alegraba el\";\n String frase2 = \"una un que siempre carazón sin temer jamás\";\n String frase3 = \"\";\n\n int inicio1 = 0;\n int fin1 = frase1.indexOf(\" \");\n int inicio2 = 0;\n int fin2 = frase2.indexOf(\" \");\n\n while ((fin1 != -1) || (fin2 != -1)) {\n if (fin1 != -1) {\n frase3 = frase3.concat(frase1.substring(inicio1, fin1 + 1));\n inicio1 = fin1 + 1;\n fin1 = frase1.indexOf(\" \", inicio1);\n }\n if (fin2 != -1) {\n frase3 = frase3.concat(frase2.substring(inicio2, fin2 + 1));\n inicio2 = fin2 + 1;\n fin2 = frase2.indexOf(\" \", inicio2);\n }\n }\n System.out.println(frase3);\n }", "static void salutare(String nume) {\n System.out.println(\"Hello \" + nume + \"!\");\n }", "public void cogerLetra(String letra){\r\n sb.append(letra);\r\n }", "@Override\n\tpublic void chi(String xingming) {\n\t\tSystem.out.println(\"我喜欢吃棒棒糖\");\n\t}", "public static void main(String[] args) {\n\t\tString lyrics = \"Let it go!Let it go!Cannot hold it back anymore\";\r\n\t\t\r\n\t\tSystem.out.println(lyrics);\r\n\t\t\r\n\t\tString changeher = lyrics.replace(\"it\", \"\\\"her\\\"\");\r\n\t\t\r\n\t\tSystem.out.println(changeher);\r\n\t\t\r\n\t\tString changecannot = changeher.replace(\"Cannot\", \"can't\");\r\n\t\t\r\n\t\tSystem.out.println(changecannot);\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString s =\"Hello\";\n\t\ts= s.concat(\"How\");\n\t\tSystem.out.println(s);\n\t\ts=s.concat(\"No\");\n\t\tSystem.out.println(s);\n\t\ts=s.replace(\"No\", \"Hello\");\n\t\tSystem.out.println(s);\n\n\n\t}", "@Override public String getQueso(){\n return \"manchego \";\n }", "@Override\r\n\tpublic String sonido() {\n\t\treturn \"Miauu\";\r\n\t}", "public void reagir(String frase) {\n if (frase.equals(\"toma comida\") || frase.equals(\"olá\")) {\n System.out.println(\"abanar e latir\");\n } else {\n System.out.println(\"rosnar\");\n }\n }", "public static String textInicial(){\n\t\treturn \"******** Joc del SENKU ********\\n\"\n\t\t\t\t+ \"Es tracta d'eliminar totes les fitxes 'X' del taulell menys una.\\n\"\n\t\t\t\t+ \"Per fer-ho qualsevol fitxa pot saltar una altra fitxa i col·locar/-se a una posició buida.\\n\"\n\t\t\t\t+ \"La fitxa saltada s'elimina del taulell.\\n\"\n\t\t\t\t+ \"Els moviments només poden ser horitzontals o verticals, mai diagonals.\\n\";\n\t}", "public void caricaPartita(String partita) {\n\r\n }", "private String e19BuildStaffGageString(String s) {\n String tmp1 = null;\n if ((s != null) && (s.length() > 0)) {\n tmp1 = String.format(\"%c%s-%c\", SEP_CHAR, s, SEP_CHAR);\n } else {\n tmp1 = String.format(\"%c-----%c\", SEP_CHAR, SEP_CHAR);\n }\n\n return tmp1;\n }", "@Override\r\n\tpublic void alimentar() {\n\t\tSystem.out.print(\" como carne, yummy, yummy\");\r\n\t}", "protected String elaboraTemplate(String testoIn) {\n return testoIn;\n }", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "public static void main(String[] args) {\nSystem.out.println(\"xin chào linh\");\n\n\n}", "public String make_hrasvanta(String s1)\n {\n String return_me = s1;\n if (!VowelUtil.isAjanta(s1)) Log.info(\"ERROR: not a Vowel.Cant make hrasvanta\");\n\n String stripped = VarnaUtil.stripAntyaVarna(s1);\n\n if (VowelUtil.isAkaranta(s1))\n return_me = stripped + \"a\";\n else if (VowelUtil.isIkaranta(s1))\n return_me = stripped + \"i\";\n else if (VowelUtil.isUkaranta(s1))\n return_me = stripped + \"u\";\n else if (VowelUtil.isRRikaranta(s1)) return_me = stripped + \"f\";\n\n return return_me;\n\n }", "java.lang.String getNewSentence();", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public static void main(String[] args) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"zhanglin\");\n stringBuilder.append(\"haoshuai\");\n System.out.println(stringBuilder);\n stringBuilder.append(\" nishishuaige\").append(\" ni jinnianjisuile\");\n System.out.println(stringBuilder);\n\n }", "ILoLoString translate();", "String getCognome();", "public static String shorthand(String s){\n \tif(s.toUpperCase().indexOf(\"YOU\")>=0){\n \t\ts=s.substring(0, s.toUpperCase().indexOf(\"YOU\"))+\" U \"+s.substring(s.toUpperCase().indexOf(\"YOU\")+3);\n \t\ts=shorthand(s);\n \t}else if(s.toUpperCase().indexOf(\"FOR\")>=0){\n \t\ts=s.substring(0, s.toUpperCase().indexOf(\"FOR\"))+\" 4 \"+s.substring(s.toUpperCase().indexOf(\"FOR\")+3);\n \t\ts=shorthand(s);\n \t}else if(s.toUpperCase().indexOf(\"AND\")>=0){\n \t\ts=s.substring(0, s.toUpperCase().indexOf(\"AND\"))+\" & \"+s.substring(s.toUpperCase().indexOf(\"AND\")+3);\n \t\ts=shorthand(s);\n \t}else if(s.toUpperCase().indexOf(\"TO\")>=0){\n \t\ts=s.substring(0, s.toUpperCase().indexOf(\"TO\"))+\" 2 \"+s.substring(s.toUpperCase().indexOf(\"TO\")+3);\n \t\ts=shorthand(s);\n \t}\n \treturn removeVowels(s);\n }", "public void showSir(String nom, String apell1, String apell2){\n System.out.println(\"Bienvenido \"+nom+\" \"+apell1+\" \"+apell2);\n System.out.println(\"\");\n}", "public void firstSem2a5(){\n chapter = \"firstSem2a5\";\n String firstSem2a5 = \"What about your friend here?\\\" he asks, nodding to \"+student.getRmName()+\". \\\"Oh, I'm good,\\\"\" +\n student.getRmName()+\"says quickly. I already have a job, through the underground Communist...uh, through\" +\n \" the school paper.\\\" You chat with the man a little longer before he excuses himself to go back to the \" +\n \"kitchen.\\tYou and \"+student.getRmName()+\" finish up your dinner and head back. About halfway there, your roommate \" +\n \"stops and peers at you intensely. \\\"Well?\\\" they say.\";\n getTextIn(firstSem2a5);\n }", "void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}", "private String getSentence(Context context) {\n HttpRequest httpRequest = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(ALBUM_SERVICE_URL + RANDOM.nextInt(100)))\n .setHeader(\"User-Agent\", \"Java 11 HttpClient Bot\")\n .timeout(Duration.ofMillis(1200))\n .build();\n\n try {\n HttpResponse<String> response = HTTP_CLIENT.send(httpRequest, HttpResponse.BodyHandlers.ofString());\n\n if (response.statusCode() == HTTP_OK) {\n\n AlbumJson albumJson = ALBUM_JSON_PARSER.parse(response.body());\n return \", your sentence of the day: \" + albumJson.getTitle();\n }\n } catch (IOException | InterruptedException e) {\n final LambdaLogger logger = context.getLogger();\n logger.log(\"Error: \" + Arrays.toString(e.getStackTrace()));\n }\n return \"\";\n }", "private String buildMessage(String message) {\n\t\tif(message != null && message.contains(\"@record\")) {\n\t\t\tmessage = message.replaceAll(\"@record\", answerUser);\n\t\t\trecorded.put(owner.id(), answerUser);\n\t\t}\n\t\t//o sistema substitui o texto !id pelo id do usuário da conversa\n\t\tif(message != null && message.contains(\"!id\")) {\n\t\t\tmessage = message.replaceAll(\"!id\", owner.id() + \"\");\n\t\t}\n\t\t//o sistema verifica se tem alguma gravacao para o código recebido\n\t\tif(message != null && message.contains(\"#find\")) {\n\t\t\tString gravacao = recorded.get(Integer.parseInt(userLatestAnswer.get(owner.id())));\n\t\t\t//se houver gravacao, o sistema informa qual o desejo do amigo secreto\n\t\t\tif(gravacao != null)\n\t\t\t\tmessage = message.replaceAll(\"#find\", gravacao);\n\t\t\t//caso nao haja gravacao, o sistema notifica o usuário da situacao\n\t\t\telse\n\t\t\t\tmessage = \"O código informado não corresponde ao desejo de um amigo secreto... por favor tente novamente\";\n\t\t}\n\n\t\treturn message;\n\t}", "private void sendCustomMessage(String message, String alli) {\n String frontA = \"V\" + alli;\n String gobbleDeGuck = \"<ID 0><CLR><WIN 0 0 287 31><POS 0 0><SL><S S><BL N><CS 3><GRN><T>\";\n String mid = message;\n String ender = \"</T>\";\n String sendableMsgString = frontA + gobbleDeGuck + mid + ender;\n //\n sendRawMessage(sendableMsgString);\n }", "private String SuppressionMot(String Mot, String Texte) throws InterruptedException {\n\t\tboolean trouve = false;\n\t\tString newCh =\"\";\n\t\tint i =0;\n\t\tif(Texte.equalsIgnoreCase(Mot)) { \t// Recherche dans le message si le mot est présent. \n\t\t\tnewCh=Texte.replaceAll(Mot, \"**\");\t// Remplace le mot par un espace. \n\t\t\ttrouve= true;\n\t\t} else {\n\t\t\tnewCh = Texte;\t//Sinon, on remplace la nouvelle chaîne de caractères par l'ancienne. \n\t\t}\n\t\treturn newCh;\t//Retourne la nouvelle chaîne de caractère modifiée ou pas. \n\t}", "public static String engToPig( String w ) {\r\n\tString result = \"\";\r\n\tif (w.substring(0,1).equals(\"y\")) {// if w begins with 'y'\r\n\t result = w.substring(1) + \"yay\";\r\n\t} \r\n\telse if (beginsWithVowel(w)) { //if w begins with a vowel\r\n\t result = w + \"way\"; //append way to w\r\n\t}\r\n else { //if w begins with consonant(s)\r\n\t result = w.substring(w.indexOf(firstVowel(w))) + w.substring(0,w.indexOf(firstVowel(w))) + \"ay\"; //take the first occurrence of a vowel, then the consonant(s) before that vowel, and add ay\r\n\t}\r\n if (beginsWithCapital(w)) {\r\n\t result = result.substring(0,1).toUpperCase() + result.substring(1).toLowerCase();\r\n\t}\r\n\tif (hasA(w,\".\")) {\r\n\t result = result.substring(0,result.indexOf(\".\")) + result.substring(result.indexOf(\".\") + 1) + \".\";\r\n\t }\r\n\tif (hasA(w,\",\")) {\r\n\t result = result.substring(0,result.indexOf(\",\")) + result.substring(result.indexOf(\",\") + 1) + \",\";\r\n\t }if (hasA(w,\"?\")) {\r\n\t result = result.substring(0,result.indexOf(\"?\")) + result.substring(result.indexOf(\"?\") + 1) + \"?\";\r\n\t }if (hasA(w,\"!\")) {\r\n\t result = result.substring(0,result.indexOf(\"!\")) + result.substring(result.indexOf(\"!\") + 1) + \"!\";\r\n\t }\r\n\treturn result;\r\n }", "public String saludoCastellano () {\n\t\treturn \"hola\";\n\t}", "String getString_lit();", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = 0;\n\t\tSystem.out.println(\"Veillez saisir une phrase :\");\n\t\tString phrase = sc.nextLine();\n\t\tSystem.out.println(phrase);\n\t\tSystem.out.println(\"M : \" + phrase.toUpperCase());\n\t\tfor(int i = 0; i < phrase.length(); i++)\n\t\t{\n\t\t\tif(phrase.charAt(i) == 'e')\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(\"C : \" + phrase.length());\n\t\tSystem.out.println(\"Le nombre de 'e' dans la phrase : \" + count);\n\t\tif(count > 0)\n\t\t\tSystem.out.println(\"R : \" + phrase.replace('e', '*'));\n\t}", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public static void main(String[] args) {\r\n\t\tString s = \"navneet\";\r\n\t\tchar c = 'm';\r\n\t\t\r\n\t\t\tSystem.out.println(s.indexOf(c));\r\n\t\t\t//s.replace(s.indexOf(ch), newChar)\r\n\t\t\t//s.substring(1);\r\n\t\t\tStringBuilder myName = new StringBuilder(\"domanokz\");\r\n\t\t\tmyName.setCharAt(4, 'x');\r\n\r\n\t\t\tSystem.out.println(myName);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t//int num = 1;\n\t\t//String nombre = \"Daniel\";\n\t\t//String resultado = (num > 0)?nombre:\"\";\n\t\tString uno = \"ABRAZADERA OMEGA\";\n\t\tString dos = \"DE 2\\\"\";\n\t\tString datos = (uno.equals(dos))?uno:uno+\" \"+dos;\n\t\tSystem.out.println(datos);\n\t}", "static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }", "public void firstSem2a6(){\n chapter = \"firstSem2a6\";\n String firstSem2a6 = \"\\\"Well? Are we friends, like that guy said?\\\"\";\n getTextIn(firstSem2a6);\n }", "public static void main(String[] args) {\n String exclamation1 = \"Ouch!\";\n String exclamation2 = \"Hoorah!\";\n String exclamation3 = \"Amazing!\";\n String adverb1 = \"stupidly\";\n String adverb2 = \"happily\";\n String adverb3 = \"shamefully\";\n String noun1 = \"car\";\n String noun2 = \"book\";\n String noun3 = \"bird\";\n String adjective1 = \"tall\";\n String adjective2 = \"smart\";\n String adjective3 = \"funny\";\n System.out.println( exclamation1+ \" he said \" + adverb1 +\n \" as he jumped into his convertible \" + noun1 +\n \" and drove off with his \" + adjective1 + \" wife.\");\n\n\n\n\n }", "@Test\n public void lookAndSay_Test() {\n String start = \"11\";\n int n = 2;\n\n String result = LookAndSay(start, n);\n\n assertThat(result).isEqualTo(\"1211\");\n }", "public static void main (String[] args)\n\t{\n\t\tString bat;\n\t\tString bi;\n\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"\\n Intruoduce el el primer string: \");\n\t\tbat = sc.nextLine();\n\n\t\n\t\tSystem.out.print(\"\\n Introduce el segundo string: \");\n\t\tbi = sc.nextLine();\n\n\n\n\t\t// con el siguiente objeto concatena el string bat con el string 2\n \t\tString concatenado = bat.concat(bi);\n \t\tSystem.out.println(\"\\n El texto concatenado es: \" + concatenado);\n\n\t\t\n\t\t// para imprimir los dos strings ya concatenados\n\t\tSystem.out.println(\"\\n Primer valor de la cadena concatenada: \" + concatenado);\n\t\t\n\n\t\t//para convertir en mayusculas o minusculas los caracteres del string\n\t\tString minus = concatenado.toLowerCase();\n\t\tString mayus = concatenado.toUpperCase();\n\n\t\tSystem.out.print(\"lo concatenado en minuscula: \" + minus);\n\t\tSystem.out.print(\"\\nlo concatenado en mayuscula: \" + mayus);\n\n\n\n\n\n\t\t//para comparar los dos Strings si son iguales da igual mayuscula o minuscula\n\t\tif (bat.equalsIgnoreCase(bi) ) // igual con mayuscula y minusculas bat.equals(bi)\n\t\t\tSystem.out.println(\"\\nLos dos strings son iguales\");\n\t\telse\n\t\t\tSystem.out.println(\"\\nlos dos strings son diferentes\");\n\n\t\t//si el string esta vacio para ello lo escrito por teclado tiene que ser de tipo nextLine\n\t\tif (bat.isEmpty())\n\t\t\tSystem.out.println(\"el string bat esta vacio\");\n\n\t\tif (bi.isEmpty())\n\t\t\tSystem.out.println(\"el string bi esta vacio\");\n\n\t\t//para convertir datos de cualquier tipo a string\n\t\tSystem.out.print(\"\\n Intruoduce un numero para convertirlo a string \");\n\t\tint zenbaki = sc.nextInt();\n\n\t\tString berria = String.valueOf(zenbaki);\n\t\tSystem.out.print(zenbaki);\n\t\t\n\n\t\t\n\t\t\t\n\t}", "public static String riempiSpaziX(String codiceConSpaziDaRiempire) {\n\t\t\n\t\t//aggiungo una X finché la lunghezza del codice nominativo è sufficiente\n\t\tdo {\n\t\t\tcodiceConSpaziDaRiempire += \"X\";\n\t\t} while (codiceConSpaziDaRiempire.length() < 3);\n\t\treturn codiceConSpaziDaRiempire;\n\t}", "public static void main(String[] args) throws Exception {\nSystem.out.println(\"i love nayanthara\");\nSystem.out.println(\"i love trisha\");\nSystem.out.println(\"i love keerthisuresh\");\n\n \n \n\t }", "public static void main (String []args){\n\t\t\n\t\tString hola =\"RV SIGUIENTE MENSAJE\";\n\t\tint num = hola.indexOf(\"RV\");\n\t\tif (hola.indexOf(\"RV\")!=-1){\n\t\t\tSystem.out.println(\"CONTIENE RV\");\n\n\t\t}else{\n\t\t\tSystem.out.println(\"NO CONTIENE RV\");\n\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "private String construyeCaracter(String palabra) throws IOException {\n\t\tToken aux = null;\n \t\twhile(!((aux = this.nextTokenWithWhites()).get_lexema().equals(\"'\"))) {\n \t\t\tif (aux.get_lexema().equals(\"fin\"))\n \t\t\t\treturn palabra;\n \t\t\tpalabra = palabra + aux.get_lexema();\n \t\t\t// Si vemos que el caracter se alarga mucho, paramos de leer\n \t\t\tif (palabra.length() > 4) {\n \t\t\t\treturn palabra;\n \t\t\t}\n \t\t}\n \t\tpalabra = palabra + aux.get_lexema();\n\t\treturn palabra;\n\t}", "private boolean checkInCashe(String s) {\n return true;\n }", "public static void main(String[] args) {\n String one= \"semiha\";\n String two= \"h\";\n if(one.contains(two)){\n one=one.replaceAll(two, \"[\"+two+\"]\");\n }else{\n one=\"[\"+one+\"]\";\n }\n\n }", "@Test\n\tpublic void secodFortheLine() {\n\t\tString stringOfTestingWord = (\"newword\");\n\t\tStringBuilder MethodResult = object1.theLine(stringOfTestingWord);\n\t\tStringBuilder ExpectedResult = new StringBuilder();\n\t\tfor (int i = 0; i < stringOfTestingWord.length(); i++) {\n\t\t\tExpectedResult.append(\"-\");\n\t\t}\n\t\tassertEquals(ExpectedResult.toString(), MethodResult.toString());\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"This program will replace the word 'hate' with the word 'love' in your text once.\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Please enter a sentence that includes the word 'hate.'\");\n\t\tSystem.out.println();\n\t\t\n\t\tString sentenceHate;\n\t\tsentenceHate = scan.nextLine();\n\t\t\n\t\tString sentenceLove = sentenceHate.replaceFirst(\"hate\", \"love\");\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(\"I have rephrased that to read \"+ sentenceLove + \".\");\n\t\t\n\t}", "public static void main(String args[]) {\n\t String str1 = \"Welcome\";\n\t String str2 = \" to \";\n\t String str3 = \" HOME \";\n\t str1 = str1.concat(str2).concat(str3);\n\t System.out.println(str1);\n\t \n\t \n\t \n\t }", "@AutoEscape\n\tpublic String getNguoiThamDu();", "public static void Mostra(String s){\r\n System.out.println(s);\r\n }", "public String elegir();", "public void sendeSpielerWeg(String spieler);", "public void reagir(String frase) {\n\t\tif (frase.equals(\"toma comida\") || frase.equals(\"ola\")) {\n\t\t\tSystem.out.println(\"Abanar e latir\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Rosnar\");\n\t\t}\n\t\t\n\t}", "@Test \n\tpublic void testToString() {\n\t\t\n\t\tString saida = \"decio neto - 56554522\";\n\t\tassertEquals(contato1.toString(), saida);\n\t}", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "public String interact() {\n return suara;\n }", "private void Trans(String s) {\n }", "static String stringCutter1(String s) {\n int value = s.length() % 2 == 0 ? s.length() / 2 : s.length() / 2 + 1;\n\n // pemotongan string untuk pemotongan kelompok pertama\n String sentence1 = s.substring(0, value);\n\n // perulangan untuk menggeser nilai setiap karakter\n String wordNow = \"\";\n for (int i = 0; i < sentence1.length(); i++) {\n char alphabet = sentence1.toUpperCase().charAt(i);\n // pengubahan setiap karakter menjadi int\n // untuk menggeser 3 setiap nilai nya\n int asciiDecimal = (int) alphabet;\n // pengecekan kondisi apabila karakter melewati kode ascii nya\n if (asciiDecimal > 124) {\n int alphabetTransfer = 0 + (127 - asciiDecimal);\n wordNow += (char) alphabetTransfer;\n\n } else {\n int alphabetTrasfer = asciiDecimal + 3;\n wordNow += (char) alphabetTrasfer;\n }\n }\n return wordNow;\n }", "protected String getString(String s, String clave, String defecto) {\n if (s != null) {\n return s;\n }\n\n String property = properties.getProperty(clave);\n if (property != null) {\n return property.trim();\n }\n\n return defecto;\n }", "public static void main(String[] args){\r\n String first = \"jin\";\r\n String last = \"jung\";\r\n String ay = \"ay\";\r\n/*\r\n use substring() and toUpperCase methods to reorder and capitalize\r\n*/\r\n\r\n String letFirst = first.substring(0,1);\r\n String capFirst = letFirst.toUpperCase();\r\n String letLast = last.substring(0,1);\r\n String capLast = letLast.toUpperCase();\r\n\r\n String nameInPigLatin = first.substring(1,3) + capFirst + ay + \" \" + last.substring(1,4) + capLast + ay;\r\n\r\n/*\r\n output resultant string to console\r\n*/\r\n\r\n System.out.println(nameInPigLatin);\r\n\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tString s1 = \"Welcome\";\n\t String s2 = \"To this world\";\n\t String s3 = \"Welcome\";\n\t \n\t System.out.println(s1.length()); //length()\n\t System.out.println(s1.concat(s2)); //concat ()\n\t System.out.println(s1.equals(s2)); // equals()\n\t System.out.println(s1.equals(s3)); // equals()\n\t System.out.println(s1.equalsIgnoreCase(s2)); // equalsIgnoreCase()\n\t System.out.println(s1.contains(\"Wel\"));\n\t System.out.println(s1.replace(\"Wel\",\"Babu\"));\n\t System.out.println(s1.subSequence(2, 5));\n\t \n\n\t}", "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}", "public static String lireMessageAuClavier() throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString messa = sc.nextLine();\n\t\treturn messa;\n\t}", "public String doIt(String s);", "String consilium(String patient) {\n return String.format(\"Consilium with %s is done.\", patient);\n }", "@Test\n public void test1(){\n String catelyn = \"Living\";\n String stark = catelyn.concat(\"Dead\");\n System.out.println(stark);\n System.out.println(catelyn);\n }", "public static void main(String[] args) {\n System.out.println(\"你是个傻逼\");\n System.out.println(\"1\" + \"2\");\n System.out.println(\"hah\");\n System.out.println(\"hl;l\");\n System.out.println(\"hhas\");\n }", "abstract String moodString();", "static public String generateAString(String s) {\n String result;\n result = generate(s);\n if (result != null) {\n currentString = result;\n }\n return result;\n }", "public String salvar(PessoaJuridica pessoaJuridica) {\n\t\t\r\n\t\treturn \"Salvo\";\r\n\t}", "public String ayadi_sandhi(String s1, String s2)\n {\n Log.info(\"Welcome to ayadi Sandhi\");\n\n if (!VowelUtil.isEjanta(s1)) Log.info(\"NOT ELIGIBLE FOR ayadi sandhi\");\n\n if (!VowelUtil.isAjadi(s2)) Log.info(\"NOT ELIGIBLE FOR ayadi sandhi\");\n // if 2nd string is not a Vowel, then cannot proceed.\n String return_me = s1 + s2;\n\n String stripped1;\n stripped1 = VarnaUtil.stripAntyaVarna(s1); // s1.substring(0, str_len1\n // - reduce_by1);\n\n String modified_anta = s1 + s2;\n\n if (s1.endsWith(\"e\") || s1.endsWith(\"e3\"))\n {\n modified_anta = stripped1 + \"ay\";\n }\n\n else if (s1.endsWith(\"E\") || s1.endsWith(\"E3\"))\n {\n modified_anta = stripped1 + \"Ay\";\n }\n\n else if (s1.endsWith(\"o\") || s1.endsWith(\"o3\"))\n {\n modified_anta = stripped1 + \"av\";\n }\n\n else if (s1.endsWith(\"O\") || s1.endsWith(\"O3\"))\n {\n modified_anta = stripped1 + \"Av\";\n }\n\n return_me = modified_anta + s2;\n\n comments.start_adding_notes();\n comments.setSutraNum(\"6.1.78\");\n comments.setSutraPath(\"eco.ayavAyAvaH\");\n comments.setSutraProc(\"ayAdi-Adesha\");\n comments.setSource(Comments.sutra);\n String cond1 = \"When a word terminating in an <ec> pratyahara \" + \"is followed by any vowel the <ec>as are replaced by ayadi.\" + \"\\n<ec>(e/ai/o/au) + any vowel = ay/Ay/av/Av respectively.\";\n comments.setConditions(cond1);\n\n // The words are furthur modified by the principle of yakkar-vakaar lopa\n return_me += \", \" + (new MixedSandhi()).shaakalya_ya_va_lopa(modified_anta, s2, comments);\n\n return return_me;\n }", "private String pcString(String g, String d) {\n return g+\"^part_of(\"+d+\")\";\n }", "public String elegirtipoqueso(){\n //es un metodo void, o string?\n \n Scanner entrada = new Scanner(System.in);\n int queso;\n System.out.println(\"Elije el queso que deseas\");\n System.out.println(\"1.- Parmesano\");\n System.out.println(\"2.- Mozzalera\");\n queso = entrada.nextInt();\n if (queso==1){\n \n Scanner entrada2 = new Scanner(System.in);\n System.out.println(\"¿Cuantas pizzas deses comprar?\");\n int valor2 = entrada2.nextInt();\n int tamano;\n int c1=75*valor2,m1=89*valor2,g1=112*valor2,f1=135*valor2;\n System.out.println(\"Elije el tamaño\");\n System.out.println(\"1.- Chica \"+c1/valor2+\"$\"); \n System.out.println(\"2.-Mediana \"+m1/valor2+\"$\"); \n System.out.println(\"3.-Grande \"+g1/valor2+\"$\");\n System.out.println(\"4.-Familiar \"+f1/valor2+\"$\");\n tamano = entrada2.nextInt();\n String t2 = String.valueOf(tamano);\n if (tamano==1){\n System.out.println(\"La pizza se corta en 4 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+c1+\"$\");\n }\n else if(tamano==2){\n System.out.println(\"La pizza se corta en 8 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+m1+\"$\");\n }\n else if(tamano==3){\n System.out.println(\"La pizza se corta en 12 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+g1+\"$\");\n }\n else if(tamano==4){\n System.out.println(\"La pizza se corta en 16 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+f1+\"$\");\n }\n return t2;\n }\n if (queso==2){\n Scanner entrada3 = new Scanner(System.in);\n int tamano2;\n System.out.println(\"¿Cuantas pizzas desea comprar?\");\n int valor2 = entrada3.nextInt();\n int c2=89*valor2,m2=115*valor2,g2=135*valor2,f2=175*valor2;\n System.out.println(\"Elije el tamaño\");\n System.out.println(\"1.- Chica \"+c2/valor2+\"$\"); \n System.out.println(\"2.-Mediana \"+m2/valor2+\"$\"); \n System.out.println(\"3.-Grande \"+g2/valor2+\"$\");\n System.out.println(\"4.-Familiar \"+f2/valor2+\"$\");\n tamano2 = entrada3.nextInt();\n String t2 = String.valueOf(tamano2);\n if (tamano2==1){\n System.out.println(\"La pizza se corta en 4 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+c2+\"$\");\n }\n else if(tamano2==2){\n System.out.println(\"La pizza se corta en 8 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+m2+\"$\");\n }\n else if(tamano2==3){\n System.out.println(\"La pizza se corta en 12 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+g2+\"$\");\n }\n else if(tamano2==4){\n System.out.println(\"La pizza se corta en 16 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+f2+\"$\");\n }\n return t2;\n }\n String q = String.valueOf(queso);\n return q;\n }", "public static void main(String[] args) {\n\t\tString str = \"They is students.\";\n\t\tint i=0;\n\t\tfor(;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='i')\n\t\t\t\tif(str.charAt(i+1)=='s'){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\tStringBuffer sb = new StringBuffer(str);\n\t\tsb.replace(i, i+2, \"are\");\n\t\tSystem.out.println(sb);\n\t}", "private static String promptString(String descricao) {\n System.out.print(\"\\t>>> \" + descricao + \": \");\n return scan.nextLine();\n }" ]
[ "0.66510147", "0.65051067", "0.64147145", "0.61802423", "0.6149822", "0.6145028", "0.59975755", "0.5941711", "0.59097266", "0.58957124", "0.58898276", "0.5839314", "0.5838608", "0.5811042", "0.57719773", "0.57567793", "0.5746255", "0.57279795", "0.5716242", "0.5705655", "0.5633893", "0.5633206", "0.56294966", "0.562775", "0.5620462", "0.5608616", "0.56047314", "0.56020355", "0.55794716", "0.55784404", "0.5569952", "0.5568289", "0.5549214", "0.554742", "0.55434567", "0.5533112", "0.5521882", "0.5510512", "0.5493746", "0.54899865", "0.54719627", "0.5471564", "0.5463102", "0.5453264", "0.54517657", "0.5418007", "0.54131955", "0.54084104", "0.5408357", "0.53987545", "0.53966755", "0.5391534", "0.53831726", "0.5377801", "0.53749543", "0.5371862", "0.5369336", "0.5368887", "0.5368868", "0.5367218", "0.53642386", "0.5363828", "0.53632826", "0.5360055", "0.5358239", "0.5357553", "0.5356007", "0.5356005", "0.5350306", "0.53486174", "0.53481066", "0.53405625", "0.53399056", "0.5335354", "0.5333212", "0.5327275", "0.53268903", "0.5324004", "0.53224415", "0.5320381", "0.5309432", "0.5305812", "0.52998215", "0.5290671", "0.5282976", "0.52802235", "0.5279007", "0.5277826", "0.52737916", "0.5267708", "0.52675754", "0.52674615", "0.52662396", "0.5256991", "0.52563", "0.5255917", "0.5255733", "0.5254772", "0.5252428", "0.52520066", "0.52384704" ]
0.0
-1
private static final Logger logger = Logger.getLogger(CutStringMethodModel.class);
@Override public Object exec(List args) throws TemplateModelException { String result=""; String content=""; String delpatstr=""; int len=0; if (args.size()!=2 && args.size() != 3) { throw new TemplateModelException( "Error: 参数个数不正确 CutStringMethodModel(content,len[,replacepattern])"); } try { TemplateScalarModel tsm = (TemplateScalarModel) args.get(0); if(null!=tsm) { content = tsm.getAsString(); } if(args.size()==3) { TemplateScalarModel delsm = (TemplateScalarModel) args.get(2); if(null!=delsm){ delpatstr=delsm.getAsString(); } } SimpleNumber smLen = (SimpleNumber) args.get(1); if(null!=smLen) { len = smLen.getAsNumber().intValue(); } } catch (ClassCastException cce) { String mess = "Error: 无法解析参数信息"; throw new TemplateModelException(mess); } if(null==content || "".equals(content.trim())){ return result; } if(null!=delpatstr && !"".equals(delpatstr.trim())){ try{ Pattern pattern=Pattern.compile(delpatstr); Matcher m=pattern.matcher(content.trim()); if(m.find()){ content=m.replaceAll(""); } }catch (Exception ex){ String mess = "Error: 正则替换失败,需要替换的正则"+delpatstr; throw new TemplateModelException(mess); } } try{ result= ValueUtils.getCutString(content, len); }catch (Exception ex){ String mess = "Error: 无法截取字符串"; throw new TemplateModelException(mess); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private StringUtilities() {\n // nothing to do\n }", "interface Solution {\n\n// use this Object to print the log (call from slf4j facade)\nstatic Logger log = LoggerFactory.getLogger(Solution.class);\n\n String decodeString(String s);\n}", "private StringUtil() {\n\t\tsuper();\n\t}", "private StringUtil() {}", "private StringUtil() {}", "private void strin() {\n\n\t}", "private StringUtils() {}", "private StringUtils() {}", "private StringUtil() {\n\n }", "public static void substringtest(){\n }", "private WebStringUtils() {}", "public abstract String mo24851a(String str);", "private StringUtil() {\n }", "public String get_log(){\n }", "public abstract void logd(String str);", "private StringUtils() {\n }", "private StringUtils() {\n }", "private StringUtils() {\n }", "private StringUtils() {\n }", "public void testToString() {\n }", "public interface StringUtil$StringProcessor {\n String m3918a(Object obj);\n}", "String getLogHandled();", "String processing();", "void mo1935c(String str);", "String getClassVariablesMethods(){\n //---------------------------------------------------------------------------\n return buffer.toString();\n\t}", "@Test\n\t public void test4()\n\t{\n\t\t\t// String s = new String();\n\t // s = s.replaceAll(\"\\\\s+\", \" \");\n\t\t\tassertEquals(\"\", LRS.lcp(\"vcd\",\"cd\"));\n\t}", "void log(String string);", "public abstract String construct();", "public void setComments (String Comments)\n{\nif (Comments != null && Comments.length() > 255)\n{\nlog.warning(\"Length > 255 - truncated\");\nComments = Comments.substring(0,255);\n}\nset_Value (\"Comments\", Comments);\n}", "String mo150a(String str);", "public void onTextCut()\n\t{\n\t}", "StringOperation createStringOperation();", "abstract String mo1747a(String str);", "@Override\n\tpublic String crier() {\n\t\treturn \"...\";\n\t}", "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "public StringConverter()\n {\n \n }", "private SpreedWord() {\n\n }", "public String toString() {\n/* 790 */ return this.m_str;\n/* */ }", "public void mo43852a(StringBuilder aLog) {\n }", "public StringUtil() {\r\n super();\r\n }", "private StringAssert() {\n }", "void mo41089d(String str);", "public abstract String getString();", "public abstract String getString();", "public static void log(String str) {\n System.out.println(\"static void constructor method\" + \" => \" + str);\n }", "private String logString(String s) {\n Log.i(\"write string\", s);\n return s;\n }", "public static void log(String str)\r\n\t{\n\t}", "protected Sentence() {/* intentionally empty block */}", "@Override\n public String str() {\n return \"append\";\n }", "public\nDiagFormat_proximity()\n{\n}", "private void debug(String str) {\n }", "public static void main(String[] args) {\n stringhandler obj=new stringhandler();\r\n obj.transform(\"Greety\");\r\n }", "private Log() {\r\n\t}", "@SuppressWarnings({\"UNUSED_SYMBOL\"})\r\n private void plog(String m) {\n }", "public abstract void mo4373a(String str);", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void add_to_log(String s){\n }", "@Test\r\n public void testGetStringRepresentation() {\r\n }", "@Test\r\n public void testToString() {\r\n }", "@Test\n public void test34() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString(\"reducedErrorPruningTipText\");\n assertEquals(\"reducedErrorPruningTipText\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n }", "abstract String mo1748c();", "@Override\n\tpublic String toString() {\n\t\treturn \"string dari class Main\";\n\t}", "public void logDebug(String str) {\n }", "@Override\n public void logs() {\n \n }", "@Override\n\tpublic String toString() {\n\t\tString result = candidateString;\n\t\tresult = result.replaceAll(TAG, \" \");\n\t\tresult = result.replaceAll(COLLAPSE, \"\");\n\t\tresult = result.replaceAll(SPACE, \" \");\n\n\t\treturn result;\n\t}", "private void ss(){\n }", "public NOPLogger mo9842g(String str) {\n return this;\n }", "public StrStrMap() {\n }", "void mo9697a(String str);", "java.lang.String getScStr();", "private void jetStringOperation(InvokeExpr invokeExpr){\n\t\tthis.exprStr = StringModeling.modelMethod(invokeExpr, fileGenerator, stmtIdx);\n\t}", "public abstract void mo70704a(String str);", "private TextUtil()\r\n {\r\n }", "void mo1340v(String str, String str2);", "java.lang.String getS();", "public GenObfuscatedString() {\n }", "private DAOLogger() {\n\t}", "public abstract void mo20160a(String str);", "public abstract String toSaveString();", "public void setTargetString(String key) {\n/* 108 */ this.m_targetString = key;\n/* */ }", "public TbStringExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "public LogKitLogger(String name)\n/* */ {\n/* 64 */ this.name = name;\n/* 65 */ this.logger = getLogger();\n/* */ }", "public void method_4270() {}", "@Override\r\n\tprotected void logMessage(String message) {\n\t\t\r\n\t}", "private String cutString(String value){\n String [] strings = value.split(\" \");\n System.out.println(strings[0]);\n return strings[0];\n }", "private static Object Stringbuilder() {\n\t\treturn null;\n\t}", "public String toString(){\n return this.term+\": (\"+this.editDistance+\")\";\n }", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "private stendhal() {\n\t}", "private Strings() {\n }", "void mo12635a(String str);", "public void test_toString() {\n String logMessage = instance.getLogMessage();\n\n assertEquals(\"'toString' should be correct.\", logMessage, instance.toString());\n }", "public void Log(String str) {\n System.out.println(\"void method\" + \" => \" + str);\n }", "@Override\n public String toString(){\n return super.toString().substring(0,1) + super.toString().substring(1).toLowerCase();\n }", "@Test\n void testToString() {\n }", "private UnitsErrorStrings() {\n }", "public String SoloDNI() {\nreturn MuestraSoloDNI();\t\t\t\t\t\n}", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.toString();\n assertEquals(\"weka.core.stemmers.LovinsStemmer\", string0);\n }" ]
[ "0.59585106", "0.57073057", "0.5674245", "0.5637476", "0.5637476", "0.56339145", "0.5537245", "0.5537245", "0.5536425", "0.5471827", "0.5437362", "0.5409098", "0.5405012", "0.53719646", "0.5360674", "0.5318343", "0.5318343", "0.5318343", "0.5318343", "0.5312656", "0.52731454", "0.52487814", "0.5239197", "0.52337474", "0.52317756", "0.5224139", "0.5206568", "0.5197667", "0.5193721", "0.5175904", "0.51608485", "0.51477313", "0.5145874", "0.5127039", "0.5123514", "0.5123514", "0.5122538", "0.5118711", "0.5116841", "0.5089383", "0.50766224", "0.5074877", "0.50730366", "0.5070975", "0.5070975", "0.5064135", "0.50613034", "0.5056028", "0.5052586", "0.50457203", "0.5042663", "0.50369954", "0.5030712", "0.5029044", "0.5021763", "0.50170267", "0.5011418", "0.5011418", "0.5006625", "0.5004724", "0.50025296", "0.50005525", "0.5000078", "0.49989986", "0.4984475", "0.498395", "0.49835122", "0.49751088", "0.49746996", "0.49575543", "0.49460992", "0.49384582", "0.49383342", "0.4926373", "0.49075228", "0.4904784", "0.4903687", "0.4902336", "0.48875925", "0.4883706", "0.48797053", "0.4876646", "0.48748377", "0.4871672", "0.4870857", "0.48679054", "0.4865609", "0.48653004", "0.4864754", "0.48615986", "0.48581308", "0.48581085", "0.48561326", "0.48539314", "0.48533157", "0.48529568", "0.48485014", "0.48467994", "0.48435017", "0.48422778" ]
0.5705517
2
A KVStore that also maintains a index of documents for arbitrary retrieval.
@Deprecated public interface LegacyIndexedStore<K, V> extends LegacyKVStore<K, V> { String ID_FIELD_NAME = "_id"; /** * Creates a lazy iterable over items that match the provided condition, in * the order requested. Exposing the appropriate keys and values. Note that * each iterator is independent and goes back to the source data to collect * data. As such, if you need to use multiple iterators, it is better to cache * the results. Note that this may also be internally paginating so different * calls to hasNext/next may have different performance characteristics. * * Note that two unexpected outcomes can occur with this iterator. * * (1) It is possible some of the values of this iterator will be null. This * can happen if the value is deleted around the time the iterator is created * and when the value is retrieved. * * (2) This iterator could return values that don't match the provided * conditions. This should be rare but can occur if the value was changed * around the time the iterator is created. * * @param condition * The condition to match. * @return A lazy iterable over the matching items. */ Iterable<Entry<K, V>> find(LegacyFindByCondition find); /** * Provide a count of the number of documents that match each of the requested * conditions. * * @param conditions * @return */ List<Integer> getCounts(SearchQuery... conditions); /** * Definition of how to find data by condition. */ @Deprecated public static class LegacyFindByCondition { private SearchQuery condition; private int pageSize = 5000; private int limit = Integer.MAX_VALUE; private int offset = 0; private final List<SearchFieldSorting> sort = new ArrayList<>(); public LegacyFindByCondition() { } public LegacyFindByCondition setCondition(String condition, FilterIndexMapping mapping) { this.condition = SearchFilterToQueryConverter.toQuery(condition, mapping); return this; } public LegacyFindByCondition setCondition(SearchQuery query) { this.condition = query; return this; } public LegacyFindByCondition setPageSize(int pageSize) { this.pageSize = pageSize; return this; } public LegacyFindByCondition addSorting(SearchFieldSorting sorting) { this.sort.add(sorting); return this; } public LegacyFindByCondition addSortings(Collection<SearchFieldSorting> sort) { this.sort.addAll(sort); return this; } public LegacyFindByCondition setLimit(int limit){ this.limit = limit; return this; } public LegacyFindByCondition setOffset(int offset){ this.offset = offset; return this; } public SearchQuery getCondition() { return condition; } public int getPageSize() { return pageSize; } public List<SearchFieldSorting> getSort() { return sort; } public int getOffset() { return offset; } public int getLimit(){ if(limit < pageSize){ pageSize = limit; } return limit; } @Override public boolean equals(final Object other) { if (!(other instanceof LegacyIndexedStore.LegacyFindByCondition)) { return false; } LegacyFindByCondition castOther = (LegacyFindByCondition) other; return Objects.equal(condition, castOther.condition) && Objects.equal(pageSize, castOther.pageSize) && Objects.equal(limit, castOther.limit) && Objects.equal(offset, castOther.offset) && Objects.equal(sort, castOther.sort); } @Override public int hashCode() { return Objects.hashCode(condition, pageSize, limit, offset, sort); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface KeyValueStore {\n\n\t/**\n\t * Put a value into the database with an associated key\n\t * @param key The key of the value\n\t * @param value The value to store\n\t * @return True if successful\n\t */\n\tpublic HasID put(@SuppressWarnings(\"rawtypes\") Class type, HasID value);\n\t\n\t/**\n\t * Get a value using the associated key\n\t * @param key The key\n\t * @return The value or null\n\t */\n\tpublic HasID get(@SuppressWarnings(\"rawtypes\") Class type, String key);\n\t\n\t/**\n\t * \n\t * @param c\n\t * @return\n\t */\n\tpublic List<HasID> getAll(@SuppressWarnings(\"rawtypes\") Class type);\n\t\n\t/**\n\t * Delete a value in the store\n\t * @param key The key of the value\n\t * @return True if removed\n\t */\n\tpublic boolean delete(@SuppressWarnings(\"rawtypes\") Class type, String key);\n\t\n}", "public interface ILuceneIndexDAO extends IStatefulIndexerSession {\n // ===================================================================\n // The domain of indexing creates a separation between\n // readers and writers. In lucene, these are searchers\n // and writers. This DAO creates the more familiar DAO-ish interface\n // for developers to use and attempts to hide the details of\n // the searcher and write.\n // Calls are stateless meaning calling a find after a save does\n // not guarantee data will be reflected for the instance of the DAO\n // ===================================================================\n\n /**\n * Updates a document by first deleting the document(s) containing a term and then adding the new document. A Term is created by termFieldName, termFieldValue.\n *\n * @param termFieldName - Field name of the index.\n * @param termFieldValue - Field value of the index.\n * @param document - Lucene document to be updated.\n * @return - True for successful addition.\n */\n boolean saveDocument(String termFieldName, String termFieldValue, Document document);\n\n /**\n * Generates a BooleanQuery from the given fields Map and uses it to delete the documents matching in the IndexWriter.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @return - True for successful deletion.\n */\n boolean deleteDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields.\n *\n * @param fields - A Map data structure contains the field(Key) and text(value).\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields. Offset is the starting position for the search and numberOfResults\n * is the length from offset position.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @param offset - Starting position of the search.\n * @param numberOfResults - Number of documents to be searched from an offset position.\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);\n\n /**\n * Return the count of the documents present in the IndexSearcher.\n *\n * @return - Integer representing the count of documents.\n */\n int getDocumentCount();\n\n}", "LuceneMemoryIndex createLuceneMemoryIndex();", "public interface KeyValueStore {\r\n\r\n /**\r\n * Return true if store contains a value for the key.\r\n *\r\n * @param key key.\r\n * @return true if store contains a value for the key.\r\n * @throws IllegalArgumentException if key is null.\r\n */\r\n public boolean contains(String key);\r\n\r\n /**\r\n * Return value.\r\n *\r\n * @param key key.\r\n * @return value for the key or null if value does not exist.\r\n * @throws IllegalArgumentException if key is null.\r\n */\r\n public String get(String key);\r\n\r\n /**\r\n * Create or replace value.\r\n *\r\n * @param key key\r\n * @param value value\r\n * @return true if value was created, false if it was replaced.\r\n * @throws IllegalArgumentException if key is null or value is null\r\n */\r\n public boolean put(String key, String value);\r\n\r\n /**\r\n * Delete value.\r\n *\r\n * @param key key\r\n * @return true if value delete, false if no value associated with a key.\r\n * @throws IllegalArgumentException if key is null.\r\n */\r\n public boolean delete(String key);\r\n \r\n}", "public interface EntryStoreDb<K> {\n\n void serializeKey(final ByteBuffer keyBuffer, K key);\n\n /**\n * @param writeTxn\n * @param keyBuffer\n * @param valueBuffer\n * @param overwriteExisting\n * @param isAppending Only set to true if you are sure that the key will be at the end of the db\n * @return\n */\n PutOutcome put(final Txn<ByteBuffer> writeTxn,\n final ByteBuffer keyBuffer,\n final ByteBuffer valueBuffer,\n final boolean overwriteExisting,\n final boolean isAppending);\n\n boolean delete(final Txn<ByteBuffer> writeTxn, final ByteBuffer keyBuffer);\n\n Optional<ByteBuffer> getAsBytes(Txn<ByteBuffer> txn, final ByteBuffer keyBuffer);\n\n Optional<UID> getMaxUid(final Txn<ByteBuffer> txn, PooledByteBuffer pooledByteBuffer);\n}", "StorableIndexInfo getIndexInfo();", "public interface IDocumentaryService {\n\n public List<Documentary> getByOffset(int offset);\n\n public int getCount();\n\n public Documentary getById(String id);\n\n public int insert(Documentary doc);\n\n public int update(Documentary doc);\n\n public List<Documentary> search(String key);\n}", "public interface IDataStorage<TKey extends ISizable, TValue extends ISizable> {\n WrappedKeyValue<TKey, TValue> Get(TKey key) throws IOException;\n\n //TODO: replace with iterator\n List<WrappedKeyValue<TKey, TValue>> GetElements() throws IOException;\n\n void AddOrUpdate(TKey key, TValue value) throws IOException;\n\n void AddOrUpdate(List<WrappedKeyValue<TKey, TValue>> values) throws IOException;\n\n void Delete(TKey key) throws IOException;\n\n void Clear();\n\n void Close() throws IOException;\n}", "public interface StoreReader<K, V> {\n /**\n * read the value from the backend data source given the key\n *\n * @param k\n * @return\n */\n V readFromStore(K k);\n\n /**\n * read the collection from the backend data source given the collection of keys\n * @param keys\n * @return\n */\n Map<K,V> readFromStore(Collection<K> keys);\n\n /**\n * update the value\n * @param k\n */\n V updateFromStore(K k);\n\n}", "public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}", "public interface KeyValueStore {\n\n /**\n * Stores the given key with the given value\n * @param key the given key\n * @param value the given value\n * @throws StorageException the data store could not be accessed\n * @throws ValidationException if the values of the key-value store are not valid after the operation\n * @throws KeyValueStoreException if a to-be-validated value could not be found\n */\n void put(String key, String value) throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Stores the given key with the given value\n * @param key the given key\n * @param value the given value\n * @throws StorageException the data store could not be accessed\n * @throws ValidationException if the values of the key-value store are not valid after the operation\n * @throws KeyValueStoreException if a to-be-validated value could not be found\n */\n void put(String key, int value) throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Stores the given key with the given value\n * @param key the given key\n * @param value the given value\n * @throws StorageException the data store could not be accessed\n * @throws ValidationException if the values of the key-value store are not valid after the operation\n * @throws KeyValueStoreException if a to-be-validated value could not be found\n */\n void put(String key, double value) throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Stores the given key with the given value\n * @param key the given key\n * @param value the given value\n * @throws StorageException the data store could not be accessed\n * @throws ValidationException if the values of the key-value store are not valid after the operation\n * @throws KeyValueStoreException if a to-be-validated value could not be found\n */\n void put(String key, boolean value) throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Retrieves the value for the given key\n * @param key the given key\n * @return the stored value for the given key,\n * @throws KeyValueStoreException If no value for the given key was found\n */\n String getString(String key) throws KeyValueStoreException;\n\n /**\n * Retrieves the int value for the given key\n * @param key the given key\n * @return the stored int value for the given key,\n * @throws KeyValueStoreException If the value could not be converted to an integer or no value for the given key was found\n */\n int getInt(String key) throws KeyValueStoreException;\n\n /**\n * Retrieves the double value for the given key\n * @param key the given key\n * @return the stored double value for the given key,\n * @throws KeyValueStoreException If no value for the given key is found\n * or the value could not be converted to a double\n */\n double getDouble(String key) throws KeyValueStoreException;\n\n /**\n * Retrieves the boolean value for the given key\n * @param key the given key\n * @return the stored boolean value for the given key,\n * @throws KeyValueStoreException If no value for the given key is found\n * or the value could not be converted to a boolean\n */\n boolean getBoolean(String key) throws KeyValueStoreException;\n\n /**\n * Restores the default values for all values in the key-value store.\n * @throws StorageException If either the data store for the default values could not be accessed or\n * one of the default values could not be restored\n * @throws ValidationException If one of the default values is invalid or a folder referenced by a default value could no tbe created\n * @throws KeyValueStoreException If a to-be-validated value could not be found\n */\n void restoreDefaultProperties() throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Validates and writes out all changes made to the key-value store since last commit.\n * @throws StorageException If the data store could not be accessed\n * @throws ValidationException If any of the given values is invalid or a folder referenced by a default value could not be created\n * @throws KeyValueStoreException If a to-be-validated value could not be found\n */\n void commit() throws StorageException, ValidationException, KeyValueStoreException;\n\n /**\n * Undoes all uncommited changes made since the last commit\n */\n void rollBack();\n\n /**\n * Change if a commit should be made after every change to the key-value store\n * @param autoCommit Enable or disable auto commit\n * @throws StorageException If the data store could not be accessed\n */\n void setAutoCommit(boolean autoCommit) throws StorageException;\n\n}", "public interface InvertedIndex extends Serializable {\n\n\n /**\n * Sampling for creating mini batches\n * @return the sampling for mini batches\n */\n double sample();\n\n /**\n * Iterates over mini batches\n * @return the mini batches created by this vectorizer\n */\n Iterator<List<VocabWord>> miniBatches();\n\n /**\n * Returns a list of words for a document\n * @param index\n * @return\n */\n List<VocabWord> document(int index);\n\n /**\n * Returns the list of documents a vocab word is in\n * @param vocabWord the vocab word to get documents for\n * @return the documents for a vocab word\n */\n int[] documents(VocabWord vocabWord);\n\n /**\n * Returns the number of documents\n * @return\n */\n int numDocuments();\n\n /**\n * Returns a list of all documents\n * @return the list of all documents\n */\n int[] allDocs();\n\n\n\n /**\n * Add word to a document\n * @param doc the document to add to\n * @param word the word to add\n */\n void addWordToDoc(int doc,VocabWord word);\n\n\n /**\n * Adds words to the given document\n * @param doc the document to add to\n * @param words the words to add\n */\n void addWordsToDoc(int doc,List<VocabWord> words);\n\n\n /**\n * Finishes saving data\n */\n void finish();\n\n /**\n * Total number of words in the index\n * @return the total number of words in the index\n */\n int totalWords();\n\n /**\n * For word vectors, this is the batch size for which to train on\n * @return the batch size for which to train on\n */\n int batchSize();\n\n /**\n * Iterate over each document\n * @param func the function to apply\n * @param exec exectuor service for execution\n */\n void eachDoc(Function<List<VocabWord>, Void> func, ExecutorService exec);\n}", "public InMemoryKeyValueStorage() {\n this(SEGMENT_IDENTIFIER);\n }", "DataStore getDataStore ();", "public interface DatastoreText {\n\n /**\n * Stores a property.. The kind, name and property can be thought of as\n * corresponding roughly to table,column, row key.\n * \n * @param kind\n * @param name\n * @param property\n * @param value\n */\n void put(String kind, String name, String property, String value);\n\n /**\n * Returns a property value keyed by kind,name and property.\n * \n * @param kind\n * @param name\n * @param property\n * @return\n */\n String get(String kind, String name, String property);\n\n}", "public KVCommInterface getStore();", "public interface DataStore {\n\n Bucket loadBucket(String bucketName);\n\n List<Bucket> loadBuckets();\n\n void saveBucket(Bucket bucket);\n\n void deleteBucket(String bucketName);\n\n Blob loadBlob(String bucketName, String blobKey);\n\n List<Blob> loadBlobs(String bucketName);\n\n void saveBlob(String bucketName, Blob blob);\n\n void deleteBlob(String bucketName, String blobKey);\n}", "public interface DataStore {\n\n void storeTokenEntry(TokenEntry tokenEntry);\n\n TokenEntry getTokenEntry(byte[] keyHandle);\n\n int incrementCounter(byte[] keyHandle);\n\n List<byte[]> getKeyHandlesByIssuerAndAppId(String application, String issuer);\n\n List<byte[]> getAllKeyHandles();\n\n List<String> getTokenEntries();\n\n void deleteTokenEntry(byte[] keyHandle);\n\n //Methods for logs (save, get, delete, ....)\n\n void saveLog(LogInfo logText);\n List<LogInfo>getLogs();\n void deleteLogs();\n void deleteLogs(OxPush2Request... logInfo);\n void deleteLogs(List<LogInfo> logInfo);\n void changeKeyHandleName(TokenEntry tokenEntry, String newName);\n void deleteKeyHandle(TokenEntry tokenEntry);\n}", "public interface MapStore extends Closeable {\n\n /**\n * Creates a table with the given key.\n *\n * Note that this operation is idempotent\n * so a true response means that the table\n * exists after execution.\n *\n * @return true iff the table exists after execution\n */\n boolean createTable(\n String tableName,\n MapStoreTableKey tableKey\n );\n\n /**\n * Drops a table.\n *\n * @return true iff the drop was successful\n */\n boolean dropTable(String tableName);\n\n /**\n * Delete an item from the given table\n * with the give key.\n *\n * This should be idempotent if the item\n * does not exist.\n */\n void deleteItem(\n String tableName,\n MapStoreKey key\n );\n\n /**\n * Retrieves all items from the given table\n * with all keys.\n */\n List<Map<String, Object>> getAllItems(String tableName);\n\n /**\n * Retrieves an item from the given table\n * with the given key.\n *\n * Returns {@link Optional#empty()} if no\n * item exists with the given key.\n */\n Optional<Map<String, Object>> getItem(\n String tableName,\n MapStoreKey key\n );\n\n /**\n * Queries all items from the given table\n * which match the given {@link MapStoreKey}\n * range key operator.\n */\n List<Map<String, Object>> getItems(\n String tableName,\n MapStoreKey key,\n MapQueryOptions options\n );\n\n /**\n * Adds an item to the given table\n * under the given key.\n */\n Map<String, Object> putItem(\n String tableName,\n MapStoreKey key,\n Map<String, Object> payload\n );\n\n /**\n * Updates an item in the given table\n * under the given key.\n *\n * If no item exists at the given key,\n * this will fallback to {@link #putItem(String, MapStoreKey, Map)}\n * semantics.\n */\n Map<String, Object> updateItem(\n String tableName,\n MapStoreKey key,\n Map<String, Object> payload\n );\n}", "public interface MultipleDocumentModel extends Iterable<SingleDocumentModel> {\r\n\t/**\r\n\t * Creates new document\r\n\t * \r\n\t * @return new document\r\n\t */\r\n\tSingleDocumentModel createNewDocument();\r\n\r\n\t/**\r\n\t * Returns currently selected document\r\n\t * \r\n\t * @return currently selected document\r\n\t */\r\n\tSingleDocumentModel getCurrentDocument();\r\n\r\n\t/**\r\n\t * Loads document from given path\r\n\t * \r\n\t * @param path from which file is loaded\r\n\t * @return new Single document model\r\n\t * @throws NullPointerException if path is null\r\n\t */\r\n\tSingleDocumentModel loadDocument(Path path);\r\n\r\n\t/**\r\n\t * Saves document to disc. If given path isn't null, path of document is changed\r\n\t * to it after saving. Otherwise saves to original path\r\n\t * \r\n\t * @param model that is saved\r\n\t * @param newPath path to which is saved, if null saved to origin\r\n\t */\r\n\tvoid saveDocument(SingleDocumentModel model, Path newPath);\r\n\r\n\t/**\r\n\t * Closes selected single document model\r\n\t * \r\n\t * @param model that is closed\r\n\t */\r\n\tvoid closeDocument(SingleDocumentModel model);\r\n\r\n\t/**\r\n\t * Adds listener to this model\r\n\t * \r\n\t * @param l that is added\r\n\t */\r\n\tvoid addMultipleDocumentListener(MultipleDocumentListener l);\r\n\r\n\t/**\r\n\t * Removes document listener from this model\r\n\t * \r\n\t * @param l listener to be removed\r\n\t */\r\n\tvoid removeMultipleDocumentListener(MultipleDocumentListener l);\r\n\r\n\t/**\r\n\t * Returns number of stored documents\r\n\t * \r\n\t * @return num of documents\r\n\t */\r\n\tint getNumberOfDocuments();\r\n\r\n\t/**\r\n\t * Returns document at given index\r\n\t * @param index of document\r\n\t * @return\r\n\t */\r\n\tSingleDocumentModel getDocument(int index);\r\n}", "public interface ProteinDAO extends GenericKVDAO<Protein> {\n\n @Transactional\n void persist(final Map<String, Protein> keyToProteinMap);\n\n @Transactional\n void insert(String key, Protein protein);\n\n @Transactional\n void insertProteinNotInLookup(String key, Protein protein);\n\n @Transactional\n void persist(byte[] key, byte[] protein);\n\n @Transactional\n void persistProteinNotInLookup(byte[] key, byte[] protein);\n\n @Transactional(readOnly = true)\n Protein getProtein(String key);\n\n @Transactional(readOnly = true)\n Protein getProteinNotInLookup(String key);\n\n @Transactional(readOnly = true)\n List<Protein> getProteins() throws Exception;\n\n @Transactional(readOnly = true)\n List<Protein> getProteinsNotInLookup() throws Exception;\n\n @Transactional(readOnly = true)\n List<Protein> getProteins(long bottom, long top);\n\n @Transactional(readOnly = true)\n Map<String, Protein> getKeyToProteinMap() throws Exception;\n\n void setProteinIdsWithoutLookupHit(Map<Long, Protein> proteinIdsWithoutLookupHit);\n\n @Transactional\n Set<Protein> getProteinsWithoutLookupHit();\n\n List<Protein> getProteinsWithoutLookupHitBetweenIds(long bottom, long top);\n\n void checkKVDBStores();\n\n DB getLevelDBStore();\n\n void closeKVDBStores();\n\n /**\n * Retrieves a Protein object by primary key and also retrieves any associated cross references.\n *\n * @param id being the primary key of the required Protein.\n * @return The Protein, with cross references loaded. (ProteinXrefs are LAZY by default) or null if the\n * primary key is not present in the database.\n */\n @Transactional(readOnly = true)\n Protein getProteinAndCrossReferencesByProteinId(Long id);\n\n /**\n * Retrieves a List of Proteins that are part of the TransactionSlice passed in as argument.\n * TODO - Consider this very carefully. If the TransactionSlice includes all the proteins in the database, this will make a nasty mess.\n *\n * @return a List of Proteins that are part of the TransactionSlice passed in as argument.\n */\n @Transactional(readOnly = true)\n List<Protein> getProteinsBetweenIds(long bottom, long top);\n\n /**\n * Queries a list of proteins by the specified protein identifiers. For further information please have a look at\n * method with name getProteinsBetweenIds().\n * Note that if the input list is null or empty then an empty list of proteins shall be returned.\n *\n * @param proteinIds Set of protein identifiers.\n */\n @Transactional(readOnly = true)\n List<Protein> getProteinsByIds(Set<Long> proteinIds);\n\n @Transactional(readOnly = true)\n Protein getProteinById(Long proteinId);\n\n /**\n * Inserts new Proteins.\n * If there are Protein objects with the same MD5 / sequence in the database,\n * this method updates these proteins, rather than inserting the new ones.\n * <p/>\n * Note that this method inserts the new Protein objects AND and new ProteinXrefs\n * (possibly updating an existing Protein object if necessary with the new ProteinXref.)\n *\n * @param newProteins being a List of new Protein objects to insert\n * @return a new List<Protein> containing all of the inserted / updated Protein objects.\n * (Allows the caller to retrieve the primary keys for the proteins).\n */\n @Transactional\n PersistedProteins insertNewProteins(Collection<Protein> newProteins);\n\n\n /**\n * Retrieve all proteins with their matches and cross references for a slice or proteins\n *\n * @param bottom\n * @param top // * @deprecated Doesn't actually work\n * @return\n */\n @Transactional(readOnly = true)\n List<Protein> getProteinsAndMatchesAndCrossReferencesBetweenIds(long bottom, long top);\n\n /**\n * Instances of this class are returned from the insert method above.\n */\n class PersistedProteins {\n\n private final Set<Protein> preExistingProteins = new HashSet<Protein>();\n\n private final Set<Protein> newProteins = new HashSet<Protein>();\n\n void addPreExistingProtein(Protein protein) {\n preExistingProteins.add(protein);\n }\n\n void addNewProtein(Protein protein) {\n newProteins.add(protein);\n }\n\n public Set<Protein> getPreExistingProteins() {\n return preExistingProteins;\n }\n\n public Set<Protein> getNewProteins() {\n return newProteins;\n }\n\n public Long updateBottomProteinId(Long bottomProteinId) {\n for (Protein newProtein : newProteins) {\n if (bottomProteinId == null || bottomProteinId > newProtein.getId()) {\n bottomProteinId = newProtein.getId();\n }\n }\n return bottomProteinId;\n }\n\n public Long updateTopProteinId(Long topProteinId) {\n for (Protein newProtein : newProteins) {\n if (topProteinId == null || topProteinId < newProtein.getId()) {\n topProteinId = newProtein.getId();\n }\n }\n return topProteinId;\n }\n }\n}", "@Override\n public void indexPersistable() {\n searchIndexService.indexAllResourcesInCollectionSubTreeAsync(getPersistable());\n }", "public interface IDocumentDao extends DAO<Document, ObjectId> {\n\n Document findLatestByProductId(int productId);\n\n List<Document> findByProductIdLimit(int productId, long start, long limit);\n\n void update(Document document, float[] arrays);\n\n void add(int pid, float[] arrays);\n}", "public interface IndexDocsInES {\n\n void indexDocs(Client client, String index_name, String type_name, List<Pair> docs);\n}", "protected IndexStore getIndexStore( int index ){\r\n\t\tfor( IndexStore is: store.values() ){\r\n\t\t\tif( is.getIndex() == index )\r\n\t\t\t\treturn is;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private void updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }", "Map<K,V> readFromStore(Collection<K> keys);", "@Override\n public Document createState(Payload payload) {\n // TODO: Use a pool of Documents so that they can be reused\n // TODO: Consider moving this to super class\n return new org.apache.lucene.document.Document();\n }", "public Collection<JsonDocument> getDocuments() {\n return this.cache.values();\n }", "public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return <code>true</code> if object is successfully inserted in the index, \r\n * <code>false</code> if index was declared as unique and there is already object with such value\r\n * of the key in the index. \r\n */\r\n public boolean put(T obj);\r\n\r\n /**\r\n * Associate new object with the key specified by object field value. \r\n * If there is already object with such key in the index, \r\n * then it will be removed from the index and new value associated with this key.\r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @return object previously associated with this key, <code>null</code> if there was no such object\r\n */\r\n public T set(T obj);\r\n\r\n /**\r\n * Assign to the integer indexed field unique autoicremented value and \r\n * insert object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field\r\n * of integer (<code>int</code> or <code>long</code>) type.\r\n * This field is assigned unique value (which will not be reused while \r\n * this index exists) and object is marked as modified.\r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning OID to it.\r\n * @exception StorageError(StorageError.INCOMPATIBLE_KEY_TYPE) when indexed field\r\n * has type other than <code>int</code> or <code>long</code>\r\n */\r\n public void append(T obj);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T remove(Key key);\r\n\r\n /**\r\n * Remove object with specified key from the unique index\r\n * @param key value of removed key\r\n * @return removed object\r\n * @exception StorageError(StorageError.KEY_NOT_FOUND) exception if there is no such key in the index,\r\n * or StorageError(StorageError.KEY_NOT_UNIQUE) if index is not unique.\r\n */\r\n public T removeKey(Object key);\r\n\r\n /**\r\n * Check if index contains specified object instance.\r\n * @param obj object to be searched in the index. Object should contain indexed field. \r\n * @return <code>true</code> if object is present in the index, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Locate objects with the same value of the key as specified object\r\n * @param obj object specifying search key value\r\n * @return selection iterator\r\n */\r\n public IterableIterator<T> queryByExample(T obj);\r\n\r\n /**\r\n * Get class obejct objects which can be inserted in this index\r\n * @return class specified in Storage.createFielIndex method\r\n */\r\n public Class getIndexedClass();\r\n\r\n /**\r\n * Get fields used as a key\r\n * @return array of index key fields\r\n */\r\n public Field[] getKeyFields();\r\n\r\n /**\r\n * Select members of the collection using search predicate\r\n * This iterator doesn't support remove() method.\r\n * To make it possible to update, remove or add members to the index \r\n * during iteration it is necessary to set \"perst.concurrent.iterator\"\r\n * property (by default it is not supported because it cause extra overhead during iteration)\r\n * @param predicate JSQL condition\r\n * @return iterator through members of the collection matching search condition\r\n */\r\n public IterableIterator<T> select(String predicate);\r\n\r\n /**\r\n * Check if field index is case insensitive\r\n * @return true if index ignore case of string keys\r\n */\r\n boolean isCaseInsensitive(); \r\n}", "public interface CacheIndex {\n \n /**\n * Puts index on indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void put(Object indexedKey, Object key);\n \n /**\n * Removes the index from indexedKey.\n *\n * @param indexedKey the indexed key\n * @param key the key\n */\n void remove(Object indexedKey, Object key);\n \n /**\n * Equals to.\n *\n * @param expectedValue the expected value\n * @return the list\n */\n List<Object> equalsTo(Object expectedValue);\n \n /**\n * Less than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThan(Object value);\n \n /**\n * Less than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> lessThanOrEqualsTo(Object value);\n \n /**\n * Greater than.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThan(Object value);\n \n /**\n * Greater than or equals to.\n *\n * @param value the value\n * @return the list\n */\n List<Object> greaterThanOrEqualsTo(Object value);\n \n /**\n * Between.\n *\n * @param lowerBound the lower bound\n * @param upperBound the upper bound\n * @return the list\n */\n List<Object> between(Object lowerBound, Object upperBound);\n \n}", "public interface IDocumentStorage<L> {\n\t/**\n\t * Returns the current location (of the current document).\n\t * @return the current location\n\t */\n\tpublic L getDocumentLocation();\n\n\t/**\n\t * Sets the current location (of the current document), can be used by a save-as action.\n\t * @param documentLocation\n\t */\n\tpublic void setDocumentLocation(L documentLocation);\n\n\t/**\n\t * Adds an IDocumentStorageListener that will be notified when the current location changes.\n\t * @param documentStorageListener\n\t */\n\n\tpublic void addDocumentStorageListener(IDocumentStorageListener<L> documentStorageListener);\n\t/**\n\t * Removes an IDocumentStorageListener.\n\t * @param documentStorageListener\n\t */\n\tpublic void removeDocumentStorageListener(IDocumentStorageListener<L> documentStorageListener);\n\n\t/**\n\t * Creates a new documents and sets it as the current one, can be used by a new action.\n\t */\n\tpublic void newDocument();\n\n\t/**\n\t * Loads a documents from the provided location and sets it as the current one, can be used by an open action.\n\t */\n\tpublic void openDocument(L documentLocation) throws IOException;\n\n\t/**\n\t * Saves the current document (to the current location), can be used by a save action.\n\t */\n\tpublic void saveDocument() throws IOException;\n\n\t/**\n\t * Returns the set of IDocumentImporters, can be used by an import action.\n\t * @return\n\t */\n\tpublic Collection<IDocumentImporter> getDocumentImporters();\n}", "public interface MongoDBCache<K, V> {\n /**\n * Size of the cache\n *\n * @return size\n */\n int size();\n\n /**\n * Purge all data from cache\n */\n void clear();\n\n /**\n * Remove the entry which has the same key of the parameter\n *\n * @param key\n * @return the removed cache entry\n */\n boolean remove(byte[] key);\n\n /**\n * Get a cache entry which has the same key of the parameter\n *\n * @param key\n * @return\n */\n MongoDBEntry<K, V> get(byte[] key);\n\n /**\n * Verify if the cache contains the key passed on parameter\n *\n * @param key\n * @return true if there is some entry, false if there is not\n */\n boolean containsKey(byte[] key);\n\n /**\n * Since mongo doesn't support actual paging results,\n * we have to sort and do a less than on the last id.\n *\n * @param lastKey\n * @return\n */\n List<MongoDBEntry<K, V>> getPagedEntries(byte[] lastKey);\n\n /**\n * This method must remove all data which are expired. <br/>\n * What means delete all entries that have the expiryTime parameter less than the current date.\n */\n List<MongoDBEntry<K, V>> removeExpiredData(byte[] lastKey);\n\n /**\n * Put an entry to the cache\n *\n * @param entry\n */\n void put(MongoDBEntry<K, V> entry);\n\n void start() throws Exception;\n\n /***\n *\n */\n void stop();\n}", "public interface DocumentDao {\n public List<Document> getAll();\n\n Document save(String id, Document document);\n\n public Document findById(String documentId);\n\n Document removeById(String id);\n\n void save(Document document);\n}", "public interface IndexRegistry\n{\n void registerIndex(Index index);\n void unregisterIndex(Index index);\n\n Index getIndex(IndexMetadata indexMetadata);\n Collection<Index> listIndexes();\n}", "<K, V> KeyValueStoreReader<K, V> getStore(String storeName) throws IOException;", "public interface BoostingIndexer {\r\n\t/**\r\n\t * Add a new {@link Document} to the Index or update an existing one.<br> \r\n\t * When adding a document, its dynamic boosts values must be set. Specifying the values is accomplished by\r\n\t * passing the dynamicBoosts parameter with a Map from the boost index (zero based) to the boost value (a <code>double</code>).\r\n\t * In this map, no index can be larger than the number of available boosts the {@link IndexEngine}'s {@link Scorer} has, minus one (since it is zero based).\r\n\t * The value for any available boost index not specified in the map is defaulted to zero. \r\n\t * \r\n\t * @param docId external (customer) identifier of the document to add\r\n\t * @param document the {@link Document} to add\r\n\t * @param timestampBoost a <code>float</code> representing the time of the document (the younger the document, the larger the boost should be)\r\n\t * @param dynamicBoosts a Map from the boost index (zero based) to the boost value (a <code>double</code>).\r\n\t * @throws {@link IllegalArgumentException} if an invalid index is passed for a boost \r\n\t */\r\n\tpublic void add(String docId, Document document, int timestampBoost, Map<Integer, Double> dynamicBoosts);\r\n\r\n\t/**\r\n\t * Remove a document from the index.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document to remove\r\n\t */\r\n\tpublic void del(String docId);\r\n\t\r\n\t/**\r\n\t * Update the special boost for the timestamp\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param timestampBoost a <code>float</code> representing the time of the document (the younger the document, the larger the boost should be)\r\n\t */\r\n\tpublic void updateTimestamp(String docId, int timestampBoost);\r\n\t\r\n\t/**\r\n\t * Update one or more of the dynamic boosts values.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param updatedBoosts a Map from the boost index (zero based) to the boost value (a <code>double</code>). No index can be larger than the available boosts the {@link IndexEngine}'s {@link Scorer} has, minus one (since it is zero based)\r\n\t * @throws {@link IllegalArgumentException} if an invalid index is passed for a boost \r\n\t */\r\n\tpublic void updateBoosts(String docId, Map<Integer, Double> updatedBoosts);\r\n\r\n public void updateCategories(String docId, Map<String, String> categories);\r\n\t/**\r\n\t * Promote a document to be the first result for a specific query.\r\n\t * \r\n\t * @param docId external (customer) identifier of the document\r\n\t * @param query the exact query the document must be promoted to the first result for\r\n\t */\r\n public void promoteResult(String docId, String query);\r\n\r\n /**\r\n * Dumps the current state to disk.\r\n */\r\n public void dump() throws IOException;\r\n\r\n public void addScoreFunction(int functionIndex, String definition) throws Exception;\r\n\r\n public void removeScoreFunction(int functionIndex);\r\n\r\n public Map<Integer,String> listScoreFunctions();\r\n \r\n public Map<String, String> getStats();\r\n\r\n}", "private Version persistMetadata() {\n\n final Value propsArray = lobProps.serialize();\n\n /* Insert the new LOB */\n final Version storedVersion =\n kvsImpl.putIfAbsent(internalLOBKey, propsArray,\n null,\n lobDurability,\n chunkTimeoutMs, TimeUnit.MILLISECONDS);\n\n if (storedVersion == null) {\n final String msg = \"Metadata for internal key: \" + internalLOBKey +\n \" already exists for key: \" + appLOBKey;\n throw new ConcurrentModificationException(msg);\n }\n\n return storedVersion;\n }", "Collection<Document> getDocuments();", "public interface Store {\n\n void addPeople(List<Person> people);\n\n void addEvents(List<Event> events);\n\n List<Person> getNewPeople();\n\n Map<String, Event> getEvents();\n\n Map<Person,String[]> getPreferences();\n\n void addPreference(String personId, String[] split);\n\n void save();\n\n}", "SingleDocumentModel getDocument(int index);", "public interface BookStore {\r\n\r\n\t// CRUD - Create, Read, Update, Delete\r\n\t/**\r\n\t * create the specified book in the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with all attributes initialized.\r\n\t */\r\n\tvoid create(Book book);\r\n\r\n\t/**\r\n\t * read the specified book from the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with the isbn initialized.\r\n\t * @return a book instance with all attributes initialized or null if not found.\r\n\t */\r\n\tBook read(Book book);\r\n\r\n\t/**\r\n\t * update the specified book in the system according to the book parameter.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with all attributes initialized.\r\n\t */\r\n\tvoid update(Book book);\r\n\r\n\t/**\r\n\t * delete the specified book (by isbn) from the system.\r\n\t * \r\n\t * @param book\r\n\t * a book instance with isbn initialized.\r\n\t */\r\n\tvoid delete(Book book);\r\n\r\n\t/**\r\n\t * read all books from the system\r\n\t * \r\n\t * @return a collection of all system books\r\n\t */\r\n\tCollection<Book> readAll();\r\n\r\n}", "public void testStore() {\n\t\tSearchDocument sdocument = new SearchDocument();\r\n\t\tsdocument.setLuceneId(2);\r\n\t\t/**\r\n\t\t * Pay particular attenction: the property menuId is a foreign key. \r\n\t\t * FOREIGN KEY(co_menuid) REFERENCES co_menus(co_menuid)\r\n\t\t */\t\t\r\n\t\tsdocument.setMenuId(Menu.MENUID_PERSONAL);\r\n\t\tsdocument.setIndex(\"testIndex\");\r\n\t\tassertTrue(\"Unable to store\", dao.store(sdocument));\r\n\r\n\t\t// Check database status\r\n\t\tsdocument = dao.findByMenuId(Menu.MENUID_PERSONAL);\r\n\t\tassertNotNull(sdocument);\r\n\t\tassertEquals(Menu.MENUID_PERSONAL, sdocument.getMenuId());\r\n\t}", "V readFromStore(K k);", "private synchronized void saveInternal() {\n if (relatedDocumentsCounter == 0) {\r\n return;\r\n }\r\n\r\n final TrigramIndexJsonModel model = new TrigramIndexJsonModel( relatedDocuments, indexGeneration, trigram );\r\n final TrigramDocumentCountJsonModel count = new TrigramDocumentCountJsonModel( trigram, globalRelatedDocumentsCounter );\r\n\r\n indexGeneration++;\r\n relatedDocuments = new TreeSet<>();\r\n relatedDocumentsCounter = 0;\r\n\r\n // put that save action and all unnecessary path calculations into a thread pool, \r\n // no need that other word can't be indexed, because of someone's save action... \r\n\r\n Runnable runnable = new Runnable() {\r\n @Override\r\n public void run() {\r\n Path trigramsPath = TrigramSubPathCalculator.getPathForTrigram( trigramsBasePath, trigram,\r\n \".\" + model.getIndexGeneration() + TRIGRAM_REFERENCE_SUFFIX );\r\n createTargetDirectoryIfNotExist( trigramsPath.getParent() );\r\n\r\n // write content of one part of the index\r\n try (BufferedWriter writer = Files.newBufferedWriter( trigramsPath, StandardCharsets.UTF_8 )) {\r\n Gson gson = new Gson();\r\n writer.write( gson.toJson( model ) );\r\n }\r\n catch (IOException e) {\r\n System.out.println( String.format( \"saving file: '%s' caused this error...\", trigramsPath ) );\r\n e.printStackTrace();\r\n }\r\n\r\n // write+overwrite the global documents counter as well\r\n Path trigramCountPath = TrigramSubPathCalculator.getPathForTrigram( trigramsBasePath, trigram, TRIGRAM_COUNT_SUFFIX );\r\n\r\n try (BufferedWriter writer = Files.newBufferedWriter( trigramCountPath, StandardCharsets.UTF_8 )) {\r\n Gson gson = new Gson();\r\n writer.write( gson.toJson( count ) );\r\n }\r\n catch (IOException e) {\r\n System.out.println( String.format( \"saving file: '%s' caused this error...\", trigramCountPath ) );\r\n e.printStackTrace();\r\n }\r\n\r\n }\r\n };\r\n\r\n // TODO: put into task thread-pool (deque) for really saving indexing time.\r\n runnable.run();\r\n }", "alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore();", "@FunctionalInterface\npublic interface IIndexer<T extends IDocument> {\n\tList<T> getDocuments(String query, int limit);\n}", "public TinySearchEngine()\n {\n this.myIndex = new HashMap();\n this.documentData = new HashMap();\n this.sorted = false;\n this.sort = new Sort();\n this.search = new BinarySearch();\n }", "public interface IExchangeDataIndexer {\n\t/**\n\t * Get the exchange indexed by this indexer.\n\t * \n\t * @return {@link Exchange}\n\t */\n\tpublic Exchange getExchange();\n\t\n\t/**\n\t * Get the list of indexes managed by this indexer.\n\t * \n\t * @return The list of names of indexes managed by this indexer.\n\t */\n\tpublic List<String> getExchangeIndexes();\n\t\n\t/**\n\t * Updates the list of stocks in this index, by fetching latest data from the source. \n\t * \n\t * @return Updated list of the stocks.\n\t */\n\tList<MarketData> getMarketDataItems(String index);\n\t\n\t/**\n\t * Synchronizes the recently fetched stock data(of a single index) to the data store.\n\t * \n\t * @param exchangeCode Code for this exchange.\n\t * @param items Recently fetched stock data.\n\t */\n\tpublic void syncToDataStore(String exchangeCode, Collection<MarketData> items);\n}", "public interface TimelineMetaStore {\n /**\n * Get timeline meta by identifier.\n * Return null if this timeline meta is not exist.\n *\n * @param identifier The identifier of timeline meta.\n *\n * @return TimelineMeta\n */\n TimelineMeta read(TimelineIdentifier identifier);\n\n /**\n * Search timeline meta by search parameter.\n * Search will throw TimelineException when index info not set in TimelineSchema.\n *\n * @param searchParameter The parameter of search, which will convert to SearchQuery.\n *\n * @return SearchResult<TimelineMeta>\n */\n SearchResult<TimelineMeta> search(SearchParameter searchParameter);\n\n /**\n * Search timeline meta by search parameter.\n * Search will throw TimelineException when index info not set in TimelineSchema.\n *\n * @param searchQuery The searchQuery of search, which is self-defined query condition.\n *\n * @return SearchResult<TimelineMeta>\n */\n SearchResult<TimelineMeta> search(SearchQuery searchQuery);\n\n /**\n * Insert a new timeline meta with properties.\n *\n * @param meta The meta of timeline.\n *\n * @return TimelineMeta\n */\n TimelineMeta insert(TimelineMeta meta);\n\n /**\n * Update existed timeline meta with new properties.\n * It will insert a new meta if the timeline meta not exist.\n *\n * @param meta the meta of timeline.\n *\n * @return TimelineMeta\n */\n TimelineMeta update(TimelineMeta meta);\n\n /**\n * Delete existed timeline meta by identifier.\n * It won't throw exception, when the timeline meta with this identifier not exist.\n *\n * @param identifier The identifier of the timeline to be delete.\n */\n void delete(TimelineIdentifier identifier);\n\n /**\n * Create the table of meta store;\n * And create the SearchIndex of timeline meta if necessary.\n */\n void prepareTables();\n\n /**\n * Drop the table of meta store.\n * And Drop the SearchIndex of timeline meta if exist.\n **/\n void dropAllTables();\n\n /**\n * Close store service.\n */\n void close();\n}", "public interface DataView {\n\n /**\n * The name of the data store.\n * \n * @return\n */\n String getName();\n\n /**\n * Returns the value mapped to the given key.\n * \n * @param key\n * @return\n */\n <T> T getValue(DataKey<T> key);\n\n Object getValueRaw(String id);\n\n Collection<DataKey<?>> getDataKeysWithValues();\n\n Collection<String> getKeysWithValues();\n\n default Object getValueRaw(DataKey<?> key) {\n return getValueRaw(key.getName());\n }\n\n /**\n * \n * @param key\n * @return true if the store contains a value for the given key\n */\n <T> boolean hasValue(DataKey<T> key);\n\n /**\n * \n * @return the objects mapped to the key ids\n */\n // Map<String, Object> getValuesMap();\n\n public static DataView newInstance(DataStore dataStore) {\n return new DefaultCleanSetup(dataStore);\n }\n\n public static DataView empty() {\n return new DataView() {\n\n @Override\n public <T> T getValue(DataKey<T> key) {\n return null;\n }\n\n @Override\n public String getName() {\n return \"<empty>\";\n }\n\n // @Override\n // public Map<String, Object> getValuesMap() {\n // return Collections.emptyMap();\n // }\n\n @Override\n public <T> boolean hasValue(DataKey<T> key) {\n return false;\n }\n\n @Override\n public Object getValueRaw(String id) {\n return null;\n }\n\n @Override\n public Collection<DataKey<?>> getDataKeysWithValues() {\n return Collections.emptyList();\n }\n\n @Override\n public Collection<String> getKeysWithValues() {\n return Collections.emptyList();\n }\n };\n }\n\n default DataStore toDataStore() {\n return DataStore.newInstance(this);\n }\n}", "indexSet createindexSet();", "public PersistentDataStore() {\n datastore = DatastoreServiceFactory.getDatastoreService();\n }", "public InMemoryKeyValueStorage(final SegmentIdentifier segmentIdentifier) {\n super(segmentIdentifier, new SegmentedInMemoryKeyValueStorage());\n rwLock = ((SegmentedInMemoryKeyValueStorage) storage).rwLock;\n }", "public interface ContentStoreIF {\n\n /**\n * INTERNAL: Returns true if the content store contains an entry with\n * the specified key.\n */\n boolean containsKey(int key) throws ContentStoreException;\n\n /**\n * INTERNAL: Gets the data value associated with the specified key.\n */\n ContentInputStream get(int key) throws ContentStoreException;\n \n /**\n * INTERNAL: Creates an entry for the specified data value.\n */\n int add(ContentInputStream data) throws ContentStoreException;\n \n /**\n * INTERNAL: Creates an entry for the specified data value.\n */\n int add(InputStream data, int length) throws ContentStoreException;\n\n /**\n * INTERNAL: Removes the entry associated with the key. If the key\n * is not present the call has no effect.\n *\n * @return true if the key was present; false otherwise\n */\n boolean remove(int key) throws ContentStoreException;\n\n /**\n * INTERNAL: Closes the content store. This allows all internal\n * resources to be released.\n */\n void close() throws ContentStoreException;\n \n}", "@Override\n\tpublic Datastore getDatastore() {\n\t\treturn SKBeanUtils.getDatastore();\n\t}", "public IndexableDocument() {\n\t\tthis.id=new ObjectId();\n\t}", "private void readIndex() throws IOException {\n\t\t\tif (this.keys != null)\n\t\t\t\treturn;\n\t\t\tkeys = new HashMap<K, Long>(1024);\n\t\t\ttry {\n\t\t\t\twhile (index.hasNext()) {\n\t\t\t\t\tPair<K, Long> pair;// = new Pair<K, Long>(index.getSchema());\n\t\t\t\t\tpair = index.next();\n\t\t\t\t\tkeys.put(pair.key(), pair.value());\n\t\t\t\t\tif (firstKey == null)\n\t\t\t\t\t\tfirstKey = pair.key();\n\t\t\t\t\tfinalKey = pair.key();\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\n\t\t\t}finally {\n\t\t\t\tindexClosed = true;\n\t\t\t\tindex.close();\n\t\t\t}\n\t\t}", "public interface KeySerDe {\n byte[] serialize(IndexedRecord key);\n IndexedRecord deserialize(byte[] keyBytes);\n}", "public interface Storage {\n\n public Collection<Developers> values();\n\n public int add(final Developers developer);\n\n public void edit(final Developers developer);\n\n public void delete(final int id);\n\n public Developers get(final int id);\n\n public Developers findByName(String name);\n\n public void close();\n}", "public static BookmarkStore getInstance() {\n return store;\n }", "public interface IDbLuceneMappingService {\n\n void save(DbLuceneMapping dbLuceneMapping);\n\n DbLuceneMapping read(ObjectId id);\n\n DbLuceneMapping update(ObjectId id, DbLuceneMapping dbLuceneMapping);\n\n void delete(ObjectId id);\n\n List<DbLuceneMapping> readAll();\n\n List<DbLuceneMapping> getDatabase(String luceneName);\n\n List<DbLuceneMapping> getLuceneName(String databaseName);\n\n}", "public interface IStorage extends Serializable {\n\n /**\n * Removes all stored values.\n */\n void clear();\n\n /**\n * Removes the value stored under the given key (if one exists).\n *\n * @return {@code true} if a successful.\n */\n StoragePrimitive remove(String key);\n\n /**\n * Adds all mappings in {@code val} to this storage object, overwriting any existing values.\n *\n * @see #addAll(String, IStorage)\n */\n void addAll(IStorage val);\n\n /**\n * Adds all mappings in {@code val} to this storage object, where all keys are prefixed with\n * {@code prefix}. Any existing values are overwritten.\n */\n void addAll(String prefix, IStorage val);\n\n /**\n * @return All stored keys.\n * @see #getKeys(String)\n */\n Collection<String> getKeys();\n\n /**\n * @return A collection of all stored keys matching the given prefix, or all stored keys if the prefix is\n * {@code null}.\n */\n Collection<String> getKeys(@Nullable String prefix);\n\n /**\n * @return {@code true} if this storage object contains a mapping for the given key.\n */\n boolean contains(String key);\n\n /**\n * Returns raw value stored under the given key.\n */\n StoragePrimitive get(String key);\n\n /**\n * Returns value stored under the given key converted to a boolean.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n boolean getBoolean(String key, boolean defaultValue);\n\n /**\n * Convenience method for retrieving a 32-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to int.\n *\n * @see #getDouble(String, double)\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Convenience method for retrieving a 64-bit signed integer. This is equivalent to calling\n * {@link IStorage#getDouble(String, double)} and casting the result to long.\n *\n * @see #getDouble(String, double)\n */\n long getLong(String keyTotal, long defaultValue);\n\n /**\n * Returns value stored under the given key converted to a double.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key, or if\n * the value couldn't be converted to the desired return type.\n * @see #getString(String, String)\n */\n double getDouble(String key, double defaultValue);\n\n /**\n * Returns value stored under the given key converted to a string.\n *\n * @param defaultValue This value is returned instead if no value was stored under the given key.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Stores a value under the given key. If {@code null}, removes any existing mapping for the given key\n * instead.\n */\n void set(String key, @Nullable StoragePrimitive val);\n\n /**\n * Stores a boolean value under the given key.\n *\n * @see #setString(String, String)\n */\n void setBoolean(String key, boolean val);\n\n /**\n * Convenience method for storing an integer. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setInt(String key, int val);\n\n /**\n * Convenience method for storing a long. All values are stored as double-precision floating point\n * internally.\n *\n * @see #setDouble(String, double)\n */\n void setLong(String key, long val);\n\n /**\n * Stores a double-precision floating point value under the given key.\n *\n * @see #setString(String, String)\n */\n void setDouble(String key, double val);\n\n /**\n * Stores a string value under the given key.\n *\n * @param val The value to store. If {@code null}, removes any existing mapping for the given key instead.\n */\n void setString(String key, String val);\n\n}", "public ArrayList<Document> getLastConsistentTriple() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public interface RdbStorage extends ReadonlyRdbStorage {\n /**\n * insert new record into rdb.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return new object\n */\n Object insert(String key, Object param);\n\n /**\n * update records.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return effected row count\n */\n Integer update(String key, Object param);\n\n /**\n * delete records.\n *\n * @param key sqlmap key\n * @param param parameters for sqlmap\n * @return effected row count\n */\n Integer delete(String key, Object param);\n}", "private void openStore()\n throws Exception {\n\n dbStore = Utils.openStore(master, Utils.DB_NAME);\n primaryIndex = \n dbStore.getPrimaryIndex(Integer.class, RepTestData.class);\n }", "public void put(Text key,LongWritable value){\n\t\tindexcontainer.put(key, value);\n\t}", "public interface Store {\n\n void put(String accountId, Account account);\n Account get(String accountId);\n void delete(String accountId);\n\n}", "public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}", "void itemAddedToIndex(Object key, Object o);", "public DocumentList getDocuments() {\n return documents;\n }", "public interface NamedStorage extends Iterable<String>, AutoCloseable {\n\n /**\n * Gets data stored by specified key and puts it to the provided stream.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to process data\n * @return true if data was found, false otherwise\n */\n boolean getInto(String key, OutputStream stream);\n\n /**\n * Saves data from stream using provided key. If there was data for this key it will be overwritten with new data.\n * Does not close given stream.\n * @param key data key\n * @param stream stream to get data from\n */\n void saveFrom(String key, InputStream stream);\n\n /**\n * Checks that there is data stored for provided key\n * @param key data key\n * @return true if there is data for this key, false otherwise\n */\n boolean contains(String key);\n\n /**\n * Deletes key and associated data from storage. Does nothing if there is no such key in storage\n * @param key\n */\n void delete(String key);\n\n /**\n *\n * @return iterator for all keys. Order of keys is unknown.\n */\n Iterator<String> iterator();\n\n /**\n * Closes storage and flushes all changes on disk.\n */\n void close();\n\n /**\n * Copies all data to the specified storage\n * @param storage\n */\n void cloneTo(NamedStorage storage);\n}", "public boolean store(UserDoc userdoc);", "public interface IStorageManager {\n public IStorageBook getValue(String key);\n\n public void addStorageBook(String key, IStorageBook book);\n\n public void clear();\n\n public boolean isEmpty();\n\n public void remove(String key);\n}", "public ODatabaseDocumentTx getOrCreateDB();", "public ArrayList<Document> getDocs() {\n return documents;\n }", "public interface IStore<T> {\t\n\t\n\tpublic final static int default_capacity = 999;\t\n\t\n\tpublic int getSize(); //Return the number of objects stored\n\t//public void setSizer(IStoreSizer storeSizer); //Allows for size to be determined by an external party. \n\tpublic T get(int index); // Return the object stored at the corresponding index value\n\tpublic int getCapacity(); //Return the maximum number of IRegisteredParcel objects that can be stored by this Store\n\tpublic T put(int index, T t); //Place input Object at the specified index and return existing object\n\tpublic void clear(); //return oldStore and set new . used for Clearing the store.\n\tpublic IStore<T> clone(); //Return a clone of the current store that is an image frozen at invocation time.\n}", "public IndexDatabase(String index_path) {\n int k;\n long p;\n try {\n pre_file = new RandomAccessFile(index_path + \"/sorted.kmc_pre\", \"r\");\n pre_file.seek(pre_file.length() - 8);\n header_pos = read_int(pre_file);\n pre_file.seek(pre_file.length() - 8 - header_pos);\n // read the index properties \n K = read_int(pre_file);\n mode = read_int(pre_file);\n ctr_size = read_int(pre_file);\n pre_len = read_int(pre_file);\n min_count = read_int(pre_file);\n max_count = read_int(pre_file);\n kmers_num = read_long(pre_file);\n suf_len = K - pre_len;\n key = new kmer(K, pre_len, suf_len);\n System.out.println(\"Indexing \" + kmers_num + \" kmers... \");\n // load the prefix file into the memory \n pre_file.seek(4);\n int q, len = 1 << (2 * pre_len);\n prefix_ptr = new long[len];\n MappedByteBuffer pre_buff;\n for (q = 0, p = 0; p < 8; ++p) {\n pre_buff = pre_file.getChannel().map(FileChannel.MapMode.READ_ONLY, 4 + p * len, len);\n for (k = 0; k < len / 8; ++k, ++q) {\n prefix_ptr[q] = read_long(pre_buff);\n }\n pre_buff = null;\n }\n pre_file.close();\n // mapping suffix file into the memory\n suf_rec_size = ctr_size + suf_len / 4;\n MAX_BYTE_COUNT = MAX_BYTE_COUNT / suf_rec_size * suf_rec_size;\n suf_parts_num = (int) ((kmers_num * suf_rec_size) % MAX_BYTE_COUNT == 0 ? (kmers_num * suf_rec_size) / MAX_BYTE_COUNT : (kmers_num * suf_rec_size) / MAX_BYTE_COUNT + 1);\n suf_parts_size = new long[suf_parts_num];\n suf_file = new RandomAccessFile(index_path + \"/sorted.kmc_suf\", \"r\");\n suf_buff = new MappedByteBuffer[suf_parts_num];\n for (k = 0; k < suf_parts_num; ++k) {\n suf_parts_size[k] = (int) (k == suf_parts_num - 1 ? (kmers_num * suf_rec_size) % MAX_BYTE_COUNT : MAX_BYTE_COUNT);\n suf_buff[k] = suf_file.getChannel().map(FileChannel.MapMode.READ_ONLY, 4 + k * suf_parts_size[0], suf_parts_size[k]);\n }\n // mapping pointers file into the memory\n MAX_BYTE_COUNT = MAX_BYTE_COUNT / POINTER_LENGTH * POINTER_LENGTH;\n ptr_parts_num = (int) ((kmers_num * POINTER_LENGTH) % MAX_BYTE_COUNT == 0 ? (kmers_num * POINTER_LENGTH) / MAX_BYTE_COUNT : (kmers_num * POINTER_LENGTH) / MAX_BYTE_COUNT + 1);\n ptr_parts_size = new long[ptr_parts_num];\n ptr_file = new RandomAccessFile(index_path + \"/pointers.db\", \"rw\");\n ptr_buff = new MappedByteBuffer[ptr_parts_num];\n for (k = 0; k < ptr_parts_num; ++k) {\n ptr_parts_size[k] = (int) (k == ptr_parts_num - 1 ? (kmers_num * POINTER_LENGTH) % MAX_BYTE_COUNT : MAX_BYTE_COUNT);\n ptr_buff[k] = ptr_file.getChannel().map(FileChannel.MapMode.READ_WRITE, k * ptr_parts_size[0], ptr_parts_size[k]);\n }\n } catch (IOException e) {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }", "public DocumentServiceImpl() {\n this.store = new AuthenticationTokenStore();\n }", "public interface IndexBuilder {\n\n /**\n * Rebuilds the index only when the existing index is not populated.\n */\n void rebuildIfNecessary();\n\n}", "static <H, I> TableStore<I, X509Certificate> getTableStore(I localId, X509Certificate localCert, Serializer<I> iSerializer, X509Serializer cSerializer, InputBuffer buf) {\n MyStore<H, I> ret = new MyStore<H, I>();\n ret.put(localId, localCert);\n if (buf != null) {\n // load store from the file\n throw new RuntimeException(\"Persistent version not implemented.\");\n }\n \n return ret;\n }", "private void indexDocument(File f) throws IOException {\n\n\t\tHashMap<String, StringBuilder> fm;\n\t\tif (!f.getName().equals(\".DS_Store\")) {\n\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\n\t\t\tString s = \"\";\n\t\t\twhile ((s = br.readLine()) != null) {\n\n\t\t\t\tString temp = \"\";\n\n\t\t\t\tif (s.contains(\"<DOC>\")) {\n\n\t\t\t\t\ts = br.readLine();\n\n\t\t\t\t\twhile (!s.contains(\"</DOC>\")) {\n\n\t\t\t\t\t\ttemp += s + \" \";\n\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\n\t\t\t\t\tfm = parseTags(temp);\n\t\t\t\t\tindexDocumentHelper(fm);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\n\t}", "public interface BlobStore {\n\n /**\n * Validation pattern for namespace.\n */\n public static Pattern VALID_NAMESPACE_PATTERN = Pattern.compile(\"[A-Za-z0-9_-]+\");\n\n\n /**\n * Validation pattern for id.\n */\n public static Pattern VALID_ID_PATTERN = Pattern.compile(\"[A-Za-z0-9_.:-]+\");\n\n /**\n * Store a new object inside the blob store.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @param content The actual content.\n * @throws StageException\n */\n public void store(String namespace, String id, long version, String content) throws StageException;\n\n /**\n * Return latest version for given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Latest version (usual integer comparison)\n * @throws StageException\n */\n public long latestVersion(String namespace, String id) throws StageException;\n\n /**\n * Validates if given object exists on at least one version.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return If given object in given namespace exists\n */\n public boolean exists(String namespace, String id);\n\n /**\n * Validates if given object exists on given version.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @return If given object on given in given namespace exists\n */\n public boolean exists(String namespace, String id, long version);\n\n /**\n * Return all versions associated with given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Set of all stored versions.\n * @throws StageException\n */\n public Set<Long> allVersions(String namespace, String id);\n\n /**\n * Retrieve given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @return Object itself\n * @throws StageException\n */\n public String retrieve(String namespace, String id, long version) throws StageException;\n\n /**\n * Sub-interface to encapsulate tuple of content with it's version.\n */\n public interface VersionedContent {\n /**\n * Version of the content.\n */\n long version();\n\n /**\n * Actual content\n */\n String content();\n }\n\n /**\n * Convenience method to return latest version for given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @return Object itself\n * @throws StageException\n */\n public VersionedContent retrieveLatest(String namespace, String id) throws StageException;\n\n /**\n * Delete given object from the store.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @param version Version of the object.\n * @throws StageException\n */\n public void delete(String namespace, String id, long version) throws StageException;\n\n /**\n * Delete all versions of given object.\n *\n * @param namespace Namespace of the object.\n * @param id Id of the object.\n * @throws StageException\n */\n public void deleteAllVersions(String namespace, String id) throws StageException;\n}", "public interface TopLevelDocument<N> extends IdentifiableDocument<N> {\n\n class Impl<N> extends IdentifiableDocument.Abstract<N> implements TopLevelDocument<N> {\n private final List<NamespaceBinding> bindings;\n private final N type;\n private final URI identity;\n private final List<NamedProperty<N>> properties;\n\n Impl(List<NamespaceBinding> bindings, N type, URI identity, List<NamedProperty<N>> properties) {\n if(bindings == null)\n throw new NullPointerException(\"Can't create a TopLevelDocument with null bindings\");\n if(type == null)\n throw new NullPointerException(\"Can't create a TopLevelDocument with null type\");\n if(identity == null)\n throw new NullPointerException(\"Can't create a TopLevelDocument with null identity\");\n if(properties == null)\n throw new NullPointerException(\"Can't create a TopLevelDocument with null properties\");\n\n this.bindings = bindings;\n this.type = type;\n this.identity = identity;\n this.properties = properties;\n }\n\n @Override\n public N getType() {\n return type;\n }\n\n @Override\n public URI getIdentity() {\n return identity;\n }\n\n @Override\n public List<NamespaceBinding> getNamespaceBindings()\n {\n return bindings;\n }\n\n @Override\n public List<NamedProperty<N>> getProperties() {\n return properties;\n }\n\n @Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n Impl<?> impl = (Impl<?>) o;\n\n if (!bindings.equals(impl.bindings)) return false;\n if (!type.equals(impl.type)) return false;\n if (!identity.equals(impl.identity)) return false;\n return properties.equals(impl.properties);\n\n }\n\n @Override\n public int hashCode() {\n int result = bindings.hashCode();\n result = 31 * result + type.hashCode();\n result = 31 * result + identity.hashCode();\n result = 31 * result + properties.hashCode();\n return result;\n }\n\n @Override\n public String toString() {\n return \"TopLevelDocument{\" +\n \"bindings=\" + bindings +\n \", type=\" + type +\n \", identity=\" + identity +\n \", properties=\" + properties +\n '}';\n }\n }\n\n}", "public void saveAll(){\n // Store postings\n for (Map.Entry<String, PostingsList> entry : this.index.entrySet()) {\n saveJSON(\"postings/t\"+hash(entry.getKey())+\".json\", entry.getValue());\n System.err.println(\"postings/t\"+hash(entry.getKey())+\".json\");\n count++;\n if (count%1000==0)\n System.err.println(\"storing \"+ count);\n }\n // Store mapping ID<->document names mapping\n this.saveJSON(\"postings/docIDs.json\", this.docIDs);\n this.saveJSON(\"postings/docLengths.json\", this.docLengths);\n }", "@Transactional\n\t@Override\n\tpublic List<Documents> getShareDocuments() {\n\t\treturn documentsDao.getShareDocuments();\n\t}", "alluxio.proto.journal.KeyValue.CompleteStoreEntry getCompleteStore();", "public interface IIndexer {\n /**\n * Returns the file types the <code>IIndexer</code> handles.\n */\n String[] getFileTypes();\n /**\n * Indexes the given document, adding the document name and the word references \n * to this document to the given <code>IIndex</code>.The caller should use \n * <code>shouldIndex()</code> first to determine whether this indexer handles \n * the given type of file, and only call this method if so. \n */\n void index(IDocument document, IIndexerOutput output) throws java.io.IOException;\n /**\n * Sets the document types the <code>IIndexer</code> handles.\n */\n public void setFileTypes(String[] fileTypes);\n /**\n * Returns whether the <code>IIndexer</code> can index the given document or not.\n */\n public boolean shouldIndex(IDocument document); }", "void put(String key, int value) throws StorageException, ValidationException, KeyValueStoreException;", "public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}", "public interface IDBStorableModel {\n\n\t/**\n\t * Saves the model to db\n\t * \n\t * @param db\n\t * @return\n\t */\n\tpublic void store(DBConnection db) throws IOException;\n\t\n}", "public static PropertyStore getStore(final String key) {\n PropertyStore returnMe = _propStore.get(key);\n if (returnMe == null) {\n returnMe = new PropertyStore(new ScopedPreferenceStore(new InstanceScope(), key), new ScopedPreferenceStore(\n new ConfigurationScope(), key));\n _propStore.put(key, returnMe);\n }\n return returnMe;\n }", "public boolean shouldIndex(IDocument document);", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public interface IIndexerDAO {\n\t\n\t/**\n\t * Inizializzazione dell'indicizzatore.\n\t * @param dir La cartella locale contenitore dei dati persistenti.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void init(File dir) throws ApsSystemException;\n\t\n\t/**\n\t * Aggiunge un contenuto nel db del motore di ricerca.\n * @param entity Il contenuto da aggiungere.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void add(IApsEntity entity) throws ApsSystemException;\n\t\n\t/**\n * Cancella un documento indicizzato.\n * @param name Il nome del campo Field da utilizzare per recupero del documento.\n * @param value La chiave mediante il quale è stato indicizzato il documento.\n * @throws ApsSystemException In caso di errori.\n */\n public void delete(String name, String value) throws ApsSystemException;\n \n public void close();\n\t\n\tpublic void setLangManager(ILangManager langManager);\n \n\tpublic static final String FIELD_PREFIX = \"entity:\"; \n public static final String CONTENT_ID_FIELD_NAME = FIELD_PREFIX + \"id\";\n public static final String CONTENT_TYPE_FIELD_NAME = FIELD_PREFIX + \"type\";\n public static final String CONTENT_GROUP_FIELD_NAME = FIELD_PREFIX + \"group\";\n public static final String CONTENT_CATEGORY_FIELD_NAME = FIELD_PREFIX + \"category\";\n\tpublic static final String CONTENT_CATEGORY_SEPARATOR = \"/\";\n\tpublic static final String ATTACHMENT_FIELD_SUFFIX = \"_attachment\";\n\t\n}", "public XodusKVStore readOnlySnapshot() {\n Preconditions.checkState(!this.closed.get(), \"transaction closed\");\n return new XodusKVStore(TransactionType.READ_ONLY, this.tx.getReadonlySnapshot(), this.store);\n }", "public interface DocumentDataModel extends Serializable {\n\n\t/**\n\t * Create's a view for this DocumentComponent that is suitable for\n\t * embedding directly in a frame. The view must create its own\n\t * menubar if it needs one. Standard menus that are usable as-is\n\t * are passed as parameters.\n\t *\n\t * @param selection The selection listener that keeps \"Edit\" menu updated\n\t * @param editListener The listener that keeps the Undo/Redo menu item\n\t * and undo history up to date.\n\t * @param menuKeys The listener that handles menu keys\n\t * @param fileMenu the standard file menu\n\t * @param editMenu the standard edit menu\n\t * @return the view\n\t */\n\tComponent createRootGUI(AppMain app, Frame f,\n\t\t\tSelectionListener selection, UndoableEditListener editListener,\n\t\t\tKeyListener menuKeys, JMenu fileMenu, JMenu editMenu);\n\n}", "public interface IPersistentSet<T> extends IPersistent, IResource, Set<T>, ITable<T> \r\n{\r\n /**\r\n * Perform join of two sorted set. This method can be used to incrementally\r\n * join two or more inverse lists (represented using IPersistentSet collections).\r\n * For example, assume that we need to implement own primitive full text search engine\r\n * (please notice that Perst has builtin full text search engine).\r\n * So we have inverse index keyword-&gt;list of documents with occurrences of this keyword.\r\n * Given full text query (set of keywords) we need to locate all documents\r\n * which contains all specified keywords. It can be done in this way:\r\n * <code>\r\n * class FullTextSearchEngine extends PersistentResource {\r\n * Index&lt;IPersistentSet&lt;Document&gt;&gt; inverseIndex;\r\n * public FullTextSearchEngine(Storage storage) { \r\n * super(storage);\r\n * inverseIndex = storage.&lt;IPersistentSet&lt;Document&gt;&gt;createIndex(String.class, true);\r\n * }\r\n * public IterableIterator&lt;Document&gt; search(Collection&lt;String&gt; keywords) {\r\n * IterableIterator&lt;Document&lt; result = null;\r\n * for (String keyword : keywords) {\r\n * IPersistentSet&lt;Document&gt; occurrences = inverseIndex.get(keyword); \r\n * if (occurrences == null) {\r\n * return null;\r\n * }\r\n * result = occurrences.join(result);\r\n * }\r\n * return result;\r\n * }\r\n * }\r\n * </code>\r\n * \r\n * @param iterator set of object ordered by OID. Usually it is iterator of IPersistentSet class.\r\n * This parameter may be null, in this case iterator of the target persistent set is returned.\r\n * @return iterator through result of two sets join. Join is performed incrementally so join\r\n * of two large sets will not consume a lot of memory and first results of such join\r\n * can be obtains fast enough.\r\n */\r\n public IterableIterator<T> join(Iterator<T> iterator);\r\n}", "ByteArrayIndex createByteArrayIndex();" ]
[ "0.592473", "0.5850358", "0.5791037", "0.57760316", "0.5637345", "0.560403", "0.5576636", "0.5435871", "0.5358258", "0.5353926", "0.53494424", "0.5346597", "0.5326765", "0.5289848", "0.52765083", "0.5270063", "0.5234265", "0.5227621", "0.52166176", "0.5213363", "0.51998353", "0.519422", "0.5083629", "0.5074508", "0.50705665", "0.5067915", "0.505874", "0.50523305", "0.5047828", "0.503616", "0.50177664", "0.5007001", "0.5002183", "0.49856672", "0.49756995", "0.49742407", "0.49348226", "0.49254248", "0.49232006", "0.49040982", "0.49036294", "0.48987824", "0.48914447", "0.48893794", "0.4878001", "0.4868797", "0.48684338", "0.4860271", "0.48574415", "0.4855888", "0.48331562", "0.48220643", "0.481534", "0.48007035", "0.47956836", "0.47795078", "0.47757232", "0.4772838", "0.47711048", "0.4742665", "0.47419813", "0.4720971", "0.46889096", "0.4681572", "0.46732605", "0.46660003", "0.46530014", "0.46433973", "0.4632385", "0.46316445", "0.4628829", "0.46169993", "0.46081507", "0.45968792", "0.45956972", "0.45949203", "0.45906368", "0.4577038", "0.45736188", "0.45691386", "0.45643336", "0.45630464", "0.456064", "0.45604506", "0.45579115", "0.45573825", "0.4551956", "0.45474535", "0.45455304", "0.45430276", "0.4542275", "0.4534605", "0.45341992", "0.4532245", "0.45260575", "0.4519997", "0.45117217", "0.45096084", "0.45073903", "0.45024657" ]
0.6214632
0
Creates a lazy iterable over items that match the provided condition, in the order requested. Exposing the appropriate keys and values. Note that each iterator is independent and goes back to the source data to collect data. As such, if you need to use multiple iterators, it is better to cache the results. Note that this may also be internally paginating so different calls to hasNext/next may have different performance characteristics. Note that two unexpected outcomes can occur with this iterator. (1) It is possible some of the values of this iterator will be null. This can happen if the value is deleted around the time the iterator is created and when the value is retrieved. (2) This iterator could return values that don't match the provided conditions. This should be rare but can occur if the value was changed around the time the iterator is created.
Iterable<Entry<K, V>> find(LegacyFindByCondition find);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator<T> iterator(T instance, M matchCondition);", "CollectIteratorEvaluator(BooleanValue condition) {\n this.condition = condition;\n }", "private static List<Car> getCarsByCriteria(Iterable<Car> iter, CarCriteria criteria) {\n List<Car> returnCars = new ArrayList<>();\n\n for (Car c : iter) {\n\n //Passing the criteria based on the users input\n if (criteria.test(c)) {\n returnCars.add(c);\n }\n }\n return returnCars;\n }", "public List<DomainObject> getListByCondition(String condition) {\r\n Session session = getSession();\r\n List<DomainObject> lst = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n condition = \" \";\r\n }\r\n lst = session.createQuery(\"from \" + getPersistentClass().getName() + \" \" + condition).list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByCondition Method:\" + e, e);\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n return lst;\r\n }", "public EntityListIterator selectListIteratorByCondition(final ModelEntity modelEntity, EntityCondition whereEntityCondition,\n final EntityCondition havingEntityCondition, final Collection<String> fieldsToSelect,\n final List<String> orderBy, final EntityFindOptions findOptions)\n throws GenericEntityException {\n if (modelEntity == null) {\n return null;\n }\n final EntityFindOptions nonNullFindOptions = findOptions == null ? new EntityFindOptions() : findOptions;\n\n //JRA-19317: Oracle does not allow lists with more than 1000 elements ORA-01795\n // if we are on Oracle we split such long lists into equivalent expression\n // e.g. pid in (1, 2, 3, ..., 1000, 1001, 1002, ...) will be split into (pid in (1, 2, 3, ..., 1000) or pid in (1001, 1002, ...))\n final DatabaseType databaseType = datasourceInfo.getDatabaseTypeFromJDBCConnection();\n if (databaseType == ORACLE_8I || databaseType == ORACLE_10G) {\n whereEntityCondition = rewriteConditionToSplitListsLargerThan(whereEntityCondition, ORACLE_MAX_LIST_SIZE);\n }\n\n //JDEV-31097: SQL server does not allow more than 2000 parameter markers (?) which can happen with huge IN queries\n //(e.g. where pid in (1, 2, 3, 4, ...)\n // so in this case we:\n // - create a temporary table\n // - put all the 'IN' values into this table\n // - rewrite the original 'IN' part of the query to use the temporary table instead (where pid in (select item from #temp))\n // - run the query\n // - when the list iterator is closed, drop the temporary table\n final Optional<WhereRewrite> whereRewrite;\n if (databaseType == MSSQL) {\n whereRewrite = rewriteConditionToUseTemporaryTablesForLargeInClauses(whereEntityCondition, modelEntity);\n if (whereRewrite.isPresent()) {\n whereEntityCondition = whereRewrite.get().getNewCondition();\n }\n } else {\n whereRewrite = Optional.absent();\n }\n\n if (Debug.verboseOn()) {\n Debug.logVerbose(\"Doing selectListIteratorByCondition with whereEntityCondition: \" + whereEntityCondition);\n }\n\n final List<ModelField> selectFields = getSelectFields(modelEntity, fieldsToSelect);\n final List<EntityConditionParam> whereEntityConditionParams = new LinkedList<EntityConditionParam>();\n final List<EntityConditionParam> havingEntityConditionParams = new LinkedList<EntityConditionParam>();\n\n final String sql = getSelectQuery(selectFields, nonNullFindOptions, modelEntity, orderBy, whereEntityCondition,\n havingEntityCondition, whereEntityConditionParams, havingEntityConditionParams, databaseType);\n\n final SQLProcessor sqlP;\n if (whereRewrite.isPresent()) {\n sqlP = new SQLProcessor(helperName);\n } else {\n sqlP = new ReadOnlySQLProcessor(helperName);\n }\n\n //Generate any temporary tables required for the query (MS SQL Server only)\n Set<String> temporaryTableNames = new HashSet<String>();\n if (whereRewrite.isPresent()) {\n for (InReplacement inReplacement : whereRewrite.get().getInReplacements()) {\n String temporaryTableName = inReplacement.getTemporaryTableName();\n generateTemporaryTable(temporaryTableName, inReplacement.getItems(), sqlP);\n temporaryTableNames.add(temporaryTableName);\n }\n }\n\n return createEntityListIterator(sqlP, sql, nonNullFindOptions, modelEntity, selectFields, whereEntityConditionParams, havingEntityConditionParams, temporaryTableNames);\n }", "@Override\n protected Iterator<? extends Map<String, AttributeValue>> nextIterator(final int count) {\n if (count == 1) {\n return currentResult.getItems().iterator();\n }\n // subsequent chained iterators will be obtained from dynamoDB\n // pagination\n if ((currentResult.getLastEvaluatedKey() == null)\n || currentResult.getLastEvaluatedKey().isEmpty()) {\n return null;\n } else {\n request.setExclusiveStartKey(currentResult.getLastEvaluatedKey());\n currentResult = dynamoDBClient.query(request);\n return currentResult.getItems().iterator();\n }\n }", "Observable<Page<E>> search(C criteria);", "public IterableIterator<T> select(String predicate);", "@Override\r\n\tpublic Iterator createIterator() {\n\t\treturn bestSongs.values().iterator();\r\n\t}", "Iterator<K> iterator();", "public QueryIterable<T> where(\n final Func2<Boolean, T> predicate\n ) {\n return Query.where(iterable, predicate);\n }", "@Override\r\n\tpublic List<Criterion> getCriterions(ParamCondition paramCondition) {\n\t\tList<Criterion> criterions = new ArrayList<Criterion>();\r\n\t\treturn criterions;\r\n\t}", "@Override\n\tpublic boolean hasNext() {\n\t\tthis.res = new Row();\n\t\ttry{\n\t\t\twhile(index < dataCopy.size()){\n\t\t\t\tdata2 = dataCopy.get(index++);\t\t\t\t\t\t\t\n\t\t\t\tif(whereExp != null && !eval1.eval(whereExp).toBool()) continue;\t\n\t\t\t\t\n\t\t\t\tTableContainer.orderByData.add(new Row());\n\t\t\t\tfor(PrimitiveValue v : data2.rowList)\n\t\t\t\t\tTableContainer.orderByData.get(count).rowList.add(v);\t\n\t\t\t\tcount++;\n\t\t\t\n\t\t\t\t/*if the query is SELECT * FROM R*/\n\t\t\t\tif(flag2){\n\t\t\t\t\tres = data2;\n\t\t\t\t}else{\n\t\t\t\t\t/*if it is the regular query*/\n\t\t\t\t\tfor (int i = 0; i < itemLen; i++) res.rowList.add(eval1.eval((selectItemsExpression.get(i))));\n\t\t\t\t}\n\t\t\t\treturn true;\t\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "public Map<String, Object> getPeople(Map<String, Object> conditions) {\n String dwdm = conditions.get(\"dwdm\").toString();\n StringBuffer sql = new StringBuffer(50);\n sql.append(\"select * from JM_DUTY a where 1 = 1 and xgsj in (select max(xgsj) from jm_duty where zbrbmbh='\" + dwdm + \"')\");\n//\t\tSet<Entry<String, Object>> set = conditions.entrySet();\n//\t\tIterator<Entry<String, Object>> it = set.iterator();\n//\t\t\tEntry<String, Object> entry = it.next();\n//\t\t\tString key = entry.getKey();\n//\t\t\tString value = (String) entry.getValue();\n Map<String, Object> map = findPageForMap(sql.toString(),\n Integer.parseInt(conditions.get(\"page\").toString()),\n Integer.parseInt(conditions.get(\"rows\").toString()));\n //Map<String, Object> map = findPageForMap(sql.toString(),1,20);\n return map;\n }", "static DiscreteDoubleMap2D ifThenElse(DiscretePredicate2D condition, DiscreteDoubleMap2D thenMap, DiscreteDoubleMap2D elseMap) {\r\n\t\treturn (x, y) -> {\r\n\t\t\tif(condition.test(x, y))\r\n\t\t\t\treturn thenMap.getValueAt(x, y);\r\n\t\t\telse\r\n\t\t\t\treturn elseMap.getValueAt(x, y);\r\n\t\t};\r\n\t}", "public Iterator<Map<String, Object>> iterate(Filter filter)\n\t\t\tthrows ConnectorException, UnsupportedOperationException {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"===== Iterate ====\");\n\t\t}\n\n\t\tit = null;\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"Iterator \" + filter + \">\");\n\t\t}\n\n\t\ttry {\n\t\t\t_filter = filter;\n\t\t\tit = new ArrayList<Map<String, Object>>(getObjectsMap().values())\n\t\t\t\t\t.iterator();\n\t\t} catch (Exception e) {\n\t\t\tif (isDebug == true) {\n\t\t\t\tlog.debug(\"Exception occured Interator\" + e + \">\");\n\t\t\t}\n\t\t\tthrow new ConnectorException(\"ERRO AO LER AO UTILIZAR O INTERATE\");\n\t\t}\n\n\t\treturn new PagingIterator(it);\n\n\t}", "@NotNull\r\n default List<Object> getMatchingElements(@NotNull Condition c) {\r\n return new ArrayList<>();\r\n }", "static <K extends Comparable<? super K>, V> Iterator<Map.Entry<K, V>> createWithBounds(\n @Nullable Node<K, V> root,\n @Nullable K pFromKey,\n boolean pFromInclusive,\n @Nullable K pToKey,\n boolean pToInclusive) {\n if (root == null) {\n return Collections.emptyIterator();\n } else {\n return new EntryInOrderIterator<>(root, pFromKey, pFromInclusive, pToKey, pToInclusive);\n }\n }", "static <K extends Comparable<? super K>, V> Iterator<Map.Entry<K, V>> createWithBounds(\n @Nullable Node<K, V> root,\n @Nullable K pFromKey,\n boolean pFromInclusive,\n @Nullable K pToKey,\n boolean pToInclusive) {\n if (root == null) {\n return Collections.emptyIterator();\n } else {\n return new DescendingEntryInOrderIterator<>(\n root, pFromKey, pFromInclusive, pToKey, pToInclusive);\n }\n }", "public Iterator iterator()\n {\n // optimization\n if (OldOldCache.this.isEmpty())\n {\n return NullImplementation.getIterator();\n }\n\n // complete entry set iterator\n Iterator iter = instantiateIterator();\n\n // filter to get rid of expired objects\n Filter filter = new Filter()\n {\n public boolean evaluate(Object o)\n {\n Entry entry = (Entry) o;\n boolean fExpired = entry.isExpired();\n if (fExpired)\n {\n OldOldCache.this.removeExpired(entry, true);\n }\n return !fExpired;\n }\n };\n\n return new FilterEnumerator(iter, filter);\n }", "<C, PM> IteratorExp<C, PM> createIteratorExp();", "private Iterator getEntries(){\r\n\t\tSet entries = items.entrySet();\r\n\t\treturn entries.iterator();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate Iterator<IValue> getIterator(Context context, Object src) {\n\t\tif (src instanceof IIterable) \n\t\t\treturn ((IIterable<IValue>) src).getIterable(context).iterator();\n\t\telse if(src instanceof Iterable)\n\t\t\treturn ((Iterable<IValue>)src).iterator();\n\t\telse if(src instanceof Iterator)\n\t\t\treturn (Iterator<IValue>)src;\n\t\telse\n\t\t\tthrow new InternalError(\"Should never get there!\");\n\t}", "@Override\r\n\tpublic List<Profit> get(Map<String, String> condition) throws Exception {\n\t\t\r\n\t\treturn null;\r\n\t}", "public abstract Iterator<E> createIterator();", "public QueryIterable<T> where(\n final Predicate<T> predicate\n ) {\n return Query.where(iterable, predicate);\n }", "public native IterableIterator<Tuple<K, V>> entries();", "public List<EvaluetingListDO> findWithCondition(EvaluetingListDO evaluetingList, long limitStart, long pageSize) throws DataAccessException;", "@Override\n public Iterator<Pair<K, V>> iterator() {\n return new Iterator<Pair<K, V>>() {\n private int i = 0, j = -1;\n private boolean _hasNext = true;\n\n @Override\n public boolean hasNext() {\n return _hasNext;\n }\n\n @Override\n public Pair<K, V> next() {\n Pair<K, V> r = null;\n if (j >= 0) {\n List<Pair<K, V>> inl = l.get(i);\n r = inl.get(j++);\n if (j > inl.size())\n j = -1;\n }\n else {\n for (; i < l.size(); ++i) {\n List<Pair<K, V>> inl = l.get(i);\n if (inl == null)\n continue;\n r = inl.get(0);\n j = 1;\n }\n }\n if (r == null)\n _hasNext = false;\n return r;\n }\n };\n }", "private Collection<Object> getOrderedTestNamesByCondition(String condition,String labId)\n {\n ArrayList<Object> dtList = null;\n HashMap<Object,Object> ofMap = null;\n if(cachedConditionCdFacilityList != null)\n {\n ofMap = (HashMap<Object,Object>) cachedConditionCdFacilityList.get(condition);\n\n if (ofMap != null)\n dtList = (ArrayList<Object> ) ofMap.get(labId);\n\n }\n return dtList;\n }", "default Collection<ItemStack> getContentsMatching(Predicate<ItemStack> predicate) {\n\t\treturn this.getContents().values().stream().filter(predicate).collect(Collectors.toList());\n\t}", "@Override\n public Iterator<Entry<Integer, T>> iterator() {\n List<Entry<Integer, T>> pairs = new ArrayList<Entry<Integer, T>>(count);\n\n for(int i = 0; i < count; i++) {\n pairs.add(new MapEntry<T>(extractKey(buckets[i]), (T)data[i]));\n }\n\n return pairs.iterator();\n }", "@Override\n public PaymentP2007_03 where(Collection<? extends Condition> conditions) {\n return where(DSL.and(conditions));\n }", "public Iterable<Object> getObjects(String key);", "public DbIterator iterator() {\n // some code goes here\n ArrayList<Tuple> tuples = new ArrayList<Tuple>();\n for (Field key : m_aggregateData.keySet()) {\n \tTuple nextTuple = new Tuple(m_td);\n \tint recvValue;\n \t\n \tswitch (m_op) {\n \tcase MIN: case MAX: case SUM:\n \t\trecvValue = m_aggregateData.get(key);\n \t\tbreak;\n \tcase COUNT:\n \t\trecvValue = m_count.get(key);\n \t\tbreak;\n \tcase AVG:\n \t\trecvValue = m_aggregateData.get(key) / m_count.get(key);\n \t\tbreak;\n \tdefault:\n \t\trecvValue = setInitData(); // shouldn't reach here\n \t}\n \t\n \tField recvField = new IntField(recvValue);\n \tif (m_gbfield == NO_GROUPING) {\n \t\tnextTuple.setField(0, recvField);\n \t}\n \telse {\n \t\tnextTuple.setField(0, key);\n \t\tnextTuple.setField(1, recvField);\n \t}\n \ttuples.add(nextTuple);\n }\n return new TupleIterator(m_td, tuples);\n }", "@Override\n\tpublic Tuple next(){\n\t\tif(!child.from.equals(whereTablePredicate)){\n\t\t\treturn child.next();\n\t\t}\n\t\tTuple tmp = child.next();\n\t\twhile(tmp != null){\n\t\t\tfor (int i = 0; i < tmp.getAttributeList().size(); i++){\n\t\t\t\tif(tmp.getAttributeName(i).equals(whereAttributePredicate)){\n\t\t\t\t\tif(tmp.getAttributeValue(i).equals(whereValuePredicate)){\n\t\t\t\t\t\treturn tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttmp = child.next();\n\t\t}\n\t\treturn tmp;\n\t}", "public Iterable<K> keys(K lo, K hi);", "@SuppressWarnings(\"unchecked\")\n protected List<T> findByCriteria(Criterion... criterions)\n {\n Criteria crit = session.createCriteria(getPersistentClass());\n\n for (Criterion c : criterions)\n crit.add(c);\n\n return crit.list();\n }", "BooleanIterator iterator(int startIndex);", "public interface StateConditionTestIterable extends StateConditionTest, Iterable<State> {\n\t/*\n\t * This method is used to set the state context to enumerate over states.\n\t * This is useful because typically a state test is independent of other state objects\n\t * and calling this method can be used to set the context of those variables and over which to enumerate\n\t */\n\tpublic void setStateContext(State s); \n}", "public IterableIterator<T> queryByExample(T obj);", "@Test\n public void testCoh3710_entrySetFilter()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n Iterator iter = cache.entrySet(AlwaysFilter.INSTANCE).iterator();\n validateIndex(cache);\n\n assertFalse(iter.hasNext());\n }\n });\n }", "@Nonnull \r\n\tpublic static <T> Observable<T> doWhile(\r\n\t\t\t@Nonnull final Observable<? extends T> source, \r\n\t\t\t@Nonnull final Func0<Boolean> condition) {\r\n\t\treturn new Repeat.DoWhile<T>(source, condition);\r\n\t}", "@Override\n public PaymentP2007_03 where(Condition... conditions) {\n return where(DSL.and(conditions));\n }", "public static <T> Collection<T> extractElementsSuch(Collection<T> collection, Condition<T> condition) {\n \tCollection<T> ret = compatibleWith(collection);\n\n \tfor (T element : collection) {\n\t\t\tif(condition.isTrueFor(element)) ret.add(element);\n\t\t}\n \treturn ret;\n\t}", "@VisibleForTesting\n public Iterator<Entry<ClientRequest, CacheEntry>> iterator() {\n return map.entrySet().iterator();\n }", "public Iterator <item_t> iterator () {\n return new itor ();\n }", "public java.util.Iterator iteratorSupplier()\n // -end- 335C0D7A02E4 get_all_head327A646F00E6 \"Dependency::iteratorSupplier\"\n ;", "protected abstract Iterable<E> getIntersecting(D lower, D upper);", "IteratorExp createIteratorExp();", "Iterator<T> iterator();", "public static List<Handset> search(Map<String, String> reqParam) {\n\n\t\tList<Handset> temp = new ArrayList<Handset>();\n\t\ttemp.addAll(cache.values());\n\n\t\tfor (String param : reqParam.keySet()) {\n\t\t\tString val = (String) reqParam.get(param);\n\n\t\t\tswitch (param) {\n\t\t\tcase \"priceEur\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getPriceEur() == Integer.parseInt(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"sim\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getSim().toLowerCase().contains(val.toLowerCase()))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"announceDate\": {\n\t\t\t\ttemp = temp.stream().filter(handset -> handset.getRelease().getAnnounceDate().equalsIgnoreCase(val))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\ttemp = new ArrayList<Handset>();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"filtered handset size \" + temp.size());\n\t\treturn temp;\n\n\t}", "public Iterator<Clause> iterator(PredicateLiteralDescriptor predicate, boolean isPositive);", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "public static <T> Observable<T> whileDo(\r\n\t\t\t@Nonnull final Observable<? extends T> source, \r\n\t\t\t@Nonnull final Func0<Boolean> condition) {\r\n\t\treturn new Repeat.WhileDo<T>(source, condition);\r\n\t}", "static <K extends Comparable<? super K>, V> Iterator<Map.Entry<K, V>> create(\n @Nullable Node<K, V> root) {\n if (root == null) {\n return Collections.emptyIterator();\n } else {\n return new EntryInOrderIterator<>(\n root, null, /* pLowInclusive= */ false, null, /* pHighInclusive= */ false);\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n public Iterator<Tuple<T>> iterator() {\n Iterator<Tuple<T>> fi = (Iterator<Tuple<T>>) new FilteredIterator<T>(resultTable.iterator(), filterOn);\r\n return fi;\r\n }", "public Iterator<V> Values(){\n\treturn new Iterator<V>() {\n\t int iteratorbucket = 0;\n\t Iterator<MyEntry> itr = table[iteratorbucket].iterator();\n\t int nextCount = 0;\n\n\t public boolean hasNext() {\n\t // can just check nextCount and size\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }\n\n\t public V next() {\n\t // if my hasNext() is false, I should throw a NoSuchElementException\n\t if(hasNext()==false) {\n\t \tthrow new NoSuchElementException();\n\t }\n\t // while itr.hasNext() is false, increment bucket and get the next iterator\n\t while(itr.hasNext()==false) {\n\t \titeratorbucket++;\n\t \titr=table[iteratorbucket].iterator();\n\t }\n\t // now increment nextCount and return the key from the item itr.next() returns\n\t \tnextCount++;\n\t \treturn itr.next().value;\n\t \n\t }\n\n\t public void remove() {\n\t // just ask itr to remove, but I need to update my size and nextCount\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }\n\t };\n }", "Condition in(QueryParameter parameter, Object... values);", "default DiscreteSet2D pointsSatisfying(DoublePredicate condition) {\r\n\t\treturn (x, y) -> condition.test(getValueAt(x, y));\r\n\t}", "Iterable<K> findKeysForValue(V val);", "private static void forAllCheck(String condition, HashMap<String, Object> preParams, HashMap<String, Object> postParams, HashMap<String, Object> preFields, HashMap<String, Object> postFields, Object result) throws ContractException {\n //This is the generalised looped post check, which changes depends on who called it.\n loopedCheck(condition, preParams, postParams, preFields, postFields, result, false, \"ForAll(Post)\");\n }", "public Iterator iterate(QueryParameters queryParameters, EventSource session)\n \t\t\tthrows HibernateException {\n \n \t\tboolean stats = session.getFactory().getStatistics().isStatisticsEnabled();\n \t\tlong startTime = 0;\n \t\tif ( stats ) startTime = System.currentTimeMillis();\n \n \t\ttry {\n-\n-\t\t\tPreparedStatement st = prepareQueryStatement( queryParameters, false, session );\n-\t\t\tResultSet rs = getResultSet( st, queryParameters.hasAutoDiscoverScalarTypes(), false, queryParameters.getRowSelection(), session );\n+\t\t\tfinal ResultSet rs = executeQueryStatement( queryParameters, false, session );\n+\t\t\tfinal PreparedStatement st = (PreparedStatement) rs.getStatement();\n \t\t\tHolderInstantiator hi = HolderInstantiator.createClassicHolderInstantiator(holderConstructor, queryParameters.getResultTransformer());\n \t\t\tIterator result = new IteratorImpl( rs, st, session, queryParameters.isReadOnly( session ), returnTypes, getColumnNames(), hi );\n \n \t\t\tif ( stats ) {\n \t\t\t\tsession.getFactory().getStatisticsImplementor().queryExecuted(\n \t\t\t\t\t\t\"HQL: \" + queryString,\n \t\t\t\t\t\t0,\n \t\t\t\t\t\tSystem.currentTimeMillis() - startTime\n \t\t\t\t\t);\n \t\t\t}\n \n \t\t\treturn result;\n \n \t\t}\n \t\tcatch ( SQLException sqle ) {\n \t\t\tthrow getFactory().getSQLExceptionHelper().convert(\n \t\t\t\t\tsqle,\n \t\t\t\t\t\"could not execute query using iterate\",\n \t\t\t\t\tgetSQLString()\n \t\t\t\t);\n \t\t}\n \n \t}", "public SearchingIterator getIterator(Object key)\r\n\t{\r\n\t\tSearchingIterator x = new SearchingIterator(key); \r\n\t\treturn x; \r\n\t}", "private Criteria buildCriteria(Map<String, ?> fieldValues) {\r\n Criteria criteria = new Criteria();\r\n for (Iterator i = fieldValues.entrySet().iterator(); i.hasNext();) {\r\n Map.Entry<String, Object> e = (Map.Entry<String, Object>) i.next();\r\n\r\n String key = e.getKey();\r\n Object value = e.getValue();\r\n if (value instanceof Collection) {\r\n criteria.addIn(key, (Collection) value);\r\n } else {\r\n criteria.addEqualTo(key, value);\r\n }\r\n }\r\n\r\n return criteria;\r\n }", "public Iterator iterator()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n try\r\n {\r\n return new CompositeIterator(new Iterator[] { \r\n spaceMgr.makeComponentSpaceIterator(),\r\n spaceMgr.makeHistorySpaceIterator() });\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "public interface ICondition\n{\n\n /**\n * called when we are sure we are done with this condition\n */\n public void dispose();\n\n /**\n * attempt to clone this condition before it will be bound in the\n * instantiation phase. We pass the current bindings so that the condition can\n * do an early rejection if possible.\n * \n * @param model\n * @param variableBindings\n * @return a writable copy of the condition that will be bound\n * @throws CannotMatchException\n * if there is no way this condition can be matched\n */\n public ICondition clone(IModel model, Map<String, Object> variableBindings)\n throws CannotMatchException;\n\n /**\n * Iteratively perform the resolution and binding for this condition. If this\n * condition defines any variables, they are placed into the bindings map for\n * other conditions to exploit. Similarly, it will resolve any bindings that\n * it needs in order to be matched. If at any point the condition determines\n * that it cannot be matched, the exception is to be thrown. Similarly, if\n * isIterative is false, and there are unresolved bindings, the exception\n * should be thrown. <br>\n * Otherwise, the number of unresolved bindings is returned which allows the\n * instantiation calculation determine if another resolution round is\n * required.\n * \n * @return number of unresolved variables\n */\n public int bind(IModel model, Map<String, Object> variableBindings,\n boolean isIterative) throws CannotMatchException;\n}", "static <K extends Comparable<? super K>, V> Iterator<Map.Entry<K, V>> create(\n @Nullable Node<K, V> root) {\n if (root == null) {\n return Collections.emptyIterator();\n } else {\n return new DescendingEntryInOrderIterator<>(\n root, null, /* pLowInclusive= */ false, null, /* pHighInclusive= */ false);\n }\n }", "public Iterable<Key> iterator() {\n Queue<Key> queue = new LinkedList<>();\n inorder(root, queue);\n return queue;\n }", "List<RiceCooker> getByFilter(String keySearch, String brands, Double priceFrom, Double priceTo,\n\t\t\tlong startRow, long maxRows);", "public InnerMultiMapCollectors setCondition(String keyFeildName, String valueFeildName, Iterable<E> elements) {\r\n\t\treturn new InnerMultiMapCollectors(this.setKeyFunction(keyFeildName), this.setValueFunction(valueFeildName),\r\n\t\t\t\telements);\r\n\t}", "public Iterator<V> get(final K key, final int startIndex, final int endIndex) {\n throwIfNullKey(key);\n if (startIndex < 0) {\n throw new IndexOutOfBoundsException(\"negative indices are not supported\");\n }\n if (startIndex > endIndex) {\n throw new IndexOutOfBoundsException(\"start index exceeds end index\");\n }\n final int count = getCount(key);\n if (count < endIndex) {\n throw new IndexOutOfBoundsException(\"end index \" + endIndex + \" requested but there \"\n + (count == 1 ? \"is\" : \"are\") + \" \" + count + \" \" + (count == 1 ? \"entry\" : \"entries\"));\n }\n return new FCOneToManyRelationIterator<>(associationMap, key, startIndex, endIndex);\n }", "List<Product> queryProductListBySearch(@Param(\"productCondition\") Product productCondition, \n\t\t\t@Param(\"rowIndex\") int rowIndex, @Param(\"pageSize\") int pageSize);", "public static Iterator buildIterator(Object[] paramArrayOfObject, int paramInt1, int paramInt2)\n/* */ {\n/* 113 */ if ((paramArrayOfObject == null) || (paramInt1 >= paramInt2)) {\n/* 114 */ return EMPTY_ITERATOR;\n/* */ }\n/* 116 */ return new ArrayRangeIterator(paramArrayOfObject, paramInt1, paramInt2);\n/* */ }", "Conditions getConditions();", "default <K> List<Condition> composeFilterConditionsForPrimaryKeyOfEntity(T entity) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tfor (Attribute<T, ?> attr : getPrimaryAttributes()) {\n\t\t\tconditions.add(Condition.eq(attr, attr.getValue(entity)));\n\t\t}\n\t\treturn conditions;\n\t}", "public SearchCondition[] getConditions();", "List<PortEntity> getPorts(Map<String, Object> condition);", "default Iterator<T> iterator(ResultSet rs) {\r\n\t\treturn new ResultSetIterator<>(rs, this);\r\n\t}", "@Override\n public Iterator<Value> iterator()\n {\n return values.iterator();\n }", "@Override\n\tpublic List<DayTradingPo> selectDayTradingByPageByCondition(DayTradingQuery dayTradingQuery) {\n List<DayTradingPo> dayTradings = dayTradingMapper.selectDayTradingByPageByCondition(dayTradingQuery);\n\t\treturn dayTradings;\n\t}", "Iterator<T> iterator(int start, int limit);", "public List<Map<String, Object>> searchDBTableDate(String condition) {\n log.info(new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").format(new Date()) + \"search db table data\");\n// TrafferCurrentDB();\n List<Map<String, Object>> list = queryMap(condition);\n if (StringUtils.isEmpty(list)) {\n throw new SQLException(SQLError, SQLError);\n }\n if (list.size() == 0) {\n List<String> tableNameList = (List<String>) session.getAttribute(\"list\");\n String DBName = (String) session.getAttribute(\"dbName\");\n tableNameList.forEach(\n tableName -> {\n if (condition.contains(tableName)) {\n queryMap(\n \"SELECT column_name FROM information_schema.columns WHERE table_name='\" + dbNameTrim(tableName) + \"' And table_schema='\" + dbNameTrim(DBName) + \"'\").forEach(\n stringObjectMap -> {\n if (!list.contains(stringObjectMap)) {\n list.add(stringObjectMap);\n }\n }\n );\n }\n }\n );\n\n }\n return list;\n }", "public Iterator<Item> iterator() { return new RandomIterator();}", "public Iterator iterator ( ) {\n\t\tArrayList<String> it= new ArrayList();\n\t\tfor(Map.Entry<String, String> i : pwds.entrySet()) {\n\t\t\tit.add(pwds.get(i));\n\t\t\tit.add(salts.get(i));\n\t\t}\n\t\treturn it.iterator();\n\t}", "public List<KeyType> getPrimaryKeyCollection(String condition) {\r\n Session session = getSession();\r\n List<KeyType> lst = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n condition = \" \";\r\n }\r\n ClassMetadata cm = sessionFactory.getClassMetadata(getPersistentClass().getName());\r\n String type = cm.getIdentifierPropertyName();\r\n lst = session.createQuery(\"select t.\" + type + \" from \" + getPersistentClass().getName() + \" t\" + \" \" + condition).list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getPrimaryKeyCollection Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return lst;\r\n }", "public void and(Condition c){\n result.retainAll(c.result);\n Collections.sort(result);\n }", "Iterator<E> iterator();", "Iterator<E> iterator();", "public Iterator getValues() {\n synchronized (values) {\n return Collections.unmodifiableList(new ArrayList(values)).iterator();\n }\n }", "public abstract PredicateExpr getNext();", "public DbIterator iterator() {\n // some code goes here\n if (gbfield == Aggregator.NO_GROUPING) {\n Type[] tp = new Type[1];\n tp[0] = Type.INT_TYPE;\n String[] fn = new String[1];\n fn[0] = aop.toString();\n TupleDesc td = new TupleDesc(tp, fn);\n Tuple t = new Tuple(td);\n t.setField(0, new IntField(gbCount.get(null)));\n ArrayList<Tuple> a = new ArrayList<>();\n a.add(t);\n return new TupleIterator(td, a);\n } else {\n Type[] tp = new Type[2];\n tp[0] = gbfieldtype;\n tp[1] = Type.INT_TYPE;\n String[] fn = new String[2];\n fn[0] = gbname;\n fn[1] = aop.toString();\n TupleDesc td = new TupleDesc(tp, fn);\n ArrayList<Tuple> a = new ArrayList<>();\n for (Field f : gbCount.keySet()) {\n Tuple t = new Tuple(td);\n t.setField(0, f);\n t.setField(1, new IntField(gbCount.get(f)));\n a.add(t);\n }\n return new TupleIterator(td, a);\n }\n }", "public DbIterator iterator() {\n \t\tArrayList<Tuple> tuples = new ArrayList<Tuple>(); //tuples to return\n TupleDesc desc;\n String[] names;\n\t \tType[] types;\n\t \t// these will be the TupleDesc to return\n\t \tif (gbfield == Aggregator.NO_GROUPING){\n\t \t\tnames = new String[] {\"aggregateVal\"};\n\t \t\ttypes = new Type[] {Type.INT_TYPE};\n\t \t} else {\n\t \t\tnames = new String[] {\"groupVal\", \"aggregateVal\"};\n\t \t\ttypes = new Type[] {gbfieldtype, Type.INT_TYPE};\n\t \t}\n\t \tdesc = new TupleDesc(types, names);\n\t \t\n\t \tTuple toAdd;\n\t \t// iterate over the GROUP BY entries and make the tuples\n\t \tIterator<Map.Entry<Field, Integer>> it = gbcount.entrySet().iterator();\n\t \tMap.Entry<Field, Integer> nextfield;\n\t \tint aggregateVal = 0;\n\t \twhile(it.hasNext()) {\n\t \t\tnextfield = it.next();\n\t \t\taggregateVal = nextfield.getValue();\n\t \t\ttoAdd = new Tuple(desc);\n\t \t\tif(gbfield == Aggregator.NO_GROUPING) {\n\t \t\t\ttoAdd.setField(0, new IntField(aggregateVal));\n\t \t\t} else {\n\t \t\t\ttoAdd.setField(0, nextfield.getKey());\n\t \t\t\ttoAdd.setField(1, new IntField(aggregateVal));\n\t \t\t}\n\t \t\ttuples.add(toAdd);\n\t \t}\n\t \treturn new TupleIterator(desc, tuples);\n }", "@Override\n public Iterator<NFetchMode> iterator() {\n return Arrays.asList(all).iterator();\n }", "@Override\n\tpublic List<Order> getList(String[] conditions) {\n\t\treturn null;\n\t}", "public SequenceIterator iterate(final XPathContext context) throws XPathException {\n SequenceIterator base = operand.iterate(context);\n ItemMappingFunction converter = new ItemMappingFunction() {\n public Item map(Item item) throws XPathException {\n return ((AtomicValue)item).convert(requiredPrimitiveType, context);\n }\n };\n return new ItemMappingIterator(base, converter);\n }", "public List<FFileInputDO> findByCondition(FFileInputDO FFileInput, long limitStart, long pageSize) throws DataAccessException;", "@Test\n public void testIterator() {\n this.sPQ.insert(\"a\");\n this.sPQ.insert(\"b\");\n this.sPQ.insert(\"c\");\n this.sPQ.insert(\"d\");\n this.sPQ.insert(\"e\");\n\n \n Iterator<String> iter = this.sPQ.iterator();\n assertEquals(\"a\", iter.next());\n assertTrue(iter.hasNext());\n assertEquals(\"b\", iter.next());\n assertEquals(\"c\", iter.next());\n assertEquals(\"d\", iter.next());\n assertTrue(iter.hasNext());\n assertEquals(\"e\", iter.next());\n assertFalse(iter.hasNext());\n }", "public SearchQuery<?, ?> condition(SearchCondition condition) {\n initSearch();\n BeanInfo searchMetaData = Beans.getBeanInfo(searchRecordTypeDesc.getSearchBasicClass());\n String fieldName = Beans.toInitialLower(condition.getFieldName());\n PropertyInfo propertyInfo = searchMetaData.getProperty(fieldName);\n\n if (propertyInfo != null) {\n Object searchField = processConditionForSearchRecord(searchBasic, condition);\n Beans.setProperty(searchBasic, fieldName, searchField);\n } else {\n SearchFieldOperatorName operatorQName = new SearchFieldOperatorName(condition.getOperatorName());\n String dataType = operatorQName.getDataType();\n SearchFieldType searchFieldType;\n try {\n searchFieldType = SearchFieldOperatorType.getSearchFieldType(dataType);\n } catch (UnsupportedOperationException e) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.invalidDataType(dataType));\n }\n\n Object searchField = processCondition(searchFieldType, condition);\n customFieldList.add(searchField);\n }\n\n return this;\n }", "default E find(String key, Object value) {\n\t\tSearchCritera searchCritera = new SearchCritera(key, value);\n\t\treturn find(() -> searchCritera);\n\t}" ]
[ "0.5528109", "0.54889095", "0.51243263", "0.49070707", "0.47870177", "0.47486165", "0.46798262", "0.46716508", "0.46403146", "0.45790064", "0.4561077", "0.45496464", "0.45382166", "0.45366618", "0.4509135", "0.45063353", "0.45042482", "0.44092584", "0.43990338", "0.43864518", "0.43860036", "0.43755642", "0.43744707", "0.43679518", "0.43403885", "0.43268964", "0.42961654", "0.42924076", "0.42881784", "0.42687637", "0.42664388", "0.4254852", "0.42463988", "0.4238887", "0.42387182", "0.42374244", "0.42353958", "0.42335024", "0.42262864", "0.41996062", "0.41653305", "0.41639316", "0.41496125", "0.4149283", "0.4148748", "0.41483164", "0.4145668", "0.41447333", "0.41394728", "0.41392472", "0.41327488", "0.41324955", "0.41307044", "0.41290987", "0.41249806", "0.41215616", "0.41161647", "0.4103526", "0.41016173", "0.40840855", "0.40814477", "0.40670288", "0.40587872", "0.40574288", "0.40574205", "0.40532118", "0.4050096", "0.4041196", "0.4035713", "0.4031284", "0.4028756", "0.40271947", "0.40184283", "0.40156356", "0.40133986", "0.40128326", "0.40113038", "0.40096828", "0.40059444", "0.40046585", "0.4004449", "0.40031296", "0.39962354", "0.39945152", "0.3981528", "0.39803103", "0.39785963", "0.39785", "0.39785", "0.39758885", "0.39758542", "0.39679527", "0.39577833", "0.39557478", "0.3955164", "0.39519447", "0.39459905", "0.39446753", "0.39424148", "0.3939289" ]
0.5033964
3
Provide a count of the number of documents that match each of the requested conditions.
List<Integer> getCounts(SearchQuery... conditions);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTravelGroupListCount(Map conditions);", "int findCountByCriteria(String eCriteria, Object... parameters);", "int getAndConditionGroupsCount();", "public int count(T instance, M matchCondition);", "int getCountForConditionCompany(Long companyId);", "int countByExample(CfgSearchRecommendExample example);", "public int searchRowsCount(SearchCriteria cri);", "public String getCount() {\r\n \t\r\n \tBoolean anyAges = Boolean.FALSE;\r\n \tBoolean anyAssayTypes = Boolean.FALSE;\r\n \tint count = 0;\r\n \t\r\n \tfor (String age: ages) {\r\n \t\tif (age.endsWith(\"ANY\")) {\r\n \t\t\tanyAges = Boolean.TRUE;\r\n \t\t}\r\n \t}\r\n \t\r\n \tfor (String type: assayTypes) {\r\n \t\tif (type.equals(\"ANY\")) {\r\n \t\t\tanyAssayTypes = Boolean.TRUE;\r\n \t\t}\r\n \t}\r\n \t\r\n \t// No Restrictions on Ages or AssayTypes, count everything\r\n \tif (anyAssayTypes && anyAges) {\r\n \tcount = record.getPairs().size(); \t\t\r\n \t}\r\n \t\r\n \t// There are restrictions on ages only, iterate and count appropriately.\r\n \t\r\n \telse if (anyAssayTypes) {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String age: ages) {\r\n \t\t\t\tif (pair.getAge().equals(age)) {\r\n \t\t\t\t\tcount ++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \t// There are restrictions on assayTypes only, iterate and count appropriately.\r\n \t\r\n \telse if (anyAges) {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String type: assayTypes) {\r\n \t\t\t\tif (pair.getAssayType().equals(type)) {\r\n \t\t\t\t\tcount ++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \telse {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String type: assayTypes) {\r\n \t\t\t\tfor (String age: ages) {\r\n \t\t\t\t\tif (pair.getAssayType().equals(type) && pair.getAge().equals(age)) {\r\n \t\t\t\t\t\tcount ++;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n\r\n \treturn \"\" + count;\r\n \t\r\n }", "int getConditionalResponsesCount();", "int getDocumentCount();", "@GetMapping(\"/docentes/count\")\n public ResponseEntity<Long> countDocentes(DocenteCriteria criteria) {\n log.debug(\"REST request to count Docentes by criteria: {}\", criteria);\n return ResponseEntity.ok().body(docenteQueryService.countByCriteria(criteria));\n }", "@Override\n\tpublic int numOfCondition() {\n\t\tint sum=0;\n\t\t\n\t\tfor(Cond cond:this.conditions)\n\t\t{\n\t\t\tint sum0 = 1;\n\t\t\tif(cond.params.size()>0)\n\t\t\t{\n\t\t\t\tfor(Param param:cond.params)\n\t\t\t\t{\n\t\t\t\t\tsum0 *= param.numOfCondition();\n\t\t\t\t}\n\t\t\t\tsum = sum + sum0;\n\t\t\t}\n\t\t\telse sum++;\n\t\t}\n\t\t\n\t\treturn sum;\n\t}", "@Override\n\tpublic int queryCount(Map<String, Object> condition) throws Exception {\n\t\treturn exWarehouseMapper.queryCount(condition);\n\t}", "int countByExample(BasicinfoCriteria example);", "public long findByConditionCount(FFileInputDO FFileInput) throws DataAccessException;", "int countByExample(ScheduleCriteria example);", "public int count(String condition) {\r\n Session session = getSession();\r\n Long count = null;\r\n try {\r\n if (condition == null || \"null\".equals(condition)) {\r\n condition = \" \";\r\n }\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \" + condition).uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }", "int countByExample(MVoucherDTOCriteria example);", "int countByExample(StudentCriteria example);", "public Long getCount(Filter filter);", "public abstract long countAllClinicalDocuments();", "int getResultsCount();", "int getResultsCount();", "Object countTAlgmntBussRules(SearchFilter<TAlgmntBussRule> searchFilter);", "int findAllCount() ;", "Object countTAlgmntBussRulesByTBussRuleConfig(SearchFilter<TBussRuleConfig> searchFilter);", "public int getConditionCount() {\n return this.conditions.size();\n }", "Long queryCount(ProductSearchParm productSearchParm);", "long countByFilter(String keySearch, String brands, Double priceFrom, Double priceTo);", "int countByExample(AdminUserCriteria example);", "int countByExample(AdminUserCriteria example);", "long countByExample(CmsChannelCriteria example);", "int getConditionalCasesCount();", "int countByExample(ItoProductCriteria example);", "public long count(Predicate<GameResult> filter) {\n return results.stream()\n .filter(filter)\n .mapToInt(GameResult::getCount)\n .sum();\n }", "@Override\n\tpublic long countAnyMatching(Optional<String> filter) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int findCounts(DetachedCriteria detachedCriteria) {\n\t\treturn scoreDao.findCounts(detachedCriteria);\n\t}", "long countByExample(EmailCriteria example);", "public int countDocuments(){\n try {\n ResultSet rs = stCountDocuments.executeQuery();\n\n int count = 0;\n\n while(rs.next()){\n count = rs.getInt(1);\n }\n rs.close();\n\n if(count<=0){\n System.out.println(\"There are no documents\");\n }\n\n return count;\n } catch(SQLException e){\n e.printStackTrace();\n }\n return 0;\n }", "long count(Specification<E> spec);", "int getRulesCount();", "@Override\n\tpublic int countBySearch(Params params) throws Exception {\n\t\treturn 0;\n\t}", "public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }", "@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic Long searchCountData(List<? extends SearchObject> searchCriteria) throws Exception {\n\t\treturn poDAO.searchCountData(searchCriteria);\n\t}", "@Transactional(readOnly = true)\n public long countByCriteria(CDocumentTypeCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<CDocumentType> specification = createSpecification(criteria);\n return cDocumentTypeRepository.count(specification);\n }", "long countSearchByCompanyName(Map<String, String> options);", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_APPROVATORE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Transactional(readOnly = true)\n public long countByCriteria(FactureCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Facture> specification = createSpecification(criteria);\n return factureRepository.count(specification);\n }", "int getRequestedValuesCount();", "@Override\n\tpublic int listCount(SearchCriteria scri) throws Exception {\n\t\treturn dao.listCount(scri);\n\t}", "@Override\n\tpublic String countByCondition(Familynames con) throws Exception {\n\t\treturn null;\n\t}", "public long countWithCondition(EvaluetingListDO evaluetingList) throws DataAccessException;", "public long countAllLots() throws MiddlewareQueryException;", "@Override\r\n\tpublic Integer countFiltering(Map<String, Object> map) {\n\t\treturn filteringMapper.countFiltering(map);\r\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PAPER);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "int getAnnotationFiltersCount();", "int countByExample(MEsShoppingCartDTOCriteria example);", "@Transactional(readOnly = true)\n public long countByCriteria(EducationalRecordCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EducationalRecord> specification = createSpecification(criteria);\n return educationalRecordRepository.count(specification);\n }", "Object countTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);", "@Transactional(readOnly = true)\n public long countByCriteria(AuditCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Audit> specification = createSpecification(criteria);\n return auditRepository.count(specification);\n }", "public int count() {\n return Query.count(iterable);\n }", "int countByExample(TbaDeliveryinfoCriteria example);", "long count(String query);", "long count(String query);", "@Transactional(readOnly = true)\n public long countByCriteria(ApiPermissionCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n createQueryWrapper(criteria);\n return apiPermissionRepository.selectCount(this);\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_VCMSPORTION);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public static int countReportAllBySQL(String filter) {\r\n\t\r\n\treturn reqDao.countReportAllBySQL(filter);\r\n\r\n}", "int selectCountByFilter( ResponseFilter filter, Plugin plugin );", "int findCount();", "public long countRecords();", "public String getCollectConditionForCount()\n\t{\n\t\tfor (int i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableGroup() > 0)\n\t\t\t{\n\t\t\t\treturn (\"COUNT(*)\") ;\n\t\t\t}\n\t\t}\n\t\t//#CM708973\n\t\t// Return '*' as all item acquisition when data is not set in the key value. \n\t\treturn null ;\n\n\t}", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public int countAll();", "public void counter(Object filterValue ) throws SQLException, NamingException, IOException {\n\t try {\t\n\t \tContext initContext = new InitialContext(); \n\t \t\tDataSource ds = (DataSource) initContext.lookup(JNDI);\n\t\n\t \t\tcon = ds.getConnection();\n\t \t\t\n\t \t\t//Reconoce la base de datos de conección para ejecutar el query correspondiente a cada uno\n\t \t\tDatabaseMetaData databaseMetaData = con.getMetaData();\n\t \t\tproductName = databaseMetaData.getDatabaseProductName();//Identifica la base de datos de conección\n\t \t\t\n\t \t\tString[] veccodcia = pcodcia.split(\"\\\\ - \", -1);\n\t\n\t \t\tString query = null;\n\t \t\t\n\t \t\tswitch ( productName ) {\n\t case \"Oracle\":\n\t \tquery = \"SELECT count_autos01('\" + ((String) filterValue).toUpperCase() + \"','\" + veccodcia[0] + \"','\" + grupo + \"') from dual\";\n\t break;\n\t case \"PostgreSQL\":\n\t \tquery = \"SELECT count_autos01('\" + ((String) filterValue).toUpperCase() + \"','\" + veccodcia[0] + \"','\" + grupo + \"')\";\n\t break;\n\t \t\t}\n\n\t \t\t \n\t\n\t \n\t pstmt = con.prepareStatement(query);\n\t //System.out.println(query);\n\t\n\t r = pstmt.executeQuery();\n\t \n\t \n\t while (r.next()){\n\t \trows = r.getInt(1);\n\t }\n\t } catch (SQLException e){\n\t e.printStackTrace(); \n\t }\n\t //Cierra las conecciones\n\t pstmt.close();\n\t con.close();\n\t r.close();\n\t\n\t \t}", "int countByExample(UserGiftCriteria example);", "int getNumberOfResults();", "@Override\n\tpublic int getCount(List<FieldValueCriteria> criteria)\n\t\t\tthrows DataAccessException {\n\t\treturn 0;\n\t}", "int getDetectionRulesCount();", "int getQueryItemsCount();", "int countByExample(ReviewLevelSettingExample example);", "Long getAllCount();", "long countByExample(FactRoomLogExample example);", "int getNumberOfDocuments();", "@Transactional(readOnly = true)\n public long countByCriteria(OssConfigCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n createQueryWrapper(criteria);\n return ossConfigRepository.selectCount(this);\n }", "@Override\r\n\t@Transactional\r\n\tpublic int getCount(List<Filter> filters){\r\n\t\ttry{\r\n\t\t\tString sql = \"select count(*) \"\r\n\t\t\t\t\t + \"from FmtEstado \";\r\n\t\t\t\r\n\t\t\tsql = sqlFunctions.completeSQL(null, filters, sql, FmtEstado.getColumnNames());\r\n\t\t\t\r\n\t\t\tQuery query = getSession().createQuery(sql);\r\n\t \r\n\t\t\t query=sqlFunctions.setParameters(filters, query);\r\n\t\t\t \r\n\t\t\tIterator it = query.list().iterator();\r\n\t Long ret = new Long(0);\r\n\t \r\n\t if (it != null)\r\n\t\t if (it.hasNext()){\r\n\t\t \tret = (Long) it.next();\r\n\t\t }\r\n\t \r\n\t\t\treturn ret.intValue();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int countMatching(Class clazz, Map<String, ?> fieldValues) {\r\n Criteria criteria = buildCriteria(fieldValues);\r\n\r\n return getPersistenceBrokerTemplate().getCount(QueryFactory.newQuery(clazz, criteria));\r\n }", "int countByExample(CptDataStoreExample example);", "private Long countRange(RequestData requestData) {\n javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();\n javax.persistence.criteria.Root<T> rt = cq.from(getEntityClass());\n cq.select(getEntityManager().getCriteriaBuilder().count(rt));\n javax.persistence.Query q = getEntityManager().createQuery(cq);\n return (Long) q.getSingleResult();\n }", "default long count() {\n\t\treturn select(Wildcard.count).fetchCount();\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(\n\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_ANSWER);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY, count);\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tfinderCache.removeResult(\n\t\t\t\t\t_finderPathCountAll, FINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "long count(Collection<? extends Object> values);" ]
[ "0.70493287", "0.6987408", "0.66857904", "0.66565204", "0.6643406", "0.64895415", "0.6484304", "0.6479639", "0.6457718", "0.6361185", "0.6322621", "0.63103455", "0.62916553", "0.62611306", "0.62497246", "0.6242646", "0.6227531", "0.6217969", "0.62140185", "0.62138975", "0.6169688", "0.61639714", "0.61639714", "0.614715", "0.6130809", "0.61278456", "0.6125604", "0.6104155", "0.61036265", "0.60853803", "0.60853803", "0.60599345", "0.60532105", "0.6051017", "0.60463524", "0.6043853", "0.60380304", "0.60356784", "0.6034776", "0.6031565", "0.60067976", "0.599305", "0.5992989", "0.5992133", "0.5979678", "0.59524244", "0.59511316", "0.5946114", "0.59404916", "0.59385705", "0.59308016", "0.5892909", "0.58849216", "0.5878821", "0.5878618", "0.5868707", "0.58601487", "0.58566755", "0.58382493", "0.5832799", "0.5819478", "0.58143675", "0.58117205", "0.58117205", "0.5809596", "0.5801624", "0.57921296", "0.5783751", "0.5772614", "0.57603264", "0.5757693", "0.5756761", "0.5756761", "0.5756761", "0.5756761", "0.5756761", "0.5756761", "0.5756761", "0.5756761", "0.5756761", "0.5756761", "0.5756761", "0.5754545", "0.57545173", "0.57490623", "0.57466424", "0.5743972", "0.5741427", "0.5741109", "0.57249886", "0.57127106", "0.571258", "0.5707823", "0.57072514", "0.5700544", "0.5699493", "0.5698239", "0.56963426", "0.56962204", "0.569299" ]
0.7474167
0
Constructor. Take the main controller and all the panel needed for displaying.
public MainWindow(MainController controller, JPanel roadMapPanel, JPanel deliveryOrderPanel, JPanel tourPanel, JPanel tourEditorPanel, JPanel currentInterectionDisplayPanel) { super(controller, "Optimod livraison - H4102"); MainPanel mainPanel = new MainPanel( controller, roadMapPanel, deliveryOrderPanel, tourPanel, tourEditorPanel, currentInterectionDisplayPanel ); jFrame.setLayout(new BorderLayout()); jFrame.add(mainPanel.getContentPane(), BorderLayout.CENTER); jFrame.setExtendedState(Frame.MAXIMIZED_BOTH); jFrame.pack(); jFrame.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainMenuPanel() {\n\t\tinitComponents();\n\t}", "public ControladorPanel() { }", "public mainLayoutController() {\n\t }", "public DashboardFrame() {\n WebLookAndFeel.install ();\n Controller = new Controller();\n initComponents();\n }", "public MainScreen(GproToolController controller) {\n this.baseController = controller;\n \n initComponents();\n centerFrame();\n }", "public MainWindow(Controller ctrl) { //constructor\r\n\t\t\r\n\t\tsuper(\"Physics Simulator\"); //pone de tutulo del JFrame Physics Simulator\r\n\t\t_ctrl = ctrl; //asigna el controler pasado por argumento\r\n\t\tinitGUI(); //inicia la gui\r\n\t\t\r\n\t}", "public AppoinmentPanel() {\n initComponents();\n }", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public MainFrame() {\n\t\tsuper(\"Contry Detail\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetPreferredSize(new Dimension(450, 300));\n\t\tsetResizable(false);\n\t\t\n\t\tinitComponents();\n\t\t\n\t\tcontroller = new Service(this);\n\t}", "public LoginPanel(Controller theController) {\n\t\tsuper();\n\t\tmyController = theController;\n\t\tusername = new JTextField();\n\t\tpassword = new JPasswordField();\n\t\tsubmit = new JButton(\"Login\");\n\t\tcreate();\n\t}", "public void init(MainPanel mainPanel);", "public IsingPlotController(){\n\t\tfullPanel = new JPanel();\n\t\tfullPanel.setLayout(new BorderLayout());\n\t\t\n\t\tJPanel headerPanel = new JPanel();\n\t\theaderPanel.setLayout(new BorderLayout());\n\t\theaderPanel.setBackground(Color.white);\n\t\tbackButton = new JButton(\"Back\");\n\t\theaderPanel.add(backButton,BorderLayout.WEST);\n\t\t\n\t\tthis.view = new ImagePanel();\n\t\t\n\t\tfullPanel.add(headerPanel,BorderLayout.NORTH);\n\t\tfullPanel.add(view);\n\t}", "public kinpanel() {\n initComponents();\n }", "public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "public ViewMain()\n\t{\n\t\tview = new View();\n\t\t\n\t\tcolors = new Color[20][10];\n\t\tfor(int i=0; i < 20; ++i)\n\t\t\tfor(int j=0; j < 10; ++j)\n\t\t\t\tcolors[i][j] = Color.DARK_GRAY;\n\t\t\n\t\tpanel = new BoardGamePanel(colors);\n\t\tpanel.setVisible(true);\n\t\t\n\t\tgameInfo = new GameInfo();\n\t\t\n\t\tactionListenner();\n\t\t\n\t}", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "public AdminMainView() {\n initComponents();\n setComponent(new SearchEmployeeView(), mainPanel);\n }", "public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }", "public MainFrameController() {\n }", "public DemoPanel() {\n }", "public AboutPanel() {\n super();\n initialize();\n }", "public Panel() {\n initComponents();\n\n\n }", "public PanelAmigo() {\n initComponents();\n \n }", "public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }", "public MainView() {\n initComponents();\n \n }", "public RaceBasePanel()\n\t{\n\t\tinitComponents();\n\t\tinitComponentContents();\n\t}", "public Panel() {\n }", "public JavaPanel() {\n\t\tsuper();\n\t}", "public DashBoardPanel() {\n initComponents();\n }", "public VentaMainView() {\n initComponents();\n controlador = new VentaController();\n this.setLocationRelativeTo(null);\n cargarCategorias();\n cargarArticulos();\n }", "public AdminCoursePanel(PanelController panMan, AdminFunctController adCon) {\n\t\tsuper(panMan);\n\t\tthis.adCon = adCon;\n\n\t\tsetLayout(new BorderLayout());\n\t\tdisplay = new JPanel();\n\n\t\tsetupToolBar();\n\t\tsetupButtons();\n\t\tsetupTable();\n\t\tsetupTextArea();\n\n\t\tadd(display, BorderLayout.CENTER);\n\t}", "public MainView() {\n initComponents();\n }", "public MainView() {\n initComponents();\n }", "private LessonController() {\n\t\tview = LessonPanel.getLessonPanel();\n\t\tview.clearPhraseTabelContent();\n\t\t//initAllPhrases();\n\t\taddALlListeners();\n\n\t\t//view.setVisible(true);\n\t}", "public MainScreen() {\n initComponents();\n \n }", "public MenuPanel() {\n initComponents();\n }", "public Dashboard() {\n initComponents();\n }", "public MainClass()\r\n\t{\r\n\t\tthis.setPreferredSize(new Dimension(width - 300, height));// This sets the dimensions of the graphic space where cam is drawn\r\n\t\tpanel = new ControlPanel(); // Initialization of various objects incorporated into the main class\r\n\t\twindow = new Window(this, panel);\t\t\t\t//\r\n\t\tdisp = new DispAngleDiagram(stroke);\t\t\t//\r\n\t\trcp = new RenderCamProfile(disp, panel);\t\t//\r\n\t\tinput = new InputHandler(disp);\t\t\t\t\t//\r\n\t\t\r\n\t\tthis.addMouseListener(input);\t\t\t\t\t\r\n\t\tthis.addMouseMotionListener(input);\r\n\t}", "public PanelIniciarSesion() {\n initComponents();\n }", "public MainFrame() {\n super(\"Gestione Concessionaria\");\n this.initComponents();\n this.generaFasciaPrezzo();\n this.pack();\n this.setLocationRelativeTo(null);\n this.initPanels();\n this.ToggleMenu.addActionListener(this);\n }", "public Records_Panel() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public PanelSgamacView1()\n {\n }", "public ClientMainView() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }", "private PanelManager(FlowClient frame) {\r\n\t\t// Swing necessities\r\n\t\tlayout = new CardLayout();\r\n\t\tthis.frame = frame;\r\n\t\tthis.setLayout(layout);\r\n\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\r\n\t\t// Creates new panels and adds them to the cardlayout stack\r\n\t\teditTabs = new EditTabs();\r\n\r\n\t\tloginPane = new LoginPane(this);\r\n\t\tadd(loginPane, \"loginPane\");\r\n\r\n\t\tCreateAccountPane createAccountPane = new CreateAccountPane(this);\r\n\t\tadd(createAccountPane, \"createPane\");\r\n\r\n\t\teditPane = new EditPane(this);\r\n\t\tadd(editPane, \"editPane\");\r\n\r\n\t\tdebugPane = new DebugPane(this);\r\n\t\tadd(debugPane, \"debugPane\");\r\n\r\n\t\tSettingsPane settingsTabs = new SettingsPane(this);\r\n\t\tadd(settingsTabs, \"settingsPane\");\r\n\r\n\t\thistoryPane = new HistoryPane(this);\r\n\t\tadd(historyPane, \"historyPane\");\r\n\t}", "public AboutUsPanel() {\n initComponents();\n }", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public MainGUI() {\n\t\tString xmlpath = \"classpath:applicationContext.xml\";\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlpath);\n\t\t\n\t\tcenter = (CenterController)applicationContext.getBean(\"CenterController\");\n\t\t\n\t\tinitialize();\n\t\t\n\t}", "private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}", "public HomePanel() {\r\n\t\tinitialisation();\r\n initComponents();\r\n\t\tpostInit();\r\n }", "public HoaDonJPanel() {\n initComponents(); \n this.init();\n }", "public RepositoryPanel() {\n initComponents();\n }", "public MainWindow() {\n this.controlador = new MainControler(this);\n initComponents();\n }", "private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}", "public PrincipalPanel() {\n\t\tinitialize();\n\t}", "public SpritePreviewPanelController()\r\n\t{\r\n\t\tsetSpritePreviewPanelHolder(new SpritePreviewPanelHolder());\r\n\t\tspritePreviewPanelHolder.getAddSpriteButton().addActionListener(this);\t\t\r\n\r\n\t\t//\tgetSpritePanel().getComboBox().addActionListener(this);\r\n\t}", "public Dashboard() {\n initComponents();\n// initComponents();\n build_GUI();\n }", "public UI() {\r\n\t\tsetPreferredSize(new Dimension(1100, 720));\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(chatPanel(), BorderLayout.CENTER);\r\n\t\tadd(serverPanel(), BorderLayout.EAST);\r\n\t\taddListeners();\r\n\t}", "public RiskController() {\r\n\t\trisk = new RiskGameModel();\r\n\t\tinitComponents();\r\n\t\tinitializePhaseView(risk);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetResizable(false);\r\n\t\tjPanel1.repaint();\r\n\t\tjPanel1.addMouseListener(this);\r\n\t\tAttackButton.setVisible(false);\r\n\t}", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "public MainPanel(MainFrame m)\r\n\t{\r\n\t\t//Link back to the Frame\r\n\t\tmainFrame = m;\r\n\t\t\r\n\t\t//Setup the layout\r\n\t\tsetLayout(new GridLayout(4,1,5,5)); //Grid with 4 rows and 1 column.\r\n\t\t\r\n\t\t//add buttons and action listeners to the buttons\r\n\t\tthis.add(play);\r\n\t\tplay.addActionListener(mainListener);\r\n\t\tthis.add(edit);\r\n\t\tedit.addActionListener(mainListener);\r\n\t\tthis.add(editExisting);\r\n\t\teditExisting.addActionListener(mainListener);\r\n\t\tthis.add(exit);\r\n\t\texit.addActionListener(mainListener);\t\r\n\t}", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "public ECCPanel() {\n initComponents();\n \n }", "public MainWindow(String title, Controller ctr) {\n\t\tsuper(title);\n\n\t\tcv = new Canvas(ctr);\n\t\tJScrollPane jspMiddle = new JScrollPane(cv);\n\t\tjspMiddle.setHorizontalScrollBarPolicy(\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tjspMiddle.setVerticalScrollBarPolicy(\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tep = new EditPanel(ctr);\n\n\t\ttp = new ThumbnailPanel(ctr);\n\t\tJScrollPane jspLeft = new JScrollPane(tp);\n jspLeft.setVerticalScrollBarPolicy(\n \t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tadd(new ToolBar(ctr), BorderLayout.PAGE_START);\n\t\tadd(jspLeft, BorderLayout.LINE_START);\n\t\tadd(jspMiddle, BorderLayout.CENTER);\n\t\tadd(ep, BorderLayout.LINE_END);\n\t\t\n\t\tsetJMenuBar(new MenuBar(ctr));\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tsetExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\tsetLocationRelativeTo(null); // center the window\n\t\tsetVisible(true);\n\t\t\n\t\t// create the default state\n\t\tState st = new State(System.currentTimeMillis());\n\t\tctr.appendState(st);\n\t\tctr.setFocusedID(st.getID());\n\t\tgetThumbnailPanel().display();\n\n\t\taddWindowListener(new WindowAdapter() { // prompt before exit\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tsuper.windowClosing(e);\n\t\t\t\tctr.onExitClicked();\n\t\t\t}\n\t\t});\n\t}", "public NavigationPanel()\n\t{\n\t\tmakeContent();\n\t}", "public MaintenancePanel(Frame fr, MaintenanceController mc) {\n\t\tsuper(fr, TITLE, false);\n\n\t\tmctrl = mc;\n\n\t\t// north part\n\t\tLabel lb = new Label(TITLE);\n\t\tlb.setFont(new Font(\"Helvetica\", Font.BOLD, 24));\n\t\tPanel tp1 = new Panel();\n\t\ttp1.add(lb);\n\n\t\tPanel tpn = new Panel();\n\t\ttpn.setLayout(new GridLayout(0, 1));\n\n\t\tpassword = new LabelledDisplay(\"Password:\", 30, LabelledDisplay.FLOW);\n\t\tPasswordListener pl = new PasswordListener(mc.getAccessManager());\n\t\tpassword.addListener(pl);\n\n\t\tPanel tp3 = new Panel();\n\t\tvalidPswd = new WarningDisplay(\"Valid Password\");\n\t\tinvalidPswd = new WarningDisplay(\"Invalid Password\");\n\t\ttp3.add(validPswd);\n\t\ttp3.add(invalidPswd);\n\t\ttpn.add(tp1);\n\t\ttpn.add(password);\n\t\ttpn.add(tp3);\n\n\t\t// center part\n\t\tPanel tpc = new Panel();\n\t\ttpc.setLayout(new GridLayout(0, 1));\n\n\t\tcDisplay = new CoinDisplay(mctrl);\n\t\tdDisplay = new ItemDisplay(mctrl, Store.DRINK);\n\t\tsDisplay = new ItemDisplay(mctrl, Store.SNACK);\n\n\t\tPanel tp5 = new Panel();\n\t\ttp5.setLayout(new GridLayout(0, 1));\n\n\t\ttotalCash = new ButtonItem(\"Show Total Cash Held\", 5, ButtonItem.FLOW);\n\t\tTotalCashButtonListener tl;\n\n\t\ttl = new TotalCashButtonListener(mctrl);\n\t\ttotalCash.addListener(tl);\n\n\t\ttransferCash = new Button(\"Press to Collect All Cash\");\n\t\ttransferCash.addActionListener(new TransferCashButtonListener(mctrl));\n\n\t\tPanel tp6 = new Panel();\n\t\ttp6.setLayout(new FlowLayout());\n\t\ttp6.add(transferCash);\n\n\t\tcollectCash =\n\t\t\tnew LabelledDisplay(\"Collect Cash:\", 5, LabelledDisplay.FLOW);\n\t\texitBtn = new Button(\"Press Here when Finished\");\n\t\texitBtn.addActionListener(new ExitButtonListener(mctrl));\n\n\t\ttp5.add(totalCash);\n\t\ttp5.add(tp6);\n\t\ttp5.add(collectCash);\n\t\ttp5.add(exitBtn);\n\t\ttpc.setLayout(new BorderLayout());\n\t\tPanel pp = new Panel();\n\t\tpp.setLayout(new GridLayout(1, 2));\n\t\tpp.add(cDisplay);\n\t\tif (!dDisplay.isEmpty())\n\t\t\tpp.add(dDisplay);\n\t\tif (!sDisplay.isEmpty())\n\t\t\tpp.add(sDisplay);\n\t\ttpc.add(\"Center\", pp);\n\t\ttpc.add(\"South\", tp5);\n\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.add(\"North\", tpn);\n\t\tthis.add(\"Center\", tpc);\n\n\t\tpack();\n\t\tframeWidth=this.getWidth();\n frameHeight=this.getHeight();\n frameX=(screenWidth-frameWidth);\n frameY=0;\n setBounds(frameX,frameY,frameWidth, frameHeight);\n\t}", "public HomePanel() {\n initComponents();\n setTime();\n }", "public TimetablePanel(MainWindow mainWindow, EventController eventController) {\n super();\n \n this.mainWindow = mainWindow;\n this.eventController = eventController;\n this.user = mainWindow.getUser();\n \n initComponents();\n initMyComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public NetworkPanel() {\n initComponents();\n }", "private void constructMainPanel() {\n // initialize the main panel\n mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\n mainPanel.setPreferredSize(new Dimension(model.getWidth() + 50,\n model.getHeight() + 240));\n JScrollPane mainPane = new JScrollPane(mainPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n this.add(mainPane);\n\n }", "public GUI(GUIController controler){\n\t\t//Create the fame with specific features\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedLookAndFeelException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.controler=controler;\n\t\tsetFrame(new JFrame(\"Network Topology\"));\n\t\t//getFrame().setPreferredSize(new Dimension(1200, 700));\n\t\tbuttons=new ArrayList<JButton>();\n\t\tcirclePanel=new CirclePanel();\n\t\tstratButtons= new ArrayList<JButton>();\n\t\t\n\t\tgetFrame().setResizable(true);\n\t\t}", "public TitlePanel() {\n\t\tinitComponents();\n\t}", "public MainExonCorPanel() {\n initComponents();\n errorsp.setVisible(false);\n jSplitPane1.setDividerLocation(0);\n }", "public ColorPickerMainFrame()\n {\n initComponents();\n \n getContentPane().add(panel);\n setSize(640, 640);\n }", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "public GUI() {\n super(\"Day Planner\");\n setSize(465,550);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n addWindowListener(new CheckOnExit() {});\n basePanel = new JPanel(new CardLayout());\n init();\n \n \n basePanel.setVisible(true);\n add(basePanel);\n }", "private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }", "public viewDos() {\n initComponents();\n setTexFieldInList();\n controller= new Controller();\n this.setVisible(true);\n }", "public mainUI() {\n initComponents();\n }", "public GUIController() {\n\n }", "public TemporizadorPanel() {\n initComponents();\n }", "public CS4400T74Frontend() {\n\t\tsuper(APPLICATION_TITLE);\n\t\t\n\t\t// Create the main content panel\n\t\tcontentPanel = new JPanel();\n\t\tlayout = new CardLayout();\n\t\tcontentPanel.setLayout(layout);\n\t\tcontentPanel.setPreferredSize(SCREEN_SIZE);\n\t\t\n\t\t// Add panels to the content panel\n\t\tcontentPanel.add(new LoginScreen(), ScreenType.LOGIN_SCREEN.toString());\n\t\tcontentPanel.add(new RegisterScreen(), ScreenType.REGISTER_SCREEN.toString());\n\t\tcontentPanel.add(new CreateProfileScreen(), ScreenType.CREATEPROFILE_SCREEN.toString());\n\t\tcontentPanel.add(new FutureHoldRequestScreen(), ScreenType.FUTURE_HOLD_SCREEN.toString());\n\t\tcontentPanel.add(new StudentViewScreen(), ScreenType.STUDENTVIEW_SCREEN.toString());\n\t\tcontentPanel.add(new StaffViewScreen(), ScreenType.STAFFVIEW_SCREEN.toString());\n\t\t// Add the content panel\n\t\tadd(contentPanel);\n\t\tpack();\n\t\t\n\t\t// Finish up and set JFrame parameters\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetResizable(false);\n\t}", "public MainWindow() {\n initComponents();\n \n StationView = new SpaceStationView();\n EnemyView = new EnemyStarshipView();\n \n stationPanel.add(StationView);\n enemyPanel.add(EnemyView);\n \n message.setVisible(false);\n \n setTitle(appName);\n \n repaint();\n setLocationRelativeTo(null);\n \n }", "public PlaneUIController() {\n this.launcherFacade = new LauncherFacade();\n }", "public MainContentPane() {\r\n\t\tsuper();\r\n\r\n\t\t// Add design-time configured components.\r\n\t\tinitComponents();\r\n\t}", "public ViewController(Composite parent) {\n SashForm form = new SashForm(parent, SWT.HORIZONTAL);\n form.setLayout(new FillLayout(SWT.HORIZONTAL));\n form.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false));\n this.tableList = new TableList(form, this);\n this.signScreen = new SignScreen(form, this);\n this.userController = new UserController(this);\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public ModuleFrame() {\n javafxPanel = new JFXPanel();\n initComponents();\n this.webViewParent.setLayout(new BorderLayout());\n this.webViewParent.add(javafxPanel, BorderLayout.CENTER);\n this.webViewParent.add(javafxPanel);\n \n this.setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FrmMainVIEW() {\n initComponents();\n }", "private void initComponents() {//GEN-BEGIN:initComponents\n\t\tpnlMain = new javax.swing.JPanel();\n\n\t\tsetTitle(\"JasperViewer\");\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\t\tpnlMain.setLayout(new java.awt.BorderLayout());\n\n\t\tgetContentPane().add(pnlMain, java.awt.BorderLayout.CENTER);\n\n\t\tpack();\n\t\tjava.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetSize(new java.awt.Dimension(400, 300));\n\t\tsetLocation((screenSize.width-400)/2,(screenSize.height-300)/2);\n\t}", "public YahtzeeView(){\n setLayout(null);\n cardLayout_Action = new CardLayout();\n gameCon_Layout = new FixSizeCardLayout();\n //panel used to house the cardLayout manager.\n mainBackGroundPanel = new MainSlot_JPanel();\n mainBackGroundPanel.setLayout(null);\n \n mainActionPanel = new JPanel(cardLayout_Action); \n mainActionPanel.setBounds(100, 48, 600, 434);\n gameControlPanel = new JPanel(gameCon_Layout);\n gameControlPanel.setBounds(120, 510, 540, 50);\n \n mainBackGroundPanel.add(mainActionPanel);\n mainBackGroundPanel.add(gameControlPanel);\n\n gameControlPanel.add(emptyGameControllerView(),\n \"Player-1GameController\");\n gameControlPanel.setOpaque(false);\n \n mainBackGroundPanel.setBounds(0,0,800,600);\n \n add(mainBackGroundPanel);\n setVisible(true);\n \n currentPage_ActionPanel = \"\";\n currentPage_ControlPanel = \"\";\n }", "public MenuView(MainFrame main) {\n initComponents();\n \n this.mainFrame = main;\n }" ]
[ "0.7535382", "0.7473224", "0.74027884", "0.73970133", "0.73420817", "0.73063165", "0.72683126", "0.72427887", "0.71629196", "0.71599936", "0.71141285", "0.7101423", "0.70935214", "0.70685256", "0.7063032", "0.7032557", "0.7023615", "0.7023512", "0.70134467", "0.6997548", "0.69873834", "0.6987304", "0.69847214", "0.697824", "0.69621193", "0.6951416", "0.6942974", "0.69293374", "0.69019324", "0.690191", "0.6894126", "0.6859786", "0.6846336", "0.6843422", "0.6843422", "0.68324095", "0.68316245", "0.6819754", "0.6817185", "0.68151283", "0.6809721", "0.68066084", "0.6798891", "0.67956036", "0.67948765", "0.679472", "0.6794549", "0.67914444", "0.6791099", "0.67863405", "0.6785045", "0.678102", "0.67676574", "0.6761082", "0.6758528", "0.67554396", "0.6744244", "0.6739679", "0.67375815", "0.67244065", "0.6710711", "0.67065954", "0.67048186", "0.6701782", "0.6697097", "0.6689708", "0.66873884", "0.66639674", "0.6645132", "0.6641566", "0.66407776", "0.66319275", "0.66319275", "0.66319275", "0.66319275", "0.66319275", "0.66256166", "0.66164565", "0.66095483", "0.65989405", "0.6597155", "0.65956223", "0.6590394", "0.65893763", "0.6586738", "0.65840703", "0.65840006", "0.65792215", "0.6578046", "0.6576081", "0.6574605", "0.65588844", "0.65556306", "0.65545917", "0.6546619", "0.654556", "0.65446514", "0.6542837", "0.653974", "0.6533789" ]
0.73977375
3
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings) { super(readings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.50771606", "0.5047625", "0.50355005", "0.5002984", "0.4969306", "0.49378836", "0.4905657", "0.49035382", "0.48895636", "0.48751795", "0.4841012", "0.48222446", "0.48175412", "0.47908044", "0.47747734", "0.47687677", "0.46740335", "0.46563148", "0.46559304", "0.46545202", "0.46534485", "0.46225703", "0.45830432", "0.4580851", "0.45441294", "0.45354065", "0.452395", "0.45190167", "0.44938138", "0.44938138", "0.44791058", "0.44775715", "0.44724277", "0.44530794", "0.44436836", "0.4439588", "0.44344327", "0.44311213", "0.44292718", "0.44266263", "0.44238818", "0.44173974", "0.4416911", "0.44079497", "0.440104", "0.4399893", "0.43955463", "0.4395371", "0.43951803", "0.43860316", "0.43835545", "0.43789694", "0.43757233", "0.4370748", "0.43685833", "0.43639895", "0.43636927", "0.4361321", "0.4358161", "0.4354892", "0.4351173", "0.43493897", "0.4337225", "0.4328181", "0.43272012", "0.43250665", "0.43206108", "0.43202478", "0.43171972", "0.4313857", "0.43134734", "0.43127912", "0.43124977", "0.4311542", "0.43108803", "0.43068177", "0.43041903", "0.43040413", "0.42993566", "0.4297375" ]
0.6481133
0
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final MixedRadioSourceEstimatorListener<S, P> listener) { super(readings, listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.50771606", "0.5047625", "0.50355005", "0.5002984", "0.4969306", "0.49378836", "0.4905657", "0.49035382", "0.48895636", "0.48751795", "0.4841012", "0.48222446", "0.48175412", "0.47908044", "0.47747734", "0.47687677", "0.46740335", "0.46563148", "0.46559304", "0.46545202", "0.46534485", "0.46225703", "0.45830432", "0.4580851", "0.45441294", "0.45354065", "0.452395", "0.45190167", "0.44938138", "0.44938138", "0.44791058", "0.44775715", "0.44724277", "0.44530794", "0.44436836", "0.4439588", "0.44344327", "0.44311213", "0.44292718", "0.44266263", "0.44238818", "0.44173974", "0.4416911", "0.44079497", "0.440104", "0.4399893", "0.43955463", "0.4395371", "0.43951803", "0.43860316", "0.43835545", "0.43789694", "0.43757233", "0.4370748", "0.43685833", "0.43639895", "0.43636927", "0.4361321", "0.4358161", "0.4354892", "0.4351173", "0.43493897", "0.4337225", "0.4328181", "0.43272012", "0.43250665", "0.43206108", "0.43202478", "0.43171972", "0.4313857", "0.43134734", "0.43127912", "0.43124977", "0.4311542", "0.43108803", "0.43068177", "0.43041903", "0.43040413", "0.42993566", "0.4297375" ]
0.58696353
7
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition) { super(readings); mInitialPosition = initialPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.64814204", "0.62118185", "0.5955734", "0.5953436", "0.5947286", "0.59260505", "0.58695364", "0.58326554", "0.5743539", "0.5732371", "0.57290286", "0.55367625", "0.5532711", "0.5508741", "0.54924357", "0.54768246", "0.5467473", "0.54587454", "0.53586286", "0.5192859", "0.50761515", "0.5045245", "0.50345445", "0.5003205", "0.49681053", "0.49373168", "0.49056268", "0.4902677", "0.48875976", "0.48756632", "0.48389858", "0.48218805", "0.48196575", "0.47893685", "0.47735608", "0.47689262", "0.46750093", "0.46537507", "0.46532083", "0.46531188", "0.46527463", "0.46210104", "0.45816574", "0.4580286", "0.4544151", "0.45340756", "0.4525612", "0.45173535", "0.44910434", "0.44910434", "0.44796932", "0.4478859", "0.4470204", "0.44540754", "0.44428045", "0.44400752", "0.4436506", "0.44317594", "0.4426912", "0.44265077", "0.4423538", "0.44161615", "0.44155404", "0.44057703", "0.44023386", "0.4399319", "0.43950886", "0.43949744", "0.43947434", "0.43873274", "0.43835422", "0.4375954", "0.4375137", "0.4371713", "0.43686217", "0.43639797", "0.43623394", "0.43603736", "0.43592918", "0.43538904", "0.43520045", "0.43501186", "0.4335569", "0.43294144", "0.43286765", "0.43254006", "0.4321947", "0.4321018", "0.43140423", "0.4313055", "0.43126848", "0.43104735", "0.43096128", "0.4308755", "0.43080193", "0.43075177", "0.4304266", "0.43031475", "0.4298411", "0.4298189" ]
0.6094828
2
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, final MixedRadioSourceEstimatorListener<S, P> listener) { super(readings, listener); mInitialPosition = initialPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.64814204", "0.62118185", "0.6094828", "0.5955734", "0.5953436", "0.5947286", "0.59260505", "0.58695364", "0.58326554", "0.5743539", "0.5732371", "0.57290286", "0.5532711", "0.5508741", "0.54924357", "0.54768246", "0.5467473", "0.54587454", "0.53586286", "0.5192859", "0.50761515", "0.5045245", "0.50345445", "0.5003205", "0.49681053", "0.49373168", "0.49056268", "0.4902677", "0.48875976", "0.48756632", "0.48389858", "0.48218805", "0.48196575", "0.47893685", "0.47735608", "0.47689262", "0.46750093", "0.46537507", "0.46532083", "0.46531188", "0.46527463", "0.46210104", "0.45816574", "0.4580286", "0.4544151", "0.45340756", "0.4525612", "0.45173535", "0.44910434", "0.44910434", "0.44796932", "0.4478859", "0.4470204", "0.44540754", "0.44428045", "0.44400752", "0.4436506", "0.44317594", "0.4426912", "0.44265077", "0.4423538", "0.44161615", "0.44155404", "0.44057703", "0.44023386", "0.4399319", "0.43950886", "0.43949744", "0.43947434", "0.43873274", "0.43835422", "0.4375954", "0.4375137", "0.4371713", "0.43686217", "0.43639797", "0.43623394", "0.43603736", "0.43592918", "0.43538904", "0.43520045", "0.43501186", "0.4335569", "0.43294144", "0.43286765", "0.43254006", "0.4321947", "0.4321018", "0.43140423", "0.4313055", "0.43126848", "0.43104735", "0.43096128", "0.4308755", "0.43080193", "0.43075177", "0.4304266", "0.43031475", "0.4298411", "0.4298189" ]
0.55367625
12
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final Double initialTransmittedPowerdBm) { super(readings); mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.50771606", "0.5047625", "0.50355005", "0.5002984", "0.4969306", "0.49378836", "0.4905657", "0.49035382", "0.48895636", "0.48751795", "0.4841012", "0.48222446", "0.48175412", "0.47908044", "0.47747734", "0.47687677", "0.46740335", "0.46563148", "0.46559304", "0.46545202", "0.46534485", "0.46225703", "0.45830432", "0.4580851", "0.45441294", "0.45354065", "0.452395", "0.45190167", "0.44938138", "0.44938138", "0.44791058", "0.44775715", "0.44724277", "0.44530794", "0.44436836", "0.4439588", "0.44344327", "0.44311213", "0.44292718", "0.44266263", "0.44238818", "0.44173974", "0.4416911", "0.44079497", "0.440104", "0.4399893", "0.43955463", "0.4395371", "0.43951803", "0.43860316", "0.43835545", "0.43789694", "0.43757233", "0.4370748", "0.43685833", "0.43639895", "0.43636927", "0.4361321", "0.4358161", "0.4354892", "0.4351173", "0.43493897", "0.4337225", "0.4328181", "0.43272012", "0.43250665", "0.43206108", "0.43202478", "0.43171972", "0.4313857", "0.43134734", "0.43127912", "0.43124977", "0.4311542", "0.43108803", "0.43068177", "0.43041903", "0.43040413", "0.42993566", "0.4297375" ]
0.59260625
6
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final Double initialTransmittedPowerdBm, final MixedRadioSourceEstimatorListener<S, P> listener) { super(readings, listener); mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54584324", "0.5358521", "0.5193017", "0.50771606", "0.5047625", "0.50355005", "0.5002984", "0.4969306", "0.49378836", "0.4905657", "0.49035382", "0.48895636", "0.48751795", "0.4841012", "0.48222446", "0.48175412", "0.47908044", "0.47747734", "0.47687677", "0.46740335", "0.46563148", "0.46559304", "0.46545202", "0.46534485", "0.46225703", "0.45830432", "0.4580851", "0.45441294", "0.45354065", "0.452395", "0.45190167", "0.44938138", "0.44938138", "0.44791058", "0.44775715", "0.44724277", "0.44530794", "0.44436836", "0.4439588", "0.44344327", "0.44311213", "0.44292718", "0.44266263", "0.44238818", "0.44173974", "0.4416911", "0.44079497", "0.440104", "0.4399893", "0.43955463", "0.4395371", "0.43951803", "0.43860316", "0.43835545", "0.43789694", "0.43757233", "0.4370748", "0.43685833", "0.43639895", "0.43636927", "0.4361321", "0.4358161", "0.4354892", "0.4351173", "0.43493897", "0.4337225", "0.4328181", "0.43272012", "0.43250665", "0.43206108", "0.43202478", "0.43171972", "0.4313857", "0.43134734", "0.43127912", "0.43124977", "0.4311542", "0.43108803", "0.43068177", "0.43041903", "0.43040413", "0.42993566", "0.4297375" ]
0.54676616
17
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, Double initialTransmittedPowerdBm) { super(readings); mInitialPosition = initialPosition; mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.64814204", "0.62118185", "0.6094828", "0.5955734", "0.5953436", "0.5947286", "0.59260505", "0.58695364", "0.58326554", "0.5732371", "0.57290286", "0.55367625", "0.5532711", "0.5508741", "0.54924357", "0.54768246", "0.5467473", "0.54587454", "0.53586286", "0.5192859", "0.50761515", "0.5045245", "0.50345445", "0.5003205", "0.49681053", "0.49373168", "0.49056268", "0.4902677", "0.48875976", "0.48756632", "0.48389858", "0.48218805", "0.48196575", "0.47893685", "0.47735608", "0.47689262", "0.46750093", "0.46537507", "0.46532083", "0.46531188", "0.46527463", "0.46210104", "0.45816574", "0.4580286", "0.4544151", "0.45340756", "0.4525612", "0.45173535", "0.44910434", "0.44910434", "0.44796932", "0.4478859", "0.4470204", "0.44540754", "0.44428045", "0.44400752", "0.4436506", "0.44317594", "0.4426912", "0.44265077", "0.4423538", "0.44161615", "0.44155404", "0.44057703", "0.44023386", "0.4399319", "0.43950886", "0.43949744", "0.43947434", "0.43873274", "0.43835422", "0.4375954", "0.4375137", "0.4371713", "0.43686217", "0.43639797", "0.43623394", "0.43603736", "0.43592918", "0.43538904", "0.43520045", "0.43501186", "0.4335569", "0.43294144", "0.43286765", "0.43254006", "0.4321947", "0.4321018", "0.43140423", "0.4313055", "0.43126848", "0.43104735", "0.43096128", "0.4308755", "0.43080193", "0.43075177", "0.4304266", "0.43031475", "0.4298411", "0.4298189" ]
0.5743539
9
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, final Double initialTransmittedPowerdBm, final MixedRadioSourceEstimatorListener<S, P> listener) { super(readings, listener); mInitialPosition = initialPosition; mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.64814204", "0.62118185", "0.6094828", "0.5955734", "0.5953436", "0.5947286", "0.59260505", "0.58695364", "0.58326554", "0.5743539", "0.5732371", "0.57290286", "0.55367625", "0.5532711", "0.5508741", "0.54924357", "0.54768246", "0.5467473", "0.54587454", "0.53586286", "0.50761515", "0.5045245", "0.50345445", "0.5003205", "0.49681053", "0.49373168", "0.49056268", "0.4902677", "0.48875976", "0.48756632", "0.48389858", "0.48218805", "0.48196575", "0.47893685", "0.47735608", "0.47689262", "0.46750093", "0.46537507", "0.46532083", "0.46531188", "0.46527463", "0.46210104", "0.45816574", "0.4580286", "0.4544151", "0.45340756", "0.4525612", "0.45173535", "0.44910434", "0.44910434", "0.44796932", "0.4478859", "0.4470204", "0.44540754", "0.44428045", "0.44400752", "0.4436506", "0.44317594", "0.4426912", "0.44265077", "0.4423538", "0.44161615", "0.44155404", "0.44057703", "0.44023386", "0.4399319", "0.43950886", "0.43949744", "0.43947434", "0.43873274", "0.43835422", "0.4375954", "0.4375137", "0.4371713", "0.43686217", "0.43639797", "0.43623394", "0.43603736", "0.43592918", "0.43538904", "0.43520045", "0.43501186", "0.4335569", "0.43294144", "0.43286765", "0.43254006", "0.4321947", "0.4321018", "0.43140423", "0.4313055", "0.43126848", "0.43104735", "0.43096128", "0.4308755", "0.43080193", "0.43075177", "0.4304266", "0.43031475", "0.4298411", "0.4298189" ]
0.5192859
20
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, final Double initialTransmittedPowerdBm, final double initialPathLossExponent) { this(readings, initialPosition, initialTransmittedPowerdBm); mInitialPathLossExponent = initialPathLossExponent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.50771606", "0.5047625", "0.50355005", "0.5002984", "0.4969306", "0.49378836", "0.4905657", "0.49035382", "0.48895636", "0.48751795", "0.4841012", "0.48222446", "0.48175412", "0.47908044", "0.47747734", "0.47687677", "0.46740335", "0.46563148", "0.46559304", "0.46545202", "0.46534485", "0.46225703", "0.45830432", "0.4580851", "0.45441294", "0.45354065", "0.452395", "0.45190167", "0.44938138", "0.44938138", "0.44791058", "0.44775715", "0.44724277", "0.44530794", "0.44436836", "0.4439588", "0.44344327", "0.44311213", "0.44292718", "0.44266263", "0.44238818", "0.44173974", "0.4416911", "0.44079497", "0.440104", "0.4399893", "0.43955463", "0.4395371", "0.43951803", "0.43860316", "0.43835545", "0.43789694", "0.43757233", "0.4370748", "0.43685833", "0.43639895", "0.43636927", "0.4361321", "0.4358161", "0.4354892", "0.4351173", "0.43493897", "0.4337225", "0.4328181", "0.43272012", "0.43250665", "0.43206108", "0.43202478", "0.43171972", "0.4313857", "0.43134734", "0.43127912", "0.43124977", "0.4311542", "0.43108803", "0.43068177", "0.43041903", "0.43040413", "0.42993566", "0.4297375" ]
0.5492369
15
Constructor. Sets radio signal readings belonging to the same radio source.
public MixedRadioSourceEstimator( final List<? extends ReadingLocated<P>> readings, final P initialPosition, final Double initialTransmittedPowerdBm, final double initialPathLossExponent, final MixedRadioSourceEstimatorListener<S, P> listener) { this(readings, initialPosition, initialTransmittedPowerdBm, listener); mInitialPathLossExponent = initialPathLossExponent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MyRadio(MusicService owner) {\n this.owner = owner;\n this.getDataSource();\n if (radioList.size() <= 0) {\n reloadRadioStationFromRawXML();\n }\n this.initializePlayer();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "private void setRadioOnCheckedChangedEvent() {\n ((RadioButton) findViewById(R.id.radio_akb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_ske48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_nmb48)).setOnCheckedChangeListener(this);\n ((RadioButton) findViewById(R.id.radio_hkt48)).setOnCheckedChangeListener(this);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RadioButtons()\n {\n }", "public void setRadio(float radio){\r\n if(radio<0){\r\n this.radio=Math.abs(radio);\r\n }else{\r\n this.radio=radio;\r\n }\r\n \r\n }", "public Circulo (double r) {\n radio = r;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "private void initialize(){\n options[0] = R.id.radio1;\n options[1] = R.id.radio2;\n options[2] = R.id.radio3;\n options[3] = R.id.radio4;\n }", "public SpectrumSurvey(int RECORDER_SAMPLERATE, String audioSettingName, Context context) {\n\t\t// set config defaut values\n\t\tisSurveying = false;\n\t\tisPlayingAndRecording = false;\n\t\tisSurveying = false;\n\t\tmSurveyMode = C.SURVEY_MODE_TRAIN;\n\t\tthis.RECORDER_SAMPLERATE = RECORDER_SAMPLERATE;\n\t\tthis.audioSettingName = audioSettingName;\n\t\tthis.context = context;\n\n\t\t// create necessary classes\n\t\tmDateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\");\n\t\tmRecordTimer = new RecordTimer();\n\t\t//recordRequestQueue = new LinkedList<RecordRequest>();\n\t\t\n\t\t// Set up audio sources and recorder and their corresponding complete handler\n\t\tmAudioCompleteListener = new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(C.LOG_TAG, \"Audio Play Complete,\" + getTime());\n\t\t\t\tmp.seekTo(0); // roll back to the begining\n\t\t\t\tmRecordTimer.sendMessageDelayed(Message.obtain(null, MESSAGE_PLAY_IS_STOPPED), TIME_TO_WAIT_STOP_RECORD);\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\tif(!USE_AUDIO_TRACK_TO_PLAY_BINARY_FILE) {\n\t\t\taudioSourceTrain = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t\taudioSourcePredict = new AudioSource(audioSettingName, C.DEFAULT_VOL, mAudioCompleteListener);\n\t\t}\n\t\t\n\t\t// Set up audio recorder\n\t\tLog.d(C.LOG_TAG, \"min buffer size = \" + String.valueOf(AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING)));\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t//mAudioRecord = new AudioRecord(MediaRecorder.AudioSource.CAMCORDER, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t\t// Use device-specific setting\n\t\tmAudioRecord = new AudioRecord(D.RECORD_SOURCE, RECORDER_SAMPLERATE, AudioFormat.CHANNEL_IN_STEREO, RECORDER_AUDIO_ENCODING, RECORDER_TOTAL_BUFFER_SIZE);\n\t}", "public GRadioGroup(RadioButton... radios) {\n super();\n\n for (RadioButton rb : radios) {\n this.radios.add(rb);\n rb.setOnClickListener(onClick);\n }\n }", "public void setRMTIndicator(Record inputRecord);", "public RRMech() //Default constructor.\r\n\t{\r\n\t\tsuper(\"RR\"); //RR is the architecture symbol of this synthetica.mechanism.\r\n\t\tdouble[][] links = {{0.0, 0.0}, {1.0, 0.0}};\r\n\t\tsuper.setAllLinks( links );\r\n\t}", "public void setRadiologyProperties(RadiologyProperties radiologyProperties) {\n this.radiologyProperties = radiologyProperties;\n }", "public void setSignal(double signal) {_signal = signal;}", "public AudioStream(AudioStream clone) {\n this.ID = clone.ID;\n this.to = clone.to;\n this.count = clone.count+1;\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "public void setDefaultSettings() {\n boolean shouldRecord = sharedPreferences.getBoolean(record,true);\n if (shouldRecord) {\n radioOption.check(R.id.radioRecord);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecord);\n radioOptionButton.setEnabled(true);\n } else {\n radioOption.check(R.id.radioRecognize);\n radioOptionButton = (RadioButton)findViewById(R.id.radioRecognize);\n radioOptionButton.setEnabled(true);\n }\n\n // Set timer to previous value set by user\n int minuteValue = sharedPreferences.getInt(minuteTime, 0)/60000;\n minutePicker.setValue(minuteValue);\n\n int secondValue = sharedPreferences.getInt(secondTime, 5000)/1000;\n secondPicker.setValue(secondValue);\n }", "public IOURingRSRCRegister set(IOURingRSRCRegister src) {\n memCopy(src.address(), address(), SIZEOF);\n return this;\n }", "@Override\r\n public void _updateSource(MixerSource source) {\n Vec3d sourcePosition = source.getAudioNode() == null ? playerPosition : source.getAudioNode().getGlobalCoordinates();\r\n\r\n double sourceBaseVolume = source.getCurrentAudio().getBaseVolume();\r\n double distFactor = 4;\r\n\r\n //RIGHT EAR:\r\n //Calculate the relative position from the right ear to the MixerSource\r\n Vec3d relativeRpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), rightEarPosition);\r\n double distanceR = relativeRpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the right ear\r\n double dotR = distanceR == 0 ? 1 : 1 - (relativeRpos.dot3(rightEarDirection) / distanceR - 1) / 2 * (distFactor - 1);\r\n distanceR *= dotR;\r\n\r\n //Calculate the volume perceived by the rigth ear\r\n double volumeR = getVolumeFromDistance(distanceR, sourceBaseVolume);\r\n\r\n\r\n //LEFT EAR:\r\n //Calculate the relative position from the left ear to the MixerSource\r\n Vec3d relativeLpos = Vec3d.substraction(playerOrientation.inverseRotate(Vec3d.substraction(sourcePosition, playerPosition)), leftEarPosition);\r\n double distanceL = relativeLpos.length();\r\n\r\n //add a distance penalty if the MixerSource is not aligned with the left ear\r\n double dotL = distanceL == 0 ? 1 : 1 - (relativeLpos.dot3(leftEarDirection) / distanceL - 1) / 2 * (distFactor - 1);\r\n distanceL *= dotL;\r\n\r\n //Calculate the volume perceived by the left ear\r\n double volumeL = getVolumeFromDistance(distanceL, sourceBaseVolume);\r\n\r\n\r\n //Evaluate and set the new volume and balance of the MixerSource\r\n source.setRightVolume(volumeR);\r\n source.setLeftVolume(volumeL);\r\n }", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "private void setupModeFilterRadioButtons( final NodeRecordModeFilter modeFilter, final String anyPrefix, final String passPrefix, final String failPrefix ) {\n\t\tfinal WindowReference windowReference = _mainWindowReference;\n\t\tfinal JRadioButton anyButton = (JRadioButton)windowReference.getView( anyPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton passButton = (JRadioButton)windowReference.getView( passPrefix + \"RadioButton\" );\n\t\tfinal JRadioButton failButton = (JRadioButton)windowReference.getView( failPrefix + \"RadioButton\" );\n\t\tnew ModeFilterHandler( modeFilter, anyButton, passButton, failButton );\n\t}", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "public void setDelegate(MP3RadioStreamDelegate mDelegate)\n \t{\n\t\tthis.mDelegate = mDelegate;\n\t}", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n buttonInHouseRadio.setSelected(true);\r\n }", "public MplsRxFilterValue(MplsRxFilterValue other) {\n super(other.cpuId);\n setValue(other.value());\n }", "private void setupRadioList() {\r\n // setup the \r\n final ExpandableListView listViewRadioList = (ExpandableListView) findViewById(android.R.id.list);\r\n listViewRadioList.setAdapter(mRadioCategoryAdapter);\r\n listViewRadioList.setOnChildClickListener(new OnChildClickListener() {\r\n\r\n @Override\r\n public boolean onChildClick(final ExpandableListView parent, final View v,\r\n final int groupPosition,\r\n final int childPosition, final long id) {\r\n Radio radio = mRadioCategoryAdapter.getChild(groupPosition, childPosition);\r\n\r\n mRadioPlayer.playRadio(RadioType.RADIO, radio.getId());\r\n setPlayerVisible(true);\r\n return true;\r\n }\r\n });\r\n }", "public TSignal(TSignal other) {\n if (other.is_set_destApp()) {\n this.destApp = other.destApp;\n }\n if (other.is_set_destPellet()) {\n this.destPellet = other.destPellet;\n }\n if (other.is_set_data()) {\n this.data = org.apache.thrift.TBaseHelper.copyBinary(other.data);\n;\n }\n }", "public void showRadioSongs() {\n showSharedSongs(radioSongs);\n }", "public double getRadio() {\n return radio;\n }", "public double getRadio() {\n return radio;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n\n //initialisation des radio button\n on.setToggleGroup(group);\n off.setToggleGroup(group);\n off.setSelected(true);\n isSelectedOff();\n }", "@com.exedio.cope.instrument.Generated // customize with @WrapperType(genericConstructor=...)\n\t\tprivate Source(final com.exedio.cope.SetValue<?>... setValues){super(setValues);}", "LNFSetter(String lnfName, JRadioButton me) {\n theLNFName = lnfName;\n thisButton = me;\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public RadioUI()\n {\n initComponents();\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public SignalEmitter(BusObject source) {\n this(source, null, BusAttachment.SESSION_ID_ANY, GlobalBroadcast.Off);\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "private void enableRadioButtons(){\n\n this.acOffRadioButton.setEnabled(true);\n\n this.heatOffRadioButton.setEnabled(true);\n\n this.lightsOnRadioButton.setEnabled(true);\n this.lightsOffRadioButton.setEnabled(true);\n\n this.leftDoorsOpenRadioButton.setEnabled(true);\n this.leftDoorsCloseRadioButton.setEnabled(true);\n\n this.rightDoorsOpenRadioButton.setEnabled(true);\n this.rightDoorsCloseRadioButton.setEnabled(true);\n }", "private void setIndices() {\r\n\r\n\t\t// Index where dry sample is written\r\n\t writeIndex = 0;\r\n\t\treadIndexBLow = 0;\r\n\t\treadIndexBHigh = 0;\r\n\r\n\t\tif (sweepUp) {\r\n\t\t\t// Sweeping upward, start at max delay\r\n\t\t readIndexALow = AudioConstants.SAMPLEBUFFERSIZE;\r\n\t\t\r\n\t\t}\telse\t{\r\n\t\t\r\n\t\t\t// Sweeping downward, start at min delay\r\n\t\t\tif (numberOfChannels == 1)\r\n\t\t\t\treadIndexALow = delayBufferSize - 2;\r\n\t\t\telse\r\n\t\t\t\treadIndexALow = delayBufferSize - 4;\r\n\t\t}\r\n\t\t// Initialize other read ptr\r\n\t\tif (numberOfChannels == 1)\r\n\t\t\treadIndexAHigh = readIndexALow + 1;\r\n\t\telse\r\n\t\t\treadIndexAHigh = readIndexALow + 2;\r\n\t}", "public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}", "public int getDataSource(){\n radioList = new ArrayList<Radio>();\n\n new OnlineRadioRetriever().execute(owner.getString(R.string.radio_list));\n\n\n Document doc = null;\n // Try to open an internal source file first\n try {\n String filePath = owner.getBaseContext().getFilesDir() + \"/\" + \"radios.xml\";\n //Log.i(LOG_TAG,\"FILE LOCATION: \" + filePath);\n File fXmlFile = new File(filePath);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(fXmlFile);\n\n }\n // There is no internal source file, open the default file in Res\n catch (Exception e1) {\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n doc = dBuilder.parse(owner.getResources().openRawResource(R.raw.radios));\n } catch (Exception e2) {\n //TODO: FireBase Crash report\n e2.printStackTrace();\n }\n }\n // Start reading data file, save into the list of radios\n finally {\n doc.getDocumentElement().normalize();\n\n //Log.i(LOG_TAG, \"Read radios.xml file :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"track\");\n //Log.i(LOG_TAG,\"Found \" + nList.getLength() + \" items\");\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n String title = eElement.getElementsByTagName(\"title\").item(0).getTextContent();\n String url = eElement.getElementsByTagName(\"location\").item(0).getTextContent();\n //Log.i(LOG_TAG,\"\\t\" + nNode.getNodeName() + \" #\" + temp + \": Title :\" + title + \" | Url :\" + url);\n radioList.add(new Radio(url, title));\n }\n }\n }\n\n\n if (radioList.size()>0){\n currentStation = 0;\n }\n return radioList.size();\n }", "@FXML\n\tpublic void audioManipulatorResetAllSliders() {\n\t\tsliderPitch.setValue(1);\n\t\tsliderGain.setValue(1);\n\t\tsliderEchoLength.setValue(1);\n\t\tsliderDecay.setValue(0);\n\t\tsliderFlangerLength.setValue(0.01);\n\t\tsliderWetness.setValue(0);\n\t\tsliderLfoFrequency.setValue(5);\n\t\tsliderLowPass.setValue(44100);\n\t}", "void playRadio();", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public ChooseSetOfSensors() {\n initComponents();\n formSetTable();\n }", "private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}", "public static RadiologyReport parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RadiologyReport object =\n new RadiologyReport();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RadiologyReport\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RadiologyReport)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"PatientID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"RadiologyOrderID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"RadiologyOrderID\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRadiologyOrderID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DateOfExamination\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"DateOfExamination\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDateOfExamination(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDate(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"ReportText\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ReportText\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setReportText(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public void initializeMixer() {\n\t\tinitializeSlidersAndTextFields();\n\t\tinitializeTooltips();\n\t\tinitializeRecorderListener();\n\t}", "public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }", "public int getRadio() {\n return radio;\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public AudioSource(boolean loop) {\n\t\tid = AL10.alGenSources();\n\t\tthis.loop = loop;\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n sourceToggleGroup = new ToggleGroup();\r\n this.inHouseRadio.setToggleGroup(sourceToggleGroup);\r\n this.outsourcedRadio.setToggleGroup(sourceToggleGroup);\r\n \r\n Part part = getParts().get(modifyPartIndexNum);\r\n partID = getParts().get(modifyPartIndexNum).getPartID();\r\n partIDField.setText(\"Auto Generated: \" + partID);\r\n partNameField.setText(part.getPartName());\r\n partInvField.setText(Integer.toString(part.getInStock()));\r\n partPriceField.setText(Double.toString(part.getPartPrice()));\r\n partMinField.setText(Integer.toString(part.getMin()));\r\n partMaxField.setText(Integer.toString(part.getMax()));\r\n if (part instanceof inHouse){\r\n companyMachineLabel.setText(\"Machine ID\");\r\n companyMachineField.setText(Integer.toString(((inHouse) part).getMachineID()));\r\n inHouseRadio.setSelected(true);\r\n }\r\n else {\r\n companyMachineLabel.setText(\"Company Name\");\r\n companyMachineField.setText(((outSourced) part).getCompanyName());\r\n outsourcedRadio.setSelected(true);\r\n }\r\n }", "public void setRingSettings(char[] ringSettings){\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t}", "private synchronized void setSignals(SignalEvent event)\r\n\t{\r\n\t\tfor(int i = 0;i < event.getLeftSignal().length; i++)\r\n\t\t{\r\n\t\t\tif(llleftSamples.size() < maxSize/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY ));\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllleftSamples.removeFirst();\r\n\t\t\t\tllleftSamples.add((int) (100 - event.getLeftSignal()[i] * 100 * zoomY));\r\n\t\t\t\tllrightSamples.removeFirst();\r\n\t\t\t\tllrightSamples.add((int) (100 - event.getRightSignal()[i] * 100 * zoomY));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<event.getfftHelperObj().getFFTSignal().length;i++)\r\n\t\t{\t\t\r\n\t\t\tif(llFFTSamples.size() < (fftSize/2)/zoomX)\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY ));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tllFFTSamples.removeFirst();\r\n\t\t\t\tllFFTSamples.add((int) (maxSizeFFt * event.getfftHelperObj().getFFTSignal()[i] * zoomY));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcnt++;\r\n\t}", "public void setAudioPort(int port);", "private Builder(edu.pa.Rat other) {\n super(edu.pa.Rat.SCHEMA$);\n if (isValidValue(fields()[0], other.time)) {\n this.time = data().deepCopy(fields()[0].schema(), other.time);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.frequency)) {\n this.frequency = data().deepCopy(fields()[1].schema(), other.frequency);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.convolution)) {\n this.convolution = data().deepCopy(fields()[2].schema(), other.convolution);\n fieldSetFlags()[2] = true;\n }\n }", "public RadioModel(Operation operation) {\n this.operation = operation;\n }", "@Override\n protected void initialize() {\n encoderMotor = new TalonSRX(RobotMap.LeftFrontTurn);\n encoderMotor.configSelectedFeedbackSensor(FeedbackDevice.PulseWidthEncodedPosition, 0, 10);\n }", "public void makeSameAs(TypeQualifierValueSet source) {\n reset(source.state);\n this.valueMap.putAll(source.valueMap);\n copySourceSinkInfoSetMap(this.whereAlways, source.whereAlways);\n copySourceSinkInfoSetMap(this.whereNever, source.whereNever);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public MagnitudeSignal(MagnitudeSignal s) {\n\t\tsuper(s);\n\t}", "public StateBaseStream(AI automation, IEventSync eventSync){\n super(automation, eventSync);\n }", "@Override\n public void initNetworkValues() {\n\n setNetworkObjectType(NetworkObjectType.ROCKET);\n\n }", "public StreamControl(StreamControl source) {\n if (source.StreamId != null) {\n this.StreamId = new String(source.StreamId);\n }\n if (source.DisableRecord != null) {\n this.DisableRecord = new Boolean(source.DisableRecord);\n }\n if (source.DisableAudio != null) {\n this.DisableAudio = new Boolean(source.DisableAudio);\n }\n if (source.PullSmallVideo != null) {\n this.PullSmallVideo = new Boolean(source.PullSmallVideo);\n }\n }", "public AudioApp(RtpStreamSender sender, RtpStreamReceiver receiver, boolean symmetric_rtp, Log log)\n { this.log=log;\n this.sender=sender;\n this.receiver=receiver;\n this.symmetric_rtp=symmetric_rtp;\n printLog(\"codec: [unknown]\",Log.LEVEL_MEDIUM);\n }", "void setemisoraRadio(){\n emisoraRadio = !emisoraRadio;\n }", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "private void setClockSource(byte source) {\n try {\n i2cDevice.writeRegByte(MPU6050_RA_PWR_MGMT_1, source);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to set clock source\", e);\n }\n }", "public void setRadioButtons() throws InterruptedException {\n\t\tList<HtmlRadioButton> radioButtons = getMainWindow().getDocument().getControls().getRadioButtons();\n\t\t\n\t\tfor (HtmlRadioButton rb : radioButtons){\n\t\t\trb.setChecked(true);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public AbstractSRLabeler(JointFtrXml[] xmls, AbstractFrames frames)\n\t{\n\t\tsuper(xmls);\n\t\tm_down = new Prob1DMap();\n\t\tm_up = new Prob1DMap();\n\t\tm_frames = frames;\n\t}", "void setSignalPeriod(double signalPeriod);", "private void defineSignalSet() {\n\t\tevents = new ArrayList<OutputEventPort>();\t\t\n\n\t\tfor (ThreadImplementation tw : allThreads) {\n\t\t\tevents.addAll(tw.getOutputEventPortList());\n\t\t\tevents.addAll(tw.getOutputEventDataPortList());\n\t\t}\n\t}", "public WifiRadioUsage buildWifiRadioUsageProto() {\n WifiRadioUsage m = new WifiRadioUsage();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n }\n return m;\n }", "public RenkoIndicator(TimeSeries series) {\r\n\t\tsuper(series);\r\n\t\tthis.series = series;\r\n\t}" ]
[ "0.6481133", "0.62113726", "0.6094551", "0.5955257", "0.5953187", "0.5946707", "0.59260625", "0.58696353", "0.5832441", "0.5743551", "0.5734902", "0.57286936", "0.55368", "0.55325896", "0.55084974", "0.5492369", "0.5479621", "0.54676616", "0.54584324", "0.5358521", "0.5193017", "0.50771606", "0.5047625", "0.50355005", "0.5002984", "0.4969306", "0.49378836", "0.49035382", "0.48895636", "0.48751795", "0.4841012", "0.48222446", "0.48175412", "0.47908044", "0.47747734", "0.47687677", "0.46740335", "0.46563148", "0.46559304", "0.46545202", "0.46534485", "0.46225703", "0.45830432", "0.4580851", "0.45441294", "0.45354065", "0.452395", "0.45190167", "0.44938138", "0.44938138", "0.44791058", "0.44775715", "0.44724277", "0.44530794", "0.44436836", "0.4439588", "0.44344327", "0.44311213", "0.44292718", "0.44266263", "0.44238818", "0.44173974", "0.4416911", "0.44079497", "0.440104", "0.4399893", "0.43955463", "0.4395371", "0.43951803", "0.43860316", "0.43835545", "0.43789694", "0.43757233", "0.4370748", "0.43685833", "0.43639895", "0.43636927", "0.4361321", "0.4358161", "0.4354892", "0.4351173", "0.43493897", "0.4337225", "0.4328181", "0.43272012", "0.43250665", "0.43206108", "0.43202478", "0.43171972", "0.4313857", "0.43134734", "0.43127912", "0.43124977", "0.4311542", "0.43108803", "0.43068177", "0.43041903", "0.43040413", "0.42993566", "0.4297375" ]
0.4905657
27
Gets initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's). If not defined, average value of received power readings will be used. If transmitted power estimation is enabled, estimation will start at this value and will converte the most appropriate value. If transmitted power estimation is disabled, this value will be assumed to be exact and the estimated transmitted power will be equal to this value (converted to dBm's).
public Double getInitialTransmittedPowerdBm() { return mInitialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "public Double getEstimatedTransmittedPower() {\n return mEstimatedTransmittedPowerdBm != null ?\n Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null;\n }", "java.lang.String getTxpower();", "int readHCITxPower() {\n\t\t\t\n\t\t\tif ( Beacon.hciTxPower != Integer.MAX_VALUE) {\n\t\t\t\treturn Beacon.hciTxPower;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * some points on TX Power: it is *not* the power used by the BLE chip. Instead it is the power\n\t\t\t * measured 1 m away from the sender.\n\t\t\t * https://stackoverflow.com/questions/37268460/beacon-why-we-need-calibrate-tx-power\n\t\t\t * \n\t\t\t * So we try to get this value from the properties or use a default. Querying HCI would give the wrong value,\n\t\t\t * namely the actual sending power, not the power measured 1 m away.\n\t\t\t */\n\t\t\t\n\t\t\tfinal Properties props = Beacon.getProps();\n\t\t\t\n\t\t\t// we expect a 2 hex-digit value using two's complement.\n\t\t\tfinal String txPwr = props.getProperty( \"beacon.txPower\", \"-50\");\n\t\t\tint txPowerLevel = Integer.parseInt( txPwr, 10);\n\t\t\tif ( txPowerLevel < HCI_Command.TX_POWER_MIN || txPowerLevel > HCI_Command.TX_POWER_MAX) {\n\t\t\t\tthrow new IllegalArgumentException( \"power level property out of range: \" + txPwr);\n\t\t\t}\n\t\t\t\n\t\t\tBeacon.hciTxPower = txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t/**\n\t\t\tString hciCmd = getReadAdvertisingPhysicalChannelTxPower();\n\t\t\t\n\t\t\tlogger.info( \"ReadAdvertisingPhysicalChannelTxPowerCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"READ_TX_POWER_CMD=\" + hciCmd\n\t\t\t} ;\n\t\t\t\n\t\t\tfinal String cmd = \"./scripts/read_tx_power\";\n\t\t\t\n\t\t\t// https://en.wikipedia.org/wiki/DBm are words of wisdom on dBm power measurement\n\t\t\t// some default value... -50 decimal\n\t\t\tthis.txPowerLevel = (byte) 0xCE;\n\t\t\t\n\t\t\t// the Dell/Ubuntu/bluez/hcitool returns a power level of 0x07. which is ridiculously high.\n\t\t\t// thus I suspect a bug somewhere and just use a default value\n\t\t\tboolean ENABLE_HCI_READ_TX_POWER = false;\n\t\t\tif ( ENABLE_HCI_READ_TX_POWER) {\n\t\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t\t}\n\t\t\t\n\t\t\t// Range: -127 to 20, Units: dBm, Accuracy: ±4 dB\t\t\t\n\t\t\tassert( this.txPowerLevel >= -127 && this.txPowerLevel <= 20); // dBm\n\t\t\t\n\t\t\tBeacon.hciTxPower = this.txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t*/\n\t\t}", "com.google.protobuf.ByteString\n getTxpowerBytes();", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public double getPower()\n {\n final String funcName = \"getPower\";\n double power = motor.get();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", power);\n }\n\n return power;\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public Double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\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 txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getInputPower() {\n return this.inputPower;\n }", "EDataType getReactivePower();", "private void calculateOutputPower() { \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n if (this.inputPower - this.rms >= 0) {\n setOutputPower(this.inputPower - this.rms);\n } else {\n setOutputPower(0);\n }\n }\n channel.updateOutput();\n }", "public double getConsumedPower() {\n return mPowerComponents.getConsumedPower(UNSPECIFIED_DIMENSIONS);\n }", "BigInteger getPower_consumption();", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public int getPower() {\n return PA_POW_reg.getPower();\n }", "public long getMeasRcvdPowerdBm() {\r\n return measRcvdPowerdBm;\r\n }", "public int getCurrentSpecialPower() {\n return currentSpecialPower;\n }", "double a_hang_power ()\n {\n double l_return = 0.0;\n\n if (hang_motor != null) {\n l_return = hang_motor.getPower();\n }\n\n return l_return;\n }", "public int getPower() {\n\t\treturn aerodynamics.getPower()+engine.getPower()+suspension.getPower()+breaks.getPower()+tires.getPower();\n\t}", "float getPower();", "public int getPower() {\n\t\treturn 0;\r\n\t}", "public Builder setTxpowerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public double getInitialElectricityProduction() {\r\n\t\treturn initialElectricityProduction;\r\n\t}", "public double getPower() {\r\n return power;\r\n }", "double a_intake_power ()\n {\n double l_return = 0.0;\n\n if (fly_wheel != null) {\n l_return = fly_wheel.getPower();\n }\n\n return l_return;\n }", "float getPreGain();", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "public int get_power() {\r\n\t\treturn this._power;\r\n\t}", "public float getPower() {\n return power_;\n }", "public float getPower() {\n return power_;\n }", "public double getPower() {\n return power;\n }", "public double getInitialElectricityInput() {\r\n\t\treturn initialElectricityInput;\r\n\t}", "public double getPower()\n {\n return this.power;\n }", "public int getPower() {\n \t\treturn power;\n \t}", "public int getPower();", "public int getPower() {\n return this.power;\n }", "public Builder clearTxpower() {\n bitField0_ = (bitField0_ & ~0x00001000);\n txpower_ = getDefaultInstance().getTxpower();\n onChanged();\n return this;\n }", "public double getMeterPower() {\n final double current = this.getMeterCurrent().isPresent() ? this.getMeterCurrent().get() : 0;\n final double voltage = this.getMeterVoltage().isPresent() ? this.getMeterVoltage().get() : 0;\n return current * voltage;\n }", "public synchronized int getCurrentRssi() {\n initNetwork();\n return currentSignalStrength;\n }", "double a_left_front_drive_power()\n {\n double l_return = 0.0;\n if (left_front_drv_Motor != null)\n {\n l_return = left_front_drv_Motor.getPower ();\n }\n\n return l_return;\n\n }", "@Override\n\tpublic int getPower() {\n\t\treturn power;\n\t}", "public float getPowerMultiplier() { return 0.5F; }", "java.lang.String getTxpowerOffset();", "public int getPower(){\n\t\treturn this.power;\n\t}", "@Override\r\n\tpublic float getEnergyConsumption() {\r\n\t\treturn 2500 - robot.getBatteryLevel();\r\n\t}", "public Builder setTxpower(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void makeDecision() {\n\t\tint powerMax = (int)(initPower) / 100;\n\t\tint powerMin = (int)(initPower * 0.3) / 100;\n\n\t\t// The value is calculated randomly from 0 to 10% of the initial power\n\t\tRandom rand = new Random();\n\t\tint actualPower = rand.nextInt((powerMax - powerMin) + 1) + powerMin;\n\t\tanswer.setConsumption(actualPower);\n\t}", "public com.google.protobuf.ByteString\n getTxpowerOffsetBytes() {\n java.lang.Object ref = txpowerOffset_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpowerOffset_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getMinTransfer() {\n\t\treturn minTransfer;\n\t}", "public java.lang.String getTxpowerOffset() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "EDataType getActivePower();", "com.google.protobuf.ByteString\n getTxpowerOffsetBytes();", "public int getSignalStrength() {\n return mSignalStrength;\n }", "public com.google.protobuf.ByteString\n getTxpowerOffsetBytes() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getLeftRate() {\n return leftEnc.getRate();\n }", "public ABLPower Power() {\r\n\t\treturn new ABLPower(BrickFinder.getDefault().getPower());\r\n\t}", "public double getActualWattRequest(IElectricityReceiver receiver)\r\n\t{\r\n\t\tdouble wattsRequest = receiver.wattRequest();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < electricityTransferQueue.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif (electricityTransferQueue.get(i) != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (electricityTransferQueue.get(i).isValid())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (electricityTransferQueue.get(i).receiver == receiver)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twattsRequest -= electricityTransferQueue.get(i).amps * electricityTransferQueue.get(i).voltage;\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\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tFMLLog.severe(\"Failed to get watt request!\");\r\n\t\t}\r\n\r\n\t\treturn Math.max(Math.min(wattsRequest, receiver.wattRequest()), 0);\r\n\t}", "public java.lang.String getTxpowerOffset() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = s;\n }\n return s;\n }\n }", "int getChargerCurrentRaw();", "public java.math.BigDecimal getPwrval() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.math.BigDecimal) __getCache(\"pwrval\")));\n }", "public static String getReadAdvertisingPhysicalChannelTxPower() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append( String.format( \"0x%02x 0x%04x \", HCI_Command.HCI_LE_Controller_OGF, HCI_Command.HCI_LE_Read_Advertising_Physical_Channel_Tx_Power_OCF));\n\t\t\n\t\treturn sb.toString();\n\t}", "public Double getEstimatedTransmittedPowerVariance() {\n return mEstimatedTransmittedPowerVariance;\n }", "public Double getEstimatedTransmittedPowerVariance() {\n return mEstimatedTransmittedPowerVariance;\n }", "public java.math.BigDecimal getInput_power()\n\t\tthrows java.rmi.RemoteException;", "public IntegerProperty getControlAmplitude() {\n return this.inputAdjuster.getCurrentAmplitude();\n }", "public WifiPowerStats buildProto() {\n WifiPowerStats m = new WifiPowerStats();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.energyConsumedMah = stats.getEnergyConsumedMaMillis()\n / ((double) DateUtils.HOUR_IN_MILLIS);\n m.idleTimeMs = stats.getIdleTimeMillis();\n m.rxTimeMs = stats.getRxTimeMillis();\n m.txTimeMs = stats.getTxTimeMillis();\n m.wifiKernelActiveTimeMs = stats.getKernelActiveTimeMillis();\n m.numPacketsTx = stats.getNumPacketsTx();\n m.numBytesTx = stats.getNumBytesTx();\n m.numPacketsRx = stats.getNumPacketsRx();\n m.numBytesRx = stats.getNumBytesRx();\n m.sleepTimeMs = stats.getSleepTimeMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n m.monitoredRailEnergyConsumedMah = stats.getMonitoredRailChargeConsumedMaMillis()\n / ((double) DateUtils.HOUR_IN_MILLIS);\n }\n return m;\n }", "public double estimatedEnergyPerPanel() {\n\t\tif (estimatedEnergyPerPanel < 0) {\n\t\t\treturn estimatedEnergyPerPanel;\n\t\t}\n\t\t// if est. EnergyPerPanel hasn't been found yet, we find it here...\n\t\tdouble wattToKW = .001;\n\t\testimatedEnergyPerPanel = systemCap * wattToKW;\n\t\t// the returned estimated energy will factor in the powerTolerance,\n\t\t// which typically equates to percent loss on the panel\n\t\treturn estimatedEnergyPerPanel -= estimatedEnergyPerPanel\n\t\t\t\t* (.01 * powerTolerance);\n\t}", "float getMainUtteranceDynamicGain();", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public void setInitialTransmittedPowerdBm(\n final Double initialTransmittedPowerdBm) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public double getConsumedPower(Dimensions dimensions) {\n return mPowerComponents.getConsumedPower(dimensions);\n }", "public String getPowerType() {\n return this.powerType;\n }", "protected byte[] getRatedPowerConsumptionOfHPUnitInWintertime() {return null;}", "@java.lang.Override public int getPowerSourceValue() {\n return powerSource_;\n }", "public double getAvgGain() {\n\t\tif (avgGain == -1)\n\t\t\tthis.calculateAvg();\n\t\treturn avgGain;\n\t}", "float getPostGain();", "public void setInitialTransmittedPower(\n final Double initialTransmittedPower) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "public IntegerProperty getReactorAmplitude() {\n return this.reactorLine.getCurrentAmplitude();\n }", "public int getPowerMeterSum() {\r\n return powerMeterSum;\r\n }", "public int getMaxpower() {\n\t\treturn 0;\r\n\t}", "public static final float getBatteryGain() {\r\n\t\treturn BATTERY_GAIN;\r\n\t}", "public double getPowerUpProbabilityPillar() {\n \t\treturn 0.15;\n \t}", "@java.lang.Override public int getPowerSourceValue() {\n return powerSource_;\n }", "public Float getPower() {\n return power;\n }", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public float getMicGainDb();", "public double get_thermal_reading() {\n\t\t\n\t\treturn 0;\n\t}", "public void setInitialTransmittedPower(final Double initialTransmittedPower)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public int getAttackPower() {\n return attackPower;\n }" ]
[ "0.7101164", "0.7101164", "0.64035726", "0.6352203", "0.61967164", "0.6099152", "0.5962396", "0.5880042", "0.5840612", "0.583905", "0.58370316", "0.5826514", "0.58080226", "0.5807924", "0.57713133", "0.5614726", "0.56024206", "0.551177", "0.5509179", "0.5475459", "0.5450272", "0.5446192", "0.54418653", "0.5394785", "0.5372586", "0.53719383", "0.53528845", "0.5340534", "0.53362036", "0.5336028", "0.5324916", "0.5313656", "0.5311936", "0.5304793", "0.5293827", "0.5289623", "0.5277483", "0.52772075", "0.52706325", "0.52586085", "0.52551115", "0.5244892", "0.5225369", "0.5224041", "0.521525", "0.51878256", "0.51778007", "0.5158466", "0.51532483", "0.51456493", "0.51437646", "0.5139466", "0.5133468", "0.51210606", "0.5120306", "0.5118791", "0.5115127", "0.5110383", "0.5109215", "0.5107277", "0.50959015", "0.5092471", "0.507516", "0.5063596", "0.50616246", "0.50533384", "0.50486946", "0.5039001", "0.5034521", "0.5034521", "0.50274557", "0.5021308", "0.50172836", "0.50085247", "0.50055176", "0.49897936", "0.49897936", "0.4974207", "0.49719077", "0.4971475", "0.49631438", "0.49565357", "0.495366", "0.49513415", "0.49496195", "0.4939592", "0.49379605", "0.49205375", "0.4915142", "0.4912243", "0.49106362", "0.49082857", "0.49035808", "0.4901893", "0.48942897", "0.48830533", "0.4878329", "0.4878329", "0.487771" ]
0.6599556
3
Sets initial transmitted power to start the estimation of radio source transmitted power (expressed in dBm's). If not defined, average value of received power readings will be used. If transmitted power estimation is enabled, estimation will start at this value and will converte the most appropriate value. If transmitted power estimation is disabled, this value will be assumed to be exact and the estimated transmitted power will be equal to this value (converted to dBm's).
public void setInitialTransmittedPowerdBm(final Double initialTransmittedPowerdBm) throws LockedException { if (isLocked()) { throw new LockedException(); } mInitialTransmittedPowerdBm = initialTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInitialTransmittedPower(\n final Double initialTransmittedPower) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "public void setInitialTransmittedPower(final Double initialTransmittedPower)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "public void setInitialTransmittedPowerdBm(\n final Double initialTransmittedPowerdBm) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Builder setTxpowerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public Builder setTxpower(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public Builder clearTxpower() {\n bitField0_ = (bitField0_ & ~0x00001000);\n txpower_ = getDefaultInstance().getTxpower();\n onChanged();\n return this;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public void setTransmittedPowerEstimationEnabled(\n final boolean transmittedPowerEstimationEnabled)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mTransmittedPowerEstimationEnabled = transmittedPowerEstimationEnabled;\n }", "public void setTransmittedPowerEstimationEnabled(\n final boolean transmittedPowerEstimationEnabled)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mTransmittedPowerEstimationEnabled = transmittedPowerEstimationEnabled;\n }", "@Override\n\tpublic void setPower(double power) {\n\t\tif (Math.abs(this.power - power) > getMaxChange()) {\n\t\t\tthis.power += getMaxChange();\n\t\t}\n\t\t// If it is smaller than minimum change, then the current power is equal to the sum of\n\t\t// previous power and the minimum change.\n\t\telse if (Math.abs(this.power - power) < getMinChange()) {\n\t\t\tthis.power = (power + getMinChange());\n\t\t}\n\t\t\n\t\t// Then check the current power\n\t\t// If the current power is greater than maximum power, then assign the current power to maximum power.\n\t\tif (this.power > getMaxPower()) {\n\t\t\tthis.power = getMaxPower();\n\t\t} \n\t\t// If it is smaller than minimum power, then it equals to minimum power.\n\t\telse if (this.power < getMinPower()) {\n\t\t\tthis.power = getMinPower();\n\t\t} \n\t\t// And if it is between the interval of minimum and maximum power, simply assign it to that value.\n\t\telse {\n\t\t\tthis.power = power;\n\t\t}\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setChannelTxPower(PowerLevel power){\n this.level = power;\n \n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public void setPower(double power) {\n this.power = power;\n intake.set(power);\n }", "@Override\n public void setPower(double power) {\n\n }", "@Override\n\tpublic void makeDecision() {\n\t\tint powerMax = (int)(initPower) / 100;\n\t\tint powerMin = (int)(initPower * 0.3) / 100;\n\n\t\t// The value is calculated randomly from 0 to 10% of the initial power\n\t\tRandom rand = new Random();\n\t\tint actualPower = rand.nextInt((powerMax - powerMin) + 1) + powerMin;\n\t\tanswer.setConsumption(actualPower);\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "@Override\n public void setPower(double power) {\n this.power = power;\n }", "public void setInputPower(int power) {\n this.inputPower = power;\n }", "public Builder setTxpowerOffsetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n txpowerOffset_ = value;\n onChanged();\n return this;\n }", "public void setInitialElectricityInput(double initialElectricityInput) {\r\n\t\tthis.initialElectricityInput = initialElectricityInput;\r\n\t}", "public void setTension(double power){\n int T_limit = 0;\n int L_limit = 0;\n if(tenPot.pidGet() < tenPotMAX && !Bottom_Limit_Switch.get()){\n L_limit = -1;\n }\n if(tenPot.pidGet() > tenPotMIN && !Top_Limit_Switch.get()){\n T_limit = 1;\n }\n if(power <= T_limit && power >= L_limit){\n motor.set(power);\n }else if(power > T_limit){\n motor.set(T_limit);\n }else if(power < L_limit){\n motor.set(L_limit);\n }\n }", "public void setPower(int power) {\n\t\t\r\n\t}", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "public void setInitialElectricityProduction(double initialElectricityProduction) {\r\n\t\tthis.initialElectricityProduction = initialElectricityProduction;\r\n\t}", "public void setPower(int power) {\n \t\tthis.power = power;\n \t}", "private void calculateOutputPower() { \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n if (this.inputPower - this.rms >= 0) {\n setOutputPower(this.inputPower - this.rms);\n } else {\n setOutputPower(0);\n }\n }\n channel.updateOutput();\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public Builder setTxpowerOffset(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n txpowerOffset_ = value;\n onChanged();\n return this;\n }", "public Double getEstimatedTransmittedPower() {\n return mEstimatedTransmittedPowerdBm != null ?\n Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null;\n }", "public Builder clearTxpowerOffset() {\n bitField0_ = (bitField0_ & ~0x00002000);\n txpowerOffset_ = getDefaultInstance().getTxpowerOffset();\n onChanged();\n return this;\n }", "public void setPower(Float power) {\n this.power = power;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public static void setPower(double power) {\n\t\tsetLeftPower(power);\n\t\tsetRightPower(power);\n\t}", "@Override\n public void setMotorPower(double power)\n {\n final String funcName = \"setMotorPower\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"value=%f\", power);\n }\n\n if (power != currPower)\n {\n motor.set(power);\n currPower = power;\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"! (value=%f)\", power);\n }\n }", "java.lang.String getTxpower();", "int readHCITxPower() {\n\t\t\t\n\t\t\tif ( Beacon.hciTxPower != Integer.MAX_VALUE) {\n\t\t\t\treturn Beacon.hciTxPower;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * some points on TX Power: it is *not* the power used by the BLE chip. Instead it is the power\n\t\t\t * measured 1 m away from the sender.\n\t\t\t * https://stackoverflow.com/questions/37268460/beacon-why-we-need-calibrate-tx-power\n\t\t\t * \n\t\t\t * So we try to get this value from the properties or use a default. Querying HCI would give the wrong value,\n\t\t\t * namely the actual sending power, not the power measured 1 m away.\n\t\t\t */\n\t\t\t\n\t\t\tfinal Properties props = Beacon.getProps();\n\t\t\t\n\t\t\t// we expect a 2 hex-digit value using two's complement.\n\t\t\tfinal String txPwr = props.getProperty( \"beacon.txPower\", \"-50\");\n\t\t\tint txPowerLevel = Integer.parseInt( txPwr, 10);\n\t\t\tif ( txPowerLevel < HCI_Command.TX_POWER_MIN || txPowerLevel > HCI_Command.TX_POWER_MAX) {\n\t\t\t\tthrow new IllegalArgumentException( \"power level property out of range: \" + txPwr);\n\t\t\t}\n\t\t\t\n\t\t\tBeacon.hciTxPower = txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t/**\n\t\t\tString hciCmd = getReadAdvertisingPhysicalChannelTxPower();\n\t\t\t\n\t\t\tlogger.info( \"ReadAdvertisingPhysicalChannelTxPowerCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"READ_TX_POWER_CMD=\" + hciCmd\n\t\t\t} ;\n\t\t\t\n\t\t\tfinal String cmd = \"./scripts/read_tx_power\";\n\t\t\t\n\t\t\t// https://en.wikipedia.org/wiki/DBm are words of wisdom on dBm power measurement\n\t\t\t// some default value... -50 decimal\n\t\t\tthis.txPowerLevel = (byte) 0xCE;\n\t\t\t\n\t\t\t// the Dell/Ubuntu/bluez/hcitool returns a power level of 0x07. which is ridiculously high.\n\t\t\t// thus I suspect a bug somewhere and just use a default value\n\t\t\tboolean ENABLE_HCI_READ_TX_POWER = false;\n\t\t\tif ( ENABLE_HCI_READ_TX_POWER) {\n\t\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t\t}\n\t\t\t\n\t\t\t// Range: -127 to 20, Units: dBm, Accuracy: ±4 dB\t\t\t\n\t\t\tassert( this.txPowerLevel >= -127 && this.txPowerLevel <= 20); // dBm\n\t\t\t\n\t\t\tBeacon.hciTxPower = this.txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t*/\n\t\t}", "public void setInput_power(java.math.BigDecimal newInput_power)\n\t\tthrows java.rmi.RemoteException;", "public void setPower(int power) {\n\t\tthis.power = power;\n\t}", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private void updatePowerState() {\n final boolean mustNotify;\n boolean mustInitialize = false;\n synchronized (mLock) {\n mPendingUpdatePowerStateLocked = false;\n if (mPendingRequestLocked == null) {\n return; // wait until first actual power request\n }\n\n if (mPowerRequest == null) {\n mPowerRequest = new DisplayPowerRequest(mPendingRequestLocked);\n mWaitingForNegativeProximity = mPendingWaitForNegativeProximityLocked;\n mPendingRequestChangedLocked = false;\n mustInitialize = true;\n } else if (mPendingRequestChangedLocked) {\n mPowerRequest.copyFrom(mPendingRequestLocked);\n mWaitingForNegativeProximity |= mPendingWaitForNegativeProximityLocked;\n mPendingRequestChangedLocked = false;\n mDisplayReadyLocked = false;\n }\n\n mustNotify = !mDisplayReadyLocked;\n }\n\n // Initialize things the first time the power state is changed.\n if (mustInitialize) {\n initialize();\n }\n\n // Clear a request to wait for negative proximity if needed.\n if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_OFF\n || mProximity == PROXIMITY_NEGATIVE\n || mProximitySensor == null) {\n mWaitingForNegativeProximity = false;\n }\n\n // Turn on the proximity sensor if needed.\n if (mProximitySensor != null) {\n setProximitySensorEnabled(mPowerRequest.useProximitySensor\n || mWaitingForNegativeProximity);\n if (mProximitySensorEnabled && mProximity == PROXIMITY_POSITIVE) {\n mScreenOffBecauseOfProximity = true;\n setScreenOn(false);\n } else if (mScreenOffBecauseOfProximity) {\n mScreenOffBecauseOfProximity = false;\n sendOnProximityNegative();\n }\n }\n\n // Turn on the light sensor if needed.\n if (mLightSensor != null) {\n setLightSensorEnabled(mPowerRequest.useAutoBrightness\n && wantScreenOn(mPowerRequest.screenState));\n }\n\n // Set the screen brightness.\n if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_DIM) {\n // Screen is dimmed. Overrides everything else.\n animateScreenBrightness(mScreenBrightnessDimConfig, BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = false;\n } else if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_BRIGHT) {\n if (mScreenAutoBrightness >= 0 && mLightSensorEnabled) {\n // Use current auto-brightness value.\n animateScreenBrightness(\n Math.max(mScreenAutoBrightness, mScreenBrightnessDimConfig),\n mUsingScreenAutoBrightness ? BRIGHTNESS_RAMP_RATE_SLOW :\n BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = true;\n } else {\n // Light sensor is disabled or not ready yet.\n // Use the current brightness setting from the request, which is expected\n // provide a nominal default value for the case where auto-brightness\n // is not ready yet.\n animateScreenBrightness(\n Math.max(mPowerRequest.screenBrightness, mScreenBrightnessDimConfig),\n BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = false;\n }\n } else {\n // Screen is off. Don't bother changing the brightness.\n mUsingScreenAutoBrightness = false;\n }\n\n // Animate the screen on or off.\n if (!mScreenOffBecauseOfProximity) {\n if (wantScreenOn(mPowerRequest.screenState)) {\n // Want screen on.\n // Wait for previous off animation to complete beforehand.\n // It is relatively short but if we cancel it and switch to the\n // on animation immediately then the results are pretty ugly.\n if (!mElectronBeamOffAnimator.isStarted()) {\n setScreenOn(true);\n if (!mElectronBeamOnAnimator.isStarted()) {\n if (mPowerState.getElectronBeamLevel() == 1.0f) {\n mPowerState.dismissElectronBeam();\n } else if (mPowerState.prepareElectronBeam(true)) {\n mElectronBeamOnAnimator.start();\n } else {\n mElectronBeamOnAnimator.end();\n }\n }\n }\n } else {\n // Want screen off.\n // Wait for previous on animation to complete beforehand.\n if (!mElectronBeamOnAnimator.isStarted()) {\n if (!mElectronBeamOffAnimator.isStarted()) {\n if (mPowerState.getElectronBeamLevel() == 0.0f) {\n setScreenOn(false);\n } else if (mPowerState.prepareElectronBeam(false)\n && mPowerState.isScreenOn()) {\n mElectronBeamOffAnimator.start();\n } else {\n mElectronBeamOffAnimator.end();\n }\n }\n }\n }\n }\n\n // Report whether the display is ready for use.\n // We mostly care about the screen state here, ignoring brightness changes\n // which will be handled asynchronously.\n if (mustNotify\n && !mElectronBeamOnAnimator.isStarted()\n && !mElectronBeamOffAnimator.isStarted()\n && mPowerState.waitUntilClean(mCleanListener)) {\n synchronized (mLock) {\n if (!mPendingRequestChangedLocked) {\n mDisplayReadyLocked = true;\n }\n }\n sendOnStateChanged();\n }\n }", "public void setPwrval( java.math.BigDecimal newValue ) {\n __setCache(\"pwrval\", newValue);\n }", "public void setMinimumWaterRequirement(double w) {\n this.Minimum_Water_Requirement = w;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "@Override\r\n public void start() {\r\n runtime.reset();\r\n FL.setPower(1);\r\n FR.setPower(1);\r\n BR.setPower(1);\r\n BL.setPower(1);\r\n try{\r\n Thread.sleep(850);\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n FL.setPower(0);\r\n FR.setPower(0);\r\n BL.setPower(0);\r\n BR.setPower(0); \r\n }", "public void setMinTransfer(double minTransfer) {\n\t\tthis.minTransfer = minTransfer;\n\t}", "public void setPower(boolean power){\n this.power = power;\n }", "public void setPower(double pow) {\n \tthis.powerIn = pow;\n }", "public void power()\r\n {\r\n powerOn = true;\r\n }", "static public void setInterpPower(int pwr) {\n //Currently must be invoked from P5 as PTriangle.setInterpPower(...)\n TEX_INTERP_POWER = pwr;\n }", "private void setLowSensitivity() {\n\t\tbuttonLowOn.setVisibility(View.VISIBLE);\n\t\tbuttonMedOn.setVisibility(View.INVISIBLE);\n\t\tbuttonHighOn.setVisibility(View.INVISIBLE);\n\t\t\n\t\tLUT[0] = 2;\n\t\tLUT[1] = (float)6;\n\t\tLUT[2] = (float)10;\n\t\tLUT[3] = (float)20;\n\t\tLUT[4] = (float)30;\n\t\tLUT[5] = (float)150;\n\t\tLUT[6] = (float)700;\n\t\tLUT[7] = (float)2000;\n\t\tLUT[8] = (float)4000;\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "void setWagerMinimum(java.math.BigDecimal wagerMinimum);", "void xsetWagerMinimum(org.apache.xmlbeans.XmlDecimal wagerMinimum);", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "com.google.protobuf.ByteString\n getTxpowerBytes();", "public float getPowerMultiplier() { return 0.5F; }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "void setNilSingleBetMinimum();", "public Builder clearPower() {\n bitField0_ = (bitField0_ & ~0x00000040);\n power_ = 0F;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\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 txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public void setMinWeight(double inMinWeight) {\n minWeight = inMinWeight;\n }", "public void setOutputPower(double power) {\n double powerOutput = (double) ((int) Math.round(power * 10) / 10.0);\n outputPower.set(powerOutput);\n }", "void setMinActiveAltitude(double minActiveAltitude);", "public void initEncoderTxData()\n\t{\n\t\tfor(counter_i=0;counter_i<sampleBit;counter_i++)\n\t\t{\n\t\t\thighLevel[counter_i] = (short) (audioAM * (-Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t\tlowLevel[counter_i] = (short) (audioAM * (Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t}\n\t}", "public void resetPot() {\n m_minRawAngle = getRawAngle();\n }", "public Builder setPower(float value) {\n bitField0_ |= 0x00000040;\n power_ = value;\n onChanged();\n return this;\n }", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public void setPower(double pow){\n if(pow > 0) {\n crServo.setPower(ZERO_POWER_POSITION + (1 - ZERO_POWER_POSITION) * pow);\n } else if (pow < 0) {\n crServo.setPower(ZERO_POWER_POSITION * (1 + pow));\n } else {\n crServo.setPower(ZERO_POWER_POSITION);\n }\n }", "public void setCurrentSpecialPower(int curS) {\n currentSpecialPower = curS;\n }", "public void start() {\n rfMotor.setPower(1);\n rrMotor.setPower(1);\n lfMotor.setPower(1);\n lrMotor.setPower(1);\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setMaxAmplitudeZero(){ maxAmplitude=0; }", "private void init()\n {\n sendData(REG_MMXCOMMAND, MMXCOMMAND_RESET);\n Delay.msDelay(50);\n // init motor operation parameters\n for (int i=0;i<CHANNELS;i++){\n motorParams[MOTPARAM_RAMPING][i] = MOTPARAM_OP_TRUE;\n motorParams[MOTPARAM_ENCODER_BRAKING][i] = MOTPARAM_OP_TRUE;\n motorParams[MOTPARAM_POWER][i] = 0;\n motorParams[MOTPARAM_REGULATE][i] = MOTPARAM_OP_TRUE;\n doCommand(CMD_SETPOWER, 100, i); // will set motorParams[MOTPARAM_POWER][channel]\n }\n \n }", "protected void setStateToLowestEnergy() {\n\tpoints = bestEverPoints;\n\n\t// make a copy of the best points\n\tbestEverPoints = getPoints();\n\n\tbuildEnergyMatrix();\n\tstateEnergy();\n }", "private void adjustPower (TurnType dir,\n float p) {\n float adjust = Math.signum(p) * gyroSensor.adjustDirection();\n // with RUN_TO_POSITION sign of power is ignored\n // we have to clip so that (1 + adjust) and (1 - adjust) have the same sign\n adjust = Range.clip(adjust, -1, 1);\n // BNO055 positive for left turn\n float pwrl = p * (1 - adjust);\n float pwrr = p * (1 + adjust);\n\n float max = Math.max(Math.abs(pwrl), Math.abs(pwrr));\n if (max > 1f) {\n // scale to 1\n pwrl = pwrl / max;\n pwrr = pwrr / max;\n }\n setPower(pwrl,\n pwrr,\n dir);\n /*if (dir == TurnType.STRAFE) {\n long timeStamp = System.currentTimeMillis();\n if (timeStamp - logTimeStamp > 25) {\n RobotLog.i(\"Power left:\" + pwrl + \" right:\" + pwrr);\n logTimeStamp = timeStamp;\n }\n }*/\n }", "public GameSettingBuilder setInitialMoney(int initialMoney) {\n this.initialMoney = initialMoney;\n return this;\n }", "public void setPowerMeterSum(int powerMeterSum) {\r\n this.powerMeterSum = powerMeterSum;\r\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "public void rawTurret(double power) {\n double encoderAngle = turretEncoder.getDistance();\n // Prevent the turret from turning past hard stops\n if (encoderAngle >= MAX_ENCODER_VALUE && power > 0 || encoderAngle < MIN_ENCODER_VALUE && power < 0) {\n power = 0;\n }\n turretMotor.set(power);\n }", "public Builder setPowerSourceValue(int value) {\n \n powerSource_ = value;\n onChanged();\n return this;\n }", "public void setPower(double leftPower, double rightPower) {\n\t\tleftMiddleMotor.set(ControlMode.PercentOutput, leftPower);\n\t\trightMiddleMotor.set(ControlMode.PercentOutput, rightPower);\n\t}", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public void setRate(float wpm) {\n\tif (wpm > 0 && wpm < 1000) {\n\t setDurationStretch(nominalRate / wpm);\n\t}\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n }\n }", "public void manualControl(double power){\n leftMotor.set(power);\n rightMotor.set(power);\n }", "void xsetSingleBetMinimum(org.apache.xmlbeans.XmlDecimal singleBetMinimum);", "public static void resetModemTemperature() {\n\t\t\n\t}", "public void raiseFlatbed(){\n if(getCurrentSpeed() == 0){\n flatbed.raiseFlatbed();\n }\n }", "public double getInputPower() {\n return this.inputPower;\n }", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "public static void setLeftPower(double leftPower) {\n\t\tSystem.out.println(\"Left: \" + leftPower);\n\t\tShooter.leftPower = leftPower;\n\t}" ]
[ "0.63793755", "0.6316994", "0.61951005", "0.60723245", "0.60723245", "0.58750296", "0.58214605", "0.5793441", "0.5793441", "0.57496", "0.5707685", "0.5678667", "0.5678667", "0.5668518", "0.5668343", "0.5440295", "0.5352785", "0.5316241", "0.5312862", "0.5300397", "0.52846754", "0.5283173", "0.52542686", "0.52422667", "0.52195233", "0.51941967", "0.5189683", "0.5177297", "0.5169307", "0.5159105", "0.5126785", "0.5126421", "0.5119755", "0.51183516", "0.5094382", "0.5092497", "0.5046284", "0.5046025", "0.5016643", "0.5005442", "0.4994759", "0.49869022", "0.49697623", "0.4938171", "0.4931915", "0.49305323", "0.49290818", "0.492384", "0.49193457", "0.49177048", "0.49162167", "0.4890046", "0.48782954", "0.48762995", "0.4871976", "0.48686278", "0.48678774", "0.4850639", "0.48492008", "0.48446688", "0.48421478", "0.4828694", "0.4826681", "0.48231673", "0.4819182", "0.48133937", "0.48117793", "0.48107588", "0.48058537", "0.4801882", "0.48004222", "0.47835624", "0.4778308", "0.47685692", "0.4755817", "0.475114", "0.47490174", "0.47408578", "0.4738603", "0.47292918", "0.47290665", "0.47275555", "0.4726176", "0.47153902", "0.470224", "0.46998876", "0.46994686", "0.46955073", "0.46932656", "0.46910906", "0.4685709", "0.4684186", "0.46720266", "0.46661663", "0.46281353", "0.462675", "0.46021008", "0.46002534", "0.45979846", "0.45975414" ]
0.6082655
3
Gets initial transmitted power to start the estimation of radio source transmitted power (expressed in mW). If not defined, average value of received power readings will be used. If transmitted power estimation is enabled, estimation will start at this value and will converte the most appropriate value. If transmitted power estimation is disabled, this value will be assumed to be exact and the estimated transmitted power will be equal to this value (converted to dBm's).
public Double getInitialTransmittedPower() { return mInitialTransmittedPowerdBm != null ? Utils.dBmToPower(mInitialTransmittedPowerdBm) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "public Double getEstimatedTransmittedPower() {\n return mEstimatedTransmittedPowerdBm != null ?\n Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null;\n }", "java.lang.String getTxpower();", "com.google.protobuf.ByteString\n getTxpowerBytes();", "int readHCITxPower() {\n\t\t\t\n\t\t\tif ( Beacon.hciTxPower != Integer.MAX_VALUE) {\n\t\t\t\treturn Beacon.hciTxPower;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * some points on TX Power: it is *not* the power used by the BLE chip. Instead it is the power\n\t\t\t * measured 1 m away from the sender.\n\t\t\t * https://stackoverflow.com/questions/37268460/beacon-why-we-need-calibrate-tx-power\n\t\t\t * \n\t\t\t * So we try to get this value from the properties or use a default. Querying HCI would give the wrong value,\n\t\t\t * namely the actual sending power, not the power measured 1 m away.\n\t\t\t */\n\t\t\t\n\t\t\tfinal Properties props = Beacon.getProps();\n\t\t\t\n\t\t\t// we expect a 2 hex-digit value using two's complement.\n\t\t\tfinal String txPwr = props.getProperty( \"beacon.txPower\", \"-50\");\n\t\t\tint txPowerLevel = Integer.parseInt( txPwr, 10);\n\t\t\tif ( txPowerLevel < HCI_Command.TX_POWER_MIN || txPowerLevel > HCI_Command.TX_POWER_MAX) {\n\t\t\t\tthrow new IllegalArgumentException( \"power level property out of range: \" + txPwr);\n\t\t\t}\n\t\t\t\n\t\t\tBeacon.hciTxPower = txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t/**\n\t\t\tString hciCmd = getReadAdvertisingPhysicalChannelTxPower();\n\t\t\t\n\t\t\tlogger.info( \"ReadAdvertisingPhysicalChannelTxPowerCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"READ_TX_POWER_CMD=\" + hciCmd\n\t\t\t} ;\n\t\t\t\n\t\t\tfinal String cmd = \"./scripts/read_tx_power\";\n\t\t\t\n\t\t\t// https://en.wikipedia.org/wiki/DBm are words of wisdom on dBm power measurement\n\t\t\t// some default value... -50 decimal\n\t\t\tthis.txPowerLevel = (byte) 0xCE;\n\t\t\t\n\t\t\t// the Dell/Ubuntu/bluez/hcitool returns a power level of 0x07. which is ridiculously high.\n\t\t\t// thus I suspect a bug somewhere and just use a default value\n\t\t\tboolean ENABLE_HCI_READ_TX_POWER = false;\n\t\t\tif ( ENABLE_HCI_READ_TX_POWER) {\n\t\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t\t}\n\t\t\t\n\t\t\t// Range: -127 to 20, Units: dBm, Accuracy: ±4 dB\t\t\t\n\t\t\tassert( this.txPowerLevel >= -127 && this.txPowerLevel <= 20); // dBm\n\t\t\t\n\t\t\tBeacon.hciTxPower = this.txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t*/\n\t\t}", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\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 txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public Double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "@Override\n public double getPower()\n {\n final String funcName = \"getPower\";\n double power = motor.get();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", power);\n }\n\n return power;\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public double getInputPower() {\n return this.inputPower;\n }", "public double getConsumedPower() {\n return mPowerComponents.getConsumedPower(UNSPECIFIED_DIMENSIONS);\n }", "EDataType getReactivePower();", "private void calculateOutputPower() { \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n if (this.inputPower - this.rms >= 0) {\n setOutputPower(this.inputPower - this.rms);\n } else {\n setOutputPower(0);\n }\n }\n channel.updateOutput();\n }", "public int getPower() {\n return PA_POW_reg.getPower();\n }", "BigInteger getPower_consumption();", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "public double getMeterPower() {\n final double current = this.getMeterCurrent().isPresent() ? this.getMeterCurrent().get() : 0;\n final double voltage = this.getMeterVoltage().isPresent() ? this.getMeterVoltage().get() : 0;\n return current * voltage;\n }", "public int getCurrentSpecialPower() {\n return currentSpecialPower;\n }", "public Builder setTxpowerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public double getInitialElectricityProduction() {\r\n\t\treturn initialElectricityProduction;\r\n\t}", "public double getPower() {\r\n return power;\r\n }", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public long getMeasRcvdPowerdBm() {\r\n return measRcvdPowerdBm;\r\n }", "public int getPower() {\n\t\treturn 0;\r\n\t}", "public int getPower() {\n\t\treturn aerodynamics.getPower()+engine.getPower()+suspension.getPower()+breaks.getPower()+tires.getPower();\n\t}", "public float getPower() {\n return power_;\n }", "public int get_power() {\r\n\t\treturn this._power;\r\n\t}", "public float getPower() {\n return power_;\n }", "public double getPower() {\n return power;\n }", "double a_hang_power ()\n {\n double l_return = 0.0;\n\n if (hang_motor != null) {\n l_return = hang_motor.getPower();\n }\n\n return l_return;\n }", "float getPower();", "public double getPower()\n {\n return this.power;\n }", "double a_intake_power ()\n {\n double l_return = 0.0;\n\n if (fly_wheel != null) {\n l_return = fly_wheel.getPower();\n }\n\n return l_return;\n }", "float getPreGain();", "public double getInitialElectricityInput() {\r\n\t\treturn initialElectricityInput;\r\n\t}", "public int getPower() {\n \t\treturn power;\n \t}", "public int getPower() {\n return this.power;\n }", "public Builder clearTxpower() {\n bitField0_ = (bitField0_ & ~0x00001000);\n txpower_ = getDefaultInstance().getTxpower();\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n getTxpowerOffsetBytes() {\n java.lang.Object ref = txpowerOffset_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpowerOffset_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerOffsetBytes() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getTxpowerOffset() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public double getMinTransfer() {\n\t\treturn minTransfer;\n\t}", "public int getPower();", "public Builder setTxpower(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public float getPowerMultiplier() { return 0.5F; }", "@Override\n\tpublic int getPower() {\n\t\treturn power;\n\t}", "public java.lang.String getTxpowerOffset() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = s;\n }\n return s;\n }\n }", "public int getPower(){\n\t\treturn this.power;\n\t}", "java.lang.String getTxpowerOffset();", "com.google.protobuf.ByteString\n getTxpowerOffsetBytes();", "public double getActualWattRequest(IElectricityReceiver receiver)\r\n\t{\r\n\t\tdouble wattsRequest = receiver.wattRequest();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < electricityTransferQueue.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif (electricityTransferQueue.get(i) != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (electricityTransferQueue.get(i).isValid())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (electricityTransferQueue.get(i).receiver == receiver)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twattsRequest -= electricityTransferQueue.get(i).amps * electricityTransferQueue.get(i).voltage;\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\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tFMLLog.severe(\"Failed to get watt request!\");\r\n\t\t}\r\n\r\n\t\treturn Math.max(Math.min(wattsRequest, receiver.wattRequest()), 0);\r\n\t}", "public WifiPowerStats buildProto() {\n WifiPowerStats m = new WifiPowerStats();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.energyConsumedMah = stats.getEnergyConsumedMaMillis()\n / ((double) DateUtils.HOUR_IN_MILLIS);\n m.idleTimeMs = stats.getIdleTimeMillis();\n m.rxTimeMs = stats.getRxTimeMillis();\n m.txTimeMs = stats.getTxTimeMillis();\n m.wifiKernelActiveTimeMs = stats.getKernelActiveTimeMillis();\n m.numPacketsTx = stats.getNumPacketsTx();\n m.numBytesTx = stats.getNumBytesTx();\n m.numPacketsRx = stats.getNumPacketsRx();\n m.numBytesRx = stats.getNumBytesRx();\n m.sleepTimeMs = stats.getSleepTimeMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n m.monitoredRailEnergyConsumedMah = stats.getMonitoredRailChargeConsumedMaMillis()\n / ((double) DateUtils.HOUR_IN_MILLIS);\n }\n return m;\n }", "double a_left_front_drive_power()\n {\n double l_return = 0.0;\n if (left_front_drv_Motor != null)\n {\n l_return = left_front_drv_Motor.getPower ();\n }\n\n return l_return;\n\n }", "@Override\r\n\tpublic float getEnergyConsumption() {\r\n\t\treturn 2500 - robot.getBatteryLevel();\r\n\t}", "public Double getEstimatedTransmittedPowerVariance() {\n return mEstimatedTransmittedPowerVariance;\n }", "public Double getEstimatedTransmittedPowerVariance() {\n return mEstimatedTransmittedPowerVariance;\n }", "public double estimatedEnergyPerPanel() {\n\t\tif (estimatedEnergyPerPanel < 0) {\n\t\t\treturn estimatedEnergyPerPanel;\n\t\t}\n\t\t// if est. EnergyPerPanel hasn't been found yet, we find it here...\n\t\tdouble wattToKW = .001;\n\t\testimatedEnergyPerPanel = systemCap * wattToKW;\n\t\t// the returned estimated energy will factor in the powerTolerance,\n\t\t// which typically equates to percent loss on the panel\n\t\treturn estimatedEnergyPerPanel -= estimatedEnergyPerPanel\n\t\t\t\t* (.01 * powerTolerance);\n\t}", "public double getLeftRate() {\n return leftEnc.getRate();\n }", "public IntegerProperty getControlAmplitude() {\n return this.inputAdjuster.getCurrentAmplitude();\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public String getPowerType() {\n return this.powerType;\n }", "public ABLPower Power() {\r\n\t\treturn new ABLPower(BrickFinder.getDefault().getPower());\r\n\t}", "@Override\n\tpublic void makeDecision() {\n\t\tint powerMax = (int)(initPower) / 100;\n\t\tint powerMin = (int)(initPower * 0.3) / 100;\n\n\t\t// The value is calculated randomly from 0 to 10% of the initial power\n\t\tRandom rand = new Random();\n\t\tint actualPower = rand.nextInt((powerMax - powerMin) + 1) + powerMin;\n\t\tanswer.setConsumption(actualPower);\n\t}", "public synchronized int getCurrentRssi() {\n initNetwork();\n return currentSignalStrength;\n }", "public int getSignalStrength() {\n return mSignalStrength;\n }", "protected byte[] getRatedPowerConsumptionOfHPUnitInWintertime() {return null;}", "public int getPowerMeterSum() {\r\n return powerMeterSum;\r\n }", "public static String getReadAdvertisingPhysicalChannelTxPower() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append( String.format( \"0x%02x 0x%04x \", HCI_Command.HCI_LE_Controller_OGF, HCI_Command.HCI_LE_Read_Advertising_Physical_Channel_Tx_Power_OCF));\n\t\t\n\t\treturn sb.toString();\n\t}", "int getChargerCurrentRaw();", "public java.math.BigDecimal getPwrval() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.math.BigDecimal) __getCache(\"pwrval\")));\n }", "public void setInitialTransmittedPower(\n final Double initialTransmittedPower) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "EDataType getActivePower();", "public java.math.BigDecimal getInput_power()\n\t\tthrows java.rmi.RemoteException;", "public IntegerProperty getReactorAmplitude() {\n return this.reactorLine.getCurrentAmplitude();\n }", "float getMainUtteranceDynamicGain();", "public double getAvgGain() {\n\t\tif (avgGain == -1)\n\t\t\tthis.calculateAvg();\n\t\treturn avgGain;\n\t}", "public Float getPower() {\n return power;\n }", "public double getMean() \r\n\t{\r\n\t\tlong tmp = lastSampleTime - firstSampleTime;\r\n\t\treturn ( tmp > 0 ? sumPowerOne / (double) tmp : 0);\r\n\t}", "public void setInitialTransmittedPowerdBm(\n final Double initialTransmittedPowerdBm) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "@java.lang.Override public int getPowerSourceValue() {\n return powerSource_;\n }", "public double get_thermal_reading() {\n\t\t\n\t\treturn 0;\n\t}", "public double getConsumedPower(Dimensions dimensions) {\n return mPowerComponents.getConsumedPower(dimensions);\n }", "public void setInitialTransmittedPower(final Double initialTransmittedPower)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "public int getMaxpower() {\n\t\treturn 0;\r\n\t}", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "@java.lang.Override public int getPowerSourceValue() {\n return powerSource_;\n }", "private double getMinInitProb(){\r\n\t\treturn probThreshold;\r\n\t}", "@java.lang.Override public google.maps.fleetengine.v1.PowerSource getPowerSource() {\n @SuppressWarnings(\"deprecation\")\n google.maps.fleetengine.v1.PowerSource result = google.maps.fleetengine.v1.PowerSource.valueOf(powerSource_);\n return result == null ? google.maps.fleetengine.v1.PowerSource.UNRECOGNIZED : result;\n }", "public int getMaxPower() {\r\n return maxPower;\r\n }", "public Integer getSupervisoryTransmitRate()\r\n\t{\r\n\t\treturn supervisoryTransmitRate;\r\n\t}", "@java.lang.Override\n public google.maps.fleetengine.v1.PowerSource getPowerSource() {\n @SuppressWarnings(\"deprecation\")\n google.maps.fleetengine.v1.PowerSource result = google.maps.fleetengine.v1.PowerSource.valueOf(powerSource_);\n return result == null ? google.maps.fleetengine.v1.PowerSource.UNRECOGNIZED : result;\n }", "float getPostGain();" ]
[ "0.66172427", "0.66172427", "0.6459144", "0.64056474", "0.6140352", "0.5964726", "0.59582925", "0.5945495", "0.59201694", "0.59105706", "0.5865067", "0.5842863", "0.58173376", "0.5813044", "0.58082944", "0.5634152", "0.55766803", "0.55603635", "0.55271125", "0.54776675", "0.5411977", "0.5395419", "0.53935635", "0.5388753", "0.537114", "0.53661126", "0.5365343", "0.53626186", "0.53614223", "0.5355528", "0.53497404", "0.5343552", "0.5333818", "0.53273493", "0.5320362", "0.53153384", "0.53103197", "0.5309294", "0.53067464", "0.5288806", "0.52811056", "0.5275297", "0.5244423", "0.52335757", "0.5229852", "0.5214263", "0.52094764", "0.51903296", "0.51885533", "0.51863176", "0.51731503", "0.51730806", "0.5162171", "0.51621157", "0.51607585", "0.5159632", "0.5158831", "0.5155562", "0.5118228", "0.511634", "0.50940335", "0.50940335", "0.5076841", "0.50690717", "0.50630516", "0.50612134", "0.50612134", "0.50425845", "0.5035285", "0.50246316", "0.50167215", "0.5013442", "0.5008096", "0.5006925", "0.50026524", "0.50011605", "0.5000009", "0.49973908", "0.4993255", "0.49921027", "0.49804673", "0.49774078", "0.4973509", "0.4964462", "0.4954627", "0.49535537", "0.49451232", "0.49366862", "0.49360475", "0.493087", "0.49284673", "0.49087405", "0.49014828", "0.48988658", "0.4887933", "0.4879831", "0.48798287", "0.48796666", "0.4878901" ]
0.7165111
0
Sets initial transmitted power to start the estimation of radio source transmitted power (expressed in mW). If not defined, average value of received power readings will be used. If transmitted power estimation is enabled, estimation will start at this value and will converte the most appropriate value. If transmitted power estimation is disabled, this value will be assumed to be exact and the estimated transmitted power will be equal to this value (converted to dBm's).
public void setInitialTransmittedPower(final Double initialTransmittedPower) throws LockedException { if (isLocked()) { throw new LockedException(); } if (initialTransmittedPower != null) { if (initialTransmittedPower < 0.0) { throw new IllegalArgumentException(); } mInitialTransmittedPowerdBm = Utils.powerTodBm( initialTransmittedPower); } else { mInitialTransmittedPowerdBm = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInitialTransmittedPower(\n final Double initialTransmittedPower) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "public void setInitialTransmittedPowerdBm(\n final Double initialTransmittedPowerdBm) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public void setInitialTransmittedPowerdBm(final Double initialTransmittedPowerdBm)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public Builder setTxpowerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public Builder setTxpower(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public Builder clearTxpower() {\n bitField0_ = (bitField0_ & ~0x00001000);\n txpower_ = getDefaultInstance().getTxpower();\n onChanged();\n return this;\n }", "public void setTransmittedPowerEstimationEnabled(\n final boolean transmittedPowerEstimationEnabled)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mTransmittedPowerEstimationEnabled = transmittedPowerEstimationEnabled;\n }", "public void setTransmittedPowerEstimationEnabled(\n final boolean transmittedPowerEstimationEnabled)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mTransmittedPowerEstimationEnabled = transmittedPowerEstimationEnabled;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "@Override\n\tpublic void setPower(double power) {\n\t\tif (Math.abs(this.power - power) > getMaxChange()) {\n\t\t\tthis.power += getMaxChange();\n\t\t}\n\t\t// If it is smaller than minimum change, then the current power is equal to the sum of\n\t\t// previous power and the minimum change.\n\t\telse if (Math.abs(this.power - power) < getMinChange()) {\n\t\t\tthis.power = (power + getMinChange());\n\t\t}\n\t\t\n\t\t// Then check the current power\n\t\t// If the current power is greater than maximum power, then assign the current power to maximum power.\n\t\tif (this.power > getMaxPower()) {\n\t\t\tthis.power = getMaxPower();\n\t\t} \n\t\t// If it is smaller than minimum power, then it equals to minimum power.\n\t\telse if (this.power < getMinPower()) {\n\t\t\tthis.power = getMinPower();\n\t\t} \n\t\t// And if it is between the interval of minimum and maximum power, simply assign it to that value.\n\t\telse {\n\t\t\tthis.power = power;\n\t\t}\n\t}", "public void setChannelTxPower(PowerLevel power){\n this.level = power;\n \n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public void setPower(double power) {\n this.power = power;\n intake.set(power);\n }", "public Builder setTxpowerOffsetBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n txpowerOffset_ = value;\n onChanged();\n return this;\n }", "@Override\n public void setPower(double power) {\n\n }", "@Override\n public void setPower(double power) {\n this.power = power;\n }", "public void setTension(double power){\n int T_limit = 0;\n int L_limit = 0;\n if(tenPot.pidGet() < tenPotMAX && !Bottom_Limit_Switch.get()){\n L_limit = -1;\n }\n if(tenPot.pidGet() > tenPotMIN && !Top_Limit_Switch.get()){\n T_limit = 1;\n }\n if(power <= T_limit && power >= L_limit){\n motor.set(power);\n }else if(power > T_limit){\n motor.set(T_limit);\n }else if(power < L_limit){\n motor.set(L_limit);\n }\n }", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "public void setInputPower(int power) {\n this.inputPower = power;\n }", "public void setInitialElectricityInput(double initialElectricityInput) {\r\n\t\tthis.initialElectricityInput = initialElectricityInput;\r\n\t}", "public Builder setTxpowerOffset(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00002000;\n txpowerOffset_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void makeDecision() {\n\t\tint powerMax = (int)(initPower) / 100;\n\t\tint powerMin = (int)(initPower * 0.3) / 100;\n\n\t\t// The value is calculated randomly from 0 to 10% of the initial power\n\t\tRandom rand = new Random();\n\t\tint actualPower = rand.nextInt((powerMax - powerMin) + 1) + powerMin;\n\t\tanswer.setConsumption(actualPower);\n\t}", "public void setMinimumWaterRequirement(double w) {\n this.Minimum_Water_Requirement = w;\n }", "public Double getEstimatedTransmittedPower() {\n return mEstimatedTransmittedPowerdBm != null ?\n Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setPower(int power) {\n\t\t\r\n\t}", "private void calculateOutputPower() { \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n if (this.inputPower - this.rms >= 0) {\n setOutputPower(this.inputPower - this.rms);\n } else {\n setOutputPower(0);\n }\n }\n channel.updateOutput();\n }", "public void setPower(int power) {\n \t\tthis.power = power;\n \t}", "public void setInitialElectricityProduction(double initialElectricityProduction) {\r\n\t\tthis.initialElectricityProduction = initialElectricityProduction;\r\n\t}", "public Builder clearTxpowerOffset() {\n bitField0_ = (bitField0_ & ~0x00002000);\n txpowerOffset_ = getDefaultInstance().getTxpowerOffset();\n onChanged();\n return this;\n }", "public void setPower(Float power) {\n this.power = power;\n }", "void setWagerMinimum(java.math.BigDecimal wagerMinimum);", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public static void setPower(double power) {\n\t\tsetLeftPower(power);\n\t\tsetRightPower(power);\n\t}", "void xsetWagerMinimum(org.apache.xmlbeans.XmlDecimal wagerMinimum);", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "@Override\n public void setMotorPower(double power)\n {\n final String funcName = \"setMotorPower\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"value=%f\", power);\n }\n\n if (power != currPower)\n {\n motor.set(power);\n currPower = power;\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"! (value=%f)\", power);\n }\n }", "public void setMinWeight(double inMinWeight) {\n minWeight = inMinWeight;\n }", "java.lang.String getTxpower();", "public void setPower(int power) {\n\t\tthis.power = power;\n\t}", "public void setMinTransfer(double minTransfer) {\n\t\tthis.minTransfer = minTransfer;\n\t}", "static public void setInterpPower(int pwr) {\n //Currently must be invoked from P5 as PTriangle.setInterpPower(...)\n TEX_INTERP_POWER = pwr;\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\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 txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setInput_power(java.math.BigDecimal newInput_power)\n\t\tthrows java.rmi.RemoteException;", "public void setPower(double pow) {\n \tthis.powerIn = pow;\n }", "int readHCITxPower() {\n\t\t\t\n\t\t\tif ( Beacon.hciTxPower != Integer.MAX_VALUE) {\n\t\t\t\treturn Beacon.hciTxPower;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * some points on TX Power: it is *not* the power used by the BLE chip. Instead it is the power\n\t\t\t * measured 1 m away from the sender.\n\t\t\t * https://stackoverflow.com/questions/37268460/beacon-why-we-need-calibrate-tx-power\n\t\t\t * \n\t\t\t * So we try to get this value from the properties or use a default. Querying HCI would give the wrong value,\n\t\t\t * namely the actual sending power, not the power measured 1 m away.\n\t\t\t */\n\t\t\t\n\t\t\tfinal Properties props = Beacon.getProps();\n\t\t\t\n\t\t\t// we expect a 2 hex-digit value using two's complement.\n\t\t\tfinal String txPwr = props.getProperty( \"beacon.txPower\", \"-50\");\n\t\t\tint txPowerLevel = Integer.parseInt( txPwr, 10);\n\t\t\tif ( txPowerLevel < HCI_Command.TX_POWER_MIN || txPowerLevel > HCI_Command.TX_POWER_MAX) {\n\t\t\t\tthrow new IllegalArgumentException( \"power level property out of range: \" + txPwr);\n\t\t\t}\n\t\t\t\n\t\t\tBeacon.hciTxPower = txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t/**\n\t\t\tString hciCmd = getReadAdvertisingPhysicalChannelTxPower();\n\t\t\t\n\t\t\tlogger.info( \"ReadAdvertisingPhysicalChannelTxPowerCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"READ_TX_POWER_CMD=\" + hciCmd\n\t\t\t} ;\n\t\t\t\n\t\t\tfinal String cmd = \"./scripts/read_tx_power\";\n\t\t\t\n\t\t\t// https://en.wikipedia.org/wiki/DBm are words of wisdom on dBm power measurement\n\t\t\t// some default value... -50 decimal\n\t\t\tthis.txPowerLevel = (byte) 0xCE;\n\t\t\t\n\t\t\t// the Dell/Ubuntu/bluez/hcitool returns a power level of 0x07. which is ridiculously high.\n\t\t\t// thus I suspect a bug somewhere and just use a default value\n\t\t\tboolean ENABLE_HCI_READ_TX_POWER = false;\n\t\t\tif ( ENABLE_HCI_READ_TX_POWER) {\n\t\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t\t}\n\t\t\t\n\t\t\t// Range: -127 to 20, Units: dBm, Accuracy: ±4 dB\t\t\t\n\t\t\tassert( this.txPowerLevel >= -127 && this.txPowerLevel <= 20); // dBm\n\t\t\t\n\t\t\tBeacon.hciTxPower = this.txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t*/\n\t\t}", "private void updatePowerState() {\n final boolean mustNotify;\n boolean mustInitialize = false;\n synchronized (mLock) {\n mPendingUpdatePowerStateLocked = false;\n if (mPendingRequestLocked == null) {\n return; // wait until first actual power request\n }\n\n if (mPowerRequest == null) {\n mPowerRequest = new DisplayPowerRequest(mPendingRequestLocked);\n mWaitingForNegativeProximity = mPendingWaitForNegativeProximityLocked;\n mPendingRequestChangedLocked = false;\n mustInitialize = true;\n } else if (mPendingRequestChangedLocked) {\n mPowerRequest.copyFrom(mPendingRequestLocked);\n mWaitingForNegativeProximity |= mPendingWaitForNegativeProximityLocked;\n mPendingRequestChangedLocked = false;\n mDisplayReadyLocked = false;\n }\n\n mustNotify = !mDisplayReadyLocked;\n }\n\n // Initialize things the first time the power state is changed.\n if (mustInitialize) {\n initialize();\n }\n\n // Clear a request to wait for negative proximity if needed.\n if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_OFF\n || mProximity == PROXIMITY_NEGATIVE\n || mProximitySensor == null) {\n mWaitingForNegativeProximity = false;\n }\n\n // Turn on the proximity sensor if needed.\n if (mProximitySensor != null) {\n setProximitySensorEnabled(mPowerRequest.useProximitySensor\n || mWaitingForNegativeProximity);\n if (mProximitySensorEnabled && mProximity == PROXIMITY_POSITIVE) {\n mScreenOffBecauseOfProximity = true;\n setScreenOn(false);\n } else if (mScreenOffBecauseOfProximity) {\n mScreenOffBecauseOfProximity = false;\n sendOnProximityNegative();\n }\n }\n\n // Turn on the light sensor if needed.\n if (mLightSensor != null) {\n setLightSensorEnabled(mPowerRequest.useAutoBrightness\n && wantScreenOn(mPowerRequest.screenState));\n }\n\n // Set the screen brightness.\n if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_DIM) {\n // Screen is dimmed. Overrides everything else.\n animateScreenBrightness(mScreenBrightnessDimConfig, BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = false;\n } else if (mPowerRequest.screenState == DisplayPowerRequest.SCREEN_STATE_BRIGHT) {\n if (mScreenAutoBrightness >= 0 && mLightSensorEnabled) {\n // Use current auto-brightness value.\n animateScreenBrightness(\n Math.max(mScreenAutoBrightness, mScreenBrightnessDimConfig),\n mUsingScreenAutoBrightness ? BRIGHTNESS_RAMP_RATE_SLOW :\n BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = true;\n } else {\n // Light sensor is disabled or not ready yet.\n // Use the current brightness setting from the request, which is expected\n // provide a nominal default value for the case where auto-brightness\n // is not ready yet.\n animateScreenBrightness(\n Math.max(mPowerRequest.screenBrightness, mScreenBrightnessDimConfig),\n BRIGHTNESS_RAMP_RATE_FAST);\n mUsingScreenAutoBrightness = false;\n }\n } else {\n // Screen is off. Don't bother changing the brightness.\n mUsingScreenAutoBrightness = false;\n }\n\n // Animate the screen on or off.\n if (!mScreenOffBecauseOfProximity) {\n if (wantScreenOn(mPowerRequest.screenState)) {\n // Want screen on.\n // Wait for previous off animation to complete beforehand.\n // It is relatively short but if we cancel it and switch to the\n // on animation immediately then the results are pretty ugly.\n if (!mElectronBeamOffAnimator.isStarted()) {\n setScreenOn(true);\n if (!mElectronBeamOnAnimator.isStarted()) {\n if (mPowerState.getElectronBeamLevel() == 1.0f) {\n mPowerState.dismissElectronBeam();\n } else if (mPowerState.prepareElectronBeam(true)) {\n mElectronBeamOnAnimator.start();\n } else {\n mElectronBeamOnAnimator.end();\n }\n }\n }\n } else {\n // Want screen off.\n // Wait for previous on animation to complete beforehand.\n if (!mElectronBeamOnAnimator.isStarted()) {\n if (!mElectronBeamOffAnimator.isStarted()) {\n if (mPowerState.getElectronBeamLevel() == 0.0f) {\n setScreenOn(false);\n } else if (mPowerState.prepareElectronBeam(false)\n && mPowerState.isScreenOn()) {\n mElectronBeamOffAnimator.start();\n } else {\n mElectronBeamOffAnimator.end();\n }\n }\n }\n }\n }\n\n // Report whether the display is ready for use.\n // We mostly care about the screen state here, ignoring brightness changes\n // which will be handled asynchronously.\n if (mustNotify\n && !mElectronBeamOnAnimator.isStarted()\n && !mElectronBeamOffAnimator.isStarted()\n && mPowerState.waitUntilClean(mCleanListener)) {\n synchronized (mLock) {\n if (!mPendingRequestChangedLocked) {\n mDisplayReadyLocked = true;\n }\n }\n sendOnStateChanged();\n }\n }", "public void setPower(boolean power){\n this.power = power;\n }", "com.google.protobuf.ByteString\n getTxpowerBytes();", "void setMinActiveAltitude(double minActiveAltitude);", "public void setPwrval( java.math.BigDecimal newValue ) {\n __setCache(\"pwrval\", newValue);\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "private void setLowSensitivity() {\n\t\tbuttonLowOn.setVisibility(View.VISIBLE);\n\t\tbuttonMedOn.setVisibility(View.INVISIBLE);\n\t\tbuttonHighOn.setVisibility(View.INVISIBLE);\n\t\t\n\t\tLUT[0] = 2;\n\t\tLUT[1] = (float)6;\n\t\tLUT[2] = (float)10;\n\t\tLUT[3] = (float)20;\n\t\tLUT[4] = (float)30;\n\t\tLUT[5] = (float)150;\n\t\tLUT[6] = (float)700;\n\t\tLUT[7] = (float)2000;\n\t\tLUT[8] = (float)4000;\n\t}", "public float getPowerMultiplier() { return 0.5F; }", "public void initEncoderTxData()\n\t{\n\t\tfor(counter_i=0;counter_i<sampleBit;counter_i++)\n\t\t{\n\t\t\thighLevel[counter_i] = (short) (audioAM * (-Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t\tlowLevel[counter_i] = (short) (audioAM * (Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t}\n\t}", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public void resetPot() {\n m_minRawAngle = getRawAngle();\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setRate(float wpm) {\n\tif (wpm > 0 && wpm < 1000) {\n\t setDurationStretch(nominalRate / wpm);\n\t}\n }", "public Double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setPower(double pow){\n if(pow > 0) {\n crServo.setPower(ZERO_POWER_POSITION + (1 - ZERO_POWER_POSITION) * pow);\n } else if (pow < 0) {\n crServo.setPower(ZERO_POWER_POSITION * (1 + pow));\n } else {\n crServo.setPower(ZERO_POWER_POSITION);\n }\n }", "void setNilSingleBetMinimum();", "public Builder clearPower() {\n bitField0_ = (bitField0_ & ~0x00000040);\n power_ = 0F;\n onChanged();\n return this;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public void rawTurret(double power) {\n double encoderAngle = turretEncoder.getDistance();\n // Prevent the turret from turning past hard stops\n if (encoderAngle >= MAX_ENCODER_VALUE && power > 0 || encoderAngle < MIN_ENCODER_VALUE && power < 0) {\n power = 0;\n }\n turretMotor.set(power);\n }", "private void init()\n {\n sendData(REG_MMXCOMMAND, MMXCOMMAND_RESET);\n Delay.msDelay(50);\n // init motor operation parameters\n for (int i=0;i<CHANNELS;i++){\n motorParams[MOTPARAM_RAMPING][i] = MOTPARAM_OP_TRUE;\n motorParams[MOTPARAM_ENCODER_BRAKING][i] = MOTPARAM_OP_TRUE;\n motorParams[MOTPARAM_POWER][i] = 0;\n motorParams[MOTPARAM_REGULATE][i] = MOTPARAM_OP_TRUE;\n doCommand(CMD_SETPOWER, 100, i); // will set motorParams[MOTPARAM_POWER][channel]\n }\n \n }", "public void setMaxAmplitudeZero(){ maxAmplitude=0; }", "public void setCurrentSpecialPower(int curS) {\n currentSpecialPower = curS;\n }", "public void setOutputPower(double power) {\n double powerOutput = (double) ((int) Math.round(power * 10) / 10.0);\n outputPower.set(powerOutput);\n }", "public GameSettingBuilder setInitialMoney(int initialMoney) {\n this.initialMoney = initialMoney;\n return this;\n }", "@Override\r\n public void start() {\r\n runtime.reset();\r\n FL.setPower(1);\r\n FR.setPower(1);\r\n BR.setPower(1);\r\n BL.setPower(1);\r\n try{\r\n Thread.sleep(850);\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n FL.setPower(0);\r\n FR.setPower(0);\r\n BL.setPower(0);\r\n BR.setPower(0); \r\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n }\n }", "public Builder setPower(float value) {\n bitField0_ |= 0x00000040;\n power_ = value;\n onChanged();\n return this;\n }", "public void setPowerMeterSum(int powerMeterSum) {\r\n this.powerMeterSum = powerMeterSum;\r\n }", "public WaterMeter(Radio radio)\r\n\t{\r\n\t\tsuper(radio, DeviceTypeEnum.WATER_METER);\r\n\t}", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public Builder setPowerSourceValue(int value) {\n \n powerSource_ = value;\n onChanged();\n return this;\n }", "protected void setStateToLowestEnergy() {\n\tpoints = bestEverPoints;\n\n\t// make a copy of the best points\n\tbestEverPoints = getPoints();\n\n\tbuildEnergyMatrix();\n\tstateEnergy();\n }", "public WaterMeter(Radio radio, Alarm alarmParam)\r\n\t{\r\n\t\tthis();\r\n\t\tsetRadio(radio);\r\n\t\taddAlarm(alarmParam);\r\n\t}", "private void adjustPower (TurnType dir,\n float p) {\n float adjust = Math.signum(p) * gyroSensor.adjustDirection();\n // with RUN_TO_POSITION sign of power is ignored\n // we have to clip so that (1 + adjust) and (1 - adjust) have the same sign\n adjust = Range.clip(adjust, -1, 1);\n // BNO055 positive for left turn\n float pwrl = p * (1 - adjust);\n float pwrr = p * (1 + adjust);\n\n float max = Math.max(Math.abs(pwrl), Math.abs(pwrr));\n if (max > 1f) {\n // scale to 1\n pwrl = pwrl / max;\n pwrr = pwrr / max;\n }\n setPower(pwrl,\n pwrr,\n dir);\n /*if (dir == TurnType.STRAFE) {\n long timeStamp = System.currentTimeMillis();\n if (timeStamp - logTimeStamp > 25) {\n RobotLog.i(\"Power left:\" + pwrl + \" right:\" + pwrr);\n logTimeStamp = timeStamp;\n }\n }*/\n }", "public void manualControl(double power){\n leftMotor.set(power);\n rightMotor.set(power);\n }", "public void start() {\n rfMotor.setPower(1);\n rrMotor.setPower(1);\n lfMotor.setPower(1);\n lrMotor.setPower(1);\n }", "public void setPower(double leftPower, double rightPower) {\n\t\tleftMiddleMotor.set(ControlMode.PercentOutput, leftPower);\n\t\trightMiddleMotor.set(ControlMode.PercentOutput, rightPower);\n\t}", "public double getInputPower() {\n return this.inputPower;\n }", "public PotatoPower() {\r\n\t\t//pos5 = .975; //Low Bar and Boulder Pickup\r\n\t\t//pos9 = 1.484; //Low Goal Shoot\r\n\t\t//pos12 = 1.770; //High Goal Shoot\r\n\t\t//pos7 = 2.347; //Scale and Human Station\r\n\t\t//pos3 = 0; //Stop Motor\r\n\t\t//m5stopRange = 0.001; // range above and below set point to allow\r\n\t\t// for over or under when motor is moving faster\r\n\t\t\t// than we are reading the sting pot\r\n\t\tgoBall= false;\r\n\t\t//inAuto = false;\r\n\t}", "void xsetSingleBetMinimum(org.apache.xmlbeans.XmlDecimal singleBetMinimum);", "public void setActualWeight(double actualWeight) {\n if(actualWeight >= 0.0){\n this.actualWeight = actualWeight;\n }\n else{\n this.actualWeight = 0.0;\n }\n }" ]
[ "0.64076173", "0.61517555", "0.6128587", "0.6128587", "0.60381687", "0.5896681", "0.5845866", "0.579655", "0.579655", "0.57387257", "0.57295465", "0.5709389", "0.5709389", "0.56745714", "0.56534284", "0.54461706", "0.540039", "0.5328053", "0.52973515", "0.5281895", "0.5248421", "0.52423424", "0.5224952", "0.5221334", "0.521681", "0.5187414", "0.5167679", "0.5164694", "0.51578885", "0.5157529", "0.5140684", "0.51398796", "0.51347256", "0.51269424", "0.5126732", "0.51226515", "0.5084012", "0.5030353", "0.502007", "0.5016663", "0.50004315", "0.49931583", "0.4983601", "0.49733806", "0.4964197", "0.4950247", "0.49385503", "0.49341896", "0.49206325", "0.49053022", "0.49009377", "0.48804873", "0.48673046", "0.4862403", "0.48567948", "0.48458737", "0.48413286", "0.48329055", "0.48324856", "0.48301175", "0.48250672", "0.4819288", "0.48142838", "0.4811052", "0.4809857", "0.4809204", "0.48034793", "0.48023975", "0.4797859", "0.47963092", "0.47897512", "0.47877687", "0.4787115", "0.47785157", "0.4778353", "0.47782898", "0.47768447", "0.47752616", "0.4762785", "0.47499666", "0.47461313", "0.47433946", "0.474155", "0.4727093", "0.4724564", "0.4711507", "0.46790078", "0.46615466", "0.46615466", "0.4654204", "0.46452436", "0.46406028", "0.46372926", "0.4633092", "0.46301487", "0.46287495", "0.46210447", "0.46033898", "0.46021318", "0.45879382" ]
0.63459337
1
Indicates whether transmitted power estimation is enabled or not.
public boolean isTransmittedPowerEstimationEnabled() { return mTransmittedPowerEstimationEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTxpower();", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "public boolean hasPower() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isOnWhenAppliedPower() {\n return onWhenAppliedPower;\n }", "public boolean hasPower() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "boolean hasPower();", "public boolean getPower(){\n return power;\n }", "public boolean canRequestPower();", "public boolean isPowered(){\n\t\tint value = sensor.readRawValue();\n\t\tDiscoveryVehicle.getMonitor().log(\"raw: \"+value);\n//\t\treturn Button.ENTER.isDown();\n\t\treturn (value < Configuration.HYDROGEN_MEASURE_TRIGGER_PRECISION);\n\t}", "public boolean hasTxpowerOffset() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "public boolean hasTxpowerOffset() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "boolean hasTxpowerOffset();", "@Override\r\n\tpublic boolean powerOnOff() {\n\t\tif (power == true)\r\n\t\t{\r\n\t\t\tpower = false;\r\n\t\t}\r\n\t\telse if(power == false)\r\n\t\t{\r\n\t\t\tpower = true;\r\n\t\t}\r\n\t\treturn power;\r\n\t}", "public void setTransmittedPowerEstimationEnabled(\n final boolean transmittedPowerEstimationEnabled)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mTransmittedPowerEstimationEnabled = transmittedPowerEstimationEnabled;\n }", "public void setTransmittedPowerEstimationEnabled(\n final boolean transmittedPowerEstimationEnabled)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mTransmittedPowerEstimationEnabled = transmittedPowerEstimationEnabled;\n }", "public boolean isPowerOn() {\n Log.d(TAG, \"Is Fist Power On: \" + (SystemProperties.getBoolean(IS_POWER_ON_PROPERTY, false)));\n\n if (!SystemProperties.getBoolean(IS_POWER_ON_PROPERTY, false)) {\n SystemProperties.set(IS_POWER_ON_PROPERTY, \"true\");\n return true;\n } else {\n return false;\n }\n }", "public boolean isPowerSource()\r\n {\r\n return true;\r\n }", "public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}", "public boolean isEnabled() {\n for (Transmitter t : getTransmitters()) {\n if (t.getTxStatus() == TxStatus.ENABLED) {\n return true;\n }\n }\n\n return false;\n }", "public boolean getPowerState() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getBoolean(TOGGLE_KEY, true);\n\t}", "public boolean isHasPowerUp() {\n\t\treturn hasPowerUp;\n\t}", "public boolean micEnabled();", "public static boolean isPowerOn() {\n try {\n return BlueCoveImpl.instance().getBluetoothStack().isLocalDevicePowerOn();\n } catch (BluetoothStateException e) {\n return false;\n }\n }", "public boolean isSetMaxPower() {\n return (this.maxPower != null ? this.maxPower.isSetValue() : false);\n }", "boolean getGodPower();", "public boolean enabled()\n {\n return binLog != null;\n }", "public boolean isEnable() {\n return enable;\n }", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public Boolean isEnable() {\n return this.enable;\n }", "public void setPower(boolean power){\n this.power = power;\n }", "public boolean isOn()\n {\n // Check the pin state\n return ledPin.isHigh();\n }", "public boolean isEnable() {\n return _enabled;\n }", "boolean hasEnabled();", "public synchronized boolean getEnabled() {\r\n return this.soundOn;\r\n }", "public boolean getPropertyUnityGain()\n {\n return iPropertyUnityGain.getValue();\n }", "protected boolean isTelemetryEnabled() {\n if(!this.telemetryEnabled){\n InternalLogging.warn(TAG, \"Could not track telemetry item, because telemetry \" +\n \"feature is disabled.\");\n }\n return this.telemetryEnabled;\n }", "boolean hasMainUtteranceDynamicGain();", "boolean hasStrength();", "public Boolean isEnable() {\n\t\treturn enable;\n\t}", "public Boolean isTransmissionEffective() { return random.nextDouble() < transmissionProb; }", "public boolean getEnabled() {\r\n \t\tif (status == AlternativeStatus.ADOPTED) {\r\n \t\t\treturn true;\r\n \t\t} else {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}", "public boolean getEnabled() throws IllegalStateException\n {\n return audioEffect.getEnabled();\n }", "public boolean enabled() {\r\n\t\treturn engaged;\r\n\t}", "public boolean hasStrength() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasStrength() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\n public boolean getPowerFloat() {\n return false;\n }", "public boolean canProvidePower(PowerTypes type);", "boolean isTransmitting();", "java.lang.String getTxpower();", "final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }", "public boolean togglePower() {\r\n if(power) {\r\n pioneerclient.sendCommand(\"PF\");\r\n return false;\r\n } else {\r\n pioneerclient.sendCommand(\"PO\");\r\n return true;\r\n }\r\n\t}", "public boolean adaptiveRateControlEnabled();", "public boolean isOn() {\n\t\treturn false;\n\t}", "EDataType getActivePower();", "boolean isSetPowerBox();", "public boolean hasPower(){\n \thasPowerUp=false;\n \tRandom rand = new Random();\n \tint num = rand.nextInt(6);//one in six chance of getting power up\n \tif(num==0){\n \t\thasPowerUp=true;\n \t}\n \treturn hasPowerUp;\n }", "public boolean getPropertyUnityGain();", "public boolean isLowExposure() {\n\t\treturn lowExposure;\n\t}", "public boolean isSetConsumption() {\n return __isset_bit_vector.get(__CONSUMPTION_ISSET_ID);\n }", "public boolean isIsReadyToTransmit() {\n return isReadyToTransmit;\n }", "public boolean isWifiEnabled() {\n return mWifiManager.isWifiEnabled();\n }", "public boolean isWifiEnabled() {\n return mWifiManager.isWifiEnabled();\n }", "boolean getEnabled();", "boolean getEnabled();", "boolean getEnabled();", "public static boolean enableVolumeMonitoring() {\r\n return enableVolumeMonitoring.getValue();\r\n }", "public boolean hasEnabled() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean canRelayPower(PowerTypes type);", "public boolean hasEnabled() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean hasSignal();", "public boolean getAudioEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"audio_output_switch\", true);\n }", "public Boolean getEnable() {\n return this.enable;\n }", "boolean getPowerBox();", "public Boolean powerBIIntegration() {\n return this.powerBIIntegration;\n }", "public boolean isOn() {\n return on;\n }", "public boolean isOn() throws Exception;", "public String getIsEnable() {\n return isEnable;\n }", "public boolean isSuppressed();", "public final boolean mo4163yN() {\n return this.bUG.get(C5773a.clicfg_matrix_battery_record_wake_lock_enable.name(), false);\n }", "public boolean isSendMsgEnableShutterButton() {\n return true;\n }", "public boolean isForcedAppStandbyForSmallBatteryEnabled() {\n return AppStateTracker.this.injectGetGlobalSettingInt(\"forced_app_standby_for_small_battery_enabled\", 0) == 1;\n }", "public boolean isLockerEnable(){\n return getBooleanValue(KEY_LOCKER_ENABLE);\n }", "public void checkIfShowerOn(){\n double currentSMA = mySMA.currentAverage();\n Log.d(LOGTAG,\"currentSMA: \"+currentSMA);\n Log.d(LOGTAG,\"isShowerOn: \"+ isShowerOn);\n if (currentSMA>SMA_THRESHOLD && !isShowerOn){\n //Initialize stuff to do once shower is on\n isShowerOn=true;\n startShower();\n } else if (currentSMA<SMA_THRESHOLD && isShowerOn){\n //Shutdown\n isShowerOn=false;\n endShower();\n }\n }", "public boolean getOnBattery()\n\t{\n\t\treturn getBooleanIOValue(\"OnBattery\", false);\n\t}", "boolean isSetSignalPeriod();", "boolean hasSendReading();", "public void enableMic(boolean enable);", "public boolean isCharging() {\n return false;\n }", "void powerOn();", "public boolean isSetAntGain() {\n return ((this.antGain != null) && (!this.antGain.isEmpty()));\n }", "public boolean getVibrationEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"vibration_switch\", true);\n }", "public boolean getEnabled(){\r\n\t\treturn enabled;\r\n\t}", "public boolean hasSignal() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }", "boolean hasSigmoidCalibration();", "public boolean enabled() {\n return m_enabled;\n }", "public boolean hasSignal() {\n return ((bitField0_ & 0x00020000) == 0x00020000);\n }", "boolean isMonitoringEnabled();", "@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();" ]
[ "0.77198046", "0.76293635", "0.746722", "0.71896756", "0.71725994", "0.7170476", "0.71526307", "0.7021836", "0.69846857", "0.69509786", "0.6916793", "0.6880654", "0.6836319", "0.68102026", "0.6735375", "0.6735375", "0.6703527", "0.6676435", "0.6594986", "0.65598595", "0.6516283", "0.6496581", "0.63887006", "0.63784915", "0.63756424", "0.6312975", "0.6296323", "0.62933135", "0.62930447", "0.6284139", "0.62656844", "0.625983", "0.6243283", "0.62207884", "0.62113523", "0.6194865", "0.61935127", "0.61874664", "0.6182197", "0.61740637", "0.6139579", "0.6123206", "0.6097297", "0.60805887", "0.60781527", "0.607553", "0.60710174", "0.6067354", "0.6064898", "0.60513794", "0.6041841", "0.6039949", "0.6026702", "0.60231704", "0.60211885", "0.6021174", "0.6009127", "0.5997313", "0.5980082", "0.5931079", "0.59238374", "0.59173584", "0.59173584", "0.59133637", "0.59133637", "0.59133637", "0.5908767", "0.58998305", "0.58919835", "0.5888138", "0.5882263", "0.587519", "0.5869596", "0.5869003", "0.5832155", "0.5821036", "0.5819201", "0.58150905", "0.58126783", "0.5809082", "0.58072203", "0.58063114", "0.5794688", "0.5791024", "0.57860065", "0.57814395", "0.57782954", "0.57731926", "0.5772211", "0.5768874", "0.5758632", "0.5757811", "0.5757242", "0.5754991", "0.5753872", "0.5743621", "0.5743561", "0.57428515", "0.57406723" ]
0.8123883
0
Specifies whether transmitted power estimation is enabled or not.
public void setTransmittedPowerEstimationEnabled( final boolean transmittedPowerEstimationEnabled) throws LockedException { if (isLocked()) { throw new LockedException(); } mTransmittedPowerEstimationEnabled = transmittedPowerEstimationEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public void setPower(boolean power){\n this.power = power;\n }", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "public boolean getPower(){\n return power;\n }", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "@Override\r\n\tpublic boolean powerOnOff() {\n\t\tif (power == true)\r\n\t\t{\r\n\t\t\tpower = false;\r\n\t\t}\r\n\t\telse if(power == false)\r\n\t\t{\r\n\t\t\tpower = true;\r\n\t\t}\r\n\t\treturn power;\r\n\t}", "boolean hasTxpower();", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public boolean canRequestPower();", "public void enableMic(boolean enable);", "public boolean hasPower() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean hasPower() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }", "public boolean isOnWhenAppliedPower() {\n return onWhenAppliedPower;\n }", "public boolean isPowerSource()\r\n {\r\n return true;\r\n }", "void setGodPower(boolean b);", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "public boolean isSetMaxPower() {\n return (this.maxPower != null ? this.maxPower.isSetValue() : false);\n }", "public boolean hasTxpowerOffset() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "boolean hasPower();", "public boolean micEnabled();", "public void setPwrreserve( java.lang.Boolean newValue ) {\n __setCache(\"pwrreserve\", newValue);\n }", "public boolean togglePower() {\r\n if(power) {\r\n pioneerclient.sendCommand(\"PF\");\r\n return false;\r\n } else {\r\n pioneerclient.sendCommand(\"PO\");\r\n return true;\r\n }\r\n\t}", "public boolean isPowered(){\n\t\tint value = sensor.readRawValue();\n\t\tDiscoveryVehicle.getMonitor().log(\"raw: \"+value);\n//\t\treturn Button.ENTER.isDown();\n\t\treturn (value < Configuration.HYDROGEN_MEASURE_TRIGGER_PRECISION);\n\t}", "public boolean adaptiveRateControlEnabled();", "public boolean hasTxpowerOffset() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void enableBuyEntrance(){\r\n\t\tbuyEntrance = true;\r\n\t\tbuildHotel = true;\r\n\t}", "public boolean isPowerOn() {\n Log.d(TAG, \"Is Fist Power On: \" + (SystemProperties.getBoolean(IS_POWER_ON_PROPERTY, false)));\n\n if (!SystemProperties.getBoolean(IS_POWER_ON_PROPERTY, false)) {\n SystemProperties.set(IS_POWER_ON_PROPERTY, \"true\");\n return true;\n } else {\n return false;\n }\n }", "@Override\n public boolean getPowerFloat() {\n return false;\n }", "@Override\n public void setPower(double power) {\n\n }", "public boolean setEnabled(boolean enable);", "void powerOn();", "void setPowerBox(boolean powerBox);", "public void turnOn ()\n\t{\n\t\tthis.powerState = true;\n\t}", "protected void setOnWhenAppliedPower(boolean onWhenAppliedPower) {\n this.onWhenAppliedPower = onWhenAppliedPower;\n \n }", "public void setPowerState(boolean power) {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putBoolean(TOGGLE_KEY, power);\n\t\teditor.commit();\n\t}", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "@Override\n public void setPower(double power) {\n this.power = power;\n }", "public void setEnable (boolean state) {\n impl.setEnable (state);\n }", "public void enableAdaptiveRateControl(boolean enabled);", "public void setChannelTxPower(PowerLevel power){\n this.level = power;\n \n }", "public synchronized boolean getEnabled() {\r\n return this.soundOn;\r\n }", "public void Power() {\n if (Estado == false){\r\n Estado = true;\r\n } else if (Estado == true){\r\n Estado = false;\r\n }\r\n }", "void useGodPower(boolean use);", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "boolean hasTxpowerOffset();", "public void setEnabled(boolean value) {\n m_Enabled = value;\n }", "public Builder setTxpower(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public boolean setPropertyUnityGain(boolean aValue);", "@Override\r\n\tpublic void powerOn() {\n\t\tSystem.out.println(\"ig tv power on\");\r\n\t}", "boolean getGodPower();", "public void enablePropertyUnityGain()\n {\n iPropertyUnityGain = new PropertyBool(new ParameterBool(\"UnityGain\"));\n addProperty(iPropertyUnityGain);\n }", "public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }", "public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}", "public boolean canRelayPower(PowerTypes type);", "public boolean isEnabled() {\n for (Transmitter t : getTransmitters()) {\n if (t.getTxStatus() == TxStatus.ENABLED) {\n return true;\n }\n }\n\n return false;\n }", "public boolean isEnable() {\n return enable;\n }", "@Override\n\tpublic void powerOn() {\n\t\tSystem.out.println(\"samsongTV powerOn\");\n\n\t}", "public void turnOn(boolean truth) {\r\n setEnabled(truth);\r\n }", "public void setEnabled(boolean value) {\n this.enabled = value;\n }", "public void setPower(Float power) {\n this.power = power;\n }", "public Boolean isEnable() {\n return this.enable;\n }", "public void enable() {\n operating = true;\n }", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "public boolean getPropertyUnityGain();", "public boolean getPropertyMute();", "public void enableAudioAdaptiveJittcomp(boolean enable);", "public void setPower(int power) {\n\t\t\r\n\t}", "public boolean getPropertyUnityGain()\n {\n return iPropertyUnityGain.getValue();\n }", "public Builder setTxpowerBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00001000;\n txpower_ = value;\n onChanged();\n return this;\n }", "public boolean isSendMsgEnableShutterButton() {\n return true;\n }", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public boolean canProvidePower(PowerTypes type);", "java.lang.String getTxpower();", "public Boolean getEnable() {\n return this.enable;\n }", "public boolean isEnable() {\n return _enabled;\n }", "public void setPower(double pow) {\n \tthis.powerIn = pow;\n }", "EDataType getActivePower();", "public void enable() {\r\n m_enabled = true;\r\n }", "public Boolean isEnable() {\n\t\treturn enable;\n\t}", "public Boolean isTransmissionEffective() { return random.nextDouble() < transmissionProb; }", "public void setUsageWeighted(boolean aUsageWeighted) {\n usageWeighted = aUsageWeighted; \n }", "boolean hasMainUtteranceDynamicGain();", "public Builder clearTxpower() {\n bitField0_ = (bitField0_ & ~0x00001000);\n txpower_ = getDefaultInstance().getTxpower();\n onChanged();\n return this;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:14:32.594 -0400\", hash_original_method = \"45C4A93D9DB00E5177EB1AA33C0FC790\", hash_generated_method = \"A67AFB0821ABBDFC1442B7AD04AF9F51\")\n \n public static boolean setPowerModeCommand(int mode){\n \tdouble taintDouble = 0;\n \ttaintDouble += mode;\n \n \treturn ((taintDouble) == 1);\n }", "public boolean getPowerState() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getBoolean(TOGGLE_KEY, true);\n\t}", "public void setPower(int power) {\n \t\tthis.power = power;\n \t}", "public String getTransmitMode()\r\n\t{\r\n\t\treturn transmitMode;\r\n\t}", "public void enableTXNotification()\n { \n \t/*\n \tif (mBluetoothGatt == null) {\n \t\tshowMessage(\"mBluetoothGatt null\" + mBluetoothGatt);\n \t\tbroadcastUpdate(DEVICE_DOES_NOT_SUPPORT_UART);\n \t\treturn;\n \t}\n \t\t*/\n \tBluetoothGattService RxService = mBluetoothGatt.getService(RX_SERVICE_UUID);\n \tif (RxService == null) {\n showMessage(\"Rx service not found!\");\n broadcastUpdate(DEVICE_DOES_NOT_SUPPORT_UART);\n return;\n }\n \tBluetoothGattCharacteristic TxChar = RxService.getCharacteristic(TX_CHAR_UUID);\n if (TxChar == null) {\n showMessage(\"Tx charateristic not found!\");\n broadcastUpdate(DEVICE_DOES_NOT_SUPPORT_UART);\n return;\n }\n mBluetoothGatt.setCharacteristicNotification(TxChar,true);\n \n BluetoothGattDescriptor descriptor = TxChar.getDescriptor(CCCD);\n descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);\n mBluetoothGatt.writeDescriptor(descriptor);\n \t\n }", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "public String getEnable() {\r\n return enable;\r\n }", "public final void setThresholdEnable(boolean thresholdState){\n\t\tthis.isThresholdUsingEnabled = thresholdState;\n\t}", "public boolean enabled()\n {\n return binLog != null;\n }", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }" ]
[ "0.74934965", "0.74934965", "0.7171968", "0.694972", "0.68274826", "0.67900056", "0.6762475", "0.67556304", "0.66846454", "0.6622021", "0.6512167", "0.6447805", "0.64302063", "0.64181656", "0.6278528", "0.6274689", "0.62619525", "0.620653", "0.62028605", "0.6191253", "0.6182396", "0.61555123", "0.61450624", "0.61106014", "0.60794777", "0.60623884", "0.602291", "0.6015709", "0.5980638", "0.5975469", "0.5971", "0.5959441", "0.5958242", "0.5954874", "0.59484446", "0.59282005", "0.59111595", "0.5899929", "0.58572197", "0.5849742", "0.5834345", "0.5829073", "0.5827194", "0.58110833", "0.5804486", "0.58033234", "0.57916117", "0.57876617", "0.57874924", "0.5782302", "0.5777134", "0.5775813", "0.57754195", "0.5774424", "0.576598", "0.5757019", "0.57529545", "0.5737322", "0.5732187", "0.5730018", "0.5727745", "0.5725795", "0.57162625", "0.5714139", "0.5714139", "0.5708536", "0.57017595", "0.56927425", "0.5691173", "0.5687837", "0.5668573", "0.56654125", "0.5661162", "0.5660539", "0.56449753", "0.5635745", "0.56233764", "0.5614237", "0.56118834", "0.560523", "0.5605171", "0.56046", "0.56025994", "0.5598004", "0.5596455", "0.55909455", "0.55845666", "0.5581904", "0.5580651", "0.5577729", "0.55747", "0.5572333", "0.5572333", "0.5572333", "0.5572333", "0.5571941", "0.5571554", "0.55636954", "0.55584455" ]
0.7375324
3
Gets initial position to start the estimation of radio source position. If not defined, centroid of provided readings will be used. If position estimation is enabled, estimation will start at this value and will converge to the most appropriate value. If position estimation is disabled, this value will be assumed to be exact and the estimated position will be equal to this value.
public P getInitialPosition() { return mInitialPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getInitialPosition()\n {\n return this.initialPosition;\n }", "public P getEstimatedPosition() {\n return mRssiPositionEnabled ?\n mRssiInnerEstimator.getEstimatedPosition() :\n mRangingInnerEstimator.getEstimatedPosition();\n }", "public float getInitialPosition() {\n return initialPosition;\n }", "@Override\n\tpublic Position getInitialPosition() \n\t{\n\t\treturn initialPosition;\n\t}", "public String getInitialPosition() {\n\t\treturn initPos;\n\t}", "public Position getStartPosition() throws IllegalStateException{\r\n for (int i = 0; i < mazeData.length; i++) {\r\n for (int j = 0; j < mazeData[i].length; j++) {\r\n if (mazeData[i][j] == START)\r\n return new Position(i, j);\r\n }\r\n }\r\n throw new IllegalStateException(\"Could not find a start-point\");\r\n }", "public Point getStartPoint() {\n // First, this is Settler's location\n UnitList units = unitService.findByClassUuid(Settlers.CLASS_UUID);\n if (units != null && !units.isEmpty()) {\n return units.getAny().getLocation();\n }\n\n // If Settlers were destroyed then it is the first city's location\n City city = cityService.getAny();\n if (city != null) {\n return city.getLocation();\n }\n\n // If there is no cities, then the first Unit's location\n AbstractUnit unit = unitService.getAny();\n if (unit != null) {\n return unit.getLocation();\n }\n\n // If there is no units then (0, 0)\n return new Point(0, 0);\n }", "Pair<Integer, Integer> getInitialPosition();", "public double GetPositionRaw()\n {\n double position = GetPosition();\n\n if (position == -1)\n {\n double CurrentDistance = GetDistance();\n\n // we aren't close to a position, so get the range\n for (int i = 1; i < (Positions.length); i++)\n {\n if (Utilities.isBetween(CurrentDistance, Positions[i - 1],\n Positions[i]))\n {\n // scale the position from inches to the ratio between\n // positions\n position = Utilities.scaleToRange(CurrentDistance,\n Positions[i - 1], Positions[i], i - 1, i);\n break;\n }\n\n }\n }\n\n return position;\n }", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "public Point getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}", "org.mojolang.mojo.lang.Position getStartPosition();", "public int[] getPlayerInitialPosition() \n\t{\n\t\treturn player_initial_position;\n\t}", "public P getEstimatedPosition() {\n return mEstimatedPosition;\n }", "@Override\n public GetPositionEstimateResult getPositionEstimate(GetPositionEstimateRequest request) {\n request = beforeClientExecution(request);\n return executeGetPositionEstimate(request);\n }", "private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\n\t}", "public Position getStartPosition()\r\n\t{\r\n\t\treturn startPosition;\r\n\t}", "public Position getStartPosition() {\n return startPosition;\n }", "org.mojolang.mojo.lang.PositionOrBuilder getStartPositionOrBuilder();", "public Point getLocalPosition() {\n return getLocalLowerLeft();\n }", "public Vector3f getStartPosition()\n {\n return startPosition;\n }", "public Coordinates getProcedurePosition() {\r\n\t\tif (position == null) {\r\n\t\t\tCoordinates coord = this.getSensorCoordinates();\r\n\t\t\tposition = coord;\r\n\t\t}\r\n\t\treturn position;\r\n\t}", "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }", "public Point getTopLeft() {\n return location.topLeft();\n }", "public Position getInitialPixel() {\n\t\treturn initialPixel;\n\t}", "public Position getStartPosition() {\n return start;\n }", "public int getStartPosition() {\n return startPosition_;\n }", "@Override\n public double getPosition()\n {\n final String funcName = \"getPosition\";\n double pos = getMotorPosition() - zeroPosition;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", pos);\n }\n\n return pos;\n }", "public int getStartPosition() {\n return startPosition_;\n }", "public LatLng getCentrePos() {\n double lat = 0;\n double lon = 0;\n for (int i=0; i<newHazards.size(); i++) {\n lat += frags.get(i).getHazard().getLatitude();\n lon += frags.get(i).getHazard().getLongitude();\n }\n return new LatLng(lat / newHazards.size(), lon / newHazards.size());\n }", "public Position getCurrentPosion() {\n Position position = new Position();\n position.x = getLeft() + getWidth() / 2;\n position.y = getTop() + getHeight() / 2;\n return position;\n }", "public long position() {\n\t\tif (mPlayer.isInitialized()) {\n\t\t\treturn mPlayer.position();\n\t\t}\n\t\treturn -1;\n\t}", "public Vector2f getPosition() { return new Vector2f(centroid_pos); }", "public Point getAbsPosition() {\n return Game.getMap().TFMapCoordinateToMapCenter(position);\n }", "private Vector3f calcPosition() {\r\n float y = (float) (distance * Math.sin(Math.toRadians(pitch)));\r\n float xzDistance = (float) (distance * Math.cos(Math.toRadians(pitch)));\r\n float x = (float) (xzDistance * Math.sin(Math.toRadians(rotation)));\r\n float z = (float) (xzDistance * Math.cos(Math.toRadians(rotation)));\r\n return new Vector3f(x + center.x, y + center.y, z + center.z);\r\n }", "public Point getNextForecastedPos() {\n return nextPos ;\n }", "public boolean isPositionEstimationEnabled() {\n return mPositionEstimationEnabled;\n }", "public DevicePosition getCurrentPosition() {\n if (!isReady())\n return null;\n\n if (isFaceUp()) {\n return (DevicePosition.FACE_UP);\n } else if (isFaceDown()) {\n return (DevicePosition.FACE_DOWN);\n } else if (isDark() && isCloseProximity()\n && (!isFaceDown()) && (!isFaceUp())) {\n return (DevicePosition.IN_POCKET);\n }\n return DevicePosition.UNKNOWN;\n }", "private void getInitialSeekBarPositions() {\n final ContentResolver resolver = getActivity().getContentResolver();\n portColumnsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_COLUMNS_PORTRAIT, 3, UserHandle.USER_CURRENT);\n portRowsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_ROWS_PORTRAIT, 3, UserHandle.USER_CURRENT);\n landColumnsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_COLUMNS_LANDSCAPE, 4, UserHandle.USER_CURRENT);\n landRowsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_ROWS_LANDSCAPE, 2, UserHandle.USER_CURRENT);\n }", "public PVector getRawPosition(){\n\t\treturn this.leap.convert(this.arm.center());\n\t}", "@Override\n public int[] getStartPosition() {\n if(maze != null){\n int[] position = new int[2];\n position[0] = maze.getStartPosition().getRowIndex();\n position[1] = maze.getStartPosition().getColumnIndex();\n return position;\n }\n return null;\n }", "public float getPosition(){\n\t\treturn (float)cFrame + interpol;\n\t}", "private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }", "public GeoPointND getStartPoint();", "public float getPos() {\n return ((spos-xpos))/(sposMax-sposMin);// * ratio;\n }", "public float getInitialBattlePosition()\n {\n return initialBattlePosition;\n }", "public GeoPoint getPosition() {\n\t\treturn position;\n\t}", "public PixelPoint getStartPoint ()\r\n {\r\n Point start = glyph.getLag()\r\n .switchRef(\r\n new Point(getStart(), line.yAt(getStart())),\r\n null);\r\n\r\n return new PixelPoint(start.x, start.y);\r\n }", "public int getEncPosition() {\n //System.out.println(this.EncX.getRaw() + \"raw\");\n return (int) (1000 * this.EncX.getDistance());\n //return (int)(1000 * this.EncX.getRaw() / 8.6);\n \n }", "@Override\n public void estimate() throws RadioSourceEstimationException, NotReadyException,\n LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n createInnerEstimatorsIfNeeded();\n\n final List<RangingReadingLocated<S, P>> rangingReadings = new ArrayList<>();\n final List<RssiReadingLocated<S, P>> rssiReadings = new ArrayList<>();\n for (final ReadingLocated<P> reading : mReadings) {\n if (reading instanceof RangingReadingLocated) {\n rangingReadings.add((RangingReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RssiReadingLocated) {\n rssiReadings.add((RssiReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n rangingReadings.add(createRangingReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n rssiReadings.add(createRssiReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n }\n }\n\n //estimate position using ranging data, if possible\n P estimatedPosition = null;\n if (!mRssiPositionEnabled) {\n mRangingInnerEstimator.setUseReadingPositionCovariances(\n mUseReadingPositionCovariances);\n mRangingInnerEstimator.setHomogeneousLinearSolverUsed(\n mUseHomogeneousRangingLinearSolver);\n mRangingInnerEstimator.setReadings(rangingReadings);\n mRangingInnerEstimator.setInitialPosition(mInitialPosition);\n\n mRangingInnerEstimator.estimate();\n\n mEstimatedPositionCoordinates =\n mRangingInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRangingInnerEstimator.getEstimatedPositionCovariance();\n estimatedPosition = mRangingInnerEstimator.getEstimatedPosition();\n }\n\n //estimate transmitted power and/or pathloss if enabled\n if (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled || mRssiPositionEnabled) {\n mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled);\n mRssiInnerEstimator.setInitialPosition(estimatedPosition);\n\n mRssiInnerEstimator.setTransmittedPowerEstimationEnabled(\n mTransmittedPowerEstimationEnabled);\n mRssiInnerEstimator.setInitialTransmittedPowerdBm(\n mInitialTransmittedPowerdBm);\n\n mRssiInnerEstimator.setPathLossEstimationEnabled(\n mPathLossEstimationEnabled);\n mRssiInnerEstimator.setInitialPathLossExponent(\n mInitialPathLossExponent);\n\n mRssiInnerEstimator.setReadings(rssiReadings);\n\n mRssiInnerEstimator.estimate();\n\n if (mRssiPositionEnabled) {\n mEstimatedPositionCoordinates =\n mRssiInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRssiInnerEstimator.getEstimatedPositionCovariance();\n }\n\n if (mTransmittedPowerEstimationEnabled) {\n //transmitted power estimation enabled\n mEstimatedTransmittedPowerdBm =\n mRssiInnerEstimator.getEstimatedTransmittedPowerdBm();\n mEstimatedTransmittedPowerVariance =\n mRssiInnerEstimator.getEstimatedTransmittedPowerVariance();\n } else {\n //transmitted power estimation disabled\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n }\n\n if (mPathLossEstimationEnabled) {\n //pathloss exponent estimation enabled\n mEstimatedPathLossExponent =\n mRssiInnerEstimator.getEstimatedPathLossExponent();\n mEstimatedPathLossExponentVariance =\n mRssiInnerEstimator.getEstimatedPathLossExponentVariance();\n } else {\n //pathloss exponent estimation disabled\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n //build covariance matrix\n if (mRssiPositionEnabled) {\n //if only RSSI estimation is done, we use directly the available estimated covariance\n mEstimatedCovariance = mRssiInnerEstimator.getEstimatedCovariance();\n\n } else {\n //if both ranging and RSSI data is used, we build covariance matrix by setting\n //position covariance estimated by ranging estimator into top-left corner, and then\n //adding covariance terms related to pathloss exponent and transmitted power\n final Matrix rssiCov = mRssiInnerEstimator.getEstimatedCovariance();\n if (mEstimatedPositionCovariance != null && rssiCov != null) {\n final int dims = getNumberOfDimensions();\n int n = dims;\n if (mTransmittedPowerEstimationEnabled) {\n n++;\n }\n if (mPathLossEstimationEnabled) {\n n++;\n }\n\n final int dimsMinus1 = dims - 1;\n final int nMinus1 = n - 1;\n mEstimatedCovariance = new Matrix(n, n);\n mEstimatedCovariance.setSubmatrix(0, 0,\n dimsMinus1, dimsMinus1,\n mEstimatedPositionCovariance);\n mEstimatedCovariance.setSubmatrix(dims, dims,\n nMinus1, nMinus1, rssiCov);\n } else {\n mEstimatedCovariance = null;\n }\n }\n\n } else {\n mEstimatedCovariance = mEstimatedPositionCovariance;\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n } catch (final AlgebraException e) {\n throw new RadioSourceEstimationException(e);\n } finally {\n mLocked = false;\n }\n }", "public InhomogeneousPoint3D getSuggestedCenterValue() {\n return mSuggestedCenterValue;\n }", "public final float getPositionX() {\r\n\t\treturn getState(false).getPositionX();\r\n\t}", "public AccessPoint calculateAccessPointPosition() {\n\t\twifiScanner.scanStart();\n\t\tapList = wifiScanner.getApList();\n\t\treturn apList.get(0);\n\t}", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "@Override\n\tprotected Point getInitialLocation(Point initialSize)\n\t{\n\t\tShell shell = this.getShell();\n Monitor primary = shell.getMonitor();\n Rectangle bounds = primary.getBounds ();\n int x = bounds.x + (bounds.width - initialSize.x) / 2;\n int y = bounds.y + (bounds.height - initialSize.y) / 2;\n\t\treturn new Point(x, y);\n\t}", "private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }", "public double getStartX()\n {\n return startxcoord; \n }", "public static final double getCurrentLatitude() {\n if (getCurrentLatitudeGpsValid() != ZERO) {\n return getCurrentLatitudeGpsValid();\n } else {\n return getCurrentLatitudeNetworkValid();\n }\n }", "public final Optional<Position> getPosition() {\n return position;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public double getPositionX() {\n return positionX_;\n }", "public int GetPosition()\n {\n int position = -1;\n\n double CurrentDistance = GetDistance();\n\n for (int i = 0; i < Positions.length; i++)\n {\n // first get the distance from current to the test point\n double DistanceFromPosition = Math.abs(CurrentDistance\n - Positions[i]);\n\n // then see if that distance is close enough using the threshold\n if (DistanceFromPosition < PositionThreshold)\n {\n position = i;\n break;\n }\n }\n\n return position;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public Position origin(Position ep) throws InvalidPositionException;", "public OptionalInt getStartOffset() {\n return startOffset >= 0 ? OptionalInt.of(startOffset) : OptionalInt.empty();\n }", "private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }", "public Optional<Integer> getPosition() {\n return this.placement.getAlleles().stream()\n .map(p -> p.getAllele().getSpdi().getPosition())\n .findFirst();\n }", "public int getSeekPosition() {\n if(mMediaPlayer != null) {\n return mMediaPlayer.getCurrentPosition();\n }\n return 0;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "@Override\n public Optional<Position> getPosition() {\n return this.pos;\n }", "public Position getStart() {\r\n return start;\r\n }", "public double getPosition() {\n return sequence.getPosition(BPMNode);\n }", "public double getAbsPosition() {\n double distCM = ToFSerial.get() - startDist;\n //System.out.println(\"Dist in CM \" + distCM);\n\n double distIn = distCM * Constants.k_CMtoIn;\n //System.out.println(\"Dist in In \" + distIn);\n\n return (int) (1000 * distIn); \n\n }", "public float getPos() {\n return (spos - xpos) / (swidth - sheight);\n }", "public Point getPosition() {\n return position;\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getPosition() {\n return position_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : position_;\n }", "public final Point getPosition()\n\t{\n\t\treturn pos;\n\t}", "public Point getPosition(){\n\t\treturn position;\n\t}", "Coordinate getMinX();", "public static int getDefaultPosition()\n {\n return defaults.position;\n }", "public GeoPoint getStart(){\n return getOrigin();\n }", "public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}", "public ImPoint getCurrentLoc() {\n \treturn this.startLoc;\n }", "public float getMinOffset() {\n return this.mMinOffset;\n }", "public Point getPosition() {\n return new Point(position);\n }", "public PositionSource getPositionSource() {\n return _positionSource;\n }", "@Test\n public final void testNormalSetPositionStart() {\n int expResX = 2;\n int expResY = 3;\n int resultX = ship.getX();\n int resultY = ship.getY();\n assertEquals(expResX, resultX);\n assertEquals(expResY, resultY);\n // Ship s = new Ship(1, true, 4, 5);\n IShip s = createShip(1, true, 4, 5);\n expResX = 4;\n expResY = 5;\n resultX = s.getX();\n resultY = s.getY();\n assertEquals(expResX, resultX);\n assertEquals(expResY, resultY);\n }", "@Override\n public Position getPosition() {\n return Position.UNKNOWN;\n }", "private int getInclusiveTopIndexStartOffset() {\n \n \t\tif (fTextWidget != null && !fTextWidget.isDisposed()) {\n \t\t\tint top= -1;\n \t\t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\t\ttop= fTextWidget.getTopIndex();\n \t\t\t\tif ((fTextWidget.getTopPixel() % fTextWidget.getLineHeight()) != 0)\n \t\t\t\t\ttop--;\n \t\t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\t\ttop= extension.widgetLine2ModelLine(top);\n \t\t\t} else {\n \t\t\t\ttop= fSourceViewer.getTopIndex();\n \t\t\t\tif ((fTextWidget.getTopPixel() % fTextWidget.getLineHeight()) != 0)\n \t\t\t\t\ttop--;\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tIDocument document= fSourceViewer.getDocument();\n \t\t\t\treturn document.getLineOffset(top);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}", "public PVector getPosition(){\n\t\treturn position;\n\t}", "public GeoPosition getActualPosition() {\n\t\treturn actualPosition;\n\t}", "public double getStartX() {\r\n return startx;\r\n }", "public PVector getPosition() { return position; }", "public Point getPosition() {\n return this.position;\n }" ]
[ "0.6694582", "0.65368646", "0.6484903", "0.63230926", "0.61538637", "0.60951126", "0.5884715", "0.58485866", "0.58123976", "0.57877356", "0.5786005", "0.5754542", "0.56934583", "0.5668735", "0.5609791", "0.56007296", "0.55951", "0.55458283", "0.55438", "0.5541988", "0.55246264", "0.55097914", "0.54938424", "0.5486802", "0.5478304", "0.5476169", "0.5460901", "0.5444737", "0.5430985", "0.5412434", "0.53997827", "0.5398902", "0.5373683", "0.53623945", "0.5357652", "0.53545046", "0.53237706", "0.5297168", "0.5280039", "0.52721065", "0.5255661", "0.52531743", "0.5250544", "0.524268", "0.5240498", "0.5235399", "0.52344906", "0.52271396", "0.52260494", "0.5222074", "0.52206147", "0.52205163", "0.52071726", "0.5204636", "0.5204184", "0.52030975", "0.52028733", "0.52009594", "0.5198013", "0.51959014", "0.5187706", "0.5187679", "0.51876736", "0.51876736", "0.5184796", "0.51749384", "0.5172578", "0.5171496", "0.51712495", "0.51694787", "0.5165766", "0.5165766", "0.5165766", "0.51551366", "0.51495546", "0.51489866", "0.51465976", "0.51387745", "0.5127962", "0.5124318", "0.5123759", "0.5119422", "0.51090413", "0.5108173", "0.51024324", "0.5102356", "0.5096588", "0.5094719", "0.5088596", "0.5077319", "0.50757694", "0.50626385", "0.5056693", "0.50558996", "0.5053727", "0.50514114", "0.5042574", "0.5036625" ]
0.6395115
3
Sets initial position to start the estimation of radio source position. If not defined, centroid of provided fingerprints will be used. If position estimation is enabled, estimation will start at this value and will converge to the most appropriate value. If position estimation is disabled, this value will be assumed to be exact and the estimated position will be equal to this value.
public void setInitialPosition(final P initialPosition) throws LockedException { if (isLocked()) { throw new LockedException(); } mInitialPosition = initialPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }", "private void setInitialSeekBarPositions() {\n portColumns.setProgress(portColumnsValue);\n portRows.setProgress(portRowsValue);\n landColumns.setProgress(landColumnsValue);\n landRows.setProgress(landRowsValue);\n }", "public Point getInitialPosition()\n {\n return this.initialPosition;\n }", "private void setupPlayerPosition() {\n\t\tHashMap<Suspect, Coordinates> startPositions = new HashMap<Suspect, Coordinates>();\r\n\t\tstartPositions.put(Suspect.KasandraScarlet, new Coordinates(18, 28));\r\n\t\tstartPositions.put(Suspect.JackMustard, new Coordinates(7, 28));\r\n\t\tstartPositions.put(Suspect.DianeWhite, new Coordinates(0, 19));\r\n\t\tstartPositions.put(Suspect.JacobGreen, new Coordinates(0, 9));\r\n\t\tstartPositions.put(Suspect.EleanorPeacock, new Coordinates(6, 0));\r\n\t\tstartPositions.put(Suspect.VictorPlum, new Coordinates(20, 0));\r\n\r\n\t\tfor (int i = 0; i < this.listOfPlayer.size(); i++) {\r\n\t\t\tPlayer p = this.listOfPlayer.get(i);\r\n\t\t\tSuspect sus = p.getSuspect().getData();\r\n\t\t\tboolean b = p.setCoord(startPositions.get(sus), this.grid);\r\n\t\t\t// should always be able to put character on starting position\r\n\t\t}\r\n\t\tSystem.out.println(\"Initial player starting positions set\");\r\n\t}", "public void setStartPosition() {\n bounds.offsetTo((SanitizorGame.mSurfaceWidth - bounds.width()) / 2,\n SanitizorGame.mSurfaceHeight - (BOTTOM_PADDING + bounds.height()));\n }", "public float getInitialPosition() {\n return initialPosition;\n }", "public void setInitialPositions() {\t\n\t\tString[][] positions = myData.getInitialPositions();\n\t\tif (positions.length == 0) {\n\t\t\tsetDefaultPositions(myData);\n\t\t} else {\n\t\t\tfor (String[] each : positions) {\n\t\t\t\tif (each.length != 3) {\n\t\t\t\t\tthrow new XMLException(\"Initial State not Given for Cell %s\", Arrays.toString(each));\n\t\t\t\t}\n\t\t\t\tint x = Integer.parseInt(each[0]);\n\t\t\t\tint y = Integer.parseInt(each[1]);\n\t\t\t\tif (x < getGrid().getRow(0).length && x >= 0 && y < getGrid().getRow(0).length && y >= 0){ \n\t\t\t\t\tgetGrid().getCell(x,y).setType(each[2]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "protected void initialize() {\n initialPos = Math.abs(Robot.arm.getArmEncoderValue());\n double direction = Math.signum(setpoint - Math.abs(Robot.arm.getArmEncoderValue()));\n Robot.arm.moveArm(direction * RobotMap.ArmConstants.ARM_AUTONOMOUS_MOVEMENT_POWER, 1);\n }", "private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }", "protected void initialize() {\n\t\tRobot._driveTrain.setAuton(true);\n\t\tRobot._driveTrain.clearEncoder();\n\t\tRobot._driveTrain.clearGyro();\n\t\tdistanceToCenter = SmartDashboard.getNumber(\"toteOffset\", 0);\n\t\tif (Robot._pneumatics.getArms() != DoubleSolenoid.Value.kReverse) {\n\t\t\tRobot._pneumatics.setArms(DoubleSolenoid.Value.kReverse);\n\t\t}\n\t}", "public void setInitialBattlePosition(float initialBattlePosition)\n {\n this.initialBattlePosition = initialBattlePosition;\n }", "private void positionMode() {\n\t\ttestMotor.setProfile(0);\n\t\ttestMotor.ClearIaccum();\n\t\ttestMotor.set(testMotor.getPosition());\n\t\ttestMotor.ClearIaccum();\n\t}", "public void setInitialPosition()\n {\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.a2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.b2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.c2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.d2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.e2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.f2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.g2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.h2);\n //Se colocan los peones negros en la séptima fila\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.a7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.b7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.c7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.d7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.e7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.f7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.g7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.h7);\n //Se colocan las torres blancas en a1 y h1\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.a1);\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.h1);\n //Se colocan las torres negras en a8 y h9\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.a8);\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.h8);\n //Se colocan los caballos blancos en b1 y g1\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.b1);\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.g1);\n //Se colocan los caballos negros en b8 y g8\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.b8);\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.g8);\n //Se colocan los alfiles blancos en c1 y f1\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.c1);\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.f1);\n //Se colocan los alfiles negros en c8 y f8\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.c8);\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.f8);\n //Se coloca la dama blanca en d1\n putGenericPiece(GenericPiece.QUEEN,Colour.WHITE,Square.d1);\n //Se coloca la dama negra en d8\n putGenericPiece(GenericPiece.QUEEN,Colour.BLACK,Square.d8);\n //Se coloca el rey blanco en e1\n putGenericPiece(GenericPiece.KING,Colour.WHITE,Square.e1);\n //Se coloca el rey negro en e8\n putGenericPiece(GenericPiece.KING,Colour.BLACK,Square.e8);\n \n //Se permiten los enroques para ambos jugadores\n setCastlingShort(Colour.WHITE,true);\n setCastlingShort(Colour.BLACK,true);\n setCastlingLong(Colour.WHITE,true);\n setCastlingLong(Colour.BLACK,true);\n \n //Se da el turno a las blancas\n setTurn(Colour.WHITE);\n \n gamePositionsHash.clear();\n gamePositionsHash.put(zobristKey.getKey(), 1);\n }", "private void setUpStartPosition()\n {\n \tthis.xPos = startTile.xPos;\n this.yPos = startTile.yPos - startTile.tileHeight;\n yPos--;\n \n System.out.println(\"Player is on level \" + level + \n \" at position x: \" + xPos + \", y: \" + yPos); \n }", "public void setNominalPositionAndOrientation() {\n // Nothing to do for absolute position/orientation device.\n }", "@Override\n\tpublic Position getInitialPosition() \n\t{\n\t\treturn initialPosition;\n\t}", "void reconfigure() {\n computePosition(_primaryPlot.getScreenCoords(findCurrentCenterPoint()), false);\n }", "public void setInitialPixel(Position initialPixel) {\n\t\tthis.initialPixel = initialPixel;\n\t}", "public void setPosition(Point pos) {\n this.topLeft = pos.asVector();\n }", "protected void initialize() {\n\t\tpid.setSetpoint((goalRotation + Robot.imu.getHeading() + 360) % 360);\n\t\tpid.enable();\n\t}", "public void resetPosition() {\n\t\tposition = new double[3];\n\t\tgyroOffset = 0;\n\t}", "protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }", "public void setCentroid(final Coordinates coordinates) {\r\n centroid = coordinates;\r\n }", "@Test\n public final void testNormalSetPositionStart() {\n int expResX = 2;\n int expResY = 3;\n int resultX = ship.getX();\n int resultY = ship.getY();\n assertEquals(expResX, resultX);\n assertEquals(expResY, resultY);\n // Ship s = new Ship(1, true, 4, 5);\n IShip s = createShip(1, true, 4, 5);\n expResX = 4;\n expResY = 5;\n resultX = s.getX();\n resultY = s.getY();\n assertEquals(expResX, resultX);\n assertEquals(expResY, resultY);\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "protected void initialize() {\n \tsetSetpoint(0.0);\n }", "protected void initialize(){\n\t\tRobot.driveTrain.changeTalonControlMode(TalonControlMode.Follower);\n\t\tRobot.driveTrain.setTalonsReversedState(true);\n\t\tRobotMap.visionSensor.startProcessing(PIDVisionSourceType.DistanceFromTarget);\n\t\thasStarted = RobotMap.VisionDistanceLeftPIDController.init(m_setPoint, StaticMembers.ABSOLUTE_TOLERANCE_DISTANCE);\n\t\thasStarted = RobotMap.VisionDistanceRightPIDController.init(m_setPoint, StaticMembers.ABSOLUTE_TOLERANCE_DISTANCE) && hasStarted;\n\t}", "public void setStartPosition(int start) {\n mLastPosition = start;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public void setPosition(Point position);", "public void setZeroPosition(int center) {\n centerPos = center;\n }", "private void setCalculatePosition() {\n fptUserCalculated = getFilterPointDesign(drawingPad.getSelectedItems(), true);\n drawingPad.getSelectedItems().finalizeMovement();\n drawingPad.getSelectedItems().calculate(fptUserCalculated);\n drawingPad.repaint();\n }", "@Test\n public void testSetLatitude() {\n \n assertEquals(0.0f, o2.getLatitude(), 0.0);\n o2.setLatitude(0.2f);\n assertEquals(0.2f, o2.getLatitude(), 0.0);\n }", "private void setPoints () {\n\t\tArrayList<Point> emptySpot = new ArrayList<Point>();\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\tif (maze[i][j] == 0) {\n\t\t\t\temptySpot.add(new Point (i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(emptySpot);\n\t\tthis.goal = emptySpot.get(0);\n\t\tdouble goalRange = this.goal.getX() + this.goal.getY();\n\t\tfor (int i = 1; i < emptySpot.size(); i++) {\n\t\t\tPoint playerStart = emptySpot.get(i);\n\t\t\tdouble playerRange = playerStart.getX() + playerStart.getY();\n\t\t\tif (Math.abs(playerRange - goalRange) > width/2)\n\t\t\tthis.playerStart = playerStart;\n\t\t}\n\t}", "private void setNodeCoordinates (int trainPosition)\r\n\t{\r\n\t\tswitch (trainPosition)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\t// S node\r\n\t\t\t\tx = 312;\r\n\t\t\t\ty = 191;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 1:\r\n\t\t\t{\t\r\n\t\t\t\t// I1\r\n\t\t\t\tx = 272;\r\n\t\t\t\ty = 286;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 2:\r\n\t\t\t{\t\r\n\t\t\t\t// I2\r\n\t\t\t\tx = 165;\r\n\t\t\t\ty = 266;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 3:\r\n\t\t\t{\t\r\n\t\t\t\t// I3\r\n\t\t\t\tx = 181;\r\n\t\t\t\ty = 170;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 4:\r\n\t\t\t{\t\r\n\t\t\t\t// I4\r\n\t\t\t\tx = 300;\r\n\t\t\t\ty = 87;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\t// I5\r\n\t\t\t\tx = 442;\r\n\t\t\t\ty = 136;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 6:\r\n\t\t\t{\t\r\n\t\t\t\t// I6\r\n\t\t\t\tx = 437;\r\n\t\t\t\ty = 249;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 7:\r\n\t\t\t{\t\r\n\t\t\t\t// O1\r\n\t\t\t\tx = 309;\r\n\t\t\t\ty = 371;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 8:\r\n\t\t\t{\t\r\n\t\t\t\t// O2\r\n\t\t\t\tx = 34;\r\n\t\t\t\ty = 291;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 9:\r\n\t\t\t{\t\r\n\t\t\t\t// O3\r\n\t\t\t\tx = 113;\r\n\t\t\t\ty = 54;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 10:\r\n\t\t\t{\t\r\n\t\t\t\t// O4\r\n\t\t\t\tx = 383;\r\n\t\t\t\ty = 18;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 11:\r\n\t\t\t{\t\r\n\t\t\t\t// O5\r\n\t\t\t\tx = 560;\r\n\t\t\t\ty = 147;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 12:\r\n\t\t\t{\t\r\n\t\t\t\t// O6\r\n\t\t\t\tx = 558;\r\n\t\t\t\ty = 312;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "protected void initialize() {\n \tif (state == PistonPositions.Extended) moving = Robot.armPiston.smartExtend();\n \telse Robot.armPiston.smartRetract();\n }", "public final void initialPosition() {\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.RED, Type.PAWN), new PositionImpl( 38 + 8*i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.BLACK, Type.PAWN), new PositionImpl( 12 + i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.YELLOW, Type.PAWN), new PositionImpl( 1 + 8*i));\n\t\t}\n\t\tfor( int i = 0; i < 4; i++) {\n\t\t setPiece( new PieceImpl( Color.GREEN, Type.PAWN), new PositionImpl( 48 + i));\n\t\t}\n\t\t\n\t\tsetPiece( new PieceImpl( Color.RED, Type.BOAT), new PositionImpl( 63 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.KNIGHT), new PositionImpl( 55 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.ELEPHANT), new PositionImpl( 47 ));\n\t\tsetPiece( new PieceImpl( Color.RED, Type.KING), new PositionImpl( 39 ));\n\t\t\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.BOAT), new PositionImpl( 7 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.KNIGHT), new PositionImpl( 6 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.ELEPHANT), new PositionImpl( 5 ));\n\t\tsetPiece( new PieceImpl( Color.BLACK, Type.KING), new PositionImpl( 4 ));\n\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.BOAT), new PositionImpl( 0 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.KNIGHT), new PositionImpl( 8 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.ELEPHANT), new PositionImpl( 16 ));\n\t\tsetPiece( new PieceImpl( Color.YELLOW, Type.KING), new PositionImpl( 24 ));\n\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.BOAT), new PositionImpl( 56 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.KNIGHT), new PositionImpl( 57 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.ELEPHANT), new PositionImpl( 58 ));\n\t\tsetPiece( new PieceImpl( Color.GREEN, Type.KING), new PositionImpl( 59 ));\n\t\t\n }", "public void reset(){\r\n\t\tSystem.out.println(\"(EnigmaMachine) Initial Positions: \" + Arrays.toString(initPositions));\r\n\t\trotors.setPositions(initPositions);\r\n\t}", "protected void initialize() {\n\t\tint position = Robot.wrist.getCurrentPosition();\n\t\tSystem.out.println(\"Wrist position: \" + position);\n\t\tif (position < safePosition) {\n\t\t\tisSafe = false;\n\t\t\tRobot.wrist.setTargetPosition(homePosition);\n\t\t} else {\n\t\t\tisSafe = true;\n\t\t}\n\t\tSystem.out.println(\"Wrist is safe: \" + isSafe);\n\t}", "void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }", "public void setPosition(Point newPosition);", "protected void initialize() {\n \t\n \n \t\n \tRobotMap.motorLeftTwo.setSelectedSensorPosition(0,0,0);\n\t\tRobotMap.motorRightTwo.setSelectedSensorPosition(0,0,0);\n \t\n \torientation.setSetPoint(desiredAngle);\n \tstartTime = Timer.getFPGATimestamp();\n }", "protected void positionCenter() {\n\t\tlog(\"Positioning on center of line.\");\n\t\tdouble offset = -lineWidth / 2;\n\t\tbindTransition(getPilot().travelComplete(offset), LineFinderState.FINISH);\n\t}", "@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "private void getInitialSeekBarPositions() {\n final ContentResolver resolver = getActivity().getContentResolver();\n portColumnsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_COLUMNS_PORTRAIT, 3, UserHandle.USER_CURRENT);\n portRowsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_ROWS_PORTRAIT, 3, UserHandle.USER_CURRENT);\n landColumnsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_COLUMNS_LANDSCAPE, 4, UserHandle.USER_CURRENT);\n landRowsValue = Settings.System.getIntForUser(resolver,\n Settings.System.QS_ROWS_LANDSCAPE, 2, UserHandle.USER_CURRENT);\n }", "private void initPosition() {\r\n while (true) {\r\n int x = RandomUtil.nextInt(boardLength);\r\n int y = RandomUtil.nextInt(boardLength);\r\n if (board.isSimple(x, y)) {\r\n heroTeam.setPosition(x, y);\r\n board.setTeamPosition(x, y);\r\n break;\r\n }\r\n }\r\n }", "protected void initialize() {\n\t\tthis.position = Point3D.ZERO;\n\t\t// reset subclasses properties if any\n\t\treset();\n\t}", "public void resetPose() {\n }", "public void cornersResetPosition() {\n if ((System.currentTimeMillis() - cornersCurrentDelayTime) >= MAX_DELAY_TIME) {\n cornersPositionInit();\n }\n }", "private void setStartValues() {\n startValues = new float[9];\n mStartMatrix = new Matrix(getImageMatrix());\n mStartMatrix.getValues(startValues);\n calculatedMinScale = minScale * startValues[Matrix.MSCALE_X];\n calculatedMaxScale = maxScale * startValues[Matrix.MSCALE_X];\n }", "public Builder setStartPosition(int value) {\n bitField0_ |= 0x00000008;\n startPosition_ = value;\n onChanged();\n return this;\n }", "public void resetPosition()\n {\n resetPosition(false);\n }", "public void setPosition(Point position) {\n this.position = position;\n }", "public void setPositionEstimationEnabled(\n final boolean positionEstimationEnabled) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mPositionEstimationEnabled = positionEstimationEnabled;\n }", "public String getInitialPosition() {\n\t\treturn initPos;\n\t}", "public Builder setPositionX(double value) {\n bitField0_ |= 0x00000004;\n positionX_ = value;\n onChanged();\n return this;\n }", "public Builder setPositionX(double value) {\n bitField0_ |= 0x00000040;\n positionX_ = value;\n onChanged();\n return this;\n }", "public void setStartPoint(CartesianCoordinate startPoint) {\r\n\t\tthis.startPoint = startPoint;\r\n\t}", "public void onNewPositionSet(){\n\n if(positionSettings == null){ //never set before\n positionSettings = Position.getPositionSettings(getContext());\n sync();\n }\n else{\n positionSettings = Position.getPositionSettings(getContext());\n readAllRelevantMatches(); //read all over with new preferences.\n }\n\n int km = (int) positionSettings.radius/1000;\n message.setText(String.format(getString(R.string.frag_avail_matches_preference_msg), km));\n }", "public void center() {\n\t\tif(parent != null) {\n\t\t\tfloat parMidWidth = parent.getWidth() / 2f;\n\t\t\tfloat parMidHeight = parent.getHeight() / 2f;\n\t\t\tfloat midWidth = width / 2f;\n\t\t\tfloat midHeight = height / 2f;\n\t\t\t\n\t\t\tfloat newX = parent.getX() + (parMidWidth - midWidth);\n\t\t\tfloat newY = parent.getY() + (parMidHeight - midHeight);\n\t\t\t\n\t\t\tposition = new Vec2f(newX, newY);\n\t\t\tfindPosRatios();\n\t\t}\n\t}", "private void setPosition(int startPosition) {\n switch (direction) {\n case UP:\n case DOWN:\n this.posX = componentToMove.getX();\n this.posY = componentToMove.getY() + (direction == Direction.UP ? startPosition : -startPosition);\n break;\n default:\n this.posX = componentToMove.getX() + (direction == Direction.LEFT ? startPosition : -startPosition);\n this.posY = componentToMove.getY();\n }\n }", "public void testSetStartLocation() {\n assertEquals(test, maze1.getStartLocation());\n test = new Location(0, 1);\n maze1.setStartLocation(test);\n assertEquals(test, maze1.getStartLocation());\n test = new Location(2, 2);\n maze1.setCell(test, MazeCell.WALL);\n maze1.setStartLocation(test);\n assertEquals(test, maze1.getStartLocation());\n \n }", "@Override\n public void initialize() {\n arm.setPosition(degrees);\n }", "public Builder setPositionX(double value) {\n bitField0_ |= 0x00000008;\n positionX_ = value;\n onChanged();\n return this;\n }", "public void resetPlayerPosition() {\n\t\tthis.tilePositionX = this.STARTING_X;\n\t\tthis.tilePositionY = this.STARTING_Y;\n\t}", "@Override\n\tprotected Point getInitialLocation(Point initialSize)\n\t{\n\t\tShell shell = this.getShell();\n Monitor primary = shell.getMonitor();\n Rectangle bounds = primary.getBounds ();\n int x = bounds.x + (bounds.width - initialSize.x) / 2;\n int y = bounds.y + (bounds.height - initialSize.y) / 2;\n\t\treturn new Point(x, y);\n\t}", "public void setPosition(Point position) {\n this.position = new Point(position);\n update();\n }", "public void updatePositionValue(){\n m_X.setSelectedSensorPosition(this.getFusedPosition());\n }", "private void setInititalValues() {\n drone.setTranslateX(INITIAL_X_POSITION);\n drone.setTranslateY(INITIAL_Y_POSITION);\n drone.setTranslateZ(INITIAL_Z_POSITION);\n\n // set initial orientation to z-axis (into the screen)\n setxOrientation(0);\n setyOrientation(0);\n setzOrientation(1);\n setYawAngle(0);\n setRollAngle(0);\n setPitchAngle(0);\n setSpeed(TelloDefaultValues.DEFAULT_SPEED);\n }", "void gettingBackToInitial(){\n robot.setDrivetrainPosition(-hittingMineralDistance, \"translation\", 1.0);\n }", "public void setStartX(double val) {\r\n startx = val;\r\n }", "public void setStartingPosition(GameTile [][] visibleMap) {\r\n\t\t//method to set the starting position of our player.\r\n\t\tfor(int i=0; i<visibleMap.length; i++) {\r\n\t\t\tfor(int j=0; j<visibleMap[i].length; j++) {\r\n\t\t\t\tif(visibleMap[i][j] != null && visibleMap[i][j].hasPlayer()) {\r\n\t\t\t\t\tplayerX = i;\r\n\t\t\t\t\tplayerY = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setPosition(Coordinate position) {\n cPosition = position;\n }", "public ArmMoveWithPiston(ArmPositions position) {\n\t\tthis(position.getAngle(), RobotMap.PistonPositions.Null);\n\t}", "protected void initialize() {\n\t\t// startAngle = drive.getAngle();\n\t\tdrive.resetBothEncoders();\n\t\tpLeft = speed;\n\t\tpRight = speed;\n\t}", "@Override\n public void initialize() {\n setPoint = (((targetAngle + driveSubsystem.getHeading() + 180) % 360) - 180);\n }", "public void reset() {\n\t\tmCenterOfProjection = new Vector3f(0, 0, 15);\n\t\tmLookAtPoint = new Vector3f(0, 0, 0);\n\t\tmUpVector = new Vector3f(0, 1, 0);\n\t\tmCameraMatrix = new Matrix4f();\n\t\tthis.update();\n\t}", "public void initialize() {\n\t\tdrivetrain.resetGyro();\n\t\tdrivetrain.setAngleTarget(getTargetAngle());\n\t\tLog.debug(this.getClass().toString()+ \".initialize called drivetrain.setAngleTarget(\" + getTargetAngle() + \")\");\n\t\t\n\n\t}", "public Builder setLatitude(int value) {\n bitField0_ |= 0x00000002;\n latitude_ = value;\n onChanged();\n return this;\n }", "public void resetPuck() {\n this.puck.setPosition(new Point(this.center_point));\n }", "protected void setPosition(long positionRequested, boolean update) {\n\t\tif (requestedFile != null) {\n\t\t\tcurrentFile = requestedFile;\n\t\t\trequestedFile = null;\n\t\t}\n\t\tif (currentFile != null) {\n\t\t\ttry {\n\t\t\t\tcurrentPosition = currentFile.setPosition(positionRequested);\n\t\t\t\tif (currentPosition != positionRequested)\n\t\t\t\t\tSystem.err.println(\"Warning: setPosition() failed: \" +\n\t\t\t\t\t\tcurrentPosition + \" instead of \" + positionRequested);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (update)\n\t\t\t\tgui.displayPanel.scrollTo(currentPosition /\n\t\t\t\t\t\tcurrentFile.frameSize / currentFile.frameRate, false);\n\t\t}\n\t}", "public void setX(int position) {\r\n\t\tif(position<5 && position>=0) {\r\n\t\t\tthis.xcoord = position;\r\n\t\t}\r\n\t\telse {\r\n\t\t\trandomX();\r\n\t\t}\r\n\t}", "@Override\n protected void initialize() {\n mDrive.resetGyroPosition();\n try {\n Trajectory left_trajectory = PathfinderFRC.getTrajectory(pathName + \".left\");\n Trajectory right_trajectory = PathfinderFRC.getTrajectory(pathName + \".right\");\n\n m_left_follower = new EncoderFollower(left_trajectory);\n m_right_follower = new EncoderFollower(right_trajectory);\n\n if(isBackwards) {\n initBackwards();\n } else {\n initForwards();\n }\n } catch (IOException e) {\n\t\t e.printStackTrace();\n\t }\n }", "@Override\n public void init()\n {\n target.setAbsoluteTolerance(ANGLE_ABSOLUTE_TOLERANCE); // Configure the target's absolute tolerance\n /*\n Limit the speed on the target between these values to prevent overshooting and damage to motors\n Normally we would leave the output range without bounds because we wish for the end affector to reach the setpoint\n as fast as possible, in a constant time, which would mean having an output proportional to it's error, but in this case\n We don't care how long it takes to reach its target, we just want it to get there in one piece */\n //System.out.println(\"INITIALIZING PID CONTROL\");\n target.setOutputRange(-0.15, 0.15);\n\n /* load percent control in because output is simply a percentage */\n target.loadLeftController(\"percent\");\n target.loadRightController(\"percent\");\n }", "public void setFirst(boolean first){\r\n\t\tfirstCoordinate = first;\r\n\t}", "public void setRouteCenter() {\n\t\tif (metaInfo.isAutoZoomingChecked()) {\n\t\t\t// Calculates the mean point and sets the route.\n\t\t\tdouble meanLat = 0;\n\t\t\tdouble meanLon = 0;\n\t\t\tint numberPoints;\n\t\t\tdouble farthestLat = 0;\n\t\t\tdouble farthestLon = 0;\n\t\t\tdouble zoom;\n\n\t\t\tList<UIWayPoint> currentWayPoints = utilities.getOrderedWayPoints();\n\t\t\tnumberPoints = utilities.getOrderedWayPoints().size();\n\n\t\t\tfor (UIWayPoint p : currentWayPoints) {\n\t\t\t\tmeanLat += Double.valueOf(p.getLatitude());\n\t\t\t\tmeanLon += Double.valueOf(p.getLongitude());\n\t\t\t}\n\n\t\t\tmeanLat /= (numberPoints * 1.0);\n\t\t\tmeanLon /= (numberPoints * 1.0);\n\n\t\t\t// Finds farthest latitude and longitude from mean.\n\t\t\tfor (UIWayPoint p : currentWayPoints) {\n\t\t\t\tif ((Math.abs(Double.valueOf(p.getLatitude()) - meanLat) > farthestLat)) {\n\t\t\t\t\tfarthestLat = (Math.abs((Double.valueOf(p.getLatitude())) - meanLat));\n\t\t\t\t}\n\t\t\t\tif ((Math.abs(Double.valueOf(p.getLongitude()) - meanLon) > farthestLon)) {\n\t\t\t\t\tfarthestLon = (Math.abs((Double.valueOf(p.getLongitude()) - meanLon)));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Used to calculate zoom level.\n\t\t\tPoint centerPoint = new Point(meanLat, meanLon);\n\t\t\tif (farthestLat == 0 && farthestLon == 0) {\n\t\t\t\tzoom = 17;\n\t\t\t} else {\n\t\t\t\tzoom = Math.floor(Math.log10(180.0 / Math.max(farthestLat, farthestLon)) / Math.log10(2));\n\t\t\t}\n\n\t\t\tleafletMap.setCenter(centerPoint, zoom + 1);\n\t\t}\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public void resetRobotPositionOnUI() {\r\n\t\tthis.x = checkValidX(1);\r\n\t\tthis.y = checkValidY(1);\r\n\t\ttoggleValid();\r\n\t\trobotImage.setLocation(Constant.MARGINLEFT + (Constant.GRIDWIDTH * 3 - Constant.ROBOTWIDTH)/2 + (x-1) * Constant.GRIDWIDTH, Constant.MARGINTOP + (Constant.GRIDHEIGHT * 3 - Constant.ROBOTHEIGHT)/2 + (y-1) * Constant.GRIDHEIGHT);\r\n\t\t\r\n\t}", "private void setCurrentPos() {\n\t\tcurrentPos=layout_Circle[l.y][l.x];\n\t\tcurrentPos.setFill(Paint.valueOf(\"Red\"));\n\n\t\tsetValidMoves();\n\t}", "public void initialSearch() {\n Kinematics k = getTrustedRobotKinematics();\n //logger.info(\"Kinematics position is \" + k.getPosition());\n\n // Set the default planner.\n setPlanner(PlannerType.TRAPEZOIDAL);\n\n // For gateway no zones were defined yet.\n m_robot.setCheckZones(false);\n\n // Do a preliminary trajectory in a lawnmower pattern.\n Point startPoint = k.getPosition();\n runTrajectory(startPoint, m_lawnmowerTrajectory);\n m_initialSearchDone = true;\n }", "public void resetCoordinates(){\n pos=0;\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE;}\n else{\n this.coordinates[0]=0;}\n if(this.pIndex%3==0){\n this.coordinates[1]=0;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE;} \n }", "protected void initialize() {\n\t\tRobot.sender_.setSendData(vision);\n\n\t\tinitHeading = Robot.drivetrain.getGyroHeading();\n\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartDepth)) {\n\t\t\tinitDistance = Robot.depth_.get_distance() * Drivetrain.kEncoderTicksPerInch;\n\t\t}\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartCubeSearch)) {\n\t\t\tinitDistance = Robot.cube_.get_distance() * Drivetrain.kEncoderTicksPerInch;\n\t\t}\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartRFT)) {\n\t\t\tinitDistance = Robot.rft_.get_distance() * Drivetrain.kEncoderTicksPerInch;\n\t\t}\t\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.PlatformBlueSearch) || vision.equalsIgnoreCase(SocketVisionSender.PlatformRedSearch)) {\n\t\t\tinitDistance = Robot.platform_.get_distance();\n\t\t}\n\t}", "public int[] getPlayerInitialPosition() \n\t{\n\t\treturn player_initial_position;\n\t}", "public void setCameraPosition(Point position) {\n setCamera(position, getCamera().lookAt);\n }", "public PropositionHolder(Etudes.Proposition initial)\r\n {\r\n value = initial;\r\n }" ]
[ "0.6178364", "0.58801115", "0.5766542", "0.56166273", "0.5605407", "0.55682963", "0.5553936", "0.5505569", "0.5482246", "0.5448305", "0.54338133", "0.54229116", "0.5402559", "0.535844", "0.5350671", "0.5346399", "0.53439814", "0.53121746", "0.5308585", "0.5274028", "0.5270997", "0.5236181", "0.521725", "0.52155024", "0.5214596", "0.5214596", "0.5214596", "0.5214271", "0.5210943", "0.5190803", "0.51615345", "0.51504016", "0.5136194", "0.512982", "0.510784", "0.5080374", "0.50774604", "0.50683707", "0.5051135", "0.50487614", "0.50453615", "0.5039303", "0.50313455", "0.50121903", "0.50091594", "0.50049937", "0.49916887", "0.49873084", "0.4980047", "0.4962884", "0.4958351", "0.49550274", "0.49503493", "0.4938725", "0.49359667", "0.49351683", "0.49206227", "0.4914937", "0.49019352", "0.49003583", "0.48984423", "0.4897952", "0.48976347", "0.48964685", "0.48943785", "0.4894275", "0.48930866", "0.48860833", "0.48841584", "0.48826766", "0.48813638", "0.48792976", "0.48782238", "0.48774672", "0.4876924", "0.48692548", "0.48603028", "0.48587185", "0.48587137", "0.484659", "0.48408175", "0.48407537", "0.4838415", "0.48358038", "0.48190725", "0.48182058", "0.48176968", "0.4816088", "0.4814543", "0.47972292", "0.4793247", "0.47904614", "0.478551", "0.47757933", "0.47664237", "0.47644374", "0.47625822", "0.47574246" ]
0.5549323
9
Gets initial exponent typically used on free space for path loss propagation in terms of distance. On different environments path loss exponent might have different value: Free space: 2.0 Urban Area: 2.7 to 3.5 Suburban Area: 3 to 5 Indoor (lineofsight): 1.6 to 1.8 If path loss exponent estimation is enabled, estimation will start at this value and will converge to the most appropriate value. If path loss exponent estimation is disabled, this value will be assumed to be exact and the estimated path loss exponent will be equal to this value.
public double getInitialPathLossExponent() { return mInitialPathLossExponent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public double exponent()\n\t{\n\t\treturn _dblExponent;\n\t}", "public BigInteger getExponent() {\n return this.exponent;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public int getExponent();", "public void setInitialPathLossExponent(final double initialPathLossExponent)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public void setInitialPathLossExponent(final double initialPathLossExponent)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public String get_exponent_part();", "public Integer getExponent();", "public long priceExponent() {\n\t\treturn message.getBasePriceExponent();\n\t}", "public double powE(double exp) {\n return Double.parseDouble(String.format(\"%.8f\", Math.pow(StrictMath.E, exp)));\n }", "public void setPathLossExponent(final Integer pathLossExponent) {\n this.pathLossExponent = pathLossExponent;\n }", "public static double exp() {\r\n System.out.println(\"What is your base?\");\r\n int b = Main.sc.nextInt();\r\n System.out.println(\"What is your power?\");\r\n int p = Main.sc.nextInt();\r\n double answer = Math.pow((double) b, (double) p);\r\n return answer;\r\n }", "public abstract String getExponent();", "public float getUserExponent() {\n/* 195 */ return this.userExponent;\n/* */ }", "private void calculateSensitivityExponent() {\n this.sensitivityExponent = Math.exp(-1.88 * percentageSensitivity);\n }", "private double procesarOperadorExponente() throws Exception {\r\n double resultado = procesarCoeficientesFuncionesParentesis();\r\n while (!colaDeTokens.isEmpty()) {\r\n switch (colaDeTokens.element().tipoToken) {\r\n case EXPONENTE:\r\n \r\n colaDeTokens.remove();\r\n resultado = Math.pow(resultado, procesarCoeficientesFuncionesParentesis());\r\n continue;\r\n }\r\n break;\r\n }\r\n return resultado;\r\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "@Test\n\tpublic void testExponentiation() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.pow(zero, zero);\n\t\t\tassertEquals(ac.exponentiation(zero, zero), expResult, 0);\n\t\t}\n\t\t\n\t}", "public int getMaxEXP() {\n return maxEXP_;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public long sizeExponent() {\n\t\treturn message.getBaseSizeExponent();\n\t}", "public double getExp() {\n return exp;\n }", "int getMaxEXP();", "int getMaxEXP();", "public int getExponent( double f ) {\r\n \r\n int exp = (int)( Math.log( f ) / Math.log( 2 ) );\r\n \r\n return exp;\r\n \r\n }", "public double getExpLoss()\r\n\t{\treturn this.expLoss;\t}", "public double getApproxEmin() {\n try {\n return computeE(getTmin());\n }\n catch (Exception e) {\n return 0x0.0p0;\n }\n }", "public String getExponent(boolean biased) {\n return Native.fpaGetNumeralExponentString(getContext().nCtx(), getNativeObject(), biased);\n }", "static double k0exp(final double x) {\n if (x <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return (chebyshev(x * x - 2, KA) - Math.log(0.5 * x) * Bessel.i0(x)) * Math.exp(x);\n }\n return chebyshev(8 / x - 2, KB) / Math.sqrt(x);\n }", "int getCurEXP();", "int getCurEXP();", "public int getCurEXP() {\n return curEXP_;\n }", "public int getCurEXP() {\n return curEXP_;\n }", "public int getCurEXP() {\n return curEXP_;\n }", "public int getCurEXP() {\n return curEXP_;\n }", "public double getApproxEmax() {\n try {\n return computeE(getTmax());\n }\n catch (Exception e) {\n return 0x0.0p0;\n }\n }", "public double estimatedEnergyPerPanel() {\n\t\tif (estimatedEnergyPerPanel < 0) {\n\t\t\treturn estimatedEnergyPerPanel;\n\t\t}\n\t\t// if est. EnergyPerPanel hasn't been found yet, we find it here...\n\t\tdouble wattToKW = .001;\n\t\testimatedEnergyPerPanel = systemCap * wattToKW;\n\t\t// the returned estimated energy will factor in the powerTolerance,\n\t\t// which typically equates to percent loss on the panel\n\t\treturn estimatedEnergyPerPanel -= estimatedEnergyPerPanel\n\t\t\t\t* (.01 * powerTolerance);\n\t}", "public int getExp() {\n \t\treturn exp;\n \t}", "BigDecimal getEndingElevation();", "public double pow(double base, double exponent){ return Math.pow(base, exponent); }", "public int getRequiredExp() {\n return classData.getRequiredExp(level);\n }", "public final EObject ruleExponentialFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n Token otherlv_5=null;\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_base_2_0 = null;\r\n\r\n EObject lv_exponent_4_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3442:28: ( ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:1: ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:1: ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:2: ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:2: ( (lv_operator_0_0= ruleExponentialOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3444:1: (lv_operator_0_0= ruleExponentialOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3444:1: (lv_operator_0_0= ruleExponentialOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3445:3: lv_operator_0_0= ruleExponentialOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getOperatorExponentialOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleExponentialOperator_in_ruleExponentialFunction7346);\r\n lv_operator_0_0=ruleExponentialOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"ExponentialOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,43,FOLLOW_43_in_ruleExponentialFunction7358); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getExponentialFunctionAccess().getLeftParenthesisKeyword_1());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3465:1: ( (lv_base_2_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3466:1: (lv_base_2_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3466:1: (lv_base_2_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3467:3: lv_base_2_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getBaseNumberExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleExponentialFunction7379);\r\n lv_base_2_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"base\",\r\n \t\tlv_base_2_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_3=(Token)match(input,20,FOLLOW_20_in_ruleExponentialFunction7391); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_3, grammarAccess.getExponentialFunctionAccess().getCommaKeyword_3());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3487:1: ( (lv_exponent_4_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3488:1: (lv_exponent_4_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3488:1: (lv_exponent_4_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3489:3: lv_exponent_4_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getExponentNumberExpressionParserRuleCall_4_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleExponentialFunction7412);\r\n lv_exponent_4_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"exponent\",\r\n \t\tlv_exponent_4_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_5=(Token)match(input,44,FOLLOW_44_in_ruleExponentialFunction7424); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_5, grammarAccess.getExponentialFunctionAccess().getRightParenthesisKeyword_5());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "BigDecimal getRecoveryFactor();", "public Double exponent(Double advNum1, Double advNum2) {\n answer = Math.pow(advNum1, advNum2);\n return answer;\n }", "public java.math.BigDecimal getInput_power()\n\t\tthrows java.rmi.RemoteException;", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "double a_hinge_power ()\n {\n double l_return = 0.0;\n\n if (hinge != null) {\n l_return = hinge.getPower();\n }\n\n return l_return;\n }", "public void setExponent(Integer exponent);", "public boolean get_exponent_sign();", "public double getTotalExp() {\n double exp = this.exp;\n for (int i = 1; i < level; i++)\n exp += classData.getRequiredExp(i);\n return exp;\n }", "public int getJumpMaxElevationChange() {\n return getMaxElevation() -\n getGame().getBoard().getHex(getFinalCoords()).getLevel();\n }", "public double GetEXPLIM() {\n\t\treturn EXPLEVELUP;\n\t}", "@Override\n\tpublic double pow(double base, double exp) {\n\t\treturn 0;\n\t}", "public double getExpModifier()\r\n\t{\treturn this.expModifier;\t}", "public final EObject ruleExponentialOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5046:28: ( ( () otherlv_1= 'exp' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5047:1: ( () otherlv_1= 'exp' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5047:1: ( () otherlv_1= 'exp' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5047:2: () otherlv_1= 'exp'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5047:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5048:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getExponentialOperatorAccess().getExponentialOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,72,FOLLOW_72_in_ruleExponentialOperator11485); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getExponentialOperatorAccess().getExpKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public double getFreeEnergy(){\n\n\t\tdouble freeEnergy = 0.;\n\n\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\tfreeEnergy -= this.layers[0][i].getState()*this.layers[0][i].getBias();\n\t\t}\n\n\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\t//System.out.println(\"x = \" + x);\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t\t/*System.out.println(\"1 = \" + this.layers[0][i].getState());\n\t\t\t\tSystem.out.println(\"2 = \" + this.connections[i][j]);\n\t\t\t\tSystem.out.println(\"x = \" + x);\n\t\t\t\tif(x != x){ this.layers[3] = null;}*/\n\t\t\t}\n\t\t\t//System.out.println(\"x = \" + x);\n\t\t\tfreeEnergy -= Math.log(1 + Math.exp(x));\n\t\t}\n\n\t\t/*\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t}\n\t\t\tfreeEnergy -= x*Sigmoid.getINSTANCE().apply(x);\n\t\t}\n\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t}\n\t\t\tdouble p = Sigmoid.getINSTANCE().apply(x);\n\t\t\tfreeEnergy += p*Math.log10(p) + (1. - p)*Math.log10(1. - p);\n\t\t}\n\t\t */\n\n\t\treturn freeEnergy;\n\t}", "static double k1exp(final double x) {\n final double z = 0.5 * x;\n if (z <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return (Math.log(z) * Bessel.i1(x) + chebyshev(x * x - 2, K1A) / x) * Math.exp(x);\n }\n return chebyshev(8 / x - 2, K1B) / Math.sqrt(x);\n }", "public Expressao getExp() {\n\t\treturn exp;\n\t}", "public int getPow() {\n return _pow;\n }", "public static float exp(float x) {\n\n return 0;\n }", "public static int getEXPForNextLevel(int currentLevel) {\n\t\tif (currentLevel < 1 || currentLevel >= MAX_LEVEL)\n\t\t\tthrow new IllegalArgumentException(currentLevel + \" not a valid level\");\n\n\t\t// XP_FOR_LEVEL[0] is for 1st level\n\t\treturn XP_FOR_NEXT_LEVEL[currentLevel - 1];\n\t}", "public float getPowerMultiplier() { return 0.5F; }", "public double getInitialElectricityProduction() {\r\n\t\treturn initialElectricityProduction;\r\n\t}", "public double getEpsilon() {\n\t\treturn epsilon;\n\t}", "BigDecimal getElevation();", "public void setExp(double exp) {\n this.exp = Math.max(Math.min(exp, getRequiredExp() - 1), 0);\n }", "private static final int getPower(Parsing t) {\n\t\tchar s='+';\t\t// Exponent Sign\n\t\tint pow=0;\t\t// Exponent Value\n\t\tint inum=0;\t\t// Index of exponent\n\t\tint posini=t.pos;\n\t\t//System.out.print(\"....getPower on '\" + this + \"', pos=\" + pos + \": \");\n\t\tt.pos = t.length-1;\n\t\tif (Character.isDigit(t.a[t.pos])) {\n\t\t\twhile (Character.isDigit(t.a[t.pos])) --t.pos;\n\t\t\ts = t.a[t.pos];\n\t\t\tif ((s == '+') || (s == '-')) ;\t// Exponent starts here\n\t\t\telse ++t.pos;\n\t\t\tinum = t.pos;\n\t\t\tpow = t.parseInt();\n\t\t\t//System.out.print(\"found pow=\" + pow + \",pos=\" + pos);\n\t\t}\n\t\tif (pow != 0) {\t\t// Verify the power is meaningful\n\t\t\tif (t.a[0] == '(') {\n\t\t\t\tif (t.a[inum-1] != ')') pow = 0;\n\t\t\t}\n\t\t\telse {\t\t// could be e.g. m2\n\t\t\t\tfor (int i=0; i<inum; i++) {\n\t\t\t\t\t// Verify the unit is not a complex one\n\t\t\t\t\tif (!Character.isLetter(t.a[i])) pow = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (pow == 0) t.pos = posini;\n\t\telse t.pos = inum;\n\t\t//System.out.println(\" pow=\" + pow + \", pos=\" + pos);\n\t\treturn(pow);\n\t}", "private double getExponentTerm(final double[] values) {\n //final double[] centered = new double[values.length];\n //for (int i = 0; i < centered.length; i++) {\n // centered[i] = values[i] - means[i];\n //}\n // I think they are already centered from earlier?\n //final double[] preMultiplied = covariance_rpt_inv_normal.multiply(values/*centered*/);\n double sum = 0;\n for (int i = 0; i < values.length; i++) {\n sum += (Math.exp(-0.5 * values[i]) / constant_normal);//centered[i];\n }\n return sum;\n }", "public java.math.BigDecimal getPwrval() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.math.BigDecimal) __getCache(\"pwrval\")));\n }", "public double getExchRate() {\n return _exchRate;\n }", "BigInteger getPower_consumption();", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "public float getExp ( ) {\n\t\treturn extract ( handle -> handle.getExp ( ) );\n\t}", "public double getDescent() throws PDFNetException {\n/* 894 */ return GetDescent(this.a);\n/* */ }", "public Double getEstimatedTransmittedPower() {\n return mEstimatedTransmittedPowerdBm != null ?\n Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null;\n }", "public Integer getExpLevel()\n\t{\n\t\treturn expLevel;\n\t}", "public static double exponential( double lambda ) {\n return -Math.log( 1 - Math.random() ) / lambda;\n }", "public abstract byte getMaxExponentSize();", "public int getMaxpower() {\n\t\treturn 0;\r\n\t}", "public BigDecimal getEXCH_RATE() {\r\n return EXCH_RATE;\r\n }", "public final EObject entryRuleExponentialOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleExponentialOperator = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5035:2: (iv_ruleExponentialOperator= ruleExponentialOperator EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5036:2: iv_ruleExponentialOperator= ruleExponentialOperator EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getExponentialOperatorRule()); \r\n }\r\n pushFollow(FOLLOW_ruleExponentialOperator_in_entryRuleExponentialOperator11429);\r\n iv_ruleExponentialOperator=ruleExponentialOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleExponentialOperator; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleExponentialOperator11439); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "private double[][] calculateExafsEnergiesConstantKStep() {\n\t\tdouble lowK = evToK(cEnergy);\n\t\tdouble highK = evToK(finalEnergy);\n\t\tdouble[][] kArray = createStepArray(lowK, highK, exafsStep, exafsTime, true, numberDetectors);\n\t\t// convert from k to energy in each element\n\t\tfor (int i = 0; i < kArray.length; i++)\n\t\t\tkArray[i][0] = kToEv(kArray[i][0]);\n\t\treturn kArray;\n\t}", "double getExtremeSpikeProbability();", "public static double equation() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Please enter a value for x: \");\n double x = userInput.nextDouble();\n double output = (x * Math.pow(Math.exp(1), -x)) + Math.sqrt(1 - Math.pow(Math.exp(1), -x));\n System.out.print(\"The answer to the equation xe^-x + sqrt(1-(e^-x)) \");\n\tSystem.out.println(\" with that x is: \");\n return output;\n }", "double energy() {\n\n // brightness values\n double brU = 0;\n double brD = 0;\n double brR = 0;\n double brL = 0;\n double brDR = 0;\n double brTR = 0;\n double brDL = 0;\n double brTL = 0;\n if (this.up != null) {\n brU = this.up.brightness;\n }\n if (this.down != null) {\n brD = this.down.brightness;\n }\n\n if (this.right != null) {\n brR = this.right.brightness;\n }\n\n if (this.left != null) {\n brL = this.left.brightness;\n }\n\n if (this.downRight() != null) {\n brDR = this.downRight().brightness;\n }\n\n if (this.downLeft() != null) {\n brDL = this.downLeft().brightness;\n }\n\n if (this.topLeft() != null) {\n brTL = this.topLeft().brightness;\n }\n\n if (this.topRight() != null) {\n brTR = this.topRight().brightness;\n }\n\n\n double vertEnergy = (brTL + brL + brDL) - (brTR + brR + brDR);\n double horizEnergy = (brTL + brU + brTR) - (brDL + brD + brDR);\n\n return Math.sqrt((vertEnergy * vertEnergy) + (horizEnergy * horizEnergy));\n\n }", "private double getNearestAEnergy() {\n\t\tdouble value = getInitialEnergy();\n\t\tdouble ret = value;\n\t\twhile (value < getaEnergy()) {\n\t\t\tdouble step = getPreEdgeStep();\n\t\t\t// avoid infinite loop\n\t\t\tif (step <= 0.0)\n\t\t\t\tstep = 1.0;\n\t\t\tvalue += step;\n\t\t\tif (value > getaEnergy())\n\t\t\t\tbreak;\n\t\t\tret = value;\n\t\t}\n\t\treturn ret;\n\t}", "public boolean isPathLossEstimationEnabled() {\n return mPathLossEstimationEnabled;\n }", "public boolean isPathLossEstimationEnabled() {\n return mPathLossEstimationEnabled;\n }", "private String doExponent(String answer)\n\t{\n\t\tint signSpot;\n\t\tString stringToDelete;\n\t\tdouble number1;\n\t\tdouble number2;\n\t\tint minValue = 0;\n\t\tint maxValue = 0;\n\n\t\twhile (answer.contains(\"^\"))\n\t\t{\n\t\t\tsignSpot = answer.indexOf(\"^\");\n\n\t\t\t// start\n\t\t\tfor (int count = signSpot - 1; count >= 0; count -= 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count, count + 1)) == true\n\t\t\t\t\t\t|| answer.substring(count, count + 1).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tminValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// finish\n\t\t\tfor (int count = signSpot + 2; count <= answer.length(); count += 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count - 1, count)) == true\n\t\t\t\t\t\t|| answer.substring(count - 1, count).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tmaxValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstringToDelete = answer.substring(minValue, maxValue);\n\t\t\tString myString = answer.substring(minValue, signSpot);\n\t\t\tnumber1 = Double.parseDouble(myString);\n\t\t\tmyString = answer.substring(signSpot + 1, maxValue);\n\t\t\tnumber2 = Double.parseDouble(myString);\n\t\t\tDouble numberAnswer1 = Math.pow(number1, number2);\n\n\t\t\tanswer = answer.replace(stringToDelete, \"\" + numberAnswer1);\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t\treturn answer;\n\t}", "public BigDecimal getExchrate() {\n return exchrate;\n }", "public static Double pow (Double base, Double exponent){\n return Math.pow(base, exponent);\n }", "static final float interp_energy(final float prev_e, final float next_e)\n\t{\n\t\treturn (float)Math.pow( 10.0, (Math.log10( prev_e ) + Math.log10( next_e )) / 2.0 );\n\t}", "public int getTrainingExp()\n\t{\n\t\treturn m_skillTrainingExp;\n\t}", "public double getInitialElectricityInput() {\r\n\t\treturn initialElectricityInput;\r\n\t}" ]
[ "0.74925584", "0.6988336", "0.63794285", "0.6156439", "0.6140804", "0.6140804", "0.6106955", "0.60846555", "0.60846555", "0.6053028", "0.6023308", "0.6014212", "0.59504914", "0.59502596", "0.5927183", "0.5872367", "0.58487743", "0.5742985", "0.5640294", "0.5624876", "0.56245387", "0.5602316", "0.55847883", "0.55837625", "0.5490166", "0.5457427", "0.5411398", "0.5411398", "0.5392878", "0.5392438", "0.53758436", "0.5372454", "0.5358023", "0.5339562", "0.5339562", "0.53132045", "0.53130853", "0.5301725", "0.5301202", "0.52384776", "0.52095836", "0.5188348", "0.51752585", "0.515352", "0.51440567", "0.51239777", "0.5121084", "0.5120922", "0.511416", "0.50930625", "0.50930625", "0.50857437", "0.50798094", "0.507878", "0.5076569", "0.5076245", "0.5066685", "0.5065212", "0.50562775", "0.50443465", "0.50346637", "0.5026434", "0.502467", "0.5010043", "0.5004228", "0.5001239", "0.49350414", "0.49048287", "0.49044722", "0.48996344", "0.48969653", "0.4891707", "0.48789907", "0.48517662", "0.48513308", "0.48338348", "0.48081455", "0.47897634", "0.47855777", "0.47833967", "0.47816265", "0.47752848", "0.47536734", "0.47447914", "0.47430223", "0.47425985", "0.47410563", "0.47370082", "0.47344956", "0.47333902", "0.472786", "0.47071958", "0.47071958", "0.46649697", "0.46525252", "0.46396905", "0.463762", "0.4635984", "0.4633783" ]
0.78050524
0
Sets initial exponent typically used on free space for path loss propagation in terms of distance. On different environments path loss exponent might have different value: Free space: 2.0 Urban Area: 2.7 to 3.5 Suburban Area: 3 to 5 Indoor (lineofsight): 1.6 to 1.8 If path loss exponent estimation is enabled, estimation will start at this value and will converge to the most appropriate value. If path loss exponent estimation is disabled, this value will be assumed to be exact and the estimated path loss exponent will be equal to this value.
public void setInitialPathLossExponent(final double initialPathLossExponent) throws LockedException { if (isLocked()) { throw new LockedException(); } mInitialPathLossExponent = initialPathLossExponent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public void setPathLossExponent(final Integer pathLossExponent) {\n this.pathLossExponent = pathLossExponent;\n }", "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public void setExponent(Integer exponent);", "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "private void calculateSensitivityExponent() {\n this.sensitivityExponent = Math.exp(-1.88 * percentageSensitivity);\n }", "public void setExp(double exp) {\n this.exp = Math.max(Math.min(exp, getRequiredExp() - 1), 0);\n }", "public double exponent()\n\t{\n\t\treturn _dblExponent;\n\t}", "@Test\n\tpublic void testExponentiation() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.pow(zero, zero);\n\t\t\tassertEquals(ac.exponentiation(zero, zero), expResult, 0);\n\t\t}\n\t\t\n\t}", "public void setExp ( float exp ) {\n\t\texecute ( handle -> handle.setExp ( exp ) );\n\t}", "public BigInteger getExponent() {\n return this.exponent;\n }", "public abstract void setMaxExponentSize(byte maxExponentSize);", "public void setUserExponent(float userExponent) {\n/* 235 */ if (userExponent <= 0.0F) {\n/* 236 */ throw new IllegalArgumentException(PropertyUtil.getString(\"PNGDecodeParam0\"));\n/* */ }\n/* 238 */ this.userExponent = userExponent;\n/* */ }", "public int getExponent();", "public double powE(double exp) {\n return Double.parseDouble(String.format(\"%.8f\", Math.pow(StrictMath.E, exp)));\n }", "public Builder setCurEXP(int value) {\n bitField0_ |= 0x00040000;\n curEXP_ = value;\n onChanged();\n return this;\n }", "public void setExp(int exp) {\n \t\tthis.exp = exp;\n \t}", "public void setGenExpReq()\n\t{\n\t\t// This current formula is COMPLETELY ARBITRARY\n\t\t// and will be changed eventually.\n\t\tnextGenLevelXP = (generalLevel * 8);\n\t}", "public Builder setCurEXP(int value) {\n bitField0_ |= 0x00000002;\n curEXP_ = value;\n onChanged();\n return this;\n }", "public void setExp(int exp) {\r\n\t\tthis.exp = exp;\r\n\t}", "public abstract String getExponent();", "public String get_exponent_part();", "public Integer getExponent();", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public float getUserExponent() {\n/* 195 */ return this.userExponent;\n/* */ }", "public long priceExponent() {\n\t\treturn message.getBasePriceExponent();\n\t}", "public Builder setMaxEXP(int value) {\n bitField0_ |= 0x00000004;\n maxEXP_ = value;\n onChanged();\n return this;\n }", "public Builder setMaxEXP(int value) {\n bitField0_ |= 0x00020000;\n maxEXP_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic double pow(double base, double exp) {\n\t\treturn 0;\n\t}", "public void setDisplayExponent(float displayExponent) {\n/* 284 */ if (displayExponent <= 0.0F) {\n/* 285 */ throw new IllegalArgumentException(PropertyUtil.getString(\"PNGDecodeParam1\"));\n/* */ }\n/* 287 */ this.displayExponent = displayExponent;\n/* */ }", "public void setDamping(double decay){damping = Math.exp(-decay);}", "public void setEpsilon(double e) {\n\t\tepsilon = e;\n\t}", "public final EObject ruleExponentialFunction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n Token otherlv_5=null;\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_base_2_0 = null;\r\n\r\n EObject lv_exponent_4_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3442:28: ( ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:1: ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:1: ( ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:2: ( (lv_operator_0_0= ruleExponentialOperator ) ) otherlv_1= '(' ( (lv_base_2_0= ruleNumberExpression ) ) otherlv_3= ',' ( (lv_exponent_4_0= ruleNumberExpression ) ) otherlv_5= ')'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3443:2: ( (lv_operator_0_0= ruleExponentialOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3444:1: (lv_operator_0_0= ruleExponentialOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3444:1: (lv_operator_0_0= ruleExponentialOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3445:3: lv_operator_0_0= ruleExponentialOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getOperatorExponentialOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleExponentialOperator_in_ruleExponentialFunction7346);\r\n lv_operator_0_0=ruleExponentialOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"ExponentialOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,43,FOLLOW_43_in_ruleExponentialFunction7358); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getExponentialFunctionAccess().getLeftParenthesisKeyword_1());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3465:1: ( (lv_base_2_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3466:1: (lv_base_2_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3466:1: (lv_base_2_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3467:3: lv_base_2_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getBaseNumberExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleExponentialFunction7379);\r\n lv_base_2_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"base\",\r\n \t\tlv_base_2_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_3=(Token)match(input,20,FOLLOW_20_in_ruleExponentialFunction7391); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_3, grammarAccess.getExponentialFunctionAccess().getCommaKeyword_3());\r\n \r\n }\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3487:1: ( (lv_exponent_4_0= ruleNumberExpression ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3488:1: (lv_exponent_4_0= ruleNumberExpression )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3488:1: (lv_exponent_4_0= ruleNumberExpression )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:3489:3: lv_exponent_4_0= ruleNumberExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getExponentialFunctionAccess().getExponentNumberExpressionParserRuleCall_4_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNumberExpression_in_ruleExponentialFunction7412);\r\n lv_exponent_4_0=ruleNumberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getExponentialFunctionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"exponent\",\r\n \t\tlv_exponent_4_0, \r\n \t\t\"NumberExpression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_5=(Token)match(input,44,FOLLOW_44_in_ruleExponentialFunction7424); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_5, grammarAccess.getExponentialFunctionAccess().getRightParenthesisKeyword_5());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public static double exp() {\r\n System.out.println(\"What is your base?\");\r\n int b = Main.sc.nextInt();\r\n System.out.println(\"What is your power?\");\r\n int p = Main.sc.nextInt();\r\n double answer = Math.pow((double) b, (double) p);\r\n return answer;\r\n }", "public float getPowerMultiplier() { return 0.5F; }", "private double procesarOperadorExponente() throws Exception {\r\n double resultado = procesarCoeficientesFuncionesParentesis();\r\n while (!colaDeTokens.isEmpty()) {\r\n switch (colaDeTokens.element().tipoToken) {\r\n case EXPONENTE:\r\n \r\n colaDeTokens.remove();\r\n resultado = Math.pow(resultado, procesarCoeficientesFuncionesParentesis());\r\n continue;\r\n }\r\n break;\r\n }\r\n return resultado;\r\n }", "public final EObject ruleExponentialOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5046:28: ( ( () otherlv_1= 'exp' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5047:1: ( () otherlv_1= 'exp' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5047:1: ( () otherlv_1= 'exp' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5047:2: () otherlv_1= 'exp'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5047:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5048:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getExponentialOperatorAccess().getExponentialOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,72,FOLLOW_72_in_ruleExponentialOperator11485); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getExponentialOperatorAccess().getExpKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "static double k0exp(final double x) {\n if (x <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return (chebyshev(x * x - 2, KA) - Math.log(0.5 * x) * Bessel.i0(x)) * Math.exp(x);\n }\n return chebyshev(8 / x - 2, KB) / Math.sqrt(x);\n }", "static public void setInterpPower(int pwr) {\n //Currently must be invoked from P5 as PTriangle.setInterpPower(...)\n TEX_INTERP_POWER = pwr;\n }", "public double pow(double base, double exponent){ return Math.pow(base, exponent); }", "public void setFirstExtreme(double fe){\r\n firstExtreme = fe;\r\n }", "public void setPower(double pow) {\n \tthis.powerIn = pow;\n }", "public static float exp(float x) {\n\n return 0;\n }", "public Double exponent(Double advNum1, Double advNum2) {\n answer = Math.pow(advNum1, advNum2);\n return answer;\n }", "private void eToPower()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.eToPower ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "@Override\n public void setEngergyLevel(double energy) {\n this.energy = energy;\n }", "public void setExpToLevelUp(BigValue expToLevelUp) {\n this.expToLevelUp = expToLevelUp;\n }", "public void setEpsilon(double newEpsilon) {\n\t\tepsilon = newEpsilon;\n\t}", "public int getMaxEXP() {\n return maxEXP_;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "default void setExtremeSpikeIncrease(int increase) {\n setExtremeSpikeIncrease(VariableAmount.fixed(increase));\n }", "public final void power (int expo) throws ArithmeticException {\n\t\tdouble error = 0;\n\t\tint i = expo; \n\t\tdouble r = 1;\n\t\tdouble v = 1; \n\t\tlong u = underScore;\n\t\tif ((mksa&(_log|_mag)) != 0) throw new ArithmeticException\n\t\t(\"****Unit: can't power log[unit]: \" + symbol );\n\t\twhile (i > 0) { \n\t\t\tr *= factor; v *= value; \n\t\t\tu += mksa; u -= underScore; \n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti--; \n\t\t}\n\t\twhile (i < 0) { \n\t\t\tr /= factor; v /= value; \n\t\t\tu += underScore; u -= mksa;\n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti++; \n\t\t}\n\t\tif (error > 0) throw new ArithmeticException\n\t\t(\"****Unit: power too large: (\" + \")^\" + expo) ;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\tmksa = u;\n\t\t/* Decision for the new symbol */\n\t\tif ((expo != 1) && (symbol != null)) {\n\t\t\tif (expo == 0) symbol = \"\";\n\t\t\telse if (symbol.length()>0) {\n\t\t\t\tParsing t = new Parsing(symbol);\n\t\t\t\tint pow;\n\t\t\t\tpow = getPower(t);\n\t\t\t\tif (pow == 0) symbol = toExpr(symbol) + expo;\n\t\t\t\telse {\t\t\t// Combine exponents\n\t\t\t\t\ti=0;\n\t\t\t\t\tpow *= expo;\n\t\t\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\t\t\tif (expo == 1) symbol = symbol.substring(i,t.pos);\n\t\t\t\t\telse symbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void increaseExp(int exp){\r\n\t\tthis.exp = this.exp + exp;\r\n\t}", "void setExtremeSpikeProbability(double p);", "public void setPwrval( java.math.BigDecimal newValue ) {\n __setCache(\"pwrval\", newValue);\n }", "@Override\n public void setPower(double power) {\n\n }", "public Builder setPower(float value) {\n bitField0_ |= 0x00000040;\n power_ = value;\n onChanged();\n return this;\n }", "public void setInput_power(java.math.BigDecimal newInput_power)\n\t\tthrows java.rmi.RemoteException;", "public Builder setBonusExp(float value) {\n bitField0_ |= 0x00000040;\n bonusExp_ = value;\n onChanged();\n return this;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public void setInitialElectricityProduction(double initialElectricityProduction) {\r\n\t\tthis.initialElectricityProduction = initialElectricityProduction;\r\n\t}", "public void setTrainingExp(int exp)\n\t{\n\t\tm_skillTrainingExp = exp;\n\t}", "public void setLossRateEnergy(int lossRateEnergy) {\n\t\tif (lossRateEnergy < 0) {\n\t\t\tSystem.out.println(\"lossRateEnergy should be positive! It is set to \" + LOSS_RATE_ENERGY + \".\");\n\t\t\tlossRateEnergy = LOSS_RATE_ENERGY;\n\t\t}\n\t\tthis.lossRateEnergy = lossRateEnergy;\n\t\tupdatePanel();\n\t}", "public EpsilonGreedyExploration(double epsilon) {\n this.epsilon = epsilon;\n }", "private void doEpsilon(){\n\t\tcurrentState = \"q0\";\n\t}", "static double k1exp(final double x) {\n final double z = 0.5 * x;\n if (z <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return (Math.log(z) * Bessel.i1(x) + chebyshev(x * x - 2, K1A) / x) * Math.exp(x);\n }\n return chebyshev(8 / x - 2, K1B) / Math.sqrt(x);\n }", "public void setXmultiplier(double setx)\n {\n xmultiplier = setx;\n }", "public double getExp() {\n return exp;\n }", "public Builder setElevation(float value) {\n bitField0_ |= 0x00000002;\n elevation_ = value;\n onChanged();\n return this;\n }", "public Builder clearMaxEXP() {\n bitField0_ = (bitField0_ & ~0x00000004);\n maxEXP_ = 0;\n onChanged();\n return this;\n }", "private String doExponent(String answer)\n\t{\n\t\tint signSpot;\n\t\tString stringToDelete;\n\t\tdouble number1;\n\t\tdouble number2;\n\t\tint minValue = 0;\n\t\tint maxValue = 0;\n\n\t\twhile (answer.contains(\"^\"))\n\t\t{\n\t\t\tsignSpot = answer.indexOf(\"^\");\n\n\t\t\t// start\n\t\t\tfor (int count = signSpot - 1; count >= 0; count -= 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count, count + 1)) == true\n\t\t\t\t\t\t|| answer.substring(count, count + 1).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tminValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// finish\n\t\t\tfor (int count = signSpot + 2; count <= answer.length(); count += 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count - 1, count)) == true\n\t\t\t\t\t\t|| answer.substring(count - 1, count).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tmaxValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstringToDelete = answer.substring(minValue, maxValue);\n\t\t\tString myString = answer.substring(minValue, signSpot);\n\t\t\tnumber1 = Double.parseDouble(myString);\n\t\t\tmyString = answer.substring(signSpot + 1, maxValue);\n\t\t\tnumber2 = Double.parseDouble(myString);\n\t\t\tDouble numberAnswer1 = Math.pow(number1, number2);\n\n\t\t\tanswer = answer.replace(stringToDelete, \"\" + numberAnswer1);\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t\treturn answer;\n\t}", "protected void gainEXP(int gain) {\n this.totalEXP += gain;\n }", "protected void expand() {\n matrix = matrix.power(e);\n }", "void setExtremeSpikeIncrease(VariableAmount increase);", "public void setPower(double pow){\n if(pow > 0) {\n crServo.setPower(ZERO_POWER_POSITION + (1 - ZERO_POWER_POSITION) * pow);\n } else if (pow < 0) {\n crServo.setPower(ZERO_POWER_POSITION * (1 + pow));\n } else {\n crServo.setPower(ZERO_POWER_POSITION);\n }\n }", "Term(int coefficient, int exponent)\r\n\t{\r\n\t\tsetAll(coefficient, exponent);\r\n\t}", "public void setEnergy(double energy) { this.energy = energy; }", "public Builder clearMaxEXP() {\n bitField0_ = (bitField0_ & ~0x00020000);\n maxEXP_ = 0;\n onChanged();\n return this;\n }", "BigDecimal getRecoveryFactor();", "public void setInitialValue(float initialValue) {\n this.initialValue = initialValue;\n }", "public void setInitialTransmittedPower(\n final Double initialTransmittedPower) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "int getCurEXP();", "int getCurEXP();", "public void setSecondExtreme(double se){\r\n secondExtreme = se;\r\n }", "public static Double pow (Double base, Double exponent){\n return Math.pow(base, exponent);\n }", "public void testPower() {\r\n System.out.println(\"Power\");\r\n Double [][] n = new Double[][]{{-3., 2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, -1.1E100, -1.1E100}, \r\n {-0.0370370, 9.88212, 1., 0., 1., 0.25, 39.304, 103.05089, 0., 0.}};\r\n for(int i = 0; i < 10; i++){\r\n try{\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Power(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n catch(PoweredZeroByZeroException e){\r\n assertTrue(e instanceof PoweredZeroByZeroException);\r\n }\r\n }\r\n }", "public double getExpLoss()\r\n\t{\treturn this.expLoss;\t}", "public String getExponent(boolean biased) {\n return Native.fpaGetNumeralExponentString(getContext().nCtx(), getNativeObject(), biased);\n }", "private int toPower(int base, int exponent)\n\t {\n\t \t if(exponent > 0)\n\t {\n\t return toPower(base, exponent - 1) * base;\n\t }\n\t return 1;\n\t }", "public RandomGenerator_Exponential(double lambda) {\r\n\t\tthis.lambda = lambda;\r\n\t}", "public void setInitialTransmittedPower(final Double initialTransmittedPower)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (initialTransmittedPower != null) {\n if (initialTransmittedPower < 0.0) {\n throw new IllegalArgumentException();\n }\n mInitialTransmittedPowerdBm = Utils.powerTodBm(\n initialTransmittedPower);\n } else {\n mInitialTransmittedPowerdBm = null;\n }\n }", "public void setGx(final double gx) {\n mGx = gx;\n }", "public final EObject entryRuleExponentialOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleExponentialOperator = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5035:2: (iv_ruleExponentialOperator= ruleExponentialOperator EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:5036:2: iv_ruleExponentialOperator= ruleExponentialOperator EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getExponentialOperatorRule()); \r\n }\r\n pushFollow(FOLLOW_ruleExponentialOperator_in_entryRuleExponentialOperator11429);\r\n iv_ruleExponentialOperator=ruleExponentialOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleExponentialOperator; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleExponentialOperator11439); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public long sizeExponent() {\n\t\treturn message.getBaseSizeExponent();\n\t}", "public baconhep.TTau.Builder setPuppiGammaIsoNoLep(float value) {\n validate(fields()[21], value);\n this.puppiGammaIsoNoLep = value;\n fieldSetFlags()[21] = true;\n return this; \n }", "protected void setStateToLowestEnergy() {\n\tpoints = bestEverPoints;\n\n\t// make a copy of the best points\n\tbestEverPoints = getPoints();\n\n\tbuildEnergyMatrix();\n\tstateEnergy();\n }" ]
[ "0.72019297", "0.72019297", "0.67942524", "0.6650358", "0.64074665", "0.6335549", "0.60146886", "0.59947085", "0.5644056", "0.56061053", "0.5521441", "0.54849", "0.54635185", "0.54300666", "0.5389662", "0.53675747", "0.5326475", "0.53205955", "0.5303408", "0.5294502", "0.52802736", "0.5274867", "0.52338135", "0.5208624", "0.52050614", "0.52050614", "0.5189181", "0.51656365", "0.5154945", "0.5152012", "0.512916", "0.5068439", "0.504797", "0.5040815", "0.5037188", "0.50362355", "0.50166816", "0.50058126", "0.4958693", "0.4957293", "0.49535233", "0.49500027", "0.49367046", "0.49362668", "0.48305008", "0.48199025", "0.4810461", "0.48091403", "0.48076144", "0.4800826", "0.4788252", "0.47877273", "0.478646", "0.47737905", "0.4772383", "0.47691563", "0.47645986", "0.4759867", "0.47489226", "0.4744167", "0.47379985", "0.47265652", "0.47254395", "0.47177532", "0.47107187", "0.4708975", "0.47084555", "0.47051582", "0.46974027", "0.4673834", "0.46713737", "0.46666738", "0.4663555", "0.46606278", "0.4649225", "0.46436545", "0.4635312", "0.4631651", "0.46063483", "0.45995685", "0.4597631", "0.45943475", "0.45898253", "0.45823312", "0.45754337", "0.45754337", "0.45725557", "0.4570076", "0.45646748", "0.4563026", "0.4553869", "0.454884", "0.45483696", "0.4545692", "0.45422515", "0.45392305", "0.45310822", "0.45309657", "0.4527518" ]
0.7175833
3
Indicates whether path loss estimation is enabled or not.
public boolean isPathLossEstimationEnabled() { return mPathLossEstimationEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPathLossEstimationEnabled(\n final boolean pathLossEstimationEnabled) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mPathLossEstimationEnabled = pathLossEstimationEnabled;\n }", "public void setPathLossEstimationEnabled(final boolean pathLossEstimationEnabled)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mPathLossEstimationEnabled = pathLossEstimationEnabled;\n }", "public boolean hasEnabledPath() {\n\t\treturn enablePath;\n\t}", "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public boolean isGraphEnabled() {\r\n \t\treturn graph.isEnabled();\r\n \t}", "final public boolean isGradientsUsed()\n {\n return ComponentUtils.resolveBoolean(getProperty(GRADIENTS_USED_KEY), true);\n }", "public boolean getHintsEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"hints_switch\", true);\n }", "boolean addHardLoss();", "boolean hasEstimator();", "public boolean isPositionEstimationEnabled() {\n return mPositionEstimationEnabled;\n }", "boolean hasNetworkPolicyConfig();", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public boolean isSaveScore(){\n\t\treturn manager.isFailed();\n\t}", "public boolean hasSupportsTipAdjust() {\n return genClient.cacheHasKey(CacheKey.supportsTipAdjust);\n }", "boolean addEasyLoss();", "public boolean logWarnings()\r\n {\r\n return warningLevelHandler.getBoolean();\r\n }", "boolean isDegraded();", "public boolean isGpsEnable() {\r\n\t\treturn lm.isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n\t}", "boolean hasGlossaryConfig();", "protected boolean isTelemetryEnabled() {\n if(!this.telemetryEnabled){\n InternalLogging.warn(TAG, \"Could not track telemetry item, because telemetry \" +\n \"feature is disabled.\");\n }\n return this.telemetryEnabled;\n }", "boolean hasEnabled();", "public boolean isSmoothEnabled() {\n return this.isSmoothEnabled;\n }", "public boolean isPathChanged() {\r\n return ctrlDomain.isPathChanged();\r\n }", "boolean hasScoringParams();", "public boolean getPenState() {\r\n\t\treturn penState;\r\n\t}", "public boolean enabled()\n {\n return binLog != null;\n }", "@JsonIgnore\n public boolean isWeightStrategySet() { return isSet.contains(\"weightStrategy\"); }", "protected boolean isDebugEnable() {\n return BlurDialogEngine.DEFAULT_DEBUG_POLICY;\n }", "public boolean getPropertyUnityGain();", "boolean hasSigmoidCalibration();", "private static boolean hasPenFeature(final Context context) {\r\n\t\t\tfinal PackageManager pm = context.getPackageManager();\r\n\t\t\tfor (final FeatureInfo feature : pm.getSystemAvailableFeatures()) {\r\n\t\t\t\tif (PEN_FEATURE_NAME.equals(feature.name)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "public boolean isNuGetConfigAnalyzerEnabled() {\n return nuGetConfigAnalyzerEnabled;\n }", "public boolean isNotifyEstimatedSlamCameraEnabled() {\n return mNotifyEstimatedSlamCamera;\n }", "private Boolean displayGpsStatus() {\n ContentResolver contentResolver = getBaseContext()\n .getContentResolver();\n boolean gpsStatus = Settings.Secure\n .isLocationProviderEnabled(contentResolver,\n LocationManager.GPS_PROVIDER);\n if (gpsStatus) {\n return true;\n\n } else {\n return false;\n }\n }", "public boolean getTimeLapsedEnable() {\n return false;\n }", "public boolean getEnabled() throws IllegalStateException\n {\n return audioEffect.getEnabled();\n }", "boolean hasDecisionPointParams();", "public boolean getValidGPSRequired()\n {\n return this.validGPS;\n }", "boolean hasShotChangeDetectionConfig();", "public boolean isUseJointGraphs() {\n return useJointGraphs;\n }", "public void testIsEnabledAccuracy() {\r\n assertFalse(\"Should return the proper value.\", log.isEnabled(null));\r\n assertTrue(\"Should return the proper value.\", log.isEnabled(Level.ALL));\r\n }", "public boolean isLevel(){\n return Math.abs(gyro_board.getPitch()) < LEVEL_TOLERANCE && Math.abs(gyro_board.getRoll()) < LEVEL_TOLERANCE;\n }", "public boolean getPropertyUnityGain()\n {\n return iPropertyUnityGain.getValue();\n }", "boolean hasNetworkSettings();", "private boolean isGpsOpend() {\n final LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n if (manager != null && !manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n return false;\n } else {\n return true;\n }\n }", "public boolean getEnabled() {\r\n \t\tif (status == AlternativeStatus.ADOPTED) {\r\n \t\t\treturn true;\r\n \t\t} else {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}", "boolean isEnabled(Level warn);", "public static boolean hasTarget() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tv\").getDouble(0) == 0 ? false : true;\n }", "public boolean enabled() {\r\n\t\treturn engaged;\r\n\t}", "private Boolean displayGetGPSStatus() {\n boolean gpsStatus = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n// ContentResolver contentResolver = getContentResolver();\n// boolean gpsStatus = Settings.Secure.isLocationProviderEnabled(\n// contentResolver,\n// LocationManager.GPS_PROVIDER\n// );\n\n if (gpsStatus) {\n return true;\n } else {\n\n return false;\n }\n }", "public boolean needEnableExposureAdjustment() {\n boolean z = true;\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n if (this.mSceneMode != SceneMode.AUTO || Keys.isLowlightOn(this.mAppController.getSettingsManager())) {\n z = false;\n }\n return z;\n }", "public boolean isProvidesLocomotion() {\n\t\treturn providesLocomotion;\n\t}", "public boolean hasPath() {\n try {\n aStarPath();\n } catch (PathNotFoundException e){\n return false;\n }\n return true;\n }", "public boolean getVisualizerOn()\n {\n DsLog.log1(LOG_TAG, \"getVisualizerOn\");\n boolean enabled = false;\n int count = 0;\n\n //\n // Send EFFECT_CMD_GET_PARAM\n // EFFECT_PARAM_VISUALIZER_ENABLE\n //\n byte[] baValue = new byte[4];\n count = getParameter(EFFECT_PARAM_VISUALIZER_ENABLE, baValue);\n if (count != 4)\n {\n Log.e(LOG_TAG, \"getVisualizerOn: Error in getting the visualizer on/off state!\");\n }\n else\n {\n int on = byteArrayToInt32(baValue);\n enabled = (on == DsAkSettings.AK_DS1_FEATURE_ON) ? true : false;\n }\n\n return enabled;\n }", "boolean isWarnEnabled();", "boolean hasTelemetry();", "boolean hasLabelDetectionConfig();", "private static boolean hasPenFeature(final Context context) {\r\n\t\t// Return false if the version of Android doesn't have the needed method.\r\n\t\tif (Integer.parseInt(Build.VERSION.SDK) < 5) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// Otherwise check for the feature.\r\n\t\treturn SDK5Operations.hasPenFeature(context);\r\n\t}", "public boolean hasPath() {\n return carrier.findPath(getCarrierTarget()) != null;\n }", "public boolean isSetDstPath() {\n return this.dstPath != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public boolean isSetPath() {\n return this.path != null;\n }", "public synchronized boolean isOnTarget()\n {\n final String funcName = \"isOnTarget\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n boolean onTarget = false;\n\n if (noOscillation)\n {\n //\n // Don't allow oscillation, so if we are within tolerance or we pass target, just quit.\n // If setPointSign is positive, it means the target is \"forward\". So if currError <= tolerance,\n // it means we are either within tolerance or have passed the target.\n // If setPointSign is negative, it means the target is \"backward\". So if -currError <= tolerance,\n // it means we are either within tolerance or have passed the target.\n //\n if (currError * setPointSign <= tolerance)\n {\n onTarget = true;\n }\n }\n else if (Math.abs(currError) > tolerance)\n {\n settlingStartTime = TrcUtil.getCurrentTime();\n }\n else if (TrcUtil.getCurrentTime() >= settlingStartTime + settlingTime)\n {\n onTarget = true;\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(onTarget));\n }\n\n return onTarget;\n }", "public boolean isSavingToSystemEnabled(){\r\n\t\tif (this.settings.containsKey(\"toSystemEnabled\")) {\r\n\t\t\treturn Boolean.valueOf(this.settings.getProperty(\"toSystemEnabled\"));\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "public boolean isEnabled() {\r\n\t\treturn sensor.isEnabled();\r\n\t}", "public boolean hasSrcPath() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public Boolean isLowPenal() {\n switch (this) {\n\n case DNE: //NO EXCLUIBLE\n return false;\n case DGM: //NO EXCLUIBLE\n return false;\n default: // TODAS LAS DEMAS PENALIZACIONES SON EXCLUIBLES\n return true;\n }\n }", "boolean hasAutomlObjectTrackingConfig();", "public boolean isSnapEnabled() {\r\n\t\treturn snapable;\r\n\t}", "protected boolean isGpsEnabled() {\n Log.i(LOG_TAG, \"IN isGpsDisabled\");\n LocationManager locMgr = (LocationManager) mContext.getSystemService(mContext.LOCATION_SERVICE);\n return locMgr.isProviderEnabled(LocationManager.GPS_PROVIDER);\n }", "public boolean hasSrcPath() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasFunctionApproximation();", "public boolean hasSupportsTipping() {\n return genClient.cacheHasKey(CacheKey.supportsTipping);\n }", "public boolean isOverThreshold(){return isOverThreshold;}", "boolean hasStrength();", "public void setPathsEnabled(boolean pathsEnabled) {\n getSupport().firePropertyChange(\"pathsEnabled\", this.pathsEnabled, pathsEnabled);\n this.pathsEnabled = pathsEnabled;\n getPrefs().putBoolean(\"RectangularClusterTracker.pathsEnabled\", pathsEnabled);\n }", "boolean hasMainUtteranceDynamicGain();", "public boolean isCanBypassIntermediate() {\n return getFlow().isCanBypassIntermediate();\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }" ]
[ "0.6652956", "0.6487929", "0.6008754", "0.57333314", "0.55906594", "0.555369", "0.5529828", "0.54888177", "0.53637916", "0.5363345", "0.5352621", "0.5347501", "0.5343311", "0.5343311", "0.5334969", "0.53245264", "0.5300994", "0.52958155", "0.5273759", "0.5194151", "0.5183252", "0.5159432", "0.51533896", "0.51528955", "0.5120752", "0.51143676", "0.51136744", "0.5110543", "0.51015776", "0.50942594", "0.5081287", "0.50771445", "0.5072176", "0.50443244", "0.5040287", "0.5034187", "0.50276697", "0.50252604", "0.5023065", "0.50151926", "0.5014287", "0.5004709", "0.49956635", "0.4994276", "0.4978113", "0.49765334", "0.49744496", "0.49722204", "0.49711677", "0.4966937", "0.49661195", "0.49643883", "0.49571583", "0.49521473", "0.4947645", "0.4939565", "0.4927351", "0.4927109", "0.49240476", "0.4917823", "0.49101177", "0.49080947", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.4904946", "0.49039218", "0.49015385", "0.48988143", "0.48939055", "0.48924026", "0.4888028", "0.4887049", "0.48849463", "0.4884848", "0.48847312", "0.48817855", "0.48808187", "0.48682752", "0.48570263", "0.4848751", "0.48447368", "0.48425362" ]
0.83572876
0
Specifies whether path loss estimation is enabled or not.
public void setPathLossEstimationEnabled(final boolean pathLossEstimationEnabled) throws LockedException { if (isLocked()) { throw new LockedException(); } mPathLossEstimationEnabled = pathLossEstimationEnabled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPathLossEstimationEnabled() {\n return mPathLossEstimationEnabled;\n }", "public boolean isPathLossEstimationEnabled() {\n return mPathLossEstimationEnabled;\n }", "public void setPathLossEstimationEnabled(\n final boolean pathLossEstimationEnabled) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mPathLossEstimationEnabled = pathLossEstimationEnabled;\n }", "public void setPathsEnabled(boolean pathsEnabled) {\n getSupport().firePropertyChange(\"pathsEnabled\", this.pathsEnabled, pathsEnabled);\n this.pathsEnabled = pathsEnabled;\n getPrefs().putBoolean(\"RectangularClusterTracker.pathsEnabled\", pathsEnabled);\n }", "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public void setPathLossExponent(final Integer pathLossExponent) {\n this.pathLossExponent = pathLossExponent;\n }", "public boolean hasEnabledPath() {\n\t\treturn enablePath;\n\t}", "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "boolean addHardLoss();", "boolean addEasyLoss();", "private void fixEnabled(){\n setEnabled(graph.getUndoManager().canRedo());\n }", "public boolean isGraphEnabled() {\r\n \t\treturn graph.isEnabled();\r\n \t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:39:04.360 -0400\", hash_original_method = \"43D61D7324B728BB328C9BAEC9DE09DD\", hash_generated_method = \"0799008F617B5F3041A89AAF0A445C69\")\n \n public static boolean setSuspendOptimizationsCommand(boolean enabled){\n \tdouble taintDouble = 0;\n \ttaintDouble += ((enabled) ? 1 : 0);\n \n \treturn ((taintDouble) == 1);\n }", "protected void setEnabled(boolean state) {\n enabled = state;\n log.warn(\"{} command has been {}.\", name, state ? \"enabled\" : \"disabled\");\n }", "public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}", "protected void setOffLineMode () {\n if (theDowntimeMgr != null)\n theDowntimeMgr.setOnLine(false);\n }", "public void setOnOptimization(boolean b) {\n this.onOptimization = b;\n }", "org.tensorflow.framework.OptimizerOptions.Level getOptLevel();", "@JsonIgnore\n public boolean isWeightStrategySet() { return isSet.contains(\"weightStrategy\"); }", "public boolean getHintsEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"hints_switch\", true);\n }", "private void checkLeakyEpsilon() {\r\n if (cbUseLeakyLearning.isSelected()) {\r\n tfLeakyEpsilon.setEnabled(true);\r\n } else {\r\n tfLeakyEpsilon.setEnabled(false);\r\n }\r\n }", "public void useGradient(final boolean state) {\n this.useGradient = state;\n }", "public boolean isSmoothEnabled() {\n return this.isSmoothEnabled;\n }", "public void setEnabled(boolean enabled);", "public void setEnabled(boolean enabled);", "private void setPenDown(boolean value)\n {\n\n if (value)\n {\n strokeBuilder = new StrokeBuilder();\n }\n else\n {\n final PathCurve curve = strokeBuilder.getDisplayPath();\n if (curve != null)\n {\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n history.add(curve.asPath2D());\n repaint();\n }\n });\n }\n strokeBuilder = null;\n }\n penDown = value;\n }", "public void ratingNetTrained() {\n useFeedbackCheckBoxMenuItem.setEnabled(true);\n }", "public void setLossDs(BigDecimal lossDs) {\r\n this.lossDs = lossDs;\r\n }", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "void setEnabled(boolean enabled);", "public void setEnableGraphQueries(boolean v) {\n enableGraphQueries = v;\n }", "final public boolean isGradientsUsed()\n {\n return ComponentUtils.resolveBoolean(getProperty(GRADIENTS_USED_KEY), true);\n }", "public void setFalse(){\n for (int i = 0; i < Nodes.size(); i++){\n this.MinDistanceStatus.add(false);\n }\n }", "public void setEnabled(boolean aFlag) { _enabled = aFlag; }", "public boolean isUseJointGraphs() {\n return useJointGraphs;\n }", "public boolean getPropertyUnityGain();", "public boolean setEnabled(boolean enable);", "public void enablePropertyUnityGain()\n {\n iPropertyUnityGain = new PropertyBool(new ParameterBool(\"UnityGain\"));\n addProperty(iPropertyUnityGain);\n }", "public final void setDisabled(boolean value)\n {\n myDisabledProperty.set(value);\n }", "public void enableSmartImprovement() { this.exec = this.exec.withProperty(\"sm.improve\", true); }", "protected boolean isDebugEnable() {\n return BlurDialogEngine.DEFAULT_DEBUG_POLICY;\n }", "public void setEnabled(boolean value) {\n this.enabled = value;\n }", "public void setPerUriPath(Boolean perUriPath) {\n this.perUriPath = perUriPath;\n }", "boolean isEnabled(Level warn);", "protected void setPropagationEffectParams() {\n\n\t\tif ( (this.site != null) && (this.eqkRupture != null)) {\n\t\t\tdistanceJBParam.setValue(eqkRupture, site);\n\t\t}\n\t}", "public boolean setPropertyUnityGain(boolean aValue);", "public boolean isCanBypassIntermediate() {\n return getFlow().isCanBypassIntermediate();\n }", "public boolean getTimeLapsedEnable() {\n return false;\n }", "public void setUsageWeighted(boolean aUsageWeighted) {\n usageWeighted = aUsageWeighted; \n }", "public void setLossSd(BigDecimal lossSd) {\r\n this.lossSd = lossSd;\r\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public boolean isTransmittedPowerEstimationEnabled() {\n return mTransmittedPowerEstimationEnabled;\n }", "public void setEnabled(boolean enabled) {\r\n\t}", "public void checkEnabled()\n {\n if(graph == null || graph.vertices.size() < 1)\n {\n removeJButton.setEnabled(false);\n removeJMenuItem.setEnabled(false);\n printJMenuItem.setEnabled(false);\n calculateJButton.setEnabled(false);\n findPathJMenuItem.setEnabled(false);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else if(graph.vertices.size() < 3)\n {\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n printJMenuItem.setEnabled(false);\n calculateJButton.setEnabled(false);\n findPathJMenuItem.setEnabled(false);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else if(graph.vertices.size() <= 5)\n {\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n printJMenuItem.setEnabled(true);\n calculateJButton.setEnabled(true);\n findPathJMenuItem.setEnabled(true);\n bruteForceJRadioButton.setEnabled(true);\n bruteForceJRadioButtonMenuItem.setEnabled(true);\n }\n else\n {\n if(bruteForceJRadioButton.isSelected())\n {\n nearestJRadioButton.setSelected(true);\n nearestNeighborJRadioButtonMenuItem.setSelected(true);\n methodJLabel.setText(\"Nearest Neighbor\");\n }\n printJMenuItem.setEnabled(true);\n removeJButton.setEnabled(true);\n removeJMenuItem.setEnabled(true);\n calculateJButton.setEnabled(true);\n findPathJMenuItem.setEnabled(true);\n bruteForceJRadioButton.setEnabled(false);\n bruteForceJRadioButtonMenuItem.setEnabled(false);\n }\n }", "@Override\n\tpublic void setEnabled(boolean flag) {\n\t\t\n\t}", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setSmoothEnabled(boolean isSmoothEnabled) {\n this.isSmoothEnabled = isSmoothEnabled;\n }", "public void setLost(boolean lost){\n this.lost = lost;\n }", "public void setEnabled(boolean value) {\n m_Enabled = value;\n }", "boolean hasGlossaryConfig();", "public void setHasSetLevel(boolean param) {\n if (false) {\n localHasSetLevelTracker = false;\n } else {\n localHasSetLevelTracker = true;\n }\n this.localHasSetLevel = param;\n }", "public void setOptics(boolean value) {\n this.optics = value;\n }", "final public void setGradientsUsed(boolean gradientsUsed)\n {\n setProperty(GRADIENTS_USED_KEY, gradientsUsed ? Boolean.TRUE : Boolean.FALSE);\n }", "public void useNormalVarimax(){\n this. varimaxOption = true;\n }", "public void setHasGetLevel(boolean param) {\n if (false) {\n localHasGetLevelTracker = false;\n } else {\n localHasGetLevelTracker = true;\n }\n this.localHasGetLevel = param;\n }", "@Generated\n @Selector(\"setWantsPriorityOverSystemBehavior:\")\n public native void setWantsPriorityOverSystemBehavior(boolean value);", "public final void setThresholdEnable(boolean thresholdState){\n\t\tthis.isThresholdUsingEnabled = thresholdState;\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:14:32.594 -0400\", hash_original_method = \"45C4A93D9DB00E5177EB1AA33C0FC790\", hash_generated_method = \"A67AFB0821ABBDFC1442B7AD04AF9F51\")\n \n public static boolean setPowerModeCommand(int mode){\n \tdouble taintDouble = 0;\n \ttaintDouble += mode;\n \n \treturn ((taintDouble) == 1);\n }", "public void setEnabled(final boolean enabled);", "public Boolean shouldUseAlternateTargetLocation() {\n return this.shouldUseAlternateTargetLocation;\n }", "public void setEnabled(boolean isEnabled) {\r\n this.isEnabled = isEnabled;\r\n \r\n if (isEnabled) {\r\n lineActivity.clear();\r\n }\r\n }", "public boolean isPositionEstimationEnabled() {\n return mPositionEstimationEnabled;\n }", "@Generated\n @Selector(\"setProximityMonitoringEnabled:\")\n public native void setProximityMonitoringEnabled(boolean value);", "public boolean isSavingToSystemEnabled(){\r\n\t\tif (this.settings.containsKey(\"toSystemEnabled\")) {\r\n\t\t\treturn Boolean.valueOf(this.settings.getProperty(\"toSystemEnabled\"));\r\n\t\t}\r\n\t\telse return false;\r\n\t}", "void setGodPower(boolean b);", "public boolean getPenState() {\r\n\t\treturn penState;\r\n\t}", "default boolean isPaintballEnabled() {\n return false;\n }", "boolean hasNetworkPolicyConfig();", "public void setEnabled(boolean enabled) {\r\n this.enabled = enabled;\r\n }", "public void setEnabled(boolean enabled) {\r\n this.enabled = enabled;\r\n }", "public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }", "@JsonSetter(\"dnisEnabled\")\r\n public void setDnisEnabled (boolean value) { \r\n this.dnisEnabled = value;\r\n }", "public void setAntiConvergence(boolean b){\n antiConvergence = b;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(Boolean enabled) {\r\n this.enabled = enabled;\r\n }", "public void setRoad(Boolean bool) {\r\n\t \tthis.road = bool;\r\n\t }", "public boolean logWarnings()\r\n {\r\n return warningLevelHandler.getBoolean();\r\n }", "public void setPwrreserve( java.lang.Boolean newValue ) {\n __setCache(\"pwrreserve\", newValue);\n }", "private void setLightStatus() {\n if (mCmd.equals(MSG_ON)) {\n setLighIsOn(true);\n } else {\n setLighIsOn(false);\n }\n }", "private void setOffline(boolean value) {\n \n offline_ = value;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }", "public void setEnabled(Boolean enabled) {\n this.enabled = enabled;\n }" ]
[ "0.77806324", "0.77806324", "0.7043334", "0.57933325", "0.54477215", "0.5365954", "0.5307162", "0.5289407", "0.5223418", "0.5178521", "0.5098739", "0.49711272", "0.49406815", "0.48545122", "0.48419523", "0.48369008", "0.48346257", "0.48343542", "0.48235416", "0.48140776", "0.47608307", "0.47584677", "0.47558948", "0.47384134", "0.47384134", "0.47248057", "0.4687705", "0.46728596", "0.46707264", "0.46707264", "0.46707264", "0.46707264", "0.46650773", "0.4659469", "0.46529332", "0.46253613", "0.46252808", "0.46235853", "0.46171942", "0.4600993", "0.45868072", "0.45664883", "0.45625517", "0.45546114", "0.45545706", "0.45339844", "0.4532895", "0.4532533", "0.45287198", "0.45246968", "0.45165974", "0.45120338", "0.45116308", "0.45116308", "0.45111093", "0.45065963", "0.45020035", "0.45019552", "0.44942734", "0.44860372", "0.4484443", "0.44800735", "0.4477728", "0.44772613", "0.44721052", "0.44714352", "0.4459798", "0.44553405", "0.44478363", "0.44466823", "0.44438758", "0.4442205", "0.4441869", "0.4438861", "0.44378406", "0.44355804", "0.44254562", "0.44095677", "0.4406394", "0.44063058", "0.44037068", "0.44037068", "0.4402129", "0.43908083", "0.43870953", "0.43831214", "0.43831214", "0.43831214", "0.43831214", "0.43831214", "0.4382534", "0.4380838", "0.43768635", "0.43759626", "0.4374445", "0.43632331", "0.43613312", "0.43613312", "0.4360088", "0.4360088" ]
0.69068104
3
Indicates whether position covariances of readings must be taken into account to increase the amount of standard deviation of each ranging measure by the amount of position standard deviation assuming that both measures are statistically independent.
public boolean getUseReadingPositionCovariance() { return mUseReadingPositionCovariances; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHas_certainty();", "public void setUseReadingPositionCovariances(\n final boolean useReadingPositionCovariances) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mUseReadingPositionCovariances = useReadingPositionCovariances;\n }", "public boolean isCovarianceKept() {\n return mKeepCovariance;\n }", "public boolean isSetPositionAvgPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __POSITIONAVGPRICE_ISSET_ID);\n }", "private boolean processCovarianceToken(final ParseToken token) {\n if (token.getName() != null && !token.getName().equals(Ocm.COV_LINE)) {\n // we are in the section metadata part\n try {\n return OrbitCovarianceHistoryMetadataKey.valueOf(token.getName()).\n process(token, context, currentCovarianceHistoryMetadata);\n } catch (IllegalArgumentException iae) {\n // token has not been recognized\n return false;\n }\n } else {\n // we are in the section data part\n if (currentCovarianceHistory.isEmpty()) {\n // we are starting the real data section, we can now check metadata is complete\n currentCovarianceHistoryMetadata.validate(header.getFormatVersion());\n anticipateNext(this::processDataSubStructureToken);\n }\n if (token.getType() == TokenType.START || token.getType() == TokenType.STOP) {\n return true;\n }\n try {\n final String[] fields = SPLIT_AT_BLANKS.split(token.getRawContent().trim());\n final int n = currentCovarianceHistoryMetadata.getCovType().getUnits().size();\n if (fields.length - 1 != currentCovarianceHistoryMetadata.getCovOrdering().nbElements(n)) {\n throw new OrekitException(OrekitMessages.UNABLE_TO_PARSE_LINE_IN_FILE,\n token.getLineNumber(), token.getFileName(), token.getContentAsNormalizedString());\n }\n currentCovarianceHistory.add(new OrbitCovariance(currentCovarianceHistoryMetadata.getCovType(),\n currentCovarianceHistoryMetadata.getCovOrdering(),\n context.getTimeSystem().getConverter(context).parse(fields[0]),\n fields, 1));\n return true;\n } catch (NumberFormatException nfe) {\n throw new OrekitException(nfe, OrekitMessages.UNABLE_TO_PARSE_LINE_IN_FILE,\n token.getLineNumber(), token.getFileName(), token.getContentAsNormalizedString());\n }\n }\n }", "public boolean shouldIgnoreUnrelatedDimensions() {\n return getCube().shouldIgnoreUnrelatedDimensions(\n getMeasureCube().getName());\n }", "public void useCovarianceMatrix(){\n this.covRhoOption = true;\n }", "public boolean hasChanges() {\n return Math.abs(this.x) > 1.0E-5f || Math.abs(this.y) > 1.0E-5f || Math.abs(this.scale - this.minimumScale) > 1.0E-5f || Math.abs(this.rotation) > 1.0E-5f || Math.abs(this.orientation) > 1.0E-5f;\n }", "public boolean hasClinicalRelevantVariants() {\n return fieldSetFlags()[7];\n }", "private void checkPaintMeasures() {\r\n\t\t\r\n\t\t//Check from change\r\n\t\tint sizeNow = fontSize;\r\n\t\tif(sizeNow == sizeThen)return;\r\n\t\tsizeThen = sizeNow;\r\n\t\t\r\n\t\t//Set units\r\n\t\tmarkWidth = (double) sizeNow / 15;\r\n\t\tsizePaintLength = p.textLength(text, surface, sizeNow, bold, italic);\r\n\t\tif (viewPaintLength != viewPaintLength) viewPaintLength = sizePaintLength;\r\n\t}", "public boolean hasMargins() {\n return true;\n }", "protected boolean testPrecision ()\n {\n double precision = relativePrecision / (1.0 + relativePrecision);\n \n /******************************************************\n * Check the relative precision\n */\n double relPrecision = agentStat.confidence () / agentStat.mean ();\n\n trc.show (\"testPrecision\", \" precision = \" + precision +\n \" relPrecision = \" + relPrecision);\n\n if (numMeans < 2) {\n return false;\n } else { \n return relPrecision <= precision;\n } // if\n\n }", "public void setDrawVariances(boolean draw) {\r\n this.drawVariances = draw;\r\n }", "default public boolean getSoundness() {\n if (getValidity()) {\n for (Proposition premise : getPremises()) {\n if (!premise.determineTruth()) {\n return false;\n }\n }\n return true;\n } else {\n return false;\n }\n }", "public boolean isSetRFStandardDeviation() {\n return (this.rfStandardDeviation != null ? this.rfStandardDeviation.isSetValue() : false);\n }", "public double sampleVariance() {\n/* 262 */ Preconditions.checkState((this.count > 1L));\n/* 263 */ if (Double.isNaN(this.sumOfSquaresOfDeltas)) {\n/* 264 */ return Double.NaN;\n/* */ }\n/* 266 */ return DoubleUtils.ensureNonNegative(this.sumOfSquaresOfDeltas) / (this.count - 1L);\n/* */ }", "public boolean isSetOffsets() {\n return this.offsets != null;\n }", "public void calc_mean_covariance (double[][] range, double[] mean, double[][] covariance) {\n\n\t\t// Calculate means and variances\n\n\t\tfor (int n = 0; n < n_vars; ++n) {\n\n\t\t\tdouble mean_acc = 0.0;\n\t\t\tfor (int i = 0; i < n_values[n]; ++i) {\n\t\t\t\tmean_acc += (range[n][i] * marginal_probability[n][i]);\n\t\t\t}\n\t\t\tmean_acc = mean_acc / total_probability;\n\t\t\tmean[n] = mean_acc;\n\n\t\t\tdouble var_acc = 0.0;\n\t\t\tfor (int i = 0; i < n_values[n]; ++i) {\n\t\t\t\tdouble dev = range[n][i] - mean_acc;\n\t\t\t\tvar_acc += (dev * dev * marginal_probability[n][i]);\n\t\t\t}\n\t\t\tcovariance[n][n] = var_acc / total_probability;\n\t\t}\n\n\t\t// Calculate covariances\n\n\t\tfor (int n1 = 0; n1 < n_vars; ++n1) {\n\t\t\tfor (int n2 = 0; n2 < n_vars; ++n2) {\n\t\t\t\tif (n1 < n2) {\n\t\t\t\t\tdouble cov_acc = 0.0;\n\t\t\t\t\tfor (int i1 = 0; i1 < n_values[n1]; ++i1) {\n\t\t\t\t\t\tdouble dev1 = range[n1][i1] - mean[n1];\n\t\t\t\t\t\tfor (int i2 = 0; i2 < n_values[n2]; ++i2) {\n\t\t\t\t\t\t\tdouble dev2 = range[n2][i2] - mean[n2];\n\t\t\t\t\t\t\tcov_acc += (dev1 * dev2 * marginal_2d_probability[n1][n2][i1][i2]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcov_acc = cov_acc / total_probability;\n\t\t\t\t\tcovariance[n1][n2] = cov_acc;\n\t\t\t\t\tcovariance[n2][n1] = cov_acc;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t}", "private boolean hasOnlyStandardUnit() {\n for (int i = 0; i < _elements.length; i++) {\n Unit<?> u = _elements[i]._unit;\n if (!u.isSI())\n return false;\n }\n return true;\n }", "public abstract boolean promulgationDataDefined();", "private void checkStability() {\n double maxDeviation = Double.NEGATIVE_INFINITY;\n\n DeviationIterator itr = new DeviationIterator(currentOutcome, nActs);\n while (itr.hasNext()) {\n int[] devOutcome = itr.next();\n\n // this shouldn't happen\n if (eGame.getNumSamples(devOutcome) <= 0) {\n System.out.println(\"BRD: checking equilibrium with unsampled deviations!\");\n System.out.println(\"Current: \" + Arrays.toString(currentOutcome));\n System.out.println(\"Unsampled: \" + Arrays.toString(devOutcome));\n return;\n }\n\n double devBenefit = eGame.getPayoff(devOutcome, itr.getDeviatingPlayer()) -\n eGame.getPayoff(currentOutcome, itr.getDeviatingPlayer());\n\n maxDeviation = Math.max(maxDeviation, devBenefit);\n\n // terminate early; not better than one we have already confirmed\n if (maxDeviation >= confirmedStability) return;\n }\n\n if (maxDeviation < confirmedStability) {\n confirmedStability = maxDeviation;\n mostStableConfirmed = currentOutcome.clone();\n if (samplesToConfirmEquilibrium < 0 &&\n confirmedStability <= 0) {\n samplesToConfirmEquilibrium = eGame.getTotalNumSamples();\n }\n }\n }", "boolean hasScaler();", "private boolean orientationChange(HashMap<String, Float> orientation) {\n int variance = 10;\n\n if(!FunUtils.numberTollerance(orientation.get(\"azimuth\"), this.orientation.get(\"azimuth\"), variance)){\n return true;\n }\n\n if(!FunUtils.numberTollerance(orientation.get(\"pitch\"), this.orientation.get(\"pitch\"), variance)){\n return true;\n }\n // This used to be an 'if', But this is the asme as what i had, but with a few lines less code.\n if(!FunUtils.numberTollerance(orientation.get(\"roll\"), this.orientation.get(\"roll\"), variance)){\n return true;\n }\n return false;\n\n }", "boolean manageCovarianceHistorySection(final boolean starting) {\n if (starting) {\n if (covarianceBlocks == null) {\n // this is the first covariance block, we need to allocate the container\n covarianceBlocks = new ArrayList<>();\n }\n currentCovarianceHistoryMetadata = new OrbitCovarianceHistoryMetadata(metadata.getEpochT0());\n currentCovarianceHistory = new ArrayList<>();\n anticipateNext(this::processCovarianceToken);\n } else {\n anticipateNext(structureProcessor);\n covarianceBlocks.add(new OrbitCovarianceHistory(currentCovarianceHistoryMetadata,\n currentCovarianceHistory));\n currentCovarianceHistoryMetadata = null;\n currentCovarianceHistory = null;\n }\n return true;\n }", "boolean hasMetricTreatment();", "private boolean needsToRecalcStats() {\n\n return this.equipsChanged;\n }", "private boolean isTractorInDitch() {\n\t\treturn position[0]>field[0]||position[1]>field[1];\n\t}", "public static boolean validateVariance(String city) {\n try {\n List<Double> web = getWebTempValues(city);\n List<Double> api = getAPITempValues();\n List<Double> variance = IntStream.range(0, web.size()).mapToObj(i -> web.get(i) - api.get(i)).collect(Collectors.toList());\n boolean flag = false;\n for (Double d : variance) {\n if (d > 0 && d < 1) flag = true;\n else throw new TemperatureDifferenceException(\"Temperature difference not within specified range\");\n }\n return flag;\n } catch (TemperatureDifferenceException e) {\n e.printStackTrace();\n return false;\n }\n }", "public boolean isOffsetCorrected() {\n\t\treturn offsetCorrection;\n\t}", "public double standarddeviation() {\n return Math.sqrt(variance());\n }", "public boolean isAtPositionSetPoint(double marginOfError) {\n return isNumberinRange(positionSetPoint, countsToUnits(motor.getSelectedSensorPosition()), marginOfError);\n }", "@Override\n\tpublic boolean isCovered() {\n\t\treturn (falseCount > 0) && (trueCount > 0);\n\t}", "public boolean hasUniformLineMetrics() {\n return false; // REMIND always safe, but prevents caller optimize\n }", "boolean hasMetrics();", "boolean hasMetrics();", "private boolean checkExistingCSVs() {\n\t\t\n\t\t//try reading CSVs\n\t\ttry {\n\t\t\tFile tempCSVfolder = ScoringGeneralHelpers.makeFolder(new File(myProt.getSource().getParent() + File\n\t\t\t\t\t.separator + \"tempCSVs\"));\n\t\t\t\n\t\t\t\n\t\t\tfor (SimpleProtein.ProtChain chain : myProt) {\n\t\t\t\tif (chain.getChainID() == requestedChain || requestedChain == '\\0') {\n\t\t\t\t\tFile resultCSV = new File(tempCSVfolder.getAbsolutePath() + File.separator + myProt.getFileName()\n\t\t\t\t\t\t\t+ \"_\" + chain.getChainID() + \"_resultMatrix.csv\");\n\t\t\t\t\t\n\t\t\t\t\tFile correctPositions = new File(\n\t\t\t\t\t\t\ttempCSVfolder.getAbsolutePath() + File.separator + myProt.getFileName()\n\t\t\t\t\t\t\t\t\t+ \"_\" + chain.getChainID() + \"_originalPositions.csv\");\n\t\t\t\t\t\n\t\t\t\t\tdouble[][] temp;\n\t\t\t\t\ttemp = csvToMatrix(resultCSV);\n\t\t\t\t\tif (temp != null) {\n\t\t\t\t\t\tchain.resIntensityValueMatrix = temp;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Existing CSVs not found or malformed, processing from scratch.\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tdouble[][] tempPositions = csvToMatrix(correctPositions);\n\t\t\t\t\tif (tempPositions == null) {\n\t\t\t\t\t\tSystem.out.println(\"Existing CSVs not found or malformed, processing from scratch.\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tchain.originalPositions = new Integer[tempPositions[0].length];\n\t\t\t\t\tfor (double[] tempPosition : tempPositions) {\n\t\t\t\t\t\tfor (int j = 0; j < tempPosition.length; j++) {\n\t\t\t\t\t\t\tchain.originalPositions[j] = (int) tempPosition[j];\n\t\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}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Existing CSVs not found or malformed, processing from scratch.\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\t\treturn false;\n\t}", "private boolean allowCombinedFDRScoreCalculation() {\n if ((checkCreatePSMSets != null)\n && (checkCalculateAllFDR != null)) {\n return checkCreatePSMSets.isSelected()\n && checkCalculateAllFDR.isSelected();\n } else {\n return false;\n }\n }", "private void updateMuVariance() {\n\t\tmu = train.getLocalMean(); \n\t\tsigma = train.getLocalVariance(); \n\t\t\n\t\t/*\n\t\t * If the ratio of data variance between dimensions is too small, it \n\t\t * will cause numerical errors. To address this, we artificially boost\n\t\t * the variance by epsilon, a small fraction of the standard deviation\n\t\t * of the largest dimension. \n\t\t * */\n\t\tupdateEpsilon(); \n\t\tsigma = MathUtils.add(sigma, epsilon); \n\t\t\n\t}", "private boolean hasDeviation(Location location){\n\n double dth = 2;\n double d = getDistanceFromNextPoint(location);\n details.setText(details.getText()+\"\\n\"+\"Min Dis :\"+String.valueOf(dth));\n details.setText(details.getText()+\"\\n\"+\"Min_m Dist :\"+String.valueOf(d));\n\n if (d >= dth)\n return true;\n return false;\n }", "public boolean isValid(){\n\t\treturn points.size() >= 2;\n\t}", "@Test\n public void computeResult_clampsTooLowVariance() {\n mockDoubleNoise(-100);\n // The noise added to count is 0.\n mockLongNoise(0);\n\n variance =\n BoundedVariance.builder()\n .epsilon(EPSILON)\n .delta(DELTA)\n .noise(noise)\n .maxPartitionsContributed(1)\n .maxContributionsPerPartition(1)\n .lower(0)\n .upper(10)\n .build();\n\n variance.addEntry(5.0);\n variance.addEntry(5.0);\n // midpoint = (lower + upper) / 2 = 5,\n // noised_normalized_sum_of_squares = (x1 - midpoint)^2 + (x2 - midpoint)^2 + noise = -100,\n // noised_normalized_sum = (x1 + x2) - midpoint * count + noise = 5 + 5 - 5 * 2 - 100 = -100,\n // noised_count = count + noise = 2 + 0 = 2,\n // non_clamped_variance = noised_normalized_sum_of_squares / noised_count -\n // (noised_normalized_sum / noised_count)^2 = -100 / 2 - (-100 / 2)^2 = -2550\n // BoundedVariance.computeResult = clamp(non_clamped_variance) = 0 (lower bound).\n assertThat(variance.computeResult()).isEqualTo(0.0);\n }", "private boolean isStateFullyDetermined() {\n switch (hasSubstance) {\n case No:\n case Unknown:\n return false;\n case Yes:\n // if already established has substance, continue checking only until\n // reach threshold\n return (substanceMin <= 0) ? true : substanceCnt >= substanceMin;\n }\n throw new ShouldNotHappenException();\n }", "public double stdDev() {\n\t\tif (count() > 0) {\n\t\t\treturn sqrt(variance());\n\t\t}\n\t\treturn 0.0;\n\t}", "protected abstract double getRefinementStandardDeviation();", "public boolean isSetPriceStd();", "public double sampleStandardDeviation() {\n/* 288 */ return Math.sqrt(sampleVariance());\n/* */ }", "@Test\n public void computeResult_clampsTooHighVariance() {\n mockDoubleNoise(1);\n // The noise added to count is 0.\n mockLongNoise(0);\n\n variance =\n BoundedVariance.builder()\n .epsilon(EPSILON)\n .delta(DELTA)\n .noise(noise)\n .maxPartitionsContributed(1)\n .maxContributionsPerPartition(1)\n .lower(0.0)\n .upper(0.25)\n .build();\n\n variance.addEntry(0.25);\n variance.addEntry(0.25);\n // midpoint = (lower + upper) / 2 = 0.125,\n // noised_normalized_sum_of_squares = (x1 - midpoint)^2 + (x2 - midpoint)^2 + noise = 1.03125,\n // noised_normalized_sum = (x1 + x2) - midpoint * count + noise = 0.25 + 0.25 - 0.125 * 2 + 1 =\n // 1.25,\n // noised_count = count + noise = 2 + 0 = 2,\n // non_clamped_variance = noised_normalized_sum_of_squares / noised_count -\n // (noised_normalized_sum / noised_count)^2 = 1.03125 / 2 - (1.25 / 2)^2 = 0.125\n // BoundedVariance.computeResult = clamp(non_clamped_variance) = (0.25 - 0)^2 / 4 = 0.015625\n // (upper bound).\n assertThat(variance.computeResult()).isEqualTo(0.015625);\n }", "public abstract double covariance(double x1, double x2);", "private boolean isNormalCountOK(int normalObs, int numNormalReads, int tumorObs) {\n\t\treturn normalObs == 0 || (tumorObs >= 20 && numNormalReads >= 20);\t\t\n\t}", "private boolean isChoseFine(){\n if(freeSpaces.size()!=2 & freeSpaces.size()!=3){ //if the number of chosen spaces is not 3 or 2, that means it can't be good.\n return false;\n }\n else if(freeSpaces.size()==2){ //if there are 2.\n if(freeSpaces.elementAt(0).place.distance(freeSpaces.elementAt(1).place)==1)\n return true;\n else //if the distance between the spaces isn't 1, that means it can't be two suite spaces.\n return false;\n }\n else{ //if there are 3.\n //get the all 3 elements.\n int aX = freeSpaces.elementAt(0).place.x;\n int aY = freeSpaces.elementAt(0).place.y;\n int bX = freeSpaces.elementAt(1).place.x;\n int bY = freeSpaces.elementAt(1).place.y;\n int cX = freeSpaces.elementAt(2).place.x;\n int cY = freeSpaces.elementAt(2).place.y;\n if(aX==bX && bX==cX){ //if they are in the same column.\n int min = Math.min(aY, Math.min(bY, cY));\n int max = Math.max(aY, Math.max(bY, cY));\n return (max - min == 2); //if the distance between the max and the min is 2, that means they 3 suited.\n }\n else if(aY==bY && bY==cY){ //if they are in the same row.\n int min = Math.min(aX, Math.min(bX, cX));\n int max = Math.max(aX, Math.max(bX, cX));\n return (max - min == 2); //if the distance between the max and the min is 2, that means they 3 suited.\n }\n else //if they are in different rows and columns, so it isn't good.\n return false;\n }\n }", "public boolean estDedans() {\n\t\treturn ( (i >= 0)&&(i < Constantes.N)&&(j >= 0)&&(j < Constantes.N) ); \n }", "Boolean isOmitNorms();", "public double populationVariance() {\n/* 215 */ Preconditions.checkState((this.count > 0L));\n/* 216 */ if (Double.isNaN(this.sumOfSquaresOfDeltas)) {\n/* 217 */ return Double.NaN;\n/* */ }\n/* 219 */ if (this.count == 1L) {\n/* 220 */ return 0.0D;\n/* */ }\n/* 222 */ return DoubleUtils.ensureNonNegative(this.sumOfSquaresOfDeltas) / count();\n/* */ }", "public boolean isCalibrated()\n {\n return pntCalibration != null;\n }", "public boolean addCompactGyro() {\n if (getEmptyCriticals(LOC_CT) < 2) {\n return false;\n }\n addCritical(LOC_CT, 3, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n addCritical(LOC_CT, 4, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n setGyroType(GYRO_COMPACT);\n return true;\n }", "public double populationStandardDeviation() {\n/* 242 */ return Math.sqrt(populationVariance());\n/* */ }", "private void updateVariance(long value) {\n\t\tif (!varianceM.compareAndSet(-1, doubleToLongBits(value))) {\n\t\t\tboolean done = false;\n\t\t\twhile (!done) {\n\t\t\t\tfinal long oldMCas = varianceM.get();\n\t\t\t\tfinal double oldM = longBitsToDouble(oldMCas);\n\t\t\t\tfinal double newM = oldM + ((value - oldM) / count());\n\n\t\t\t\tfinal long oldSCas = varianceS.get();\n\t\t\t\tfinal double oldS = longBitsToDouble(oldSCas);\n\t\t\t\tfinal double newS = oldS + ((value - oldM) * (value - newM));\n\n\t\t\t\tdone = varianceM.compareAndSet(oldMCas, doubleToLongBits(newM)) &&\n\t\t\t\t\t\tvarianceS.compareAndSet(oldSCas, doubleToLongBits(newS));\n\t\t\t}\n\t\t}\n\t}", "private boolean isOverloaded(){\n\t\tif(((double) this.contains) / this.table.length > .6){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "Collection<? extends Object> getHas_certainty();", "public boolean isConvex() {\t\r\n\t\tboolean value = true;\r\n\t\t\r\n\t\t//if size = 3 and passed the isSimple condition then \r\n\t\t//it is a non-collinear polygon, aka Triangle,\r\n\t\t//which is convez\r\n\t\tif ( this.getSize() == 3) {\r\n\t\t\tif (this.isSimple() != true) {\r\n\t\t\t\treturn false;\r\n\t\t\t}//else\r\n\t\t\treturn true;\r\n\t\t} \r\n\t\tString zeroIndexOrientation = SimplePolygon.orientation(this.getVertex(0),\r\n\t\t\t\tthis.getVertex((0 + 1) % this.getSize()),\r\n\t\t\t\tthis.getVertex((1 + 1) % this.getSize()));\r\n\t\t\r\n\t\t\t//starting at index 1 not 0\r\n\t\t\tfor ( int i = 1; i < this.getSize(); i++) {\r\n\t\t\t//first point\r\n\t\t\tPoint2D.Double a = this.getVertex(i);\r\n\t\t\t\r\n\t\t\t//second point with respect to first point\r\n\t\t\tint j = (i+1) % this.getSize();\r\n\t\t\tPoint2D.Double b = this.getVertex(j);\r\n\t\t\t\r\n\t\t\t//third point with respect to second point, \r\n\t\t\t//which is with respect to first\r\n\t\t\tPoint2D.Double c = this.getVertex((j + 1) % this.getSize());\r\n\t\t\t\r\n\t\t\tif ( !SimplePolygon.orientation(a, b, c).equals(zeroIndexOrientation)) {\r\n\t\t\t\tvalue = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value; // TODO: replace this line with your code\r\n\t}", "public boolean isSetPartition_exprs() {\n return this.partition_exprs != null;\n }", "boolean hasNormal();", "private void checkDimension(AbstractCurve abstractCurve, SrsDimensionInfo dimInfo) throws GeometryParseException, SrsParseException {\n\t\tint dimension = abstractCurve.isSetSrsDimension() ? abstractCurve.getSrsDimension() : dimInfo.defaultDimension;\n\t\tif (dimension == 3)\n\t\t\tdimInfo.is2d = false;\n\n\t\t// get and set srs\n\t\tif (abstractCurve.isSetSrsName()) {\n\t\t\tDatabaseSrs srs = srsNameParser.getDatabaseSrs(abstractCurve.getSrsName());\n\t\t\tif (dimInfo.targetSrs == null)\n\t\t\t\tdimInfo.targetSrs = srs;\n\t\t\telse if (dimInfo.targetSrs.getSrid() != srs.getSrid())\n\t\t\t\tthrow new GeometryParseException(\"Mixing different spatial reference systems in one geometry operand is not allowed.\");\n\t\t}\n\n\t\tif (abstractCurve instanceof LineString) {\n\t\t\tLineString lineString = (LineString)abstractCurve;\n\t\t\tif (lineString.isSetPosList())\n\t\t\t\tsetSrsDimension(lineString.getPosList(), dimInfo, dimension);\n\t\t\telse if (lineString.isSetPosOrPointPropertyOrPointRepOrCoord()) {\n\t\t\t\tfor (PosOrPointPropertyOrPointRepOrCoord controlPoint : lineString.getPosOrPointPropertyOrPointRepOrCoord()) {\n\t\t\t\t\tif (controlPoint.isSetPos() \n\t\t\t\t\t\t\t&& controlPoint.getPos().isSetSrsDimension() \n\t\t\t\t\t\t\t&& controlPoint.getPos().getSrsDimension() == 3)\n\t\t\t\t\t\tdimInfo.is2d = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse if (abstractCurve instanceof Curve) {\n\t\t\tCurve curve = (Curve) abstractCurve;\n\t\t\tif (curve.isSetSegments() && curve.getSegments().isSetCurveSegment()) {\n\t\t\t\tfor (AbstractCurveSegment abstractCurveSegment : curve.getSegments().getCurveSegment()) {\n\t\t\t\t\tif (abstractCurveSegment instanceof LineStringSegment) {\n\t\t\t\t\t\tLineStringSegment segment = (LineStringSegment) abstractCurveSegment;\n\t\t\t\t\t\tif (segment.isSetPosList())\n\t\t\t\t\t\t\tsetSrsDimension(segment.getPosList(), dimInfo, dimension);\n\t\t\t\t\t\telse if (segment.isSetPosOrPointPropertyOrPointRep()) {\n\t\t\t\t\t\t\tfor (PosOrPointPropertyOrPointRep controlPoint : segment.getPosOrPointPropertyOrPointRep()) {\n\t\t\t\t\t\t\t\tif (controlPoint.isSetPos()\n\t\t\t\t\t\t\t\t\t\t&& controlPoint.getPos().isSetSrsDimension()\n\t\t\t\t\t\t\t\t\t\t&& controlPoint.getPos().getSrsDimension() == 3)\n\t\t\t\t\t\t\t\t\tdimInfo.is2d = false;\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\n\t\telse if (abstractCurve instanceof CompositeCurve) {\n\t\t\tCompositeCurve compositeCurve = (CompositeCurve)abstractCurve;\n\t\t\tif (compositeCurve.isSetCurveMember()) {\t\t\n\t\t\t\tfor (CurveProperty property : compositeCurve.getCurveMember()) {\n\t\t\t\t\tif (property.isSetCurve())\n\t\t\t\t\t\tcheckDimension(property.getCurve(), dimInfo);\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\n\t\telse if (abstractCurve instanceof OrientableCurve) {\n\t\t\tOrientableCurve orientableCurve = (OrientableCurve)abstractCurve;\n\t\t\tif (orientableCurve.isSetBaseCurve() && orientableCurve.getBaseCurve().isSetCurve())\n\t\t\t\tcheckDimension(orientableCurve.getBaseCurve().getCurve(), dimInfo);\n\t\t}\n\t}", "public boolean isUnderflow() {\n\t\treturn (dataSize() < Math.ceil(degree / 2.0) - 1);\n\t}", "public void validateWhenAllAttributesAreSet(boolean isDeclarative) {\n if (colocatedRegionName != null) {\n if (fixedPAttrs != null) {\n throw new IllegalStateException(\n String.format(\n \"FixedPartitionAttributes %s can not be specified in PartitionAttributesFactory if colocated-with is specified. \",\n fixedPAttrs));\n }\n }\n if (fixedPAttrs != null) {\n if (localMaxMemory == 0) {\n throw new IllegalStateException(\n String.format(\"FixedPartitionAttributes %s can not be defined for accessor\",\n fixedPAttrs));\n }\n }\n }", "protected boolean isPOReducible(List<EventType> sequence) {\r\n\t\tif (null == sequence || 3 != sequence.size())\r\n\t\t\treturn false;\r\n\r\n\t\t// compute intersections\r\n\t\tSet<String> int13 = getCommonFields(sequence.get(FIRST),\r\n\t\t\t\tsequence.get(THIRD));\r\n\t\tSet<String> int23 = getCommonFields(sequence.get(SECOND),\r\n\t\t\t\tsequence.get(THIRD));\r\n\r\n\t\t// iterate common field values\r\n\t\tfor (String fieldValue : int13) {\r\n\t\t\tMap<CTDef, Set<CTUse>> slice = slicer.getSubSlice(\r\n\t\t\t\t\tsequence.get(FIRST), fieldValue);\r\n\t\t\tfor (CTDef def : slice.keySet()) {\r\n\t\t\t\tSet<CTUse> uses = slice.get(def);\r\n\t\t\t\tfor (CTUse use : uses) {\r\n\t\t\t\t\tif (int23.contains(use.getFieldValue()))\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// iterate common field values\r\n\t\tfor (String fieldValue : int23) {\r\n\t\t\tMap<CTDef, Set<CTUse>> slice = slicer.getSubSlice(\r\n\t\t\t\t\tsequence.get(SECOND), fieldValue);\r\n\t\t\tfor (CTDef def : slice.keySet()) {\r\n\t\t\t\tSet<CTUse> uses = slice.get(def);\r\n\t\t\t\tfor (CTUse use : uses) {\r\n\t\t\t\t\tif (int13.contains(use.getFieldValue()))\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public Matrix getCovariance() {\n return mCovariance;\n }", "public Matrix getCovariance() {\n return mCovariance;\n }", "private boolean calculateIQR(){\n //Sort Sample List\n Comparator<MovementInstance> comparator = Comparator.comparing(MovementInstance::getAccelerationVector);\n eqDataset.sort(comparator);\n //Find median index of whole dataset\n int median_idx = getMedian(0, eqDataset.size());\n //Find median of the first half\n double q1 = eqDataset.get(getMedian(0,median_idx)).getAccelerationVector();\n //Find median of the second half\n double q3 = eqDataset.get(getMedian(median_idx + 1, eqDataset.size())).getAccelerationVector();\n //IQR\n double iqr = q3-q1;\n\n Log.println(Log.DEBUG, TAG, \"IQR -> Dataset Size: \" + eqDataset.size()\n +\", Median: \" +median_idx +\", Q1: \" +q1 +\", Q3: \" +q3 +\", IQR: \" +iqr);\n //IQR seems to detect consistent and acceptable for earthquake signals in range (0.0025 - 0.025)\n return iqr> 0.0025 && iqr < 0.025;\n }", "public boolean isVertical() {\n\t\tfinal Double slope = getSlope();\n\t\treturn slope.equals( NaN );\n\t}", "boolean hasStatistics();", "public boolean isSizeFixed ( ) {\r\n\t\treturn (radius_mag_dependent == false);\r\n\t}", "@java.lang.Override\n public boolean hasNoiseSigma() {\n return gradientNoiseSigmaCase_ == 1;\n }", "public boolean isAmbiguous() {\n return positionMap.size() > 1;\n }", "public boolean isNormalSize() {\n\t\treturn isLenWithin(5, 10);\n\t}", "public boolean hasPoints() {\n\t\treturn !divided && points.size() != 0;\n\t}", "boolean hasQuality();", "boolean hasQuality();", "public static boolean hasScienceObserves(ConfigSequence sequence) {\n Object[] objs = sequence.getDistinctItemValues(OBSTYPE_KEY);\n for (Object o: objs)\n if (InstConstants.SCIENCE_OBSERVE_TYPE.equals(o))\n return true;\n return false;\n }", "public boolean hasNoiseSigma() {\n return gradientNoiseSigmaCase_ == 1;\n }", "private boolean checkSecondaryDiagonal() {\n int diagonalSum = 0;\n for (int i = 0; i < dimensions; i++) {\n diagonalSum += square[(dimensions - 1) * i + dimensions - 1];\n }\n\n return diagonalSum == magicConst;\n }", "public Double getVariance() {\n return variance;\n }", "public boolean shouldExecute() {\n\t\t\tEntityMoveHelper entitymovehelper = this.parentEntity.getMoveHelper();\n\n\t\t\tif (!entitymovehelper.isUpdating()) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tdouble d0 = entitymovehelper.getX() - this.parentEntity.posX;\n\t\t\t\tdouble d1 = entitymovehelper.getY() - this.parentEntity.posY;\n\t\t\t\tdouble d2 = entitymovehelper.getZ() - this.parentEntity.posZ;\n\t\t\t\tdouble d3 = d0 * d0 + d1 * d1 + d2 * d2;\n\t\t\t\treturn d3 < 1.0D || d3 > 3600.0D;\n\t\t\t}\n\t\t}", "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "public boolean validate() {\n double ab = lengthSide(a, b);\n double ac = lengthSide(a, c);\n double bc = lengthSide(b, c);\n\n return ((ab < ac + bc)\n && (ac < ab + bc)\n && (bc < ab + ac));\n }", "private static boolean testRemoveOldParticles() {\n\t\tparticles = new Particle[3];\n\t\tparticles[0] = new Particle();\n\t\tparticles[1] = new Particle();\n\t\tparticles[2] = new Particle();\n\t\tparticles[0].setAge(7);\n\t\tparticles[1].setAge(7);\n\t\tparticles[2].setAge(3);\n\t\tremoveOldParticles(6);\n\t\t\n\t\tif (particles[0] != null || particles[1] != null || particles[2].getAge() != 3) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false; \n\t}", "boolean growing(boolean bothDimensions) {\n if (complete()) {\n if (bothDimensions)\n return (start2D.x < stop2D.x) && (start2D.y <= stop2D.y);\n else\n return (start2D.x < stop2D.x) || (start2D.y <= stop2D.y);\n } else\n return true;\n }", "public boolean atPosition() {\n return m_X.getClosedLoopError() < Constants.k_ToleranceX;\n }", "private boolean canReduceBins() {\n\t\tint oldBinCount = binCount;\n\t\tboolean canReduce = false;\n\t\tbinCount = binCount / 2;\n\t\tint[] chromosome = eliteChromosome.clone();\n\n\t\tif (getFitness(chromosome) <= binCount)\n\t\t\tcanReduce = true;\n\t\telse\n\t\t\tcanReduce = false;\n\t\tbinCount = oldBinCount; //no side effects\n\t\treturn canReduce;\n\t}", "public boolean isSuperGiant(){\r\n\t\tboolean flag = false;\r\n\t\tif ((getMass() >100) && (getSize()>100)){\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "@java.lang.Override\n public boolean hasPointsCount() {\n return pointsCount_ != null;\n }", "boolean hasAligning();", "public boolean istrianglevalid(double semiPer) {\n //declare variables\n boolean checkA = true;\n boolean checkB = true;\n boolean checkC = true;\n \n if (semiPer >= sideA && semiPer >= sideB && semiPer >= sideC) {\n return true;\n } else {\n return false;\n }\n }", "public boolean stupneProOriGraf(){\n\t\tint pom = 0;\n\t\tfor(int i = 0; i < vrchP.length;i++){\n\t\t\tif(vrchP[i].stupenVstup != vrchP[i].stupenVystup)\n\t\t\t\tpom++;\n\t\t}\n\t\tif(pom != 0)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "private boolean satisfiesPolygon() {\n \t\treturn this.markers.size() >= 3;\n \t}", "public boolean errors() {\n \treturn semantErrors != 0;\n }", "@Test\n public void computeResult_resultAlwaysInsideProvidedBoundaries() {\n int datasetSize = 10;\n for (int i = 0; i < 100; ++i) {\n Random random = new Random();\n double lower = random.nextDouble() * 100;\n double upper = lower + random.nextDouble() * 100;\n\n variance =\n BoundedVariance.builder()\n .epsilon(EPSILON)\n .noise(new LaplaceNoise())\n .maxPartitionsContributed(1)\n .maxContributionsPerPartition(1)\n .lower(lower)\n .upper(upper)\n .build();\n\n List<Double> dataset =\n random\n .doubles()\n .map(x -> x * 300 * getRandomSign(random))\n .limit(datasetSize)\n .boxed()\n .collect(toImmutableList());\n\n variance.addEntries(dataset);\n\n assertWithMessage(\n \"lower = %s\\nupper = %s\\ndataset = [%s]\",\n lower, upper, dataset.stream().map(x -> Double.toString(x)).collect(joining(\",\\n\")))\n .that(variance.computeResult())\n .isIn(Range.closed(0.0, (upper - lower) * (upper - lower) / 4.0));\n }\n }", "public void StandardDeviationPair(){\r\n\t\tAveragePair();\r\n\t\tif (count<=1|| Total<=0){\r\n\t\t\tSystem.out.println(\"The Standard Deviation of x and y is \"+0.0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tStandardDeviation=(float)Math.sqrt((Total2-Total*Total/count)/(count-1));\r\n\t\t\tStandardDeviationY=(float)Math.sqrt((TotalY2-TotalY*TotalY/count)/(count-1));\r\n\t\t\t\r\n\t\t}\r\n\t}", "boolean hasBasis();", "public Boolean isPSMSetScore() {\n return false;\n }" ]
[ "0.5623582", "0.5527307", "0.5474307", "0.5466129", "0.5379636", "0.5206684", "0.51936376", "0.51730067", "0.5068372", "0.50303715", "0.5024339", "0.49861455", "0.49398106", "0.49165806", "0.4849584", "0.48479503", "0.48465136", "0.4830106", "0.48000303", "0.47820455", "0.4779989", "0.47713986", "0.47635934", "0.47631618", "0.47627386", "0.47462717", "0.47037455", "0.4697809", "0.46958286", "0.4694854", "0.46913597", "0.46816146", "0.46813414", "0.46807387", "0.46807387", "0.46745956", "0.46672982", "0.46645683", "0.4659844", "0.46546257", "0.46441957", "0.46426836", "0.4637224", "0.46358156", "0.46328163", "0.4622244", "0.46193162", "0.46183494", "0.46144265", "0.46095598", "0.46094248", "0.46010464", "0.45979616", "0.4595879", "0.4592771", "0.45865825", "0.45853913", "0.45789135", "0.4578424", "0.45761743", "0.45740378", "0.45674732", "0.45552796", "0.45544896", "0.45448184", "0.4539769", "0.45388523", "0.45388523", "0.45373788", "0.45306176", "0.45287737", "0.4525122", "0.45216808", "0.45211333", "0.45205742", "0.45188335", "0.45109305", "0.45109305", "0.4508374", "0.45058218", "0.45052683", "0.4497885", "0.44965032", "0.4494383", "0.44933397", "0.4491506", "0.44898787", "0.44891042", "0.44812036", "0.4478192", "0.44745237", "0.44741875", "0.44714376", "0.4470999", "0.44659358", "0.44535503", "0.4452274", "0.44516936", "0.44502115", "0.4450189" ]
0.62895834
0
Specifies whether position covariances of readings must be taken into account to increase the amount of standard deviation of each ranging measure by the amount of position standard deviation assuming that both measures are statistically independent.
public void setUseReadingPositionCovariances( final boolean useReadingPositionCovariances) throws LockedException { if (isLocked()) { throw new LockedException(); } mUseReadingPositionCovariances = useReadingPositionCovariances; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getUseReadingPositionCovariance() {\n return mUseReadingPositionCovariances;\n }", "public void useCovarianceMatrix(){\n this.covRhoOption = true;\n }", "public void setDrawVariances(boolean draw) {\r\n this.drawVariances = draw;\r\n }", "public boolean isCovarianceKept() {\n return mKeepCovariance;\n }", "public boolean isSetPositionAvgPrice() {\n return EncodingUtils.testBit(__isset_bitfield, __POSITIONAVGPRICE_ISSET_ID);\n }", "public void useCorrelationMatrix(){\n this.covRhoOption = false;\n }", "public void calc_mean_covariance (double[][] range, double[] mean, double[][] covariance) {\n\n\t\t// Calculate means and variances\n\n\t\tfor (int n = 0; n < n_vars; ++n) {\n\n\t\t\tdouble mean_acc = 0.0;\n\t\t\tfor (int i = 0; i < n_values[n]; ++i) {\n\t\t\t\tmean_acc += (range[n][i] * marginal_probability[n][i]);\n\t\t\t}\n\t\t\tmean_acc = mean_acc / total_probability;\n\t\t\tmean[n] = mean_acc;\n\n\t\t\tdouble var_acc = 0.0;\n\t\t\tfor (int i = 0; i < n_values[n]; ++i) {\n\t\t\t\tdouble dev = range[n][i] - mean_acc;\n\t\t\t\tvar_acc += (dev * dev * marginal_probability[n][i]);\n\t\t\t}\n\t\t\tcovariance[n][n] = var_acc / total_probability;\n\t\t}\n\n\t\t// Calculate covariances\n\n\t\tfor (int n1 = 0; n1 < n_vars; ++n1) {\n\t\t\tfor (int n2 = 0; n2 < n_vars; ++n2) {\n\t\t\t\tif (n1 < n2) {\n\t\t\t\t\tdouble cov_acc = 0.0;\n\t\t\t\t\tfor (int i1 = 0; i1 < n_values[n1]; ++i1) {\n\t\t\t\t\t\tdouble dev1 = range[n1][i1] - mean[n1];\n\t\t\t\t\t\tfor (int i2 = 0; i2 < n_values[n2]; ++i2) {\n\t\t\t\t\t\t\tdouble dev2 = range[n2][i2] - mean[n2];\n\t\t\t\t\t\t\tcov_acc += (dev1 * dev2 * marginal_2d_probability[n1][n2][i1][i2]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcov_acc = cov_acc / total_probability;\n\t\t\t\t\tcovariance[n1][n2] = cov_acc;\n\t\t\t\t\tcovariance[n2][n1] = cov_acc;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t}", "public void covariance_SET(float[] src, int pos)\n {\n for(int BYTE = 44, src_max = pos + 45; pos < src_max; pos++, BYTE += 4)\n set_bytes(Float.floatToIntBits(src[pos]) & -1L, 4, data, BYTE);\n }", "private void updateMuVariance() {\n\t\tmu = train.getLocalMean(); \n\t\tsigma = train.getLocalVariance(); \n\t\t\n\t\t/*\n\t\t * If the ratio of data variance between dimensions is too small, it \n\t\t * will cause numerical errors. To address this, we artificially boost\n\t\t * the variance by epsilon, a small fraction of the standard deviation\n\t\t * of the largest dimension. \n\t\t * */\n\t\tupdateEpsilon(); \n\t\tsigma = MathUtils.add(sigma, epsilon); \n\t\t\n\t}", "protected void setVariance(double value) {\n\t variance = value;\n\t}", "protected void setVariance(double value) {\n\t variance = value;\n\t}", "private boolean processCovarianceToken(final ParseToken token) {\n if (token.getName() != null && !token.getName().equals(Ocm.COV_LINE)) {\n // we are in the section metadata part\n try {\n return OrbitCovarianceHistoryMetadataKey.valueOf(token.getName()).\n process(token, context, currentCovarianceHistoryMetadata);\n } catch (IllegalArgumentException iae) {\n // token has not been recognized\n return false;\n }\n } else {\n // we are in the section data part\n if (currentCovarianceHistory.isEmpty()) {\n // we are starting the real data section, we can now check metadata is complete\n currentCovarianceHistoryMetadata.validate(header.getFormatVersion());\n anticipateNext(this::processDataSubStructureToken);\n }\n if (token.getType() == TokenType.START || token.getType() == TokenType.STOP) {\n return true;\n }\n try {\n final String[] fields = SPLIT_AT_BLANKS.split(token.getRawContent().trim());\n final int n = currentCovarianceHistoryMetadata.getCovType().getUnits().size();\n if (fields.length - 1 != currentCovarianceHistoryMetadata.getCovOrdering().nbElements(n)) {\n throw new OrekitException(OrekitMessages.UNABLE_TO_PARSE_LINE_IN_FILE,\n token.getLineNumber(), token.getFileName(), token.getContentAsNormalizedString());\n }\n currentCovarianceHistory.add(new OrbitCovariance(currentCovarianceHistoryMetadata.getCovType(),\n currentCovarianceHistoryMetadata.getCovOrdering(),\n context.getTimeSystem().getConverter(context).parse(fields[0]),\n fields, 1));\n return true;\n } catch (NumberFormatException nfe) {\n throw new OrekitException(nfe, OrekitMessages.UNABLE_TO_PARSE_LINE_IN_FILE,\n token.getLineNumber(), token.getFileName(), token.getContentAsNormalizedString());\n }\n }\n }", "public void SetStandardDev(double standard_dev);", "public abstract double covariance(double x1, double x2);", "public void setCovarianceKept(boolean keepCovariance)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mKeepCovariance = keepCovariance;\n }", "boolean hasHas_certainty();", "public Matrix getCovariance() {\n return mCovariance;\n }", "public Matrix getCovariance() {\n return mCovariance;\n }", "public boolean shouldIgnoreUnrelatedDimensions() {\n return getCube().shouldIgnoreUnrelatedDimensions(\n getMeasureCube().getName());\n }", "public Double getVariance() {\n return variance;\n }", "protected abstract double getRefinementStandardDeviation();", "public double sampleVariance() {\n/* 262 */ Preconditions.checkState((this.count > 1L));\n/* 263 */ if (Double.isNaN(this.sumOfSquaresOfDeltas)) {\n/* 264 */ return Double.NaN;\n/* */ }\n/* 266 */ return DoubleUtils.ensureNonNegative(this.sumOfSquaresOfDeltas) / (this.count - 1L);\n/* */ }", "private void updateVariance() {\r\n double variance = 0.0;\r\n updateMean();\r\n for (Tweet t : members) {\r\n variance += ((t.getDateLong() - this.mean) * (t.getDateLong() - this.mean));\r\n }\r\n variance /= members.size();\r\n this.variance = variance;\r\n }", "private void updateVariance(long value) {\n\t\tif (!varianceM.compareAndSet(-1, doubleToLongBits(value))) {\n\t\t\tboolean done = false;\n\t\t\twhile (!done) {\n\t\t\t\tfinal long oldMCas = varianceM.get();\n\t\t\t\tfinal double oldM = longBitsToDouble(oldMCas);\n\t\t\t\tfinal double newM = oldM + ((value - oldM) / count());\n\n\t\t\t\tfinal long oldSCas = varianceS.get();\n\t\t\t\tfinal double oldS = longBitsToDouble(oldSCas);\n\t\t\t\tfinal double newS = oldS + ((value - oldM) * (value - newM));\n\n\t\t\t\tdone = varianceM.compareAndSet(oldMCas, doubleToLongBits(newM)) &&\n\t\t\t\t\t\tvarianceS.compareAndSet(oldSCas, doubleToLongBits(newS));\n\t\t\t}\n\t\t}\n\t}", "public void setStandard(Boolean standard) {\n this.standard = standard;\n }", "public double sampleStandardDeviation() {\n/* 288 */ return Math.sqrt(sampleVariance());\n/* */ }", "public float getStandardDeviation(){\r\nreturn StandardDeviation;\r\n\t}", "public void setIsposition(java.lang.Boolean newIsposition) {\n\tisposition = newIsposition;\n}", "@Override\n\tpublic void setPerfect(boolean perf) {\n\n\t\tfor (SPhraseSpec child : this.coordinator.coordinates) {\n\t\t\tchild.setPerfect(perf);\n\t\t}\n\t}", "public void setIsSetPriceStd (boolean IsSetPriceStd);", "void setDeviation(double deviation);", "public void StandardDeviationPair(){\r\n\t\tAveragePair();\r\n\t\tif (count<=1|| Total<=0){\r\n\t\t\tSystem.out.println(\"The Standard Deviation of x and y is \"+0.0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tStandardDeviation=(float)Math.sqrt((Total2-Total*Total/count)/(count-1));\r\n\t\t\tStandardDeviationY=(float)Math.sqrt((TotalY2-TotalY*TotalY/count)/(count-1));\r\n\t\t\t\r\n\t\t}\r\n\t}", "public boolean addCompactGyro() {\n if (getEmptyCriticals(LOC_CT) < 2) {\n return false;\n }\n addCritical(LOC_CT, 3, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n addCritical(LOC_CT, 4, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n setGyroType(GYRO_COMPACT);\n return true;\n }", "public boolean hasClinicalRelevantVariants() {\n return fieldSetFlags()[7];\n }", "public double standarddeviation() {\n return Math.sqrt(variance());\n }", "public double populationStandardDeviation() {\n/* 242 */ return Math.sqrt(populationVariance());\n/* */ }", "public boolean isSetRFStandardDeviation() {\n return (this.rfStandardDeviation != null ? this.rfStandardDeviation.isSetValue() : false);\n }", "public double getVariance(){\n\t\treturn (double)sampleSize * type1Size * (populationSize - type1Size) *\n\t\t\t(populationSize - sampleSize) / ( populationSize * populationSize * (populationSize - 1));\n\t}", "private boolean orientationChange(HashMap<String, Float> orientation) {\n int variance = 10;\n\n if(!FunUtils.numberTollerance(orientation.get(\"azimuth\"), this.orientation.get(\"azimuth\"), variance)){\n return true;\n }\n\n if(!FunUtils.numberTollerance(orientation.get(\"pitch\"), this.orientation.get(\"pitch\"), variance)){\n return true;\n }\n // This used to be an 'if', But this is the asme as what i had, but with a few lines less code.\n if(!FunUtils.numberTollerance(orientation.get(\"roll\"), this.orientation.get(\"roll\"), variance)){\n return true;\n }\n return false;\n\n }", "public void useGaussianDeviates(){\n this.gaussianDeviates = true;\n }", "protected void internalSetPositionsDistancesAndStandardDeviations(\n final P[] positions, final double[] distances,\n final double[] distanceStandardDeviations) {\n if (distanceStandardDeviations == null || distances == null) {\n throw new IllegalArgumentException();\n }\n if (distances.length != distanceStandardDeviations.length) {\n throw new IllegalArgumentException();\n }\n\n super.internalSetPositionsAndDistances(positions, distances);\n mDistanceStandardDeviations = distanceStandardDeviations;\n }", "public void StandardDeviation(){\r\n\t\tAverage();\r\n\t\tif (count<=1){\r\n\t\t\tSystem.out.println(\"The Standard Deviation is \"+0.0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tStandardDeviation=(float)Math.sqrt((Total2-Total*Total/count)/(count-1));\r\n\t\t}\r\n\t}", "@Override\n\tpublic SparseVector getPosteriorPrecisions() {\n\t\treturn covariance.copyNew();\n\t}", "public boolean hasMargins() {\n return true;\n }", "public double[][] getCovarianceMatrix() {\r\n\t\treturn covar;\r\n\t}", "boolean manageCovarianceHistorySection(final boolean starting) {\n if (starting) {\n if (covarianceBlocks == null) {\n // this is the first covariance block, we need to allocate the container\n covarianceBlocks = new ArrayList<>();\n }\n currentCovarianceHistoryMetadata = new OrbitCovarianceHistoryMetadata(metadata.getEpochT0());\n currentCovarianceHistory = new ArrayList<>();\n anticipateNext(this::processCovarianceToken);\n } else {\n anticipateNext(structureProcessor);\n covarianceBlocks.add(new OrbitCovarianceHistory(currentCovarianceHistoryMetadata,\n currentCovarianceHistory));\n currentCovarianceHistoryMetadata = null;\n currentCovarianceHistory = null;\n }\n return true;\n }", "public boolean isSetPriceStd();", "public void useUniformDeviates(){\n this.gaussianDeviates = false;\n }", "@Test\n public void computeResult_clampsTooLowVariance() {\n mockDoubleNoise(-100);\n // The noise added to count is 0.\n mockLongNoise(0);\n\n variance =\n BoundedVariance.builder()\n .epsilon(EPSILON)\n .delta(DELTA)\n .noise(noise)\n .maxPartitionsContributed(1)\n .maxContributionsPerPartition(1)\n .lower(0)\n .upper(10)\n .build();\n\n variance.addEntry(5.0);\n variance.addEntry(5.0);\n // midpoint = (lower + upper) / 2 = 5,\n // noised_normalized_sum_of_squares = (x1 - midpoint)^2 + (x2 - midpoint)^2 + noise = -100,\n // noised_normalized_sum = (x1 + x2) - midpoint * count + noise = 5 + 5 - 5 * 2 - 100 = -100,\n // noised_count = count + noise = 2 + 0 = 2,\n // non_clamped_variance = noised_normalized_sum_of_squares / noised_count -\n // (noised_normalized_sum / noised_count)^2 = -100 / 2 - (-100 / 2)^2 = -2550\n // BoundedVariance.computeResult = clamp(non_clamped_variance) = 0 (lower bound).\n assertThat(variance.computeResult()).isEqualTo(0.0);\n }", "public double stdDev() {\n\t\tif (count() > 0) {\n\t\t\treturn sqrt(variance());\n\t\t}\n\t\treturn 0.0;\n\t}", "private void updateVarianceOfPrediction(int sensor_id){\n\t\t\n\t\tdouble N = current_sensor_readings[sensor_id] - predicted_sensor_readings[sensor_id][0];\n\t\tif(round_number==0){\n\t\t\t\n\t\t\tsigma[sensor_id] = N * N;\n\t\t\t\n\t\t}else if(round_number<=K){\n\t\t\t\n\t\t\tsigma[sensor_id] = (((round_number-1)*sigma[sensor_id]) + (N * N))/(round_number);\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\tsigma[sensor_id] = (1-gamma)*sigma[sensor_id] + gamma * N * N;\n\t\t}\n\t}", "public void validateWhenAllAttributesAreSet(boolean isDeclarative) {\n if (colocatedRegionName != null) {\n if (fixedPAttrs != null) {\n throw new IllegalStateException(\n String.format(\n \"FixedPartitionAttributes %s can not be specified in PartitionAttributesFactory if colocated-with is specified. \",\n fixedPAttrs));\n }\n }\n if (fixedPAttrs != null) {\n if (localMaxMemory == 0) {\n throw new IllegalStateException(\n String.format(\"FixedPartitionAttributes %s can not be defined for accessor\",\n fixedPAttrs));\n }\n }\n }", "public double populationVariance() {\n/* 215 */ Preconditions.checkState((this.count > 0L));\n/* 216 */ if (Double.isNaN(this.sumOfSquaresOfDeltas)) {\n/* 217 */ return Double.NaN;\n/* */ }\n/* 219 */ if (this.count == 1L) {\n/* 220 */ return 0.0D;\n/* */ }\n/* 222 */ return DoubleUtils.ensureNonNegative(this.sumOfSquaresOfDeltas) / count();\n/* */ }", "@Test\n public void test_SetOxideCorr() {\n System.out.println(\"Testing MeasuredRatioModel's setOxideCorr(boolean value)\");\n MeasuredRatioModel instance = new MeasuredRatioModel();\n boolean expResult = true;\n instance.setOxideCorr(true);\n boolean result = instance.isOxideCorr();\n assertEquals(expResult, result);\n instance.setOxideCorr(false);\n result = instance.isOxideCorr();\n expResult=false;\n assertEquals(expResult, result);\n }", "private void checkPaintMeasures() {\r\n\t\t\r\n\t\t//Check from change\r\n\t\tint sizeNow = fontSize;\r\n\t\tif(sizeNow == sizeThen)return;\r\n\t\tsizeThen = sizeNow;\r\n\t\t\r\n\t\t//Set units\r\n\t\tmarkWidth = (double) sizeNow / 15;\r\n\t\tsizePaintLength = p.textLength(text, surface, sizeNow, bold, italic);\r\n\t\tif (viewPaintLength != viewPaintLength) viewPaintLength = sizePaintLength;\r\n\t}", "public void setCentroidsAsMeans();", "@Override\n protected void internalSetPositionsAndDistances(\n final P[] positions, final double[] distances) {\n super.internalSetPositionsAndDistances(positions, distances);\n\n //initialize distances standard deviations to default values\n mDistanceStandardDeviations = new double[distances.length];\n Arrays.fill(mDistanceStandardDeviations, DEFAULT_DISTANCE_STANDARD_DEVIATION);\n }", "@Test\n public void computeResult_clampsTooHighVariance() {\n mockDoubleNoise(1);\n // The noise added to count is 0.\n mockLongNoise(0);\n\n variance =\n BoundedVariance.builder()\n .epsilon(EPSILON)\n .delta(DELTA)\n .noise(noise)\n .maxPartitionsContributed(1)\n .maxContributionsPerPartition(1)\n .lower(0.0)\n .upper(0.25)\n .build();\n\n variance.addEntry(0.25);\n variance.addEntry(0.25);\n // midpoint = (lower + upper) / 2 = 0.125,\n // noised_normalized_sum_of_squares = (x1 - midpoint)^2 + (x2 - midpoint)^2 + noise = 1.03125,\n // noised_normalized_sum = (x1 + x2) - midpoint * count + noise = 0.25 + 0.25 - 0.125 * 2 + 1 =\n // 1.25,\n // noised_count = count + noise = 2 + 0 = 2,\n // non_clamped_variance = noised_normalized_sum_of_squares / noised_count -\n // (noised_normalized_sum / noised_count)^2 = 1.03125 / 2 - (1.25 / 2)^2 = 0.125\n // BoundedVariance.computeResult = clamp(non_clamped_variance) = (0.25 - 0)^2 / 4 = 0.015625\n // (upper bound).\n assertThat(variance.computeResult()).isEqualTo(0.015625);\n }", "public DMatrixRMaj getCovariance() {\n\t\treturn P;\n\t}", "private void checkDimension(AbstractCurve abstractCurve, SrsDimensionInfo dimInfo) throws GeometryParseException, SrsParseException {\n\t\tint dimension = abstractCurve.isSetSrsDimension() ? abstractCurve.getSrsDimension() : dimInfo.defaultDimension;\n\t\tif (dimension == 3)\n\t\t\tdimInfo.is2d = false;\n\n\t\t// get and set srs\n\t\tif (abstractCurve.isSetSrsName()) {\n\t\t\tDatabaseSrs srs = srsNameParser.getDatabaseSrs(abstractCurve.getSrsName());\n\t\t\tif (dimInfo.targetSrs == null)\n\t\t\t\tdimInfo.targetSrs = srs;\n\t\t\telse if (dimInfo.targetSrs.getSrid() != srs.getSrid())\n\t\t\t\tthrow new GeometryParseException(\"Mixing different spatial reference systems in one geometry operand is not allowed.\");\n\t\t}\n\n\t\tif (abstractCurve instanceof LineString) {\n\t\t\tLineString lineString = (LineString)abstractCurve;\n\t\t\tif (lineString.isSetPosList())\n\t\t\t\tsetSrsDimension(lineString.getPosList(), dimInfo, dimension);\n\t\t\telse if (lineString.isSetPosOrPointPropertyOrPointRepOrCoord()) {\n\t\t\t\tfor (PosOrPointPropertyOrPointRepOrCoord controlPoint : lineString.getPosOrPointPropertyOrPointRepOrCoord()) {\n\t\t\t\t\tif (controlPoint.isSetPos() \n\t\t\t\t\t\t\t&& controlPoint.getPos().isSetSrsDimension() \n\t\t\t\t\t\t\t&& controlPoint.getPos().getSrsDimension() == 3)\n\t\t\t\t\t\tdimInfo.is2d = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse if (abstractCurve instanceof Curve) {\n\t\t\tCurve curve = (Curve) abstractCurve;\n\t\t\tif (curve.isSetSegments() && curve.getSegments().isSetCurveSegment()) {\n\t\t\t\tfor (AbstractCurveSegment abstractCurveSegment : curve.getSegments().getCurveSegment()) {\n\t\t\t\t\tif (abstractCurveSegment instanceof LineStringSegment) {\n\t\t\t\t\t\tLineStringSegment segment = (LineStringSegment) abstractCurveSegment;\n\t\t\t\t\t\tif (segment.isSetPosList())\n\t\t\t\t\t\t\tsetSrsDimension(segment.getPosList(), dimInfo, dimension);\n\t\t\t\t\t\telse if (segment.isSetPosOrPointPropertyOrPointRep()) {\n\t\t\t\t\t\t\tfor (PosOrPointPropertyOrPointRep controlPoint : segment.getPosOrPointPropertyOrPointRep()) {\n\t\t\t\t\t\t\t\tif (controlPoint.isSetPos()\n\t\t\t\t\t\t\t\t\t\t&& controlPoint.getPos().isSetSrsDimension()\n\t\t\t\t\t\t\t\t\t\t&& controlPoint.getPos().getSrsDimension() == 3)\n\t\t\t\t\t\t\t\t\tdimInfo.is2d = false;\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\n\t\telse if (abstractCurve instanceof CompositeCurve) {\n\t\t\tCompositeCurve compositeCurve = (CompositeCurve)abstractCurve;\n\t\t\tif (compositeCurve.isSetCurveMember()) {\t\t\n\t\t\t\tfor (CurveProperty property : compositeCurve.getCurveMember()) {\n\t\t\t\t\tif (property.isSetCurve())\n\t\t\t\t\t\tcheckDimension(property.getCurve(), dimInfo);\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\n\t\telse if (abstractCurve instanceof OrientableCurve) {\n\t\t\tOrientableCurve orientableCurve = (OrientableCurve)abstractCurve;\n\t\t\tif (orientableCurve.isSetBaseCurve() && orientableCurve.getBaseCurve().isSetCurve())\n\t\t\t\tcheckDimension(orientableCurve.getBaseCurve().getCurve(), dimInfo);\n\t\t}\n\t}", "boolean hasScaler();", "public void setHasVacuum(boolean value){this.hasVacuum = value;}", "Boolean isOmitNorms();", "public abstract boolean promulgationDataDefined();", "public void updateConsistencyGroupProperties(String cgName, String clusterName,\n boolean isDistributed) throws VPlexApiException {\n s_logger.info(\"Request to update consistency group properties on VPlex at {}\",\n _baseURI);\n\n List<VPlexClusterInfo> clusterInfoList = _discoveryMgr.getClusterInfoLite();\n if (!isDistributed) {\n Iterator<VPlexClusterInfo> clusterInfoIter = clusterInfoList.iterator();\n while (clusterInfoIter.hasNext()) {\n VPlexClusterInfo clusterInfo = clusterInfoIter.next();\n if (!clusterInfo.getName().equals(clusterName)) {\n clusterInfoIter.remove();\n }\n }\n\n // Find the consistency group.\n VPlexConsistencyGroupInfo cgInfo = _discoveryMgr.findConsistencyGroup(cgName,\n clusterInfoList, true);\n\n // The changes we need to make depend on if the the consistency group\n // has visibility to both clusters indicating it previously held\n // distributed volumes.\n List<String> visibleClusters = cgInfo.getVisibility();\n if (visibleClusters.size() > 1) {\n // Must set to no automatic winner as the CG may have previously held\n // distributed volumes that had a winner set, which would cause a failure\n // when we set update the visibility and cluster info.\n _cgMgr.setDetachRuleNoAutomaticWinner(cgInfo);\n\n // Now we must clear the CG storage clusters.\n _cgMgr.setConsistencyGroupStorageClusters(cgInfo, new ArrayList<VPlexClusterInfo>());\n\n // Now set visibility and cluster info for the CG in this order.\n _cgMgr.setConsistencyGroupVisibility(cgInfo, clusterInfoList);\n _cgMgr.setConsistencyGroupStorageClusters(cgInfo, clusterInfoList);\n } else if (!visibleClusters.contains(clusterName)) {\n // Update the visibility and cluster info for the CG in this order.\n _cgMgr.setConsistencyGroupStorageClusters(cgInfo, new ArrayList<VPlexClusterInfo>());\n _cgMgr.setConsistencyGroupVisibility(cgInfo, clusterInfoList);\n _cgMgr.setConsistencyGroupStorageClusters(cgInfo, clusterInfoList);\n }\n } else {\n // Find the consistency group.\n VPlexConsistencyGroupInfo cgInfo = _discoveryMgr.findConsistencyGroup(cgName,\n clusterInfoList, true);\n\n // We only have to make changes if the visibility is not\n // currently both clusters.\n List<String> visibleClusters = cgInfo.getVisibility();\n if (visibleClusters.size() != 2) {\n // First clear the CG storage clusters.\n _cgMgr.setConsistencyGroupStorageClusters(cgInfo, new ArrayList<VPlexClusterInfo>());\n\n // Now set visibility and cluster info for the CG to both clusters\n // in this order.\n _cgMgr.setConsistencyGroupVisibility(cgInfo, clusterInfoList);\n _cgMgr.setConsistencyGroupStorageClusters(cgInfo, clusterInfoList);\n\n // Now set the detach rule to winner for the cluster with the passed name.\n VPlexClusterInfo winningCluster = null;\n Iterator<VPlexClusterInfo> clusterInfoIter = clusterInfoList.iterator();\n while (clusterInfoIter.hasNext()) {\n VPlexClusterInfo clusterInfo = clusterInfoIter.next();\n if (clusterInfo.getName().equals(clusterName)) {\n winningCluster = clusterInfo;\n break;\n }\n }\n _cgMgr.setDetachRuleWinner(cgInfo, winningCluster);\n }\n }\n }", "public double empiricalVariance()\n\t{\n\t\treturn _dblEmpiricalVariance;\n\t}", "default public boolean getSoundness() {\n if (getValidity()) {\n for (Proposition premise : getPremises()) {\n if (!premise.determineTruth()) {\n return false;\n }\n }\n return true;\n } else {\n return false;\n }\n }", "protected void updateMode( int position ) {\n \t\tGPSFilterMode mode = position == 0 ? GPSFilterMode.INCLUDE : GPSFilterMode.EXCLUDE;\n \t\tthis.area.setMode( mode );\n \t\tthis.updateGuiPolygon();\n \t}", "public boolean isSizeFixed ( ) {\r\n\t\treturn (radius_mag_dependent == false);\r\n\t}", "public boolean isSetOffsets() {\n return this.offsets != null;\n }", "public void setPopulateAvg(boolean tmp) {\n this.populateAvg = tmp;\n }", "@java.lang.Override\n public boolean hasNoiseSigma() {\n return gradientNoiseSigmaCase_ == 1;\n }", "public void setMedianIntensities(boolean areMedians);", "public double[] monteCarloStandardDeviations(){\n if(!this.monteCarloDone)this.monteCarlo();\n return this.randomEigenValuesSDs;\n }", "@Test(timeout = 4000)\n public void test157() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.getCount(2);\n resultMatrixGnuPlot0.setStdDevWidth((-1299));\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n }", "@DataProvider(name = \"toyIntegratedVariants\")\n public Object[][] getAnnotateStructuralVariantTestData() {\n return new Object[][]{\n { createVariantContext(\"chr1\", 10, 50, null, null, null,\n \"<CNV>\", 40, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER, GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 50, 450, null, null, null,\n \"<DEL>\", 400, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.LOF, GATKSVVCFConstants.NONCODING_BREAKPOINT,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA1\", \"DNase\", false)) },\n { createVariantContext(\"chr1\", 1100, 1700, null, null, null,\n \"<INV>\", 600, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.NONCODING_SPAN, GATKSVVCFConstants.NEAREST_TSS,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"Enhancer\", \"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 1300, 1800, null, null, null,\n \"<INS:LINE1>\", 42, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.NONCODING_BREAKPOINT, GATKSVVCFConstants.NEAREST_TSS,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"Enhancer\", \"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 2000, 2200, null, null, null,\n \"<DUP>\", 42, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.DUP_PARTIAL,GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA2\", false)) },\n { createVariantContext(\"chr1\", 3100, 3300, null, null, null,\n \"<DUP>\", 200, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER,GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA2\", true)) },\n // check annotate promoter for all segments in multi-segment SV\n { createVariantContext(\"chr1\", 30, 30, \"chr1\", 3030, null,\n \"<BND>\", null, \"-+\", null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER, GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(Arrays.asList(\"EMMA1\", \"EMMA2\"), true)) }\n };\n }", "public void setSd(double sd) {\n this.sd = sd;\n }", "public PositionConfidenceSet getPosConfidence()\n {\n\treturn this.posConfidence;\n }", "public void toggleConsumptionHasChanged() {\n\t\tthis.consumptionHasChanged = (this.consumptionHasChanged) ? false : true;\n\t}", "public PCA(){\n super.trunc = 4;\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "public double getDefaultVariance()\n {\n return this.defaultVariance;\n }", "public boolean hasChanges() {\n return Math.abs(this.x) > 1.0E-5f || Math.abs(this.y) > 1.0E-5f || Math.abs(this.scale - this.minimumScale) > 1.0E-5f || Math.abs(this.rotation) > 1.0E-5f || Math.abs(this.orientation) > 1.0E-5f;\n }", "@Override\r\n\tpublic boolean isConcave() {\n\t\treturn false;\r\n\t}", "public Boolean isPSMSetScore() {\n return false;\n }", "public void setDependentSizeParameters ( double new_ratio, double new_mag, int new_radius ) {\r\n\t\tradius_mag_dependent = true;\r\n\t\tplot_ratio = new_ratio;\r\n\t\tlimiting_mag = new_mag;\r\n\t\tplot_radius = new_radius;\r\n\t}", "@Override\n\tpublic boolean canDoRainSnowIce(Chunk chunk) {\n\t\treturn getAtmosphereDensity(0,0) > 75 ? super.canDoRainSnowIce(chunk) : false;\n\t}", "public void SvdParameters() {\n\n\t\tSystem.out.print(\"p |\");\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\tSystem.out.printf(\"%6d\", i);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tSystem.out.print(\"Max error |\");\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\tSystem.out.printf(\"%6.1f\", maxerror[i]);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tSystem.out.print(\"Mean error |\");\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\tSystem.out.printf(\"%6.1f\", meanerror[i]);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tSystem.out.print(\"Compression,%|\");\n\t\tfor (int i = 0; i < rank; i++) {\n\t\t\tif (ratio[i] > 0)\n\t\t\t\tSystem.out.printf(\"%6.1f\", ratio[i]);\n\t\t\telse\n\t\t\t\tSystem.out.printf(\" n/a \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private boolean isTractorInDitch() {\n\t\treturn position[0]>field[0]||position[1]>field[1];\n\t}", "@Test(timeout = 4000)\n public void test179() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV(resultMatrixCSV0);\n resultMatrixCSV0.clearRanking();\n boolean boolean0 = resultMatrixCSV0.getShowStdDev();\n assertFalse(boolean0);\n \n resultMatrixCSV1.setEnumerateRowNames(false);\n assertEquals(0, resultMatrixCSV1.getSignificanceWidth());\n assertEquals(2, resultMatrixCSV1.getMeanPrec());\n assertTrue(resultMatrixCSV1.getPrintRowNames());\n assertEquals(25, resultMatrixCSV1.getRowNameWidth());\n assertTrue(resultMatrixCSV1.getEnumerateColNames());\n assertEquals(0, resultMatrixCSV1.getCountWidth());\n assertEquals(0, resultMatrixCSV1.getStdDevWidth());\n assertEquals(0, resultMatrixCSV1.getMeanWidth());\n assertFalse(resultMatrixCSV1.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV1.getStdDevPrec());\n \n resultMatrixCSV0.getColOrder();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.setSignificance(1913, 844, 844);\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n }", "protected boolean testPrecision ()\n {\n double precision = relativePrecision / (1.0 + relativePrecision);\n \n /******************************************************\n * Check the relative precision\n */\n double relPrecision = agentStat.confidence () / agentStat.mean ();\n\n trc.show (\"testPrecision\", \" precision = \" + precision +\n \" relPrecision = \" + relPrecision);\n\n if (numMeans < 2) {\n return false;\n } else { \n return relPrecision <= precision;\n } // if\n\n }", "@Test\r\n\tpublic void calculQualityAxisWithLostPointsTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculTestOfStudentQualityAxis(new ModelValue(4f, 2f), 3f), new Float(2));\r\n\t}", "@Override\n\tpublic boolean isDanger() {\n\t\tSharedPreferences prefs = NotificationStack.context.getSharedPreferences(\"com.app.virtualguardian\", Context.MODE_PRIVATE); \n\t\tint distancia=pingGps(Latitud,Longitud);\n\t\tint distanciaAuto=pingCar();\n\t\tint maxPer = Integer.parseInt(prefs.getString(\"distanciaPersonal\",\"3000\")); \n\t\tint maxCar = Integer.parseInt(prefs.getString(\"distanciaAuto\",\"3000\"));\n\t\tif(distancia<=maxPer){\n\t\t\t//avisaamigos\n\t\t\tavisaAmigos(distancia);\n\t\t}\n\t\tif(distanciaAuto<=maxCar){\n\t\t\t//avisaauto\n\t\t\tavisaAuto(distanciaAuto);\n\t\t}\n\t\tif(distancia<=maxPer || distanciaAuto<=maxCar)return true;\n\t\treturn false;\n\t}", "public double variance()\n {\n return variance(mean());\n }", "public void setAveragePosition(Double averagePosition) {\r\n this.averagePosition = averagePosition;\r\n }", "public void setPositionsDistancesAndStandardDeviations(\n final P[] positions, final double[] distances,\n final double[] distanceStandardDeviations) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n internalSetPositionsDistancesAndStandardDeviations(positions, distances,\n distanceStandardDeviations);\n }", "public boolean isSuperGiant(){\r\n\t\tboolean flag = false;\r\n\t\tif ((getMass() >100) && (getSize()>100)){\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "@JsonIgnore\n public Boolean isStandard() {\n return this.standard;\n }", "private double[][] getCov (double[][] in) {\n\t\treturn StatisticSample.covariance(in);\n\t}", "private static native void covarianceEstimation_0(long src_nativeObj, long dst_nativeObj, int windowRows, int windowCols);" ]
[ "0.6339323", "0.62357277", "0.53762335", "0.5365792", "0.50494736", "0.49365246", "0.49301806", "0.4861124", "0.48514855", "0.4843952", "0.4843952", "0.4843556", "0.47899023", "0.47718602", "0.47247767", "0.46675676", "0.465908", "0.465908", "0.46068645", "0.45931652", "0.45824942", "0.45781654", "0.45468956", "0.4527039", "0.4525392", "0.45173445", "0.45074314", "0.45032024", "0.45003015", "0.44849992", "0.44842276", "0.44746047", "0.44343278", "0.44222844", "0.44087902", "0.44064257", "0.44038588", "0.44014895", "0.43955374", "0.4390484", "0.43810764", "0.4377344", "0.43737963", "0.437343", "0.43726146", "0.43366376", "0.43354017", "0.43078494", "0.4305895", "0.43053225", "0.43019822", "0.4286209", "0.42812756", "0.42696232", "0.42537516", "0.42522126", "0.4243003", "0.4232141", "0.42103636", "0.4202999", "0.42017037", "0.41884732", "0.41801658", "0.4177478", "0.41706806", "0.41608015", "0.4158249", "0.41482115", "0.41428593", "0.41424903", "0.41284576", "0.41273135", "0.41265953", "0.41241738", "0.41142288", "0.41073635", "0.41048884", "0.41034287", "0.4103405", "0.41002777", "0.40825492", "0.40793642", "0.4072454", "0.40681118", "0.4061458", "0.40578708", "0.40529597", "0.40443492", "0.40423432", "0.40395284", "0.4033725", "0.40313628", "0.40263677", "0.40188473", "0.40157503", "0.40128484", "0.40090448", "0.40077764", "0.4006411", "0.40039387" ]
0.6177731
2
Indicates whether an homogeneous linear solver is used to estimate an initial position for the internal ranging radio source estimator.
public boolean isHomogeneousRangingLinearSolverUsed() { return mUseHomogeneousRangingLinearSolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSolvable() {\n\n return initialSolvable;\n }", "public boolean hasStartPositions(int player)\r\n/* 399: */ {\r\n/* 400:470 */ ArrayList<StartPositionModel> models = getStartPositions(player);\r\n/* 401:472 */ for (StartPositionModel model : models) {\r\n/* 402:474 */ if ((model.isOpen()) && (getAgentOnTile(model.getX(), model.getY()) == null)) {\r\n/* 403:476 */ return true;\r\n/* 404: */ }\r\n/* 405: */ }\r\n/* 406:479 */ return false;\r\n/* 407: */ }", "boolean isIsInitial();", "public boolean isSolvable() {\n return solution != null || initialNode.board.isGoal();\n }", "boolean hasSolverSpecificParameters();", "public boolean standsOnOpenStartPosition(float x, float y)\r\n/* 410: */ {\r\n/* 411:485 */ ArrayList<StartPositionModel> models = getOpenAlienStartPositions();\r\n/* 412:487 */ for (StartPositionModel model : models) {\r\n/* 413:489 */ if ((model.getX() == x) && (model.getY() == y)) {\r\n/* 414:491 */ return true;\r\n/* 415: */ }\r\n/* 416: */ }\r\n/* 417:494 */ return false;\r\n/* 418: */ }", "public boolean isSolvable() {\n return finalMove != null;\n }", "private boolean isResolvable() {\n\t\tfinal int sourceParity = board.calculateParity() % 2;\n\t\tfinal int targetParity = goal.calculateParity() % 2;\n\t\treturn (((sourceParity != 0) && (targetParity != 0)) || ((sourceParity == 0) && (targetParity == 0)));\n\t}", "boolean hasSolverType();", "public boolean isPositionEstimationEnabled() {\n return mPositionEstimationEnabled;\n }", "public boolean isSolvable()\n {\n return moves() >= 0;\n }", "boolean hasStartPosition();", "boolean hasStartPosition();", "public boolean isSolvable() {\r\n return solution() != null;\r\n }", "public boolean isSolvable() {\n\t\tif (goal == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isSolvable() {\n return goal != null;\n }", "public boolean solucionar() {\n\t\treturn false;\n\t}", "public boolean isSolvable() {\n return moves != -1;\n }", "@java.lang.Override\n public boolean hasEtaToFirstWaypoint() {\n return etaToFirstWaypoint_ != null;\n }", "private Boolean esSolucion() {\n if(debug) {\n System.out.println(\"**********************esSolucion\");\n printSol(); \n }\n \n return (this.sol.numVerticesEmparejados == (this.G.numVertices()-1));\n }", "private boolean isOutputAsRealMin() {\n return outputAsRealMin;\n }", "public boolean isSolvable() {\n Node preNode = minNode;\n while (preNode.getPrevious() != null) {\n preNode = preNode.getPrevious();\n }\n\n if (preNode.getBoard().equals(inNode.getBoard())) {\n return true;\n } else {\n return false;\n }\n }", "public boolean solve(){\n\t\treturn solve(0,0);\n\t}", "public boolean isSolvable() {\n \treturn isSolvable;\n }", "boolean hasHasLatitude();", "public boolean isInitier() {\n\t\treturn getStatut().equals(StatusBonPreparation.INITIER);\n\t}", "public boolean isSolved() {\n return (this.getCellNumber() != 0);\n }", "public boolean isSolvable() {\n return isSolvable;\n }", "public boolean isSolvable() {\n return isSolvable;\n }", "public boolean isHom() {\n if (chr.isMT() && maternal < 0) {\n return false;\n }\n if (chr.isY() && paternal < 0) {\n return false;\n }\n if (maternal < 0 || paternal < 0) {\n return false;\n }\n return (paternal == maternal);\n }", "public boolean isSolvable() {\n return _solvable;\n }", "public boolean hasEtaToFirstWaypoint() {\n return etaToFirstWaypointBuilder_ != null || etaToFirstWaypoint_ != null;\n }", "public boolean isSolvable() {\r\n return isSolvable;\r\n }", "boolean hasLatitude();", "boolean hasLatitude();", "public boolean isSingularMatrix() {\r\n try {\r\n return this.getDeterminant() == 0;\r\n } catch (InvalidMoveException e) {\r\n return false;\r\n }\r\n }", "public boolean isSolvable() {\n return solvable;\n }", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "public boolean isStartingVertexCity() {\r\n\t\t\treturn (getDegrees() == ZERO_DEGREE);\r\n\t\t}", "public boolean isTerm()\n {\n if (phase == 0)\n {\n return (loc.y == input.high_y);\n }\n if (phase == 3)\n {\n return (loc.y == input.high_y);\n\n }\n return false; \n\n }", "org.hl7.fhir.Boolean getInitial();", "public boolean isSolvable() {\n\t\treturn result != null;\n\t}", "public boolean initialConditions() {\n\n boolean evaluable;\n\n\n evaluable = diag.directedLinks();\n\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with no directed links\\n\\n\");\n return (false);\n }\n\n evaluable = ((((IDWithSVNodes) diag).hasOnlyOneTerminalSVNode())\n || (((IDWithSVNodes) diag).hasOnlyOneValueNode()));\n\n\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with 0 or more than 1 terminal super value nodes\\n or hasn't got an only utility node\\n\");\n return (false);\n }\n\n evaluable = diag.hasCycles();\n if (evaluable == true) {\n System.out.print(\"Influence Diagram with cycles\\n\\n\");\n return (false);\n }\n\n diag.addNonForgettingArcs();\n\n evaluable = diag.pathBetweenDecisions();\n if (evaluable == false) {\n System.out.print(\"Influence Diagram with non ordered decisions\\n\\n\");\n return (false);\n }\n\n evaluable = ((IDWithSVNodes) diag).isTreeStructureSV();\n if (evaluable == false) {\n System.out.print(\"Influence Diagram whose structure of value nodes isn't a tree\\n\\n\");\n return (false);\n }\n\n // Remove barren nodes\n\n //diag.eliminateRedundancy();\n diag.removeBarrenNodes();\n\n\n\n // Return true if OK\n\n return (true);\n }", "public boolean isSolvable() {\n Board twin = initial.twin();\n MinPQ<Node> mainQueue = new MinPQ<>(getComparator());\n MinPQ<Node> twinQueue = new MinPQ<>(getComparator());\n mainQueue.insert(new Node(initial, 0, null));\n twinQueue.insert(new Node(twin, 0, null));\n while (this.solution == null) {\n Node temp = mainQueue.delMin();\n if (temp.board.isGoal()) {\n this.solution = temp;\n return true;\n }\n Iterable<Board> nebrs = temp.board.neighbors();\n for (Board x : nebrs) {\n if (!x.equals(temp.previousNode.board)) {\n mainQueue.insert(new Node(x, temp.movesToBoard + 1, temp));\n }\n }\n Node temp2 = twinQueue.delMin();\n if (temp2.board.isGoal()) {\n this.solution = null;\n return false;\n }\n Iterable<Board> nebrs2 = temp2.board.neighbors();\n for (Board x : nebrs2) {\n if (!x.equals(temp2.previousNode.board)) {\n twinQueue.insert(new Node(x, temp2.movesToBoard + 1, temp2));\n }\n }\n }\n return false;\n }", "boolean isNilSingleBetMinimum();", "public boolean isHasSolution() {\n return hasSolution;\n }", "public boolean isInitialSetuped(){\r\n\t\treturn initialSetuped;\r\n\t}", "boolean isNilWagerMinimum();", "public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}", "public boolean hasLocality() {\n return localityBuilder_ != null || locality_ != null;\n }", "public boolean isInCorrectPosition() {\n return originalPos == currentPos;\n }", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean hasPosition();", "boolean isSetBeginPosition();", "public boolean solve()\n\t{\n Position[] pos=path.getLastStep().neighbors();\n if (grid.isOnBoundary(path.getLastStep())&&grid.isOpen(path.getLastStep()))\n\t\treturn true;\n if (path.getLastStep()==start)\n return false;\n for (int i=0;i<4;i++)\n {\n if (pos[i]!=path.getLastStep() && grid.isOpen(pos[i]))\n path.extend(pos[i]);\n }\n if (grid.isBlocked(path.getLastStep())||grid.isRejected(path.getLastStep()))\n {\n path.backUp();\n solve();\n }\n return false;\n \n\t}", "private boolean amIleader() {\n \t\treturn vs.getRank(myEndpt) == 0;\n \t}", "private ArrayList<Location> canMoveInit() {\n if (last == null) {\n ArrayList<Location> firstList = new ArrayList<>();\n firstList.add(getLocation());\n firstList.add(null);\n crossLocation.push(firstList);\n }\n if (crossLocation.empty() || isEnd) {\n return null;\n }\n Grid gr = getGrid();\n if (gr == null) {\n return null;\n }\n last = getLocation();\n return getValid(getLocation());\n }", "public boolean isCalibrated()\n {\n return pntCalibration != null;\n }", "public boolean isSolvable()\n {\n if (goalNode!=null && goalNode.board.isGoal()){\n return true;\n }\n return false;\n\n }", "@java.lang.Override\n public boolean hasInitialPromptFulfillment() {\n return initialPromptFulfillment_ != null;\n }", "public boolean isSolution() {\n\t\t\n\t\tboolean foundSolution = false;\n\t\t\n\t\tif (inconsistencyCount == 0) {\n\t\t\tfoundSolution = true;\n\t\t\tSet<PlanGraphLiteral> lastLevelFacts = facts.get(maxLevel);\n\t\t\tPlanGraphStep endStep = steps.get(maxLevel + 1).iterator().next();\n\t\t\tfor (PlanGraphLiteral goalCondition : endStep.getParentNodes()) {\n\t\t\t\tif (!lastLevelFacts.contains(goalCondition)) {\n\t\t\t\t\tinconsistencies.get(maxLevel).add(new UnsupportedPrecondition(goalCondition, maxLevel));\n\t\t\t\t\tinconsistencyCount++;\n\t\t\t\t\tfoundSolution = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn foundSolution;\n\t}", "private boolean isSolvable() {\n\t\tshort permutations = 0; // the number of incorrect orderings of tiles\n\t\tshort currentTileViewLocationScore;\n\t\tshort subsequentTileViewLocationScore;\n\n\t\t// Start at the first tile\n\t\tfor (int i = 0; i < tiles.size() - 2; i++) {\n\t\t\tTile tile = tiles.get(i);\n\n\t\t\t// Determine the tile's location value\n\t\t\tcurrentTileViewLocationScore = computeLocationValue(tile\n\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t// Compare the tile's location score to all of the tiles that\n\t\t\t// follow it\n\t\t\tfor (int j = i + 1; j < tiles.size() - 1; j++) {\n\t\t\t\tTile tSub = tiles.get(j);\n\n\t\t\t\tsubsequentTileViewLocationScore = computeLocationValue(tSub\n\t\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t\t// If a tile is found to be out of order, increment the number\n\t\t\t\t// of permutations.\n\t\t\t\tif (currentTileViewLocationScore > subsequentTileViewLocationScore) {\n\t\t\t\t\tpermutations++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// return whether number of permutations is even\n\t\treturn permutations % 2 == 0;\n\t}", "@Override\r\n\tpublic boolean isValidConstructionStep() {\r\n\t\tOGPOutput output = OpenGeoProver.settings.getOutput();\r\n\t\tILogger logger = OpenGeoProver.settings.getLogger();\r\n\t\t\r\n\t\tif (!super.isValidConstructionStep())\r\n\t\t\treturn false;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tint indexOP, indexC;\r\n\t\t\r\n\t\t\tif (this.originalPoint == null || this.centerOfRotation == null) {\r\n\t\t\t\toutput.openItemWithDesc(\"Error: \");\r\n\t\t\t\toutput.closeItemWithDesc(\"Rotated point \" + this.getGeoObjectLabel() + \" can't be constructed since original point or center of rotation are not constructed\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tindexOP = this.originalPoint.getIndex();\r\n\t\t\tindexC = this.centerOfRotation.getIndex();\r\n\t\t\r\n\t\t\tif (indexOP < 0 || indexC < 0) {\r\n\t\t\t\toutput.openItemWithDesc(\"Error: \");\r\n\t\t\t\toutput.closeItemWithDesc(\"Rotated point \" + this.getGeoObjectLabel() + \" can't be constructed since original point or center of rotation are not added to theorem protocol\");\r\n\t\t\t\treturn false; // some point not in theorem protocol\r\n\t\t\t}\r\n\t\t\r\n\t\t\tboolean valid = this.index > indexOP && this.index > indexC;\r\n\t\t\t\r\n\t\t\tif (!valid) {\r\n\t\t\t\toutput.openItemWithDesc(\"Error: \");\r\n\t\t\t\toutput.closeItemWithDesc(\"Rotated point \" + this.getGeoObjectLabel() + \" can't be constructed since original point or center of rotation are not yet constructed\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn valid;\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(\"Failed to write to output file(s).\");\r\n\t\t\toutput.close();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean hasStartPosition() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "public boolean hasStartPosition() {\n return ((bitField0_ & 0x00000008) != 0);\n }", "public boolean isKO() {\n\t\tif (this.hp <= 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "public boolean isInit() {\n\t\t\treturn this.gridIsInit;\n\t\t}", "public boolean isLethal() {\n\t\treturn false;\n\t}", "public boolean leadingDefined() {\n if (Float.isNaN(leading)) {\n return false;\n }\n return true;\n }", "@Override\n protected boolean isFinished() {\n return (Math.abs(hpIntake.getWristPosition()) - HatchPanelIntake.positions[position.ordinal()] < Math.PI/12);\n }", "private boolean isLexicographicOrder() {\n UISettings settings = UISettings.getInstance();\n\n //first first try the old way and fallback to the new method\n try {\n Field property = settings.getClass().getField(\"SORT_LOOKUP_ELEMENTS_LEXICOGRAPHICALLY\");\n Object value = property.get(settings);\n return value instanceof Boolean && Boolean.TRUE.equals(value);\n } catch (Exception e) {\n try {\n Method method = settings.getClass().getMethod(\"getSortLookupElementsLexicographically\");\n Object result = method.invoke(settings);\n\n return result instanceof Boolean && Boolean.TRUE.equals(result);\n } catch (Exception e1) {\n return false;\n }\n }\n }", "public boolean isScaleAhead() {\r\n\t\treturn robotStartPos == scalePos;\r\n\t}", "public boolean hasOriginh() {\n return fieldSetFlags()[1];\n }", "public boolean canDoBuildInitialRoad(){\n\t\t // If the player already has two roads on the board then he has already placed the initial roads\n\t\t if(playerPieces.getNumberOfRoads() < 14){\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }", "public void checkPosition(){\n int absPos = mArm.getSensorCollection().getPulseWidthPosition();\n // mArm.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);\n mArm.setSelectedSensorPosition(absPos - offset);\n }", "@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }", "boolean hasDynamicLineup();", "@java.lang.Override\n public boolean hasLocality() {\n return locality_ != null;\n }", "public boolean solve()\n\t{\n\t\t// Call the internal solver with the initial values\n\t\treturn solve(numberOfDiscs, poles[0], poles[1], poles[2]);\n\t}", "public boolean hasOriginp() {\n return fieldSetFlags()[2];\n }", "public boolean atPosition() {\n return m_X.getClosedLoopError() < Constants.k_ToleranceX;\n }", "boolean hasOriginseqnum();", "public boolean isGoal() {\n return hamming() == 0; // Board is solved if hamming distance is 0\n }", "public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}", "public boolean isProvidesHearing() {\n\t\treturn providesHearing;\n\t}", "public boolean isSetStartIndex()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(STARTINDEX$10) != null;\n }\n }", "public synchronized boolean isInPosition(){\r\n\t\tSystem.out.println(\"wheel: \" + flywheel.isFlywheelAtSpeed() + \r\n\t\t\t\t\" hood: \" + hood.isInPosition() + \r\n\t\t\t\t\" turret: \" + turret.isInPosition() + \r\n\t\t\t\t\" kicker: \" + kicker.isInPosition());\r\n\t\treturn flywheel.isFlywheelAtSpeed() && \r\n\t\t\t\thood.isInPosition() && \r\n\t\t\t\tturret.isInPosition() && \r\n\t\t\t\tkicker.isInPosition();\r\n\t}", "public boolean isOffsetCorrected() {\n\t\treturn offsetCorrection;\n\t}", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }", "boolean isSetControlPosition();", "public boolean isSetCarsource1l() {\n return __isset_bit_vector.get(__CARSOURCE1L_ISSET_ID);\n }", "public final boolean searchMinimum(){\r\n\t\tif (!initialized()) minimum=true;\r\n\t\treturn minimum;\r\n\t}" ]
[ "0.6091947", "0.5843257", "0.57663447", "0.5751357", "0.55224895", "0.54923916", "0.54848385", "0.54846585", "0.5413559", "0.5396457", "0.53585786", "0.5354669", "0.5354669", "0.53345984", "0.53334427", "0.53099656", "0.53000194", "0.52977264", "0.5277878", "0.52359873", "0.5234972", "0.5227877", "0.52237374", "0.5171292", "0.51701504", "0.5152848", "0.51478934", "0.5139476", "0.5139476", "0.51306486", "0.5130454", "0.5108714", "0.51040703", "0.5097914", "0.5097914", "0.50950015", "0.5092953", "0.50909007", "0.50909007", "0.50909007", "0.50909007", "0.50909007", "0.50909007", "0.5088502", "0.50845164", "0.5084161", "0.50780886", "0.5077637", "0.5068519", "0.5068006", "0.5062746", "0.5051828", "0.50458425", "0.5026122", "0.5017412", "0.50150406", "0.5008726", "0.5008726", "0.5008726", "0.5008726", "0.49990714", "0.4998928", "0.4983037", "0.4969259", "0.49675596", "0.49658102", "0.49596962", "0.49539596", "0.49438277", "0.49385595", "0.49264875", "0.49215466", "0.4919202", "0.4906109", "0.48981118", "0.48979992", "0.4895371", "0.48920456", "0.48915294", "0.48899683", "0.48887196", "0.48849592", "0.48848987", "0.48792678", "0.48788223", "0.48707312", "0.4864751", "0.4863985", "0.48624057", "0.4839074", "0.48321483", "0.4819628", "0.48183605", "0.48181438", "0.48141035", "0.48056722", "0.48056722", "0.48014802", "0.48012316", "0.48008323" ]
0.6789143
0
Specifies whether an homogeneous linear solver is used to estimate an initial position for the internal ranging radio source estimator.
public void setHomogeneousRangingLinearSolverUsed( final boolean useHomogeneousLinearSolver) throws LockedException { if (isLocked()) { throw new LockedException(); } mUseHomogeneousRangingLinearSolver = useHomogeneousLinearSolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHomogeneousRangingLinearSolverUsed() {\n return mUseHomogeneousRangingLinearSolver;\n }", "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }", "public boolean isSolvable() {\n\n return initialSolvable;\n }", "public void useNormalVarimax(){\n this. varimaxOption = true;\n }", "protected void initialize() {\n \tif (state == PistonPositions.Extended) moving = Robot.armPiston.smartExtend();\n \telse Robot.armPiston.smartRetract();\n }", "public boolean isPositionEstimationEnabled() {\n return mPositionEstimationEnabled;\n }", "public abstract void setPoseSolver(PoseSolver poseSolver);", "boolean hasSolverSpecificParameters();", "boolean isIsInitial();", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public abstract SolutionPartielle solutionInitiale();", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public void setInfluenceSolver(InfluenceSolver<RealTurtleBody> solver) {\n\t\tthis.solver = solver;\n\t}", "public void setPiston(boolean x){\n armPiston.set(x);\n }", "org.hl7.fhir.Boolean getInitial();", "protected void initialize() {\n\t\tRobot._driveTrain.setAuton(true);\n\t\tRobot._driveTrain.clearEncoder();\n\t\tRobot._driveTrain.clearGyro();\n\t\tdistanceToCenter = SmartDashboard.getNumber(\"toteOffset\", 0);\n\t\tif (Robot._pneumatics.getArms() != DoubleSolenoid.Value.kReverse) {\n\t\t\tRobot._pneumatics.setArms(DoubleSolenoid.Value.kReverse);\n\t\t}\n\t}", "@Override\n\tpublic void preSolve(Contact contact, Manifold oldManifold) {\n\t\t\n\t}", "@Override\n public void preSolve(Contact contact, Manifold oldManifold) {\n\n }", "protected void initialize() {\n \tRobot.m_elevator.setSetpoint(setpoint);\n \tRobot.m_elevator.setAbsoluteTolerance(tolerance);\n \tRobot.m_elevator.setPID(.3, 0, 0);\n \tRobot.m_elevator.enable();\n }", "@Override\n\tpublic void preSolve(Contact contact, Manifold oldManifold) {\n\n\t}", "public boolean standsOnOpenStartPosition(float x, float y)\r\n/* 410: */ {\r\n/* 411:485 */ ArrayList<StartPositionModel> models = getOpenAlienStartPositions();\r\n/* 412:487 */ for (StartPositionModel model : models) {\r\n/* 413:489 */ if ((model.getX() == x) && (model.getY() == y)) {\r\n/* 414:491 */ return true;\r\n/* 415: */ }\r\n/* 416: */ }\r\n/* 417:494 */ return false;\r\n/* 418: */ }", "public boolean hasStartPositions(int player)\r\n/* 399: */ {\r\n/* 400:470 */ ArrayList<StartPositionModel> models = getStartPositions(player);\r\n/* 401:472 */ for (StartPositionModel model : models) {\r\n/* 402:474 */ if ((model.isOpen()) && (getAgentOnTile(model.getX(), model.getY()) == null)) {\r\n/* 403:476 */ return true;\r\n/* 404: */ }\r\n/* 405: */ }\r\n/* 406:479 */ return false;\r\n/* 407: */ }", "protected void initialize(){\n\t\tRobot.driveTrain.changeTalonControlMode(TalonControlMode.Follower);\n\t\tRobot.driveTrain.setTalonsReversedState(true);\n\t\tRobotMap.visionSensor.startProcessing(PIDVisionSourceType.DistanceFromTarget);\n\t\thasStarted = RobotMap.VisionDistanceLeftPIDController.init(m_setPoint, StaticMembers.ABSOLUTE_TOLERANCE_DISTANCE);\n\t\thasStarted = RobotMap.VisionDistanceRightPIDController.init(m_setPoint, StaticMembers.ABSOLUTE_TOLERANCE_DISTANCE) && hasStarted;\n\t}", "@Override\n\tpublic void preSolve(Contact contact, Manifold oldManifold) {\n\t}", "public boolean isSolvable() {\n return solution != null || initialNode.board.isGoal();\n }", "public void setFirst(boolean first){\r\n\t\tfirstCoordinate = first;\r\n\t}", "void setUpLinearManager();", "public void preSolve(Contact contact, Manifold oldManifold) {\n\n }", "private boolean isOutputAsRealMin() {\n return outputAsRealMin;\n }", "private void setMin(int min) { this.min = new SimplePosition(false,false,min); }", "public Point getInitialPosition()\n {\n return this.initialPosition;\n }", "public float getInitialPosition() {\n return initialPosition;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "boolean isSetBeginPosition();", "protected void initialize() {\r\n\t \tRobotMap.armarm_talon.changeControlMode(CANTalon.ControlMode.Position);\r\n\t }", "@Override\n protected void initialize() {\n if (extend) {\n Robot.rearHatch.setRearHatchPiston(true);\n } else {\n Robot.rearHatch.setRearHatchMotorPercentOutput(-0.6);\n Robot.rearHatch.setRearHatchPiston(false);\n }\n }", "protected void initialize() {\n \tif ((deploy && Robot.intake.getHopperTracker() == Status.deployed) || \n \t\t\t(!deploy && Robot.intake.getHopperTracker() == Status.stowed)) {\n \t\t// Hopper is already in desired position, so do nothing\n \t\twaitForMovement = false;\n \t} else if (deploy && (Robot.intake.getIntakeTracker() != Status.deployed)) {\n \t\t// Can't deploy hopper if intake is not deployed (ie., if stowed or unknown or moving)\n \t\twaitForMovement = false;\n \t} else {\n \t\t// OK, we can move the hopper\n \t\twaitForMovement = true;\n \t\tRobot.intake.setHopperTracker(Status.unknown);\t// put in unknown state while hopper is moving\n \tif (deploy) Robot.intake.deployHopper();\n \telse { Robot.intake.stowHopper(); }\n \t}\n }", "@Override\n\tpublic Position getInitialPosition() \n\t{\n\t\treturn initialPosition;\n\t}", "@Override\n\tpublic void onPreSolve(Contact c, Manifold manifold) {\n\t\t\n\t}", "private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }", "@Override\n\tprotected void initialize()\n\t{\n\t\tRobotMap.joshsPID.reset();\n\t\tRobotMap.joshsPID.enable();\n\t\tRobotMap.joshsPID.setOutputRange(-1.0, 0.0);\n\t\t// RobotMap.joshsPID.setIContributionRange(-0.1, 0.1);\n\t}", "public void setInitalOffset(double offset){\n \tmodule.forEach(m -> m.setInitialOffset(offset));\n }", "public void initialSearch() {\n Kinematics k = getTrustedRobotKinematics();\n //logger.info(\"Kinematics position is \" + k.getPosition());\n\n // Set the default planner.\n setPlanner(PlannerType.TRAPEZOIDAL);\n\n // For gateway no zones were defined yet.\n m_robot.setCheckZones(false);\n\n // Do a preliminary trajectory in a lawnmower pattern.\n Point startPoint = k.getPosition();\n runTrajectory(startPoint, m_lawnmowerTrajectory);\n m_initialSearchDone = true;\n }", "public void setIsposition(java.lang.Boolean newIsposition) {\n\tisposition = newIsposition;\n}", "void gettingBackToInitial(){\n robot.setDrivetrainPosition(-hittingMineralDistance, \"translation\", 1.0);\n }", "protected void initialize() {\n initialPos = Math.abs(Robot.arm.getArmEncoderValue());\n double direction = Math.signum(setpoint - Math.abs(Robot.arm.getArmEncoderValue()));\n Robot.arm.moveArm(direction * RobotMap.ArmConstants.ARM_AUTONOMOUS_MOVEMENT_POWER, 1);\n }", "private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }", "public void checkPosition(){\n int absPos = mArm.getSensorCollection().getPulseWidthPosition();\n // mArm.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);\n mArm.setSelectedSensorPosition(absPos - offset);\n }", "public interface Propagator extends PVCoordinatesProvider {\n\n /** Default mass. */\n double DEFAULT_MASS = 1000.0;\n\n /** Default attitude provider. */\n AttitudeProvider DEFAULT_LAW = InertialProvider.EME2000_ALIGNED;\n\n /** Indicator for slave mode. */\n int SLAVE_MODE = 0;\n\n /** Indicator for master mode. */\n int MASTER_MODE = 1;\n\n /** Indicator for ephemeris generation mode. */\n int EPHEMERIS_GENERATION_MODE = 2;\n\n /** Get the current operating mode of the propagator.\n * @return one of {@link #SLAVE_MODE}, {@link #MASTER_MODE},\n * {@link #EPHEMERIS_GENERATION_MODE}\n * @see #setSlaveMode()\n * @see #setMasterMode(double, OrekitFixedStepHandler)\n * @see #setMasterMode(OrekitStepHandler)\n * @see #setEphemerisMode()\n */\n int getMode();\n\n /** Set the propagator to slave mode.\n * <p>This mode is used when the user needs only the final orbit at the target time.\n * The (slave) propagator computes this result and return it to the calling\n * (master) application, without any intermediate feedback.\n * <p>This is the default mode.</p>\n * @see #setMasterMode(double, OrekitFixedStepHandler)\n * @see #setMasterMode(OrekitStepHandler)\n * @see #setEphemerisMode()\n * @see #getMode()\n * @see #SLAVE_MODE\n */\n void setSlaveMode();\n\n /** Set the propagator to master mode with fixed steps.\n * <p>This mode is used when the user needs to have some custom function called at the\n * end of each finalized step during integration. The (master) propagator integration\n * loop calls the (slave) application callback methods at each finalized step.</p>\n * @param h fixed stepsize (s)\n * @param handler handler called at the end of each finalized step\n * @see #setSlaveMode()\n * @see #setMasterMode(OrekitStepHandler)\n * @see #setEphemerisMode()\n * @see #getMode()\n * @see #MASTER_MODE\n */\n void setMasterMode(double h, OrekitFixedStepHandler handler);\n\n /** Set the propagator to master mode with variable steps.\n * <p>This mode is used when the user needs to have some custom function called at the\n * end of each finalized step during integration. The (master) propagator integration\n * loop calls the (slave) application callback methods at each finalized step.</p>\n * @param handler handler called at the end of each finalized step\n * @see #setSlaveMode()\n * @see #setMasterMode(double, OrekitFixedStepHandler)\n * @see #setEphemerisMode()\n * @see #getMode()\n * @see #MASTER_MODE\n */\n void setMasterMode(OrekitStepHandler handler);\n\n /** Set the propagator to ephemeris generation mode.\n * <p>This mode is used when the user needs random access to the orbit state at any time\n * between the initial and target times, and in no sequential order. A typical example is\n * the implementation of search and iterative algorithms that may navigate forward and\n * backward inside the propagation range before finding their result.</p>\n * <p>Beware that since this mode stores <strong>all</strong> intermediate results,\n * it may be memory intensive for long integration ranges and high precision/short\n * time steps.</p>\n * @see #getGeneratedEphemeris()\n * @see #setSlaveMode()\n * @see #setMasterMode(double, OrekitFixedStepHandler)\n * @see #setMasterMode(OrekitStepHandler)\n * @see #getMode()\n * @see #EPHEMERIS_GENERATION_MODE\n */\n void setEphemerisMode();\n\n /**\n * Set the propagator to ephemeris generation mode with the specified handler for each\n * integration step.\n *\n * <p>This mode is used when the user needs random access to the orbit state at any\n * time between the initial and target times, as well as access to the steps computed\n * by the integrator as in Master Mode. A typical example is the implementation of\n * search and iterative algorithms that may navigate forward and backward inside the\n * propagation range before finding their result.</p>\n *\n * <p>Beware that since this mode stores <strong>all</strong> intermediate results, it\n * may be memory intensive for long integration ranges and high precision/short time\n * steps.</p>\n *\n * @param handler handler called at the end of each finalized step\n * @see #setEphemerisMode()\n * @see #getGeneratedEphemeris()\n * @see #setSlaveMode()\n * @see #setMasterMode(double, OrekitFixedStepHandler)\n * @see #setMasterMode(OrekitStepHandler)\n * @see #getMode()\n * @see #EPHEMERIS_GENERATION_MODE\n */\n void setEphemerisMode(OrekitStepHandler handler);\n\n /** Get the ephemeris generated during propagation.\n * @return generated ephemeris\n * @exception IllegalStateException if the propagator was not set in ephemeris\n * generation mode before propagation\n * @see #setEphemerisMode()\n */\n BoundedPropagator getGeneratedEphemeris() throws IllegalStateException;\n\n /** Get the propagator initial state.\n * @return initial state\n * @exception OrekitException if state cannot be retrieved\n */\n SpacecraftState getInitialState() throws OrekitException;\n\n /** Reset the propagator initial state.\n * @param state new initial state to consider\n * @exception OrekitException if initial state cannot be reset\n */\n void resetInitialState(SpacecraftState state)\n throws OrekitException;\n\n /** Add a set of user-specified state parameters to be computed along with the orbit propagation.\n * @param additionalStateProvider provider for additional state\n * @exception OrekitException if an additional state with the same name is already present\n */\n void addAdditionalStateProvider(AdditionalStateProvider additionalStateProvider)\n throws OrekitException;\n\n /** Get an unmodifiable list of providers for additional state.\n * @return providers for the additional states\n */\n List<AdditionalStateProvider> getAdditionalStateProviders();\n\n /** Check if an additional state is managed.\n * <p>\n * Managed states are states for which the propagators know how to compute\n * its evolution. They correspond to additional states for which an\n * {@link AdditionalStateProvider additional state provider} has been registered\n * by calling the {@link #addAdditionalStateProvider(AdditionalStateProvider)\n * addAdditionalStateProvider} method. If the propagator is an {@link\n * org.orekit.propagation.integration.AbstractIntegratedPropagator integrator-based\n * propagator}, the states for which a set of {@link\n * org.orekit.propagation.integration.AdditionalEquations additional equations} has\n * been registered by calling the {@link\n * org.orekit.propagation.integration.AbstractIntegratedPropagator#addAdditionalEquations(\n * org.orekit.propagation.integration.AdditionalEquations) addAdditionalEquations}\n * method are also counted as managed additional states.\n * </p>\n * <p>\n * Additional states that are present in the {@link #getInitialState() initial state}\n * but have no evolution method registered are <em>not</em> considered as managed states.\n * These unmanaged additional states are not lost during propagation, though. Their\n * value will simply be copied unchanged throughout propagation.\n * </p>\n * @param name name of the additional state\n * @return true if the additional state is managed\n */\n boolean isAdditionalStateManaged(String name);\n\n /** Get all the names of all managed states.\n * @return names of all managed states\n */\n String[] getManagedAdditionalStates();\n\n /** Add an event detector.\n * @param detector event detector to add\n * @see #clearEventsDetectors()\n * @see #getEventsDetectors()\n * @param <T> class type for the generic version\n */\n <T extends EventDetector> void addEventDetector(T detector);\n\n /** Get all the events detectors that have been added.\n * @return an unmodifiable collection of the added detectors\n * @see #addEventDetector(EventDetector)\n * @see #clearEventsDetectors()\n */\n Collection<EventDetector> getEventsDetectors();\n\n /** Remove all events detectors.\n * @see #addEventDetector(EventDetector)\n * @see #getEventsDetectors()\n */\n void clearEventsDetectors();\n\n /** Get attitude provider.\n * @return attitude provider\n */\n AttitudeProvider getAttitudeProvider();\n\n /** Set attitude provider.\n * @param attitudeProvider attitude provider\n */\n void setAttitudeProvider(AttitudeProvider attitudeProvider);\n\n /** Get the frame in which the orbit is propagated.\n * <p>\n * The propagation frame is the definition frame of the initial\n * state, so this method should be called after this state has\n * been set, otherwise it may return null.\n * </p>\n * @return frame in which the orbit is propagated\n * @see #resetInitialState(SpacecraftState)\n */\n Frame getFrame();\n\n /** Propagate towards a target date.\n * <p>Simple propagators use only the target date as the specification for\n * computing the propagated state. More feature rich propagators can consider\n * other information and provide different operating modes or G-stop\n * facilities to stop at pinpointed events occurrences. In these cases, the\n * target date is only a hint, not a mandatory objective.</p>\n * @param target target date towards which orbit state should be propagated\n * @return propagated state\n * @exception OrekitException if state cannot be propagated\n */\n SpacecraftState propagate(AbsoluteDate target) throws OrekitException;\n\n /** Propagate from a start date towards a target date.\n * <p>Those propagators use a start date and a target date to\n * compute the propagated state. For propagators using event detection mechanism,\n * if the provided start date is different from the initial state date, a first,\n * simple propagation is performed, without processing any event computation.\n * Then complete propagation is performed from start date to target date.</p>\n * @param start start date from which orbit state should be propagated\n * @param target target date to which orbit state should be propagated\n * @return propagated state\n * @exception OrekitException if state cannot be propagated\n */\n SpacecraftState propagate(AbsoluteDate start, AbsoluteDate target) throws OrekitException;\n\n}", "public Solver(Board initial) {\n if (initial == null)\n throw new java.lang.NullPointerException(\"null block\");\n \n final Board initConfig = initial;\n solve(initConfig);\n }", "protected void initialize() {\n\t\tint position = Robot.wrist.getCurrentPosition();\n\t\tSystem.out.println(\"Wrist position: \" + position);\n\t\tif (position < safePosition) {\n\t\t\tisSafe = false;\n\t\t\tRobot.wrist.setTargetPosition(homePosition);\n\t\t} else {\n\t\t\tisSafe = true;\n\t\t}\n\t\tSystem.out.println(\"Wrist is safe: \" + isSafe);\n\t}", "boolean hasSolverType();", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm, listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }", "public void initializeBoolean(){\n\t\tisEndTime = false;\n\t\tdisplayTimeCount = true;\n\t\tmoveDistanceCount = true;\n\t\tguessCounter = true;\n\t\t\n\t\t\n\t\ttutorial1 = true;\n\t\ttutorial2 = false;\n\t\twin = false;\n\t\tgoLeft = false;\n\t\tgoRight = false;\n\t\tballShoot = false;\n\t\tactiveBall = false;\n\t}", "public Solver(Board initial) {\n this.initial = initial;\n if (this.isSolvable())\n minimumNumberOfMoves = this.solution.movesToBoard;\n else\n minimumNumberOfMoves = -1;\n }", "public Solver(Board initial) {\n \tsolutionNode = null;\n \tpq = new MinPQ<>();\n \tpq.insert(new SearchNode(initial, null, 0));\n\n \twhile (true) {\n \t\tSearchNode currNode = pq.delMin();\n\t \tBoard currBoard = currNode.getBoard();\n\n\t \tif (currBoard.isGoal()) {\n\t \t\tisSolvable = true;\n\t \t\tsolutionNode = currNode;\n\t \t\tbreak;\n\t \t}\n\n\t \tif (currBoard.hamming() == 2 && currBoard.twin().isGoal()) {\n\t \t\tisSolvable = false;\n\t \t\tbreak;\n\t \t}\n\n\t \tint moves = currNode.getMoves();\n\t \tBoard prevBoard = moves > 0 ? currNode.prev().getBoard() : null;\n\t \tfor (Board nextBoard : currBoard.neighbors()) {\n\t \t\tif (nextBoard != null && nextBoard.equals(prevBoard)) {\n\t \t\t\tcontinue;\n\t \t\t}\n\t \t\tpq.insert(new SearchNode(nextBoard, currNode, moves + 1));\n\t \t}\n \t}\n \t\n }", "public void setLocal(boolean isLocal);", "public void preSolve(Contact c, Manifold m ){}", "@Override\n public LaterationSolverType getType() {\n return LaterationSolverType.NON_LINEAR_TRILATERATION_SOLVER;\n }", "static final SettingsModelBoolean createAdjustSingleBondsBetweenAromaticAtomsOptionModel() {\n return new SettingsModelBoolean(\"adjust_single_bonds_between_aromatic_atoms\", \n \t\tDEFAULT_ADJUST_QUERY_PARAMETERS.getAdjustSingleBondsBetweenAromaticAtoms());\n }", "public void setInitialPositions() {\t\n\t\tString[][] positions = myData.getInitialPositions();\n\t\tif (positions.length == 0) {\n\t\t\tsetDefaultPositions(myData);\n\t\t} else {\n\t\t\tfor (String[] each : positions) {\n\t\t\t\tif (each.length != 3) {\n\t\t\t\t\tthrow new XMLException(\"Initial State not Given for Cell %s\", Arrays.toString(each));\n\t\t\t\t}\n\t\t\t\tint x = Integer.parseInt(each[0]);\n\t\t\t\tint y = Integer.parseInt(each[1]);\n\t\t\t\tif (x < getGrid().getRow(0).length && x >= 0 && y < getGrid().getRow(0).length && y >= 0){ \n\t\t\t\t\tgetGrid().getCell(x,y).setType(each[2]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void teleopInit() {\n /* factory default values */\n _talonL1.configFactoryDefault();\n _talonL2.configFactoryDefault();\n _talonR1.configFactoryDefault();\n _talonR2.configFactoryDefault();\n\n /* flip values so robot moves forward when stick-forward/LEDs-green */\n _talonL1.setInverted(true); // <<<<<< Adjust this\n _talonL2.setInverted(true); // <<<<<< Adjust this\n _talonR1.setInverted(true); // <<<<<< Adjust this\n _talonR2.setInverted(true); // <<<<<< Adjust this\n\n\n /*\n * WPI drivetrain classes defaultly assume left and right are opposite. call\n * this so we can apply + to both sides when moving forward. DO NOT CHANGE\n */\n _drive.setRightSideInverted(true);\n }", "public boolean solucionar() {\n\t\treturn false;\n\t}", "public void setSolucion(boolean sol) {\n this._esSolucion = sol;\n }", "protected void initialize() {\n \t starttime = Timer.getFPGATimestamp();\n \tthis.startAngle = RobotMap.navx.getAngle();\n \tangleorientation.setSetPoint(RobotMap.navx.getAngle());\n \t\n \tRobotMap.motorLeftTwo.enableControl();\n \tRobotMap.motorRightTwo.enableControl();\n \tRobotMap.motorLeftTwo.enableControl();\n \tRobotMap.motorRightTwo.enableControl();\n \n //settting talon control mode\n \tRobotMap.motorLeftTwo.changeControlMode(TalonControlMode.MotionMagic);\t\t\n\t\tRobotMap.motorLeftOne.changeControlMode(TalonControlMode.Follower);\t\n\t\tRobotMap.motorRightTwo.changeControlMode(TalonControlMode.MotionMagic);\t\n\t\tRobotMap.motorRightOne.changeControlMode(TalonControlMode.Follower);\n\t\t//setting peak and nominal output voltage for the motors\n\t\tRobotMap.motorLeftTwo.configPeakOutputVoltage(+12.0f, -12.0f);\n\t\tRobotMap.motorLeftTwo.configNominalOutputVoltage(0.00f, 0.0f);\n\t\tRobotMap.motorRightTwo.configPeakOutputVoltage(+12.0f, -12.0f);\n\t\tRobotMap.motorRightTwo.configNominalOutputVoltage(0.0f, 0.0f);\n\t\t//setting who is following whom\n\t\tRobotMap.motorLeftOne.set(4);\n\t\tRobotMap.motorRightOne.set(3);\n\t\t//setting pid value for both sides\n\t//\tRobotMap.motorLeftTwo.setCloseLoopRampRate(1);\n\t\tRobotMap.motorLeftTwo.setProfile(0);\n\t RobotMap.motorLeftTwo.setP(0.000014f);\n \tRobotMap.motorLeftTwo.setI(0.00000001);\n\t\tRobotMap.motorLeftTwo.setIZone(0);//325);\n\t\tRobotMap.motorLeftTwo.setD(1.0f);\n\t\tRobotMap.motorLeftTwo.setF(this.fGainLeft+0.014);//0.3625884);\n\t\tRobotMap.motorLeftTwo.setAllowableClosedLoopErr(0);//300);\n\t\t\n\t RobotMap.motorRightTwo.setCloseLoopRampRate(1);\n\t RobotMap.motorRightTwo.setProfile(0);\n\t\tRobotMap.motorRightTwo.setP(0.000014f);\n\t\tRobotMap.motorRightTwo.setI(0.00000001);\n\t\tRobotMap.motorRightTwo.setIZone(0);//325);\n\t\tRobotMap.motorRightTwo.setD(1.0f);\n\t\tRobotMap.motorRightTwo.setF(this.fGainRight);// 0.3373206);\n\t\tRobotMap.motorRightTwo.setAllowableClosedLoopErr(0);//300);\n\t\t\n\t\t//setting Acceleration and velocity for the left\n\t\tRobotMap.motorLeftTwo.setMotionMagicAcceleration(125);\n\t\tRobotMap.motorLeftTwo.setMotionMagicCruiseVelocity(250);\n\t\t//setting Acceleration and velocity for the right\n\t\tRobotMap.motorRightTwo.setMotionMagicAcceleration(125);\n\t\tRobotMap.motorRightTwo.setMotionMagicCruiseVelocity(250);\n\t\t//resets encoder position to 0\t\t\n\t\tRobotMap.motorLeftTwo.setEncPosition(0);\n\t\tRobotMap.motorRightTwo.setEncPosition(0);\n\t //Set Allowable error for the loop\n\t\tRobotMap.motorLeftTwo.setAllowableClosedLoopErr(300);\n\t\tRobotMap.motorRightTwo.setAllowableClosedLoopErr(300);\n\t\t\n\t\t//sets desired endpoint for the motors\n RobotMap.motorLeftTwo.set(motionMagicEndPoint);\n RobotMap.motorRightTwo.set(-motionMagicEndPoint );\n \t\n }", "public void lower() {\n fangSolenoid.set(DoubleSolenoid.Value.kForward);\n }", "protected void initialize() {\n\t\tpid.setSetpoint((goalRotation + Robot.imu.getHeading() + 360) % 360);\n\t\tpid.enable();\n\t}", "protected void initialize() {\n \tsetSetpoint(0.0);\n }", "@Override\n public void estimate() throws RadioSourceEstimationException, NotReadyException,\n LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n createInnerEstimatorsIfNeeded();\n\n final List<RangingReadingLocated<S, P>> rangingReadings = new ArrayList<>();\n final List<RssiReadingLocated<S, P>> rssiReadings = new ArrayList<>();\n for (final ReadingLocated<P> reading : mReadings) {\n if (reading instanceof RangingReadingLocated) {\n rangingReadings.add((RangingReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RssiReadingLocated) {\n rssiReadings.add((RssiReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n rangingReadings.add(createRangingReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n rssiReadings.add(createRssiReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n }\n }\n\n //estimate position using ranging data, if possible\n P estimatedPosition = null;\n if (!mRssiPositionEnabled) {\n mRangingInnerEstimator.setUseReadingPositionCovariances(\n mUseReadingPositionCovariances);\n mRangingInnerEstimator.setHomogeneousLinearSolverUsed(\n mUseHomogeneousRangingLinearSolver);\n mRangingInnerEstimator.setReadings(rangingReadings);\n mRangingInnerEstimator.setInitialPosition(mInitialPosition);\n\n mRangingInnerEstimator.estimate();\n\n mEstimatedPositionCoordinates =\n mRangingInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRangingInnerEstimator.getEstimatedPositionCovariance();\n estimatedPosition = mRangingInnerEstimator.getEstimatedPosition();\n }\n\n //estimate transmitted power and/or pathloss if enabled\n if (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled || mRssiPositionEnabled) {\n mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled);\n mRssiInnerEstimator.setInitialPosition(estimatedPosition);\n\n mRssiInnerEstimator.setTransmittedPowerEstimationEnabled(\n mTransmittedPowerEstimationEnabled);\n mRssiInnerEstimator.setInitialTransmittedPowerdBm(\n mInitialTransmittedPowerdBm);\n\n mRssiInnerEstimator.setPathLossEstimationEnabled(\n mPathLossEstimationEnabled);\n mRssiInnerEstimator.setInitialPathLossExponent(\n mInitialPathLossExponent);\n\n mRssiInnerEstimator.setReadings(rssiReadings);\n\n mRssiInnerEstimator.estimate();\n\n if (mRssiPositionEnabled) {\n mEstimatedPositionCoordinates =\n mRssiInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRssiInnerEstimator.getEstimatedPositionCovariance();\n }\n\n if (mTransmittedPowerEstimationEnabled) {\n //transmitted power estimation enabled\n mEstimatedTransmittedPowerdBm =\n mRssiInnerEstimator.getEstimatedTransmittedPowerdBm();\n mEstimatedTransmittedPowerVariance =\n mRssiInnerEstimator.getEstimatedTransmittedPowerVariance();\n } else {\n //transmitted power estimation disabled\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n }\n\n if (mPathLossEstimationEnabled) {\n //pathloss exponent estimation enabled\n mEstimatedPathLossExponent =\n mRssiInnerEstimator.getEstimatedPathLossExponent();\n mEstimatedPathLossExponentVariance =\n mRssiInnerEstimator.getEstimatedPathLossExponentVariance();\n } else {\n //pathloss exponent estimation disabled\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n //build covariance matrix\n if (mRssiPositionEnabled) {\n //if only RSSI estimation is done, we use directly the available estimated covariance\n mEstimatedCovariance = mRssiInnerEstimator.getEstimatedCovariance();\n\n } else {\n //if both ranging and RSSI data is used, we build covariance matrix by setting\n //position covariance estimated by ranging estimator into top-left corner, and then\n //adding covariance terms related to pathloss exponent and transmitted power\n final Matrix rssiCov = mRssiInnerEstimator.getEstimatedCovariance();\n if (mEstimatedPositionCovariance != null && rssiCov != null) {\n final int dims = getNumberOfDimensions();\n int n = dims;\n if (mTransmittedPowerEstimationEnabled) {\n n++;\n }\n if (mPathLossEstimationEnabled) {\n n++;\n }\n\n final int dimsMinus1 = dims - 1;\n final int nMinus1 = n - 1;\n mEstimatedCovariance = new Matrix(n, n);\n mEstimatedCovariance.setSubmatrix(0, 0,\n dimsMinus1, dimsMinus1,\n mEstimatedPositionCovariance);\n mEstimatedCovariance.setSubmatrix(dims, dims,\n nMinus1, nMinus1, rssiCov);\n } else {\n mEstimatedCovariance = null;\n }\n }\n\n } else {\n mEstimatedCovariance = mEstimatedPositionCovariance;\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n } catch (final AlgebraException e) {\n throw new RadioSourceEstimationException(e);\n } finally {\n mLocked = false;\n }\n }", "public Solver(Board initial) {\n\t\tif (initial == null)\n\t\t\tthrow new NullPointerException();\n\t\torig = new MinPQ<>();\n\t\ttwin = new MinPQ<>();\n\t\torig.insert(new Node(initial, 0, null));\n\t\ttwin.insert(new Node(initial.twin(), 0, null));\n\t\twhile (!solved) {\n\t\t\tgoForSolution(orig);\n\t\t\tgoForSolution(twin);\n\t\t}\n\t}", "public void setInitiallySearchByPrefixValue(boolean initiallySearchByPrefixValue) {\n this.initiallySearchByPrefixValue = initiallySearchByPrefixValue;\n }", "@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}", "public void setInitLoc( Vector2 init ) { initLoc = init; }", "@Override\n public void init(){\n setStartIn18Inches(false);\n super.init();\n //start\n programStage = progStates.allowingUserControl1.ordinal();\n\n //since we are measuring, start at 0,0,0\n setStartingPosition(0,0,Math.toRadians(0));\n }", "public boolean isSolvable() {\n\t\tif (goal == null)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isSolvable() {\n \treturn isSolvable;\n }", "public void setarXmin(double xmin) {\n\t\tthis.xmin = xmin;\n\t}", "@Override\n\tpublic void setLinearity(int[] setting)\n\t{\n\t\t// linear = 0\n\t\tthis.linearityX = setting[0];\n\t\tthis.linearityY = setting[1];\n\t\tthis.linearityZ = setting[2];\n\t\thasRan = true;\n\t}", "ToUseSolverLpFactory getToUseSolverLpFactory();", "boolean hasStartPosition();", "boolean hasStartPosition();", "public void autonomousInit() {\n\t\ttopLeft = new TalonSRX(13);\n\t\tbotLeft = new TalonSRX(12);\n\t\ttopRight = new TalonSRX(10);\n\t\tbotRight = new TalonSRX(11);\n\t\t\n\t\tbotLeft.follow(topLeft);\n\t\tbotRight.follow(topRight);\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public boolean solve(){\n\t\treturn solve(0,0);\n\t}", "public void setInitialBattlePosition(float initialBattlePosition)\n {\n this.initialBattlePosition = initialBattlePosition;\n }", "@java.lang.Override\n public boolean hasEtaToFirstWaypoint() {\n return etaToFirstWaypoint_ != null;\n }", "public boolean isStartingVertexCity() {\r\n\t\t\treturn (getDegrees() == ZERO_DEGREE);\r\n\t\t}", "com.google.ortools.linearsolver.MPModelRequest.SolverType getSolverType();", "boolean isSetWagerMinimum();", "public boolean isInitialSetuped(){\r\n\t\treturn initialSetuped;\r\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition, Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public boolean isSolvable() {\n return finalMove != null;\n }", "boolean isSetControlPosition();", "private void initialize(TransformListener tf, VoxelGrid costmap_ros){\n if (!initialized_){\n tf_ = tf;\n costmap_ros_ = costmap_ros;\n\n rot_stopped_velocity_ = 0.01;\n trans_stopped_velocity_ = 0.01;\n\n current_waypoint_ = 0;\n\n this.params=this.node.getParameterTree();\n\n //base local planner params\n yaw_goal_tolerance_ = params.getDouble(\"yaw_goal_tolerance\", 0.05);\n xy_goal_tolerance_ = params.getDouble(\"xy_goal_tolerance\", 0.10);\n latch_xy_goal_tolerance_ = params.getBoolean(\"latch_xy_goal_tolerance\", false);\n ignore_goal_yaw_ = params.getBoolean(\"ignore_goal_jaw\", false);\n\n\n // ros::NodeHandle nh;//for stand alone??\n\n String IP = null;\n String hostname = null;\n try {\n InetAddress ia = InetAddress.getLocalHost();\n hostname = ia.getHostName();//获取计算机主机名\n IP = ia.getHostAddress();//获取计算机IP\n } catch (UnknownHostException e) {\n e.printStackTrace();\n }\n\n //if (standalone_) {\n // ConnectedNode selfNode;\n String my_id = node.getName().toString();\n if (my_id.equals(\"/\")) {\n my_id = hostname;\n }\n\n my_id = params.getString(\"name\",my_id);\n node.getLog().info(\"My name is: \" + my_id);\n\n\n /*----------init ros agent and set parameters---------*/\n me=new Agent();\n\n //acceleration limits load from params_turtle.yaml and private_nh\n //namespace maybe /CollvoidLocalPlanneri\n me.acc_lim_x_=params.getDouble(\"acc_lim_x\");\n me.acc_lim_y_=params.getDouble(\"acc_lim_y\");\n me.acc_lim_th_=params.getDouble(\"acc_lim_th\");\n\n //holo_robot\n me.holo_robot_=params.getBoolean(\"holo_robot\");\n\n if (!holo_robot_)\n me.wheel_base_=params.getDouble(\"wheel_base\");\n else\n me.wheel_base_ = 0.0;\n\n //min max speeds\n me.max_vel_with_obstacles_=params.getDouble(\"max_vel_with_obstacles\");\n\n me.max_vel_x_=params.getDouble(\"max_vel_x\");\n me.min_vel_x_=params.getDouble(\"min_vel_x\");\n me.max_vel_y_=params.getDouble(\"max_vel_y\");\n me.min_vel_y_=params.getDouble(\"min_vel_y\");\n me.max_vel_th_=params.getDouble(\"max_vel_th\");\n me.min_vel_th_=params.getDouble(\"min_vel_th\");\n me.min_vel_th_inplace_=params.getDouble(\"min_vel_th_inplace\");\n\n //set radius\n me.footprint_radius_=params.getDouble(\"footprint_radius\");\n me.radius=me.footprint_radius_+me.cur_loc_unc_radius_;\n radius_=me.footprint_radius_;\n\n //set frames\n //robot_base_frame_ = costmap_ros_->getBaseFrameID(); need to investigate\n me.base_frame_ = new String(costmap_ros_.getHeader().getFrameId());//may not be right\n me.global_frame_ = new String(params.getString(\"global_frame\", \"/map\"));\n\n //sim period\n GraphName controller_frequency_param_name;\n controller_frequency_param_name=params.search(\"controller_frequency\");\n double sim_period_;\n if(controller_frequency_param_name==null){\n sim_period_ = 0.05;\n }\n else {\n double controller_frequency = 0;\n controller_frequency=params.getDouble(controller_frequency_param_name,20.0);\n\n if(controller_frequency > 0){\n sim_period_ = 1.0 / controller_frequency;\n }else{\n this.node.getLog().warn(\"A controller_frequency less than 0 has been set. Ignoring the parameter, assuming a rate of 20Hz\");\n sim_period_ = 0.05;\n }\n }\n this.node.getLog().info(\"Sim period is set to \"+ String.format(\"%1$.2f\",sim_period_));\n\n me.simPeriod=sim_period_;\n\n //other params agent\n //me.time_horizon_obst_ = getParamDef(private_nh,\"time_horizon_obst\",10.0); currently not used in agent\n me.time_to_holo_ = params.getDouble(\"time_to_holo\", 0.4);\n me.minErrorHolo = params.getDouble(\"min_error_holo\", 0.01);\n me.maxErrorHolo = params.getDouble( \"max_error_holo\", 0.15);\n //delete_observations_ = params.getBoolean(\"delete_observations\", true); currently not used in agent\n //threshold_last_seen_ = params.getDouble(\"threshold_last_seen\",1.0); currently not used in agent\n me.eps_= params.getDouble( \"eps\", 0.1);\n\n boolean orca, convex, clearpath, use_truncation;\n int num_samples, type_vo;\n me.orca=params.getBoolean( \"orca\");\n me.convex=params.getBoolean( \"convex\");\n //params.getBoolean( \"clearpath\", &clearpath); not used\n me.useTruancation=params.getBoolean( \"use_truncation\");\n\n //num_samples = getParamDef(private_nh, \"num_samples\", 400); not used\n me.voType = params.getInteger(\"type_vo\", 0); //HRVO\n\n me.truncTime = params.getDouble(\"trunc_time\",5.0);\n //left_pref_ = getParamDef(private_nh,\"left_pref\",0.1); not used\n\n me.publishPositionsPeriod = 1.0/params.getDouble(\"publish_positions_frequency\",10.0);\n\n me.publishMePeriod = 1.0/params.getDouble(\"publish_me_frequency\",10.0);\n\n //set Footprint\n List<Point> footprint_points=new ArrayList<Point>();\n //TODO:footprint_points = costmap_ros_->getRobotFootprint();\n\n PolygonStamped footprint=messageFactory.newFromType(PolygonStamped._TYPE);\n Point32 p=messageFactory.newFromType(Point32._TYPE);\n List<Point32> points=new ArrayList<Point32>();\n for (int i = 0; i<footprint_points.size(); i++) {\n p.setX((float)footprint_points.get(i).getX());\n p.setY((float) footprint_points.get(i).getY());\n points.add(p);\n }\n Polygon polygon=messageFactory.newFromType(Polygon._TYPE);\n polygon.setPoints(points);\n footprint.setPolygon(polygon);\n\n points.clear();\n if (footprint.getPolygon().getPoints().size()>2)\n me.setFootprint(footprint);\n else {\n double angle = 0;\n double step = 2 * Math.PI / 72;\n while(angle < 2 * Math.PI){\n Point32 pt=messageFactory.newFromType(Point32._TYPE);\n pt.setX((float)(radius_ * Math.cos(angle)));\n pt.setY((float) (radius_ * Math.sin(angle)));\n pt.setZ(0.0f);\n points.add(pt);\n angle += step;\n }\n polygon.setPoints(points);\n footprint.setPolygon(polygon);\n me.setFootprint(footprint);\n }\n\n me.initAsMe(this.node, tf_);\n me.id_=new String(my_id);\n\n\n\n skip_next_ = false;\n Publisher<Path> g_plan_pub_=this.node.newPublisher(\"global_plan\", Path._TYPE);\n Publisher<Path> l_plan_pub_=this.node.newPublisher(\"l_plan_pub_\", Path._TYPE);\n String move_base_name = this.node.getName().toString();\n //ROS_ERROR(\"%s name of node\", thisname.c_str());\n\n Subscriber<GridCells> obstacles_sub_ = this.node.newSubscriber(move_base_name + \"/local_costmap/obstacles\", GridCells._TYPE);\n obstacles_sub_.addMessageListener(new MessageListener<GridCells>() {\n @Override\n public void onNewMessage(GridCells msg) {\n obstaclesCallback(msg);\n }\n });\n\n setup_= false;\n //not implemented yet\n //dsrv_ = new dynamic_reconfigure::Server<collvoid_local_planner::CollvoidConfig>(private_nh);\n //dynamic_reconfigure::Server<collvoid_local_planner::CollvoidConfig>::CallbackType cb = boost::bind(&CollvoidLocalPlanner::reconfigureCB, this, _1, _2);\n //dsrv_->setCallback(cb);\n\n initialized_ = true;\n }\n else {\n node.getLog().info(\"This planner has already been initialized, you can't call it twice, doing nothing\");\n }\n\n }", "private void initialize()\n {\n // Initialize any variables which are time-independent when\n // calculating the ECI coordinates of the satellite.\n m_satInc = orbit.Inclination();\n m_satEcc = orbit.Eccentricity();\n\n m_cosio = Math.cos(m_satInc);\n m_theta2 = m_cosio * m_cosio;\n m_x3thm1 = 3.0 * m_theta2 - 1.0;\n m_eosq = m_satEcc * m_satEcc;\n m_betao2 = 1.0 - m_eosq;\n m_betao = Math.sqrt(m_betao2);\n\n // The \"recovered\" semimajor axis and mean motion.\n m_aodp = orbit.SemiMajor();\n m_xnodp = orbit.MeanMotion();\n\n // For perigee below 156 km, the values of Globals.S and Globals.QOMS2T are altered.\n m_perigee = Globals.Xkmper * (m_aodp * (1.0 - m_satEcc) - Globals.Ae);\n\n m_s4 = Globals.S;\n m_qoms24 = Globals.Qoms2t;\n\n if (m_perigee < 156.0)\n {\n m_s4 = m_perigee - 78.0;\n\n if (m_perigee <= 98.0)\n {\n m_s4 = 20.0;\n }\n\n m_qoms24 = Math.pow((120.0 - m_s4) * Globals.Ae / Globals.Xkmper, 4.0);\n m_s4 = m_s4 / Globals.Xkmper + Globals.Ae;\n }\n\n double pinvsq = 1.0 / (m_aodp * m_aodp * m_betao2 * m_betao2);\n\n m_tsi = 1.0 / (m_aodp - m_s4);\n m_eta = m_aodp * m_satEcc * m_tsi;\n m_etasq = m_eta * m_eta;\n m_eeta = m_satEcc * m_eta;\n\n double psisq = Math.abs(1.0 - m_etasq);\n\n m_coef = m_qoms24 * Math.pow(m_tsi,4.0);\n m_coef1 = m_coef / Math.pow(psisq,3.5);\n\n double c2 = m_coef1 * m_xnodp *\n (m_aodp * (1.0 + 1.5 * m_etasq + m_eeta * (4.0 + m_etasq)) +\n 0.75 * Globals.Ck2 * m_tsi / psisq * m_x3thm1 *\n (8.0 + 3.0 * m_etasq * (8.0 + m_etasq)));\n\n m_c1 = orbit.BStar() * c2;\n m_sinio = Math.sin(m_satInc);\n\n double a3ovk2 = -Globals.Xj3 / Globals.Ck2 * Math.pow(Globals.Ae,3.0);\n\n m_c3 = m_coef * m_tsi * a3ovk2 * m_xnodp * Globals.Ae * m_sinio / m_satEcc;\n m_x1mth2 = 1.0 - m_theta2;\n m_c4 = 2.0 * m_xnodp * m_coef1 * m_aodp * m_betao2 *\n (m_eta * (2.0 + 0.5 * m_etasq) +\n m_satEcc * (0.5 + 2.0 * m_etasq) -\n 2.0 * Globals.Ck2 * m_tsi / (m_aodp * psisq) *\n (-3.0 * m_x3thm1 * (1.0 - 2.0 * m_eeta + m_etasq * (1.5 - 0.5 * m_eeta)) +\n 0.75 * m_x1mth2 *\n (2.0 * m_etasq - m_eeta * (1.0 + m_etasq)) *\n Math.cos(2.0 * orbit.ArgPerigee())));\n\n double theta4 = m_theta2 * m_theta2;\n double temp1 = 3.0 * Globals.Ck2 * pinvsq * m_xnodp;\n double temp2 = temp1 * Globals.Ck2 * pinvsq;\n double temp3 = 1.25 * Globals.Ck4 * pinvsq * pinvsq * m_xnodp;\n\n m_xmdot = m_xnodp + 0.5 * temp1 * m_betao * m_x3thm1 +\n 0.0625 * temp2 * m_betao *\n (13.0 - 78.0 * m_theta2 + 137.0 * theta4);\n\n double x1m5th = 1.0 - 5.0 * m_theta2;\n\n m_omgdot = -0.5 * temp1 * x1m5th + 0.0625 * temp2 *\n (7.0 - 114.0 * m_theta2 + 395.0 * theta4) +\n temp3 * (3.0 - 36.0 * m_theta2 + 49.0 * theta4);\n\n double xhdot1 = -temp1 * m_cosio;\n\n m_xnodot = xhdot1 + (0.5 * temp2 * (4.0 - 19.0 * m_theta2) +\n 2.0 * temp3 * (3.0 - 7.0 * m_theta2)) * m_cosio;\n m_xnodcf = 3.5 * m_betao2 * xhdot1 * m_c1;\n m_t2cof = 1.5 * m_c1;\n m_xlcof = 0.125 * a3ovk2 * m_sinio *\n (3.0 + 5.0 * m_cosio) / (1.0 + m_cosio);\n m_aycof = 0.25 * a3ovk2 * m_sinio;\n m_x7thm1 = 7.0 * m_theta2 - 1.0;\n }", "public boolean isSetHorzScanSpeed() {\n return (this.horzScanSpeed != null ? this.horzScanSpeed.isSetValue() : false);\n }", "protected void initialize() {\n \tRobot.debug.Start(\"AutoSetLiftPosition\", Arrays.asList(\"Sensor_Position\", \"Sensor_Velocity\",\n \t\t\t\"Trajectory_Position\", \"Trajectory_Velocity\", \"Motor_Output\", \"Error\")); \n \ttotalTimer.reset();\n \ttotalTimer.start();\n\n \tRobot.lift.configGains(\n \t\t\tSmartDashboard.getNumber(\"kF_lift_up\", 0.0), \n \t\t\tSmartDashboard.getNumber(\"kP_lift\", 0.0), \n \t\t\tSmartDashboard.getNumber(\"kI_lift\", 0.0), \n \t\t\tSmartDashboard.getNumber(\"kD_lift\", 0.0),\n \t\t\t(int)SmartDashboard.getNumber(\"kiZone_lift\", 0.0),\n \t\t\t(int)SmartDashboard.getNumber(\"kCruise_lift\", 0.0),\n \t\t\t(int)SmartDashboard.getNumber(\"kAccel_lift\", 0.0));\n \t\n \tRobot.lift.setMotionMagicSetpoint(SmartDashboard.getNumber(\"setpoint_lift\", 0.0));\n }", "public boolean isInitier() {\n\t\treturn getStatut().equals(StatusBonPreparation.INITIER);\n\t}", "@Override\n public boolean isTransforming() {\n return super.isTransforming() || desiredWorldPosition != null;\n }" ]
[ "0.63652766", "0.537876", "0.53371114", "0.5335817", "0.5226324", "0.5071665", "0.50592375", "0.504658", "0.5023143", "0.49760997", "0.49746543", "0.4973776", "0.49544144", "0.4926236", "0.4911817", "0.49090505", "0.48502934", "0.4835843", "0.48351002", "0.48319376", "0.48301616", "0.4829874", "0.48173356", "0.48099273", "0.47966412", "0.47876275", "0.47757876", "0.47604424", "0.47534037", "0.4752453", "0.47522765", "0.4746631", "0.47415522", "0.4738823", "0.4738597", "0.47280455", "0.47251475", "0.4719302", "0.4707628", "0.47047544", "0.4700247", "0.4667826", "0.46663713", "0.4658958", "0.465468", "0.4650402", "0.46307206", "0.4618691", "0.4615482", "0.46029878", "0.460176", "0.459216", "0.45870164", "0.45760667", "0.45751286", "0.4570175", "0.45668298", "0.45590806", "0.45587784", "0.4551926", "0.4551407", "0.45463452", "0.45387578", "0.45345286", "0.4528956", "0.45268014", "0.45251566", "0.45243594", "0.45238107", "0.45230582", "0.4514662", "0.45122668", "0.45089376", "0.45062995", "0.45025867", "0.4488851", "0.4482351", "0.44802088", "0.44792676", "0.44751716", "0.4467314", "0.4467314", "0.44652444", "0.44624585", "0.44619223", "0.4461453", "0.44550776", "0.44539058", "0.44496098", "0.44477284", "0.44457376", "0.44448683", "0.44370118", "0.4430627", "0.44266707", "0.4417169", "0.44169953", "0.4415891", "0.44157714", "0.44151303" ]
0.55575126
1
Gets minimum required number of ranging or ranging+rssi readings required to start estimation.
public int getMinRangingReadings() { return getNumberOfDimensions() + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getMinReadings() {\n createInnerEstimatorsIfNeeded();\n\n int result = getNumberOfDimensions();\n if (mRssiInnerEstimator != null &&\n (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled)) {\n try {\n mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled);\n mRssiInnerEstimator.setTransmittedPowerEstimationEnabled(\n mTransmittedPowerEstimationEnabled);\n mRssiInnerEstimator.setPathLossEstimationEnabled(\n mPathLossEstimationEnabled);\n } catch (final LockedException e) {\n throw new IllegalStateException(e);\n }\n\n result += mRssiInnerEstimator.getMinReadings();\n } else {\n result++;\n }\n\n return result;\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "public int getMinTrials() {\n return minTrials;\n }", "@Override\n public int lowestRequest() {\n int c = Long.numberOfTrailingZeros( get() );\n if ( c == 64 ) {\n c = -1;\n }\n return c;\n }", "public float getminP() {\n Reading minPressureReading = null;\n float minPressure = 0;\n if (readings.size() >= 1) {\n minPressure = readings.get(0).pressure;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).pressure < minPressure) {\n minPressure = readings.get(i).pressure;\n }\n }\n } else {\n minPressure = 0;\n }\n return minPressure;\n }", "private int determineCalculatedBufferSize() {\n\n float percentOfASecond = (float) BUFFER_SIZE_IN_MS / 1000.0f;\n int numSamplesRequired = (int) ((float) RATE * percentOfASecond);\n int minBufferSize = determineMinimumBufferSize();\n\n int bufferSize;\n // each sample takes two bytes, need a bigger buffer\n if (ENCODING == AudioFormat.ENCODING_PCM_16BIT) {\n bufferSize = numSamplesRequired * 2;\n } else {\n bufferSize = numSamplesRequired;\n }\n\n if (bufferSize < minBufferSize) {\n Log.w(LOG_TAG, \"Increasing buffer to hold enough samples \"\n + minBufferSize + \" was: \" + bufferSize);\n bufferSize = minBufferSize;\n }\n\n return bufferSize;\n }", "public int minimumPenalty() {\n return dp[dp.length-1];\n }", "int minNoteValue();", "private int selectSolr()\n {\n //Select the endpoint with the least amount of load\n //The start index is randomized to reduce bias to nodes earlier\n //in the list.\n int minIndex = -1;\n int minOutstanding = Integer.MAX_VALUE;\n int startIndex = ThreadLocalRandom.current().nextInt(outstandingRequests.length());\n int loopEnd = outstandingRequests.length() + startIndex;\n for (int ii = startIndex; ii < loopEnd; ii++)\n {\n int index = ii % outstandingRequests.length();\n int outstanding = outstandingRequests.get(index);\n if (outstanding < minOutstanding)\n {\n minIndex = index;\n minOutstanding = outstanding;\n }\n }\n\n return minIndex;\n }", "public int getCountMin() {\n\t\treturn countMin;\n\t}", "public int getMinimumPlayers() {\n return getOption(ArenaOption.MINIMUM_PLAYERS);\n }", "public int getMinRange() {\r\n return fMinRange;\r\n }", "public int getMinimum() {\n \tcheckWidget();\n \treturn minimum;\n }", "int getMinAvailable(ClusterSpec clusterSpec);", "protected Optional<Counter> earliestAcceptableCounter() {\n return servers.stream().filter(x -> x.canTakeServeEvent())\n .min(Comparator.comparing(Counter::getNumInQ));\n }", "public abstract int getMinimumValue();", "public int findLeast() {\r\n\tint cor = 0;\r\n\tint x = 9;\r\n\tfor (int r = 0; r < 9; r++) {\r\n\t for (int c = 0; c < 9; c++) {\r\n\t\tif (!board[r][c].getIsDef()) {\r\n\t\t if (board[r][c].getNumPossible() == 2) {\r\n\t\t\treturn r*10 + c;\r\n\t\t }\r\n\t\t if (board[r][c].getNumPossible() < x) {\r\n\t\t\tcor = r*10 + c;\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n\treturn cor;\r\n }", "public int getMinimumPoints() {\n return mWeakMinimumSizeAllowed ? WEAK_MINIMUM_SIZE : MINIMUM_SIZE;\n }", "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "protected Optional<Counter> earliestCounter() {\n return servers.stream().filter(x -> x.isAvailable())\n .min(Comparator.comparing(Counter::getNumInQ));\n }", "private int readNumberOfSticks () {\n int number = -1;\n while (number <= 0) {\n number = readIntWithPrompt(\n \"Enter number of sticks \" +\n \"(a positive integer): \");\n }\n return number;\n }", "public int minReadLength() {\n return mMinReadLength;\n }", "public static int minimumNumberOfTimeSlots()\n {\n return 0;\n }", "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "int askForTempMin();", "public int getMinConnections() {\n return minConnections;\n }", "public float getMinAvailability()\n\t{\n\t\treturn piecePicker.getMinAvailability();\n\t}", "public int getNumberAvailableSeats(){\n int out = Integer.MAX_VALUE;\n for(int i=0; i<flights.size();i++){\n for(int j=0; j<availabilities.size(); j++) {\n if (flights.get(i).getFlightNumber().equals(availabilities.get(j).getFlightNumber())) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg1() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg1();\n }\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() != null) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg2();\n }\n }\n break;\n }\n }\n }\n return out;\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "protected ValuePosition getMinimum() {\n\t\t// Calcule la position et la durée d'exécution de la requête la plus courte dans le tableau des requêtes\n\t\tValuePosition minimum = new ValuePosition();\n\t\tminimum.position = 0;\n\t\tfor(int pos=0; pos<requests.length; pos++) {\n\t\t\tRequest request = requests[pos];\n\t\t\tif(request == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minimum.value == null || request.getElapsedTime() < minimum.value) {\n\t\t\t\tminimum.position = pos;\n\t\t\t\tminimum.value = request.getElapsedTime();\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "public static int minimumNumberOfLineItems() {\n return 0;\n }", "public int getWinnings() {\n\t\tBufferedReader reader;\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(\"data/winnings\"));\n\t\t\tString line = reader.readLine();\n\t\t\t_winnings = Integer.parseInt(line.trim());\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\treturn _winnings;\n\t}", "public int getMin() {\n int length = minList.size();\n int returnValue = 0;\n if (length > 0) {\n returnValue = minList.get(length - 1);\n }\n return returnValue;\n \n }", "public int getMinimum() {\r\n return min;\r\n }", "int getMinimalIterationCount();", "public Integer getMinGoals() {\n return this.minGoals;\n }", "private int extractMinCapacityFromPath(List<Edge> path) {\n\t\tint result = Integer.MAX_VALUE;\n\t\t\n\t\tfor (Edge e : path) {\n\t\t\tif (e.getCapacity() < result) {\n\t\t\t\tresult = e.getCapacity();\n\t\t\t}\n\t\t}\n\t\tflowValue+=result;\n\t\treturn result;\n\t}", "public int findMin() {\r\n\t\treturn this.min.value;\r\n\t}", "public int getMinDistance(){\n return totalDistance;\n }", "public int getMinPSMs() {\n\t\treturn minPSMs;\n\t}", "private int getNumberOfRounds(int changingAxiomsCount) {\n\t\treturn Math.min(maxRounds_,\n\t\t\t\t2 * (31 - Integer.numberOfLeadingZeros(changingAxiomsCount)));\n\t}", "public int minimumWaitingTime(int[] queries) {\n\t\tArrays.sort(queries);\n\t\t\n\t\tint answer = 0;\n\t\tfor(int i=0; i<queries.length-1; i++){\n\t\t\tint sum = queries[i]*(queries.length-1-i);\n\t\t\tanswer += sum;\n\t\t}\n return answer;\n }", "public static int offset_min() {\n return (56 / 8);\n }", "public float getNitrateMin() {\n return nitrateMin;\n }", "private int getPRFurthestUse() {\n int max = -1;\n int maxPR = -1;\n for (int i = 0; i < numPhysRegs - 1; i++) {\n if (PRNU[i] > max) {\n max = PRNU[i];\n maxPR = i;\n }\n }\n return maxPR; // no free physical register\n }", "public double calcAverageWaitingTime()\n\t{\n\t\tint min,y;\n\t\tint sum=0;\n\t\tint x=0,j;\n\t\tfor( int i=0;i<num;i++)\n\t\t{\n\t\t\ttest[i]=Priority[i];\n\n\t\t}\n\t\tint max=test[0];\n\t\tfor (int i=0;i<num;i++)\n\t\t{\n\t\t\tif(test[i]>max)\n\t\t\t{\n\t\t\t\tmax=test[i];\n\t\t\t}\n\n\t\t}\n\t\tmax=max+1;\n\t\tfor (int i=0;i<num;i++)\n\t\t{ \n\t\t\tmin = max;\n\t\t\tfor(j=0;j<num;j++)\n\t\t\t{\n\t\t\t\tif(test[j]!=-1&&test[j]<min)\n\t\t\t\t{\n\t\t\t\t\tmin = test[j];\n\t\t\t\t\tx = j;\n\t\t\t\t}\n\t\t\t\telse if(test[j]!=-1&&test[j]==min)\n\t\t\t\t{\n\t\t\t\t\tif(burstTime[j]<burstTime[x])\n\t\t\t\t\t{\n\t\t\t\t\t\tmin = test[j];\n\t\t\t\t\t\tx = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpid1[i]=x;\n\t\t\ttest[x]=-1;\n\t\t}\n\t\treturn printWaitingTime();\n\t}", "public abstract int getMinimumArguments();", "double getMinActiveAltitude();", "public static int minimumNumberOfWhiteWallsInStock()\n {\n return 0;\n }", "public float getminWind() {\n Reading minWindReading = null;\n float minWind = 0;\n if (readings.size() >= 1) {\n minWind = readings.get(0).windSpeed;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).windSpeed < minWind) {\n minWind = readings.get(i).windSpeed;\n }\n }\n } else {\n minWind = 0;\n }\n return minWind;\n }", "public int getMinIntValue();", "public int getLowerBound ()\n\t{\n\t\treturn getRelationshipImpl().getLowerBound();\n\t}", "public int minkeys() {\n\t\tint min = 0;\n\t\tif (parentref == null) {\n\t\t\treturn 1;\n\t\t}\n\t\tmin = (int)Math.ceil((degree) / 2.0) - 1;\n\t\t//min = (int)Math.ceil(degree / 2.0);\n\t\treturn Math.max(min, 0);\n\t}", "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "public int getSmallestSpotNum() {\n if (getNumavailable() >= 1) {\n for (int i = 0; i < spotArr.size(); i++) {\n if (spotArr.get(i).isAvailable()) {\n return i;\n }\n }\n }\n return -1;\n }", "public int getMinRating() {\n return minRating;\n }", "protected final int getMin() {\n\treturn(this.min);\n }", "public int getMinimumNumberOfCharacters() {\n\t\treturn this.minimumNumberOfCharacters;\n\t}", "public double minWait()\r\n {\r\n //find the minimum value in an arraylist\r\n double minWait = this.servedCustomers.get(0).getwaitTime();\r\n for(int i = 1; i < this.servedCustomers.size(); i++){\r\n if(this.servedCustomers.get(i).getwaitTime()<minWait){\r\n minWait = this.servedCustomers.get(i).getwaitTime();\r\n }\r\n }\r\n return minWait;\r\n }", "public static int minimumNumberOfPayments() {\n return 0;\n }", "public abstract int getMinInstances();", "@Override\n public int getRemainingMines() {\n int numPlacedFlags = cells.stream()\n .mapToInt(b -> (int) b.stream().filter(c -> c.getFlagState() == 1).count()).sum();\n return numMines - numPlacedFlags;\n }", "public int getMin()\n\t{\n\t\treturn min;\n\t}", "private static int minimum() {\n\t\tint popSize = 0;\n\t\tChromosome thisChromo = null;\n\t\tChromosome thatChromo = null;\n\t\tint winner = 0;\n\t\tboolean foundNewWinner = false;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\tfoundNewWinner = false;\n\t\t\tpopSize = population.size();\n\t\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\t\tif (i != winner) { // Avoid self-comparison.\n\t\t\t\t\tthisChromo = population.get(i);\n\t\t\t\t\tthatChromo = population.get(winner);\n\t\t\t\t\tif (thisChromo.conflicts() < thatChromo.conflicts()) {\n\t\t\t\t\t\twinner = i;\n\t\t\t\t\t\tfoundNewWinner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (foundNewWinner == false) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\t\treturn winner;\n\t}", "public static int findChannelWeight()\n {\n for (int i = 0; i < DCService.wifiScanList.size(); i++) {\n\n allFrequency.add(convertFrequencyToChannel(DCService.wifiScanList.get(i).frequency));\n Log.v(\"Channel + AP: \", String.valueOf(convertFrequencyToChannel(DCService.wifiScanList.get(i).frequency)) + \"->\" + String.valueOf(DCService.wifiScanList.get(i).SSID));\n }\n Log.v(\"All frequency:\",allFrequency.toString());\n\n double channelArray[] = new double[13];\n\n // Fill all the elements with 0\n Arrays.fill(channelArray,0);\n\n double factor = 0.20;\n\n for (int band:allFrequency)\n {\n for (int i=band-5 ;i<= band+6 ;i++)\n {\n if (i<1 || i>13)\n continue;\n channelArray[i-1] = (channelArray[i-1] + (6-Math.abs(i-band))*factor);\n }\n }\n Log.v(\"Channel Array:\",Arrays.toString(channelArray));\n\n // Minimum value of channel array\n int bestFoundChannel;\n\n // Find minimum value from the channel array\n double small = channelArray[0];\n int index = 0;\n for (int i = 0; i < channelArray.length; i++) {\n if (channelArray[i] < small) {\n small = channelArray[i];\n index = i;\n }\n }\n\n // Find in channel array the elements with minimum channel value\n ArrayList<Integer> bestFoundAvailableChannels = new ArrayList();\n for(int items = 0;items < channelArray.length;items++)\n {\n if(channelArray[items] == small)\n {\n bestFoundAvailableChannels.add(items);\n }\n }\n if(channelArray[6] < channelArray[0] && channelArray[6] <channelArray[11] )\n return 6;\n if(channelArray[11] < channelArray[0] && channelArray[11] < channelArray[6])\n return 11;\n //Log.v(\"Minimum Channel Value,Best Found Channel:\", String.valueOf(small) + \",\" + String.valueOf(bestFoundChannel));\n // Find a random available channel from best found available channels\n /* Random rand = new Random();\n Integer randGeneratedBestFoundChannel = (Integer) bestFoundAvailableChannels.get(rand.nextInt(bestFoundAvailableChannels.size())) + 1;\n Log.v(\"Generated Random Available Channel:\" ,randGeneratedBestFoundChannel.toString());\n *///return (randGeneratedBestFoundChannel + 1);\n\n return 1;\n\n }", "public Integer getMinItems() {\n\t\treturn minItems;\n\t}", "public int getRoundsToWait() {\n\t\treturn this.roundsToWait;\n\t}", "@Override\r\n public Integer minLowerBound() {\r\n return this.getImpl().minLowerBound();\r\n }", "public int getStartRange() {\r\n\t\treturn lookupValue(Params.START_RANGE);\r\n\t}", "public int getMinResponseRate() {\n return _minResponseRate;\n }", "public long getMinimum() {\n\t\treturn this._min;\n\t}", "public int minLen() {\n if (compositions == null) {\n return Math.min(maxLen(getAllele(0)), maxLen(getAllele(1)));\n } else {\n if (compositions.isEmpty())\n return 0;\n int minLen = compositions.get(0).minLen();\n for (Variant c : compositions) {\n minLen = Math.min(minLen, c.minLen());\n }\n return minLen;\n }\n }", "@Override\n public int getMinMeasurementNumber() {\n return super.getMinMeasurementNumber();\n }", "private void getStrongestRSSI() {\n\t\tint index1, index2;\n\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\tfor(index2=0; index2<discoveredBeaconList.size()-1; index2++){\n\t\t\t\tBeacon bcn1 = discoveredBeaconList.get(index2);\n\t\t\t\tBeacon bcn2 = discoveredBeaconList.get(index2+1);\n\t\t\t\tSystem.out.println(bcn1.getId3().toString());\n\t\t\t\tif(bcn1.getRssi() < bcn2.getRssi())\n\t\t\t\t{\n\t\t\t\t\tdiscoveredBeaconList.set(index2, bcn2);\n\t\t\t\t\tdiscoveredBeaconList.set(index2+1, bcn1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(discoveredBeaconList.size()>=3){\n\t\t\tfor(index1=0; index1<3; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else if(discoveredBeaconList.size()==2){\n\t\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else{\n\t\t\tToast.makeText(getApplicationContext(), \"No beacon or just one beacon was discovered.\", Toast.LENGTH_LONG).show();\n\t\t}\t\n\t}", "public int getRingCount() {\r\n\t\treturn mRingCount;\r\n\t}", "public int getRetryWaitingCount() {\r\n return root.getRetryWaitingCount();\r\n }", "public int getNumber(Resource res, Location loc){\n\t\tif(res.equals(Resource.BRICKS)){\n\t\t\tdouble[] values = new double[3];\n\t\t\tdouble d1 = loc.distance(locBR2);\n\t\t\tdouble d2 = loc.distance(firstLocBR4);\n\t\t\tdouble d3 = loc.distance(secondLocBR4);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 3; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tif(minValue == d2 || minValue == d3){\n\t\t\t\treturn 4;\n\t\t\t}\n\n\t\t}\n\t\tif(res.equals(Resource.ORE)){\n\t\t\tdouble[] values = new double[3];\n\t\t\tdouble d1 = loc.distance(locOR3);\n\t\t\tdouble d2 = loc.distance(locOR6);\n\t\t\tdouble d3 = loc.distance(locOR8);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 3; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\tif(minValue == d2){\n\t\t\t\treturn 6;\n\t\t\t}\n\t\t\tif(minValue == d3){\n\t\t\t\treturn 8;\n\t\t\t}\n\t\t}\n\n\t\tif( res.equals(Resource.SHEEP) ){\n\t\t\tdouble[] values = new double[4];\n\t\t\tdouble d1 = loc.distance(locSH10);\n\t\t\tdouble d2 = loc.distance(locSH12);\n\t\t\tdouble d3 = loc.distance(locSH3);\n\t\t\tdouble d4 = loc.distance(locSH5);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tvalues[3] = d4;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 4; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 10;\n\t\t\t}\n\t\t\tif(minValue == d2){\n\t\t\t\treturn 12;\n\t\t\t}\n\t\t\tif(minValue == d3){\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\tif(minValue == d4){\n\t\t\t\treturn 5;\n\t\t\t}\n\t\t}\n\t\tif( res.equals(Resource.WOOD) ){\n\t\t\tdouble[] values = new double[4];\n\t\t\tdouble d1 = loc.distance(locWO10);\n\t\t\tdouble d2 = loc.distance(locWO8);\n\t\t\tdouble d3 = loc.distance(locWO9);\n\t\t\tdouble d4 = loc.distance(locWO5);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tvalues[3] = d4;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 4; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 10;\n\t\t\t}\n\t\t\tif(minValue == d2){\n\t\t\t\treturn 8;\n\t\t\t}\n\t\t\tif(minValue == d3){\n\t\t\t\treturn 9;\n\t\t\t}\n\t\t\tif(minValue == d4){\n\t\t\t\treturn 5;\n\t\t\t}\n\t\t}\n\t\tif( res.equals(Resource.WHEAT)){\n\t\t\tdouble[] values = new double[4];\n\t\t\tdouble d1 = loc.distance(locWH6);\n\t\t\tdouble d2 = loc.distance(locWH9);\n\t\t\tdouble d3 = loc.distance(firstLocWH11);\n\t\t\tdouble d4 = loc.distance(secondLocWH11);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tvalues[3] = d4;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 4; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 6;\n\t\t\t}\n\t\t\tif(minValue == d2){\n\t\t\t\treturn 9;\n\t\t\t}\n\t\t\tif(minValue == d3){\n\t\t\t\treturn 11;\n\t\t\t}\n\t\t\tif(minValue == d4){\n\t\t\t\treturn 11;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public int getLowerBound() {\r\n return lowerBound;\r\n }", "public double getMinRange() {\n return minRange;\n }", "private int getPreferredNumberOfQuestions() {\n\t\tSharedPreferences prefs = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tint num = Integer.parseInt(prefs.getString(\n\t\t\t\tgetString(R.string.number_pref), \"6\"));\n\t\treturn num;\n\t}", "public int getFirstStuck ()\r\n {\r\n int stuck = 0;\r\n\r\n for (GlyphSection section : glyph.getMembers()) {\r\n Run sectionRun = section.getFirstRun();\r\n\r\n for (GlyphSection sct : section.getSources()) {\r\n if (!sct.isGlyphMember() || (sct.getGlyph() != glyph)) {\r\n stuck += sectionRun.getCommonLength(sct.getLastRun());\r\n }\r\n }\r\n }\r\n\r\n return stuck;\r\n }", "public static int minimumNumberOfBlackWallsInStock()\n {\n return 0;\n }", "public double min() {\n/* 305 */ Preconditions.checkState((this.count != 0L));\n/* 306 */ return this.min;\n/* */ }", "private int getInitialChangeSize(int changingAxiomsCount) {\n\t\tint result = changingAxiomsCount >> maxRounds_;\n\t\tif (result == 0)\n\t\t\tresult = 1;\n\t\treturn result;\n\t}", "public float getminTemp() {\n Reading minTempReading = null;\n float minTemp = 0;\n if (readings.size() >= 1) {\n minTemp = readings.get(0).temperature;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).temperature < minTemp) {\n minTemp = readings.get(i).temperature;\n }\n }\n } else {\n minTemp = 0;\n }\n return minTemp;\n }", "public float getMinimumSpan(int axis) {\n return getPreferredSpan(axis);\n }", "public int getMinimumValue() {\n return -s.getMaximumValue();\n }", "public static int size_min() {\n return (8 / 8);\n }", "public synchronized int getCurrentRssi() {\n initNetwork();\n return currentSignalStrength;\n }", "org.hl7.fhir.Integer getStart();", "public abstract Integer gethourNeed();", "public int getAvailableCount();", "final int getEstimatedSurplusTaskCount() {\n // The halving approximates weighting idle vs non-idle threads\n return (sp - base) - (pool.getIdleThreadCount() >>> 1);\n }", "public int getMin() {\n\t\treturn min;\n\t}", "public Integer getMin() {\n\t\tif (this.Minimum==null)\n\t\t{\n\t\t\tcalcMinMax();\n\t\t}\n\t\treturn this.Minimum;\n\t}", "public int getNumberOfRadialBuffers() {\n\t\treturn ((Integer) radialBufferSpinner.getValue()).intValue();\n\t}", "public static float getReadProgress() {\n\t\treturn mrpl.getPercentComplete();\n\t}", "static void minimumBribes(int[] q) {\n\n\t\ttry {\n\t\t\tSystem.out.println(amountOfPeopleBribed(q));\n\t\t} catch (TooManyBribedPeople e) {\n\t\t\tSystem.out.println(\"Too chaotic\");\n\t\t}\n\t}", "public int findMin() {\n\t\tint min = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ((int)data.get(count) < min)\n\t\t\t\tmin = (int)data.get(count);\n\t\treturn min;\n\t}" ]
[ "0.73537403", "0.72593814", "0.6272812", "0.5897874", "0.5780457", "0.57521266", "0.5742518", "0.5710175", "0.5691527", "0.5654247", "0.564989", "0.5643292", "0.56370944", "0.56285787", "0.5619515", "0.558959", "0.5587953", "0.55609775", "0.5532947", "0.55216265", "0.5512455", "0.548607", "0.5473608", "0.54669124", "0.5458353", "0.54449576", "0.5435088", "0.5416594", "0.540479", "0.5392191", "0.53778154", "0.5368577", "0.53507817", "0.5338232", "0.53295106", "0.5316497", "0.5304888", "0.53016704", "0.5297018", "0.52932024", "0.5287979", "0.52840227", "0.5280676", "0.52715653", "0.5269835", "0.52688617", "0.5267608", "0.52669746", "0.5265699", "0.5263898", "0.52606595", "0.5249139", "0.52419746", "0.524181", "0.5239057", "0.52303696", "0.522652", "0.5217181", "0.5208043", "0.52059454", "0.5203016", "0.519863", "0.51966786", "0.51957893", "0.5192505", "0.5190562", "0.5189878", "0.5188559", "0.51780754", "0.5172715", "0.51676095", "0.516098", "0.5157258", "0.5153641", "0.5150403", "0.51455384", "0.5138414", "0.51364255", "0.5125086", "0.5124278", "0.512275", "0.51213485", "0.51192147", "0.51160395", "0.5115251", "0.51145244", "0.51141465", "0.51136565", "0.5110879", "0.51104015", "0.5109448", "0.5106856", "0.51056933", "0.51056284", "0.51052743", "0.5103412", "0.51030266", "0.5101295", "0.50971645", "0.5094737" ]
0.74117726
0
Gets minimum required number of rssi or ranging+rssi readings required to start estimation.
public int getMinRssiReadings() { return getMinReadings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getMinReadings() {\n createInnerEstimatorsIfNeeded();\n\n int result = getNumberOfDimensions();\n if (mRssiInnerEstimator != null &&\n (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled)) {\n try {\n mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled);\n mRssiInnerEstimator.setTransmittedPowerEstimationEnabled(\n mTransmittedPowerEstimationEnabled);\n mRssiInnerEstimator.setPathLossEstimationEnabled(\n mPathLossEstimationEnabled);\n } catch (final LockedException e) {\n throw new IllegalStateException(e);\n }\n\n result += mRssiInnerEstimator.getMinReadings();\n } else {\n result++;\n }\n\n return result;\n }", "public int getMinRangingReadings() {\n return getNumberOfDimensions() + 1;\n }", "public synchronized int getCurrentRssi() {\n initNetwork();\n return currentSignalStrength;\n }", "public int getRssi() {\r\n return rssi;\r\n }", "@Override\n public int lowestRequest() {\n int c = Long.numberOfTrailingZeros( get() );\n if ( c == 64 ) {\n c = -1;\n }\n return c;\n }", "public int getRssi() {\n return rssi;\n }", "private void getStrongestRSSI() {\n\t\tint index1, index2;\n\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\tfor(index2=0; index2<discoveredBeaconList.size()-1; index2++){\n\t\t\t\tBeacon bcn1 = discoveredBeaconList.get(index2);\n\t\t\t\tBeacon bcn2 = discoveredBeaconList.get(index2+1);\n\t\t\t\tSystem.out.println(bcn1.getId3().toString());\n\t\t\t\tif(bcn1.getRssi() < bcn2.getRssi())\n\t\t\t\t{\n\t\t\t\t\tdiscoveredBeaconList.set(index2, bcn2);\n\t\t\t\t\tdiscoveredBeaconList.set(index2+1, bcn1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(discoveredBeaconList.size()>=3){\n\t\t\tfor(index1=0; index1<3; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else if(discoveredBeaconList.size()==2){\n\t\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else{\n\t\t\tToast.makeText(getApplicationContext(), \"No beacon or just one beacon was discovered.\", Toast.LENGTH_LONG).show();\n\t\t}\t\n\t}", "public static int findChannelWeight()\n {\n for (int i = 0; i < DCService.wifiScanList.size(); i++) {\n\n allFrequency.add(convertFrequencyToChannel(DCService.wifiScanList.get(i).frequency));\n Log.v(\"Channel + AP: \", String.valueOf(convertFrequencyToChannel(DCService.wifiScanList.get(i).frequency)) + \"->\" + String.valueOf(DCService.wifiScanList.get(i).SSID));\n }\n Log.v(\"All frequency:\",allFrequency.toString());\n\n double channelArray[] = new double[13];\n\n // Fill all the elements with 0\n Arrays.fill(channelArray,0);\n\n double factor = 0.20;\n\n for (int band:allFrequency)\n {\n for (int i=band-5 ;i<= band+6 ;i++)\n {\n if (i<1 || i>13)\n continue;\n channelArray[i-1] = (channelArray[i-1] + (6-Math.abs(i-band))*factor);\n }\n }\n Log.v(\"Channel Array:\",Arrays.toString(channelArray));\n\n // Minimum value of channel array\n int bestFoundChannel;\n\n // Find minimum value from the channel array\n double small = channelArray[0];\n int index = 0;\n for (int i = 0; i < channelArray.length; i++) {\n if (channelArray[i] < small) {\n small = channelArray[i];\n index = i;\n }\n }\n\n // Find in channel array the elements with minimum channel value\n ArrayList<Integer> bestFoundAvailableChannels = new ArrayList();\n for(int items = 0;items < channelArray.length;items++)\n {\n if(channelArray[items] == small)\n {\n bestFoundAvailableChannels.add(items);\n }\n }\n if(channelArray[6] < channelArray[0] && channelArray[6] <channelArray[11] )\n return 6;\n if(channelArray[11] < channelArray[0] && channelArray[11] < channelArray[6])\n return 11;\n //Log.v(\"Minimum Channel Value,Best Found Channel:\", String.valueOf(small) + \",\" + String.valueOf(bestFoundChannel));\n // Find a random available channel from best found available channels\n /* Random rand = new Random();\n Integer randGeneratedBestFoundChannel = (Integer) bestFoundAvailableChannels.get(rand.nextInt(bestFoundAvailableChannels.size())) + 1;\n Log.v(\"Generated Random Available Channel:\" ,randGeneratedBestFoundChannel.toString());\n *///return (randGeneratedBestFoundChannel + 1);\n\n return 1;\n\n }", "public int getMinTrials() {\n return minTrials;\n }", "public int getMinimumPoints() {\n return mWeakMinimumSizeAllowed ? WEAK_MINIMUM_SIZE : MINIMUM_SIZE;\n }", "public int minimumPenalty() {\n return dp[dp.length-1];\n }", "private int determineCalculatedBufferSize() {\n\n float percentOfASecond = (float) BUFFER_SIZE_IN_MS / 1000.0f;\n int numSamplesRequired = (int) ((float) RATE * percentOfASecond);\n int minBufferSize = determineMinimumBufferSize();\n\n int bufferSize;\n // each sample takes two bytes, need a bigger buffer\n if (ENCODING == AudioFormat.ENCODING_PCM_16BIT) {\n bufferSize = numSamplesRequired * 2;\n } else {\n bufferSize = numSamplesRequired;\n }\n\n if (bufferSize < minBufferSize) {\n Log.w(LOG_TAG, \"Increasing buffer to hold enough samples \"\n + minBufferSize + \" was: \" + bufferSize);\n bufferSize = minBufferSize;\n }\n\n return bufferSize;\n }", "@MavlinkFieldInfo(\n position = 14,\n unitSize = 1,\n description = \"Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown.\"\n )\n public final int rssi() {\n return this.rssi;\n }", "public int getMinConnections() {\n return minConnections;\n }", "public abstract int getMinimumValue();", "protected Optional<Counter> earliestCounter() {\n return servers.stream().filter(x -> x.isAvailable())\n .min(Comparator.comparing(Counter::getNumInQ));\n }", "int minNoteValue();", "public float getminP() {\n Reading minPressureReading = null;\n float minPressure = 0;\n if (readings.size() >= 1) {\n minPressure = readings.get(0).pressure;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).pressure < minPressure) {\n minPressure = readings.get(i).pressure;\n }\n }\n } else {\n minPressure = 0;\n }\n return minPressure;\n }", "private int selectSolr()\n {\n //Select the endpoint with the least amount of load\n //The start index is randomized to reduce bias to nodes earlier\n //in the list.\n int minIndex = -1;\n int minOutstanding = Integer.MAX_VALUE;\n int startIndex = ThreadLocalRandom.current().nextInt(outstandingRequests.length());\n int loopEnd = outstandingRequests.length() + startIndex;\n for (int ii = startIndex; ii < loopEnd; ii++)\n {\n int index = ii % outstandingRequests.length();\n int outstanding = outstandingRequests.get(index);\n if (outstanding < minOutstanding)\n {\n minIndex = index;\n minOutstanding = outstanding;\n }\n }\n\n return minIndex;\n }", "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "public int getCountMin() {\n\t\treturn countMin;\n\t}", "protected Optional<Counter> earliestAcceptableCounter() {\n return servers.stream().filter(x -> x.canTakeServeEvent())\n .min(Comparator.comparing(Counter::getNumInQ));\n }", "public int findLeast() {\r\n\tint cor = 0;\r\n\tint x = 9;\r\n\tfor (int r = 0; r < 9; r++) {\r\n\t for (int c = 0; c < 9; c++) {\r\n\t\tif (!board[r][c].getIsDef()) {\r\n\t\t if (board[r][c].getNumPossible() == 2) {\r\n\t\t\treturn r*10 + c;\r\n\t\t }\r\n\t\t if (board[r][c].getNumPossible() < x) {\r\n\t\t\tcor = r*10 + c;\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n\treturn cor;\r\n }", "private int extractMinCapacityFromPath(List<Edge> path) {\n\t\tint result = Integer.MAX_VALUE;\n\t\t\n\t\tfor (Edge e : path) {\n\t\t\tif (e.getCapacity() < result) {\n\t\t\t\tresult = e.getCapacity();\n\t\t\t}\n\t\t}\n\t\tflowValue+=result;\n\t\treturn result;\n\t}", "int getMinAvailable(ClusterSpec clusterSpec);", "public float getMinAvailability()\n\t{\n\t\treturn piecePicker.getMinAvailability();\n\t}", "public int getMinimum() {\n \tcheckWidget();\n \treturn minimum;\n }", "public int getMinimumPlayers() {\n return getOption(ArenaOption.MINIMUM_PLAYERS);\n }", "public int getMinDistance(){\n return totalDistance;\n }", "public int minReadLength() {\n return mMinReadLength;\n }", "public int getMinDistanceArray(){\n int result = 0;\n double max_double = Double.MAX_VALUE;\n \n for (int i = 0; i < MinDistance.size(); i++){\n if (!MinDistanceStatus.get(i)){ //only checks for non final weights\n if (MinDistance.get(i) < max_double ){\n max_double = MinDistance.get(i);\n result = i;\n }\n }\n }\n \n return result;\n }", "public double getMinimumDistance() {\n double l = Double.POSITIVE_INFINITY;\n int stop = getDistanceEnd();\n\n calculateDistances();\n\n for (int i = 0; i < stop; i++) {\n l = Math.min(l, distances[i]);\n }\n\n return l;\n }", "double getMinActiveAltitude();", "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "public int getNumberAvailableSeats(){\n int out = Integer.MAX_VALUE;\n for(int i=0; i<flights.size();i++){\n for(int j=0; j<availabilities.size(); j++) {\n if (flights.get(i).getFlightNumber().equals(availabilities.get(j).getFlightNumber())) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg1() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg1();\n }\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() != null) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg2();\n }\n }\n break;\n }\n }\n }\n return out;\n }", "public int getMinResponseRate() {\n return _minResponseRate;\n }", "public float getNitrateMin() {\n return nitrateMin;\n }", "public int getAvailableCount();", "public int getMin() {\n int length = minList.size();\n int returnValue = 0;\n if (length > 0) {\n returnValue = minList.get(length - 1);\n }\n return returnValue;\n \n }", "int askForTempMin();", "public static int calculateSignalLevel(int rssi, int numLevels) {\n if (rssi <= MIN_RSSI) {\n return 0;\n } else if (rssi >= MAX_RSSI) {\n return numLevels - 1;\n } else {\n float inputRange = (MAX_RSSI - MIN_RSSI);\n float outputRange = (numLevels - 1);\n return (int) ((float) (rssi - MIN_RSSI) * outputRange / inputRange);\n }\n }", "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "public int getMinimum() {\r\n return min;\r\n }", "public int findMin() {\r\n\t\treturn this.min.value;\r\n\t}", "public int getMinRange() {\r\n return fMinRange;\r\n }", "private int getPRFurthestUse() {\n int max = -1;\n int maxPR = -1;\n for (int i = 0; i < numPhysRegs - 1; i++) {\n if (PRNU[i] > max) {\n max = PRNU[i];\n maxPR = i;\n }\n }\n return maxPR; // no free physical register\n }", "public int getMinRating() {\n return minRating;\n }", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public int minkeys() {\n\t\tint min = 0;\n\t\tif (parentref == null) {\n\t\t\treturn 1;\n\t\t}\n\t\tmin = (int)Math.ceil((degree) / 2.0) - 1;\n\t\t//min = (int)Math.ceil(degree / 2.0);\n\t\treturn Math.max(min, 0);\n\t}", "public static int offset_min() {\n return (56 / 8);\n }", "public int getNumberOfRadialBuffers() {\n\t\treturn ((Integer) radialBufferSpinner.getValue()).intValue();\n\t}", "public int getAdc_min ()\n {\n return adc_min_;\n }", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "public int getSmallestSpotNum() {\n if (getNumavailable() >= 1) {\n for (int i = 0; i < spotArr.size(); i++) {\n if (spotArr.get(i).isAvailable()) {\n return i;\n }\n }\n }\n return -1;\n }", "public double getActualWattRequest(IElectricityReceiver receiver)\r\n\t{\r\n\t\tdouble wattsRequest = receiver.wattRequest();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < electricityTransferQueue.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif (electricityTransferQueue.get(i) != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (electricityTransferQueue.get(i).isValid())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (electricityTransferQueue.get(i).receiver == receiver)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twattsRequest -= electricityTransferQueue.get(i).amps * electricityTransferQueue.get(i).voltage;\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\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tFMLLog.severe(\"Failed to get watt request!\");\r\n\t\t}\r\n\r\n\t\treturn Math.max(Math.min(wattsRequest, receiver.wattRequest()), 0);\r\n\t}", "public long getMinFree() {\n return params.getMinimumFree() * 1024 * 1024;\n }", "protected ValuePosition getMinimum() {\n\t\t// Calcule la position et la durée d'exécution de la requête la plus courte dans le tableau des requêtes\n\t\tValuePosition minimum = new ValuePosition();\n\t\tminimum.position = 0;\n\t\tfor(int pos=0; pos<requests.length; pos++) {\n\t\t\tRequest request = requests[pos];\n\t\t\tif(request == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minimum.value == null || request.getElapsedTime() < minimum.value) {\n\t\t\t\tminimum.position = pos;\n\t\t\t\tminimum.value = request.getElapsedTime();\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "public abstract int getMinInstances();", "public static int minimumNumberOfPayments() {\n return 0;\n }", "public int getMinIntValue();", "private double getMinInitProb(){\r\n\t\treturn probThreshold;\r\n\t}", "public abstract int getMinimumArguments();", "int getDataScansCount();", "private int availableFirst() {\n return data.isEmpty() ? 0 : data.getFirst().remaining();\n }", "public int minimum_rating() {\n\t\tint minimumRating = 0;\n\t\tfor(int i = 0; i<identifiedArray.length;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tminimumRating = identifiedArray[i].rating;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i<identifiedArray.length;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tif (minimumRating>identifiedArray[i].rating) {\n\t\t\t\t\tminimumRating = identifiedArray[i].rating;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn minimumRating;\n\t}", "protected final int getMin() {\n\treturn(this.min);\n }", "public int getNetworkTransmissionInterval(){\n return (networkIntervalSteps + 1) * 10;\n }", "public Integer getNscan() {\r\n return nscan;\r\n }", "public double min() {\n/* 305 */ Preconditions.checkState((this.count != 0L));\n/* 306 */ return this.min;\n/* */ }", "public int getNumOfRequiredDevices() {\n return mRequiredDeviceNumber;\n }", "final int getEstimatedSurplusTaskCount() {\n // The halving approximates weighting idle vs non-idle threads\n return (sp - base) - (pool.getIdleThreadCount() >>> 1);\n }", "public int get_resource_distance() {\n return 1;\r\n }", "public void determineDataPathPriority() {\n long calculatedTxBad;\n if (this.mCmi.isConnected() && this.mWifiInfo.getRssi() != -127 && this.mOldWifiRssi != -127) {\n logv(\"determineSubflowPriority: mIsSwitchBoardPerferDataPathWifi =\" + this.mIsSwitchBoardPerferDataPathWifi);\n long calculatedTxBad2 = this.mWifiInfo.txBad - this.mOldWifiTxBad;\n long calculatedTxRetriesRate = 0;\n long txFrames = (this.mWifiInfo.txSuccess + this.mWifiInfo.txBad) - (this.mOldWifiTxSuccess + this.mOldWifiTxBad);\n if (txFrames > 0) {\n calculatedTxRetriesRate = (this.mWifiInfo.txRetries - this.mOldWifiTxRetries) / txFrames;\n }\n logv(\"wifiMetric New [\" + String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txSuccess)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txBad)}) + \"]\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"wifiMetric Old [\");\n sb.append(String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mOldWifiRssi)}));\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxRetries)}));\n String str = \"]\";\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxSuccess)}));\n long calculatedTxBad3 = calculatedTxBad2;\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxBad)}));\n sb.append(str);\n logv(sb.toString());\n logv(\"wifiMetric [\" + String.format(\"RSSI: %4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"Retry: %4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries - this.mOldWifiTxRetries)}) + String.format(\"TXGood: %4d, \", new Object[]{Long.valueOf(txFrames)}) + String.format(\"TXBad: %4d, \", new Object[]{Long.valueOf(calculatedTxBad3)}) + String.format(\"RetryRate%4d\", new Object[]{Long.valueOf(calculatedTxRetriesRate)}) + str);\n int i = this.mIsSwitchBoardPerferDataPathWifi;\n if (i == 1) {\n if (calculatedTxRetriesRate <= 1 && calculatedTxBad3 <= 2) {\n calculatedTxBad = calculatedTxBad3;\n } else if (this.mWifiInfo.getRssi() >= -70 || this.mOldWifiRssi >= -70) {\n calculatedTxBad = calculatedTxBad3;\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Case0, triggered - txRetriesRate(\");\n sb2.append(calculatedTxRetriesRate);\n sb2.append(\"), txBad(\");\n long calculatedTxBad4 = calculatedTxBad3;\n sb2.append(calculatedTxBad4);\n sb2.append(\")\");\n logd(sb2.toString());\n setWifiDataPathPriority(0);\n long j = calculatedTxBad4;\n }\n if (this.mWifiInfo.getRssi() >= -85 || this.mOldWifiRssi >= -85) {\n long j2 = calculatedTxBad;\n } else {\n logd(\"Case1, triggered\");\n setWifiDataPathPriority(0);\n long j3 = calculatedTxBad;\n }\n } else {\n long calculatedTxBad5 = calculatedTxBad3;\n if (i == 0) {\n if (txFrames > 0 && calculatedTxRetriesRate < 1 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -75 && this.mOldWifiRssi > -75) {\n logd(\"Case2, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (txFrames > 0 && calculatedTxRetriesRate < 2 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -70 && this.mOldWifiRssi > -70) {\n logd(\"Case3, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (this.mWifiInfo.getRssi() > -60 && this.mOldWifiRssi > -60) {\n logd(\"Case4, triggered RSSI is higher than -60dBm\");\n setWifiDataPathPriority(1);\n }\n }\n }\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (this.mCmi.isConnected() && (this.mWifiInfo.getRssi() != -127 || this.mOldWifiRssi != -127)) {\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (!this.mCmi.isConnected() && this.mOldWifiRssi != -127) {\n this.mOldWifiRssi = -127;\n this.mOldWifiTxSuccess = 0;\n this.mOldWifiTxBad = 0;\n this.mOldWifiTxRetries = 0;\n }\n }", "public static int size_min() {\n return (8 / 8);\n }", "public double minWait()\r\n {\r\n //find the minimum value in an arraylist\r\n double minWait = this.servedCustomers.get(0).getwaitTime();\r\n for(int i = 1; i < this.servedCustomers.size(); i++){\r\n if(this.servedCustomers.get(i).getwaitTime()<minWait){\r\n minWait = this.servedCustomers.get(i).getwaitTime();\r\n }\r\n }\r\n return minWait;\r\n }", "public float getminTemp() {\n Reading minTempReading = null;\n float minTemp = 0;\n if (readings.size() >= 1) {\n minTemp = readings.get(0).temperature;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).temperature < minTemp) {\n minTemp = readings.get(i).temperature;\n }\n }\n } else {\n minTemp = 0;\n }\n return minTemp;\n }", "public int getMaxCalls();", "public int getLowerBound ()\n\t{\n\t\treturn getRelationshipImpl().getLowerBound();\n\t}", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "public float getminWind() {\n Reading minWindReading = null;\n float minWind = 0;\n if (readings.size() >= 1) {\n minWind = readings.get(0).windSpeed;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).windSpeed < minWind) {\n minWind = readings.get(i).windSpeed;\n }\n }\n } else {\n minWind = 0;\n }\n return minWind;\n }", "int getReqCount();", "public Integer getMin() {\n\t\tif (this.Minimum==null)\n\t\t{\n\t\t\tcalcMinMax();\n\t\t}\n\t\treturn this.Minimum;\n\t}", "public int getLevel() {\n if ( air != null )\n return air.sampleRSSI(CC1000Radio.this);\n else return ADC.VBG_LEVEL; // return a default value of some sort\n }", "public Integer getMinGoals() {\n return this.minGoals;\n }", "public static int minimumNumberOfTimeSlots()\n {\n return 0;\n }", "public int minimumWaitingTime(int[] queries) {\n\t\tArrays.sort(queries);\n\t\t\n\t\tint answer = 0;\n\t\tfor(int i=0; i<queries.length-1; i++){\n\t\t\tint sum = queries[i]*(queries.length-1-i);\n\t\t\tanswer += sum;\n\t\t}\n return answer;\n }", "public int getMin()\n\t{\n\t\treturn min;\n\t}", "@Override\n public int getMinMeasurementNumber() {\n return super.getMinMeasurementNumber();\n }", "public int findMin() {\n\t\tint min = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ((int)data.get(count) < min)\n\t\t\t\tmin = (int)data.get(count);\n\t\treturn min;\n\t}", "public long getMinimum() {\n\t\treturn this._min;\n\t}", "public int getRequests()\n\t{\n\t\tint requests=0;\n\t\tString query=\"select count(*) from requests where status=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"Confirm\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\trequests=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn requests;\n\t}", "public int getLowerThreshold() {\r\n\t\tint lowerThreshold;\r\n\t\tlowerThreshold=this.lowerThreshold;\r\n\t\treturn lowerThreshold;\r\n\t}", "public abstract String getMaxUsage();", "public abstract Integer gethourNeed();", "public int getRingCount() {\r\n\t\treturn mRingCount;\r\n\t}", "public int getMinimumValue() {\n return -s.getMaximumValue();\n }", "private int readNumberOfSticks () {\n int number = -1;\n while (number <= 0) {\n number = readIntWithPrompt(\n \"Enter number of sticks \" +\n \"(a positive integer): \");\n }\n return number;\n }", "public int getLowerThreshold() {\n return lowerThreshold;\n }" ]
[ "0.7347736", "0.6618656", "0.6322032", "0.61013377", "0.60909104", "0.60705817", "0.60296124", "0.60108626", "0.60006255", "0.5985318", "0.59741956", "0.58786404", "0.5807055", "0.5789555", "0.5699802", "0.56606734", "0.5656345", "0.56551933", "0.5634204", "0.5610835", "0.55888265", "0.55858177", "0.55754083", "0.556841", "0.55547017", "0.5544457", "0.553709", "0.553293", "0.55130196", "0.54942656", "0.54864204", "0.5477098", "0.5460045", "0.545991", "0.54349005", "0.54189026", "0.5396993", "0.53952616", "0.53936106", "0.5392862", "0.5382026", "0.5376525", "0.53545046", "0.534696", "0.53315014", "0.533064", "0.5315262", "0.53128576", "0.53079027", "0.53052115", "0.5284729", "0.52835864", "0.5276914", "0.5274011", "0.52682966", "0.5262717", "0.5256441", "0.52562445", "0.5253021", "0.5247855", "0.52472585", "0.52471966", "0.5241917", "0.52218705", "0.521441", "0.52118427", "0.5206366", "0.52058756", "0.5189572", "0.5179256", "0.5176034", "0.5174355", "0.5169594", "0.5169409", "0.5163204", "0.5160688", "0.5157767", "0.5148098", "0.5142085", "0.5142085", "0.5142085", "0.5137746", "0.51322496", "0.5131893", "0.5130157", "0.5122979", "0.51194865", "0.51186436", "0.511744", "0.51167244", "0.5116333", "0.51162255", "0.51149714", "0.51147044", "0.50984573", "0.5091959", "0.5090539", "0.50858283", "0.50841945", "0.508417" ]
0.7678918
0
Gets minimum required number of readings to estimate power, position and pathloss exponent. This value depends on the number of parameters to be estimated, but for position only, this is 3 readings.
@Override public int getMinReadings() { createInnerEstimatorsIfNeeded(); int result = getNumberOfDimensions(); if (mRssiInnerEstimator != null && (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled)) { try { mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled); mRssiInnerEstimator.setTransmittedPowerEstimationEnabled( mTransmittedPowerEstimationEnabled); mRssiInnerEstimator.setPathLossEstimationEnabled( mPathLossEstimationEnabled); } catch (final LockedException e) { throw new IllegalStateException(e); } result += mRssiInnerEstimator.getMinReadings(); } else { result++; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinRangingReadings() {\n return getNumberOfDimensions() + 1;\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "public int getMinimumPoints() {\n return mWeakMinimumSizeAllowed ? WEAK_MINIMUM_SIZE : MINIMUM_SIZE;\n }", "int getMinimalIterationCount();", "public int getMinTrials() {\n return minTrials;\n }", "public int getMinimumVertexCount()\r\n {\r\n return theMinimumVertexCount;\r\n }", "private int extractMinCapacityFromPath(List<Edge> path) {\n\t\tint result = Integer.MAX_VALUE;\n\t\t\n\t\tfor (Edge e : path) {\n\t\t\tif (e.getCapacity() < result) {\n\t\t\t\tresult = e.getCapacity();\n\t\t\t}\n\t\t}\n\t\tflowValue+=result;\n\t\treturn result;\n\t}", "public static int size_min() {\n return (8 / 8);\n }", "@Override\n public int lowestRequest() {\n int c = Long.numberOfTrailingZeros( get() );\n if ( c == 64 ) {\n c = -1;\n }\n return c;\n }", "public float getminP() {\n Reading minPressureReading = null;\n float minPressure = 0;\n if (readings.size() >= 1) {\n minPressure = readings.get(0).pressure;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).pressure < minPressure) {\n minPressure = readings.get(i).pressure;\n }\n }\n } else {\n minPressure = 0;\n }\n return minPressure;\n }", "public int minimumPenalty() {\n return dp[dp.length-1];\n }", "public int findLeast() {\r\n\tint cor = 0;\r\n\tint x = 9;\r\n\tfor (int r = 0; r < 9; r++) {\r\n\t for (int c = 0; c < 9; c++) {\r\n\t\tif (!board[r][c].getIsDef()) {\r\n\t\t if (board[r][c].getNumPossible() == 2) {\r\n\t\t\treturn r*10 + c;\r\n\t\t }\r\n\t\t if (board[r][c].getNumPossible() < x) {\r\n\t\t\tcor = r*10 + c;\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n\treturn cor;\r\n }", "public int getMinPSMs() {\n\t\treturn minPSMs;\n\t}", "private int determineCalculatedBufferSize() {\n\n float percentOfASecond = (float) BUFFER_SIZE_IN_MS / 1000.0f;\n int numSamplesRequired = (int) ((float) RATE * percentOfASecond);\n int minBufferSize = determineMinimumBufferSize();\n\n int bufferSize;\n // each sample takes two bytes, need a bigger buffer\n if (ENCODING == AudioFormat.ENCODING_PCM_16BIT) {\n bufferSize = numSamplesRequired * 2;\n } else {\n bufferSize = numSamplesRequired;\n }\n\n if (bufferSize < minBufferSize) {\n Log.w(LOG_TAG, \"Increasing buffer to hold enough samples \"\n + minBufferSize + \" was: \" + bufferSize);\n bufferSize = minBufferSize;\n }\n\n return bufferSize;\n }", "public int getMinimumPlayers() {\n return getOption(ArenaOption.MINIMUM_PLAYERS);\n }", "public abstract int getMinimumArguments();", "public static int minimumNumberOfLineItems() {\n return 0;\n }", "public int minkeys() {\n\t\tint min = 0;\n\t\tif (parentref == null) {\n\t\t\treturn 1;\n\t\t}\n\t\tmin = (int)Math.ceil((degree) / 2.0) - 1;\n\t\t//min = (int)Math.ceil(degree / 2.0);\n\t\treturn Math.max(min, 0);\n\t}", "public int size() {\n\t\treturn minimums.size();\n\t}", "public int minLen() {\n if (compositions == null) {\n return Math.min(maxLen(getAllele(0)), maxLen(getAllele(1)));\n } else {\n if (compositions.isEmpty())\n return 0;\n int minLen = compositions.get(0).minLen();\n for (Variant c : compositions) {\n minLen = Math.min(minLen, c.minLen());\n }\n return minLen;\n }\n }", "private int calculateQuality() {\n\t\t\n\t\tint quality = inconsistencyCount;\n\t\t\n\t\t/* found solution */\n\t\tif (inconsistencyCount == 0)\n\t\t\treturn 0; \n\t\t\n\t\t/* add cost for each unsupported precondition*/\n\t\tfor(InconsistencyIterator iterator = new InconsistencyIterator(); iterator.hasNext();) {\n\t\t\tLPGInconsistency inconsistency = iterator.next();\n\t\t\tquality += inconsistency.getCurrentLevel();\n\t\t\tif (inconsistency instanceof UnsupportedPrecondition) {\n\t\t\t\tint currentLevel = inconsistency.getCurrentLevel();\n\t\t\t\tPlanGraphLiteral unsupportedPrecondition = ((UnsupportedPrecondition) inconsistency).getUnsupportedPrecondition();\n\t\t\t\tquality += costToSupport(unsupportedPrecondition, currentLevel);\n\t\t\t\tquality += inconsistency.getInitialLevel();\n\t\t\t}\n\t\t}\n\t\t/* check steps, penalize levels with no real steps */\n\t\tfor( int i = 1; i < steps.size() - 1; i++) {\n\t\t\tboolean foundStep = false;\n\t\t\tfor(Iterator<PlanGraphStep> it = steps.get(i).iterator(); it.hasNext();) {\n\t\t\t\tPlanGraphStep next = it.next();\n\t\t\t\tif(!next.isPersistent()){\n\t\t\t\t\tfoundStep = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// increase quality if we have found no real steps \n\t\t\tif (!foundStep)\n\t\t\t\tquality++;\n\t\t}\n\t\t\n\t\treturn quality;\n\t}", "public int getMinionPathLength() {\n return getStandardPathLength() + Constants.EFFECT_REPULSE_WEIGHT * (minionRepulse ? 1 : 0);\n }", "public static int getSize() {\n\n\t\treturn strategyChain.size();\n\t}", "public int numMines() {\n\t /*return the total number of mines in the field*/\n return numMines; \n }", "public int getShipPartsNeededCount() {\n return (maxDays * 2) / 3;\n }", "public static int numElements_entries_receiveEst() {\n return 11;\n }", "public int getMinionCount() {\r\n\t\treturn this.minions;\r\n\t}", "public int getOptimalNumNearest();", "public int getMinConnections() {\n return minConnections;\n }", "public static int totalSize_entries_receiveEst() {\n return (176 / 8);\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "public int getExpectedNumber() {\n return getWholeProcessCount();\n }", "private int getInitialChangeSize(int changingAxiomsCount) {\n\t\tint result = changingAxiomsCount >> maxRounds_;\n\t\tif (result == 0)\n\t\t\tresult = 1;\n\t\treturn result;\n\t}", "public static int minimumNumberOfWhiteWallsInStock()\n {\n return 0;\n }", "public Integer getNumeroMinimimoApoyos() {\r\n\t\treturn numMinApoyos;\r\n\t}", "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "public double getMinX() {\n\t\treturn nx;\n\t}", "public int getRetryWaitingCount() {\r\n return root.getRetryWaitingCount();\r\n }", "@Override\n public int getRemainingMines() {\n int numPlacedFlags = cells.stream()\n .mapToInt(b -> (int) b.stream().filter(c -> c.getFlagState() == 1).count()).sum();\n return numMines - numPlacedFlags;\n }", "public static int numDimensions_entries_receiveEst() {\n return 1;\n }", "public int getRequiredParamsNumber() {\n\t\treturn requiredParamsNumber;\n\t}", "public long getMinFree() {\n return params.getMinimumFree() * 1024 * 1024;\n }", "public int getNumMines() {\n return numMines;\n }", "int minNoteValue();", "abstract int calculateMinimumSize(int axis);", "public int getCountMin() {\n\t\treturn countMin;\n\t}", "public Integer minNumberOfCores() {\n return this.minNumberOfCores;\n }", "private double getMinInitProb(){\r\n\t\treturn probThreshold;\r\n\t}", "private static int getSize(double loadFactor){\n return (primeSize((int) (3739/loadFactor))); // 3739 is the number of entries from the lexicon list\n }", "public int minReadLength() {\n return mMinReadLength;\n }", "final int getQueueSize() {\n // suppress momentarily negative values\n return Math.max(0, sp - base);\n }", "int getMines() {return mines;}", "public static int elementSize_entries_receiveEst() {\n return (8 / 8);\n }", "public int getRequiredCubeCount() {\n\t\treturn this.requiredMap.size();\n\t}", "public int expectedEntries() {\n\t\treturn message.getTotalExpectedEntries();\n\t}", "public int getTrainingLevel()\n\t{\n\t\tint level = (int) Math.pow(m_skillTrainingExp / 1.25, 0.33333);\n\t\treturn Math.min(level, 100); // Returns the lowest value\n\t}", "public abstract int getMinimumValue();", "public int getTotalExtraPacks() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getExtraPacksByWins());\n }", "public int getNumberOfRadialBuffers() {\n\t\treturn ((Integer) radialBufferSpinner.getValue()).intValue();\n\t}", "public int getSmallestSpotNum() {\n if (getNumavailable() >= 1) {\n for (int i = 0; i < spotArr.size(); i++) {\n if (spotArr.get(i).isAvailable()) {\n return i;\n }\n }\n }\n return -1;\n }", "public int howManyLevels()\r\n\t{\r\n\t\t// Formula is the ceiling of the log base 2 of (the current number of nodes + 1)\r\n\t\treturn (int) Math.ceil(Math.log(getCounter() + 1) / Math.log(2));\r\n\t}", "public int getMinimum() {\n \tcheckWidget();\n \treturn minimum;\n }", "public Long get_cachetotparameterizedrequests() throws Exception {\n\t\treturn this.cachetotparameterizedrequests;\n\t}", "public int calcKernelSize() {\n\t\treturn 1+(int)Math.round(getStd()*3)*2;\n\t}", "public int getMpUsed() {\n if (getLastStep() != null) {\n return getLastStep().getMpUsed();\n }\n return 0;\n }", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public int getMinimumNumberOfCharacters() {\n\t\treturn this.minimumNumberOfCharacters;\n\t}", "public long getExtent() {\n\t\tlong sum = 0;\n\t\tfor (ChrInfo info : infoMap.values()) {\n\t\t\tsum += info.length;\n\t\t}\n\t\treturn sum;\n\t}", "public Integer getMinItems() {\n\t\treturn minItems;\n\t}", "int getEnqueuedBlockRequestsNumber() {\n int count = 0;\n for (StdPeerMessage pm : sendQueue) {\n if (pm.type == StdPeerMessage.REQUEST) {\n count++;\n }\n }\n return count;\n }", "public int getIntronLength() { \n\t\tfinal int start = getLast5SSPos(); \n\t\tfinal int end = getLast3SSPos();\n\t\treturn( Math.abs( end - start ) ); \n\t}", "private int getBufferSize() {\n int maxBandOff = bandOffsets[0];\n for (int i = 1; i < bandOffsets.length; i++) {\n maxBandOff = Math.max(maxBandOff, bandOffsets[i]);\n }\n\n if (maxBandOff < 0 || maxBandOff > (Integer.MAX_VALUE - 1)) {\n throw new IllegalArgumentException(\"Invalid band offset\");\n }\n\n if (pixelStride < 0 || pixelStride > (Integer.MAX_VALUE / width)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n if (scanlineStride < 0 || scanlineStride > (Integer.MAX_VALUE / height)) {\n throw new IllegalArgumentException(\"Invalid scanline stride\");\n }\n\n int size = maxBandOff + 1;\n\n int val = pixelStride * (width - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n size += val;\n\n val = scanlineStride * (height - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid scan stride\");\n }\n\n size += val;\n\n return size;\n }", "public int getMines()\n {\n return mines;\n }", "public int getMaximumLifepoints() {\r\n return staticLevels[HITPOINTS] + lifepointsIncrease;\r\n }", "public double klSize() {\n\t\tif (klSize_ == 0) {\n\t\t\tdouble klSum = 0;\n\t\t\tint size = size();\n\t\t\tif (size <= 1)\n\t\t\t\treturn 0;\n\t\t\tdouble uniform = 1.0 / size;\n\t\t\tfor (Double prob : itemProbs_.values()) {\n\t\t\t\tklSum += klDivergence(prob, uniform);\n\t\t\t}\n\t\t\tdouble logBase = Math.log(size);\n\t\t\tklSize_ = Math.max(size * (1 - klSum / logBase), 1);\n\t\t}\n\t\treturn klSize_;\n\t}", "public int numOfExpectedElements() {\n return config().getN();\n }", "public int getRequiredExp() {\n return classData.getRequiredExp(level);\n }", "private double getMincSliceThickness() {\r\n\r\n for (final FileMincVarElem element : varArray) {\r\n\r\n if (element.name.equals(\"acquisition\")) {\r\n\r\n for (final FileMincAttElem element2 : element.vattArray) {\r\n\r\n if (element2.name.equals(\"slice_thickness\")) {\r\n return ((Double) element2.values[0]).doubleValue();\r\n }\r\n }\r\n }\r\n }\r\n\r\n return 0;\r\n }", "public int minMapQ() {\n return mMinMapQ;\n }", "public double min() {\n/* 305 */ Preconditions.checkState((this.count != 0L));\n/* 306 */ return this.min;\n/* */ }", "double getStepSize();", "public static int size_reading() {\n return (16 / 8);\n }", "int getN();", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "private static SECSItemNumLengthBytes calculateMinimumNumberOfLengthBytes(int length)\n {\n SECSItemNumLengthBytes result = SECSItemNumLengthBytes.ONE;\n if (length > 255)\n {\n if (length < 65536)\n result = SECSItemNumLengthBytes.TWO;\n else\n result = SECSItemNumLengthBytes.THREE;\n }\n \n return result;\n }", "public Integer getMinProperties() {\n\t\treturn minProperties;\n\t}", "public int getMinMatchLength() {\n int[] allele = {getAllele(0), getAllele(1)};\n byte[][] alt = {getAlt(allele[0]).getSequence(), getAlt(allele[1]).getSequence()};\n byte[] ref = getReference();\n\n int[] matchLength = {0, 0};\n for (int i = 0; i < 2; i++) {\n for (int j = 0; j < Math.min(ref.length, alt[i].length); j++) {\n if (alt[i][j] == ref[j]) {\n matchLength[i]++;\n } else {\n break;\n }\n }\n }\n return Math.min(matchLength[0], matchLength[1]);\n }", "public float getminWind() {\n Reading minWindReading = null;\n float minWind = 0;\n if (readings.size() >= 1) {\n minWind = readings.get(0).windSpeed;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).windSpeed < minWind) {\n minWind = readings.get(i).windSpeed;\n }\n }\n } else {\n minWind = 0;\n }\n return minWind;\n }", "public static int minimumNumberOfBlackWallsInStock()\n {\n return 0;\n }", "public int getNumMinesLeft() {\n return numMinesLeft;\n }", "public static int sizeBits_min() {\n return 8;\n }", "public double getBaseStepSize() {\n \t\treturn 0.105;\n \t}", "public int minOperations(int n) {\n\t\tint count = 0;\n\t\twhile (n != 1) {\n\t\t\tn = n - 1;\n\t\t\tif (n % 2 == 0) {\n\t\t\t\tn = n / 2;\n\t\t\t} else if (n % 3 == 0) {\n\t\t\t\tn = n / 3;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\n\t\treturn count;\n\t}", "public int getRequestRetryCount() {\n \t\treturn 1;\n \t}", "private int selectSolr()\n {\n //Select the endpoint with the least amount of load\n //The start index is randomized to reduce bias to nodes earlier\n //in the list.\n int minIndex = -1;\n int minOutstanding = Integer.MAX_VALUE;\n int startIndex = ThreadLocalRandom.current().nextInt(outstandingRequests.length());\n int loopEnd = outstandingRequests.length() + startIndex;\n for (int ii = startIndex; ii < loopEnd; ii++)\n {\n int index = ii % outstandingRequests.length();\n int outstanding = outstandingRequests.get(index);\n if (outstanding < minOutstanding)\n {\n minIndex = index;\n minOutstanding = outstanding;\n }\n }\n\n return minIndex;\n }", "int getUsedPoints();", "int getUsedPoints();", "int getUsedPoints();", "public int getNormalCount() {\n \tif (normBuf == null)\n \t\treturn 0;\n \treturn normBuf.asFloatBuffer().limit()/3;\n }", "public abstract int getSpotsNeeded();" ]
[ "0.667022", "0.6311207", "0.6261829", "0.6082578", "0.5982742", "0.5908845", "0.5879706", "0.58708185", "0.5834527", "0.58243454", "0.5785689", "0.57649904", "0.57526535", "0.5749281", "0.5702464", "0.5693629", "0.5668183", "0.56432277", "0.5631044", "0.5629631", "0.5529603", "0.55061924", "0.54985845", "0.5496357", "0.5494263", "0.5481186", "0.5474692", "0.5463824", "0.546017", "0.5453842", "0.54472923", "0.5443681", "0.54407746", "0.54327667", "0.54298633", "0.5415161", "0.54060125", "0.53927445", "0.5379057", "0.53764516", "0.53596205", "0.5352355", "0.5350681", "0.5346649", "0.53442574", "0.5340648", "0.5339474", "0.5338143", "0.5337088", "0.5336379", "0.5334187", "0.5331799", "0.5331495", "0.5322938", "0.5314545", "0.53036743", "0.53009456", "0.52999645", "0.528669", "0.5285025", "0.52775156", "0.5276396", "0.52754945", "0.52704316", "0.52631634", "0.5258177", "0.52509815", "0.52472067", "0.5244198", "0.52423126", "0.5239089", "0.5237249", "0.5231996", "0.5225577", "0.5223008", "0.5222099", "0.5217136", "0.5216166", "0.52158487", "0.52152646", "0.5214572", "0.52096444", "0.52091634", "0.5204023", "0.5200812", "0.5200698", "0.5195792", "0.51955247", "0.5194265", "0.5194046", "0.5193715", "0.51870906", "0.51842684", "0.51821566", "0.5179379", "0.5178355", "0.5178355", "0.5178355", "0.5170225", "0.51668656" ]
0.74089456
0
Gets estimated radio source position.
public P getEstimatedPosition() { return mRssiPositionEnabled ? mRssiInnerEstimator.getEstimatedPosition() : mRangingInnerEstimator.getEstimatedPosition(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PositionSource getPositionSource() {\n return _positionSource;\n }", "public double GetPositionRaw()\n {\n double position = GetPosition();\n\n if (position == -1)\n {\n double CurrentDistance = GetDistance();\n\n // we aren't close to a position, so get the range\n for (int i = 1; i < (Positions.length); i++)\n {\n if (Utilities.isBetween(CurrentDistance, Positions[i - 1],\n Positions[i]))\n {\n // scale the position from inches to the ratio between\n // positions\n position = Utilities.scaleToRange(CurrentDistance,\n Positions[i - 1], Positions[i], i - 1, i);\n break;\n }\n\n }\n }\n\n return position;\n }", "public double getTargetHorizontalOffset() {\n return getDouble(\"tx\");\n }", "public AccessPoint calculateAccessPointPosition() {\n\t\twifiScanner.scanStart();\n\t\tapList = wifiScanner.getApList();\n\t\treturn apList.get(0);\n\t}", "public int getEncPosition() {\n //System.out.println(this.EncX.getRaw() + \"raw\");\n return (int) (1000 * this.EncX.getDistance());\n //return (int)(1000 * this.EncX.getRaw() / 8.6);\n \n }", "public int GetPosition()\n {\n int position = -1;\n\n double CurrentDistance = GetDistance();\n\n for (int i = 0; i < Positions.length; i++)\n {\n // first get the distance from current to the test point\n double DistanceFromPosition = Math.abs(CurrentDistance\n - Positions[i]);\n\n // then see if that distance is close enough using the threshold\n if (DistanceFromPosition < PositionThreshold)\n {\n position = i;\n break;\n }\n }\n\n return position;\n }", "public int getSeekPosition() {\n if(mMediaPlayer != null) {\n return mMediaPlayer.getCurrentPosition();\n }\n return 0;\n }", "public double getDistanceFromSource()\n {\n return distanceFromSource;\n }", "public P getEstimatedPosition() {\n return mEstimatedPosition;\n }", "public int getLiftPosition() {\n //Do some math on getting the encoder positions\n return liftStageOne.getCurrentPosition() + liftStageTwo.getCurrentPosition();\n }", "public double getPosition() {\n return sequence.getPosition(BPMNode);\n }", "public int getSource() {\n\t\treturn source;\n\t}", "@Override\n public double getPosition()\n {\n final String funcName = \"getPosition\";\n double pos = getMotorPosition() - zeroPosition;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", pos);\n }\n\n return pos;\n }", "public PVector getRawPosition(){\n\t\treturn this.leap.convert(this.arm.center());\n\t}", "public double getTrajectoryPosition() {\n return leftMotor.getActiveTrajectoryPosition();\n }", "public long position() {\n\t\tif (mPlayer.isInitialized()) {\n\t\t\treturn mPlayer.position();\n\t\t}\n\t\treturn -1;\n\t}", "@Override\n public PosDeg getPosition() {\n return tracker.getPosition();\n }", "public Point getLocalPosition() {\n return getLocalLowerLeft();\n }", "public float getPos() {\n return ((spos-xpos))/(sposMax-sposMin);// * ratio;\n }", "BlockPos getPosTarget() {\n BlockPosDim loc = LocationGpsCard.getPosition(inventory.getStackInSlot(0));\n if (loc != null && loc.getPos() != null) {\n return loc.getPos();\n }\n return this.getBlockPos();\n }", "public long getSource()\r\n { return src; }", "public int getSource(){\r\n\t\treturn this.source;\r\n\t}", "public double getPosition() {\n return spark_encoder.getPosition();\n }", "@Override\r\n\t\tpublic long dmr_getCurPlayPosition() throws RemoteException {\n\t\t\tif (mVideoContrl != null && mVideoContrl.isMediaPlayerPrepared()) {\r\n\t\t\t\tint currentPostion = mVideoContrl.getCurrentPosition();\r\n\t\t\t\tUtils.printLog(TAG, \"dmr_getCurPlayPosition()\" + currentPostion);\r\n\t\t\t\tif (currentPostion != VideoPlayerContrlConsts.GET_CURRENTPOSITION_ERROR) {\r\n\t\t\t\t\treturn currentPostion;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}", "@Override\r\n \tpublic final int getOffset() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getStartPos();\r\n \t}", "public int getCurrentPlayerRealPosition();", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "public float getPos() {\n return (spos - xpos) / (swidth - sheight);\n }", "public Optional<Integer> getPosition() {\n return this.placement.getAlleles().stream()\n .map(p -> p.getAllele().getSpdi().getPosition())\n .findFirst();\n }", "public double getOffset(){\n\t\tdouble percentHeight = networkTableValues.get(\"height\")/cameraHeightPixel;\n\t\t//Get the height of the frame in inches\n\t\tdouble cameraHeightInches = networkTableValues.get(\"height\")/percentHeight;\n\t\t//Get the width of the frame in inches\n\t\tdouble cameraWidthInches = cameraHeightInches*(cameraWidthPixel/cameraHeightPixel);\n\t\t//Get the distanceFromTower from the camera to the goal\n\t\tdistanceFromTower = (cameraWidthInches/2)/Math.tan(cameraFOV*(Math.PI/180));\n\t\t//Get the distanceFromTower from the camera to the base of the tower\n\t\tdouble horizontalDistance = Math.sqrt(Math.pow(distanceFromTower, 2) - Math.pow(towerHeight, 2));\n\t\t//Get offset in inches\n\t\tdouble distanceFromCenterInches = (networkTableValues.get(\"centerX\") / cameraWidthPixel)*cameraWidthInches;\n\t\tdouble offset = Math.atan((distanceFromCenterInches/distanceFromTower)*(180/Math.PI));\n\t\t\n\t\tSystem.out.println(\"OFFSET: \" + offset);\n\t\treturn offset;\n\t}", "@Override\r\n\tpublic int getCurrentPosition() {\n\t\treturn mediaPlayer.getCurrentPosition();\r\n\t}", "public Point getNextForecastedPos() {\n return nextPos ;\n }", "public int getSrc() {\n\t\treturn src;\n\t}", "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public long correctedPosition() {\n\t\tif (audioOut == null)\n\t\t\treturn currentPosition;\n\t\treturn currentPosition - (outputBufferSize - audioOut.available());\n\t}", "public Point getStartPoint() {\n // First, this is Settler's location\n UnitList units = unitService.findByClassUuid(Settlers.CLASS_UUID);\n if (units != null && !units.isEmpty()) {\n return units.getAny().getLocation();\n }\n\n // If Settlers were destroyed then it is the first city's location\n City city = cityService.getAny();\n if (city != null) {\n return city.getLocation();\n }\n\n // If there is no cities, then the first Unit's location\n AbstractUnit unit = unitService.getAny();\n if (unit != null) {\n return unit.getLocation();\n }\n\n // If there is no units then (0, 0)\n return new Point(0, 0);\n }", "public int getPosition() {\n log.log(Level.FINE, \"position: \" + position + \"ms\");\n return position;\n }", "public double getPX(){\n\t\treturn previousX;\n\t}", "public double getXOffset() {\n if (isReal) {\n return get(\"tx\");\n } else {\n return simTx.getDouble(0.0);\n }\n }", "@Override\n\tpublic double getSelectedSensorPosition() {\n\t\treturn encoder.getPosition();\n\t}", "@Override\n public double getPosX() {\n return this.pos[0];\n }", "public double getAverageEncoderPosition()\n {\n \treturn ( Math.abs(leftBackTalon.getSelectedSensorPosition(0)) + Math.abs(rightBackTalon.getSelectedSensorPosition(0))) / 2;\n }", "public int getCurrentPosition() {\n\t\tif(currentPlayingItem==null) return 0;\n\t\treturn mediaPlayer.getCurrentPosition();\n\t}", "public int getTargetPos() {\n return targetPos_;\n }", "public Coordinates closestPoint() {\n return closestPoint;\n }", "public int getOriginalPos() {\n return originalPos;\n }", "public double getEncoderPosition() {\n SmartDashboard.putNumber(\"Raw Encoder Value\", armMotor.getSelectedSensorPosition(0));\n return armMotor.getSelectedSensorPosition(0) * Const.kArmTalon4096Unit2Deg * Const.kArmGearRatioEncoder2Arm;\n }", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "public static double getX() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tx\").getDouble(0);\n }", "public float getPosition(){\n\t\treturn (float)cFrame + interpol;\n\t}", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public P getInitialPosition() {\n return mInitialPosition;\n }", "public double getCardPosX(){\r\n return getX();\r\n }", "public int getSourceUnits() {\n return sourceUnits;\n }", "public double getX() {\n return position.getX();\n }", "public int getTargetPos() {\n return targetPos_;\n }", "public ImPoint getCurrentLoc() {\n \treturn this.startLoc;\n }", "public float getXDest()\n {\n return xDest;\n }", "double getXPosition();", "public float getInitialPosition() {\n return initialPosition;\n }", "@Override\r\n \tpublic final int getStartPos() {\r\n \t\treturn sourceStart;\r\n \t}", "public int getXOrigin() {\n return ic.getXOrigin();\n }", "int getTargetPos();", "public Number getSrcId() {\r\n return (Number) getAttributeInternal(SRCID);\r\n }", "public double getPlanPosition(double percentPos){\n return percentPos * (illustration.getOriginalWidth()/horizontalMeter);\n }", "public Coordinates getProcedurePosition() {\r\n\t\tif (position == null) {\r\n\t\t\tCoordinates coord = this.getSensorCoordinates();\r\n\t\t\tposition = coord;\r\n\t\t}\r\n\t\treturn position;\r\n\t}", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public Point getPosition(){\n\t\treturn position;\n\t}", "public int getX(){\n return this.position[0];\n }", "public int getActualCurrentPosition() {\r\n int position = getCurrentPosition();\r\n return transformToActualPosition(position);\r\n }", "public int getOffset()\n {\n if (m_bufferOffset_ != -1) {\n if (m_isForwards_) {\n return m_FCDLimit_;\n }\n return m_FCDStart_;\n }\n return m_source_.getIndex();\n }", "public long getPosition();", "public int[] getPlayerInitialPosition() \n\t{\n\t\treturn player_initial_position;\n\t}", "public TransmissionStats\n getSourceTransmissionStats();", "public IntegerTulep getPosition() {\n return position;\n }", "public Integer getXOffset() {\n\t\tdouble frameWidth = this.pixy.getFrameWidth() / 2;\n\t\tdouble blockX = this.getX();\n\n\t\treturn (int) (blockX + frameWidth / 2);\n\t}", "public int sourceStart()\n\t{\n\t\treturn sourceStart;\n\t}", "public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}", "public Long getSourceNumber() {\n return this.sourceNumber;\n }", "private int getInclusiveTopIndexStartOffset() {\n \n \t\tif (fTextWidget != null && !fTextWidget.isDisposed()) {\n \t\t\tint top= -1;\n \t\t\tif (fSourceViewer instanceof ITextViewerExtension5) {\n \t\t\t\ttop= fTextWidget.getTopIndex();\n \t\t\t\tif ((fTextWidget.getTopPixel() % fTextWidget.getLineHeight()) != 0)\n \t\t\t\t\ttop--;\n \t\t\t\tITextViewerExtension5 extension= (ITextViewerExtension5) fSourceViewer;\n \t\t\t\ttop= extension.widgetLine2ModelLine(top);\n \t\t\t} else {\n \t\t\t\ttop= fSourceViewer.getTopIndex();\n \t\t\t\tif ((fTextWidget.getTopPixel() % fTextWidget.getLineHeight()) != 0)\n \t\t\t\t\ttop--;\n \t\t\t}\n \n \t\t\ttry {\n \t\t\t\tIDocument document= fSourceViewer.getDocument();\n \t\t\t\treturn document.getLineOffset(top);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}", "public TCSObjectReference<Point> getSourcePoint() {\n if (hops.isEmpty()) {\n return null;\n }\n else {\n return hops.get(0);\n }\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public int getCurrentPosition(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn 0;\r\n \t\treturn mediaplayer.getCurrentPosition();\r\n \t}", "public PVector getPosition(){\n\t\treturn position;\n\t}", "@Override\n\tpublic long getPosition()\n\t{\n\t\treturn inputStream.Position;\n\t}", "private double getCachedGalleryPosition() {\r\n\r\n\t\tdouble galleryPosition = 0;\r\n\r\n\t\t// keep current gallery position\r\n\t\tif (_currentGalleryPositionKey != null) {\r\n\t\t\t_galleryPositions.put(_currentGalleryPositionKey, _galleryMT20.getGalleryPosition());\r\n\t\t}\r\n\r\n\t\t// get old position\r\n\t\tif (_newGalleryPositionKey != null) {\r\n\r\n\t\t\t_currentGalleryPositionKey = _newGalleryPositionKey;\r\n\r\n\t\t\t// get old gallery position\r\n\t\t\tfinal Double oldPosition = _galleryPositions.get(_newGalleryPositionKey);\r\n\r\n\t\t\tgalleryPosition = oldPosition == null ? 0 : oldPosition;\r\n\r\n//\t\t\tSystem.out.println(UI.timeStampNano() + \" get old position \" + oldPosition);\r\n//\t\t\t// TODO remove SYSTEM.OUT.PRINTLN\r\n\t\t}\r\n\r\n//\t\tSystem.out.println(UI.timeStampNano() + \" getCachedGalleryPosition() \" + galleryPosition);\r\n//\t\t// TODO remove SYSTEM.OUT.PRINTLN\r\n\r\n\t\treturn galleryPosition;\r\n\t}", "@Basic @Raw\n public double[] getPosition(){\n\t double[] result = {this.position[0], this.position[1]};\n\t return result;\n }", "public double getPosition(double value) {\n return getRelPosition(value) * (size - nanW - negW - posW) + (min < max ? negW : posW);\n }", "double getX() { return pos[0]; }", "public double getPosition()\n {\n return position * FPS;\n }", "public edu.umich.icpsr.ddi.FileTxtType.Source.Enum getSource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SOURCE$30);\n }\n if (target == null)\n {\n return null;\n }\n return (edu.umich.icpsr.ddi.FileTxtType.Source.Enum)target.getEnumValue();\n }\n }", "public double getX() {\n return origin.getX();\n }", "public Point getInitialPosition()\n {\n return this.initialPosition;\n }", "@DISPID(-2147417088)\n @PropGet\n int sourceIndex();", "@Override\n public abstract SourcePoint getSourcePoint();" ]
[ "0.63814974", "0.6295032", "0.62892663", "0.6173708", "0.6157917", "0.60707676", "0.6048494", "0.6034645", "0.5996081", "0.5948117", "0.5946673", "0.58987683", "0.5892201", "0.58891845", "0.58789045", "0.5876973", "0.5860166", "0.5854145", "0.5849305", "0.58480453", "0.5840879", "0.5820285", "0.58190423", "0.5777694", "0.5761897", "0.57500577", "0.5743072", "0.5732319", "0.5727409", "0.5705668", "0.56798726", "0.56765276", "0.56736594", "0.567179", "0.5646474", "0.56429565", "0.5634674", "0.5606368", "0.559992", "0.55979896", "0.55962986", "0.55763054", "0.5574204", "0.55712736", "0.55650634", "0.5537468", "0.5537406", "0.5532981", "0.551873", "0.55132467", "0.55130327", "0.55130327", "0.55130327", "0.5512975", "0.55084276", "0.55076844", "0.5502628", "0.5489286", "0.5486025", "0.54519033", "0.54453933", "0.544498", "0.5438883", "0.54374695", "0.54362136", "0.5431644", "0.5428679", "0.542492", "0.5424756", "0.5424756", "0.54106885", "0.54053545", "0.5404814", "0.540202", "0.5401575", "0.5400568", "0.5398463", "0.53926224", "0.5389048", "0.53846276", "0.53832453", "0.5382196", "0.537616", "0.537258", "0.53719085", "0.53709126", "0.53709126", "0.53705865", "0.5370258", "0.53679323", "0.5367389", "0.5366888", "0.536613", "0.5365541", "0.5364388", "0.53616834", "0.53598315", "0.535677", "0.5350679", "0.5349848" ]
0.67640615
0
Indicates whether readings are valid or not. Readings are considered valid when there are enough readings.
@Override public boolean areValidReadings( final List<? extends ReadingLocated<P>> readings) { if (readings == null) { return false; } checkReadings(readings); //if enough ranging data is available, we check validity both for ranging and RSSI readings return ((!mRssiPositionEnabled && mNumRangingReadings >= getMinRangingReadings() && mNumRssiReadings >= getMinRssiReadings()) || //if not enough ranging data is available, we check validity only for RSSI readings (mRssiPositionEnabled && mNumRssiReadings >= getMinRssiReadings()) || //if only position is enabled, then only check for ranging readings (!mTransmittedPowerEstimationEnabled && !mPathLossEstimationEnabled && mNumRangingReadings >= getMinRangingReadings())) && //in both upper cases enough general readings must be available super.areValidReadings(readings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isReady() {\n return areValidReadings(mReadings);\n }", "private void checkReadings(final List<? extends ReadingLocated<P>> readings) {\n mNumRangingReadings = mNumRssiReadings = 0;\n\n if (readings == null) {\n return;\n }\n\n for (final ReadingLocated<P> reading : readings) {\n if (reading instanceof RangingReadingLocated) {\n mNumRangingReadings++;\n\n } else if (reading instanceof RssiReadingLocated) {\n mNumRssiReadings++;\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n mNumRangingReadings++;\n mNumRssiReadings++;\n }\n }\n\n mRssiPositionEnabled = mNumRangingReadings < getMinRangingReadings();\n }", "public boolean isValid() {\n return (this.S>=0 && this.I>=0 && this.R>=0);\n }", "public boolean valid() {\n return start != null && ends != null && weavingRegion != null;\n }", "public boolean isValidRecord () {\n int sumError = latitudeError +\n longitudeError +\n depthError +\n temperatureMinError +\n temperatureMaxError +\n salinityMinError +\n salinityMaxError +\n oxygenMinError +\n oxygenMaxError +\n nitrateMinError +\n nitrateMaxError +\n phosphateMinError +\n phosphateMaxError +\n silicateMinError +\n silicateMaxError +\n chlorophyllMinError +\n chlorophyllMaxError;\n return (sumError == 0 ? true : false);\n }", "public boolean isReady() {\n return mInputPoints != null && mOutputPoints != null &&\n mInputPoints.size() == mOutputPoints.size() &&\n mInputPoints.size() >= getMinimumPoints();\n }", "@Override\n public boolean isReady() {\n //at least one parameter estimtion must be enabled\n return (mPositionEstimationEnabled || mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled) &&\n //if position estimation is disabled, an initial position must be provided\n !(!mPositionEstimationEnabled && mInitialPosition == null) &&\n //if transmitted power estimation is disabled, an initial transmitted power must be provided\n !(!mTransmittedPowerEstimationEnabled && mInitialTransmittedPowerdBm == null) &&\n //readings must also be valid\n areValidReadings(mReadings);\n }", "public boolean isValid() {\n\t\treturn !lines.isEmpty();\n\t}", "private boolean isValid() throws BadInputException {\n try {\n if( ! br.ready() ) \t\t\t\t\t\t//Is the reader ready?\n throw new BadInputException();\t\t//Must be a problem with the file, throw exception\n }\n catch(java.io.IOException e) {\n System.out.println(\"Error validating readability of file: \" + e.toString() );\n }\n\n return true;\n }", "public boolean validate() {\n\t\tfor(int i=0; i<sensorData.size(); i++) {\n\t\t\tif(!sensorData.get(i).isValid()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean valid()\r\n\t{\r\n\t\treturn valid(getInputStream());\r\n\t}", "public boolean isReady() {\n return mPoints != null && mPoints.size() >= MINIMUM_SIZE;\n }", "public boolean valid() {\n return valid;\n }", "public void validateReading() {\r\n\t\tint i = 0;\r\n\t\tfor (Integer reading : readingList) {\r\n\t\t\tif (reading != null) {\r\n\t\t\t\tif (reading < 0 || reading > Constantes.PLUVIOMETER_MAX_RANGE) {\r\n\t\t\t\t\tControladorContexto\r\n\t\t\t\t\t\t\t.mensajeErrorArg1(\r\n\t\t\t\t\t\t\t\t\t\"formDetalles:repeat:\" + i + \":message\",\r\n\t\t\t\t\t\t\t\t\t\"javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE\",\r\n\t\t\t\t\t\t\t\t\t\"mensaje\", 0,\r\n\t\t\t\t\t\t\t\t\tConstantes.PLUVIOMETER_MAX_RANGE);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tControladorContexto.mensajeErrorEspecifico(\r\n\t\t\t\t\t\t\"formDetalles:repeat:\" + i + \":message\",\r\n\t\t\t\t\t\t\"message_campo_requerido\", \"mensaje\");\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public Boolean valid() {\n\t\treturn this.getMeasuredBy()!=null && this.getMeasuredBy().valid();\n\t}", "public boolean isValid()\n {\n return this.address >= 0 && this.slaveId >= 0 && this.xlator != null\n && this.gatewayProtocol != null\n && (this.serialParameters != null\n || (this.gatewayIPAddress != null\n && this.gatewayPort != null));\n }", "public Boolean shouldRead() {\n return this.isComplete();\n }", "public boolean isDataValid() {\r\n return validData;\r\n }", "public boolean isValid() {\n\n if (this.eTime == INFINITY) return false;\n\n int oldCountA = (a != null) ? a.getCount() : 0;\n int oldCountB = (b != null) ? b.getCount() : 0;\n\n if (countA != oldCountA || countB != oldCountB)\n return false;\n\n return true;\n }", "public final boolean isDataAvailable() {\n\t\tif ( hasStatus() >= FileSegmentInfo.Available &&\n\t\t\t\t hasStatus() < FileSegmentInfo.Error)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isValid() {\n return this.validate().isEmpty();\n }", "public boolean wasValid() {\n return !wasInvalid();\n }", "public boolean isValid() {\n \t\treturn valid;\n \t}", "public boolean isValid() {\n\t\treturn valid;\n\t}", "public boolean isValid()\n {\n return valid;\n }", "public boolean isValid() {\n return valid;\n }", "public boolean isValid() {\n return valid;\n }", "public boolean isValid() {\n return valid;\n }", "public boolean isValid() {\n return valid;\n }", "public boolean valid() {\n\t\treturn _analyzer.valid();\n\t}", "boolean valid() {\n boolean valid = true;\n\n if (!isAgencyLogoPathValid()) {\n valid = false;\n }\n if (!isMemFieldValid()) {\n valid = false;\n }\n if (!isLogNumFieldValid()) {\n valid = false;\n }\n\n return valid;\n }", "public Boolean valid() {\n return valid;\n }", "public boolean isRangeValid()\n {\n return isRangeValid(((AnalogInput)m_echoChannel).getVoltage());\n }", "public synchronized boolean isValid() {\n\n\t\treturn isBaseClassValid() && isRangeValid() && super.isValid();\n\t}", "public boolean valid() {\n \n return ObjectUtils.isValid(PartitionConfig.class, this) \n && ((PartitionType.COUNT.equals(this.type) && ((this.count != null) \n || StringUtils.isNotBlank(this.countRef))) \n || ((PartitionType.ITEMS.equals(this.type) \n || (PartitionType.FUNCTION.equals(this.type) && StringUtils.isNotBlank(this.output)\n && BooleanUtils.xor(new boolean [] {StringUtils.isBlank(this.className), \n StringUtils.isBlank(this.functionName)})))\n && ((this.input != null) && (this.input.get(PartitionFunction.ITEMS_KEY) != null))));\n \n }", "private boolean checkValid() {\n\t\tif(openRadio.isSelected()) {\n\t\t\t//Open loop mode.\n\t\t\treturn checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t} else {\n\t\t\t//Closed loop mode.\n\t\t\t//Check patient selected\n\t\t\t//Check QCore selected\n\t\t\t//Check BP monitor selected\n\t\t\t//Check target BP range\n\t\t\t//Check infusion rate.\n\t\t\treturn checkTargetBPRange() && checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t}\n\t}", "public boolean isValid()\n {\n synchronized (lock)\n {\n return valid;\n }\n }", "public boolean hasRead() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "protected boolean isValidating() {\n return (mValidator != null);\n }", "public boolean hasValidUnitNum() {\n return getTotalUnits() <= 22;\n }", "public boolean isValid() {\r\n\t\treturn isValid;\r\n\t}", "protected boolean checkFormat() {\n\t\t// Read the card contents and check that all is ok.\n\t byte[] memory = utils.readMemory();\n\t if (memory == null)\n\t return false;\n\t \n\t // Check the application tag.\n\t for (int i = 1; i < 4; i++)\n\t if (memory[4 * 4 + i] != applicationTag[i])\n\t return false;\n\t \n\t // Check zeros. Ignore page 36 and up because of the safe mode.\n\t for (int i = 5 * 4; i < 36 * 4; i++)\n\t if (memory[i] != 0)\n\t return false;\n\t \n\t // Check that the memory pages 4..39 are not locked.\n\t // Lock 0: Check lock status for pages 4-7\n\t if (memory[2 * 4 + 2] != 0) \n\t return false;\n\t // Lock 1: \n\t if (memory[2 * 4 + 3] != 0)\n\t return false;\n\t // Lock 2:\n\t if (memory[40 * 4] != 0)\n\t \t\treturn false;\n\t // Lock 1:\n\t if (memory[40 * 4 + 1] != 0)\n\t \t\treturn false;\n\t \n\t return true;\n\t}", "public boolean hasRead() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "protected boolean isValid() {\n \t\treturn valid;\n \t}", "public boolean hasValidValues() {\r\n\t\treturn hasValidValues;\r\n\t}", "public boolean isValid(){\n\t\treturn this.arm.isValid();\n\t}", "public boolean isValid()\n {\n return valid;\n }", "public boolean isValid(){\n\t\treturn valid;\n\t}", "public boolean isValid() {\n return (m_Port != 0);\n }", "public boolean hasForRead() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "public Boolean validEntries() {\n String orderNumber = orderNo.getText();\n String planTime = plannedTime.getText();\n String realTime = actualTime.getText();\n String worker = workerSelected();\n String productType = productTypeSelected();\n Boolean validData = false;\n if (orderNumber.equals(\"\")) {\n warning.setText(emptyOrderNum);\n } else if (!Validation.isValidOrderNumber(orderNumber)) {\n warning.setText(invalidOrderNum);\n } else if (worker.equals(\"\")) {\n warning.setText(workerNotSelected);\n } else if (productType.equals(\"\")) {\n warning.setText(productTypeNotSelected);\n } else if (planTime.equals(\"\")) {\n warning.setText(emptyPlannedTime);\n } else if (!Validation.isValidPlannedTime(planTime)) {\n warning.setText(invalidPlannedTime);\n } else if (!actualTime.getText().isEmpty() && !Validation.isValidActualTime(realTime)) {\n warning.setText(invalidActualTime);\n } else if (comboStatus.getSelectionModel().isEmpty()) {\n warning.setText(emptyStatus);\n } else validData = true;\n return validData;\n }", "private boolean isRangeValid() {\n\n\t\tboolean valid = true;\n\n\t\tif (getRange() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tLong.parseLong(getRange());\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tvalid = false;\n\t\t}\n\n\t\tvalid = valid || getRange().compareToIgnoreCase(CCLConstants.INDIRECT_RANGE_ALL) == 0;\n\n\t\treturn valid;\n\t}", "public boolean hasForRead() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasUsage() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean valid() {\r\n\t\tif(habitat != 0 && habitat != -1 && minKnight() <= 4 - numKnights)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean isValidIndicator() {\r\n return validIndicator;\r\n }", "public boolean hasErr() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isValid() {\n\t\treturn(m_valid);\n\t}", "public boolean isValid() {\n return isValid;\n }", "public boolean isValid() {\n return isValid;\n }", "public boolean isValid() {\n\t\treturn false;\n\t}", "public boolean hasUsage() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean checkFull() {\n\t\tif (studlist.size() == maxstudents) {\n\t\t\tfull = true;\n\t\t}\n\t\treturn full;\n\t}", "public boolean isValid() {\n\t\tString status = getField(Types.STATUS);\n\t\tif(status == null) return false;\n\t\treturn StringUtil.equalsIgnoreCase(status,\"A\") && !loc.isNull();\n\t}", "public boolean hasErr() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isValid() {\n \t\treturn fValid;\n \t}", "public boolean hasEntries(){\n\t\treturn ! errorList.isEmpty();\n\t}", "boolean isUsedForReading();", "public boolean isValid() {\n return true;\n }", "public boolean isValid() {\n return true;\n }", "public boolean isValid()\n {\n return mCRC[ 0 ] == CRC.PASSED || \n \t mCRC[ 0 ] == CRC.CORRECTED;\n }", "public boolean isValid() {\n return true;\n }", "public boolean isValid()\n\t{\n\t\treturn isValidPort(getPort()) && isValidHostname(getHost()) && m_bUseInterface &&\n\t\t\t(m_endOfBlocking < System.currentTimeMillis());\n\t}", "public boolean isValid() {\n return handle > 0;\n }", "boolean hasForRead();", "public boolean checkAvailability(int num_used) {\n return num_used != this.num_uses;\n }", "public boolean isValid() {\n if (state.length != Board.dim*Board.dim) return false;\n if ((double)Board.dim != Math.sqrt((double)state.length)) return false;\n byte[] counts = new byte[state.length];\n try {\n for (int i = 0; i < counts.length; i++) counts[state[i]]++;\n } catch (ArrayIndexOutOfBoundsException e) { return false; }\n for (int i = 0; i < counts.length; i++) if (counts[i] != 1) return false;\n return true;\n }", "public boolean isFlowValid()\n\t{\n\t\t// TODO will need to implement this...\n\t\treturn true;\n\t}", "public boolean hasScannedAllies()\n\t{\n\t\treturn (lastscanround == br.curRound && !needToScanAllies);\n\t}", "protected boolean isValid() {\n \t\t\treturn fStart > -1 && fEnd > -1 && fText != null;\n \t\t}", "protected boolean errors()\n \t{\n\t\treturn !errors.isEmpty();\n \t}", "public boolean getIsValidInquiryAttempt() {\r\n if (getInvalidCardErrorCount() >= getMaxNumErrorsPerSession()) {\r\n if (getInvalidCardErrorCount() == getMaxNumErrorsPerSession()) {\r\n getGiftCardLogger().logActivity(getCurrentUserIP(), \"GIFT CARD INQUIRY\");\r\n setInvalidCardErrorCount(getInvalidCardErrorCount() + 1);\r\n }\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "private boolean isValid() {\n // If start is greater or equal to end then it's invalid\n return !(start.compareTo(end) >= 0);\n }", "public boolean errors() {\n \treturn semantErrors != 0;\n }", "public boolean isValid()\n\t{\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n return attestationsByValidatorCount.isEmpty();\n }", "public boolean hasError() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "public boolean isValid() {\n // TODO: Question 2.2.\n \n return false;\n }", "boolean hasRead();", "public boolean hasErrors(){\n\t\treturn ! errorList.isEmpty();\n\t}", "public boolean hasErrors() {\n return !errors.isEmpty();\n }", "public boolean hasSendReading() {\n return sendReading_ != null;\n }", "public boolean available() throws SerialPortException {\n\t\treturn port.getInputBufferBytesCount()>0;\n\t}", "public boolean hasNext() {\n\t\tif(nextIndex < numOfSensorReading()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public boolean hasOccupation() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }" ]
[ "0.7279101", "0.6738899", "0.66851735", "0.6592083", "0.65366185", "0.6526527", "0.6511287", "0.64841473", "0.6467632", "0.6464509", "0.63888973", "0.63803595", "0.63491267", "0.63379294", "0.6330951", "0.6285929", "0.62447906", "0.62410784", "0.6197404", "0.61810404", "0.6149569", "0.61494124", "0.6142068", "0.61102045", "0.61049384", "0.6094939", "0.6087657", "0.6087657", "0.6087657", "0.60874754", "0.60839695", "0.60839105", "0.60836506", "0.60788965", "0.60788256", "0.6054174", "0.6052534", "0.60266507", "0.60095704", "0.59992135", "0.59985775", "0.5994598", "0.59930885", "0.5970697", "0.5951886", "0.5950868", "0.59496814", "0.5947325", "0.5945661", "0.5929705", "0.59209627", "0.5908571", "0.58837783", "0.58698887", "0.5867879", "0.5867699", "0.58636856", "0.58570683", "0.5848061", "0.5843446", "0.5843446", "0.5831077", "0.58272254", "0.581688", "0.5812175", "0.58106476", "0.5810246", "0.57951605", "0.57912785", "0.5775897", "0.5775897", "0.57703984", "0.5767408", "0.5766214", "0.57625514", "0.5757374", "0.5743128", "0.57378286", "0.5736477", "0.57324266", "0.57209677", "0.57091403", "0.57080257", "0.57009774", "0.5691755", "0.569088", "0.5689254", "0.56804514", "0.5680215", "0.567688", "0.5669876", "0.56687146", "0.56624156", "0.56560683", "0.56540805", "0.56513137", "0.56513137", "0.5641106", "0.5637952", "0.5637468" ]
0.72425586
1
Indicates whether this instance is ready to start the estimation.
@Override public boolean isReady() { return areValidReadings(mReadings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isReady() {\n return ready;\n }", "public boolean isReady()\r\n {\r\n return _isReady;\r\n }", "public boolean isReady() {\n return isReady;\n }", "@Override\r\n\tpublic boolean isReady() {\n\t\treturn !finish;\r\n\t}", "public boolean isReady();", "public boolean isReady();", "@Override\n public boolean isReady() {\n //at least one parameter estimtion must be enabled\n return (mPositionEstimationEnabled || mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled) &&\n //if position estimation is disabled, an initial position must be provided\n !(!mPositionEstimationEnabled && mInitialPosition == null) &&\n //if transmitted power estimation is disabled, an initial transmitted power must be provided\n !(!mTransmittedPowerEstimationEnabled && mInitialTransmittedPowerdBm == null) &&\n //readings must also be valid\n areValidReadings(mReadings);\n }", "public boolean isReady() {\n\t\treturn state == State.READY;\n\t}", "public boolean isReady() {\n return mIsReady;\n }", "public boolean ready();", "@Override\n public boolean isReady() {\n return isFinished();\n }", "@Override\n public boolean isReady() {\n return true;\n }", "@Override\n\tpublic boolean ready() {\n\t\treturn this.ok;\n\t}", "public Boolean isReady()\n {\n return (sensorModules != null && !sensorModules.isEmpty());\n }", "@Override\n public boolean isReady() {\n return true;\n }", "@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isReady() {\n\t\t\treturn false;\n\t\t}", "public void setReady() {\n this.isReady = true;\n }", "public boolean getIsReady() {\n return localIsReady;\n }", "boolean isReady();", "boolean isReady();", "boolean isReady();", "void isReady();", "void isReady();", "public boolean isReady() {\n return mPoints != null && mPoints.size() >= MINIMUM_SIZE;\n }", "@Override\r\n\t\t\tpublic boolean isReady() {\n\t\t\t\treturn false;\r\n\t\t\t}", "@Override\n\tpublic boolean isReady() {\n\t\treturn false;\n\t}", "public boolean getReady() {\r\n\t\treturn ready;\r\n\t}", "@Override\n\tpublic boolean isReady() {\n\t\treturn (this.baseTime == this.timeRemaining);\n\t}", "@Override\r\n public boolean isRunning()\r\n {\n return initialized;\r\n }", "@Override\n public boolean isReady() {\n return (running && !opening) || packetQueue.size() > 0;\n }", "@Override\n public boolean isReady() {\n return !isDone;\n }", "public boolean isReady() {\n return mInputPoints != null && mOutputPoints != null &&\n mInputPoints.size() == mOutputPoints.size() &&\n mInputPoints.size() >= getMinimumPoints();\n }", "public boolean signalInitialized() {\n this.initialized.set(true);\n return this.externallyReady.get();\n }", "public boolean getReadyToRun();", "public boolean ready() {\n diff = eventTime - System.currentTimeMillis(); //Step 4,5\n return System.currentTimeMillis() >= eventTime;\n }", "public boolean isReady() {\n return this.mWmService.mDisplayReady && this.mDisplayReady;\n }", "public boolean hasStarted() {\n return hasStarted(10, 500, TimeUnit.MILLISECONDS);\n }", "public void IsReady() {\n\t\tSystem.out.println(\"Table now ready for customers.\");\n\t\ttable.setState(table.GetReady());\n\t}", "public boolean isStarted() {\n\t\treturn started.get();\n\t}", "public boolean isInitialSetuped(){\r\n\t\treturn initialSetuped;\r\n\t}", "public boolean isInitier() {\n\t\treturn getStatut().equals(StatusBonPreparation.INITIER);\n\t}", "public boolean hasBeenStarted() {\n return getLastAnswer() != null;\n }", "public boolean hasStarted() {\n return mStarted;\n }", "public boolean isStarting() {\n\t\treturn starting;\n\t}", "public boolean ready ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"ready\", true);\n $in = _invoke ($out);\n boolean $result = $in.read_boolean ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return ready ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public boolean shouldHaveStarted() {\n return mCameraStarted.get();\n }", "protected boolean isFinished() {\n \tif(timeSinceInitialized() >= 1.75){\n \t\treturn true;\n \t}\n return false;\n }", "private boolean isNextReady()\n {\n return __m_NextReady;\n }", "public boolean isIsReadyToTransmit() {\n return isReadyToTransmit;\n }", "public boolean isReady(){\n return !result.equals(\"\");\n }", "private boolean isReady() {\n for (Rotor rotor : rotors)\n if (rotor == null)\n return false;\n return (stator != null && reflector != null && plugboard != null);\n }", "public boolean isServiceReady();", "public void setReady() {\n\t\tthis.state = State.READY;\n\t}", "boolean hasStarted() {\n return hasStarted;\n }", "public boolean isAvailable(){\n\t\ttry{\n\t\t\tgetPrimingsInternal(\"Test\", \"ATGATGATGATGATGATGATG\");\n\t\t}\n\t\tcatch(IOException e){\n\t\t\treturn false;\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isStarted() {\n return started;\n }", "public void setReadyToRun(boolean ready);", "public boolean isStartingUp() {\r\n\t\treturn isStartingUp;\r\n\t}", "public boolean isReadyForRelease() {\r\n return true;\r\n }", "public boolean ready() {\n pos = new Pos(\"200001\", \"0123456789\", \"75621477\");\n //todo card = read CardData;\n saveStatus = \"1\";\n NetworkServer.getInstance().connect();\n return true;\n }", "public boolean ready() {\n try {\n return in.available() > 0;\n } catch (IOException x) {\n return false;\n }\n }", "public boolean isStarted(){\n \treturn started;\n }", "public void setReady() {\n\t\tstate = State.READY;\n\t}", "public boolean isInputModelReady()\n {\n return inputModelReady;\n }", "public final boolean isStarted() {\n return started;\n }", "public boolean hasInitialResponse() {\n return instance.hasInitialResponse();\n }", "protected final boolean isReady() {\n // check if visible (invisible components are ok to be not ready)\n if (!this.isVisible()) {\n return true;\n }\n if (!this.isDisplayable()) {\n return true;\n }\n // check if this is not ready\n if (!ready) {\n return false;\n }\n // check if any child is not ready\n for (BlankDialogModule module : childModules) {\n if (!module.isReady()) {\n return false;\n }\n }\n // all ready!\n return true;\n }", "public boolean signalExternallyReady() {\n this.externallyReady.set(true);\n return this.initialized.get();\n }", "public boolean isStarted() {\n \t\treturn isStarted;\n \t}", "public boolean isStarted()\n\t{\n\t\treturn isStarted;\n\t}", "public boolean isReadyToParse() {\r\n\t\treturn this.readyToParse;\r\n\t}", "public boolean verifyAndSetStatus() {\n if (status == FINISHED) {\n // No further checks needed\n return false;\n }\n \n if (Float.compare(estimation, 0f) <= 0) {\n if (status == READY_FOR_ESTIMATION) {\n return false;\n } else {\n status = READY_FOR_ESTIMATION;\n return true;\n }\n } else {\n // If no sprint was yet assigned, we must be in state\n // READY_FOR_SPRINT, otherwise in state IN_SPRINT\n if (sprint == null) {\n if (status == READY_FOR_SPRINT) {\n return false;\n } else {\n status = READY_FOR_SPRINT;\n return true;\n }\n } else {\n if (status == IN_SPRINT) {\n return false;\n } else {\n status = IN_SPRINT;\n return true;\n }\n }\n }\n }", "@Override\n protected boolean isFinished() {\n return (extend || timeSinceInitialized() >= 1.5);\n }", "private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}", "boolean hasStartingInfo();", "public boolean isLoaded() {\n\t\treturn started;\n\t}", "private final boolean size_ready ()\n {\n next_step (in_progress.data (), in_progress.size (),\n message_ready, !in_progress.has_more());\n return true;\n }", "public void setReady(final boolean isReady)\r\n {\r\n _isReady = isReady;\r\n }", "public void setIsReady(boolean param) {\n // setting primitive attribute tracker to true\n localIsReadyTracker = true;\n\n this.localIsReady = param;\n }", "protected boolean isAvailable() {\r\n\t\treturn true;\r\n\t}", "public boolean fileIsReady()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(notFound)\n\t\t\t{\n\t\t\t\tisReady = false;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tisReady = reader.ready();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn isReady;\n\t}", "public abstract void ready();", "boolean hasStartingConfig() {\n return startCfg_ != null;\n }", "public boolean needSetup() {\n\t\treturn needsSetup;\n\t}", "boolean isStarted();", "boolean isStarted();", "public Boolean isDatabaseReady() {\n\t\tif (databaseIsReady == false) {\n\t\t\tdatabaseIsReady = tableExists(SERVICE_STATE_TABLE);\n\t\t}\n\t\treturn databaseIsReady;\n\t}", "public synchronized boolean isStarted() {\n\t\treturn State.STARTED.equals(state);\n\t}", "@java.lang.Override\n public boolean hasPlayready() {\n return playready_ != null;\n }", "protected boolean isFinished() {\n\t\treturn Robot.oi.ds.isAutonomous();\n\t}", "public boolean getCoordsReady() {\n\t\treturn coordsReady;\n\t}", "public boolean start()\n\t{\n\t\tif(tirePressure <= 0.0)\n\t\t{\n\t\t\tSystem.out.println(\"Cannot start\");\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Started successfully\");\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean isReady() throws java.io.IOException {\n\n return br.ready();\n }", "public boolean mustWait() {\n return mustWait;\n }", "public boolean initialized() {\n return true;\r\n }", "public Boolean getStarted() {\n\t\treturn this.started;\n\t}", "private boolean checkReady() {\n if (mMap == null) {\n Toast.makeText(this, \"Map not ready!\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "public boolean isSetup(){\n return isSetup;\n }", "private boolean isStartable()\n {\n if (! isAlive() && nextStartTime <= System.currentTimeMillis())\n {\n return true;\n }\n else\n {\n return false;\n }\n }" ]
[ "0.7378661", "0.73626095", "0.73512393", "0.73396647", "0.72758067", "0.72758067", "0.7206278", "0.71628755", "0.7141484", "0.713858", "0.7131988", "0.7127628", "0.7082015", "0.707158", "0.7061348", "0.70078874", "0.70078874", "0.70073813", "0.7004109", "0.69354355", "0.69354355", "0.69354355", "0.6917956", "0.6917956", "0.69075227", "0.6905538", "0.68733656", "0.6862697", "0.6808392", "0.6792898", "0.6784715", "0.67845136", "0.676373", "0.67044026", "0.6690042", "0.668912", "0.66620535", "0.6627193", "0.6590372", "0.65773433", "0.65658164", "0.6519092", "0.65021783", "0.6501217", "0.64971465", "0.6474557", "0.64718616", "0.6464806", "0.6464344", "0.6454464", "0.64501387", "0.6448496", "0.6442052", "0.6437627", "0.64195406", "0.6410454", "0.6342045", "0.63403505", "0.6336107", "0.6329886", "0.6326233", "0.6314018", "0.6309038", "0.6287636", "0.6284702", "0.6277678", "0.6266779", "0.6254575", "0.6253324", "0.6240604", "0.6237652", "0.6236088", "0.62342846", "0.62339777", "0.62335443", "0.6224033", "0.62188077", "0.62067676", "0.61882484", "0.61822426", "0.6171528", "0.6164261", "0.61628616", "0.61555046", "0.61549026", "0.6148251", "0.6148251", "0.6136147", "0.6121802", "0.61169356", "0.6109028", "0.6106499", "0.61004126", "0.60915273", "0.6090922", "0.60802054", "0.6077109", "0.6075299", "0.60746115", "0.6073388" ]
0.6814416
28
Estimate position, transmitted power and path loss exponent.
@Override public void estimate() throws RadioSourceEstimationException, NotReadyException, LockedException { if (isLocked()) { throw new LockedException(); } if (!isReady()) { throw new NotReadyException(); } try { mLocked = true; if (mListener != null) { mListener.onEstimateStart(this); } createInnerEstimatorsIfNeeded(); final List<RangingReadingLocated<S, P>> rangingReadings = new ArrayList<>(); final List<RssiReadingLocated<S, P>> rssiReadings = new ArrayList<>(); for (final ReadingLocated<P> reading : mReadings) { if (reading instanceof RangingReadingLocated) { rangingReadings.add((RangingReadingLocated<S, P>) reading); } else if (reading instanceof RssiReadingLocated) { rssiReadings.add((RssiReadingLocated<S, P>) reading); } else if (reading instanceof RangingAndRssiReadingLocated) { rangingReadings.add(createRangingReading( (RangingAndRssiReadingLocated<S, P>) reading)); rssiReadings.add(createRssiReading( (RangingAndRssiReadingLocated<S, P>) reading)); } } //estimate position using ranging data, if possible P estimatedPosition = null; if (!mRssiPositionEnabled) { mRangingInnerEstimator.setUseReadingPositionCovariances( mUseReadingPositionCovariances); mRangingInnerEstimator.setHomogeneousLinearSolverUsed( mUseHomogeneousRangingLinearSolver); mRangingInnerEstimator.setReadings(rangingReadings); mRangingInnerEstimator.setInitialPosition(mInitialPosition); mRangingInnerEstimator.estimate(); mEstimatedPositionCoordinates = mRangingInnerEstimator.getEstimatedPositionCoordinates(); mEstimatedPositionCovariance = mRangingInnerEstimator.getEstimatedPositionCovariance(); estimatedPosition = mRangingInnerEstimator.getEstimatedPosition(); } //estimate transmitted power and/or pathloss if enabled if (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled || mRssiPositionEnabled) { mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled); mRssiInnerEstimator.setInitialPosition(estimatedPosition); mRssiInnerEstimator.setTransmittedPowerEstimationEnabled( mTransmittedPowerEstimationEnabled); mRssiInnerEstimator.setInitialTransmittedPowerdBm( mInitialTransmittedPowerdBm); mRssiInnerEstimator.setPathLossEstimationEnabled( mPathLossEstimationEnabled); mRssiInnerEstimator.setInitialPathLossExponent( mInitialPathLossExponent); mRssiInnerEstimator.setReadings(rssiReadings); mRssiInnerEstimator.estimate(); if (mRssiPositionEnabled) { mEstimatedPositionCoordinates = mRssiInnerEstimator.getEstimatedPositionCoordinates(); mEstimatedPositionCovariance = mRssiInnerEstimator.getEstimatedPositionCovariance(); } if (mTransmittedPowerEstimationEnabled) { //transmitted power estimation enabled mEstimatedTransmittedPowerdBm = mRssiInnerEstimator.getEstimatedTransmittedPowerdBm(); mEstimatedTransmittedPowerVariance = mRssiInnerEstimator.getEstimatedTransmittedPowerVariance(); } else { //transmitted power estimation disabled mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm; mEstimatedTransmittedPowerVariance = null; } if (mPathLossEstimationEnabled) { //pathloss exponent estimation enabled mEstimatedPathLossExponent = mRssiInnerEstimator.getEstimatedPathLossExponent(); mEstimatedPathLossExponentVariance = mRssiInnerEstimator.getEstimatedPathLossExponentVariance(); } else { //pathloss exponent estimation disabled mEstimatedPathLossExponent = mInitialPathLossExponent; mEstimatedPathLossExponentVariance = null; } //build covariance matrix if (mRssiPositionEnabled) { //if only RSSI estimation is done, we use directly the available estimated covariance mEstimatedCovariance = mRssiInnerEstimator.getEstimatedCovariance(); } else { //if both ranging and RSSI data is used, we build covariance matrix by setting //position covariance estimated by ranging estimator into top-left corner, and then //adding covariance terms related to pathloss exponent and transmitted power final Matrix rssiCov = mRssiInnerEstimator.getEstimatedCovariance(); if (mEstimatedPositionCovariance != null && rssiCov != null) { final int dims = getNumberOfDimensions(); int n = dims; if (mTransmittedPowerEstimationEnabled) { n++; } if (mPathLossEstimationEnabled) { n++; } final int dimsMinus1 = dims - 1; final int nMinus1 = n - 1; mEstimatedCovariance = new Matrix(n, n); mEstimatedCovariance.setSubmatrix(0, 0, dimsMinus1, dimsMinus1, mEstimatedPositionCovariance); mEstimatedCovariance.setSubmatrix(dims, dims, nMinus1, nMinus1, rssiCov); } else { mEstimatedCovariance = null; } } } else { mEstimatedCovariance = mEstimatedPositionCovariance; mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm; mEstimatedTransmittedPowerVariance = null; mEstimatedPathLossExponent = mInitialPathLossExponent; mEstimatedPathLossExponentVariance = null; } if (mListener != null) { mListener.onEstimateEnd(this); } } catch (final AlgebraException e) { throw new RadioSourceEstimationException(e); } finally { mLocked = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public void setPathLossExponent(final Integer pathLossExponent) {\n this.pathLossExponent = pathLossExponent;\n }", "public double getExpLoss()\r\n\t{\treturn this.expLoss;\t}", "@Override\n\tpublic double GetValue() {\n\t\tdouble spot = inputs.getSpot();\n\t\tdouble strike = inputs.getStrike();\n\t\tdouble vol = inputs.getVol();\n\t\tint noSteps=inputs.getNoSteps();\n\t\tdouble expiry=inputs.getExpiry();\n\t OptionType type=inputs.getType();\n\t ExerciseType exercise=inputs.getExercise();\n\t InterestRate interestRate=inputs.getR();\n\t\t\n\t double timestep = expiry/noSteps;\n\t double DF = Math.exp(-interestRate.GetRate(1.)*timestep);\n\t double temp1 = Math.exp((interestRate.GetRate(1.) + vol * vol)*timestep);\n\t double temp2 = 0.5 * (DF + temp1);\n\t double up = temp2 + Math.sqrt(temp2*temp2 - 1);\n\t double down = 1/ up;\n\t double probaUp = (Math.exp(interestRate.GetRate(1.) * timestep) - down)/(up -down) ;\n\t double probaDown = 1 - probaUp;\n\n\t //stock price tree\n\t\tstockPrice[0][0]=spot;\n\t for (int n = 1; n <= noSteps; n ++) {\n for (int j = n; j > 0; j--){\n \tstockPrice[j][n] = up * stockPrice[j-1][n-1];\n }\n \t\tstockPrice[0][n] = down * stockPrice[0][n-1];\n }\n\t \n\t //last column set payoffs\n\t\tfor (int j = 0; j <= noSteps; j++) {\n\t\t\t\tif(type.equals(OptionType.CALL)) {\n\t\t\t\t\tpayOff[j][noSteps] = Math.max(this.stockPrice[j][noSteps] - strike, .0);\n\t\t\t\t}else {\n\t\t\t\t\tpayOff[j][noSteps] = Math.max(strike - this.stockPrice[j][noSteps], .0);\n\t\t\t\t}\n\t\t}\n\n\t\t\n\t //payoff tree in backwardation\n\t \n\t for (int i = noSteps ; i >= 1; i--) {\n for (int j = 0; j <= i-1; j++) {\n\t \tif(exercise.equals(ExerciseType.AMERICAN)) { \n\t //American\t\n\t \t\tif(type.equals(OptionType.CALL)) {\n\t \t\t\t\tpayOff[j][i-1] = Math.max(DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]) ,\n\t \t\t\t\tMath.max(this.stockPrice[j][i-1] - strike, .0));\n\t \t\t\t\n\t \t\t}else \tpayOff[j][i-1] = Math.max(DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]) ,\n\t \t\t\t\tMath.max(strike - this.stockPrice[j][i-1] , .0));\n\t \t}else { \n\t \t\t\t//European put and call option\n\t \t\t\t\tpayOff[j][i-1] = DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]);\n\t }\n }\n }\n\t \n\t double deltaUp = (payOff[0][2]-payOff[1][2])/(stockPrice[0][2]-stockPrice[1][2]);\n\t double deltaDown = (payOff[1][2]-payOff[2][2])/(stockPrice[1][2]-stockPrice[2][2]);\n\t delta = (deltaUp + deltaDown) /2;\n\t gamma = (deltaUp-deltaDown)/((stockPrice[0][2]-stockPrice[2][2])/2);\n\t theta = (payOff[1][2]-payOff[0][0])/(365*2*timestep);//time in days\n\t \n\t long rounded = Math.round(payOff[0][0]*10000);\n\t return rounded/10000.0;\n\t}", "private void calculateSensitivityExponent() {\n this.sensitivityExponent = Math.exp(-1.88 * percentageSensitivity);\n }", "double energy() {\n\n // brightness values\n double brU = 0;\n double brD = 0;\n double brR = 0;\n double brL = 0;\n double brDR = 0;\n double brTR = 0;\n double brDL = 0;\n double brTL = 0;\n if (this.up != null) {\n brU = this.up.brightness;\n }\n if (this.down != null) {\n brD = this.down.brightness;\n }\n\n if (this.right != null) {\n brR = this.right.brightness;\n }\n\n if (this.left != null) {\n brL = this.left.brightness;\n }\n\n if (this.downRight() != null) {\n brDR = this.downRight().brightness;\n }\n\n if (this.downLeft() != null) {\n brDL = this.downLeft().brightness;\n }\n\n if (this.topLeft() != null) {\n brTL = this.topLeft().brightness;\n }\n\n if (this.topRight() != null) {\n brTR = this.topRight().brightness;\n }\n\n\n double vertEnergy = (brTL + brL + brDL) - (brTR + brR + brDR);\n double horizEnergy = (brTL + brU + brTR) - (brDL + brD + brDR);\n\n return Math.sqrt((vertEnergy * vertEnergy) + (horizEnergy * horizEnergy));\n\n }", "private double procesarOperadorExponente() throws Exception {\r\n double resultado = procesarCoeficientesFuncionesParentesis();\r\n while (!colaDeTokens.isEmpty()) {\r\n switch (colaDeTokens.element().tipoToken) {\r\n case EXPONENTE:\r\n \r\n colaDeTokens.remove();\r\n resultado = Math.pow(resultado, procesarCoeficientesFuncionesParentesis());\r\n continue;\r\n }\r\n break;\r\n }\r\n return resultado;\r\n }", "@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }", "public double costNEX() {\r\n double diff=0;\r\n double intensity=0;\r\n \r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n\r\n this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n intensity = this.body2[x][y][z].radiationIntensity(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (intensity>0) {\r\n// LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n this.body2[x][y][z].addCurrentDosis(intensity);\r\n } \r\n diff += Math.pow((this.body2[x][y][z].getGoalDosis()-this.body2[x][y][z].getCurrentDosis()),2);\r\n// LogTool.print(\" diffdose \" + (Looper.body2[x][y][z].getGoalDosis()-Looper.body2[x][y][z].getCurrentDosis()),\"notification\");\r\n } \r\n }\r\n }\r\n return Math.sqrt(diff);\r\n// return Math.random();\r\n }", "double getrx() {\nreturn this.rx;\n }", "public double estimatedEnergyPerPanel() {\n\t\tif (estimatedEnergyPerPanel < 0) {\n\t\t\treturn estimatedEnergyPerPanel;\n\t\t}\n\t\t// if est. EnergyPerPanel hasn't been found yet, we find it here...\n\t\tdouble wattToKW = .001;\n\t\testimatedEnergyPerPanel = systemCap * wattToKW;\n\t\t// the returned estimated energy will factor in the powerTolerance,\n\t\t// which typically equates to percent loss on the panel\n\t\treturn estimatedEnergyPerPanel -= estimatedEnergyPerPanel\n\t\t\t\t* (.01 * powerTolerance);\n\t}", "@Override\n public double evaluate() throws Exception {\n return Math.log(getEx2().evaluate()) / Math.log(getEx2().evaluate());\n }", "private static final int getPower(Parsing t) {\n\t\tchar s='+';\t\t// Exponent Sign\n\t\tint pow=0;\t\t// Exponent Value\n\t\tint inum=0;\t\t// Index of exponent\n\t\tint posini=t.pos;\n\t\t//System.out.print(\"....getPower on '\" + this + \"', pos=\" + pos + \": \");\n\t\tt.pos = t.length-1;\n\t\tif (Character.isDigit(t.a[t.pos])) {\n\t\t\twhile (Character.isDigit(t.a[t.pos])) --t.pos;\n\t\t\ts = t.a[t.pos];\n\t\t\tif ((s == '+') || (s == '-')) ;\t// Exponent starts here\n\t\t\telse ++t.pos;\n\t\t\tinum = t.pos;\n\t\t\tpow = t.parseInt();\n\t\t\t//System.out.print(\"found pow=\" + pow + \",pos=\" + pos);\n\t\t}\n\t\tif (pow != 0) {\t\t// Verify the power is meaningful\n\t\t\tif (t.a[0] == '(') {\n\t\t\t\tif (t.a[inum-1] != ')') pow = 0;\n\t\t\t}\n\t\t\telse {\t\t// could be e.g. m2\n\t\t\t\tfor (int i=0; i<inum; i++) {\n\t\t\t\t\t// Verify the unit is not a complex one\n\t\t\t\t\tif (!Character.isLetter(t.a[i])) pow = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (pow == 0) t.pos = posini;\n\t\telse t.pos = inum;\n\t\t//System.out.println(\" pow=\" + pow + \", pos=\" + pos);\n\t\treturn(pow);\n\t}", "public String get_exponent_part();", "private void calculateOutputPower() { \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n if (this.inputPower - this.rms >= 0) {\n setOutputPower(this.inputPower - this.rms);\n } else {\n setOutputPower(0);\n }\n }\n channel.updateOutput();\n }", "private void eToPower()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.eToPower ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "private void power(){\n this.powerX = realX * radius;\n this.powerY = realY * radius;\n }", "public double getFreeEnergy(){\n\n\t\tdouble freeEnergy = 0.;\n\n\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\tfreeEnergy -= this.layers[0][i].getState()*this.layers[0][i].getBias();\n\t\t}\n\n\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\t//System.out.println(\"x = \" + x);\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t\t/*System.out.println(\"1 = \" + this.layers[0][i].getState());\n\t\t\t\tSystem.out.println(\"2 = \" + this.connections[i][j]);\n\t\t\t\tSystem.out.println(\"x = \" + x);\n\t\t\t\tif(x != x){ this.layers[3] = null;}*/\n\t\t\t}\n\t\t\t//System.out.println(\"x = \" + x);\n\t\t\tfreeEnergy -= Math.log(1 + Math.exp(x));\n\t\t}\n\n\t\t/*\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t}\n\t\t\tfreeEnergy -= x*Sigmoid.getINSTANCE().apply(x);\n\t\t}\n\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t}\n\t\t\tdouble p = Sigmoid.getINSTANCE().apply(x);\n\t\t\tfreeEnergy += p*Math.log10(p) + (1. - p)*Math.log10(1. - p);\n\t\t}\n\t\t */\n\n\t\treturn freeEnergy;\n\t}", "public double getDescent() throws PDFNetException {\n/* 894 */ return GetDescent(this.a);\n/* */ }", "public float getUserExponent() {\n/* 195 */ return this.userExponent;\n/* */ }", "public final void power (int expo) throws ArithmeticException {\n\t\tdouble error = 0;\n\t\tint i = expo; \n\t\tdouble r = 1;\n\t\tdouble v = 1; \n\t\tlong u = underScore;\n\t\tif ((mksa&(_log|_mag)) != 0) throw new ArithmeticException\n\t\t(\"****Unit: can't power log[unit]: \" + symbol );\n\t\twhile (i > 0) { \n\t\t\tr *= factor; v *= value; \n\t\t\tu += mksa; u -= underScore; \n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti--; \n\t\t}\n\t\twhile (i < 0) { \n\t\t\tr /= factor; v /= value; \n\t\t\tu += underScore; u -= mksa;\n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti++; \n\t\t}\n\t\tif (error > 0) throw new ArithmeticException\n\t\t(\"****Unit: power too large: (\" + \")^\" + expo) ;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\tmksa = u;\n\t\t/* Decision for the new symbol */\n\t\tif ((expo != 1) && (symbol != null)) {\n\t\t\tif (expo == 0) symbol = \"\";\n\t\t\telse if (symbol.length()>0) {\n\t\t\t\tParsing t = new Parsing(symbol);\n\t\t\t\tint pow;\n\t\t\t\tpow = getPower(t);\n\t\t\t\tif (pow == 0) symbol = toExpr(symbol) + expo;\n\t\t\t\telse {\t\t\t// Combine exponents\n\t\t\t\t\ti=0;\n\t\t\t\t\tpow *= expo;\n\t\t\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\t\t\tif (expo == 1) symbol = symbol.substring(i,t.pos);\n\t\t\t\t\telse symbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public double getDistance() { \n\t\treturn Math.pow(input.getAverageVoltage(), exp) * mul; \n\t}", "public void testPower() {\r\n System.out.println(\"Power\");\r\n Double [][] n = new Double[][]{{-3., 2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, -1.1E100, -1.1E100}, \r\n {-0.0370370, 9.88212, 1., 0., 1., 0.25, 39.304, 103.05089, 0., 0.}};\r\n for(int i = 0; i < 10; i++){\r\n try{\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Power(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n catch(PoweredZeroByZeroException e){\r\n assertTrue(e instanceof PoweredZeroByZeroException);\r\n }\r\n }\r\n }", "@Test\n public void testApproximation() {\n int N = 100;\n Mesh mesh = new Mesh(equation.t0, equation.tN, N);\n Noise noise = new Noise(mesh, 10);\n\n // We will use SDG method to approximate with a polynomial degree of p = 4.\n int p = 4;\n SDG sdg = new SDG();\n ApproxGlobal approxGlobal = sdg.Solve(equation, noise, mesh, p);\n\n // For every element, we check that the approximation at the endpoint is within 10e-10\n // of the analytical solution.\n for(int i = 0; i < approxGlobal.localApproximations.length; i++){\n ApproxLocal local = approxGlobal.localApproximations[i];\n\n double totalNoise = noise.sumUntil(i);\n double t = mesh.elements[i].upperEndpoint;\n\n double expected = this.equation.exactSolution(t, totalNoise);\n double actual = local.terminal();\n\n assertEquals(expected, actual, 10e-10);\n }\n }", "float getPower();", "public double getPvpExpLoss() \r\n\t{\treturn this.pvpExpLoss;\t}", "protected void gainEXP(int gain) {\n this.totalEXP += gain;\n }", "public double getEnergy() { return energy; }", "public abstract String getExponent();", "public double powE(double exp) {\n return Double.parseDouble(String.format(\"%.8f\", Math.pow(StrictMath.E, exp)));\n }", "public static double exp() {\r\n System.out.println(\"What is your base?\");\r\n int b = Main.sc.nextInt();\r\n System.out.println(\"What is your power?\");\r\n int p = Main.sc.nextInt();\r\n double answer = Math.pow((double) b, (double) p);\r\n return answer;\r\n }", "int getCurEXP();", "int getCurEXP();", "double setrx(double rx) {\nreturn this.rx;\n }", "private double calcEnergy(int x, int y) {\n if (x == 0 || y == 0 || x == width - 1 || y == height - 1) return BORDER_ENERGY;\n return Math.sqrt(\n Math.pow(getRGBColor(x + 1, y, R) - getRGBColor(x - 1, y, R), 2)\n + Math.pow(getRGBColor(x + 1, y, G) - getRGBColor(x - 1, y, G), 2)\n + Math.pow(getRGBColor(x + 1, y, B) - getRGBColor(x - 1, y, B), 2)\n + Math.pow(getRGBColor(x, y + 1, R) - getRGBColor(x, y - 1, R), 2)\n + Math.pow(getRGBColor(x, y + 1, G) - getRGBColor(x, y - 1, G), 2)\n + Math.pow(getRGBColor(x, y + 1, B) - getRGBColor(x, y - 1, B), 2)\n );\n }", "public double exponent()\n\t{\n\t\treturn _dblExponent;\n\t}", "public void train() {\r\n\t\texp += 2;\r\n\t\tenergy -= 5;\r\n\t\tSystem.out.println(\"Gained 2 experience.\");\t\r\n\t}", "BigInteger getPower_consumption();", "java.lang.String getTxpower();", "@Override\n public double evaluate(Map<String, Double> assignment) throws Exception {\n\n double res = Math.log(getEx2().evaluate(assignment)) / Math.log(getEx2().evaluate(assignment));\n return res;\n }", "float getPreGain();", "private double computeInfoGain(Instances data)\n throws Exception {\n\n double infoGain = computeEntropy(data);\n Instances[] splitData = m_localModel.split(data);\n for (int j = 0; j < m_localModel.numSubsets(); j++) {\n if (splitData[j].numInstances() > 0) {\n infoGain -= ((double) splitData[j].numInstances() /\n (double) data.numInstances()) *\n computeEntropy(splitData[j]);\n }\n }\n return infoGain;\n }", "protected double residual(final Solution<P> currentEstimation, final int i) {\n //Model fitted internally is equal to:\n //Pr (dBm) = 10 * log(Pte * k^n / d^n) = 10*n*log(k) + 10*log(Pte) - 5*n*log(d^2)\n //where:\n //Pr is received, expressed in dBm\n //Pte is equivalent transmitted power, expressed in dBm\n //k is a constant equal to k = c^2 / (pi * f)^2, where c is speed of light\n //and d is equal to distance between fingerprint and estimated position\n final RssiReadingLocated<S, P> reading = mReadings.get(i);\n final double frequency = reading.getSource().getFrequency();\n\n final double pathLossExponent = currentEstimation.getEstimatedPathLossExponent();\n\n //compute k as the constant part of the isotropic received power formula\n //so that: Pr = Pte*k^n/d^n\n final double k = RssiRadioSourceEstimator.SPEED_OF_LIGHT /\n (4.0 * Math.PI * frequency);\n final double kdB = 10.0 * pathLossExponent * Math.log10(k);\n\n //get distance from estimated radio source position and reading position\n final P readingPosition = reading.getPosition();\n final P radioSourcePosition = currentEstimation.getEstimatedPosition();\n\n final double sqrDistance = radioSourcePosition.sqrDistanceTo(readingPosition);\n\n final double transmittedPowerdBm = currentEstimation.\n getEstimatedTransmittedPowerdBm();\n\n //compute expected received power assuming isotropic transmission\n //and compare agains measured RSSI at fingerprint location\n final double expectedRSSI = kdB + transmittedPowerdBm -\n 5.0 * pathLossExponent * Math.log10(sqrDistance);\n final double rssi = reading.getRssi();\n\n return Math.abs(expectedRSSI - rssi);\n }", "public double getExp() {\n return exp;\n }", "public double getTransferEffeciency() {\n double w;\n w = (x < y ? x : y);\n return w / thickness;\n\n }", "public void ApplyMovement() {\n long currTime = SystemClock.uptimeMillis();\n if(currTime - lastUpdateTime < 16){\n return;\n }\n lastUpdateTime = currTime;\n\n\n double tl_power_raw = movement_y-movement_turn+movement_x*1.5;\n double bl_power_raw = movement_y-movement_turn- movement_x*1.5;\n double br_power_raw = -movement_y-movement_turn-movement_x*1.5;\n double tr_power_raw = -movement_y-movement_turn+movement_x*1.5;\n\n\n\n\n //find the maximum of the powers\n double maxRawPower = Math.abs(tl_power_raw);\n if(Math.abs(bl_power_raw) > maxRawPower){ maxRawPower = Math.abs(bl_power_raw);}\n if(Math.abs(br_power_raw) > maxRawPower){ maxRawPower = Math.abs(br_power_raw);}\n if(Math.abs(tr_power_raw) > maxRawPower){ maxRawPower = Math.abs(tr_power_raw);}\n\n //if the maximum is greater than 1, scale all the powers down to preserve the shape\n double scaleDownAmount = 1.0;\n if(maxRawPower > 1.0){\n //when max power is multiplied by this ratio, it will be 1.0, and others less\n scaleDownAmount = 1.0/maxRawPower;\n }\n tl_power_raw *= scaleDownAmount;\n bl_power_raw *= scaleDownAmount;\n br_power_raw *= scaleDownAmount;\n tr_power_raw *= scaleDownAmount;\n\n\n //now we can set the powers ONLY IF THEY HAVE CHANGED TO AVOID SPAMMING USB COMMUNICATIONS\n topLeft.setPower(tl_power_raw);\n bottomLeft.setPower(bl_power_raw);\n bottomRight.setPower(br_power_raw);\n topRight.setPower(tr_power_raw);\n }", "@Test\n\tpublic void testGetEnergyConsumption() {\n\t\tController control = new Controller();\n\t\tBasicRobot robot = new BasicRobot();\n\t\tExplorer explorer = new Explorer();\n\t\tcontrol.setBuilder(Order.Builder.DFS);\n\t\tcontrol.setRobotAndDriver(robot, explorer);\n\t\trobot.setMaze(control);\n\t\tcontrol.turnOffGraphics();\n\t\tcontrol.setSkillLevel(0);\n\t\tcontrol.switchFromTitleToGenerating(0);\n\t\tcontrol.waitForPlayingState();\n\t\texplorer.setRobot(robot);\n\t\tassertTrue(explorer.getEnergyConsumption() == 0);\n\t\tif(robot.distanceToObstacle(Direction.FORWARD) > 0) {\n\t\t\trobot.move(1, false);\n\t\t\tassertTrue(explorer.getEnergyConsumption() == 6);\n\t\t}\n\t\telse if(robot.distanceToObstacle(Direction.RIGHT) > 0) {\n\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\trobot.move(1, false);\n\t\t\tassertTrue(explorer.getEnergyConsumption() == 10);\n\t\t}\n\t\telse if(robot.distanceToObstacle(Direction.LEFT) > 0) {\n\t\t\trobot.rotate(Turn.LEFT);\n\t\t\trobot.move(1, false);\n\t\t\tassertTrue(explorer.getEnergyConsumption() == 11);\n\t\t}\n\t\telse if(robot.distanceToObstacle(Direction.BACKWARD) > 0) {\n\t\t\trobot.rotate(Turn.AROUND);\n\t\t\trobot.move(1, false);\n\t\t\tassertTrue(explorer.getEnergyConsumption() == 15);\n\t\t}\n\t\tassertTrue(explorer.getEnergyConsumption() > 0);\n\t}", "public double calculateXpForLevel(int level) {\n double xpResult = 0;\n\n for (int x = 1; x < level; x++) {\n xpResult += Math.floor(x + 300 * Math.pow(2, x / 7.0));\n\n }\n\n return Math.floor(xpResult / 5);\n }", "private double evalState(LabyrinthGameState state) {\n double score = 0;\n\n //Assign Percentages of Score\n final double treasureValTotal = 80; //Based on number of treasures left\n final double nearTreasureValTotal = 15; //Based on proximity to treasure\n final double typeTileValTotal = 1; //Based on which tile you are on\n final double numberOfConnectionsValTotal = 4; //Based on how many places you can move\n\n double treasureVal = 0;\n double nearTreasureVal = 0;\n double typeTileVal = 0;\n double numberOfConnectionsVal = 0;\n\n //calculating your treasure points\n treasureVal = (6.0 - (double)(state.getPlayerDeckSize(\n Player.values()[playerNum])))/6.0*treasureValTotal;\n\n int [] yourPos = state.getPlayerLoc(Player.values()[playerNum]).getLoc();\n int [] treasurePos = state.findTreasureLoc(Player.values()[playerNum]);\n if (treasurePos[0] == -1) {\n nearTreasureVal = (10.0 - findDistance(yourPos, findHome()))\n / 10.0 * nearTreasureValTotal;\n } else {\n nearTreasureVal = (10.0 - findDistance(yourPos, treasurePos))\n / 10.0 * nearTreasureValTotal;\n }\n\n //calculating points for the type of tile it can end on\n switch (state.getPlayerLoc(Player.values()[playerNum]).getType()) {\n case STRAIGHT:\n typeTileVal = 5.0 / 10.0 * typeTileValTotal;\n break;\n case INTERSECTION:\n typeTileVal = typeTileValTotal;\n break;\n default:\n typeTileVal = 3.0 / 10.0 * typeTileValTotal;\n break;\n }\n\n //calculating points based on # of connections created\n numberOfConnectionsVal = ((double)generatePossibleMoveActions(state).size()\n /49.0*numberOfConnectionsValTotal);\n\n //calculating final score\n score = (treasureVal + nearTreasureVal +\n typeTileVal + numberOfConnectionsVal)/100.0;\n\n return score;\n }", "public double energy(int x, int y) {\n if (!validCoordinates(x, y)) { throw new IndexOutOfBoundsException(\"x or y not in range.\"); }\n if (isBorder(x, y)) { return 1000.0; }\n return Math.sqrt(hzDiff(x, y) + vtDiff(x, y));\n }", "public void updateVelocity() {\n \t// Step 1: input power and convert the power to a force based on the starting velocity\n \tsetWeight();\n \tdouble trainMass = trainWeight*KG_PER_POUND;\n \t\n \t// this is ensuring that we never get a negative speed\n \tif (this.currentSpeed == 0) {\n \t\tthis.force = (this.powerIn)/1;\n \t} else {\n \t\tthis.force = (this.powerIn)/this.currentSpeed;\n \t}\n \tsetGrade();\n \t\n \t// Step 2: Calculate the slope of the train's current angle (Degrees = Tan-1 (Slope Percent/100))\n \tthis.slope = Math.atan2(this.grade,100);\n \tdouble angle = Math.toDegrees(this.slope);\n \t\n \t// Step 3: Calculate the forces acting on the train using the coefficient of friction\n \t// and the train's weight in lbs converted to kg divided over the wheels (where the force is technically\n \t// being applied times gravity (G)\n \tthis.normalForce = (trainMass/this.trainWheels) * G * Math.sin((angle*Math.PI)/180);\t// divide by 12 for the number of wheels\n \tthis.downwardForce = (trainMass/this.trainWheels) * G * Math.cos((angle*Math.PI)/180);\t// divide by 12 for the number of wheels\n\n \t// compute friction force\n \tthis.friction = (FRICTION_COEFFICIENT * this.downwardForce) + this.normalForce;\n \t\n \t// sum of the forces\n \tthis.totalForce = this.force - this.friction;\n \t \t\n \tthis.force = this.totalForce;\n \t\n \t// Step 4: Calculate acceleration using the F = ma equation, where m = the mass of the body moving\n \tthis.trainAcceleration = this.force/trainMass;\n \t\n \t// and have to check to make sure this acceleration does not exceed our max.\n \tif (this.trainAcceleration >= TRAIN_MAX_ACCELERATION * 1) {\t// time elapsed (one second)\n \t\t// set the acceleration as the max acceleration because we cannot exceed that\n \t\tthis.trainAcceleration = TRAIN_MAX_ACCELERATION * 1;\t// time elapsed (one second)\n \t}\n \t\n\t\temerBrake = this.getEBrake();\n \t// decelerates the train based on the values given in the spec sheet for the emergency brake\n \tif (emerBrake) {\n \t\tthis.trainAcceleration += (TRAIN_MAX_ACCELERATION_E_BRAKE*1);\n \t}\n \t\n \t// decelerates the train based onthe values given in the spec sheet for the service brake\n \tif(serviceBrake) {\n \t\tthis.trainAcceleration += (TRAIN_MAX_ACCELERATION_SERVICE_BRAKE*1);\n \t}\n \t\n \t// Step 5: Calculate the final speed by adding the old speed with the acceleration x the time elapsed (one second)\n \tthis.finalSpeed = this.currentSpeed + (this.trainAcceleration * 1);\n \t\n \t// NO NEGATIVE SPEEDS YINZ\n \tif(this.finalSpeed < 0) {\n this.finalSpeed = 0;\n }\n \t\n \t// resetting the current speed based on our calculations\n \tthis.currentSpeed = this.finalSpeed;\n \tthis.distTravelled = this.currentSpeed * 1; // speed times the time between clock ticks = distance travelled\n \t//System.out.println(finalSpeed);\n \t\n \tif(!(currentBlock == this.position.getCurrentBlock())) {\n \t\tmetersIn = 0;\n \t} else {\n \t\tmetersIn += this.distTravelled;\n \t}\n \tthis.position.moveTrain(this.distTravelled); // method call to tell the position class how far to move the train\n \t\n }", "private void calculate() {\n\t\tSharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\tString arrowSpeed = sharedPref.getString(SettingsActivity.ARROW_SPEED, DEFAULT_ARROW_SPEED+\"\"); \r\n\r\n\t\tfinal double mToYards = 0.9144;\r\n\t\tfinal int mToMm = 1000;\r\n\r\n\t\ttry {\r\n\t\t\tfinal double v = Double.parseDouble(arrowSpeed); // Velocity\r\n\r\n\t\t\tdouble d = Double.parseDouble(findSelectedEditText(findSelectedRadioButton(\r\n\t\t\t\t\tR.id.radioGroupDistance), \"Distance\").getText().toString()); // Distance\r\n\t\t\tdouble e = Double.parseDouble(findSelectedEditText(findSelectedRadioButton(\r\n\t\t\t\t\tR.id.radioGroupElevation), \"Elevation\").getText().toString()); //Elevation\r\n\r\n\t\t\tString distanceType = findSelectedRadioButton(R.id.radioGroupDistance).getText().toString();\r\n\t\t\tString elevationType = findSelectedRadioButton(R.id.radioGroupElevation).getText().toString();\r\n\r\n\t\t\tif (distanceType == \"Yards\") {\r\n\t\t\t\td *= mToYards;\r\n\t\t\t}\r\n\r\n\t\t\tif (elevationType.equals(\"Yards\")) {\r\n\t\t\t\te *= mToYards;\r\n\t\t\t} else if (elevationType.equals(\"Degrees\")) {\r\n\t\t\t\te = Math.toRadians(e);\r\n\t\t\t\te = d * Math.sin(e);\r\n\t\t\t} else if (elevationType.equals(\"Radians\")) {\r\n\t\t\t\te = d * Math.sin(e);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tdouble da = Math.sqrt(Math.pow(d, 2) - Math.pow(e, 2)); // Calculates horizontal distance\r\n\r\n\t\t\tdouble radians = Math.atan((-Math.pow(v, 2) + Math.sqrt(Math.pow(v, 4) - Math.pow(g*d, 2)))/(g*d));\r\n\t\t\tdouble radians2 = Math.atan((-Math.pow(v, 2) + Math.sqrt(Math.pow(v, 4) + 2*e*g*Math.pow(v, 2) - Math.pow(g*da, 2)))/(g*da));\r\n\r\n\t\t\tdouble answer = -Math.tan(radians2-Math.asin(e/d)-radians);\r\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\r\n\r\n\t\t\tString result = df.format(answer * mToMm) + \"mm\";\r\n\r\n\t\t\tif (answer > 0) {\r\n\t\t\t\tfindTextView(\"textViewDisplay\").setText(message + arrowSpeed + speedUnit + resultPositiveMessage + result);\r\n\t\t\t} else {\r\n\t\t\t\tfindTextView(\"textViewDisplay\").setText(message + arrowSpeed + speedUnit + resultNegativeMessage + result);\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tInputMethodManager inputManager = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE); \r\n\t\t\tinputManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\r\n//\t\t\tInputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n//\t\t\timm.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tcT(\"Error Detected\");\r\n\t\t}\r\n\t}", "public java.math.BigDecimal getInput_power()\n\t\tthrows java.rmi.RemoteException;", "protected double getEnginePower(){\n return enginePower;\n }", "@Override\n public double getEnergyLevel() {\n return energy;\n }", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "int getEnergy();", "@Override\r\n\tpublic float getEnergyConsumption() {\r\n\t\treturn 2500 - robot.getBatteryLevel();\r\n\t}", "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "public int getPow() {\n return _pow;\n }", "float getPostGain();", "SXEstimate(Pcfg grammar) {\n super(grammar);\n this.outsideCache = new Long2DoubleOpenHashMap();\n this.insideCache = new Long2DoubleOpenHashMap();\n }", "private double getSol(){\n return this.sol;\n }", "abstract int estimationParameter1();", "public float getExp ( ) {\n\t\treturn extract ( handle -> handle.getExp ( ) );\n\t}", "private void pow() throws Exception{\n\t\tif(!(stackBiggerThanTwo())) throw new Exception(\"Stack hat zu wenig einträge mindestens 2 werden gebraucht!!\");\n\t\telse {\n\t\t\tvalue1= stack.pop();\n\t\t\tvalue2= stack.pop();\n\t\t\tstack.push(Math.pow(value2, value1));\n\t\t}\n\t}", "protected long travel() {\n\n return Math.round(((1 / Factory.VERTEX_PER_METER_RATIO) / (this.speed / 3.6)) * 1000);\n }", "private double calcErrForNeighbour(GNode node) {\n return 0.0;\n }", "protected double asRelativeValue(final InformationLoss<?> infoLoss) {\n if (model != null && model.getResult() != null && model.getResult().getLattice() != null &&\n model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) {\n return infoLoss.relativeTo(model.getResult().getLattice().getMinimumInformationLoss(),\n model.getResult().getLattice().getMaximumInformationLoss()) * 100d;\n } else {\n return 0;\n }\n }", "private double individualEvaluation() {\n\t\t//System.out.println(\"indE\"+ myValues.get(myAction.getPurpose()).getStrength(null));\n\t\treturn myValues.get(myAction.getPurpose()).getStrength(null);\n\t}", "public void gainExp(int exp){\r\n\t\tSystem.out.println(this.getName() + \"'s XP: \" + this.getExperiencePoints() + \" ---> \" + (this.getExperiencePoints()+exp));\r\n\t\tthis.experiencePoints += exp;\r\n\t\t\t//parameters 1 == count, 0 is being used as the xp start point to evaluate\r\n\t\t\t//the intervals in the helper method\r\n\t\tif(this.getExperiencePoints() >= calcLevel(1,0)){\r\n\r\n\t\t\tthis.levelUp();\r\n\t\t}\r\n\r\n\t}", "private int[] calculateExpAndSp(int diff, final int damage)\n\t{\n\t\tdouble xp;\n\t\tdouble sp;\n\t\t\n\t\tif (diff < -5)\n\t\t{\n\t\t\tdiff = -5; // makes possible to use ALT_GAME_EXPONENT configuration\n\t\t}\n\t\t\n\t\txp = (double) getExpReward() * damage / getMaxHp();\n\t\t\n\t\tif (Config.ALT_GAME_EXPONENT_XP != 0)\n\t\t{\n\t\t\txp *= Math.pow(2., -diff / Config.ALT_GAME_EXPONENT_XP);\n\t\t}\n\t\t\n\t\tsp = (double) getSpReward() * damage / getMaxHp();\n\t\t\n\t\tif (Config.ALT_GAME_EXPONENT_SP != 0)\n\t\t{\n\t\t\tsp *= Math.pow(2., -diff / Config.ALT_GAME_EXPONENT_SP);\n\t\t}\n\t\t\n\t\tif (Config.ALT_GAME_EXPONENT_XP == 0 && Config.ALT_GAME_EXPONENT_SP == 0)\n\t\t{\n\t\t\tif (diff > 5) // formula revised May 07\n\t\t\t{\n\t\t\t\tfinal double pow = Math.pow((double) 5 / 6, diff - 5);\n\t\t\t\txp = xp * pow;\n\t\t\t\tsp = sp * pow;\n\t\t\t}\n\t\t\t\n\t\t\tif (xp <= 0)\n\t\t\t{\n\t\t\t\txp = 0;\n\t\t\t\tsp = 0;\n\t\t\t}\n\t\t\telse if (sp <= 0)\n\t\t\t{\n\t\t\t\tsp = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfinal int[] tmp =\n\t\t{\n\t\t\t(int) xp,\n\t\t\t(int) sp\n\t\t};\n\t\t\n\t\treturn tmp;\n\t}", "public void TeleopCode() {\n\t\tMLeft.set(-Controls.joy2.getRawAxis(5)+ 0.06); //(Controls.joy2.getRawAxis5 + 0.06);\n\t}", "public double energy(int x, int y) {\n int w = width();\n int h = height();\n if (x == 0 || x == w - 1) {\n return 1000;\n }\n if (y == 0 || y == h - 1) {\n return 1000;\n }\n int rx = Math.abs(pic.get(x, y + 1).getRed() - pic.get(x, y - 1).getRed());\n int gx = Math.abs(pic.get(x, y + 1).getGreen() - pic.get(x, y - 1).getGreen());\n int bx = Math.abs(pic.get(x, y + 1).getBlue() - pic.get(x, y - 1).getBlue());\n int newx = (rx * rx) + (gx * gx) + (bx * bx);\n int ry = Math.abs(pic.get(x + 1, y).getRed() - pic.get(x - 1, y).getRed());\n int gy = Math.abs(pic.get(x + 1, y).getGreen() - pic.get(x - 1, y).getGreen());\n int by = Math.abs(pic.get(x + 1, y).getBlue() - pic.get(x - 1, y).getBlue());\n int newy = Math.abs((ry * ry) + (gy * gy) + (by * by));\n return Math.sqrt(newx + newy);\n }", "public void computeEquation()\n {\n // Curve equation of type : y = ax^2 + bx + c\n // OR (x*x)a + (x)b + 1c = y\n // ex : 50 = 4a + 2b + c where y = 50 and x = 2 and z = 1\n double[][] matrice = {{Math.pow(A.getKey(),2),A.getKey(),1},\n {Math.pow(B.getKey(),2),B.getKey(),1},\n {Math.pow(C.getKey(),2),C.getKey(),1}};\n\n double deter = computeSarrus(matrice);\n\n double [][] matriceA = {{A.getValue(),A.getKey(),1},\n {B.getValue(),B.getKey(),1},\n {C.getValue(),C.getKey(),1}};\n\n double [][] matriceB = {{Math.pow(A.getKey(),2),A.getValue(),1},\n {Math.pow(B.getKey(),2),B.getValue(),1},\n {Math.pow(C.getKey(),2),C.getValue(),1}};\n\n double [][] matriceC = {{Math.pow(A.getKey(),2),A.getKey(),A.getValue()},\n {Math.pow(B.getKey(),2),B.getKey(),B.getValue()},\n {Math.pow(C.getKey(),2),C.getKey(),C.getValue()}};\n\n abc[0] = computeSarrus(matriceA) / deter;\n abc[1] = computeSarrus(matriceB) / deter;\n abc[2] = computeSarrus(matriceC) / deter;\n }", "private double getRecEnergy(){\n\t\tdebugMatrix = new double[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\tconvolutedMatrix = new Complex[CELL_SIDE_COUNT][CELL_SIDE_COUNT];\n\t\t//initiliaze the whole convolutedMatrix array to zero\n\t\tfor(int x = 0; x < CELL_SIDE_COUNT; x++)\n\t\t{\n\t\t\tfor(int y = 0; y < CELL_SIDE_COUNT; y++)\n\t\t\t{\n\t\t\t\tconvolutedMatrix[x][y] = Complex.zero;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Pg. 180 Lee[05]\n\t\tint indexTop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\t//Eq 19 Lee[05]\n\t\t//Also Eq 3.9 Essman[95]\n\t\tdouble sum = 0;\n\t\tint indtop = CELL_SIDE_COUNT * CELL_SIDE_COUNT;\n\t\tint midPoint = CELL_SIDE_COUNT / 2;\n\t\tif (midPoint << 1 < CELL_SIDE_COUNT) {\n\t\t\t++midPoint;\n\t\t}\n\t\t\n\t\tfor (int ind = 1; ind <= (indtop - 1); ++ind) {\n\t\t\t\n\t\t\tint y = ind / CELL_SIDE_COUNT + 1;\n\t\t\tint x = ind - (y - 1) * CELL_SIDE_COUNT + 1;\n\t\t\tint mXPrime = x - 1;\n\t\t\tif (x > midPoint) {\n\t\t\t\tmXPrime = x - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tint mYPrime = y - 1;\n\t\t\tif (y > midPoint) {\n\t\t\t\tmYPrime = y - 1 - CELL_SIDE_COUNT;\n\t\t\t}\n\t\t\tdouble m = mXPrime * 1.0 + mYPrime * 1.0; //Was inverseMeshWidth - theory is reciprocal lattice vectors are for the entire cell U rather than one cell\n\t\t\tdouble mSquared = squared(mXPrime * 1.0) + squared(mYPrime * 1.0);\n\t\t\t\n\t\t\tdouble V = 1; //working in the unit mesh\n\t\t\tdouble bterm = M.bspmod[x]*M.bspmod[y];\n\t\t\tdouble eterm = Math.exp(-squared(Math.PI/ewaldCoefficient)*mSquared) / (bterm * Math.PI * V * mSquared);\n\t\t\t//Section 3.2.8 Lee[05]\n\t\t\tdouble inverseQPart = (squared(inverseFTQComplex[x-1][y-1].re())+squared(inverseFTQComplex[x-1][y-1].im())); //Lee[05]\n\t\t\tdouble thisContribution = eterm * inverseQPart;\n\t\t\tconvolutedMatrix[x-1][y-1] = inverseFTQComplex[x-1][y-1].scale(eterm); //Save this for the force calculation\n\t\t\tsum += thisContribution; //from the argument that F(Q(M))*F(Q(-M))=F-1(Q)^2\n\t\t}\n\t\treturn 0.5*sum;\n\t}", "private void calculateLocation()\r\n\t{\r\n\t\tdouble leftAngleSpeed \t= this.angleMeasurementLeft.getAngleSum() / ((double)this.angleMeasurementLeft.getDeltaT()/1000); //degree/seconds\r\n\t\tdouble rightAngleSpeed \t= this.angleMeasurementRight.getAngleSum() / ((double)this.angleMeasurementRight.getDeltaT()/1000); //degree/seconds\r\n\r\n\t\tdouble vLeft\t= (leftAngleSpeed * Math.PI * LEFT_WHEEL_RADIUS ) / 180 ; //velocity of left wheel in m/s\r\n\t\tdouble vRight\t= (rightAngleSpeed * Math.PI * RIGHT_WHEEL_RADIUS) / 180 ; //velocity of right wheel in m/s\t\t\r\n\t\tdouble w \t\t= (vRight - vLeft) / WHEEL_DISTANCE; //angular velocity of robot in rad/s\r\n\t\t\r\n\t\tDouble R \t= new Double(( WHEEL_DISTANCE / 2 ) * ( (vLeft + vRight) / (vRight - vLeft) ));\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\tdouble ICCx = 0;\r\n\t\tdouble ICCy = 0;\r\n\r\n\t\tdouble W_xResult \t\t= 0;\r\n\t\tdouble W_yResult \t\t= 0;\r\n\t\tdouble W_angleResult \t= 0;\r\n\t\t\r\n\t\tdouble E_xResult \t\t= 0;\r\n\t\tdouble E_yResult \t\t= 0;\r\n\t\tdouble E_angleResult \t= 0;\r\n\t\t\r\n\t\t//short axe = 0;\r\n\t\t\r\n\t\tdouble deltaT = ((double)this.angleMeasurementLeft.getDeltaT())/1000;\r\n\t\t\r\n\t\t// Odometry calculations\r\n\t\tif (R.isNaN()) \t\t\t\t//robot don't move\r\n\t\t{\r\n\t\t\tW_xResult\t\t= this.pose.getX();\r\n\t\t\tW_yResult\t\t= this.pose.getY();\r\n\t\t\tW_angleResult \t= this.pose.getHeading();\r\n\t\t} \r\n\t\telse if (R.isInfinite()) \t//robot moves straight forward/backward, vLeft==vRight\r\n\t\t{ \r\n\t\t\tW_xResult\t\t= this.pose.getX() + vLeft * Math.cos(this.pose.getHeading()) * deltaT;\r\n\t\t\tW_yResult\t\t= this.pose.getY() + vLeft * Math.sin(this.pose.getHeading()) * deltaT;\r\n\t\t\tW_angleResult \t= this.pose.getHeading();\r\n\t\t} \r\n\t\telse \r\n\t\t{\t\t\t\r\n\t\t\tICCx = this.pose.getX() - R.doubleValue() * Math.sin(this.pose.getHeading());\r\n\t\t\tICCy = this.pose.getY() + R.doubleValue() * Math.cos(this.pose.getHeading());\r\n\t\t\r\n\t\t\tW_xResult \t\t= Math.cos(w * deltaT) * (this.pose.getX()-ICCx) - Math.sin(w * deltaT) * (this.pose.getY() - ICCy) + ICCx;\r\n\t\t\tW_yResult \t\t= Math.sin(w * deltaT) * (this.pose.getX()-ICCx) + Math.cos(w * deltaT) * (this.pose.getY() - ICCy) + ICCy;\r\n\t\t\tW_angleResult \t= this.pose.getHeading() + w * deltaT;\r\n\t\t}\r\n\t\t\r\n\t\tthis.pose.setLocation((float)W_xResult, (float)W_yResult);\r\n\t\tthis.pose.setHeading((float)W_angleResult);\r\n\t\t\r\n\t\t// Conversion to grads\r\n\t\tW_angleResult = W_angleResult/Math.PI*180;\r\n\t\t\r\n\t\t// Get the heading axe\r\n\t\t//axe = getHeadingAxe();\r\n\t\tgetHeadingAxe();\r\n\t\t\r\n\t\t// Verify the coordinates and the heading angle\r\n\t\tif (Po_Corn == 1)\r\n\t\t{\r\n\t\t\tswitch (Po_CORNER_ID)\r\n\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tE_xResult = 0;\r\n\t\t\t\t\tE_yResult = 0;\r\n\t\t\t\t\tPo_ExpAng = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tE_xResult = 1.8;\r\n\t\t\t\t\tE_yResult = 0.11;\r\n\t\t\t\t\tPo_ExpAng = 90;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tE_xResult = 1.6;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tE_xResult = 1.5;\r\n\t\t\t\t\tE_yResult = 0.45;\r\n\t\t\t\t\tPo_ExpAng = 270;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tE_xResult = 1.5;\r\n\t\t\t\t\tE_yResult = 0.3;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tE_xResult = 0.3;\r\n\t\t\t\t\tE_yResult = 0.3;\r\n\t\t\t\t\tPo_ExpAng = 90;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tE_xResult = 0.3;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tE_xResult = 0;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 270;\r\n\t\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tE_angleResult = W_angleResult;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint block = 0;\r\n\t\t\t// white = 0, black = 2, grey = 1\r\n\t\t\tif ((lineSensorLeft == 0) && (lineSensorRight == 0) && (block == 0)) \t// Robot moves on the black line\r\n\t\t\t{\r\n\t\t\t\tswitch (Po_CORNER_ID)\t\t\t\t\t\t\t\t// Even numbers - x, Odd numbers - y\r\n\t\t\t\t{\r\n\t\t\t\tcase 0: \r\n\t\t\t\t\tif (this.pose.getX() < 1.6)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 1: \r\n\t\t\t\t\tif (this.pose.getY() < 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 1.8;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tif (this.pose.getX() > 1.65)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tif (this.pose.getY() > 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 1.5; \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 4: \r\n\t\t\t\t\tif (this.pose.getX() > 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tif (this.pose.getY() < 0.5)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 0.3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 6: \r\n\t\t\t\t\tif (this.pose.getX() > 0.1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tif (this.pose.getY() > 0.1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault: \r\n\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(((lineSensorLeft == 0) && (lineSensorRight == 2)) || ((lineSensorLeft == 2) && (lineSensorRight == 0)))\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\r\n\t \tif (W_angleResult >= TRSH_W)\r\n\t \t{\r\n\t \t\tE_angleResult = TRSH_W;\r\n\t \t}\r\n\t \telse if (W_angleResult >= (360 - TRSH_W))\r\n\t \t{\r\n\t \t\tE_angleResult = 360 - TRSH_W;\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\tE_angleResult = W_angleResult;\r\n\t \t}\r\n\t \t\r\n\t \t// test\r\n\t \tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t\telse if(((lineSensorLeft == 0) && (lineSensorRight == 1)) || ((lineSensorLeft == 1) && (lineSensorRight == 0)))\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\r\n\t \tif (W_angleResult >= TRSH_G)\r\n\t \t{\r\n\t \t\tE_angleResult = TRSH_G;\r\n\t \t}\r\n\t \telse if (W_angleResult >= (360 - TRSH_G))\r\n\t \t{\r\n\t \t\tE_angleResult = 360 - TRSH_G;\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\tE_angleResult = W_angleResult;\r\n\t \t}\r\n\t \t\r\n\t \t// test\r\n\t \tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tLCD.drawString(\"AngRs: \" + (E_angleResult), 0, 7);\r\n\t\t\r\n\t\t// Conversion to rads\r\n\t\tW_angleResult = W_angleResult*Math.PI/180;\r\n\t\tE_angleResult = E_angleResult*Math.PI/180;\r\n\t\t\r\n\t\tif ((Po_CORNER_ID == 3) && (100*this.pose.getY() < 45))\r\n\t\t{\r\n\t\t\tE_angleResult = 3*Math.PI/180;;\r\n\t\t}\r\n\t\t\r\n\t\tthis.pose.setLocation((float)E_xResult, (float)E_yResult);\r\n\t\tthis.pose.setHeading((float)E_angleResult);\r\n\t\t\r\n\t\t/*\r\n\t\t// Integration deviation correction\r\n\t\tthis.pose.setLocation((float)(W_xResult), (float)(W_yResult + (0.01*22.4)/175));\r\n\t\tthis.pose.setHeading((float)((W_angleResult + 14/175)*Math.PI/180));\r\n\t\t*/\r\n\t}", "public double getPower() {\r\n return power;\r\n }", "public static double estimateQoE(float delay, double packetLoss) {\n int h;\n if (delay - 177.3 > 0){\n h = 1;\n }\n else {\n h = 0;\n }\n double R = 94.2 - 0.024*delay - 0.11*h*(delay-177.3) - 11 - 40*Math.log(1+10*packetLoss);\n double MOS;\n if (R < 0){\n MOS = 1;\n }\n else{\n MOS = 1 + 0.035*R + R*(R-60)*(100-R)/1000000;\n }\n\n return MOS;\n }", "private double edgeEquationValue(Point2D p, Point2D p1, Point2D p2)\n {\n return (p2.getY() - p1.getY()) * (p.getX() - p1.getX())\n - (p2.getX() - p1.getX()) * (p.getY() - p1.getY());\n }", "private void calculations() {\n\t\tSystem.out.println(\"Starting calculations\\n\");\n\t\tcalcMedian(myProt.getChain(requestedChain));\n\t\tcalcZvalue(myProt.getChain(requestedChain));\n\t\tcalcSVMweightedZvalue(myProt.getChain(requestedChain));\n\t}", "private void calc_e_v_dens() {\n\t\tint i,il,max_steps = 10;\n\t\tdouble[] lel = new double[2], onel = new double[2];\n\t\tdouble store_dens;\n\t\t\n\t\tstore_dens = density;\n\t\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"Ediff.v.dens.out\"));\n\t\t\tout.println(\"# density Elhcp Elfcc Ehcp Efcc dEl dE\");\n\t\t\t\n\t\t\tfor (i=0; i<max_steps; i++) {\n\t\t\t\tdensity= 2.0*(double)(i+1)/(double)max_steps;\n\t\t\t\tdiameter = Math.pow(density,1.0/3.0);\n\t\t\t\tdiameter2 = diameter*diameter;\n\t\t\t\tout.println(density+\" \");\n\t\t\t\tfor (il=0; il<2; il++) {\n\t\t\t\t\tlel[il] = calc_local_energy(0,il,CUR_POS);\n\t\t\t\t\tonel[il] = calc_e_order_n(il);\n\t\t\t\t}\n\t\t\t\tout.println(lel[0]+\" \"+lel[1]+\" \"+onel[0]+\" \"+onel[1]+\" \"+(lel[1]-lel[0])+\" \"+(onel[1]-onel[0]));\n\t\t\t}\n\t\t\tout.close();\n\t\t} catch( Exception e ) {\n\t\t\tSystem.err.println(\"calc_e_v_dens failed while writing file with exception: \"+e);\n\t\t}\n\t\t\n\t\tdensity= store_dens;\n\t\tdiameter = Math.pow(density,1.0/3.0);\n\t\tdiameter2 = diameter*diameter;\n\t}", "public X_Traversal() {\n startDist = this.getAbsPosition();\n m_X.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);\n EncX.setDistancePerPulse(Constants.k_EncXConversion);\n // EncX.setMinRate(Constants.k_EncXMinRate);\n EncX.setReverseDirection(Constants.k_EncXReverse);\n this.configPID();\n System.out.println(\"start pos\" + startDist);\n }", "public double getEnergy(){\n\t\t return energy;\n\t}", "protected void execute() {\n \tdouble currentPulses;\n \tdouble currentHeading = Robot.pixy.getCubeCenter();\n \tdouble headingCorrection = pixyCorrection.calculateCorrection(140, currentHeading);\n \tdouble currentDistance = Robot.sonar.getDistance();\n \tdouble powerCorrection = sonarCorrection.calculateCorrection(distance, currentDistance);\n \tif (headingCorrection > .25) {\n \t\theadingCorrection = .25;\n \t}\n \tif(powerCorrection > .25) {\n \t\tpowerCorrection = .25;\n \t}\n \tdouble power = basePower + powerCorrection;\n \tif (Robot.pixy.getCubeCenter() < 150) {\n \t\tleftPower = (power - headingCorrection);\n \t\trightPower = (power + headingCorrection);\n \t}\n \telse if (Robot.pixy.getCubeCenter() > 130) {\n \t\tleftPower = (power + headingCorrection);\n \t\trightPower = (power - headingCorrection);\n \t}\n \telse {\n \t\tleftPower = power;\n \t\trightPower = power;\n \t}\n \tRobot.drive.tankMove(leftPower, rightPower);\n \t\n \tcurrentPulses = Robot.drive.getPulsesLeft();\n \tencoderValue = currentPulses - VectorValues.lastEncoderPulses;\n \tVectorValues.lastEncoderPulses = currentPulses;\n \tVectorValues.vectorComponentX += (Math.sin(Robot.drive.getCurrentHeading() * (Math.PI / 180 )) * encoderValue);\n \tVectorValues.vectorComponentY += (Math.cos(Robot.drive.getCurrentHeading() * (Math.PI / 180 )) * encoderValue);\n }", "double getExtremeSpikeProbability();", "void runUsingEncoder(double xTarget, double yTarget, double inputPower);", "@Test\n public void getEnergyModifierDTest() {\n \n assertEquals(0.8, hawthorn1.getEnergyModifierD(), 0.1);\n }", "public double getTotalExp() {\n double exp = this.exp;\n for (int i = 1; i < level; i++)\n exp += classData.getRequiredExp(i);\n return exp;\n }", "@Override\n /**\n * Check the cost of a path for a particular mover.\n */\n public float getCost(Mover mover, int sx, int sy, int tx, int ty) {\n return 0.f;\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatDEX();\n\t\t\t}\n\t\t}", "@Test\n\tpublic void testExponentiation() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.pow(zero, zero);\n\t\t\tassertEquals(ac.exponentiation(zero, zero), expResult, 0);\n\t\t}\n\t\t\n\t}", "protected void saveStateAsLowestEnergy() {\n\tbestEverPoints = getPoints();\n\tbestEverStateEnergy = currentStateEnergy;\n }", "public long priceExponent() {\n\t\treturn message.getBasePriceExponent();\n\t}", "public double getEnginePower(){\n return enginePower;\n }", "double a_intake_power ()\n {\n double l_return = 0.0;\n\n if (fly_wheel != null) {\n l_return = fly_wheel.getPower();\n }\n\n return l_return;\n }" ]
[ "0.6654963", "0.64316565", "0.583752", "0.583752", "0.58313876", "0.58313876", "0.5675543", "0.56249624", "0.55848306", "0.55231744", "0.5496086", "0.5483416", "0.5481296", "0.5391171", "0.5389853", "0.5370638", "0.5369286", "0.5345783", "0.5300489", "0.52412665", "0.52371615", "0.52158755", "0.5206011", "0.5181917", "0.51751167", "0.51656896", "0.5155234", "0.51110977", "0.5101121", "0.509692", "0.50897264", "0.5082562", "0.50557685", "0.50449234", "0.50338864", "0.5033303", "0.49882254", "0.49882254", "0.4984191", "0.49682635", "0.49529228", "0.49353877", "0.49243563", "0.4921591", "0.4911612", "0.4909013", "0.49069813", "0.48961407", "0.48913994", "0.4891393", "0.4887231", "0.48865062", "0.4883281", "0.4879341", "0.48748168", "0.4871939", "0.48692504", "0.48629224", "0.48618338", "0.48547962", "0.48531988", "0.4852979", "0.4852466", "0.48498797", "0.48469868", "0.4839193", "0.48355252", "0.48249495", "0.48209277", "0.48125544", "0.48107144", "0.4810649", "0.48057747", "0.4802146", "0.47962207", "0.47932404", "0.47919083", "0.4790676", "0.4788489", "0.47883797", "0.4786442", "0.47858226", "0.4783222", "0.47831556", "0.4780234", "0.47795737", "0.47774878", "0.47766286", "0.47761488", "0.47731167", "0.47704968", "0.47697216", "0.476954", "0.475654", "0.47553194", "0.47546905", "0.47534", "0.474654", "0.4740903", "0.47357532", "0.47353828" ]
0.0
-1
Gets estimated transmitted power expressed in milli watts (mW) or null if not available.
public Double getEstimatedTransmittedPower() { return mEstimatedTransmittedPowerdBm != null ? Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n }\n }", "java.lang.String getTxpower();", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\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 txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getMeterPower() {\n final double current = this.getMeterCurrent().isPresent() ? this.getMeterCurrent().get() : 0;\n final double voltage = this.getMeterVoltage().isPresent() ? this.getMeterVoltage().get() : 0;\n return current * voltage;\n }", "com.google.protobuf.ByteString\n getTxpowerBytes();", "@Override\n public double getPower()\n {\n final String funcName = \"getPower\";\n double power = motor.get();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", power);\n }\n\n return power;\n }", "public Double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "protected byte[] getRatedPowerConsumptionOfHPUnitInWintertime() {return null;}", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public double getConsumedPower() {\n return mPowerComponents.getConsumedPower(UNSPECIFIED_DIMENSIONS);\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "int readHCITxPower() {\n\t\t\t\n\t\t\tif ( Beacon.hciTxPower != Integer.MAX_VALUE) {\n\t\t\t\treturn Beacon.hciTxPower;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * some points on TX Power: it is *not* the power used by the BLE chip. Instead it is the power\n\t\t\t * measured 1 m away from the sender.\n\t\t\t * https://stackoverflow.com/questions/37268460/beacon-why-we-need-calibrate-tx-power\n\t\t\t * \n\t\t\t * So we try to get this value from the properties or use a default. Querying HCI would give the wrong value,\n\t\t\t * namely the actual sending power, not the power measured 1 m away.\n\t\t\t */\n\t\t\t\n\t\t\tfinal Properties props = Beacon.getProps();\n\t\t\t\n\t\t\t// we expect a 2 hex-digit value using two's complement.\n\t\t\tfinal String txPwr = props.getProperty( \"beacon.txPower\", \"-50\");\n\t\t\tint txPowerLevel = Integer.parseInt( txPwr, 10);\n\t\t\tif ( txPowerLevel < HCI_Command.TX_POWER_MIN || txPowerLevel > HCI_Command.TX_POWER_MAX) {\n\t\t\t\tthrow new IllegalArgumentException( \"power level property out of range: \" + txPwr);\n\t\t\t}\n\t\t\t\n\t\t\tBeacon.hciTxPower = txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t/**\n\t\t\tString hciCmd = getReadAdvertisingPhysicalChannelTxPower();\n\t\t\t\n\t\t\tlogger.info( \"ReadAdvertisingPhysicalChannelTxPowerCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"READ_TX_POWER_CMD=\" + hciCmd\n\t\t\t} ;\n\t\t\t\n\t\t\tfinal String cmd = \"./scripts/read_tx_power\";\n\t\t\t\n\t\t\t// https://en.wikipedia.org/wiki/DBm are words of wisdom on dBm power measurement\n\t\t\t// some default value... -50 decimal\n\t\t\tthis.txPowerLevel = (byte) 0xCE;\n\t\t\t\n\t\t\t// the Dell/Ubuntu/bluez/hcitool returns a power level of 0x07. which is ridiculously high.\n\t\t\t// thus I suspect a bug somewhere and just use a default value\n\t\t\tboolean ENABLE_HCI_READ_TX_POWER = false;\n\t\t\tif ( ENABLE_HCI_READ_TX_POWER) {\n\t\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t\t}\n\t\t\t\n\t\t\t// Range: -127 to 20, Units: dBm, Accuracy: ±4 dB\t\t\t\n\t\t\tassert( this.txPowerLevel >= -127 && this.txPowerLevel <= 20); // dBm\n\t\t\t\n\t\t\tBeacon.hciTxPower = this.txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t*/\n\t\t}", "public java.lang.String getTxpowerOffset() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = s;\n }\n return s;\n }\n }", "public java.lang.String getTxpowerOffset() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getPower() {\n\t\treturn aerodynamics.getPower()+engine.getPower()+suspension.getPower()+breaks.getPower()+tires.getPower();\n\t}", "public com.google.protobuf.ByteString\n getTxpowerOffsetBytes() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerOffsetBytes() {\n java.lang.Object ref = txpowerOffset_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpowerOffset_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getPower()\n {\n return this.power;\n }", "public int getPower() {\n return PA_POW_reg.getPower();\n }", "public double getW() {\n return w;\n }", "public long getMeasRcvdPowerdBm() {\r\n return measRcvdPowerdBm;\r\n }", "public int get_power() {\r\n\t\treturn this._power;\r\n\t}", "public double getPower() {\r\n return power;\r\n }", "com.google.protobuf.ByteString\n getTxpowerOffsetBytes();", "float getPower();", "public double getW() {\n\t\treturn w;\n\t}", "public int getPower() {\n return this.power;\n }", "public double getPower() {\n return power;\n }", "java.lang.String getTxpowerOffset();", "public float getPower() {\n return power_;\n }", "BigInteger getPower_consumption();", "protected byte[] getRatedPowerConsumptionOfHPUnitInSummertime() {return null;}", "public int getPower(){\n\t\treturn this.power;\n\t}", "public int getPower() {\n \t\treturn power;\n \t}", "public float getPower() {\n return power_;\n }", "public int getPower();", "public double getWaist() {\n return waist;\n }", "public double getWaist() {\n return waist;\n }", "public String getWaterMeterCode() {\n return waterMeterCode;\n }", "public int getPower() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int getPower() {\n\t\treturn power;\n\t}", "public WifiPowerStats buildProto() {\n WifiPowerStats m = new WifiPowerStats();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.energyConsumedMah = stats.getEnergyConsumedMaMillis()\n / ((double) DateUtils.HOUR_IN_MILLIS);\n m.idleTimeMs = stats.getIdleTimeMillis();\n m.rxTimeMs = stats.getRxTimeMillis();\n m.txTimeMs = stats.getTxTimeMillis();\n m.wifiKernelActiveTimeMs = stats.getKernelActiveTimeMillis();\n m.numPacketsTx = stats.getNumPacketsTx();\n m.numBytesTx = stats.getNumBytesTx();\n m.numPacketsRx = stats.getNumPacketsRx();\n m.numBytesRx = stats.getNumBytesRx();\n m.sleepTimeMs = stats.getSleepTimeMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n m.monitoredRailEnergyConsumedMah = stats.getMonitoredRailChargeConsumedMaMillis()\n / ((double) DateUtils.HOUR_IN_MILLIS);\n }\n return m;\n }", "public int getCurrentSpecialPower() {\n return currentSpecialPower;\n }", "@java.lang.Override\n public float getW() {\n return w_;\n }", "@Override\r\n\tpublic double getEnergy(Robot robot)\r\n\t{\r\n\t\treturn robot.getEnergy(EnergyUnit.WATTSECOND);\r\n\t}", "@java.lang.Override\n public float getW() {\n return w_;\n }", "public int getPowerMeterSum() {\r\n return powerMeterSum;\r\n }", "public String getPowerType() {\n return this.powerType;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public int getWMC(){\r\n\t\t \r\n\t\treturn mccabe.getWMC();\t\t\r\n\t}", "public Getter reqGetRatedPowerConsumptionOfHPUnitInWintertime() {\n\t\t\taddProperty(EPC_RATED_POWER_CONSUMPTION_OF_H_P_UNIT_IN_WINTERTIME);\n\t\t\treturn this;\n\t\t}", "double a_hang_power ()\n {\n double l_return = 0.0;\n\n if (hang_motor != null) {\n l_return = hang_motor.getPower();\n }\n\n return l_return;\n }", "public double getEnginePower(){\n return enginePower;\n }", "public double getWindChill() {\n float tempC;\n float windSpeed;\n double windChill = 0;\n double windChillr = 0;\n\n\n if (readings.size() > 0) {\n tempC = readings.get(readings.size() - 1).temperature;\n windSpeed = readings.get(readings.size() - 1).windSpeed;\n windChill = 13.12 + (0.6215 * tempC) - (11.37 * Math.pow(windSpeed, 0.16)) + 0.3965 * 6 * Math.pow(2, 0.16);\n windChillr = Math.round(windChill * 10.0) / 10.0;\n } else {\n\n }\n return windChillr;\n }", "public double getDwt() {\n\t\treturn _tempNoTiceShipMessage.getDwt();\n\t}", "public int getAttackPower() {\n return attackPower;\n }", "protected byte[] getMeasuredAmountOfWaterRemainingInTank() {return null;}", "public Float getPower() {\n return power;\n }", "public int getKiloWatts(){\n\t\treturn kiloWatts;\n\t}", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "@Override\r\n\tpublic float getEnergyConsumption() {\r\n\t\treturn 2500 - robot.getBatteryLevel();\r\n\t}", "public static float pu2mw(float pwr) {return pwr*100F;}", "public Informer reqInformRatedPowerConsumptionOfHPUnitInWintertime() {\n\t\t\taddProperty(EPC_RATED_POWER_CONSUMPTION_OF_H_P_UNIT_IN_WINTERTIME);\n\t\t\treturn this;\n\t\t}", "double a_intake_power ()\n {\n double l_return = 0.0;\n\n if (fly_wheel != null) {\n l_return = fly_wheel.getPower();\n }\n\n return l_return;\n }", "protected double getEnginePower(){\n return enginePower;\n }", "public double get_thermal_reading() {\n\t\t\n\t\treturn 0;\n\t}", "float getWetness();", "public double getInputPower() {\n return this.inputPower;\n }", "public double getConsumedPower(Dimensions dimensions) {\n return mPowerComponents.getConsumedPower(dimensions);\n }", "float getW();", "public int getPOWER_UNITS_PER_TICK() {\n\t\treturn POWER_UNITS_PER_TICK;\n\t}", "EDataType getReactivePower();", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "public double getWeight()\n\t{\n\t\t//metodo precisa retornar alguma coisa\n\t\treturn 0.0;\n\t}", "public double getTWAP() {\n return twap;\n }", "public double getWeight() {\n return this.weight * 2.20462;\n }", "public java.math.BigDecimal getPwrval() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.math.BigDecimal) __getCache(\"pwrval\")));\n }", "@Override\n\tpublic double getPowierzchnia() {\n\t\treturn szer*wys;\n\t}", "float getHotwordPower();", "public long getWeightKg() {\n return (long) (getWeight() / POUNDS_PER_KG);\n }", "Integer getCurrentWhint();", "public String getWeightUnit() {\n return (String) get(\"weight_unit\");\n }", "@Override\n public int getJumpMPWithTerrain() {\n if ((getPosition() == null) || (getJumpType() == JUMP_BOOSTER)) {\n return getJumpMP();\n }\n int waterLevel = 0;\n if (!isOffBoard()) {\n waterLevel = game.getBoard().getHex(getPosition()).terrainLevel(Terrains.WATER);\n }\n if ((waterLevel <= 0) || (getElevation() >= 0)) {\n return getJumpMP();\n } else if (waterLevel > 1) {\n return 0;\n } else { // waterLevel == 1\n return applyGravityEffectsOnMP(torsoJumpJets());\n }\n }", "@Basic\n\tpublic double getTimeInWater(){\n\t\treturn this.time_in_water;\n\t}", "public static double getStandardWage() {\r\n return standardWage;\r\n }", "public int getKiloWatts(){\n\treturn kiloWatts;\n}", "public int getMps() {\n return (int) (80d * this.getCondition() / 100d);\n }", "public double getVolumeNeeded() {\n if (!this.getIsAlive()) {\n return 0.0;\n }\n if (this.ageInWeeks < YOUNG_FISH_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML;\n } else if (this.ageInWeeks <= MATURE_FISH_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML * this.ageInWeeks / YOUNG_FISH_AGE_IN_WEEKS;\n } else if (this.ageInWeeks <= MAXIMUM_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML * MATURE_FISH_WATER_VOLUME_CONSTANT;\n }\n return 0.0;\n }", "public double getWage() {\r\n return wage;\r\n }", "int getEnergy();", "float getW() {\n return _w;\n }", "public static String getReadAdvertisingPhysicalChannelTxPower() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append( String.format( \"0x%02x 0x%04x \", HCI_Command.HCI_LE_Controller_OGF, HCI_Command.HCI_LE_Read_Advertising_Physical_Channel_Tx_Power_OCF));\n\t\t\n\t\treturn sb.toString();\n\t}", "public synchronized double get() {\n return m_liftSpeed;\n }", "public Double getEstimatedTransmittedPowerVariance() {\n return mEstimatedTransmittedPowerVariance;\n }" ]
[ "0.72271293", "0.7198087", "0.71924794", "0.7171316", "0.7014814", "0.6987574", "0.6953567", "0.6902308", "0.68002254", "0.66868514", "0.6673339", "0.6660919", "0.65923494", "0.6541641", "0.6445348", "0.6445348", "0.64262813", "0.6408374", "0.6391754", "0.63644296", "0.6329384", "0.6308391", "0.622684", "0.6215079", "0.62135154", "0.61564624", "0.6155734", "0.6144116", "0.614152", "0.6135266", "0.613256", "0.6128995", "0.6119506", "0.6096765", "0.60767347", "0.60613847", "0.6050043", "0.6045554", "0.604028", "0.60377675", "0.60221", "0.59936476", "0.59936476", "0.59930754", "0.5975853", "0.5971631", "0.59639007", "0.5954185", "0.595396", "0.5951518", "0.5951107", "0.594276", "0.5919139", "0.5908926", "0.5908926", "0.5888115", "0.5883687", "0.5871169", "0.58702594", "0.5846627", "0.5840609", "0.5840171", "0.5825134", "0.5815382", "0.58146566", "0.5808919", "0.5805753", "0.57886696", "0.5775491", "0.5773377", "0.5772305", "0.5759672", "0.5755074", "0.57503414", "0.57492465", "0.5737694", "0.57336754", "0.5721975", "0.57189566", "0.571863", "0.5707954", "0.5682629", "0.56691176", "0.5654079", "0.56418735", "0.56272846", "0.56271994", "0.5625296", "0.5617168", "0.5607993", "0.56065017", "0.56055146", "0.559847", "0.5585302", "0.5585034", "0.5566736", "0.5562832", "0.5553548", "0.5552578", "0.5542638" ]
0.7394533
0
Gets estimated transmitted power expressed in dBm's or null if not available.
public Double getEstimatedTransmittedPowerdBm() { return mEstimatedTransmittedPowerdBm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTxpower();", "public Double getEstimatedTransmittedPower() {\n return mEstimatedTransmittedPowerdBm != null ?\n Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null;\n }", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "com.google.protobuf.ByteString\n getTxpowerBytes();", "int readHCITxPower() {\n\t\t\t\n\t\t\tif ( Beacon.hciTxPower != Integer.MAX_VALUE) {\n\t\t\t\treturn Beacon.hciTxPower;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * some points on TX Power: it is *not* the power used by the BLE chip. Instead it is the power\n\t\t\t * measured 1 m away from the sender.\n\t\t\t * https://stackoverflow.com/questions/37268460/beacon-why-we-need-calibrate-tx-power\n\t\t\t * \n\t\t\t * So we try to get this value from the properties or use a default. Querying HCI would give the wrong value,\n\t\t\t * namely the actual sending power, not the power measured 1 m away.\n\t\t\t */\n\t\t\t\n\t\t\tfinal Properties props = Beacon.getProps();\n\t\t\t\n\t\t\t// we expect a 2 hex-digit value using two's complement.\n\t\t\tfinal String txPwr = props.getProperty( \"beacon.txPower\", \"-50\");\n\t\t\tint txPowerLevel = Integer.parseInt( txPwr, 10);\n\t\t\tif ( txPowerLevel < HCI_Command.TX_POWER_MIN || txPowerLevel > HCI_Command.TX_POWER_MAX) {\n\t\t\t\tthrow new IllegalArgumentException( \"power level property out of range: \" + txPwr);\n\t\t\t}\n\t\t\t\n\t\t\tBeacon.hciTxPower = txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t/**\n\t\t\tString hciCmd = getReadAdvertisingPhysicalChannelTxPower();\n\t\t\t\n\t\t\tlogger.info( \"ReadAdvertisingPhysicalChannelTxPowerCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"READ_TX_POWER_CMD=\" + hciCmd\n\t\t\t} ;\n\t\t\t\n\t\t\tfinal String cmd = \"./scripts/read_tx_power\";\n\t\t\t\n\t\t\t// https://en.wikipedia.org/wiki/DBm are words of wisdom on dBm power measurement\n\t\t\t// some default value... -50 decimal\n\t\t\tthis.txPowerLevel = (byte) 0xCE;\n\t\t\t\n\t\t\t// the Dell/Ubuntu/bluez/hcitool returns a power level of 0x07. which is ridiculously high.\n\t\t\t// thus I suspect a bug somewhere and just use a default value\n\t\t\tboolean ENABLE_HCI_READ_TX_POWER = false;\n\t\t\tif ( ENABLE_HCI_READ_TX_POWER) {\n\t\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t\t}\n\t\t\t\n\t\t\t// Range: -127 to 20, Units: dBm, Accuracy: ±4 dB\t\t\t\n\t\t\tassert( this.txPowerLevel >= -127 && this.txPowerLevel <= 20); // dBm\n\t\t\t\n\t\t\tBeacon.hciTxPower = this.txPowerLevel;\n\t\t\t\n\t\t\treturn Beacon.hciTxPower;\n\t\t\t\n\t\t\t*/\n\t\t}", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n }\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public int getDbm() {\n int dBm;\n\n int level = mSignalStrength;\n int asu = (level == 99 ? Integer.MAX_VALUE : level);\n if (asu != Integer.MAX_VALUE) {\n dBm = -113 + (2 * asu);\n } else {\n dBm = Integer.MAX_VALUE;\n }\n if (DBG) log(\"getDbm=\" + dBm);\n return dBm;\n }", "@Override\n public double getPower()\n {\n final String funcName = \"getPower\";\n double power = motor.get();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", power);\n }\n\n return power;\n }", "public long getMeasRcvdPowerdBm() {\r\n return measRcvdPowerdBm;\r\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\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 txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "protected byte[] getRatedPowerConsumptionOfHPUnitInWintertime() {return null;}", "public int getPower() {\n\t\treturn aerodynamics.getPower()+engine.getPower()+suspension.getPower()+breaks.getPower()+tires.getPower();\n\t}", "public double getMeterPower() {\n final double current = this.getMeterCurrent().isPresent() ? this.getMeterCurrent().get() : 0;\n final double voltage = this.getMeterVoltage().isPresent() ? this.getMeterVoltage().get() : 0;\n return current * voltage;\n }", "public double getConsumedPower() {\n return mPowerComponents.getConsumedPower(UNSPECIFIED_DIMENSIONS);\n }", "protected byte[] getRatedPowerConsumptionOfHPUnitInSummertime() {return null;}", "float getPower();", "public int getPower();", "double a_hang_power ()\n {\n double l_return = 0.0;\n\n if (hang_motor != null) {\n l_return = hang_motor.getPower();\n }\n\n return l_return;\n }", "public int getPower() {\n return PA_POW_reg.getPower();\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public static int consumedPower(){\n int consumedPower = 0;\n for (ElectricalHomeDevice device : allTrunedOnDevices){\n consumedPower += device.getDevicePower();\n }\n return consumedPower;\n }", "public double getPower()\n {\n return this.power;\n }", "public int getPower() {\n return this.power;\n }", "@Override\r\n\tpublic float getEnergyConsumption() {\r\n\t\treturn 2500 - robot.getBatteryLevel();\r\n\t}", "public native int getBatteryPowerRemaining();", "public int get_power() {\r\n\t\treturn this._power;\r\n\t}", "BigInteger getPower_consumption();", "public int getPower() {\n\t\treturn 0;\r\n\t}", "public java.math.BigDecimal getPwrval() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.math.BigDecimal) __getCache(\"pwrval\")));\n }", "EDataType getReactivePower();", "public float getMicGainDb();", "public double getPower() {\r\n return power;\r\n }", "public int getPower(){\n\t\treturn this.power;\n\t}", "EDataType getActivePower();", "public double getPower() {\n return power;\n }", "public float getPower() {\n return power_;\n }", "public int getPower() {\n \t\treturn power;\n \t}", "public float getPower() {\n return power_;\n }", "@Override\n\tpublic int getPower() {\n\t\treturn power;\n\t}", "com.google.protobuf.ByteString\n getTxpowerOffsetBytes();", "public int getCurrentSpecialPower() {\n return currentSpecialPower;\n }", "java.lang.String getTxpowerOffset();", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "public Double getInitialTransmittedPowerdBm() {\n return mInitialTransmittedPowerdBm;\n }", "int getBattery();", "public int getAttackPower() {\n return attackPower;\n }", "public java.lang.String getTxpowerOffset() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = s;\n }\n return s;\n }\n }", "public java.lang.String getTxpowerOffset() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getSignalStrength() {\n return mSignalStrength;\n }", "public static final float getBatteryGain() {\r\n\t\treturn BATTERY_GAIN;\r\n\t}", "public com.google.protobuf.ByteString\n getTxpowerOffsetBytes() {\n java.lang.Object ref = txpowerOffset_;\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 txpowerOffset_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerOffsetBytes() {\n java.lang.Object ref = txpowerOffset_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpowerOffset_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected byte[] getMeasuredAmountOfWaterRemainingInTank() {return null;}", "@Override\r\n\tpublic double getEnergy(Robot robot)\r\n\t{\r\n\t\treturn robot.getEnergy(EnergyUnit.WATTSECOND);\r\n\t}", "double a_intake_power ()\n {\n double l_return = 0.0;\n\n if (fly_wheel != null) {\n l_return = fly_wheel.getPower();\n }\n\n return l_return;\n }", "public int energy_consumed_GET()\n { return (int)((int) get_bytes(data, 29, 4)); }", "public String getPowerType() {\n return this.powerType;\n }", "public double get_thermal_reading() {\n\t\t\n\t\treturn 0;\n\t}", "public ABLPower Power() {\r\n\t\treturn new ABLPower(BrickFinder.getDefault().getPower());\r\n\t}", "public double getConsumedPower(Dimensions dimensions) {\n return mPowerComponents.getConsumedPower(dimensions);\n }", "public double getEnginePower(){\n return enginePower;\n }", "public int getDefensePower() {\n return defensePower;\n }", "public NM getAdministeredStrength() { \r\n\t\tNM retVal = this.getTypedField(13, 0);\r\n\t\treturn retVal;\r\n }", "int getChargerCurrentRaw();", "public double getInputPower() {\n return this.inputPower;\n }", "public static String getReadAdvertisingPhysicalChannelTxPower() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append( String.format( \"0x%02x 0x%04x \", HCI_Command.HCI_LE_Controller_OGF, HCI_Command.HCI_LE_Read_Advertising_Physical_Channel_Tx_Power_OCF));\n\t\t\n\t\treturn sb.toString();\n\t}", "public Float getPower() {\n return power;\n }", "protected double getEnginePower(){\n return enginePower;\n }", "public String getBm() {\n return bm;\n }", "public String getBm() {\n return bm;\n }", "float getHotwordPower();", "int getEnergy();", "public int getPowerMeterSum() {\r\n return powerMeterSum;\r\n }", "double a_right_back_drive_power ()\n {\n double l_return = 0.0;\n\n if (right_back_drv_Motor != null)\n {\n l_return = right_back_drv_Motor.getPower ();\n }\n\n return l_return;\n\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public double getAvailable() {\r\n\t\treturn this.capacity - flow;\r\n\t}", "public Byte getBattery() {\n return battery;\n }", "public double getDwt() {\n\t\treturn _tempNoTiceShipMessage.getDwt();\n\t}", "public WifiPowerStats buildProto() {\n WifiPowerStats m = new WifiPowerStats();\n WifiBatteryStats stats = getStats();\n if (stats != null) {\n m.loggingDurationMs = stats.getLoggingDurationMillis();\n m.energyConsumedMah = stats.getEnergyConsumedMaMillis()\n / ((double) DateUtils.HOUR_IN_MILLIS);\n m.idleTimeMs = stats.getIdleTimeMillis();\n m.rxTimeMs = stats.getRxTimeMillis();\n m.txTimeMs = stats.getTxTimeMillis();\n m.wifiKernelActiveTimeMs = stats.getKernelActiveTimeMillis();\n m.numPacketsTx = stats.getNumPacketsTx();\n m.numBytesTx = stats.getNumBytesTx();\n m.numPacketsRx = stats.getNumPacketsRx();\n m.numBytesRx = stats.getNumBytesRx();\n m.sleepTimeMs = stats.getSleepTimeMillis();\n m.scanTimeMs = stats.getScanTimeMillis();\n m.monitoredRailEnergyConsumedMah = stats.getMonitoredRailChargeConsumedMaMillis()\n / ((double) DateUtils.HOUR_IN_MILLIS);\n }\n return m;\n }", "public int getHumidity(){\n return VirtualHardwareManager.getInstance().getHumidity();\n }", "double a_left_back_drive_power()\n {\n double l_return = 0.0;\n if (left_back_drv_Motor != null)\n {\n l_return = left_back_drv_Motor.getPower ();\n }\n\n return l_return;\n\n }", "int getStrength();", "int getStrength();", "public int getBatteryLevel() { return batteryLevel; }", "public Long getCurrentBatteryLevel() {\n if (this.type == BikeType.ELECTRICAL) {\n return Math.round((this.getCurrentBattery() / this.getMaxBattery() * 100.0));\n } else {\n return 0L;\n }\n }", "public boolean hasTxpower() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }", "double a_right_front_drive_power ()\n {\n double l_return = 0.0;\n\n if (right_front_drv_Motor != null)\n {\n l_return = right_front_drv_Motor.getPower ();\n }\n\n return l_return;\n\n }", "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "public int getTempDmg(){\r\n return tDmg;\r\n }", "public static double dBm2mW( double dbm) {\n\t\treturn Math.pow(10, dbm/10.0);\n\t}", "private void calculateOutputPower() { \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n if (this.inputPower - this.rms >= 0) {\n setOutputPower(this.inputPower - this.rms);\n } else {\n setOutputPower(0);\n }\n }\n channel.updateOutput();\n }", "public static final native int getChargingVoltage();", "DoubleProperty getPowerUsage();", "public double getHigh(){\n return /*home*/ this.high /*and eat everything*/;\r\n //then go to sleep for a day or three \r\n }", "public double getEquipmentWeight() {\r\n\t\tdouble ret = 0;\r\n\t\tPerson p = model.getData();\r\n\t\tif ( p!=null ) {\r\n\t\t\tret = p.getCarriedWeight();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}" ]
[ "0.73773944", "0.71541125", "0.6927781", "0.69214267", "0.6903758", "0.68277055", "0.6815276", "0.67914003", "0.6744376", "0.6663798", "0.66633415", "0.66401994", "0.66062653", "0.6592778", "0.6510563", "0.6395419", "0.63721627", "0.634206", "0.6207373", "0.62059486", "0.61907285", "0.61783767", "0.6150599", "0.614504", "0.614504", "0.61312693", "0.6116581", "0.61045915", "0.61014074", "0.6100649", "0.6063234", "0.6051975", "0.603977", "0.60205203", "0.5994464", "0.5994343", "0.5992848", "0.59827626", "0.5979104", "0.5959474", "0.5949699", "0.59334564", "0.5929419", "0.5927931", "0.5916203", "0.5909652", "0.5890432", "0.5877639", "0.5877639", "0.58662146", "0.58575034", "0.5844186", "0.58379805", "0.58180445", "0.5808575", "0.58066994", "0.580347", "0.57853395", "0.57292205", "0.571568", "0.5712439", "0.5711723", "0.5710661", "0.57091206", "0.5689592", "0.56833315", "0.5682528", "0.56686956", "0.56559604", "0.5654593", "0.5635299", "0.5634825", "0.56310785", "0.56133586", "0.56133586", "0.55989915", "0.55916864", "0.55887145", "0.5575037", "0.5568937", "0.5559792", "0.55580866", "0.5545964", "0.5527589", "0.5527483", "0.5521011", "0.55075157", "0.55075157", "0.550626", "0.55046654", "0.5503049", "0.5502463", "0.54953665", "0.54867876", "0.5485896", "0.5472836", "0.5472763", "0.54626787", "0.5458916", "0.5445633" ]
0.66667444
9
Gets estimated transmitted power variance. This value will only be available when transmitted power estimation is enabled.
public Double getEstimatedTransmittedPowerVariance() { return mEstimatedTransmittedPowerVariance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getVariance()\r\n\t{\r\n\t\tlong tmp = lastSampleTime - firstSampleTime;\r\n\t\treturn ( tmp > 0 ? (sumPowerTwo/tmp - getMean()*getMean()) : 0);\r\n\t}", "public Double getVariance() {\n return variance;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public Double getEstimatedPathLossExponentVariance() {\n return mEstimatedPathLossExponentVariance;\n }", "public long getMeasRcvdPowerdBm() {\r\n return measRcvdPowerdBm;\r\n }", "public double getEstimatedTransmittedPower() {\n return Utils.dBmToPower(mEstimatedTransmittedPowerdBm);\n }", "public double varianceExponent()\n\t{\n\t\treturn _dblVarianceExponent;\n\t}", "com.google.protobuf.ByteString\n getTxpowerBytes();", "public double variance()\n {\n return variance(mean());\n }", "public Double getEstimatedTransmittedPower() {\n return mEstimatedTransmittedPowerdBm != null ?\n Utils.dBmToPower(mEstimatedTransmittedPowerdBm) : null;\n }", "public double getVariance(){\n\t\treturn (double)sampleSize * type1Size * (populationSize - type1Size) *\n\t\t\t(populationSize - sampleSize) / ( populationSize * populationSize * (populationSize - 1));\n\t}", "EDataType getVoltagePerReactivePower();", "float getMainUtteranceDynamicGain();", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n }\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public java.lang.String getTxpower() {\n java.lang.Object ref = txpower_;\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 txpower_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public double var() {\n\t\tint n = this.getAttCount();\n\t\tif (n < 2) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)(n - 1);\n\t}", "java.lang.String getTxpower();", "public Double getEstimatedTransmittedPowerdBm() {\n return mEstimatedTransmittedPowerdBm;\n }", "public double empiricalVariance()\n\t{\n\t\treturn _dblEmpiricalVariance;\n\t}", "public double getDefaultVariance()\n {\n return this.defaultVariance;\n }", "public double getConsumedPower() {\n return mPowerComponents.getConsumedPower(UNSPECIFIED_DIMENSIONS);\n }", "public double varianceOfMean() {\n\t\treturn variance() * getWeight();\n\t}", "BigInteger getPower_consumption();", "public double getVariance(){\n\t\tdouble a = location + scale * scale;\n\t\treturn Math.exp(2 * a) - Math.exp(location + a);\n\t}", "public double populationVariance()\n\t{\n\t\treturn null == _distPopulation ? java.lang.Double.NaN : _distPopulation.variance();\n\t}", "@Override\n public double getPower()\n {\n final String funcName = \"getPower\";\n double power = motor.get();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", power);\n }\n\n return power;\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTxpowerBytes() {\n java.lang.Object ref = txpower_;\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 txpower_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getVoltage() {\n\t\treturn this.voltage;\n\t}", "public double getPower() {\r\n return power;\r\n }", "int getOutputVoltageRaw();", "public double getPower() {\n return power;\n }", "public double getPower()\n {\n return this.power;\n }", "public int getPowerMeterSum() {\r\n return powerMeterSum;\r\n }", "public double getVelocity() {\n return spark_encoder.getVelocity();\n }", "int getOutputVoltage();", "public double varianceBackcast()\n {\n double unconditionalVariance = variance(0.0);\n // why do they compute the unconditional variance if they don't\n // use it afterwards?\n \n double lambda = .7;\n double sigsum = 0.0;\n for(int t = 0; t<size; t++)\n sigsum += Math.pow(lambda, size - t - 1.0)*getSqrQuote(size - t);\n \n // This doesn't make sense to me...\n // looks like a convex hull of sigsum and something else,\n // except lambda is raised to the n-th power...\n return Math.pow(lambda, size) + (1.0 - lambda)*sigsum;\n }", "public int getVoltage ()\n {\n return _voltage;\n }", "public float getPower() {\n return power_;\n }", "public float getPower() {\n return power_;\n }", "public double getVolumeNeeded() {\n if (!this.getIsAlive()) {\n return 0.0;\n }\n if (this.ageInWeeks < YOUNG_FISH_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML;\n } else if (this.ageInWeeks <= MATURE_FISH_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML * this.ageInWeeks / YOUNG_FISH_AGE_IN_WEEKS;\n } else if (this.ageInWeeks <= MAXIMUM_AGE_IN_WEEKS) {\n return MINIMUM_WATER_VOLUME_ML * MATURE_FISH_WATER_VOLUME_CONSTANT;\n }\n return 0.0;\n }", "protected byte[] getMeasuredAmountOfWaterRemainingInTank() {return null;}", "public double mleVar() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)n;\n\t}", "public double sampleVariance() {\n/* 262 */ Preconditions.checkState((this.count > 1L));\n/* 263 */ if (Double.isNaN(this.sumOfSquaresOfDeltas)) {\n/* 264 */ return Double.NaN;\n/* */ }\n/* 266 */ return DoubleUtils.ensureNonNegative(this.sumOfSquaresOfDeltas) / (this.count - 1L);\n/* */ }", "public java.lang.Double getVar85() {\n return var85;\n }", "public double variance() {\n final double average = average();\n final int size = size();\n\n int cnt = 0;\n double rval = 0;\n\n // Compute the variance\n for (int i = 0; i < size; i++) {\n final Number number = get(i);\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n rval += (average - number.doubleValue()) * (average - number.doubleValue());\n cnt++;\n }\n\n // If we haven't had any element, return 0\n if (cnt == 0) return 0;\n\n return rval / cnt;\n }", "EDataType getReactivePower();", "public int getSignalStrength() {\n return mSignalStrength;\n }", "public double populationVariance() {\n/* 215 */ Preconditions.checkState((this.count > 0L));\n/* 216 */ if (Double.isNaN(this.sumOfSquaresOfDeltas)) {\n/* 217 */ return Double.NaN;\n/* */ }\n/* 219 */ if (this.count == 1L) {\n/* 220 */ return 0.0D;\n/* */ }\n/* 222 */ return DoubleUtils.ensureNonNegative(this.sumOfSquaresOfDeltas) / count();\n/* */ }", "public Float getPower() {\n return power;\n }", "float getPostGain();", "public java.lang.Double getVar85() {\n return var85;\n }", "public double getTotalVolume() {\n return totalVolume;\n }", "BigDecimal getVolumeTraded();", "public int getPower() {\n return this.power;\n }", "public synchronized float getVoltage(){\n\t\t getData(REG_MMXCOMMAND, buf, 1);\n\t\t // 37 is the constant given by Mindsensors support 5/2011 to return millivolts. KPT\n return (37f*(buf[0]&0xff))*.001f;\n\t}", "public String getTransmitRate()\r\n\t{\r\n\t\treturn transmitRate;\r\n\t}", "public int getPower() {\n\t\treturn aerodynamics.getPower()+engine.getPower()+suspension.getPower()+breaks.getPower()+tires.getPower();\n\t}", "@Override\n public double getVelocity()\n {\n final String funcName = \"getVelocity\";\n double velocity = encoder.getVelocity() * encoderSign / 60.0;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", velocity);\n }\n\n return velocity;\n }", "float getPreGain();", "public Duration getStartVariance()\r\n {\r\n return (m_startVariance);\r\n }", "public Integer getSupervisoryTransmitRate()\r\n\t{\r\n\t\treturn supervisoryTransmitRate;\r\n\t}", "public double getVolumeLitres() {\n return volumeLitres;\n }", "public double getVWAP() {\n return vwap;\n }", "@Override\r\n\tpublic double getVET() {\r\n\t\treturn getTMB() * getFatorAtividadeFisica();\r\n\t}", "public final double getEstimatedNoise() {\r\n return noise;\r\n }", "public double getValueOfTransceiver() {\n\t\treturn valueOfTransceiver;\n\t}", "float getPower();", "public int getPower(){\n\t\treturn this.power;\n\t}", "@Override\r\n\tpublic float getEnergyConsumption() {\r\n\t\treturn 2500 - robot.getBatteryLevel();\r\n\t}", "public BayesNetVar getObservedVar() {\n if (observedVar == null) {\n throw new IllegalStateException(\"Evidence statement has not \"\n + \"been compiled yet.\");\n }\n return observedVar;\n }", "public double sampleVarianceOfMean() {\n\t\treturn sampleVariance() * getWeight();\n\t}", "public java.lang.Double getVar75() {\n return var75;\n }", "public DoubleProperty getOutputPower() {\n return this.outputPower;\n }", "public int getPower() {\n return PA_POW_reg.getPower();\n }", "public double getTraffic() {\n return traffic;\n }", "float getNominalVoltageOutOfPhase();", "private int getVariance (int[] times) {\n\n\t\t//Get the mean time of all the vehicles\n\t\tint mean = getMean(times);\n\t\t//Variable to store the sum of squares\n\t\tint sumOfSquares = 0;\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Calculate the sum of squares\n\t\t\tsumOfSquares += Math.pow((times[i] - mean), 2);\n\t\t}\n\n\t\t//Calculate and return the variance \n\t\tint variance = sumOfSquares/times.length;\n\t\treturn variance;\n\t}", "public Duration getFinishVariance()\r\n {\r\n return (m_finishVariance);\r\n }", "public java.lang.Double getVar75() {\n return var75;\n }", "public double getDwt() {\n\t\treturn _tempNoTiceShipMessage.getDwt();\n\t}", "public double getEnginePower(){\n return enginePower;\n }", "public int getPower() {\n \t\treturn power;\n \t}", "private double[] varianceArray(){\n\t\tdouble[] varianceVals = new double[values.length];\n\t\tfor(int i = 0; i < values.length; i++){\n\t\t\tvarianceVals[i] = Math.pow(values[i] - mean , 2.0);\n\t\t}\n\t\treturn varianceVals;\n\t}", "public double getCurrentAmplitudeAvg() {\n return publicAvg;\n }", "public int getPeakVolume()\n {\n return peakVolume;\n }", "public int energy_consumed_GET()\n { return (int)((int) get_bytes(data, 29, 4)); }", "public double variance(double m)\n {\n double var = 0.0;\n \n for(int t = 0; t<size; t++)\n {\n double dev = x[t] - m;\n var += dev*dev;\n }\n return var/size;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public Double getInitialTransmittedPower() {\n return mInitialTransmittedPowerdBm != null ?\n Utils.dBmToPower(mInitialTransmittedPowerdBm) : null;\n }", "public java.lang.Double getVar67() {\n return var67;\n }", "public Integer getSpeechThreshold() {\n return this.speechThreshold;\n }", "public java.lang.Double getVar264() {\n return var264;\n }", "public int getPower() {\n\t\treturn 0;\r\n\t}", "public int getPower();", "public double getVolga() {\r\n return volga;\r\n }", "public double se() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0)\n\t\t\treturn Constants.UNUSED;\n\t\telse\n\t\t\treturn Math.sqrt(var() / n);\n\t}" ]
[ "0.6620267", "0.66094285", "0.6316336", "0.6316336", "0.61414385", "0.611429", "0.6108419", "0.60461277", "0.60231555", "0.6006708", "0.5950302", "0.58699125", "0.58669746", "0.5854454", "0.58282024", "0.58242184", "0.5809752", "0.5793905", "0.5792295", "0.57903403", "0.57338506", "0.57168555", "0.56864554", "0.565919", "0.56314063", "0.5591751", "0.5572469", "0.5564619", "0.556416", "0.55576617", "0.5525131", "0.5523092", "0.54956865", "0.5483375", "0.5466174", "0.5461579", "0.54534507", "0.5440796", "0.5428653", "0.542012", "0.5407738", "0.54036486", "0.54010504", "0.5397489", "0.5395285", "0.53869855", "0.53445446", "0.5344095", "0.53323853", "0.53260696", "0.5316296", "0.5300903", "0.5298479", "0.52967983", "0.52966243", "0.5287573", "0.5284993", "0.528445", "0.52685505", "0.52678806", "0.5257197", "0.52565444", "0.524217", "0.52418", "0.523838", "0.5234599", "0.52332234", "0.52246714", "0.522107", "0.5216595", "0.52152926", "0.5211454", "0.5204411", "0.5201523", "0.51990867", "0.51948243", "0.5188102", "0.5182665", "0.51808083", "0.51800334", "0.5171815", "0.51701814", "0.5154783", "0.51524323", "0.5151082", "0.5135", "0.5133384", "0.5133235", "0.51251704", "0.5124119", "0.511709", "0.511709", "0.51166373", "0.5115606", "0.5110432", "0.5106458", "0.5103314", "0.510289", "0.50995064" ]
0.77967876
0
Gets estimated path loss exponent variance. This value will only be available when pathloss exponent estimation is enabled.
public Double getEstimatedPathLossExponentVariance() { return mEstimatedPathLossExponentVariance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getPathLossExponent() {\n return pathLossExponent;\n }", "public double getEstimatedPathLossExponent() {\n return mEstimatedPathLossExponent;\n }", "public double varianceExponent()\n\t{\n\t\treturn _dblVarianceExponent;\n\t}", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public double getInitialPathLossExponent() {\n return mInitialPathLossExponent;\n }", "public Double getVariance() {\n return variance;\n }", "public Double getEstimatedTransmittedPowerVariance() {\n return mEstimatedTransmittedPowerVariance;\n }", "public Double getEstimatedTransmittedPowerVariance() {\n return mEstimatedTransmittedPowerVariance;\n }", "public double getVariance(){\n\t\tdouble a = location + scale * scale;\n\t\treturn Math.exp(2 * a) - Math.exp(location + a);\n\t}", "public BigDecimal getLossSd() {\r\n return lossSd;\r\n }", "public double exponent()\n\t{\n\t\treturn _dblExponent;\n\t}", "public double getExpLoss()\r\n\t{\treturn this.expLoss;\t}", "public void setPathLossExponent(final Integer pathLossExponent) {\n this.pathLossExponent = pathLossExponent;\n }", "public double variance()\n {\n return variance(mean());\n }", "public double getPvpExpLoss() \r\n\t{\treturn this.pvpExpLoss;\t}", "public String get_exponent_part();", "public double empiricalVariance()\n\t{\n\t\treturn _dblEmpiricalVariance;\n\t}", "public BigInteger getExponent() {\n return this.exponent;\n }", "public BigDecimal getLossDs() {\r\n return lossDs;\r\n }", "public double[] getConfigNrmse(double[] variance)\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] avg_error; \r\n\t\t\r\n\t\tavg_error = new double[_esn.getNumOutputNeurons()];\r\n\t\tif(_best_idx!=-1)\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = _pool_of_bests.get(_best_idx)._error_config.computeNrmse(variance);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = Double.MAX_VALUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn avg_error;\r\n\t}", "public double[] getConfigRmse()\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] avg_error; \r\n\t\t\r\n\t\tavg_error = new double[_esn.getNumOutputNeurons()];\r\n\t\tif(_best_idx!=-1)\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = _pool_of_bests.get(_best_idx)._error_config.computeRmse();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = Double.MAX_VALUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn avg_error;\r\n\t}", "public double getVariance()\r\n\t{\r\n\t\tlong tmp = lastSampleTime - firstSampleTime;\r\n\t\treturn ( tmp > 0 ? (sumPowerTwo/tmp - getMean()*getMean()) : 0);\r\n\t}", "public long sizeExponent() {\n\t\treturn message.getBaseSizeExponent();\n\t}", "public double estimatedEnergyPerPanel() {\n\t\tif (estimatedEnergyPerPanel < 0) {\n\t\t\treturn estimatedEnergyPerPanel;\n\t\t}\n\t\t// if est. EnergyPerPanel hasn't been found yet, we find it here...\n\t\tdouble wattToKW = .001;\n\t\testimatedEnergyPerPanel = systemCap * wattToKW;\n\t\t// the returned estimated energy will factor in the powerTolerance,\n\t\t// which typically equates to percent loss on the panel\n\t\treturn estimatedEnergyPerPanel -= estimatedEnergyPerPanel\n\t\t\t\t* (.01 * powerTolerance);\n\t}", "public float getUserExponent() {\n/* 195 */ return this.userExponent;\n/* */ }", "public double populationVariance()\n\t{\n\t\treturn null == _distPopulation ? java.lang.Double.NaN : _distPopulation.variance();\n\t}", "public double[] getConfigMse()\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] avg_error; \r\n\t\t\r\n\t\tavg_error = new double[_esn.getNumOutputNeurons()];\r\n\t\tif(_best_idx!=-1)\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = _pool_of_bests.get(_best_idx)._error_config.avg_mse;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(i=0; i<avg_error.length; i++)\r\n\t\t\t{\r\n\t\t\t\tavg_error[i] = Double.MAX_VALUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn avg_error;\r\n\t}", "public double populationVariance() {\n/* 215 */ Preconditions.checkState((this.count > 0L));\n/* 216 */ if (Double.isNaN(this.sumOfSquaresOfDeltas)) {\n/* 217 */ return Double.NaN;\n/* */ }\n/* 219 */ if (this.count == 1L) {\n/* 220 */ return 0.0D;\n/* */ }\n/* 222 */ return DoubleUtils.ensureNonNegative(this.sumOfSquaresOfDeltas) / count();\n/* */ }", "public Integer getExponent();", "public long priceExponent() {\n\t\treturn message.getBasePriceExponent();\n\t}", "public double sd() {\n\t\treturn Math.sqrt(var());\n\t}", "public double getExp() {\n return exp;\n }", "public int getExponent();", "public double variance() {\n final double average = average();\n final int size = size();\n\n int cnt = 0;\n double rval = 0;\n\n // Compute the variance\n for (int i = 0; i < size; i++) {\n final Number number = get(i);\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n rval += (average - number.doubleValue()) * (average - number.doubleValue());\n cnt++;\n }\n\n // If we haven't had any element, return 0\n if (cnt == 0) return 0;\n\n return rval / cnt;\n }", "public double variance(double m)\n {\n double var = 0.0;\n \n for(int t = 0; t<size; t++)\n {\n double dev = x[t] - m;\n var += dev*dev;\n }\n return var/size;\n }", "public float getVerticalExpense() {\n\t\treturn verticalExpenseSlider.getCurrentValue();\n\t}", "public java.lang.Double getVar256() {\n return var256;\n }", "public java.lang.Double getVar256() {\n return var256;\n }", "public Double getValue() {\n return depth;\n }", "@Override\n public double getEnergyLevel() {\n return energy;\n }", "public java.lang.Double getVar264() {\n return var264;\n }", "private double[] varianceArray(){\n\t\tdouble[] varianceVals = new double[values.length];\n\t\tfor(int i = 0; i < values.length; i++){\n\t\t\tvarianceVals[i] = Math.pow(values[i] - mean , 2.0);\n\t\t}\n\t\treturn varianceVals;\n\t}", "public double standarddeviation() {\n return Math.sqrt(variance());\n }", "public java.lang.Double getVar264() {\n return var264;\n }", "public double stdDev() {\n\t\tif (count() > 0) {\n\t\t\treturn sqrt(variance());\n\t\t}\n\t\treturn 0.0;\n\t}", "public double var() {\n\t\tint n = this.getAttCount();\n\t\tif (n < 2) return Constants.UNUSED;\n\n\t\tdouble mean = mean();\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tdouble deviation = v - mean;\n\t\t\tsum += deviation * deviation;\n\t\t}\n\t\treturn sum / (double)(n - 1);\n\t}", "public float getSavedPenY() {\n return savedPen.getLevelValue(PLevel.Type.Y);\n }", "public double getTotalExp() {\n double exp = this.exp;\n for (int i = 1; i < level; i++)\n exp += classData.getRequiredExp(i);\n return exp;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public boolean isPathLossEstimationEnabled() {\n return mPathLossEstimationEnabled;\n }", "public boolean isPathLossEstimationEnabled() {\n return mPathLossEstimationEnabled;\n }", "public java.lang.Double getVar67() {\n return var67;\n }", "public double getVariance(){\n\t\treturn (double)sampleSize * type1Size * (populationSize - type1Size) *\n\t\t\t(populationSize - sampleSize) / ( populationSize * populationSize * (populationSize - 1));\n\t}", "BigDecimal getElevation();", "public int getMaxEXP() {\n return maxEXP_;\n }", "public int getMaxEXP() {\n return maxEXP_;\n }", "public java.lang.Double getVar67() {\n return var67;\n }", "public java.lang.Double getVar57() {\n return var57;\n }", "public boolean get_exponent_sign();", "public Integer getExpLevel()\n\t{\n\t\treturn expLevel;\n\t}", "public java.lang.Double getVar57() {\n return var57;\n }", "public java.lang.Double getVar247() {\n return var247;\n }", "public java.lang.Double getVar22() {\n return var22;\n }", "public double varianceBackcast()\n {\n double unconditionalVariance = variance(0.0);\n // why do they compute the unconditional variance if they don't\n // use it afterwards?\n \n double lambda = .7;\n double sigsum = 0.0;\n for(int t = 0; t<size; t++)\n sigsum += Math.pow(lambda, size - t - 1.0)*getSqrQuote(size - t);\n \n // This doesn't make sense to me...\n // looks like a convex hull of sigsum and something else,\n // except lambda is raised to the n-th power...\n return Math.pow(lambda, size) + (1.0 - lambda)*sigsum;\n }", "public java.lang.Double getVar220() {\n return var220;\n }", "public int getEvd() {\n return evd;\n }", "public java.lang.Double getVar247() {\n return var247;\n }", "public double se() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0)\n\t\t\treturn Constants.UNUSED;\n\t\telse\n\t\t\treturn Math.sqrt(var() / n);\n\t}", "public java.lang.Double getVar220() {\n return var220;\n }", "public int getMaxElevation() {\n int maxElev = 0;\n for (MoveStep step : steps) {\n maxElev = Math.max(maxElev,\n getGame().getBoard().getHex(step.getPosition()).getLevel());\n }\n return maxElev;\n }", "public java.lang.Double getVar202() {\n return var202;\n }", "public String getExponent(boolean biased) {\n return Native.fpaGetNumeralExponentString(getContext().nCtx(), getNativeObject(), biased);\n }", "public java.lang.Double getVar22() {\n return var22;\n }", "public double getSlopeStdErr() {\n return Math.sqrt(getMeanSquareError() / sumXX);\n }", "public java.lang.Double getVar202() {\n return var202;\n }", "public Vector2d getEvte() {\n return evte;\n }", "public Integer getEgressThreshold() {\n return egressThreshold;\n }", "public double varianceOfMean() {\n\t\treturn variance() * getWeight();\n\t}", "public double powE(double exp) {\n return Double.parseDouble(String.format(\"%.8f\", Math.pow(StrictMath.E, exp)));\n }", "public java.lang.Double getVar85() {\n return var85;\n }", "public double getYStdev() {\n\t\tif (pointList.size()<2)\n\t\t\treturn 0.0;\n\t\treturn Math.sqrt( m2n / (pointList.size()-1.0) );\n\t}", "public abstract String getExponent();", "public double getEnergy() {\n\t\treturn energy;\n\t}", "private double kToEv(double value) {\n\t\treturn Converter.convertWaveVectorToEnergy(value, edgeEnergy);\n\t}", "public java.lang.Double getVar85() {\n return var85;\n }", "public static double getVarience(double[] dataArray) {\n\t\t\n\t\tdouble varience = 0.0;\n\t\tdouble average = getAverage(dataArray);\n\t\t\n\t\tfor (int i = 0; i <dataArray.length; i++) {\n\t\t\tvarience += Math.pow((dataArray[i]- average),2);\n\t\t}\n\t\t\n\t\tvarience = varience/dataArray.length;\n\t\treturn varience;\n\t}", "int getEvd();", "public int[] findVerticalSeam() \n {\n double[][] nrgs = energiesArray();\n return findMinVertPath(nrgs);\n }", "public int getExp() {\n \t\treturn exp;\n \t}", "public double getVolume() {\n\t\treturn height * depth * length;\n\n\t}", "public double getVelocity() {\n\t\treturn velocity.getlength();\n\t}", "public double getVelocity() {\n return spark_encoder.getVelocity();\n }", "public float getExp ( ) {\n\t\treturn extract ( handle -> handle.getExp ( ) );\n\t}", "public java.lang.Double getVar246() {\n return var246;\n }", "public java.lang.Double getVar246() {\n return var246;\n }", "public java.lang.Double getVar84() {\n return var84;\n }", "@Override\n public double getVelocity()\n {\n final String funcName = \"getVelocity\";\n double velocity = encoder.getVelocity() * encoderSign / 60.0;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", velocity);\n }\n\n return velocity;\n }", "@Override\n public double getGyroscopeBaseNoiseLevelRootPsd() {\n return getRootPsd();\n }" ]
[ "0.7032936", "0.70261854", "0.7007824", "0.5920023", "0.5920023", "0.581464", "0.5811901", "0.5811901", "0.57995766", "0.575716", "0.5756444", "0.5691542", "0.56877524", "0.5508404", "0.54970247", "0.54675764", "0.5435142", "0.5411603", "0.53995305", "0.5313908", "0.5283243", "0.52826387", "0.5263176", "0.5234612", "0.52161473", "0.51777107", "0.51656044", "0.5132288", "0.5093213", "0.5083225", "0.50745654", "0.50682664", "0.5037372", "0.5012284", "0.5000593", "0.4993429", "0.49906775", "0.49897456", "0.4954409", "0.4952087", "0.49486777", "0.4946765", "0.49382153", "0.49239117", "0.49186", "0.48898825", "0.4888482", "0.4888458", "0.48738927", "0.48737714", "0.48638707", "0.48638707", "0.48635373", "0.4861398", "0.48564914", "0.48367968", "0.48366255", "0.482896", "0.48113328", "0.4810982", "0.48076275", "0.48001683", "0.4796327", "0.47962803", "0.47925416", "0.478981", "0.4783871", "0.47828636", "0.47765237", "0.47762424", "0.47747067", "0.47726712", "0.47669765", "0.4764901", "0.47631848", "0.47614732", "0.47607276", "0.47575063", "0.47524107", "0.4750158", "0.4747599", "0.47472638", "0.47403443", "0.47395062", "0.47302583", "0.47294837", "0.47197765", "0.4717934", "0.4712873", "0.471081", "0.47100633", "0.47097164", "0.4700643", "0.4700202", "0.4695075", "0.4691808", "0.46909034", "0.46894723", "0.46872547" ]
0.86718273
0
Creates inner estimators if needed.
protected abstract void createInnerEstimatorsIfNeeded();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTopology() {\n deviceService = createMock(DeviceService.class);\n linkService = createMock(LinkService.class);\n\n deviceService.addListener(anyObject(DeviceListener.class));\n linkService.addListener(anyObject(LinkListener.class));\n\n createDevices(NUM_DEVICES, NUM_PORTS_PER_DEVICE);\n createLinks(NUM_DEVICES);\n addIntfConfig();\n popluateEdgePortService();\n }", "private void bootstrap() {\n\t\t// configure default values\n\t\t// maxPoolSize = 5;\n\t\tthis.parserPool.setMaxPoolSize(50);\n\t\t// coalescing = true;\n\t\tthis.parserPool.setCoalescing(true);\n\t\t// expandEntityReferences = false;\n\t\tthis.parserPool.setExpandEntityReferences(false);\n\t\t// ignoreComments = true;\n\t\tthis.parserPool.setIgnoreComments(true);\n\t\t// ignoreElementContentWhitespace = true;\n\t\tthis.parserPool.setIgnoreElementContentWhitespace(true);\n\t\t// namespaceAware = true;\n\t\tthis.parserPool.setNamespaceAware(true);\n\t\t// schema = null;\n\t\tthis.parserPool.setSchema(null);\n\t\t// dtdValidating = false;\n\t\tthis.parserPool.setDTDValidating(false);\n\t\t// xincludeAware = false;\n\t\tthis.parserPool.setXincludeAware(false);\n\n\t\tMap<String, Object> builderAttributes = new HashMap<>();\n\t\tthis.parserPool.setBuilderAttributes(builderAttributes);\n\n\t\tMap<String, Boolean> parserBuilderFeatures = new HashMap<>();\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/disallow-doctype-decl\", TRUE);\n\t\tparserBuilderFeatures.put(XMLConstants.FEATURE_SECURE_PROCESSING, TRUE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-general-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/validation/schema/normalized-value\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-parameter-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/dom/defer-node-expansion\", FALSE);\n\t\tthis.parserPool.setBuilderFeatures(parserBuilderFeatures);\n\n\t\ttry {\n\t\t\tthis.parserPool.initialize();\n\t\t}\n\t\tcatch (ComponentInitializationException x) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3 ParserPool\", x);\n\t\t}\n\n\t\ttry {\n\t\t\tInitializationService.initialize();\n\t\t}\n\t\tcatch (InitializationException e) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3\", e);\n\t\t}\n\n\t\tXMLObjectProviderRegistry registry;\n\t\tsynchronized (ConfigurationService.class) {\n\t\t\tregistry = ConfigurationService.get(XMLObjectProviderRegistry.class);\n\t\t\tif (registry == null) {\n\t\t\t\tregistry = new XMLObjectProviderRegistry();\n\t\t\t\tConfigurationService.register(XMLObjectProviderRegistry.class, registry);\n\t\t\t}\n\t\t}\n\n\t\tregistry.setParserPool(this.parserPool);\n\t}", "@Override\r\n protected void innerInit() throws Exception {\n \r\n }", "private void createGraphs() {\n initialGraphCreation.accept(caller, listener);\n graphCustomization.accept(caller, listener);\n caller.generateAndAdd(params.getNumCallerEvents(), callerAddToGraphTest);\n listener.generateAndAdd(params.getNumListenerEvents(), listenerAddToGraphTest);\n generationDefinitions.accept(caller, listener);\n }", "private StrategyChainBuilder() {\n\t}", "private void init() throws WebserverSystemException {\r\n\r\n // setup the PolicyFinder that this PDP will use\r\n final PolicyFinder policyFinder = new PolicyFinder();\r\n databasePolicyFinder.setPolicyFinder(policyFinder);\r\n final Set<PolicyFinderModule> policyModules = new HashSet<PolicyFinderModule>();\r\n policyModules.add(this.databasePolicyFinder);\r\n policyFinder.setModules(policyModules);\r\n\r\n // now setup attribute finder modules\r\n // Setup the AttributeFinder just like we setup the PolicyFinder. Note\r\n // that unlike with the policy finder, the order matters here. See the\r\n // the javadocs for more details.\r\n final AttributeFinder attributeFinder = new AttributeFinder();\r\n final List<AttributeFinderModule> attributeModules = new ArrayList<AttributeFinderModule>();\r\n // first the standard XACML Modules\r\n attributeModules.add(new CurrentEnvModule());\r\n attributeModules.add(new SelectorModule());\r\n // now the custom escidoc Modules\r\n\r\n // the CheckProvidedAttributeFinderModule must be the first eSciDoc\r\n // specific finder module in the chain\r\n attributeModules.add(this.checkProvidedAttrFinder);\r\n\r\n attributeModules.add(this.resourceNotFoundAttrFinder);\r\n // the PartlyResolveableAttributeFinderModule must be the second eSciDoc\r\n // specific finder module in the chain\r\n attributeModules.add(this.partlyResolveableAttrFinder);\r\n attributeModules.add(this.objectTypeAttrFinder);\r\n attributeModules.add(this.tripleStoreAttrFinder);\r\n attributeModules.add(this.userAccountAttrFinder);\r\n attributeModules.add(this.userGroupAttrFinder);\r\n attributeModules.add(this.grantAttrFinder);\r\n attributeModules.add(this.lockOwnerAttributeFinderModule);\r\n attributeModules.add(this.newOuParentsAttributeFinderModule);\r\n attributeModules.add(this.resourceAttrFinder);\r\n attributeModules.add(this.roleAttrFinder);\r\n\r\n attributeModules.add(this.smAttributesFinderModule);\r\n attributeModules.add(this.resourceIdAttrFinderModule);\r\n attributeFinder.setModules(attributeModules);\r\n\r\n // Setup the FunctionFactory\r\n final FunctionFactoryProxy proxy = StandardFunctionFactory.getNewFactoryProxy();\r\n final FunctionFactory factory = proxy.getTargetFactory();\r\n factory.addFunction(new XacmlFunctionContains());\r\n factory.addFunction(new XacmlFunctionIsIn());\r\n factory.addFunction(new XacmlFunctionRoleInList());\r\n factory.addFunction(new XacmlFunctionOneAttributeInBothLists());\r\n factory.addFunction(this.xacmlFunctionRoleIsGranted);\r\n\r\n FunctionFactory.setDefaultFactory(proxy);\r\n\r\n this.pdpConfig = new PDPConfig(attributeFinder, policyFinder, null);\r\n this.pdp = new PDP(this.pdpConfig);\r\n }", "protected AbstractPropagator() {\n multiplexer = new StepHandlerMultiplexer();\n additionalStateProviders = new ArrayList<>();\n unmanagedStates = new HashMap<>();\n harvester = null;\n }", "@Override\n\tpublic void initStateNodes() {\n \tSystem.err.println(Randomizer.getSeed());\n\t\tPartitionedTreeLikelihood likelihood = null;\n\t\tfor (BEASTInterface plugin : getOutputs()) {\n\t\t\tif (plugin instanceof PartitionedTreeLikelihood) {\n\t\t\t\tlikelihood = (PartitionedTreeLikelihood) plugin;\n\t\t\t}\n\t\t}\n\t\tif (likelihood == null) {\n\t\t\tthrow new IllegalArgumentException(\"PartitionProvider must have PartitionedTreeLikelihood as output\");\n\t\t}\n\t\tSiteModel.Base siteModel = (SiteModel.Base) likelihood.siteModelInput.get();\n\t\t\n\t\tif (siteModel instanceof SiteModel) {\n\t\t\tRealParameter mu = ((SiteModel) siteModel).muParameterInput.get();\n\t\t\tif (!mu.isEstimatedInput.get()) {\n\t\t\t\tSystem.err.println(\"Warning: sitemodel mutation rates are NOT estimated. This is probably not what you want\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tString sPartition = BeautiDoc.parsePartition(getID());\n\t\tSet<BEASTInterface> ancestors = new HashSet<BEASTInterface>();\n\t\tBeautiDoc.collectAncestors(this, ancestors, new HashSet<BEASTInterface>());\n\t\tMCMC mcmc = null;\n\t\tfor (BEASTInterface plugin : ancestors) {\n\t\t\tif (plugin instanceof MCMC) {\n\t\t\t\tmcmc = (MCMC) plugin;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tm_pSiteModel.get().add(siteModel);\n\t\tList<BEASTInterface> tabuList = new ArrayList<BEASTInterface>();\n\t\ttabuList.add(this);\n\t\tfor (int i = 1; i < numPartitions.get(); i++) {\n\t\t\tBeautiDoc doc = new BeautiDoc();\n\t\t\tPartitionContext oldContext = new PartitionContext(sPartition);\n\t\t\tPartitionContext newContext = new PartitionContext(sPartition+i);\n\t\t\tBEASTInterface plugin = BeautiDoc.deepCopyPlugin(siteModel, this, mcmc, oldContext, newContext, doc, tabuList);\n\t\t\tm_pSiteModel.get().add((SiteModel.Base) plugin);\n\t\t}\n\t\tif (siteModel instanceof SiteModel) {\n\t\t\tRealParameter mu = ((SiteModel) siteModel).muParameterInput.get();\n\t\t\tmu.isEstimatedInput.setValue(false, mu);\n\t\t\tmu.initByName(\"lower\", \"\"+mu.getValue(), \"upper\" , \"\" + mu.getValue());\n\t\t}\n\t\tState state = mcmc.startStateInput.get();\n\t\tstate.initialise();\n state.setPosterior(mcmc.posteriorInput.get());\n\t\tneedsInitilising = false;\n\t\tinitAndValidate();\n\n\t\tSet<BEASTInterface> plugins = new HashSet<BEASTInterface>();\n\t\tfor (BEASTInterface plugin : mcmc.listActiveBEASTObjects()) {\n\t\t\treinitialise(plugin, plugins);\n\t\t}\n//\t\t\n//\t\tfor (Plugin plugin : ancestors) {\n//\t\t\tif (plugin instanceof PartitionedTreeLikelihood) {\n//\t\t\t\t((PartitionedTreeLikelihood) plugin).initAndValidate();\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t}\n\t}", "public void initAllCalculators(){\n for(int i=0; i< calculators.length; i++){\n initRow(i);\n }\n }", "public Engine build() {\n this.extensions.add(new CoreExtension());\n \n // load extensions\n this.extensions.forEach(extension -> {\n this.renderers.putAll(extension.getRenderers());\n this.directives.putAll(extension.getDirectives());\n this.nodeParsers.putAll(extension.getNodeParsers());\n this.filters.putAll(extension.getFilters());\n this.tests.putAll(extension.getTests());\n this.unaryOperators.putAll(extension.getUnaryOperators());\n this.binaryOperators.putAll(extension.getBinaryOperators());\n this.factories.addAll(extension.getNodeVisitorFactories());\n this.safeNodes.addAll(extension.getSafeNodes());\n });\n \n // create an operator token parser\n TokenParser unaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.unaryOperators.keySet().toArray(new String[]{}));\n TokenParser binaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.binaryOperators.keySet().toArray(new String[]{}));\n TokenParser operatorParser = unaryOperatorParser.or(binaryOperatorParser);\n \n // create a execute token parser\n TokenParser executeOpenParser = TokenParser.from(TokenType.EXECUTE_OPEN, compile(quote(this.executeOpen)), false);\n TokenParser executeCloseParser = TokenParser.from(TokenType.EXECUTE_CLOSE, compile(quote(this.executeClose)), false);\n TokenParser executeParser = executeOpenParser.then(NAME).then(operatorParser.or(EXPRESSION).until(executeCloseParser));\n this.starts.add(this.executeOpen);\n \n // create a print token parser\n TokenParser printOpenParser = TokenParser.from(TokenType.PRINT_OPEN, compile(quote(this.printOpen)), false);\n TokenParser printCloseParser = TokenParser.from(TokenType.PRINT_CLOSE, compile(quote(this.printClose)), false);\n TokenParser printParser = printOpenParser.then(operatorParser.or(EXPRESSION).until(printCloseParser));\n this.starts.add(this.printOpen);\n \n // create a comment token parser\n TokenParser commentOpenParser = TokenParser.from(TokenType.COMMENT_OPEN, compile(quote(this.commentOpen)), false);\n TokenParser commentCloseParser = TokenParser.from(TokenType.COMMENT_CLOSE, compile(quote(this.commentClose)), false);\n TokenParser commentInner = TokenParser.until(TokenType.TEXT, this.commentClose);\n TokenParser commentParser = commentOpenParser.then(commentInner.optional()).then(commentCloseParser);\n this.starts.add(this.commentOpen);\n \n // create a text token parser\n TokenParser leadingText = TokenParser.until(TokenType.TEXT, this.starts);\n TokenParser text = TokenParser.from(TokenType.TEXT, Pattern.compile(\"^.*\", Pattern.DOTALL | Pattern.MULTILINE), false);\n \n TokenParser principal = commentParser.or(executeParser).or(printParser).or(leadingText).zeroOrMore().then(text.optional()).then(EOF);\n this.tokenizerBuilder.parser(principal);\n Tokenizer tokenizer = this.tokenizerBuilder.build();\n \n ExpressionParser expressionParser = new ExpressionParser(this.unaryOperators, this.binaryOperators);\n \n Engine engine = new Engine(this.environment, expressionParser,\n renderers, directives, nodeParsers, \n filters, tests, factories, safeNodes,\n tokenizer);\n return engine;\n }", "@Override\n protected List<IElementParser<ActImpl>> createParserList() {\n List<IElementParser<ActImpl>> result = new ArrayList<>();\n result.add(new SubElementManeuverGroupsParser());\n result.add(new SubElementStartTriggerParser());\n result.add(new SubElementStopTriggerParser());\n return result;\n }", "protected void generateInner(boolean verbose, SourceBuilder builder) {\n for (int i = 0; i < m_inners.size(); i++) {\n ((ClassHolder)m_inners.get(i)).generate(verbose, builder);\n }\n }", "public Estimator prepareEstimator(IDataCollector dataCollector){\n\t\tEstimator estimator = new Estimator(10 * 1024 , 1 * 1024 , 100 * 1024, dataCollector);\n\t\treturn estimator;\n\t}", "private static ManagementGraph constructTestManagementGraph() {\n\n\t\t/**\n\t\t * This is the structure of the constructed test graph. The graph\n\t\t * contains two stages and all three channel types.\n\t\t * 4\n\t\t * | In-memory\n\t\t * 3\n\t\t * --/ \\-- Network (was FILE)\n\t\t * 2 2\n\t\t * \\ / Network\n\t\t * 1\n\t\t */\n\n\t\t// Graph\n\t\tfinal ManagementGraph graph = new ManagementGraph(new JobID());\n\n\t\t// Stages\n\t\tfinal ManagementStage lowerStage = new ManagementStage(graph, 0);\n\t\tfinal ManagementStage upperStage = new ManagementStage(graph, 1);\n\n\t\t// Group vertices\n\t\tfinal ManagementGroupVertex groupVertex1 = new ManagementGroupVertex(lowerStage, \"Group Vertex 1\");\n\t\tfinal ManagementGroupVertex groupVertex2 = new ManagementGroupVertex(lowerStage, \"Group Vertex 2\");\n\t\tfinal ManagementGroupVertex groupVertex3 = new ManagementGroupVertex(upperStage, \"Group Vertex 3\");\n\t\tfinal ManagementGroupVertex groupVertex4 = new ManagementGroupVertex(upperStage, \"Group Vertex 4\");\n\n\t\t// Vertices\n\t\tfinal ManagementVertex vertex1_1 = new ManagementVertex(groupVertex1, new ManagementVertexID(), \"Host 1\",\n\t\t\t\"small\", 0);\n\t\tfinal ManagementVertex vertex2_1 = new ManagementVertex(groupVertex2, new ManagementVertexID(), \"Host 2\",\n\t\t\t\"medium\", 0);\n\t\tfinal ManagementVertex vertex2_2 = new ManagementVertex(groupVertex2, new ManagementVertexID(), \"Host 2\",\n\t\t\t\"medium\", 1);\n\t\tfinal ManagementVertex vertex3_1 = new ManagementVertex(groupVertex3, new ManagementVertexID(), \"Host 2\",\n\t\t\t\"medium\", 0);\n\t\tfinal ManagementVertex vertex4_1 = new ManagementVertex(groupVertex4, new ManagementVertexID(), \"Host 2\",\n\t\t\t\"medium\", 0);\n\n\t\t// Input/output gates\n\t\tfinal ManagementGate outputGate1_1 = new ManagementGate(vertex1_1, new ManagementGateID(), 0, false);\n\n\t\tfinal ManagementGate inputGate2_1 = new ManagementGate(vertex2_1, new ManagementGateID(), 0, true);\n\t\tfinal ManagementGate outputGate2_1 = new ManagementGate(vertex2_1, new ManagementGateID(), 0, false);\n\n\t\tfinal ManagementGate inputGate2_2 = new ManagementGate(vertex2_2, new ManagementGateID(), 0, true);\n\t\tfinal ManagementGate outputGate2_2 = new ManagementGate(vertex2_2, new ManagementGateID(), 0, false);\n\n\t\tfinal ManagementGate inputGate3_1 = new ManagementGate(vertex3_1, new ManagementGateID(), 0, true);\n\t\tfinal ManagementGate outputGate3_1 = new ManagementGate(vertex3_1, new ManagementGateID(), 0, false);\n\n\t\tfinal ManagementGate inputGate4_1 = new ManagementGate(vertex4_1, new ManagementGateID(), 0, true);\n\n\t\t// Group Edges\n\t\tnew ManagementGroupEdge(groupVertex1, 0, groupVertex2, 0, ChannelType.NETWORK);\n\t\tnew ManagementGroupEdge(groupVertex2, 0, groupVertex3, 0, ChannelType.NETWORK);\n\t\tnew ManagementGroupEdge(groupVertex3, 0, groupVertex4, 0, ChannelType.IN_MEMORY);\n\n\t\t// Edges\n\t\tnew ManagementEdge(new ManagementEdgeID(), new ManagementEdgeID(), outputGate1_1, 0, inputGate2_1, 0,\n\t\t\tChannelType.NETWORK);\n\t\tnew ManagementEdge(new ManagementEdgeID(), new ManagementEdgeID(), outputGate1_1, 1, inputGate2_2, 0,\n\t\t\tChannelType.NETWORK);\n\t\tnew ManagementEdge(new ManagementEdgeID(), new ManagementEdgeID(), outputGate2_1, 0, inputGate3_1, 0,\n\t\t\tChannelType.NETWORK);\n\t\tnew ManagementEdge(new ManagementEdgeID(), new ManagementEdgeID(), outputGate2_2, 0, inputGate3_1, 1,\n\t\t\tChannelType.NETWORK);\n\t\tnew ManagementEdge(new ManagementEdgeID(), new ManagementEdgeID(), outputGate3_1, 0, inputGate4_1, 0,\n\t\t\tChannelType.IN_MEMORY);\n\n\t\treturn graph;\n\t}", "public void constructHierarchy(){\n\t\t// populate parents for the globally defined param specs\n\t\tfor (ListIterator<ParamSpec> iterator = m_paramSpecs.listIterator(m_paramSpecs.size()); iterator.hasPrevious();) {\n\t\t\tParamSpec ps = iterator.previous();\n\t\t\tpopulateParent(ps);\n\t\t}\n\t\t// populate values for the globally defined param specs\n\t\tfor (ListIterator<ParamSpec> iterator = m_paramSpecs.listIterator(m_paramSpecs.size()); iterator.hasPrevious();) {\n\t\t\tParamSpec ps = iterator.previous();\n\t\t\tps.lookupValues();\n\t\t}\n\t\t\n\t\t// populate parents for the command specs and their contained param specs\n\t\tfor (CommandSpec cs : m_commandSpecs){\n\t\t\tpopulateParent(cs);\n\t\t\tif (cs.getParamSpecs() != null){\n\t\t\t\tfor (ParamSpec ps : cs.getParamSpecs()){\n\t\t\t\t\tpopulateParent(ps);\n\t\t\t\t}\n\t\t\t\tfor (ParamSpec ps : cs.getParamSpecs()){\n\t\t\t\t\tps.lookupValues();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void createInnerNodePanel() {\n\t\tcreateLabel(getHierarchy().getName(), null, null);\n\t\taddGeneralInnerImages();\n\t}", "public void createAttractors_step2() {\n\t\t// make a bunch of Attractors and sprinkle them around in the hypercube\n\t\tdouble count = Math.sqrt(observations.size());\n\t\tcount *= 2; \n\t\tint result = (int) count;\n\t\tif (result < 2) {\n\t\t\tresult = 2;\n\t\t}\n\t\tCaller.log(\"COUNT: \" + count);\n\t\tfor (int i = 0; i < result; i++) {\n\t\t\tdouble[] d = new double[shape];\n\t\t\tfor (int j = 0; j < shape; j++) {\n\t\t\t\td[j] = Math.random() * 4 - 2;\n\t\t\t}\n\t\t\tattractors.put(i, new _ReduxAttractor(i, d));\n\t\t}\n\t}", "EM createEM();", "private PropertyEvaluator createEvaluator() {\n return helper.getStandardPropertyEvaluator();\n }", "public interface KitCalculatorsFactory<E> {\r\n\r\n /**\r\n * Create a new CurrencyDateCalculatorBuilder specialised for 2 currencies, including WorkingWeek, calendars registered and CurrencyCalculatorConfig.\r\n *\r\n * NOTE that USD currency holiday must also be registered.\r\n *\r\n * @param ccy1\r\n * first currency, will pickup the holiday set for this ccy.\r\n * @param ccy2\r\n * second currency, will pick up the holiday set for this ccy.\r\n * @param spotLag\r\n * the number of days between tradeDate and spotDate.\r\n * @return a new CurrencyDateCalculatorBuilder\r\n * @exception IllegalArgumentException\r\n * if the type is not null or a valid value.\r\n * @since 1.4.0\r\n */\r\n CurrencyDateCalculatorBuilder<E> getDefaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag);\r\n\r\n CurrencyDateCalculator<E> buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<E> builder);\r\n\r\n /**\r\n * Create a new IMMUTABLE CurrencyDateCalculator specialised for 2 currencies, including WorkingWeek, calendars\r\n * registered and CurrencyCalculatorConfig.\r\n *\r\n * NOTE that USD currency holiday must also be registered.\r\n *\r\n * @param ccy1\r\n * first currency, will pickup the holiday set for this ccy.\r\n * @param ccy2\r\n * second currency, will pick up the holiday set for this ccy.\r\n * @param spotLag\r\n * the number of days between tradeDate and spotDate.\r\n * @return a new CurrencyDateCalculator\r\n * @exception IllegalArgumentException\r\n * if the type is not null or a valid value.\r\n * @since 1.4.0\r\n */\r\n CurrencyDateCalculator<E> getDefaultCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag);\r\n\r\n /**\r\n * Use this method register a specific currency config, if not provided then the DefaultCurrencyCalculatorConfig will be given.\r\n * @param config that specifies the set of currencies subject to USD T+1.\r\n */\r\n void setCurrencyCalculatorConfig(CurrencyCalculatorConfig config);\r\n\r\n CurrencyCalculatorConfig getCurrencyCalculatorConfig();\r\n\r\n /**\r\n * Create a new DateCalculator for a given name and type of handling.\r\n *\r\n * @param name\r\n * calendar name (holidays set interested in). If there is set of\r\n * holidays with that name, it will return a DateCalculator with\r\n * an empty holiday set (will work on Weekend only).\r\n * @param holidayHandlerType\r\n * typically one of the value of HolidayHandlerType or null.\r\n * @return a new DateCalculator\r\n * @exception IllegalArgumentException\r\n * if the type is not null or a valid value.\r\n */\r\n DateCalculator<E> getDateCalculator(String name, String holidayHandlerType);\r\n\r\n /**\r\n * Use this method to register a holidays calendar.\r\n *\r\n * @param calendarName\r\n * the calendar name to register these holidays under.\r\n * @param holidaysCalendar\r\n * the holiday calendar (non-working days with boundaries).\r\n */\r\n KitCalculatorsFactory<E> registerHolidays(String calendarName, HolidayCalendar<E> holidaysCalendar);\r\n\r\n /**\r\n * @return true if the holiday calendar name is registered.\r\n */\r\n boolean isHolidayCalendarRegistered(String calendarName);\r\n\r\n /**\r\n * @return an immutable Holiday Calendar name that is registered.\r\n */\r\n HolidayCalendar<E> getHolidayCalendar(String calendarName);\r\n\r\n /**\r\n * @return an immutable set of registered calendar names\r\n */\r\n Set<String> getRegisteredHolidayCalendarNames();\r\n\r\n /**\r\n * Unregister a given holiday calendar\r\n * @param calendarName\r\n * the calendar name to unregister.\r\n */\r\n KitCalculatorsFactory<E> unregisterHolidayCalendar(String calendarName);\r\n\r\n /**\r\n * unregister all holiday calendars;\r\n */\r\n KitCalculatorsFactory<E> unregisterAllHolidayCalendars();\r\n\r\n // -----------------------------------------------------------------------\r\n //\r\n // ObjectLab, world leaders in the design and development of bespoke\r\n // applications for the securities financing markets.\r\n // www.ObjectLab.co.uk\r\n //\r\n // -----------------------------------------------------------------------\r\n\r\n /**\r\n * Create a new PeriodCountCalculator.\r\n *\r\n * @return a PeriodCountCalculator\r\n */\r\n PeriodCountCalculator<E> getPeriodCountCalculator();\r\n\r\n /**\r\n * Create a new IMMDateCalculator.\r\n *\r\n * @return an IMMDateCalculator\r\n */\r\n IMMDateCalculator<E> getIMMDateCalculator();\r\n\r\n /**\r\n * Create a new holiday handler of given type\r\n * @param holidayHandlerType\r\n * @return a new handler\r\n * @throws IllegalArgumentException if the holidayHandlerType is unsupported\r\n * @since 1.4.0\r\n */\r\n HolidayHandler<E> getHolidayHandler(String holidayHandlerType);\r\n\r\n}", "public void makeInnerObject()\n\t{\n\t\tInnerClass_firstInnerClass objCreationInnerByMethod1=new InnerClass_firstInnerClass();\n\t\tobjCreationInnerByMethod1.accessOuterClassFields();\n\t}", "protected abstract SelfChainingDataObject getNewIndependentInstance();", "private SVGGraphics2D getGenerator() throws Exception {\n\t\tDOMImplementation dom = GenericDOMImplementation.getDOMImplementation();\n\t\tDocument doc = dom.createDocument(null, \"svg\", null);\n\t\tSVGGraphics2D generator = new SVGGraphics2D(doc);\n\t\treturn generator;\n\t}", "public static AggregatorFactory init() {\n \t\ttry {\n \t\t\tAggregatorFactory theAggregatorFactory = (AggregatorFactory) EPackage.Registry.INSTANCE.getEFactory(\"http://www.eclipse.org/b3/2010/aggregator/1.0.0\");\n \t\t\tif(theAggregatorFactory != null) {\n \t\t\t\treturn theAggregatorFactory;\n \t\t\t}\n \t\t}\n \t\tcatch(Exception exception) {\n \t\t\tEcorePlugin.INSTANCE.log(exception);\n \t\t}\n \t\treturn new AggregatorFactoryImpl();\n \t}", "private MultibinderFactory() { }", "private AccessorFactory() {\n\n\t\tCoreConfig cc = CoreConfig.getInstance();\n\t\tString defaultName = cc.getString(\"builder.default\",CoreConstants.BUILDER_HBASE);\n\t\tdefaultBuilder = defaultName;\n\n\t\tfor (int i = 0; i < 20; i++) {\n\n\t\t\tString builderClass = cc.getString(BUILDER_PREFIX + i);\n\t\t\t\n\t\t\tif(StringUtils.isBlank(builderClass))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tClass<?> builderClazz = getClass().getClassLoader().loadClass(builderClass);\n\n\t\t\t\tAccessorBuilder hbaseBuilder = (AccessorBuilder) builderClazz.newInstance();\n\n\t\t\t\tbuilderMap.put(hbaseBuilder.getBuilderName(), hbaseBuilder);\n\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tLOGGER.error(\"class:{} is not found.\", builderClass);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tLOGGER.error(\"class:{} error in instantiation.\", builderClass);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tLOGGER.error(\"class:{} be illegal accessed.\", builderClass);\n\t\t\t}\n\n\t\t}\n\n\t\tappendMapping(CoreConstants.BUILDER_HBASE, \"com/obal/meta/AccessorMap.hbase.properties\");\n\n\t}", "public EndpointPropertiesBaseInner() {\n }", "private void initialiseAll() {\n // now that all the BeanDescriptors are in their map\n // we can initialise them which sorts out circular\n // dependencies for OneToMany and ManyToOne etc\n BeanDescriptorInitContext initContext = new BeanDescriptorInitContext(asOfTableMap, draftTableMap, asOfViewSuffix);\n\n // PASS 1:\n // initialise the ID properties of all the beans\n // first (as they are needed to initialise the\n // associated properties in the second pass).\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseId(initContext);\n }\n\n // PASS 2:\n // now initialise all the inherit info\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initInheritInfo();\n }\n\n // PASS 3:\n // now initialise all the associated properties\n for (BeanDescriptor<?> d : descMap.values()) {\n // also look for intersection tables with\n // associated history support and register them\n // into the asOfTableMap\n d.initialiseOther(initContext);\n }\n\n // PASS 4:\n // now initialise document mapping which needs target descriptors\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initialiseDocMapping();\n }\n\n // create BeanManager for each non-embedded entity bean\n for (BeanDescriptor<?> d : descMap.values()) {\n d.initLast();\n if (!d.isEmbedded()) {\n beanManagerMap.put(d.fullName(), beanManagerFactory.create(d));\n checkForValidEmbeddedId(d);\n }\n }\n }", "@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }", "public AggregatorFactoryImpl() {\n \t\tsuper();\n \t}", "protected void setUp() {\n // set up for test\n instance = new GeneralizationImpl();\n GeneralizableElement mockChild = EasyMock.createMock(GeneralizableElement.class);\n GeneralizableElement mockParent = EasyMock.createMock(GeneralizableElement.class);\n Classifier mockPowertype = EasyMock.createMock(Classifier.class);\n instance.setChild(mockChild);\n instance.setDiscriminator(TEST_DISCRIMINATORS[0]);\n instance.setParent(mockParent);\n instance.setPowertype(mockPowertype);\n\n }", "public static Manager createScenarioManagerB() {\n\t\t\t//Establish all the employees\n\t\t\tManager managerB = new Manager();\n\t\t\tEmployee developerA = new Developer();\n\t\t\tEmployee qaTesterA = new QATester();\n\t\n\t\t\t//Set up reporting employee hierarchy\n\t\t\tmanagerB.addReportingEmployee(developerA);\n\t\t\tmanagerB.addReportingEmployee(qaTesterA);\n\t\t\t\n\t\t\treturn managerB;\n\t\t}", "private OperatorStateBackend createOperatorStateBackend() throws Exception {\n\t\treturn getStateBackend().createOperatorStateBackend(\n\t\t\tnew DummyEnvironment(), \"test_op\", Collections.emptyList(), new CloseableRegistry());\n\t}", "@Override\n protected List<IElementParser<ShapeImpl>> createParserList() {\n List<IElementParser<ShapeImpl>> result = new ArrayList<>();\n result.add(new SubElementPolylineParser());\n result.add(new SubElementClothoidParser());\n result.add(new SubElementNurbsParser());\n return result;\n }", "private void init() throws EPPParserException {\n\t\tcat.debug(\"init() enter\");\n\n\t\tcat.info(\"Creating parser instance with symbol table size: \"\n\t\t\t\t + symbolTableSize);\n\n\t\t// Explicitly providing an XMLConfiguration here\n\t\t// prevents Xerces from going out and looking up\n\t\t// the default parser configuration from the System properties\n\t\t// If the symbol table size is 0 then don't create a symbol table. Just\n\t\t// use the default constructor for the XMLConfiguration. The default from\n\t\t// the XMLConfiguration will be used\n\t\tif (symbolTableSize == 0) {\n\t\t\t/**\n\t\t\t * @todo change the configuration that's instantiated to be\n\t\t\t * \t\t configurable\n\t\t\t */\n\t\t\tparserImpl = new DOMParser(new XMLGrammarCachingConfiguration());\n\t\t}\n\t\telse {\n\t\t\tSymbolTable symbolTable = new SymbolTable(symbolTableSize);\n\n\t\t\t/**\n\t\t\t * @todo change the configuration that's instantiated to be\n\t\t\t * \t\t configurable\n\t\t\t */\n\t\t\tparserImpl = new DOMParser(new XML11Configuration(symbolTable));\n\t\t}\n\n\t\t// Register this instance with the entity resolver\n\t\tEPPSchemaCachingEntityResolver resolver =\n\t\t\tnew EPPSchemaCachingEntityResolver(this);\n\n\t\tparserImpl.setEntityResolver(resolver);\n\n\t\t// setup the default behavior for this parser\n\t\tcat.debug(\"Setting default parser features. Namespaces and Schema validation are on\");\n\n\t\ttry {\n\n if (EPPEnv.getValidating()) {\n parserImpl.setFeature(VALIDATION_FEATURE_ID, true);\n parserImpl.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true);\n }\n\n if (EPPEnv.getFullSchemaChecking()) {\n parserImpl.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, true);\n }\n\n // set other properties of the parser -\n parserImpl.setFeature(LOAD_EXTERNAL_DTD, false);\n parserImpl.setFeature(LOAD_DTD_GRAMMAR, false);\n parserImpl.setFeature(CREATE_ENTITY_REF_NODES, false);\n parserImpl.setFeature(INCLUDE_IGNORABLE_WHITE_SPACE, false);\n parserImpl.setFeature(EXTERNAL_GENERAL_ENTITIES, false);\n parserImpl.setFeature(EXTERNAL_PARAMETER_ENTITIES, false);\n\n\t\t\tparserImpl.setFeature(NAMESPACES_FEATURE_ID, true);\n \t\tparserImpl.setFeature(DEFER_NODE_EXPANSION, false);\n\t\t}\n catch (SAXException e) {\n\t\t\tcat.error(\"setting features of parserImpl failed\", e);\n\t\t\tthrow new EPPParserException(e);\n\t\t}\n \n // Pre-load the XML schemas based on the registerd EPPMapFactory \n // and EPPExtFactory instances.\n Set theSchemas = EPPFactory.getInstance().getXmlSchemas();\n Iterator theSchemasIter = theSchemas.iterator();\n while (theSchemasIter.hasNext()) {\n \tString theSchemaName = (String) theSchemasIter.next();\n \t\n \tcat.debug(\"init(): Pre-loading XML schema \\\"\" + theSchemaName + \"\\\"\");\n \t\n \t\t// lookup the file name in this classes's classpath under \"schemas\"\n \t\tInputStream theSchemaStream =\n \t\t\tgetClass().getClassLoader().getResourceAsStream(\"schemas/\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ theSchemaName);\n\n \t\n \tthis.addSchemaToCache(new XMLInputSource(theSchemaName, theSchemaName, theSchemaName, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttheSchemaStream, null));\n }\n \n \n\t\tcat.debug(\"init() exit\");\n\t}", "public AugmentedfsmFactoryImpl() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void agentSetup() {\n\n\t\t// load the class names of each object\n\t\tString os = dagent.getOfferingStrategy().getClassname();\n\t\tString as = dagent.getAcceptanceStrategy().getClassname();\n\t\tString om = dagent.getOpponentModel().getClassname();\n\t\tString oms = dagent.getOMStrategy().getClassname();\n\n\t\t// createFrom the actual objects using reflexion\n\n\t\tofferingStrategy = BOAagentRepository.getInstance().getOfferingStrategy(os);\n\t\tacceptConditions = BOAagentRepository.getInstance().getAcceptanceStrategy(as);\n\t\topponentModel = BOAagentRepository.getInstance().getOpponentModel(om);\n\t\tomStrategy = BOAagentRepository.getInstance().getOMStrategy(oms);\n\n\t\t// init the components.\n\t\ttry {\n\t\t\topponentModel.init(negotiationSession, dagent.getOpponentModel().getParameters());\n\t\t\topponentModel.setOpponentUtilitySpace(fNegotiation);\n\t\t\tomStrategy.init(negotiationSession, opponentModel, dagent.getOMStrategy().getParameters());\n\t\t\tofferingStrategy.init(negotiationSession, opponentModel, omStrategy,\n\t\t\t\t\tdagent.getOfferingStrategy().getParameters());\n\t\t\tacceptConditions.init(negotiationSession, offeringStrategy, opponentModel,\n\t\t\t\t\tdagent.getAcceptanceStrategy().getParameters());\n\t\t\tacceptConditions.setOpponentUtilitySpace(fNegotiation);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// remove the reference to the information object such that the garbage\n\t\t// collector can remove it.\n\t\tdagent = null;\n\t}", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "private Seabee() {\n register(DirectionMarkerDetector.getInstance());\n register(GateDetector.getInstance());\n\n registerSubsystem(PathPlanner.getInstance());\n registerSubsystem(Imu.getInstance());\n registerSubsystem(Thrusters.getInstance());\n }", "MeterProvider create();", "private XMLTreeNNExpressionEvaluator() {\n }", "void fillInnerParts() {\n browserPanel = new BrowserPanel();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"129\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"browserPanel\", \"VariableName: \",\"BrowserPanel\");\n browserPlaceholder.getChildren().add(browserPanel.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"130\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n personListPanel = new PersonListPanel(logic.getFilteredPersonList());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"132\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n personListPanelPlaceholder.getChildren().add(personListPanel.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"133\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n ResultDisplay resultDisplay = new ResultDisplay();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"135\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"ResultDisplay\", \"VariableName: \",\"resultDisplay\", \"VariableName: \",\"ResultDisplay\");\n resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"136\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n StatusBarFooter statusBarFooter = new StatusBarFooter(prefs.getAddressBookFilePath());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"138\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"139\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n CommandBox commandBox = new CommandBox(logic);\n\t\tTemplateClass.instrum(\"LineNumber: \",\"141\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"CommandBox\", \"VariableName: \",\"commandBox\", \"VariableName: \",\"CommandBox\", \"VariableName: \",\"logic\");\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"142\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n }", "private static void init() throws AggregatorException {Populator Configuration\n\n// //ASIN Populator\n// PopulatorData asinPopulator = new PopulatorData(ASINPopulator.class.getName(),\n// new ArrayList<String>());\n// configuration.put(\"ASINPopulator\", asinPopulator);\n//\n// //Title Populator\n// ArrayList<String> titlePopulatorDependencies = new ArrayList<String>();\n// titlePopulatorDependencies.add(\"/ItemLookupResponse/Items/Item/Accessories/Accessory/ASIN\");\n// titlePopulatorDependencies.add(\"/ItemLookupResponse/Items/Item/SimilarProducts/SimilarProduct/ASIN\");\n// titlePopulatorDependencies.add(\"/ItemSearchResponse/Items/Item/Accessories/Accessory/ASIN\");\n// titlePopulatorDependencies.add(\"/ItemSearchResponse/Items/Item/SimilarProducts/SimilarProduct/ASIN\");\n// titlePopulatorDependencies.add(\"/SimilarityLookupResponse/Items/Item/Accessories/Accessory/ASIN\");\n// titlePopulatorDependencies.add(\"/SimilarityLookupResponse/Items/Item/SimilarProducts/SimilarProduct/ASIN\");\n// PopulatorData titlePopulator = new PopulatorData(TitlePopulator.class.getName(),\n// titlePopulatorDependencies);\n// configuration.put(\"TitlePopulator\", titlePopulator);\n//\n// \n }", "public static synchronized void init() {\n String registryClassName = System.getProperty(REGISTRY_CLASS_NAME,\n DefaultServiceRegistry.class.getName());\n String endpointProviderClassName = System.getProperty(ENDPOINT_PROVIDER_CLASS_NAME,\n DefaultEndpointProvider.class.getName());\n\n try {\n registry = getRegistry(registryClassName);\n endpointProvider = getEndpointProvider(endpointProviderClassName);\n transformers = new BaseTransformerRegistry();\n } catch (NullPointerException npe) {\n throw new RuntimeException(npe);\n }\n }", "private void initSubNodes()\n {\n children = createSubNodes(false);\n attributes = createSubNodes(true);\n }", "private XSLTTransformerFactory() {\r\n\t}", "private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }", "private void startup() {\n LOGGER.info(\"Warming up extraction pipeline....\");\n\n for (Extractor extractor : this.context.extractors()) {\n try {\n extractor.init(this.context.persistencyWriter(), this.context.batchSize());\n this.extractors.add(extractor);\n } catch (Throwable t) {\n LOGGER.warn(\"Failed to initialize extractor {} due to an exception: {}\", extractor.getClass().getSimpleName(), t.getMessage());\n }\n }\n\n for (Extractor exporter : this.context.exporters()) {\n try {\n exporter.init(this.context.persistencyWriter(), this.context.batchSize());\n this.extractors.add(exporter);\n } catch (Throwable t) {\n LOGGER.warn(\"Failed to exporter extractor {} due to an exception: {}\", exporter.getClass().getSimpleName(), t.getMessage());\n }\n }\n \n LOGGER.info(\"Extraction pipeline is ready with {} extractors.\", this.extractors.size());\n }", "public EnotationFactoryImpl() {\n\t\tsuper();\n\t}", "protected abstract void createNestedWidgets();", "public void instantiation() {\n TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();\n\n // BEGIN: com.azure.monitor.query.MetricsQueryClient.instantiation\n MetricsQueryClient metricsQueryClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildClient();\n // END: com.azure.monitor.query.MetricsQueryClient.instantiation\n\n // BEGIN: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildAsyncClient();\n // END: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n }", "public Factory() {\n\t\tnb_rounds = 0; \n\t\tnb_to_train = 0; \n\t\ttraining_queue = new LinkedList<Pair<Soldier, Integer>>(); \n\t\tcurrent = null;\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\theuristicStrategyEClass = createEClass(HEURISTIC_STRATEGY);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__GRAPHIC_REPRESENTATION);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__NEMF);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__ECORE_CONTAINMENT);\n\t\tcreateEAttribute(heuristicStrategyEClass, HEURISTIC_STRATEGY__CURRENT_REPRESENTATION);\n\t\tcreateEAttribute(heuristicStrategyEClass, HEURISTIC_STRATEGY__CURRENT_MMGR);\n\t\tcreateEReference(heuristicStrategyEClass, HEURISTIC_STRATEGY__LIST_REPRESENTATION);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_HEURISTICS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_ROOT_ELEMENT);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_GRAPHICAL_ELEMENTS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___GET_FEATURE_NAME__ECLASS_ECLASS);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___GET_ELIST_ECLASSFROM_EREFERENCE__EREFERENCE);\n\t\tcreateEOperation(heuristicStrategyEClass, HEURISTIC_STRATEGY___EXECUTE_DIRECT_PATH_MATRIX);\n\n\t\tconcreteStrategyLinkEClass = createEClass(CONCRETE_STRATEGY_LINK);\n\n\t\tstrategyLabelEClass = createEClass(STRATEGY_LABEL);\n\t\tcreateEOperation(strategyLabelEClass, STRATEGY_LABEL___GET_LABEL__ECLASS);\n\n\t\tconcreteStrategyLabelFirstStringEClass = createEClass(CONCRETE_STRATEGY_LABEL_FIRST_STRING);\n\n\t\tconcreteStrategyLabelIdentifierEClass = createEClass(CONCRETE_STRATEGY_LABEL_IDENTIFIER);\n\n\t\tconcreteStrategyLabelParameterEClass = createEClass(CONCRETE_STRATEGY_LABEL_PARAMETER);\n\t\tcreateEReference(concreteStrategyLabelParameterEClass, CONCRETE_STRATEGY_LABEL_PARAMETER__LABEL_PARAMETER);\n\n\t\tlabelParameterEClass = createEClass(LABEL_PARAMETER);\n\t\tcreateEAttribute(labelParameterEClass, LABEL_PARAMETER__LIST_LABEL);\n\t\tcreateEOperation(labelParameterEClass, LABEL_PARAMETER___TO_COMMA_SEPARATED_STRING_LABEL);\n\t\tcreateEOperation(labelParameterEClass, LABEL_PARAMETER___DEFAULT_PARAMETERS);\n\n\t\tstrategyRootSelectionEClass = createEClass(STRATEGY_ROOT_SELECTION);\n\t\tcreateEOperation(strategyRootSelectionEClass, STRATEGY_ROOT_SELECTION___GET_ROOT__ELIST_ELIST);\n\t\tcreateEOperation(strategyRootSelectionEClass, STRATEGY_ROOT_SELECTION___LIST_ROOT__ELIST_ELIST);\n\n\t\tconcreteStrategyMaxContainmentEClass = createEClass(CONCRETE_STRATEGY_MAX_CONTAINMENT);\n\n\t\tconcreteStrategyNoParentEClass = createEClass(CONCRETE_STRATEGY_NO_PARENT);\n\n\t\tstrategyPaletteEClass = createEClass(STRATEGY_PALETTE);\n\t\tcreateEOperation(strategyPaletteEClass, STRATEGY_PALETTE___GET_PALETTE__EOBJECT);\n\n\t\tconcreteStrategyPaletteEClass = createEClass(CONCRETE_STRATEGY_PALETTE);\n\n\t\tstrategyArcSelectionEClass = createEClass(STRATEGY_ARC_SELECTION);\n\t\tcreateEReference(strategyArcSelectionEClass, STRATEGY_ARC_SELECTION__ARC_DIRECTION);\n\t\tcreateEOperation(strategyArcSelectionEClass, STRATEGY_ARC_SELECTION___IS_ARC__ECLASS);\n\n\t\tconcreteStrategyArcSelectionEClass = createEClass(CONCRETE_STRATEGY_ARC_SELECTION);\n\n\t\tstrategyArcDirectionEClass = createEClass(STRATEGY_ARC_DIRECTION);\n\t\tcreateEOperation(strategyArcDirectionEClass, STRATEGY_ARC_DIRECTION___GET_DIRECTION__ECLASS);\n\n\t\tarcParameterEClass = createEClass(ARC_PARAMETER);\n\t\tcreateEAttribute(arcParameterEClass, ARC_PARAMETER__SOURCE);\n\t\tcreateEAttribute(arcParameterEClass, ARC_PARAMETER__TARGET);\n\t\tcreateEOperation(arcParameterEClass, ARC_PARAMETER___DEFAULT_PARAM);\n\n\t\tdefaultArcParameterEClass = createEClass(DEFAULT_ARC_PARAMETER);\n\t\tcreateEOperation(defaultArcParameterEClass, DEFAULT_ARC_PARAMETER___TO_COMMA_SEPARATED_STRING_SOURCE);\n\t\tcreateEOperation(defaultArcParameterEClass, DEFAULT_ARC_PARAMETER___TO_COMMA_SEPARATED_STRING_TARGET);\n\n\t\tconcreteStrategyArcDirectionEClass = createEClass(CONCRETE_STRATEGY_ARC_DIRECTION);\n\t\tcreateEReference(concreteStrategyArcDirectionEClass, CONCRETE_STRATEGY_ARC_DIRECTION__PARAM);\n\t\tcreateEOperation(concreteStrategyArcDirectionEClass, CONCRETE_STRATEGY_ARC_DIRECTION___CONTAINS_STRING_EREFERENCE_NAME__ELIST_STRING);\n\n\t\tconcreteStrategyDefaultDirectionEClass = createEClass(CONCRETE_STRATEGY_DEFAULT_DIRECTION);\n\n\t\tstrategyNodeSelectionEClass = createEClass(STRATEGY_NODE_SELECTION);\n\t\tcreateEOperation(strategyNodeSelectionEClass, STRATEGY_NODE_SELECTION___IS_NODE__ECLASS);\n\n\t\tconcreteStrategyDefaultNodeSelectionEClass = createEClass(CONCRETE_STRATEGY_DEFAULT_NODE_SELECTION);\n\n\t\tstrategyPossibleElementsEClass = createEClass(STRATEGY_POSSIBLE_ELEMENTS);\n\t\tcreateEReference(strategyPossibleElementsEClass, STRATEGY_POSSIBLE_ELEMENTS__ECLASS_NO_ELEMENTS);\n\t\tcreateEOperation(strategyPossibleElementsEClass, STRATEGY_POSSIBLE_ELEMENTS___POSSIBLE_ELEMENTS__ECLASS_ELIST_ELIST);\n\n\t\tconcreteStrategyContainmentDiagramElementEClass = createEClass(CONCRETE_STRATEGY_CONTAINMENT_DIAGRAM_ELEMENT);\n\n\t\tecoreMatrixContainmentEClass = createEClass(ECORE_MATRIX_CONTAINMENT);\n\t\tcreateEAttribute(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT__DIRECT_MATRIX_CONTAINMENT);\n\t\tcreateEAttribute(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT__PATH_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_PARENT__INTEGER);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_DIRECT_MATRIX_CONTAINMENT__ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_PATH_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___COPY_MATRIX);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___PRINT_DIRECT_MATRIX_CONTAINMENT__ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_EALL_CHILDS__ECLASS_ELIST);\n\t\tcreateEOperation(ecoreMatrixContainmentEClass, ECORE_MATRIX_CONTAINMENT___GET_ALL_PARENTS__INTEGER);\n\n\t\theuristicStrategySettingsEClass = createEClass(HEURISTIC_STRATEGY_SETTINGS);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_LABEL);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_ROOT);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_PALETTE);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_ARC_SELECTION);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_NODE_SELECTION);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_POSSIBLE_ELEMENTS);\n\t\tcreateEReference(heuristicStrategySettingsEClass, HEURISTIC_STRATEGY_SETTINGS__STRATEGY_LINKCOMPARTMENT);\n\n\t\tstrategyLinkCompartmentEClass = createEClass(STRATEGY_LINK_COMPARTMENT);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_LINKS);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_COMPARTMENT);\n\t\tcreateEReference(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT__LIST_AFFIXED);\n\t\tcreateEOperation(strategyLinkCompartmentEClass, STRATEGY_LINK_COMPARTMENT___EXECUTE_LINK_COMPARTMENTS_HEURISTICS__ECLASS);\n\n\t\tconcreteContainmentasAffixedEClass = createEClass(CONCRETE_CONTAINMENTAS_AFFIXED);\n\n\t\tconcreteContainmentasLinksEClass = createEClass(CONCRETE_CONTAINMENTAS_LINKS);\n\n\t\tconcreteContainmentasCompartmentsEClass = createEClass(CONCRETE_CONTAINMENTAS_COMPARTMENTS);\n\n\t\trepreHeurSSEClass = createEClass(REPRE_HEUR_SS);\n\t\tcreateEReference(repreHeurSSEClass, REPRE_HEUR_SS__HEURISTIC_STRATEGY_SETTINGS);\n\t}", "private Virtualnetworkmanager createVirtualnetworkmanager() throws DatatypeConfigurationException {\n\t\t\n\t\tVirtualnetworkmanager root = objFactory.createVirtualnetworkmanager();\n\t\t\t\n\t\t// create catalog\n\t\tCatalog catalog = createCatalog();\n\t\t// create nffgs\n\t\tSet<Nffg> nffgs = createNffgs();\n\t\t// create in\n\t\tIn in = createIn();\n\t\t\n\t\t// populate the root element\n\t\troot.setCatalog(catalog);\n\t\tfor(Nffg nffg : nffgs){\n\t\t\troot.getNffg().add(nffg);\n\t\t}\t\t\t\n\t\troot.setIn(in);\n\t\t\n\t\treturn root;\n\t\t\n\t}", "private void createFrameworkManipulator() {\n \t\tFrameworkAdmin admin = getFrameworkAdmin();\n \t\tif (admin == null)\n \t\t\tthrow new RuntimeException(\"Framework admin service not found\"); //$NON-NLS-1$\n \t\tmanipulator = admin.getManipulator();\n \t\tif (manipulator == null)\n \t\t\tthrow new RuntimeException(\"Framework manipulator not found\"); //$NON-NLS-1$\n \t}", "protected WebDriverManager() {\n initialize();\n }", "void setupInvalidators() {\n mergeResults(exprResult);\n }", "public void main()\n {\n ContextImplementation context = new ContextImplementation(new StrategyAImplementation());\n context.doSomething();\n\n context.setStrategy(new StrategyBImplementation());\n context.doSomething();\n\n // Define a one-to-many dependency between objects so that when the object change states,\n // all it dependents are notified and updated automatically.\n SubjectImplementation subject = new SubjectImplementation();\n\n ObserverInterface saori = new ObserverImplementation(\"Saori\");\n subject.attach(new ObserverImplementation(\"Horatio\"));\n subject.attach(new ObserverImplementation(\"Harper\"));\n subject.attach(saori);\n\n subject.notifyObservers(\"Leon departed for work\");\n\n subject.detach(saori);\n subject.notifyObservers(\"Leon arrived back from work\");\n\n // Attach additional responsibilities to an object dynamically.\n // Decorators provide a flexible alternative to subclassing in order to extend features/functions.\n // Also know as a wrapper.\n Component component = new ComponentImplementation();\n component.doSomething();\n\n Component decoratorA = new DecoratorAImplementation(component);\n decoratorA.doSomething();\n\n Component decoratorB = new DecoratorBImplementation(component);\n decoratorB.doSomething();\n\n Component decoratorC = new DecoratorBImplementation(decoratorA);\n decoratorC.doSomething();\n\n // Define a skeleton of an algorithm in an operation deferring steps to the subclasses.\n // Template method design pattern lets subclasses redefine certain steps on an algorithm without changing the structure of the algorithm.\n new TemplateMethodAImplementation().templateMethod();\n\n new TemplateMethodBImplementation().templateMethod();\n\n // Defines a higher-level interface that makes the subsystems easier to use.\n // Client of the facade don't have to access the sub system objects directly.\n new Facade().doSomething();\n\n // Converts the interface of a class into another interface clients expect.\n // Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.\n // Target defines the interface that a client uses, Adaptee defines and existing interface that needs to be adapted, and Adapter adapts the interface of Adaptee to the Target interface.\n Target adapter = new Adapter();\n adapter.request();\n\n // Ensure a class only has one instance, and provide a global point of access to it.\n // The class itself is responsible for keeping track of it sole instance.\n // The class can ensure that no other instances can be created (by intercepting requests to create new objects), and provide a way to access to access to single instances.\n Singleton singleton = Singleton.getInstance();\n singleton.doSomething();\n\n // Defines an object that encapsulates how a set of objects interact.\n // Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and lets you vary their interaction independently.\n Mediator mediator = new MediatorImplementation(); // Defines the mediator interface enabling a community of colleague objects to interact.\n Colleague a = new ColleagueAImplementation(mediator); // Each colleague knows its mediator objects.\n // The colleague classes are decoupled, adding a new colleague does not impact mediation.\n Colleague b = new ColleagueBImplementation(mediator);\n\n // Each colleague communicates with its mediator whenever it would have otherwise communicated with another colleague directly.\n a.sendMessage(\"Hi Horatio\");\n b.receiveMessage();\n\n // Reduces communication channels between colleagues since a colleague only has to communicate with the mediator.\n b.sendMessage(\"Hi Harper\");\n a.receiveMessage();\n\n // Decouples an abstraction from it implementation so that the two can vary independently.\n // Divides the abstraction and the implementation into separate class hierarchies.\n // Changes in the implementation of an abstraction should not have an impact on clients.\n Implementor impA = new ImplementorA();\n Implementor impB = new ImplementorB();\n\n // Implementation of an abstraction can be configured at runtime.\n Client clientA = new Client(new AbtractionImplementation(impA));\n clientA.doSomething();\n\n Client clientB = new Client(new AbtractionImplementation(impB));\n clientB.doSomething();\n\n // Command pattern decouples the object that invokes the operation from the one that knows how to perform it.\n Receiver receiver = new Receiver();\n // Client create a command implementation and specifies a receiver.\n Command command = new CommandImplementation(receiver);\n Invoker invoker = new Invoker();\n // Invoker stores the command object.\n invoker.setCommand(command);\n // Invoker issues a request by calling Execute on the command.\n invoker.execute();\n\n }", "public RulesEngineInner() {\n }", "CalculatorController(){\n\t\tintegrationStrategy.put(IntegrationType.RECTANGLES, new CalculatorByRectangles());\n\t\tintegrationStrategy.put(IntegrationType.TRAPEZES, new CalculatorByTrapezes());\n\t\tintegrationStrategy.put(IntegrationType.INTEGRAL, new CalculatorByIntegration());\n\t}", "MetricsFactory getMetricsFactory();", "private void setupMachinery() {\n\t\tthis.renderer = new IntermediateRenderer();\n\t\tthis.controllerModel = new ControllerModel();\n\t\t\n\t\t// connect the Renderer to the Hub\n\t\tthis.hub = new ControllerHub(this.controllerModel, this.renderer, this);\n\t\tthis.hub.addAtomContainer(ac);\n\t\t\n\t\t// connect mouse events from Panel to the Hub\n\t\tthis.mouseEventRelay = new SwingMouseEventRelay(this.hub);\n\t\tthis.addMouseListener(mouseEventRelay);\n\t}", "private TestAcceptFactory() {\n this._pool = new DirectExecutor();\n }", "private void instantiate(){\n inputAddressList = new LinkedList<Address>();\n inputGroupList = new LinkedList<Group>();\n root = new Group(\"root\", 0);\n }", "private CuratorFramework createCurator() {\n // Create list of Servers\n final String serverStr = sharedZookeeperTestResource.getZookeeperConnectString();\n final List<String> serverList = Arrays.asList(Tools.splitAndTrim(serverStr));\n\n // Create config map\n final Map<String, Object> config = new HashMap<>();\n config.put(\"servers\", serverList);\n\n return CuratorFactory.createNewCuratorInstance(config, getClass().getSimpleName());\n }", "protected synchronized void initGraph() throws Throwable {\r\n\t\tif (!initialized) {\r\n\t\t\tinitialized = true;\r\n\t\t\tif (rootGenerator instanceof MultipleRootGenerator) {\r\n\t\t\t\tCollection<Node<T, V>> roots = ((MultipleRootGenerator<T>) rootGenerator).getRoots().stream().map(n -> newNode(null, n)).collect(Collectors.toList());\r\n\t\t\t\tfor (Node<T, V> root : roots) {\r\n\t\t\t\t\tlabelNode(root);\r\n\t\t\t\t\topen.add(root);\r\n\t\t\t\t\tlogger.info(\"Labeled root with {}\", root.getInternalLabel());\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tNode<T, V> root = newNode(null, ((SingleRootGenerator<T>) rootGenerator).getRoot());\r\n\t\t\t\tlabelNode(root);\r\n\t\t\t\topen.add(root);\r\n\t\t\t}\r\n\r\n\t\t\t// check if the equals method is explicitly implemented.\r\n\t\t\t// Method [] methods = open.peek().getPoint().getClass().getDeclaredMethods();\r\n\t\t\t// boolean containsEquals = false;\r\n\t\t\t// for(Method m : methods)\r\n\t\t\t// if(m.getName() == \"equals\") {\r\n\t\t\t// containsEquals = true;\r\n\t\t\t// break;\r\n\t\t\t// }\r\n\t\t\t//\r\n\t\t\t// if(!containsEquals)\r\n\t\t\t// this.parentDiscarding = ParentDiscarding.NONE;\r\n\t\t}\r\n\t}", "private void setup(){\n buildTree(2);\n }", "public OrotParser() {\n createPackagesJson();\n }", "public static Graph makeMeAGraph(Set<Operation> operations, State init){\n Graph graph = new implementGraph(operations , init) ;\n return graph;\n\n\t //\t throw new NotImplementedException();\n }", "private void createFeatures() {\n\t\tfeatures = new Feature[NUM_FEATURES];\n\n\t\t// Create dummy feature\n\t\tfeatures[0] = new DummyFeature(width, height, 0, 0 - THRESHOLD);\n\n\t\t// Create the rest of the features\n\t\tfor (int i = 1; i < NUM_FEATURES; i++) {\n\t\t\tfeatures[i] = new Feature(width, height, i);\n\t\t}\n\t}", "public DispenserFactory() {\n log = LogManager.getLogger(DispenserFactory.class.getName());\n dispensers = new LinkedHashMap<String, Dispenser>();\n addDispenser(\"exp\" , \"Expander\" );\n addDispenser(\"intexp\" , \"IntegerExpander\" );\n addDispenser(\"modo\" , \"ModoMeter\" );\n addDispenser(\"monexp\" , \"MonotoneExpander\" );\n addDispenser(\"perm\" , \"Permutator\" );\n addDispenser(\"range\" , \"RangeDispenser\" );\n }", "@Override\n\tpublic void buildEvaluator(Instances data) throws Exception {\n\t\tthis.instances = data;\n\t}", "public static MgtFactory init()\n {\n try\n {\n MgtFactory theMgtFactory = (MgtFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://mgt/1.0\"); \n if (theMgtFactory != null)\n {\n return theMgtFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new MgtFactoryImpl();\n }", "@Override\n protected LearningPerformanceEvaluator<Example<Instance>> [] getRegressionEvaluatorSetups() {\n \tLearningPerformanceEvaluator<Example<Instance>> value = new BasicRegressionPerformanceEvaluator();\n \tLearningPerformanceEvaluator<Example<Instance>> [] ret = new BasicRegressionPerformanceEvaluator[this.numberTests];\n for (int i = 0; i < this.numberTests; i++) {\n ret[i] = (LearningPerformanceEvaluator<Example<Instance>> ) value.copy();\n }\n return ret;\n }", "public Transducer ()\n\t{\n\t\tsumLatticeFactory = new SumLatticeDefault.Factory();\n\t\tmaxLatticeFactory = new MaxLatticeDefault.Factory();\n\t}", "public Map<Integer, OperatorStateBackend> createOperatorStateBackendsFromSnapshot() throws Exception {\n\t\treturn Maps.transformValues(opState.getSubtaskStates(),\n\t\t\t\tsst -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn restoreOperatorStateBackend(sst.getManagedOperatorState());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "private void createPartitions() {\n \tfor (int attrOrd : splitAttrs) {\n \t\tFeatureField featFld = schema.findFieldByOrdinal(attrOrd);\n \t\tif (featFld.isInteger()) {\n \t\t\t//numerical\n \t\t\tList<Integer[]> splitList = new ArrayList<Integer[]>();\n \t\t\tInteger[] splits = null;\n \t\t\tcreateNumPartitions(splits, featFld, splitList);\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (Integer[] thisSplit : splitList) {\n \t\t\t\tsplitHandler.addIntSplits(attrOrd, thisSplit);\n \t\t\t}\n \t\t} else if (featFld.isCategorical()) {\n \t\t\t//categorical\n \t\t\tint numGroups = featFld.getMaxSplit();\n \t\t\tif (numGroups > maxCatAttrSplitGroups) {\n \t\t\t\tthrow new IllegalArgumentException(\n \t\t\t\t\t\"more than \" + maxCatAttrSplitGroups + \" split groups not allwed for categorical attr\");\n \t\t\t}\n \t\t\t\n \t\t\t//try all group count from 2 to max\n \t\t\tList<List<List<String>>> finalSplitList = new ArrayList<List<List<String>>>();\n \t\t\tfor (int gr = 2; gr <= numGroups; ++gr) {\n \t\t\t\tLOG.debug(\"num of split sets:\" + gr);\n \t\t\t\tList<List<List<String>>> splitList = new ArrayList<List<List<String>>>();\n \t\t\t\tcreateCatPartitions(splitList, featFld.getCardinality(), 0, gr);\n \t\t\t\tfinalSplitList.addAll(splitList);\n \t\t\t}\n \t\t\t\n \t\t\t//collect all splits\n \t\t\tfor (List<List<String>> splitSets : finalSplitList) {\n \t\t\t\tsplitHandler.addCategoricalSplits(attrOrd, splitSets);\n \t\t\t}\n \t\t\t\n \t\t}\n \t}\n }", "private InliningState createChildState(CachedBzlLoadDataManager cachedBzlLoadDataManager) {\n CachedBzlLoadData.Builder newBuilder = cachedBzlLoadDataManager.cachedDataBuilder();\n RecordingSkyFunctionEnvironment newRecordingEnv =\n new RecordingSkyFunctionEnvironment(\n recordingEnv.getDelegate(),\n newBuilder::addDep,\n newBuilder::addDeps,\n newBuilder::noteException);\n return new InliningState(\n newRecordingEnv,\n newBuilder,\n loadStack,\n successfulLoads,\n unsuccessfulLoads,\n newBuilder::addTransitiveDeps);\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "private HierarchyFactory ()\n {\n }", "private void createSignalSystems() {\r\n\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(2)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(3)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(4)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(5)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(7)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(8)));\r\n\r\n if (TtCreateParallelNetworkAndLanes.checkNetworkForSecondODPair(this.scenario.getNetwork())) {\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(10)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(11)));\r\n }\r\n }", "public ElaboratorVisitor() {\r\n\t\tthis.classTable = new ClassTable();\r\n\t\tthis.methodTable = new MethodTable();\r\n\t\tthis.currentClass = null;\r\n\t\tthis.type = null;\r\n\r\n\t}", "public Testing2FactoryImpl() {\n\t\tsuper();\n\t}", "@BeforeEach\n\tvoid init() {\n\t\tcalculator = new Calculator();//but create the different object.\n\t\tSystem.out.println(\"init\");\n\t}", "@Override\n protected void init() {\n if (!initialized) {\n \n ExecutorService executor = Executors.newFixedThreadPool(10);\n \n \n \n \n // ThreadGroup group = new ThreadGroup(this.toString());\n\n ArrayList<ParallelHelper> threadlist = new ArrayList<ParallelHelper>();\n\n for (QueryIterator qi : iterators) {\n\n ParallelHelper h = new ParallelHelper(qi);\n /* Thread t = new Thread(group, h);\n t.start(); */\n threadlist.add(h);\n \n executor.submit(h);\n \n\n }\n executor.shutdown();\n \n while (!executor.isTerminated()) {\n try {\n executor.awaitTermination(3600, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n throw new ARQInternalErrorException(e);\n }\n }\n\n/* try {\n join(group);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n*/\n boolean error = false;\n\n for (ParallelHelper h : threadlist) {\n if (h.isError()) {\n error = true;\n throw new QueryExecException(\"Error: \"+h.getException().getMessage());\n }\n }\n \n \n if (!error) {\n for (ParallelHelper h : threadlist) {\n\n try {\n super.add(h.getResultIterator());\n } catch (Exception e) {\n throw new QueryExecException(e);\n }\n }\n super.init();\n }\n initialized = true;\n }\n }", "private EagerlySinleton()\n\t{\n\t}", "@Before\n\tpublic void setUp() {\n\t\tprocessor = new ParseBigDecimal();\n\t\tprocessor2 = new ParseBigDecimal(ENGLISH_SYMBOLS);\n\t\tprocessor3 = new ParseBigDecimal(GERMAN_SYMBOLS);\n\t\tprocessorChain = new ParseBigDecimal(new IdentityTransform());\n\t\tprocessorChain2 = new ParseBigDecimal(ENGLISH_SYMBOLS, new IdentityTransform());\n\t\tprocessorChain3 = new ParseBigDecimal(GERMAN_SYMBOLS, new IdentityTransform());\n\t}", "@Before\n\tpublic void buildProducts()\n\t{\n\t\tint numProducts = 3; \n\n\t\t// Make some products for each of the leaves below the singleton-child\n\t\tint numSingletonLeaves = 2;\n\t\tfor(int i=0; i<numSingletonLeaves; i++)\n\t\t{\n\t\t\tfor(int j = 0; j<numProducts; j++)\n\t\t\t{\n\t\t\t\t// Make attributes for the singleton-child's product\n\t\t\t\tArrayList<Attribute> testAttributes = new ArrayList<Attribute>();\n\t\t\t\ttestAttributes.add(Attribute.buildSpecification(\"specId\" + i, \"specName\" + i, \"Number of pixels per inch\", 72));\n\t\t\t\ttestAttributes.add(Attribute.buildSpecification(\"ratingId\" + i, \"ratingName\" + i, \"Ease of use\", 5));\n\t\t\t\ttestAttributes.add(Attribute.buildPrice(\"priceId\", \"priceName\", \"Typical retail price\", 99.99));\n\t\n\t\t\t\t// Make a product for the singleton-child and add it to the collection of test products\n\t\t\t\taTestProducts.add(new Product(\"productIdSingleton\" + i + \"-\" + j, \"productNameSingleton\" + i + \"-\" + j, true, \n\t\t\t\t\t\"leaf\"+i+\"Id\", \"brandName\", \"http://www.example.com\", testAttributes,\"\",5.0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Make some products for each of the leaves below the equivalence-class\n\t\tint numEqLeaves = 2;\n\t\tfor(int i=0; i<numEqLeaves; i++)\n\t\t{\n\t\t\tfor(int j = 0; j<numProducts; j++)\n\t\t\t{\n\t\t\t\t// Make attributes for the singleton-child's product. \n\t\t\t\t// Note they are the same for each product made\n\t\t\t\tArrayList<Attribute> testAttributes = new ArrayList<Attribute>();\n\t\t\t\ttestAttributes.add(Attribute.buildSpecification(\"specIdEq\", \"specName\", \"Number of pixels per inch\", 72));\n\t\t\t\ttestAttributes.add(Attribute.buildSpecification(\"ratingIdEq\", \"ratingName\", \"Ease of use\", 5));\n\t\t\t\ttestAttributes.add(Attribute.buildPrice(\"priceId\", \"priceName\", \"Typical retail price\", 99.99));\n\t\n\t\t\t\t// Make a product for the singleton-child and add it to the collection of test products\n\t\t\t\taTestProducts.add(new Product(\"productIdEq\" + i + \"-\" + j, \"productNameEq\" + i + \"-\" + j, \n\t\t\t\t\ttrue, \"similarNode\" + i + \"Id\", \"brandName\", \"http://www.example.com\", testAttributes,\"\",5.0));\n\t\t\t}\n\t\t}\n\n\t\t// Make some products for each of the leaves below the non-equivalence-class\n\t\tint numNonEqLeaves = 2;\n\t\tfor(int i=0; i<numNonEqLeaves; i++)\n\t\t{\n\t\t\tfor(int j = 0; j<numProducts; j++)\n\t\t\t{\n\t\t\t\t// Make attributes for the singleton-child's product. \n\t\t\t\t// Note two of these three attributes will have different attribute ids, depending on the equivalence class leaf\n\t\t\t\tArrayList<Attribute> testAttributes = new ArrayList<Attribute>();\n\t\t\t\ttestAttributes.add(Attribute.buildSpecification(\"specIdEq\" + i, \"specName\" + i, \"Number of pixels per inch\", 72));\n\t\t\t\ttestAttributes.add(Attribute.buildSpecification(\"ratingIdEq\" + i, \"ratingName\" + i, \"Ease of use\", 5));\n\t\t\t\ttestAttributes.add(Attribute.buildPrice(\"priceId\", \"priceName\", \"Typical retail price\", 99.99));\n\t\n\t\t\t\t// Make a product for the singleton-child and add it to the collection of test products\n\t\t\t\taTestProducts.add(new Product(\"productIdNonEq\" + i + \"-\" + j, \"productNameNonEq\" + i + \"-\" + j, true, \n\t\t\t\t\t\"dissimilarNode\" + i + \"Id\", \"brandName\", \"http://www.example.com\", testAttributes,\"\",5.0));\n\t\t\t}\n\t\t}\n\t}", "private HyperplaneSubsets() {\n }", "public void createAndRegisterActors(){\n //stressAppNetworkService.getAbstractNetworkServiceList().forEach((type,ns)->{\n stressAppNetworkService.getChatNetworkServicePluginRootList().forEach(ns->{\n //System.out.println(\"Network Service type: \"+type);\n nsPublicKeyMap.put(ns.getPublicKey(), (ChatNetworkServicePluginRoot) ns);\n ((ChatNetworkServicePluginRoot) ns).setMessageReceiver(this);\n int actorCounter = 0;\n for(ActorProfile actor : actorProfileList){\n createAndRegisterActor(actor,(ChatNetworkServicePluginRoot) ns, actorCounter);\n actorCounter++;\n actorsCreated++;\n report(ReportType.ACTOR_CREATED);\n }\n nsStarted++;\n report(ReportType.NS_STARED);\n });\n }", "private static void initSingletons() throws Exception {\n\t\tModel.loadModel();\n\t\tTermSets.init();\n\t\tTermMaps.init();\n\t\tTLRHolder.getInstance();\n\t\tChemNameDictSingleton.hasName(\"acetone\");\n\t\tNGram.getInstance();\n\t\tHyphenTokeniser.init();\n\t\tXMLStrings.init();\n\t\tif(Oscar3Props.getInstance().useMEMM) {\n\t\t\tDFAONTCPRFinder.getInstance();\n\t\t} else {\n\t\t\tDFANEFinder.getInstance();\n\t\t}\n\t\tNameResolver.init();\n\t\tStructureConverter.init();\n\t\tNameToStructure.getInstance();\n\t\tRParser.init();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate StaticBasicParserPool getParserPool() {\n\t\ttry {\n\t\t\tStaticBasicParserPool parserPool = new StaticBasicParserPool();\n\t\t\tparserPool.setBuilderFeatures(Collections.singletonMap(\"http://apache.org/xml/features/dom/defer-node-expansion\", false));\n\t\t\tparserPool.initialize();\n\t\t\treturn parserPool;\n\t\t} catch (XMLParserException e) {\n\t\t\tthrow new RuntimeException(\"Error while initilizing parse pool\", e);\n\t\t}\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tsutEClass = createEClass(SUT);\n\t\tcreateEAttribute(sutEClass, SUT__HOSTNAME);\n\t\tcreateEAttribute(sutEClass, SUT__IP);\n\t\tcreateEAttribute(sutEClass, SUT__HARDWARE);\n\t\tcreateEReference(sutEClass, SUT__SUT);\n\t\tcreateEReference(sutEClass, SUT__METRICMODEL);\n\t\tcreateEAttribute(sutEClass, SUT__TYPE);\n\n\t\tloadGeneratorEClass = createEClass(LOAD_GENERATOR);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HOSTNAME);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IP);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IS_MONITOR);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__SUT);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__METRICMODEL);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HARDWARE);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__MONITOR);\n\n\t\tmonitorEClass = createEClass(MONITOR);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HOSTNAME);\n\t\tcreateEAttribute(monitorEClass, MONITOR__IP);\n\t\tcreateEReference(monitorEClass, MONITOR__SUT);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HARDWARE);\n\t\tcreateEAttribute(monitorEClass, MONITOR__DESCRIPTION);\n\n\t\tmetricModelEClass = createEClass(METRIC_MODEL);\n\t\tcreateEAttribute(metricModelEClass, METRIC_MODEL__NAME);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__CRITERIA);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__THRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__ASSOCIATIONCOUNTERCRITERIATHRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__METRIC);\n\n\t\t// Create enums\n\t\tsuT_TYPEEEnum = createEEnum(SUT_TYPE);\n\t\thardwareEEnum = createEEnum(HARDWARE);\n\t}", "public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public static void main(String args[]){\n\tOuter.createInner();\r\n\t//new Outer.Inner();\r\n\t//new Outer.new Inner();\r\n}", "public void _addDeserializerFactoryMethods(DeserializationContext ctxt, BeanDescription beanDesc, VisibilityChecker<?> vchecker, AnnotationIntrospector intr, CreatorCollector creators, Map<AnnotatedWithParams, BeanPropertyDefinition[]> creatorParams) throws JsonMappingException {\n BeanPropertyDefinition argDef;\n DeserializationConfig config = ctxt.getConfig();\n for (AnnotatedMethod factory : beanDesc.getFactoryMethods()) {\n boolean isCreator = intr.hasCreatorAnnotation(factory);\n int argCount = factory.getParameterCount();\n if (argCount != 0) {\n BeanPropertyDefinition[] propDefs = (BeanPropertyDefinition[]) creatorParams.get(factory);\n if (argCount == 1) {\n if (propDefs == null) {\n argDef = null;\n } else {\n argDef = propDefs[0];\n }\n if (!_checkIfCreatorPropertyBased(intr, factory, argDef)) {\n _handleSingleArgumentFactory(config, beanDesc, vchecker, intr, creators, factory, isCreator);\n if (argDef != null) {\n ((POJOPropertyBuilder) argDef).removeConstructors();\n }\n }\n } else if (!isCreator) {\n continue;\n }\n AnnotatedParameter nonAnnotatedParam = null;\n SettableBeanProperty[] properties = new SettableBeanProperty[argCount];\n int implicitNameCount = 0;\n int explicitNameCount = 0;\n int injectCount = 0;\n int i = 0;\n while (i < argCount) {\n AnnotatedParameter param = factory.getParameter(i);\n BeanPropertyDefinition propDef = propDefs == null ? null : propDefs[i];\n Object injectId = intr.findInjectableValueId(param);\n PropertyName name = propDef == null ? null : propDef.getFullName();\n if (propDef != null && propDef.isExplicitlyNamed()) {\n explicitNameCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (injectId != null) {\n injectCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (intr.findUnwrappingNameTransformer(param) != null) {\n properties[i] = constructCreatorProperty(ctxt, beanDesc, UNWRAPPED_CREATOR_PARAM_NAME, i, param, null);\n implicitNameCount++;\n } else if (isCreator && name != null && !name.isEmpty()) {\n implicitNameCount++;\n properties[i] = constructCreatorProperty(ctxt, beanDesc, name, i, param, injectId);\n } else if (nonAnnotatedParam == null) {\n nonAnnotatedParam = param;\n }\n i++;\n }\n int namedCount = explicitNameCount + implicitNameCount;\n if (isCreator || explicitNameCount > 0 || injectCount > 0) {\n if (namedCount + injectCount == argCount) {\n creators.addPropertyCreator(factory, isCreator, properties);\n } else if (explicitNameCount == 0 && injectCount + 1 == argCount) {\n creators.addDelegatingCreator(factory, isCreator, properties);\n } else {\n throw new IllegalArgumentException(\"Argument #\" + nonAnnotatedParam.getIndex() + \" of factory method \" + factory + \" has no property name annotation; must have name when multiple-parameter constructor annotated as Creator\");\n }\n }\n } else if (isCreator) {\n creators.setDefaultCreator(factory);\n }\n }\n }", "SSElements createSSElements();", "@SuppressWarnings(\"unchecked\")\n private void initElements() {\n\n try {\n\n Elements marker = null;\n\n for (Annotation annotation : this.getClass().getDeclaredAnnotations()) {\n if(annotation instanceof Elements) {\n marker = (Elements) annotation;\n }\n }\n\n if(marker == null) {\n String msg = \"Expected @Elements annotation on Screen class\";\n log.error(msg);\n throw new FrameworkException(msg);\n }\n\n PlatformType platform = DriverWrapper.getActivePlatform();\n Validate.notNull(platform);\n\n Class<? extends BaseElements> elementsClass = null;\n\n if(marker.elements().equals(BaseElements.class)) {\n // do we have individual iOS or Android elements?\n if(PlatformType.ANDROID == platform) {\n elementsClass = marker.androidElements();\n\n } else if(PlatformType.IOS == platform) {\n elementsClass = marker.iosElements();\n } else {\n throw new IllegalArgumentException(\"Un-supported platform\");\n }\n\n } else {\n // just take combined merged elements\n elementsClass = marker.elements();\n }\n\n if(marker.elements().equals(BaseElements.class)) {\n throw new IllegalArgumentException(\"Expected that you provide an elements class\");\n }\n\n Constructor<? extends BaseElements> constructor = elementsClass.getConstructor();\n this.elements = constructor.newInstance();\n\n PageFactory.initElements(new AppiumFieldDecorator(driver), elements);\n\n this.elements.init(driver);\n\n } catch(Exception e) {\n\n log.error(\"Failed to initialize page elements\", e);\n throw new FrameworkException(e);\n }\n }", "public void setUp() throws Exception\r\n {\r\n m_name = \"test\";\r\n m_activation = ActivationPolicy.STARTUP;\r\n m_collection = CollectionPolicy.WEAK;\r\n m_lifestyle = LifestylePolicy.SINGLETON;\r\n m_classname = ComponentDirectiveTestCase.class.getName();\r\n m_categories = new CategoriesDirective( new CategoryDirective[0] );\r\n m_context = \r\n new ContextDirective( \r\n new PartReference[]\r\n {\r\n new PartReference( \"abc\", new ValueDirective( \"abc\" ) ),\r\n new PartReference( \"def\", new ValueDirective( \"def\" ) )\r\n }\r\n );\r\n m_parts = new PartReference[0];\r\n m_base = null;\r\n m_directive = \r\n new ComponentDirective( \r\n m_name, m_activation, m_collection, m_lifestyle, m_classname, \r\n m_categories, m_context, m_parts, m_base );\r\n }", "private XmlFactory() {\r\n /* no-op */\r\n }" ]
[ "0.53621674", "0.5171497", "0.5167787", "0.5085121", "0.5048217", "0.49968553", "0.49583906", "0.49537373", "0.4940326", "0.49315867", "0.4901596", "0.4896896", "0.4887858", "0.4880666", "0.48607832", "0.482629", "0.48044315", "0.47593784", "0.47524172", "0.4710815", "0.47098026", "0.47026417", "0.4701027", "0.4684953", "0.46699488", "0.46692994", "0.46597123", "0.46595037", "0.46544543", "0.4646731", "0.46448386", "0.4633255", "0.4613289", "0.45963162", "0.45961437", "0.45774847", "0.4567783", "0.45653686", "0.4561459", "0.45528442", "0.45428243", "0.4541717", "0.45391816", "0.4538554", "0.4527631", "0.45238474", "0.45229986", "0.4518992", "0.4518006", "0.4506876", "0.44954714", "0.44814232", "0.44794655", "0.44773096", "0.44753876", "0.4473344", "0.4465141", "0.44606087", "0.44600075", "0.4454457", "0.44468367", "0.4446724", "0.4445352", "0.44429982", "0.4438542", "0.44343147", "0.44325802", "0.4431395", "0.44224855", "0.4417759", "0.4417731", "0.4416668", "0.44108477", "0.44075948", "0.44025528", "0.43974063", "0.43960342", "0.43915844", "0.43898582", "0.43887433", "0.43884802", "0.4386613", "0.4384273", "0.4378368", "0.43734986", "0.43719837", "0.4358081", "0.4355319", "0.43519977", "0.4348439", "0.4347581", "0.43472418", "0.43471673", "0.43464336", "0.4345554", "0.4341515", "0.43394148", "0.4337856", "0.43355408", "0.433393" ]
0.87638545
0
Creates a ranging reading from a ranging and RSSI reading.
private RangingReadingLocated<S, P> createRangingReading( final RangingAndRssiReadingLocated<S, P> reading) { return new RangingReadingLocated<>(reading.getSource(), reading.getDistance(), reading.getPosition(), reading.getDistanceStandardDeviation(), reading.getPositionCovariance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "QualityYieldMetrics addRead(final GATKRead read){\n TOTAL_READS++;\n final int length = read.getLength();\n\n final boolean isPfRead = !read.failsVendorQualityCheck();\n if (isPfRead) {\n PF_READS++;\n PF_BASES += length;\n }\n\n TOTAL_BASES += length;\n\n final byte[] quals;\n if (useOriginalQualities) {\n byte[] tmp = ReadUtils.getOriginalBaseQualities(read);\n if (tmp == null) {\n tmp = read.getBaseQualities();\n }\n quals = tmp;\n } else {\n quals = read.getBaseQualities();\n }\n\n // add up quals, and quals >= 20\n for (final byte qual : quals) {\n Q20_EQUIVALENT_YIELD += qual;\n if (qual >= 20) {\n Q20_BASES++;\n }\n if (qual >= 30) {\n Q30_BASES++;\n }\n\n if (isPfRead) {\n PF_Q20_EQUIVALENT_YIELD += qual;\n if (qual >= 20) {\n PF_Q20_BASES++;\n }\n if (qual >= 30) {\n PF_Q30_BASES++;\n }\n }\n }\n return this;\n }", "@Override\n public void estimate() throws RadioSourceEstimationException, NotReadyException,\n LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n createInnerEstimatorsIfNeeded();\n\n final List<RangingReadingLocated<S, P>> rangingReadings = new ArrayList<>();\n final List<RssiReadingLocated<S, P>> rssiReadings = new ArrayList<>();\n for (final ReadingLocated<P> reading : mReadings) {\n if (reading instanceof RangingReadingLocated) {\n rangingReadings.add((RangingReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RssiReadingLocated) {\n rssiReadings.add((RssiReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n rangingReadings.add(createRangingReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n rssiReadings.add(createRssiReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n }\n }\n\n //estimate position using ranging data, if possible\n P estimatedPosition = null;\n if (!mRssiPositionEnabled) {\n mRangingInnerEstimator.setUseReadingPositionCovariances(\n mUseReadingPositionCovariances);\n mRangingInnerEstimator.setHomogeneousLinearSolverUsed(\n mUseHomogeneousRangingLinearSolver);\n mRangingInnerEstimator.setReadings(rangingReadings);\n mRangingInnerEstimator.setInitialPosition(mInitialPosition);\n\n mRangingInnerEstimator.estimate();\n\n mEstimatedPositionCoordinates =\n mRangingInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRangingInnerEstimator.getEstimatedPositionCovariance();\n estimatedPosition = mRangingInnerEstimator.getEstimatedPosition();\n }\n\n //estimate transmitted power and/or pathloss if enabled\n if (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled || mRssiPositionEnabled) {\n mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled);\n mRssiInnerEstimator.setInitialPosition(estimatedPosition);\n\n mRssiInnerEstimator.setTransmittedPowerEstimationEnabled(\n mTransmittedPowerEstimationEnabled);\n mRssiInnerEstimator.setInitialTransmittedPowerdBm(\n mInitialTransmittedPowerdBm);\n\n mRssiInnerEstimator.setPathLossEstimationEnabled(\n mPathLossEstimationEnabled);\n mRssiInnerEstimator.setInitialPathLossExponent(\n mInitialPathLossExponent);\n\n mRssiInnerEstimator.setReadings(rssiReadings);\n\n mRssiInnerEstimator.estimate();\n\n if (mRssiPositionEnabled) {\n mEstimatedPositionCoordinates =\n mRssiInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRssiInnerEstimator.getEstimatedPositionCovariance();\n }\n\n if (mTransmittedPowerEstimationEnabled) {\n //transmitted power estimation enabled\n mEstimatedTransmittedPowerdBm =\n mRssiInnerEstimator.getEstimatedTransmittedPowerdBm();\n mEstimatedTransmittedPowerVariance =\n mRssiInnerEstimator.getEstimatedTransmittedPowerVariance();\n } else {\n //transmitted power estimation disabled\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n }\n\n if (mPathLossEstimationEnabled) {\n //pathloss exponent estimation enabled\n mEstimatedPathLossExponent =\n mRssiInnerEstimator.getEstimatedPathLossExponent();\n mEstimatedPathLossExponentVariance =\n mRssiInnerEstimator.getEstimatedPathLossExponentVariance();\n } else {\n //pathloss exponent estimation disabled\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n //build covariance matrix\n if (mRssiPositionEnabled) {\n //if only RSSI estimation is done, we use directly the available estimated covariance\n mEstimatedCovariance = mRssiInnerEstimator.getEstimatedCovariance();\n\n } else {\n //if both ranging and RSSI data is used, we build covariance matrix by setting\n //position covariance estimated by ranging estimator into top-left corner, and then\n //adding covariance terms related to pathloss exponent and transmitted power\n final Matrix rssiCov = mRssiInnerEstimator.getEstimatedCovariance();\n if (mEstimatedPositionCovariance != null && rssiCov != null) {\n final int dims = getNumberOfDimensions();\n int n = dims;\n if (mTransmittedPowerEstimationEnabled) {\n n++;\n }\n if (mPathLossEstimationEnabled) {\n n++;\n }\n\n final int dimsMinus1 = dims - 1;\n final int nMinus1 = n - 1;\n mEstimatedCovariance = new Matrix(n, n);\n mEstimatedCovariance.setSubmatrix(0, 0,\n dimsMinus1, dimsMinus1,\n mEstimatedPositionCovariance);\n mEstimatedCovariance.setSubmatrix(dims, dims,\n nMinus1, nMinus1, rssiCov);\n } else {\n mEstimatedCovariance = null;\n }\n }\n\n } else {\n mEstimatedCovariance = mEstimatedPositionCovariance;\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n } catch (final AlgebraException e) {\n throw new RadioSourceEstimationException(e);\n } finally {\n mLocked = false;\n }\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "AdvSample(int RSSI, long time)\n {\n this.RSSI = RSSI;\n this.time = time;\n }", "private void checkReadings(final List<? extends ReadingLocated<P>> readings) {\n mNumRangingReadings = mNumRssiReadings = 0;\n\n if (readings == null) {\n return;\n }\n\n for (final ReadingLocated<P> reading : readings) {\n if (reading instanceof RangingReadingLocated) {\n mNumRangingReadings++;\n\n } else if (reading instanceof RssiReadingLocated) {\n mNumRssiReadings++;\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n mNumRangingReadings++;\n mNumRssiReadings++;\n }\n }\n\n mRssiPositionEnabled = mNumRangingReadings < getMinRangingReadings();\n }", "private ArrayList<Read> makeReadList() {\r\n\t\tArrayList<Read> rlist=makeReadList2();\r\n\t\tif(mateStream!=null){\r\n\t\t\tListNum<Read> matesln=mateStream.nextList();\r\n\t\t\tArrayList<Read> mates=matesln.list;\r\n\t\t\tif(rlist!=null && mates!=null){\r\n\t\t\t\tint max=Tools.min(rlist.size(), mates.size());\r\n\t\t\t\tfor(int i=0; i<max; i++){\r\n\t\t\t\t\tRead a=rlist.get(i);\r\n\t\t\t\t\tRead b=mates.get(i);\r\n\t\t\t\t\ta.mate=b;\r\n\t\t\t\t\tb.mate=a;\r\n\t\t\t\t\tb.setPairnum(1);\r\n\t\t\t\t}\r\n\t\t\t\tmates.clear();\r\n\t\t\t\tmateStream.returnList(matesln, false);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rlist;\r\n\t}", "double getRangeDist( RangeName r ) {\n double dis = 0.0;\n double period = 1.0/MAX_RANGE_READ_FREQ ; // dflt 10Hz => one read per 100ms\n last_range_read_failed_ = false;\n switch ( r ) {\n case RGB_RANGE_STONE :\n if( rgb_range_stone_ != null ) {\n if( (last_rgb_range_stone_read_loop_id_ == loop_cnt_) || (last_rgb_range_stone_read_time_>0 && curr_time_-last_rgb_range_stone_read_time_<period) ) {\n dis = rgb_range_stone_dist_;\n } else {\n dis = rgb_range_stone_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_rgb_range_stone_read_loop_id_ = loop_cnt_;\n last_rgb_range_stone_read_time_ = curr_time_;\n rgb_range_stone_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = rgb_range_stone_dist_;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_STONE :\n if( range_stone_ != null ) {\n if( (last_range_stone_read_loop_id_ == loop_cnt_) || (last_range_stone_read_time_>0 && curr_time_-last_range_stone_read_time_<period) ) {\n dis = range_stone_dist_;\n } else {\n dis = range_stone_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_stone_read_loop_id_ = loop_cnt_;\n last_range_stone_read_time_ = curr_time_;\n range_stone_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_stone_dist_;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_RIGHT :\n if( range_right_ != null ) {\n if( (last_range_right_read_loop_id_ == loop_cnt_) || (last_range_right_read_time_>0 && curr_time_-last_range_right_read_time_<period) ) {\n dis = range_right_dist_;\n } else {\n dis = range_right_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_right_read_loop_id_ = loop_cnt_;\n last_range_right_read_time_ = curr_time_;\n range_right_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_right_dist_ ;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_LEFT :\n if( range_left_ != null ) {\n if( (last_range_left_read_loop_id_ == loop_cnt_) || (last_range_left_read_time_>0 && curr_time_-last_range_left_read_time_<period) ) {\n dis = range_left_dist_;\n } else {\n dis = range_left_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_left_read_loop_id_ = loop_cnt_;\n last_range_left_read_time_ = curr_time_;\n range_left_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_left_dist_ ;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n default:\n break;\n }\n return dis;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "@Override\n public boolean areValidReadings(\n final List<? extends ReadingLocated<P>> readings) {\n if (readings == null) {\n return false;\n }\n\n checkReadings(readings);\n\n //if enough ranging data is available, we check validity both for ranging and RSSI readings\n return ((!mRssiPositionEnabled && mNumRangingReadings >= getMinRangingReadings() &&\n mNumRssiReadings >= getMinRssiReadings()) ||\n //if not enough ranging data is available, we check validity only for RSSI readings\n (mRssiPositionEnabled && mNumRssiReadings >= getMinRssiReadings()) ||\n //if only position is enabled, then only check for ranging readings\n (!mTransmittedPowerEstimationEnabled && !mPathLossEstimationEnabled &&\n mNumRangingReadings >= getMinRangingReadings())) &&\n //in both upper cases enough general readings must be available\n super.areValidReadings(readings);\n }", "@Override\n public void onBeaconServiceConnect() {\n beaconManager.addRangeNotifier(new RangeNotifier() {\n @Override\n public void didRangeBeaconsInRegion(Collection<Beacon> beacons,Region region) {\n Log.i(\"beacon\",\"Beacon Size:\"+beacons.size());\n Log.i(\"beaconManager\",\"beaconRanging\");\n if (beacons.size() > 0) {\n Iterator<Beacon> beaconIterator = beacons.iterator();\n while (beaconIterator.hasNext()) {\n Beacon beacon = beaconIterator.next();\n logBeaconData(LBD.Find_Loc(beacon,2));\n }\n }\n }\n\n });\n try {\n beaconManager.startRangingBeaconsInRegion(new Region(\"myRangingUniqueId\",\n null, null, null));\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n }", "public void read(CompoundNBT nbt) {\n this.nextAvailableId = nbt.getInt(\"NextAvailableID\");\n this.tick = nbt.getInt(\"Tick\");\n ListNBT listnbt = nbt.getList(\"Raids\", 10);\n\n for(int i = 0; i < listnbt.size(); ++i) {\n CompoundNBT compoundnbt = listnbt.getCompound(i);\n Raid raid = new Raid(this.world, compoundnbt);\n this.byId.put(raid.getId(), raid);\n }\n\n }", "private DbLocus readAlternativeProtein() {\n String prAcc = null;\n String prDescr = null;\n char preResidue = 0;\n char postResidue = 0;\n int numEnzymaticTermini = 0;\n\n for (int i = 0; i < reader.getAttributeCount(); i++) {\n String attrib = reader.getAttributeLocalName(i);\n String val = reader.getAttributeValue(i);\n if (attrib.equalsIgnoreCase(\"protein\"))\n prAcc = val;\n else if (attrib.equalsIgnoreCase(\"protein_descr\"))\n prDescr = val;\n else if (attrib.equalsIgnoreCase(\"peptide_prev_aa\"))\n preResidue = Character.valueOf(val.charAt(0));\n else if (attrib.equalsIgnoreCase(\"peptide_next_aa\"))\n postResidue = Character.valueOf(val.charAt(0));\n else if (attrib.equalsIgnoreCase(\"num_tol_term\")) \n numEnzymaticTermini = Integer.parseInt(val);\n }\n DbLocus locus = new DbLocus(prAcc, prDescr);\n locus.setNtermResidue(preResidue);\n locus.setCtermResidue(postResidue);\n locus.setNumEnzymaticTermini(numEnzymaticTermini);\n return locus;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "private void getStrongestRSSI() {\n\t\tint index1, index2;\n\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\tfor(index2=0; index2<discoveredBeaconList.size()-1; index2++){\n\t\t\t\tBeacon bcn1 = discoveredBeaconList.get(index2);\n\t\t\t\tBeacon bcn2 = discoveredBeaconList.get(index2+1);\n\t\t\t\tSystem.out.println(bcn1.getId3().toString());\n\t\t\t\tif(bcn1.getRssi() < bcn2.getRssi())\n\t\t\t\t{\n\t\t\t\t\tdiscoveredBeaconList.set(index2, bcn2);\n\t\t\t\t\tdiscoveredBeaconList.set(index2+1, bcn1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(discoveredBeaconList.size()>=3){\n\t\t\tfor(index1=0; index1<3; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else if(discoveredBeaconList.size()==2){\n\t\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else{\n\t\t\tToast.makeText(getApplicationContext(), \"No beacon or just one beacon was discovered.\", Toast.LENGTH_LONG).show();\n\t\t}\t\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "Read createRead();", "public LocationAwareSeekableRODIterator createNewResource() {\n if(numIterators() > 0)\n throw new ReviewedGATKException(\"BUG: Tried to create multiple iterators over streaming ROD interface\");\n RMDTrack track = builder.createInstanceOfTrack(fileDescriptor);\n LocationAwareSeekableRODIterator iter = new SeekableRODIterator(track.getHeader(),track.getSequenceDictionary(),referenceSequenceDictionary,genomeLocParser,track.getIterator());\n return (flashbackData) ? new FlashBackIterator(iter) : iter;\n }", "Range createRange();", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder3() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\ttupleBuilder.setPadding(1.0);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007027d, 1388790009029d,\n\t\t\t\t40.91924450823211, 42.92924450823211,\n\t\t\t\t11.5027184734508, 15.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "@Override\r\n\tpublic ArrayList<Rents> readRents(String address) {\n\t\treturn null;\r\n\t}", "abstract public Range createRange();", "public void createRatingRange() {\n final CharSequence[] ratingRange = {\"0~1\", \"1~2\", \"2~3\", \"3~4\", \"4~5\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Rating Range\");\n builder.setItems(ratingRange, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String type = (String) ratingRange[which];\n if (type.equals(\"0~1\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n } else if (type.equals(\"1~2\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n } else if (type.equals(\"2~3\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n } else if (type.equals(\"3~4\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n } else if (type.equals(\"4~5\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n }\n\n\n System.out.println(ratingRange[which]);\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.create();\n\n builder.show();\n\n\n }", "StockRangeLineType createStockRangeLineType();", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public List<GATKRead> makeReads() {\n if ( createdReads == null ) {\n final String baseName = \"read\";\n final LinkedList<SAMReadGroupRecord> readGroups = new LinkedList<>();\n for ( final SAMReadGroupRecord rg : header.getReadGroups()) {\n readGroups.add(rg);\n }\n\n final List<GATKRead> reads = new ArrayList<>(nReadsPerLocus*nLoci);\n for ( int locusI = 0; locusI < nLoci; locusI++) {\n final int locus = locusI * (skipNLoci + 1);\n for ( int readI = 0; readI < nReadsPerLocus; readI++ ) {\n for ( final SAMReadGroupRecord rg : readGroups ) {\n final String readName = String.format(\"%s.%d.%d.%s\", baseName, locus, readI, rg.getId());\n final GATKRead read = ArtificialReadUtils.createArtificialRead(header, readName, 0, alignmentStart + locus, readLength);\n read.setReadGroup(rg.getId());\n reads.add(read);\n }\n }\n }\n\n if ( ! additionalReads.isEmpty() ) {\n reads.addAll(additionalReads);\n Collections.sort(reads, new ReadCoordinateComparator(header));\n }\n\n createdReads = new ArrayList<>(reads);\n }\n\n return createdReads;\n }", "public void setRSSI(int rssi) {\r\n this.rssi = rssi;\r\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public Reading(Date read_at, int glucose_value, int code_no, int type, String serialNumber) {\n \tmRead_at = read_at;\n \tmGlucose_value = glucose_value;\n \tmCode_no = code_no;\n \tmType = type;\n \tmSerialNumber = serialNumber;\n }", "public static List<Position> drawRing(Position origin, int range){\n\t\tList<Position> ring = new ArrayList<Position>();\n\n\t\tfor(int i = -range; i <= range; i++){\n\t\t\tfor(int j = -range; j <= range; j++){\n\t\t\t\tPosition pos = new Position(origin.getQ() + i, origin.getR() + j, origin.getH());\n\t\t\t\tif(origin.getDistance(pos) == range){\n\t\t\t\t\tring.add(pos);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn ring;\n\t}", "@MavlinkFieldInfo(\n position = 14,\n unitSize = 1,\n description = \"Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown.\"\n )\n public final Builder rssi(int rssi) {\n this.rssi = rssi;\n return this;\n }", "private int normaliseRssi(int rssi) {\n final int RSSI_RANGE = 147;\n final int RSSI_MAX = 20;\n\n return (RSSI_RANGE + (rssi - RSSI_MAX)) * 100 / RSSI_RANGE;\n }", "public int getRssi() {\r\n return rssi;\r\n }", "@Override\n \t\tpublic void onReceive(Context context, Intent intent) {\n \t\t\tif(sVerboseLog) {\n \t\t\t\tLog.v(sLogTag, \"newReadingsReceiver called\");\n \t\t\t\tLog.v(sLogTag, \"new reading uri '\" + intent.getDataString() + \"'\");\n \t\t\t}\n \t\t\t\n \t\t\t// define the projection\n \t\t\tif(projection == null) {\n \t\t\t\tprojection = new String[3];\n \t\t\t\tprojection[0] = ReadingsContract.Table.TEMPERATURE;\n \t\t\t\tprojection[1] = ReadingsContract.Table.HUMIDITY;\n \t\t\t\tprojection[2] = ReadingsContract.Table.TIMESTAMP;\n \t\t\t}\n \t\t\t\n \t\t\t// get a content resolver if required\n \t\t\tif(contentResolver == null) {\n \t\t\t\tcontentResolver = context.getContentResolver();\n \t\t\t}\n \t\t\t\n \t\t\t// get the URI from the intent\n \t\t\tUri mNewRecord = intent.getData();\n \t\t\t\n \t\t\t// get the data\n \t\t\tCursor mCursor = contentResolver.query(\n \t\t\t\t\tmNewRecord, \n \t\t\t\t\tprojection, \n \t\t\t\t\tnull, \n \t\t\t\t\tnull, \n \t\t\t\t\tnull);\n \t\t\t\n \t\t\tif(mCursor != null && mCursor.getCount() > 0) {\n \t\t\t\tmCursor.moveToFirst();\n \t\t\t\t\n \t\t\t\t// update the temperature\n \t\t\t\tupdateTemperatureValue(mCursor.getFloat(mCursor.getColumnIndex(projection[0])));\n \t\t\t updateTemperatureImage(mCursor.getFloat(mCursor.getColumnIndex(projection[0])));\n \t\t\t \n \t\t\t // update the humidity\n \t\t\t updateHumidityValue(mCursor.getFloat(mCursor.getColumnIndex(projection[1])));\n \t\t updateHumidityImage(mCursor.getFloat(mCursor.getColumnIndex(projection[1])));\n \t\t \n \t\t // update the reading time\n \t\t updateReadingTime(mCursor.getLong(mCursor.getColumnIndex(projection[2])));\n \t\t \n \t\t mCursor.close();\n \t\t\t}\n \t\t\t\n \t\t\t// check on the status of the serval mesh\n \t\t\tif(servalMeshStatusReceiver.getStatus() != ServalStatusReceiver.SERVAL_STATUS_ON) {\n \t\t\t\tToast.makeText(getApplicationContext(), R.string.readings_ui_toast_serval_not_running, Toast.LENGTH_LONG).show();\n \t\t\t}\n \t\t}", "public int getRssi() {\n return rssi;\n }", "private Pair<List<Genotype>, GenotypeLocusData> createCalls(RefMetaDataTracker tracker, char ref, HashMap<String, AlignmentContextBySample> contexts, GenomeLoc loc) {\n int indexOfMax = 0;\n char baseOfMax = ref;\n double maxConfidence = Double.MIN_VALUE;\n for ( char altAllele : BaseUtils.BASES ) {\n if ( altAllele != ref ) {\n int baseIndex = BaseUtils.simpleBaseToBaseIndex(altAllele);\n if ( PofFs[baseIndex] > maxConfidence ) {\n indexOfMax = baseIndex;\n baseOfMax = altAllele;\n maxConfidence = PofFs[baseIndex];\n }\n }\n }\n \n double phredScaledConfidence = -10.0 * Math.log10(alleleFrequencyPosteriors[indexOfMax][0]);\n \n // return a null call if we don't pass the confidence cutoff\n if ( !ALL_BASE_MODE && phredScaledConfidence < CONFIDENCE_THRESHOLD )\n return new Pair<List<Genotype>, GenotypeLocusData>(null, null);\n \n ArrayList<Genotype> calls = new ArrayList<Genotype>();\n \n // first, populate the sample-specific data\n for ( String sample : GLs.keySet() ) {\n \n // create the call\n AlignmentContext context = contexts.get(sample).getContext(StratifiedContext.OVERALL);\n Genotype call = GenotypeWriterFactory.createSupportedCall(OUTPUT_FORMAT, ref, context.getLocation());\n \n if ( call instanceof ReadBacked ) {\n ((ReadBacked)call).setReads(context.getReads());\n }\n if ( call instanceof SampleBacked ) {\n ((SampleBacked)call).setSampleName(sample);\n }\n if ( call instanceof LikelihoodsBacked ) {\n ((LikelihoodsBacked)call).setLikelihoods(GLs.get(sample).getLikelihoods());\n }\n if ( call instanceof PosteriorsBacked ) {\n ((PosteriorsBacked)call).setPosteriors(GLs.get(sample).getPosteriors());\n }\n \n calls.add(call);\n }\n \n // next, the general locus data\n // note that calculating strand bias involves overwriting data structures, so we do that last\n GenotypeLocusData locusdata = GenotypeWriterFactory.createSupportedGenotypeLocusData(OUTPUT_FORMAT, ref, loc);\n if ( locusdata != null ) {\n if ( locusdata instanceof ConfidenceBacked ) {\n ((ConfidenceBacked)locusdata).setConfidence(phredScaledConfidence);\n }\n if ( locusdata instanceof AlleleFrequencyBacked ) {\n int bestAFguess = findMaxEntry(alleleFrequencyPosteriors[indexOfMax]).second;\n ((AlleleFrequencyBacked)locusdata).setAlleleFrequency((double)bestAFguess / (double)(frequencyEstimationPoints-1));\n AlleleFrequencyBacked.AlleleFrequencyRange range = computeAFrange(alleleFrequencyPosteriors[indexOfMax], frequencyEstimationPoints-1, bestAFguess, ALLELE_FREQUENCY_RANGE);\n ((AlleleFrequencyBacked)locusdata).setAlleleFrequencyRange(range);\n }\n if ( locusdata instanceof IDBacked ) {\n rodDbSNP dbsnp = getDbSNP(tracker);\n if ( dbsnp != null )\n ((IDBacked)locusdata).setID(dbsnp.getRS_ID());\n }\n if ( locusdata instanceof ArbitraryFieldsBacked) {\n ArrayList<Double> refBalances = new ArrayList<Double>();\n ArrayList<Double> onOffBalances = new ArrayList<Double>();\n ArrayList<Double> weights = new ArrayList<Double>();\n \n // accumulate ratios and weights\n for ( java.util.Map.Entry<String, GenotypeLikelihoods> entry : GLs.entrySet() ) {\n // determine the best genotype\n Integer sorted[] = Utils.SortPermutation(entry.getValue().getPosteriors());\n DiploidGenotype bestGenotype = DiploidGenotype.values()[sorted[DiploidGenotype.values().length - 1]];\n \n // we care only about het calls\n if ( bestGenotype.isHetRef(ref) ) {\n \n // make sure the alt base is our target alt\n char altBase = bestGenotype.base1 != ref ? bestGenotype.base1 : bestGenotype.base2;\n if ( altBase != baseOfMax )\n continue;\n \n // get the base counts at this pileup (minus deletions)\n ReadBackedPileup pileup = new ReadBackedPileup(ref, contexts.get(entry.getKey()).getContext(StratifiedContext.OVERALL));\n int[] counts = pileup.getBasePileupAsCounts();\n int refCount = counts[BaseUtils.simpleBaseToBaseIndex(ref)];\n int altCount = counts[BaseUtils.simpleBaseToBaseIndex(altBase)];\n int totalCount = 0;\n for (int i = 0; i < counts.length; i++)\n totalCount += counts[i];\n \n // add the entries\n weights.add(entry.getValue().getNormalizedPosteriors()[bestGenotype.ordinal()]);\n refBalances.add((double)refCount / (double)(refCount + altCount));\n onOffBalances.add((double)(refCount + altCount) / (double)totalCount);\n }\n }\n \n if ( weights.size() > 0 ) {\n // normalize the weights\n double sum = 0.0;\n for (int i = 0; i < weights.size(); i++)\n sum += weights.get(i);\n for (int i = 0; i < weights.size(); i++)\n weights.set(i, weights.get(i) / sum);\n \n // calculate total weighted ratios\n double normalizedRefRatio = 0.0;\n double normalizedOnOffRatio = 0.0;\n for (int i = 0; i < weights.size(); i++) {\n normalizedRefRatio += weights.get(i) * refBalances.get(i);\n normalizedOnOffRatio += weights.get(i) * onOffBalances.get(i);\n }\n \n HashMap<String, String> fields = new HashMap<String, String>();\n fields.put(\"AB\", String.format(\"%.2f\", normalizedRefRatio));\n fields.put(\"OO\", String.format(\"%.2f\", normalizedOnOffRatio));\n ((ArbitraryFieldsBacked)locusdata).setFields(fields);\n }\n }\n if ( locusdata instanceof SLODBacked ) {\n // the overall lod\n double overallLog10PofNull = Math.log10(alleleFrequencyPosteriors[indexOfMax][0]);\n double overallLog10PofF = Math.log10(PofFs[indexOfMax]);\n double lod = overallLog10PofF - overallLog10PofNull;\n \n // the forward lod\n initializeGenotypeLikelihoods(ref, contexts, StratifiedContext.FORWARD);\n calculateAlleleFrequencyPosteriors(ref, null);\n double forwardLog10PofNull = Math.log10(alleleFrequencyPosteriors[indexOfMax][0]);\n double forwardLog10PofF = Math.log10(PofFs[indexOfMax]);\n \n // the reverse lod\n initializeGenotypeLikelihoods(ref, contexts, StratifiedContext.REVERSE);\n calculateAlleleFrequencyPosteriors(ref, null);\n double reverseLog10PofNull = Math.log10(alleleFrequencyPosteriors[indexOfMax][0]);\n double reverseLog10PofF = Math.log10(PofFs[indexOfMax]);\n \n double forwardLod = forwardLog10PofF + reverseLog10PofNull - overallLog10PofNull;\n double reverseLod = reverseLog10PofF + forwardLog10PofNull - overallLog10PofNull;\n //logger.debug(\"forward lod=\" + forwardLod + \", reverse lod=\" + reverseLod);\n \n // strand score is max bias between forward and reverse strands\n double strandScore = Math.max(forwardLod - lod, reverseLod - lod);\n // rescale by a factor of 10\n strandScore *= 10.0;\n //logger.debug(String.format(\"SLOD=%f\", strandScore));\n \n ((SLODBacked)locusdata).setSLOD(strandScore);\n }\n }\n \n return new Pair<List<Genotype>, GenotypeLocusData>(calls, locusdata);\n }", "private void dist2Pos2Beacons(){\n double dist = Math.sqrt(Math.pow(posReceiver[0][0] - posReceiver[1][0], 2) + Math.pow(posReceiver[0][1] - posReceiver[1][1], 2));\n //Wenn Distanz ist größer als summe der Radien, dann gibt es keine Überschneidungen\n if (dist > (radius[0] + radius[1])) {\n //Berechne mittlere Distanz zwischen den Empfängern, da sich Kreise nicht überschneiden\n xPos_func = (posReceiver[0][0] + posReceiver[1][0]) / 2;\n yPos_func = (posReceiver[0][1] + posReceiver[1][1]) / 2;\n }\n else {\n double[][] pos = circlepoints2(posReceiver[0][0], posReceiver[0][1], posReceiver[1][0], posReceiver[1][1], radius[0], radius[1]);\n //Schnittpunkte sind identisch, Beacon ist exakt zu lokalisieren\n if ((pos[0][0] == pos[1][0]) && (pos[0][1] == pos[1][1])) {\n xPos_func = pos[0][0];\n yPos_func = pos[0][1];\n }else {\n xPos_func = (pos[0][0] + pos[1][0]) / 2;\n yPos_func = (pos[0][1] + pos[1][1]) / 2;\n errRad_func = Math.abs(dist -(radius[0] + radius[1]));\n }\n }\n }", "public abstract void create(GeneralReaderPropertyHolder grph)\r\n\t\t\tthrows DuplicateReaderException;", "public LFSR(String seed, int tap) {\n // PUT YOUR CODE HERE\n }", "public void addReading(Reading r) {\n readingList.add(r);\n }", "private DFEVar[][] createBuffer(DFEVector<DFEVar> reference,\n\t\t\t DFEVar writeEnable,\n\t\t\t DFEVar[] writeAddress,\n\t\t\t DFEVar[] readAddress1,\n\t\t\t DFEVar[] readAddress2,\n\t\t\t DFEVar whichBuffer,\n\t\t\t int cyclesToReadAhead)\n\t{\n\t\tDFEVar[][] bufferOutput = new DFEVar[m_scalars.blockSize][m_scalars.blockSize + m_scalars.numPipes - 1];\n\t\tfor (int i = 0; i < m_scalars.blockSize; i++) {\n\t\t\tRamPortParams<DFEVector<DFEVar>> writePort = mem.makeRamPortParams(RamPortMode.WRITE_ONLY, writeAddress[0], reference.getType())\n\t\t\t .withDataIn(reference)\n .withWriteEnable((writeAddress[1] === i) & writeEnable);\n\n\t\t\tRamPortParams<DFEVector<DFEVar>> readPort1 = mem.makeRamPortParams(RamPortMode.READ_ONLY, readAddress1[i], reference.getType());\n\t\t\tRamPortParams<DFEVector<DFEVar>> readPort2 = mem.makeRamPortParams(RamPortMode.READ_ONLY, readAddress2[i], reference.getType());\n\n\t\t\tDFEVector<DFEVar> ram1 = mem.ramDualPort(m_scalars.bufferDepth, RamWriteMode.READ_FIRST, writePort, readPort1).getOutputB();\n\t\t\tDFEVector<DFEVar> ram2 = mem.ramDualPort(m_scalars.bufferDepth, RamWriteMode.READ_FIRST, writePort, readPort2).getOutputB();\n\n\t\t\tfor (int j = 0; j < cyclesToReadAhead; j++) {\n\t\t\t\tDFEVector<DFEVar> temp = whichBuffer ? stream.offset(ram2, j - cyclesToReadAhead + 1) : stream.offset(ram1, j - cyclesToReadAhead + 1);\n\t\t\t\tfor (int k = 0; k < m_scalars.numPipes; k++) {\n\t\t\t\t\tif (j * m_scalars.numPipes + k < bufferOutput[0].length) {\n\t\t\t\t\t\tbufferOutput[i][j * m_scalars.numPipes + k] = temp[k];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn bufferOutput;\n\t}", "RangeValue createRangeValue();", "private void setupRSSIsNRBroadcastReceiver() {\n broadcastReceiverRSSI = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.RSSI_RECEIVED\".equals(intent.getAction())) {\n byte[] bytes = intent.getByteArrayExtra(\"com.example.loravisual.RSSISNR\");\n int rssi = LVUtil.makeByteUnsigned(bytes[1]);\n int bitErrors = LVUtil.makeByteUnsigned(bytes[3]);\n String rssiSnr = \"RSSI: -\" + rssi + \" SNR: \" + (bytes[2]);\n rssiSnrTextView.setText(rssiSnr);\n if (dbEntries == null) {\n dbEntries = new String[5];\n dbEntries[2] = \"-\" + rssi;\n dbEntries[3] = Byte.toString(bytes[2]);\n dbEntries[4] = Integer.toString(bitErrors);\n } else {\n dbEntries[2] = \"-\" + rssi;\n dbEntries[3] = Byte.toString(bytes[2]);\n dbEntries[4] = Integer.toString(bitErrors);\n databaseHandler.logReceivedTransmission(Integer.toString(experimentNumber), dbEntries);\n dbEntries = null;\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.RSSI_RECEIVED\");\n registerReceiver(broadcastReceiverRSSI, filter);\n\n }", "private LawnBoundaries createLawnBoudaries(String line) {\n\t\tLOGGER.info(\"Reads lawn boundaries as '{}'\", line);\n\t\tMatcher m = LAWN_DIMENSION_LINE_PATTERN.matcher(line);\n\t\tif (!m.matches()) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\tString.format(\"The line '%s' does not define a correct lawn's right superior corner!\", line));\n\t\t}\n\t\tint x = Integer.parseInt(m.group(1), 10);\n\t\tint y = Integer.parseInt(m.group(2), 10);\n\t\treturn new LawnBoundaries(new Position(x, y));\n\t}", "public ReferenceRange() {\n\t\tsuper();\n\t\tmRr = CDAFactory.eINSTANCE.createReferenceRange();\n\t\tmRr.setObservationRange(getObsR());\n\t\tmRr.setTypeCode(ActRelationshipType.REFV);\n\t\tthis.setInterpretationCode(ObservationInterpretation.NORMAL);\n\t}", "public static Pair<List<Attribute>, Attribute> read(BufferedReader br) throws IOException {\n\t\tList<Attribute> attributes = new ArrayList<Attribute>();\n\t\tAttribute targetAtt = null;\n\t\tSet<String> usedNames = new HashSet<>();\n\t\tfor (int i = 0;; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tif (line == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tAttribute att = null;\n\t\t\tif (line.indexOf(\"binned\") != -1) {\n\t\t\t\tatt = BinnedAttribute.parse(line);\n\t\t\t} else if (line.indexOf(\"{\") != -1) {\n\t\t\t\tatt = NominalAttribute.parse(line);\n\t\t\t} else {\n\t\t\t\tatt = NumericalAttribute.parse(line);\n\t\t\t}\n\t\t\tatt.setIndex(i);\n\t\t\tif (line.indexOf(\" (target)\") != -1) {\n\t\t\t\ttargetAtt = att;\n\t\t\t\ti--;\n\t\t\t} else {\n\t\t\t\tif (usedNames.contains(att.getName())) {\n\t\t\t\t\tthrow new RuntimeException(\"Duplicate attribute name: \" + att.getName());\n\t\t\t\t}\n\t\t\t\tusedNames.add(att.getName());\n\t\t\t\tattributes.add(att);\n\t\t\t}\n\t\t\tif (line.indexOf(\" (x)\") != -1) {\n\t\t\t\tatt.setIndex(-1);\n\t\t\t}\n\t\t}\n\n\t\treturn new Pair<List<Attribute>, Attribute>(attributes, targetAtt);\n\t}", "public void addReading(Reading newReading) {\n\t\tint i = 0;\n\t\t\n\t\twhile (_readings[i] != null) {\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t_readings[i] = newReading;\n\t}", "public static RigState parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\n RigState object = new RigState();\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n try {\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\");\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\n }\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\n if (!\"RigState\".equals(type)) {\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RigState) cwterm.service.rigctl.ExtensionMapper.getTypeObject(nsUri, type, reader);\n }\n }\n }\n java.util.Vector handledAttributes = new java.util.Vector();\n reader.next();\n java.util.ArrayList list2 = new java.util.ArrayList();\n java.util.ArrayList list3 = new java.util.ArrayList();\n java.util.ArrayList list4 = new java.util.ArrayList();\n java.util.ArrayList list15 = new java.util.ArrayList();\n java.util.ArrayList list16 = new java.util.ArrayList();\n java.util.ArrayList list17 = new java.util.ArrayList();\n java.util.ArrayList list18 = new java.util.ArrayList();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"announces\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setAnnounces(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n reader.next();\n } else {\n object.setAnnounces(java.lang.Long.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"attenuator\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list2.add(String.valueOf(java.lang.Integer.MIN_VALUE));\n reader.next();\n } else {\n list2.add(reader.getElementText());\n }\n boolean loopDone2 = false;\n while (!loopDone2) {\n while (!reader.isEndElement()) {\n reader.next();\n }\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone2 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"attenuator\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list2.add(String.valueOf(java.lang.Integer.MIN_VALUE));\n reader.next();\n } else {\n list2.add(reader.getElementText());\n }\n } else {\n loopDone2 = true;\n }\n }\n }\n object.setAttenuator((int[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(int.class, list2));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list3.add(null);\n reader.next();\n } else {\n list3.add(cwterm.service.rigctl.xsd.Channel.Factory.parse(reader));\n }\n boolean loopDone3 = false;\n while (!loopDone3) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone3 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list3.add(null);\n reader.next();\n } else {\n list3.add(cwterm.service.rigctl.xsd.Channel.Factory.parse(reader));\n }\n } else {\n loopDone3 = true;\n }\n }\n }\n object.setChannelList((cwterm.service.rigctl.xsd.Channel[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.Channel.class, list3));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list4.add(null);\n reader.next();\n } else {\n list4.add(cwterm.service.rigctl.xsd.Filter.Factory.parse(reader));\n }\n boolean loopDone4 = false;\n while (!loopDone4) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone4 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list4.add(null);\n reader.next();\n } else {\n list4.add(cwterm.service.rigctl.xsd.Filter.Factory.parse(reader));\n }\n } else {\n loopDone4 = true;\n }\n }\n }\n object.setFilters((cwterm.service.rigctl.xsd.Filter[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.Filter.class, list4));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetFunc\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasGetFunc(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetLevel\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasGetLevel(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetParm\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasGetParm(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetFunc\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasSetFunc(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetLevel\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasSetLevel(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetParm\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasSetParm(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"ituRegion\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setItuRegion(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n reader.next();\n } else {\n object.setItuRegion(java.lang.Integer.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxIfShift\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setMaxIfShift(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n reader.next();\n } else {\n object.setMaxIfShift(java.lang.Long.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxRIT\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setMaxRIT(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n reader.next();\n } else {\n object.setMaxRIT(java.lang.Long.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxXIT\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setMaxXIT(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n reader.next();\n } else {\n object.setMaxXIT(java.lang.Long.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"preamp\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list15.add(String.valueOf(java.lang.Integer.MIN_VALUE));\n reader.next();\n } else {\n list15.add(reader.getElementText());\n }\n boolean loopDone15 = false;\n while (!loopDone15) {\n while (!reader.isEndElement()) {\n reader.next();\n }\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone15 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"preamp\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list15.add(String.valueOf(java.lang.Integer.MIN_VALUE));\n reader.next();\n } else {\n list15.add(reader.getElementText());\n }\n } else {\n loopDone15 = true;\n }\n }\n }\n object.setPreamp((int[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(int.class, list15));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list16.add(null);\n reader.next();\n } else {\n list16.add(cwterm.service.rigctl.xsd.FreqRange.Factory.parse(reader));\n }\n boolean loopDone16 = false;\n while (!loopDone16) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone16 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list16.add(null);\n reader.next();\n } else {\n list16.add(cwterm.service.rigctl.xsd.FreqRange.Factory.parse(reader));\n }\n } else {\n loopDone16 = true;\n }\n }\n }\n object.setRxRangeList((cwterm.service.rigctl.xsd.FreqRange[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.FreqRange.class, list16));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list17.add(null);\n reader.next();\n } else {\n list17.add(cwterm.service.rigctl.xsd.TuningStep.Factory.parse(reader));\n }\n boolean loopDone17 = false;\n while (!loopDone17) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone17 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list17.add(null);\n reader.next();\n } else {\n list17.add(cwterm.service.rigctl.xsd.TuningStep.Factory.parse(reader));\n }\n } else {\n loopDone17 = true;\n }\n }\n }\n object.setTuningSteps((cwterm.service.rigctl.xsd.TuningStep[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.TuningStep.class, list17));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list18.add(null);\n reader.next();\n } else {\n list18.add(cwterm.service.rigctl.xsd.FreqRange.Factory.parse(reader));\n }\n boolean loopDone18 = false;\n while (!loopDone18) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone18 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list18.add(null);\n reader.next();\n } else {\n list18.add(cwterm.service.rigctl.xsd.FreqRange.Factory.parse(reader));\n }\n } else {\n loopDone18 = true;\n }\n }\n }\n object.setTxRangeList((cwterm.service.rigctl.xsd.FreqRange[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.FreqRange.class, list18));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement()) {\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n return object;\n }", "LedgerManager.LedgerRange getLedgerRangeByLevel(final String level1, final String level2)\n throws IOException {\n StringBuilder nodeBuilder = threadLocalNodeBuilder.get();\n nodeBuilder.setLength(0);\n nodeBuilder.append(ledgersRoot).append(\"/\")\n .append(level1).append(\"/\").append(level2);\n String nodePath = nodeBuilder.toString();\n List<String> ledgerNodes = null;\n try {\n ledgerNodes = store.getChildren(nodePath).get(BLOCKING_CALL_TIMEOUT, MILLISECONDS);\n } catch (ExecutionException | TimeoutException e) {\n throw new IOException(\"Error when get child nodes from zk\", e);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n throw new IOException(\"Error when get child nodes from zk\", e);\n }\n NavigableSet<Long> zkActiveLedgers =\n HierarchicalLedgerUtils.ledgerListToSet(ledgerNodes, ledgersRoot, nodePath);\n if (log.isDebugEnabled()) {\n log.debug(\"All active ledgers from ZK for hash node \"\n + level1 + \"/\" + level2 + \" : \" + zkActiveLedgers);\n }\n\n return new LedgerManager.LedgerRange(zkActiveLedgers.subSet(getStartLedgerIdByLevel(level1, level2), true,\n getEndLedgerIdByLevel(level1, level2), true));\n }", "public int getMinRangingReadings() {\n return getNumberOfDimensions() + 1;\n }", "RoverValue createRoverValue();", "private void setListener2(BluetoothReader reader) {\n mBluetoothReader2\n .setOnAuthenticationCompleteListener(new OnAuthenticationCompleteListener() {\n\n @Override\n public void onAuthenticationComplete(\n BluetoothReader bluetoothReader, final int errorCode) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (errorCode == BluetoothReader.ERROR_SUCCESS) {\n mTxtAuthentication\n .setText(\"Authentication Success!\");\n mEditApdu.setText(\"FF CA 00 00 00\");\n mAuthentication.setEnabled(false);\n } else {\n mTxtAuthentication\n .setText(\"Authentication Failed!\");\n }\n }\n });\n }\n\n });\n\n /* Wait for receiving ATR string. */\n mBluetoothReader2\n .setOnAtrAvailableListener(new OnAtrAvailableListener() {\n\n @Override\n public void onAtrAvailable(BluetoothReader bluetoothReader,\n final byte[] atr, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (atr == null) {\n mTxtATR.setText(getErrorString(errorCode));\n } else {\n mTxtATR.setText(Utils.toHexString(atr));\n }\n }\n });\n }\n\n });\n\n /* Wait for power off response. */\n mBluetoothReader2\n .setOnCardPowerOffCompleteListener(new OnCardPowerOffCompleteListener() {\n\n @Override\n public void onCardPowerOffComplete(\n BluetoothReader bluetoothReader, final int result) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtATR.setText(getErrorString(result));\n }\n });\n }\n\n });\n\n /* Wait for response APDU. */\n mBluetoothReader2\n .setOnResponseApduAvailableListener(new OnResponseApduAvailableListener() {\n\n @Override\n public void onResponseApduAvailable(\n BluetoothReader bluetoothReader, final byte[] apdu,\n final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtResponseApdu.setText(getResponseString(\n apdu, errorCode));\n // InnerTes(\"tes\");\n }\n });\n }\n\n });\n mBluetoothReader2\n .setOnResponseApduAvailableListener(new OnResponseApduAvailableListener() {\n\n @Override\n public void onResponseApduAvailable(\n BluetoothReader bluetoothReader, final byte[] apdu,\n final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtScan.setText(getResponseString(\n apdu, errorCode));\n String uid = mTxtScan.getText().toString();\n uid_final= uid;\n final String uid2=mTxtScan.getText().toString();\n /*** Kirim Variabel String uid ke ChildviewHolder **/\n /** code start here **/\n Tes tes = new Tes() {\n\n\n @Override\n public String onClickTes(String uid) {\n return null;\n }\n\n @Override\n public String getUid() {\n return mTxtScan.getText().toString();\n\n }\n };\n tes.onClickTes(uid);\n uid_final = tes.getUid();\n Log.d(\"uidFinal_listener\",\" \"+uid_final);\n requestUid(tes);\n\n\n //uid_final=\"tes\";\n // InnerTes(\"tes\");\n// rvTxtScan.setText(getResponseString(\n// apdu, errorCode));\n getInfoCard(uid);\n }\n\n\n });\n\n\n\n }\n\n });\n\n\n /* Wait for escape command response. */\n mBluetoothReader2\n .setOnEscapeResponseAvailableListener(new OnEscapeResponseAvailableListener() {\n\n @Override\n public void onEscapeResponseAvailable(\n BluetoothReader bluetoothReader,\n final byte[] response, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtEscapeResponse.setText(getResponseString(\n response, errorCode));\n }\n });\n }\n\n });\n\n /* Wait for device info available. */\n mBluetoothReader2\n .setOnDeviceInfoAvailableListener(new OnDeviceInfoAvailableListener() {\n\n @Override\n public void onDeviceInfoAvailable(\n BluetoothReader bluetoothReader, final int infoId,\n final Object o, final int status) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (status != BluetoothGatt.GATT_SUCCESS) {\n Toast.makeText(ReaderActivity.this,\n \"Failed to read device info!\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n switch (infoId) {\n case BluetoothReader.DEVICE_INFO_SYSTEM_ID: {\n // mTxtSystemId.setText(Utils.toHexString((byte[]) o));\n }\n break;\n case BluetoothReader.DEVICE_INFO_MODEL_NUMBER_STRING:\n // mTxtModelNo.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_SERIAL_NUMBER_STRING:\n // mTxtSerialNo.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_FIRMWARE_REVISION_STRING:\n // mTxtFirmwareRev.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_HARDWARE_REVISION_STRING:\n // mTxtHardwareRev.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_MANUFACTURER_NAME_STRING:\n //mTxtManufacturerName.setText((String) o);\n break;\n default:\n break;\n }\n }\n });\n }\n\n });\n\n /* Wait for battery level available. */\n if (mBluetoothReader2 instanceof Acr1255uj1Reader) {\n ((Acr1255uj1Reader) mBluetoothReader2)\n .setOnBatteryLevelAvailableListener(new OnBatteryLevelAvailableListener() {\n\n @Override\n public void onBatteryLevelAvailable(\n BluetoothReader bluetoothReader,\n final int batteryLevel, int status) {\n Log.i(TAG, \"mBatteryLevelListener data: \" + batteryLevel);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // mTxtBatteryLevel2.setText(getBatteryLevelString(batteryLevel));\n }\n });\n\n }\n\n });\n }\n\n /* Handle on battery status available. */\n if (mBluetoothReader2 instanceof Acr3901us1Reader) {\n ((Acr3901us1Reader) mBluetoothReader2)\n .setOnBatteryStatusAvailableListener(new OnBatteryStatusAvailableListener() {\n\n @Override\n public void onBatteryStatusAvailable(\n BluetoothReader bluetoothReader,\n final int batteryStatus, int status) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // mTxtBatteryStatus2.setText(getBatteryStatusString(batteryStatus));\n }\n });\n }\n\n });\n }\n\n /* Handle on slot status available. */\n mBluetoothReader2\n .setOnCardStatusAvailableListener(new OnCardStatusAvailableListener() {\n\n @Override\n public void onCardStatusAvailable(\n BluetoothReader bluetoothReader,\n final int cardStatus, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (errorCode != BluetoothReader.ERROR_SUCCESS) {\n mTxtSlotStatus\n .setText(getErrorString(errorCode));\n } else {\n mTxtSlotStatus\n .setText(getCardStatusString(cardStatus));\n }\n }\n });\n }\n\n });\n\n mBluetoothReader2\n .setOnEnableNotificationCompleteListener(new OnEnableNotificationCompleteListener() {\n\n @Override\n public void onEnableNotificationComplete(\n BluetoothReader bluetoothReader, final int result) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (result != BluetoothGatt.GATT_SUCCESS) {\n /* Fail */\n Toast.makeText(\n ReaderActivity.this,\n \"The device is unable to set notification!\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(ReaderActivity.this,\n \"The device is ready to use!\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n\n });\n }", "public static RoomRepository create(final Reader reader) {\r\n\t\tRoomRepository roomRepository = new RoomRepository();\r\n\t\tLineNumberReader lnr = new LineNumberReader(reader);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = lnr.readLine()) != null) {\r\n\t\t\t\t\r\n\t\t\t\tSet<Facility> facilities = new LinkedHashSet<>(); //for each rule: make new facilities object\r\n\t\t\t\t\r\n\t\t\t\tString[] regel = line.split(\"\\\\;\", -1); //line opsplitsen in array (per regel) - logger.info(\" \" + line);\r\n\t\t\t\t//array regel: 0 = ruimtenr, 1 = capaciteit, 2 = naam, 3 = faciliteit(en) comma gescheiden\r\n\t\t\t\t\r\n\t\t\t\tString faciliteiten = regel[3]; //get facilities (in short facs)\r\n\t\t\t\tString capacityCln = regel[1].trim(); //get capacity\r\n\t\t\t\t\r\n\t\t\t\tif (!capacityCln.contains(\"capacity\")) { //continue only if rule is not the header rule)\r\n\t\t\t\t\tArrayList<String> aList= new ArrayList<String>(Arrays.asList(faciliteiten.split(\",\"))); //split facs\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<aList.size();i++)\t //after splitten facs, add to new linkedHashSet 1 by 1\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfacilities.add(new Facility(aList.get(i)));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// add new room incl. facs\r\n\t\t\t\t\troomRepository.add(new Room(regel[0].trim(), Integer.parseInt(capacityCln), regel[2].trim(), facilities));\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tcatch (IOException 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\treturn roomRepository;\r\n\t}", "protected abstract R getRange(E entry);", "public void readSensor() {\n try {\n Log.i(TAG, \"trying to read from sensors\");\n distance = this.bufferedReader.readLine();\n // if (distance != null && distance != \"0\") {\n Log.i(TAG, distance);\n\n // MainActivity.distance.setText(distance);\n Log.i(TAG, \"done with sensors\");\n //setBackgroundColor(Integer.parseInt(distance));\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected abstract R toRange(D lower, D upper);", "private void setRoads(RnsReader rnsReader) {\n\t\t// s is never null\n\t\troadsByUri.clear();\n\t\tSet<RoadSegmentReader> s = rnsReader.getRoadSegments(null);\n\t\t\n\t\tfor(RoadSegmentReader rsr : s){\n\t\t\tRoad r = (new ObjectFactory()).createRoad();\n\t\t\tr.setRoadName(rsr.getRoadName());\n\t\t\tString roadUri = buildRoadUriFromId(rsr.getRoadName());\n\t\t\tr.setSelf(roadUri);\n\t\t\tif(!roadsByUri.containsKey(roadUri)){\n\t\t\t\tputResource(r);\n\t\t\t}\n\t\t}\n\t}", "public void populateRiver()\n\t{\n\t\twhile (emptyIndices.size() != 10) // 10 animals requirement at start\n\t\t{\n\t\t\tswitch (rng.nextInt(3))\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\triver[rng.nextInt(20)] = new Bear();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\triver[rng.nextInt(20)] = new Fish();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\triver[rng.nextInt(20)] = null;\n\t\t\t}\n\t\t\tfindEmpty(); // force emptyIndices update\n\t\t}\n\t}", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "RangeOfValuesType createRangeOfValuesType();", "private GATKRead addBaseQuality(final GATKRead read) {\n\n // convert to a flow base read\n final FlowBasedReadUtils.ReadGroupInfo rgInfo = FlowBasedReadUtils.getReadGroupInfo(getHeaderForReads(), read);\n final FlowBasedRead fbRead = new FlowBasedRead(read, rgInfo.flowOrder, rgInfo.maxClass, fbargs);\n final int flowOrderLength = calcFlowOrderLength(rgInfo.flowOrder);\n\n // generate base quality\n final double[] baseErrorProb = generateBaseErrorProbability(fbRead, flowOrderLength);\n final byte[] phred = convertErrorProbToPhred(baseErrorProb);\n\n // install in read\n if ( !replaceQualityMode ) {\n read.setAttribute(BASE_QUALITY_ATTRIBUTE_NAME, convertPhredToString(phred));\n } else {\n read.setAttribute(OLD_QUALITY_ATTRIBUTE_NAME, convertPhredToString(read.getBaseQualitiesNoCopy()));\n read.setBaseQualities(phred);\n }\n\n // return reused read\n return read;\n }", "public static final SAMRecord simplifyRead(SAMRecord read) {\n Object rg = read.getAttribute(\"RG\");\n read.clearAttributes();\n read.setAttribute(\"RG\", rg);\n return read;\n }", "@SuppressLint(\"DefaultLocale\")\n\tpublic static Eddystone fromScanData(BluetoothDevice device, int rssi, byte[] scanData) {\n\t\tString scanDataHex = Conversion.bytesToHexString(scanData);\n\t\t\n\t\tString tempiBeacon = scanDataHex.substring(14, 18);\n\t\tString tempOther = scanDataHex.substring(6, 14);\n\t\n//--------------------------This is an iBeacon------------------------------------------------------------------------\n\t\tif (iBeaconType.equals(tempiBeacon)) {\n\t\t\tint startByte = 2;\n\t\t\tboolean patternFound = false;\n\t\t\twhile (startByte <= 5) {\n\t\t\t\tif (((int) scanData[startByte + 2] & 0xff) == 0x02 && ((int) scanData[startByte + 3] & 0xff) == 0x15) {\n\t\t\t\t\t// yes! This is an iBeacon\n\t\t\t\t\tpatternFound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tstartByte++;\n\t\t\t}\n\t\t\tif (patternFound == false) {\n\t\t\t\t// This is not an iBeacon\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tEddystone iBeacon = new Eddystone();\n\t\t\t/**\n\t\t\t * iBeacon.ID2 is major\n\t\t\t */\n\t\t\tiBeacon.ID2 = ((scanData[startByte + 20] & 0xff) * 0x100 + (scanData[startByte + 21] & 0xff) + \"\")\n\t\t\t\t\t.toUpperCase();\n\t\t\t/**\n\t\t\t * iBeacon.ID3 is minor\n\t\t\t */\n\t\t\tiBeacon.ID3 = ((scanData[startByte + 22] & 0xff) * 0x100 + (scanData[startByte + 23] & 0xff) + \"\")\n\t\t\t\t\t.toUpperCase();\n\t\t\tiBeacon.txPower = (int) scanData[startByte + 24];\n\t\t\t\n\t\t\tiBeacon.rssi = rssi;\n\t\t\tbyte[] proximityUuidBytes = new byte[16];\n\t\t\tSystem.arraycopy(scanData, startByte + 4, proximityUuidBytes, 0, 16);\n\t\t\tString hexString = Conversion.bytesToHexString(proximityUuidBytes);\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(hexString.substring(0, 8));\n\t\t\tsb.append(\"-\");\n\t\t\tsb.append(hexString.substring(8, 12));\n\t\t\tsb.append(\"-\");\n\t\t\tsb.append(hexString.substring(12, 16));\n\t\t\tsb.append(\"-\");\n\t\t\tsb.append(hexString.substring(16, 20));\n\t\t\tsb.append(\"-\");\n\t\t\tsb.append(hexString.substring(20, 32));\n\t\t\t/**\n\t\t\t * iBeacon.type is UUID\n\t\t\t */\n\t\t\tiBeacon.type = sb.toString().toUpperCase();\n\t\t\tif (device != null) {\n\t\t\t\tiBeacon.bluetoothAddress = device.getAddress();\n\t\t\t\t/**\n\t\t\t\t * Plus ibeacon is mainly for the LeDeviceListAdapter class show a good distinction\n\t\t\t\t */\n\t\t\t\tiBeacon.name = device.getName() + \"(iBeacon)\";\n\t\t\t}\n\t\t\treturn iBeacon;\n\t\t} \n\t\t\n//----------------------This is an Eddystone-UID-----------------------------------------------------------------\t\t\n\t\telse if (other.equals(tempOther)) {\n\t\t\t// This is an Eddystone-UID\n\t\t\ttry {\n\t\t\t\tString UID = scanDataHex.substring(22, 24);\n\t\t\t\tif (UIDType.equals(UID)) {\n\t\t\t\t\tEddystone UidInstance = new Eddystone();\n\t\t\t\t\tif (device != null) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Plus Eddystone UID is mainly for the LeDeviceListAdapter class show a good distinction\n\t\t\t\t\t\t */\n\t\t\t\t\t\tUidInstance.name = device.getName() + \"(Eddystone UID)\";\n\t\t\t\t\t\tUidInstance.bluetoothAddress = device.getAddress();\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * UidInstance.ID2 is Namespace ID\n\t\t\t\t\t */\n\t\t\t\t\tUidInstance.ID2 = scanDataHex.substring(46, 58).toUpperCase();\n\n\t\t\t\t\tUidInstance.txPower = (int) scanData[12] - 41;\n\n\t\t\t\t\tUidInstance.rssi = rssi;\n\t\t\t\t\t/**\n\t\t\t\t\t * UidInstance.type is Instance ID\n\t\t\t\t\t */\n\t\t\t\t\tUidInstance.type = scanDataHex.substring(26, 46).toUpperCase();\n\t\t\t\t\treturn UidInstance;\n\t\t\t\t} \n\t\t\t\t\n//----------------------This is an Eddystone-URL-----------------------------------------------------------------\t\t\n\t\t\t\telse if (URLType.equals(UID)) {\n\t\t\t\t\t// This is an Eddystone-URL\n\t\t\t\t\tEddystone UrlInstance = new Eddystone();\n\t\t\t\t\tif (device != null) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Plus Eddystone URL is mainly for the LeDeviceListAdapter class show a good distinction\n\t\t\t\t\t\t */\n\t\t\t\t\t\tUrlInstance.name = device.getName() + \"(Eddystone URL)\";\n\t\t\t\t\t\tUrlInstance.bluetoothAddress = device.getAddress();\n\t\t\t\t\t}\n\t\t\t\t\tUrlInstance.txPower = (int) scanData[12] - 41;\n\t\t\t\t\tUrlInstance.rssi = rssi;\n\t\t\t\t\t/**\n\t\t\t\t\t * URL prefix\n\t\t\t\t\t */\n\t\t\t\t\tString urlprefix=Conversion.calculateURLpro(scanDataHex.substring(26,28));\n\t\t\t\t\t/**\n\t\t\t\t\t * URL suffix\n\t\t\t\t\t */\n\t\t\t\t\tString URLsuffix=Conversion.calculateURL(scanDataHex.substring(28,\n\t\t\t\t\t\t\t28 + (Integer.parseInt(scanDataHex.substring(14, 16), 16) - 6) * 2));\n\t\t\t\t\t/**\n\t\t\t\t\t * UrlInstance.type is Website url\n\t\t\t\t\t */\n\t\t\t\t\tUrlInstance.type = urlprefix+URLsuffix;\n\t\t\t\t\t\t\t\n\t\t\t\t\treturn UrlInstance;\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private ExtendedBluetoothDevice convertDevice(BluetoothDevice device, int rssi) {\n\t\treturn new ExtendedBluetoothDevice(device, rssi);\n\t}", "private String range(double and_load_factor) {\n\t\tStringBuilder s = new StringBuilder();\n\n\t\t// begin query construction (range query is always an OR)\n\t\ts.append(\"[r,|,\");\n\n\t\t// choose number of attributes to involve in the query (use zipf(num_attribute))\n\t\tint attr_id = this.zipf_rng_att.next();\n\n\t\t//a range query from [bin_0, ..., bin_high]\n\t\tint first_bin = -1;\n\t\tint second_bin = -1;\n\t\twhile (first_bin == second_bin) {\n\t\t\tfirst_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];\n\t\t\tsecond_bin = this.rank_bin_map[attr_id][zipf_rng_bin.next()];;\n\t\t}\n\t\tfirst_bin += (attr_id) * this.cardinality;\n\t\tsecond_bin += (attr_id) * this.cardinality;\n\n\t\tif (first_bin > second_bin) {\n\t\t\ts.append(second_bin + \",\" + first_bin + \"]\");\n\t\t}\n\t\telse {\n\t\t\ts.append(first_bin + \",\" + second_bin + \"]\");\n\t\t}\n\n\n\n\t\t//update stats\n\t\tthis.num_bins += (second_bin - first_bin + 1);\n\t\tthis.num_or_ops += (second_bin - first_bin);\n\n\t\t//update stats\n\t\tthis.num_range_queries++;\n\t\tthis.num_attributes++;\n\t\treturn s.toString();\n\t}", "private static android.content.res.ColorStateList inflate(android.content.res.Resources r21, org.xmlpull.v1.XmlPullParser r22, android.util.AttributeSet r23, android.content.res.Resources.Theme r24) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {\n /*\n r0 = r23\n int r1 = r22.getDepth()\n r2 = 1\n int r1 = r1 + r2\n r3 = 20\n int[][] r3 = new int[r3][]\n int r4 = r3.length\n int[] r4 = new int[r4]\n r5 = 0\n L_0x0010:\n int r6 = r22.next()\n r7 = r6\n if (r6 == r2) goto L_0x00de\n int r6 = r22.getDepth()\n r9 = r6\n if (r6 >= r1) goto L_0x002a\n r6 = 3\n if (r7 == r6) goto L_0x0022\n goto L_0x002a\n L_0x0022:\n r10 = r21\n r11 = r24\n r17 = r1\n goto L_0x00e4\n L_0x002a:\n r6 = 2\n if (r7 != r6) goto L_0x00d3\n if (r9 > r1) goto L_0x00d3\n java.lang.String r6 = r22.getName()\n java.lang.String r10 = \"item\"\n boolean r6 = r6.equals(r10)\n if (r6 != 0) goto L_0x0043\n r10 = r21\n r11 = r24\n r17 = r1\n goto L_0x00d9\n L_0x0043:\n int[] r6 = androidx.core.R.styleable.ColorStateListItem\n r10 = r21\n r11 = r24\n android.content.res.TypedArray r6 = obtainAttributes(r10, r11, r0, r6)\n int r12 = androidx.core.R.styleable.ColorStateListItem_android_color\n r13 = -65281(0xffffffffffff00ff, float:NaN)\n int r12 = r6.getColor(r12, r13)\n r13 = 1065353216(0x3f800000, float:1.0)\n int r14 = androidx.core.R.styleable.ColorStateListItem_android_alpha\n boolean r14 = r6.hasValue(r14)\n if (r14 == 0) goto L_0x0067\n int r14 = androidx.core.R.styleable.ColorStateListItem_android_alpha\n float r13 = r6.getFloat(r14, r13)\n goto L_0x0075\n L_0x0067:\n int r14 = androidx.core.R.styleable.ColorStateListItem_alpha\n boolean r14 = r6.hasValue(r14)\n if (r14 == 0) goto L_0x0075\n int r14 = androidx.core.R.styleable.ColorStateListItem_alpha\n float r13 = r6.getFloat(r14, r13)\n L_0x0075:\n r6.recycle()\n r14 = 0\n int r15 = r23.getAttributeCount()\n int[] r2 = new int[r15]\n r16 = 0\n r8 = r16\n L_0x0083:\n if (r8 >= r15) goto L_0x00b4\n r17 = r1\n int r1 = r0.getAttributeNameResource(r8)\n r18 = r6\n r6 = 16843173(0x10101a5, float:2.3694738E-38)\n if (r1 == r6) goto L_0x00ad\n r6 = 16843551(0x101031f, float:2.3695797E-38)\n if (r1 == r6) goto L_0x00ad\n int r6 = androidx.core.R.attr.alpha\n if (r1 == r6) goto L_0x00ad\n int r6 = r14 + 1\n r19 = r6\n r6 = 0\n boolean r20 = r0.getAttributeBooleanValue(r8, r6)\n if (r20 == 0) goto L_0x00a8\n r6 = r1\n goto L_0x00a9\n L_0x00a8:\n int r6 = -r1\n L_0x00a9:\n r2[r14] = r6\n r14 = r19\n L_0x00ad:\n int r8 = r8 + 1\n r1 = r17\n r6 = r18\n goto L_0x0083\n L_0x00b4:\n r17 = r1\n r18 = r6\n int[] r1 = android.util.StateSet.trimStateSet(r2, r14)\n int r2 = modulateColorAlpha(r12, r13)\n int[] r4 = androidx.core.content.res.GrowingArrayUtils.append((int[]) r4, (int) r5, (int) r2)\n java.lang.Object[] r6 = androidx.core.content.res.GrowingArrayUtils.append((T[]) r3, (int) r5, r1)\n r3 = r6\n int[][] r3 = (int[][]) r3\n int r5 = r5 + 1\n r1 = r17\n r2 = 1\n goto L_0x0010\n L_0x00d3:\n r10 = r21\n r11 = r24\n r17 = r1\n L_0x00d9:\n r1 = r17\n r2 = 1\n goto L_0x0010\n L_0x00de:\n r10 = r21\n r11 = r24\n r17 = r1\n L_0x00e4:\n int[] r1 = new int[r5]\n int[][] r2 = new int[r5][]\n r6 = 0\n java.lang.System.arraycopy(r4, r6, r1, r6, r5)\n java.lang.System.arraycopy(r3, r6, r2, r6, r5)\n android.content.res.ColorStateList r6 = new android.content.res.ColorStateList\n r6.<init>(r2, r1)\n return r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.content.res.ColorStateListInflaterCompat.inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, android.content.res.Resources$Theme):android.content.res.ColorStateList\");\n }", "private SensorReading extractReading(String line) {\n\t\tList<Integer> tempArray = new ArrayList<Integer>();\n\t\tString[] sr = line.split(\",\");\n\t\tfor(int i=0; i<sr.length; i++) {\n\t\t\tint num = Integer.MIN_VALUE;\n\t\t\ttry {\n\t\t\t\tnum = Integer.parseInt(sr[i]);\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\t// if num is not integer, skip the current line\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttempArray.add(num);\n\t\t}\t\t\t\n\t\tif(tempArray.size() == sr.length) {\n\t\t\treturn new SensorReading(tempArray, zeroValues);\n\t\t}\n\t\treturn null;\n\t}", "public static ReadingDTO newReadingDTO() {\n return new ReadingDTO();\n }", "public Reading get_reading () {\n if (!this.on) {\n return null;\n }\n\n Instant instant = Instant.now();\n return new Reading(\n (float) instant.getEpochSecond(),\n this.currentSensorValue,\n this.stationName,\n this.stationLocation\n );\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition,\n final MixedRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public AgeRangeEntity createFromParcel(Parcel parcel) {\n int i = 0;\n int zzaq = zza.zzaq(parcel);\n HashSet hashSet = new HashSet();\n int i2 = 0;\n int i3 = 0;\n while (parcel.dataPosition() < zzaq) {\n int zzap = zza.zzap(parcel);\n switch (zza.zzcj(zzap)) {\n case 1:\n i3 = zza.zzg(parcel, zzap);\n hashSet.add(Integer.valueOf(1));\n break;\n case 2:\n i2 = zza.zzg(parcel, zzap);\n hashSet.add(Integer.valueOf(2));\n break;\n case 3:\n i = zza.zzg(parcel, zzap);\n hashSet.add(Integer.valueOf(3));\n break;\n default:\n zza.zzb(parcel, zzap);\n break;\n }\n }\n if (parcel.dataPosition() == zzaq) {\n return new AgeRangeEntity(hashSet, i3, i2, i);\n }\n throw new zza.zza(\"Overread allowed size end=\" + zzaq, parcel);\n }", "int rawDataCreateDownSampleLevelNumber();", "protected abstract D getLower(R range);", "private void initRadar2() {\n\n\t\tmGenRadarPoints = new ArrayList<GenRadarPoint>();\n\t\t\n\t\tfloat radius = 1.5f;\n\t\t//MyRadarPoint currentLocation = getCircle(33.683232, 72.988972, Color.RED);\n\n\t\t// Center Point\n\t\t//myRadarPoints.add( new MyRadarPoint(\"Center Point\", 33.683232, 72.988972, 0, 0, radius, Color.RED) );\n\n\t\t// Model Filling Station\n\t\tmGenRadarPoints.add( new GenRadarPoint(\"Model Filling Station\", 33.685354, 72.985651, 0, 0, radius, Color.BLUE) );\n\n\t\t// IMCB\n\t\tmGenRadarPoints.add( new GenRadarPoint(\"IMCB\", 33.688210, 72.991315, 0, 0, radius, Color.YELLOW) );\n\n\t\t// UnKnown\n\t\tmGenRadarPoints.add( new GenRadarPoint(\"UnKnown\", 33.684854, 72.991315, 0, 0, radius, Color.WHITE) );\n\n\t\t// Shifa medical Center\n\t\tmGenRadarPoints.add( new GenRadarPoint(\"Shifa medical Center\", 33.683836, 72.986573, 0, 0, radius, Color.GREEN) );\n\n\t\t// Alian Enterprises\n\t\tmGenRadarPoints.add( new GenRadarPoint(\"Alian Enterprises\", 33.681399, 72.990545, 0, 0, radius, Color.CYAN) );\n\n\t\t// Sadar police Station\n\t\tmGenRadarPoints.add( new GenRadarPoint(\"Sadar police Station\", 33.691424, 72.970287, 0, 0, radius, Color.MAGENTA) );\n\n\t\t// Spain\n\t\t//myRadarPoints.add( new MyRadarPoint(\"Spain\", 40.178873, -3.793030, 0, 0, radius, Color.parseColor(\"#EA8622\")) );\n\n\t\t\n\t\tmGenRadar.initAndUpdateRadarWithPoints(mCentralGenRadarPoint, mGenRadarPoints);\n\n\t}", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName) throws org.apache.axis2.databinding.ADBException {\n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n if (localAnnouncesTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"announces\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAnnounces));\n }\n if (localAttenuatorTracker) {\n if (localAttenuator != null) {\n for (int i = 0; i < localAttenuator.length; i++) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"attenuator\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAttenuator[i]));\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"attenuator\"));\n elementList.add(null);\n }\n }\n if (localChannelListTracker) {\n if (localChannelList != null) {\n for (int i = 0; i < localChannelList.length; i++) {\n if (localChannelList[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\"));\n elementList.add(localChannelList[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\"));\n elementList.add(localChannelList);\n }\n }\n if (localFiltersTracker) {\n if (localFilters != null) {\n for (int i = 0; i < localFilters.length; i++) {\n if (localFilters[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\"));\n elementList.add(localFilters[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\"));\n elementList.add(localFilters);\n }\n }\n if (localHasGetFuncTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetFunc\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasGetFunc));\n }\n if (localHasGetLevelTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetLevel\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasGetLevel));\n }\n if (localHasGetParmTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetParm\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasGetParm));\n }\n if (localHasSetFuncTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetFunc\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasSetFunc));\n }\n if (localHasSetLevelTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetLevel\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasSetLevel));\n }\n if (localHasSetParmTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetParm\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasSetParm));\n }\n if (localItuRegionTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"ituRegion\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItuRegion));\n }\n if (localMaxIfShiftTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxIfShift\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxIfShift));\n }\n if (localMaxRITTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxRIT\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxRIT));\n }\n if (localMaxXITTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxXIT\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxXIT));\n }\n if (localPreampTracker) {\n if (localPreamp != null) {\n for (int i = 0; i < localPreamp.length; i++) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"preamp\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPreamp[i]));\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"preamp\"));\n elementList.add(null);\n }\n }\n if (localRxRangeListTracker) {\n if (localRxRangeList != null) {\n for (int i = 0; i < localRxRangeList.length; i++) {\n if (localRxRangeList[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\"));\n elementList.add(localRxRangeList[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\"));\n elementList.add(localRxRangeList);\n }\n }\n if (localTuningStepsTracker) {\n if (localTuningSteps != null) {\n for (int i = 0; i < localTuningSteps.length; i++) {\n if (localTuningSteps[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\"));\n elementList.add(localTuningSteps[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\"));\n elementList.add(localTuningSteps);\n }\n }\n if (localTxRangeListTracker) {\n if (localTxRangeList != null) {\n for (int i = 0; i < localTxRangeList.length; i++) {\n if (localTxRangeList[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\"));\n elementList.add(localTxRangeList[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\"));\n elementList.add(localTxRangeList);\n }\n }\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n }", "public static ReaderWorld createReaderWorld() {\r\n final ReaderWorld r = new ReaderWorld();\r\n r.addListener(new TextAdapter() {\r\n\r\n public void textChanged() {\r\n r.updateMatcher();\r\n }\r\n\r\n public void positionChanged() {\r\n r.updateMatcher();\r\n }\r\n });\r\n return r;\r\n }", "public NewTransitionRecord(int from, int to, double r) {\r\n fromstate = from;\r\n tostate = to;\r\n rate = r;\r\n }", "public static RangeInfo obtain(int type, float min, float max, float current) {\n/* 3057 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "Range alarmLimits();", "public abstract Type createRangeType(ReferenceType bottom);", "CritPair createCritPair();", "private static void read(int r, int c) throws IOException {\n\t\tinit(r, c);\r\n\t\tfor (int i = 0; i < r; ++ i) {\r\n\t\t\tmapData[ i ] = next();\r\n\t\t}\r\n\t\tint si = nextInt();\r\n\t\tint sj = nextInt();\r\n\t\tint ti = nextInt();\r\n\t\tint tj = nextInt();\r\n\t\t\r\n\t\tastar(r, c, si, sj, ti, tj);\r\n\t\t\r\n//\t\tcin.close();\r\n\t}", "public ArrayList<Object> readTrendBuffer(){\n try {\n ReadRangeAck ack = DeviceService.localDevice.send(bacnetDevice, new ReadRangeRequest(getObjectIdentifier(),\n PropertyIdentifier.logBuffer, null,\n new ReadRangeRequest.ByPosition(0,1000))).get();\n return new ArrayList<>(ack.getItemData().getValues());\n } catch (BACnetException e) {\n LOG.warn(\"Can't read {} of: {}\",PropertyIdentifier.logBuffer.toString(),getObjectName());\n }\n return null;\n }", "@Override\n\t\tpublic void onRssi(Myo myo, long timestamp, int rssi) {\n\t\t\tsuper.onRssi(myo, timestamp, rssi);\n\t\t}", "private ElectronRange(String name, String reference) {\n super(\"Electron Range\", name, reference);\n }", "public static void GetLowDepthReads(String ReadSetPath, int Trime_Size) {\n\t\ttry {\n\t\t\tint LowNum_Fasta = 0;\n\t\t\tint NormalNum_Fasta = 0;\n\t\t\tint LowNum_Fastq = 0;\n\t\t\tint NormalNum_Fastq = 0;\n\t\t\tString readtemp1 = \"\";\n\t\t\tString readtemp2 = \"\";\n\t\t\tString encoding = \"utf-8\";\n\t\t\tFile file1 = new File(ReadSetPath + \"Short1.left.Marked.fasta\");\n\t\t\tFile file2 = new File(ReadSetPath + \"Short1.right.Marked.fasta\");\n\t\t\tif (file1.isFile() && file1.exists() && file2.isFile() && file2.exists()) {\n\t\t\t\tInputStreamReader read1 = new InputStreamReader(new FileInputStream(file1), encoding);\n\t\t\t\tBufferedReader bufferedReader1 = new BufferedReader(read1);\n\t\t\t\tInputStreamReader read2 = new InputStreamReader(new FileInputStream(file2), encoding);\n\t\t\t\tBufferedReader bufferedReader2 = new BufferedReader(read2);\n\t\t\t\twhile ((readtemp1 = bufferedReader1.readLine()) != null\n\t\t\t\t\t\t&& (readtemp2 = bufferedReader2.readLine()) != null) {\n\t\t\t\t\tif (readtemp1.charAt(0) != '>' && readtemp2.charAt(0) != '>') {\n\t\t\t\t\t\tif (readtemp1.charAt(0) == '#') {\n\t\t\t\t\t\t\tif (readtemp2.charAt(0) == '#') {\n\t\t\t\t\t\t\t\tString[] SplitLine1 = readtemp1.split(\"\\t|\\\\s+\");\n\t\t\t\t\t\t\t\tString[] SplitLine2 = readtemp2.split(\"\\t|\\\\s+\");\n\t\t\t\t\t\t\t\tString FastqStr_Left = \"@\" + (LowNum_Fastq++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(1, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \"+\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\" + SplitLine1[1].substring(0, SplitLine1[1].length() - Trime_Size) + \"\\n\";\n\t\t\t\t\t\t\t\tString FastqStr_Right = \"@\" + (LowNum_Fastq++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(1, SplitLine2[0].length() - Trime_Size) + \"\\n\" + \"+\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\" + SplitLine2[1].substring(0, SplitLine2[1].length() - Trime_Size) + \"\\n\";\n\t\t\t\t\t\t\t\t//Low FASTQ.\n\t\t\t\t\t\t\t\tFileWriter writer1 = new FileWriter(ReadSetPath + \"LowDepthFastq.fastq\", true);\n\t\t\t\t\t\t\t\twriter1.write(FastqStr_Left + FastqStr_Right);\n\t\t\t\t\t\t\t\twriter1.close();\n\t\t\t\t\t\t\t\t//Low FASTA.\n\t\t\t\t\t\t\t\tFileWriter writer2 = new FileWriter(ReadSetPath + \"LowDepthFasta.fasta\", true);\n\t\t\t\t\t\t\t\twriter2.write(\">\" + (LowNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(1, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \">\"\n\t\t\t\t\t\t\t\t\t\t+ (LowNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(1, SplitLine2[0].length() - Trime_Size) + \"\\n\");\n\t\t\t\t\t\t\t\twriter2.close();\n\t\t\t\t\t\t\t} else if (readtemp2.charAt(0) != '#') {\n\t\t\t\t\t\t\t\t//Low FASTQ.\n\t\t\t\t\t\t\t\tString[] SplitLine1 = readtemp1.split(\"\\t|\\\\s+\");\n\t\t\t\t\t\t\t\tString[] SplitLine2 = readtemp2.split(\"\\t|\\\\s+\");\n\t\t\t\t\t\t\t\tString FastqStr_Left = \"@\" + (LowNum_Fastq++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(1, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \"+\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\" + SplitLine1[1].substring(0, SplitLine1[1].length() - Trime_Size) + \"\\n\";\n\t\t\t\t\t\t\t\tString FastqStr_Right = \"@\" + (LowNum_Fastq++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(0, SplitLine2[0].length() - Trime_Size) + \"\\n\" + \"+\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\" + SplitLine2[1].substring(0, SplitLine2[1].length() - Trime_Size) + \"\\n\";\n\t\t\t\t\t\t\t\t//Mark.\n\t\t\t\t\t\t\t\tString RepStr = \"N\";\n\t\t\t\t\t\t\t\tfor (int h = 1; h < SplitLine2[0].length() - Trime_Size; h++) {\n\t\t\t\t\t\t\t\t\tRepStr += \"N\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//Low FASTQ.\n\t\t\t\t\t\t\t\tFileWriter writer1 = new FileWriter(ReadSetPath + \"LowDepthFastq.fastq\", true);\n\t\t\t\t\t\t\t\twriter1.write(FastqStr_Left + FastqStr_Right);\n\t\t\t\t\t\t\t\twriter1.close();\n\t\t\t\t\t\t\t\t//Low FASTA.\n\t\t\t\t\t\t\t\tFileWriter writer2 = new FileWriter(ReadSetPath + \"LowDepthFasta.fasta\", true);\n\t\t\t\t\t\t\t\twriter2.write(\">\" + (LowNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(1, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \">\"\n\t\t\t\t\t\t\t\t\t\t+ (LowNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(0, SplitLine2[0].length() - Trime_Size) + \"\\n\");\n\t\t\t\t\t\t\t\twriter2.close();\n\t\t\t\t\t\t\t\t//Normal.\n\t\t\t\t\t\t\t\tFileWriter writer3 = new FileWriter(ReadSetPath + \"NormalDepthFasta.fasta\", true);\n\t\t\t\t\t\t\t\twriter3.write(\">\" + (NormalNum_Fasta++) + \"\\n\" + RepStr + \"\\n\" + \">\"\n\t\t\t\t\t\t\t\t\t\t+ (NormalNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(0, SplitLine2[0].length() - Trime_Size) + \"\\n\");\n\t\t\t\t\t\t\t\twriter3.close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (readtemp1.charAt(0) != '#') {\n\t\t\t\t\t\t\tif (readtemp2.charAt(0) == '#') {\n\t\t\t\t\t\t\t\t//Low FASTQ.\n\t\t\t\t\t\t\t\tString[] SplitLine1 = readtemp1.split(\"\\t|\\\\s+\");\n\t\t\t\t\t\t\t\tString[] SplitLine2 = readtemp2.split(\"\\t|\\\\s+\");\n\t\t\t\t\t\t\t\tString FastqStr_Left = \"@\" + (LowNum_Fastq++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(0, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \"+\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\" + SplitLine1[1].substring(0, SplitLine1[1].length() - Trime_Size) + \"\\n\";\n\t\t\t\t\t\t\t\tString FastqStr_Right = \"@\" + (LowNum_Fastq++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(1, SplitLine2[0].length() - Trime_Size) + \"\\n\" + \"+\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\" + SplitLine2[1].substring(0, SplitLine2[1].length() - Trime_Size) + \"\\n\";\n\t\t\t\t\t\t\t\t//Mark.\n\t\t\t\t\t\t\t\tString RepStr = \"N\";\n\t\t\t\t\t\t\t\tfor (int h = 1; h < SplitLine1[0].length() - Trime_Size; h++) {\n\t\t\t\t\t\t\t\t\tRepStr += \"N\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//Low FASTQ.\n\t\t\t\t\t\t\t\tFileWriter writer1 = new FileWriter(ReadSetPath + \"LowDepthFastq.fastq\", true);\n\t\t\t\t\t\t\t\twriter1.write(FastqStr_Left + FastqStr_Right);\n\t\t\t\t\t\t\t\twriter1.close();\n\t\t\t\t\t\t\t\t//Low FASTA.\n\t\t\t\t\t\t\t\tFileWriter writer2 = new FileWriter(ReadSetPath + \"LowDepthFasta.fasta\", true);\n\t\t\t\t\t\t\t\twriter2.write(\">\" + (LowNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(0, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \">\"\n\t\t\t\t\t\t\t\t\t\t+ (LowNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(1, SplitLine2[0].length() - Trime_Size) + \"\\n\");\n\t\t\t\t\t\t\t\twriter2.close();\n\t\t\t\t\t\t\t\t//Normal.\n\t\t\t\t\t\t\t\tFileWriter writer3 = new FileWriter(ReadSetPath + \"NormalDepthFasta.fasta\", true);\n\t\t\t\t\t\t\t\twriter3.write(\">\" + (NormalNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(0, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \">\"\n\t\t\t\t\t\t\t\t\t\t+ (NormalNum_Fasta++) + \"\\n\" + RepStr + \"\\n\");\n\t\t\t\t\t\t\t\twriter3.close();\n\t\t\t\t\t\t\t} else if (readtemp2.charAt(0) != '#') {\n\t\t\t\t\t\t\t\t//Low FASTQ.\n\t\t\t\t\t\t\t\tString[] SplitLine1 = readtemp1.split(\"\\t|\\\\s+\");\n\t\t\t\t\t\t\t\tString[] SplitLine2 = readtemp2.split(\"\\t|\\\\s+\");\n\t\t\t\t\t\t\t\tString FastqStr_Left = \"@\" + (NormalNum_Fastq++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(0, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \"+\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\" + SplitLine1[1].substring(0, SplitLine1[1].length() - Trime_Size) + \"\\n\";\n\t\t\t\t\t\t\t\tString FastqStr_Right = \"@\" + (NormalNum_Fastq++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(0, SplitLine2[0].length() - Trime_Size) + \"\\n\" + \"+\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\" + SplitLine2[1].substring(0, SplitLine2[1].length() - Trime_Size) + \"\\n\";\n\t\t\t\t\t\t\t\t//Low FASTQ.\n\t\t\t\t\t\t\t\tFileWriter writer1 = new FileWriter(ReadSetPath + \"NormalDepthFastq.fastq\", true);\n\t\t\t\t\t\t\t\twriter1.write(FastqStr_Left + FastqStr_Right);\n\t\t\t\t\t\t\t\twriter1.close();\n\t\t\t\t\t\t\t\t//Low FASTA.\n\t\t\t\t\t\t\t\tFileWriter writer2 = new FileWriter(ReadSetPath + \"NormalDepthFasta.fasta\", true);\n\t\t\t\t\t\t\t\twriter2.write(\">\" + (NormalNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine1[0].substring(0, SplitLine1[0].length() - Trime_Size) + \"\\n\" + \">\"\n\t\t\t\t\t\t\t\t\t\t+ (NormalNum_Fasta++) + \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ SplitLine2[0].substring(0, SplitLine2[0].length() - Trime_Size) + \"\\n\");\n\t\t\t\t\t\t\t\twriter2.close();\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\tbufferedReader1.close();\n\t\t\t\tbufferedReader2.close();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"File is not exist!\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error liaoxingyu\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface BleReadRssiResponse extends BleResponse<Integer> {\n}", "public interface GermplasmListReader {\n public static final String LABEL_LIST_ID = \"LIST ID\";\n public static final String LABEL_LIST_NAME = \"LIST NAME\";\n public static final String LABEL_LIST_DATE = \"LIST DATE\";\n public static final String LABEL_LIST_TYPE = \"LIST TYPE\";\n public static final String LABEL_LIST_TITLE = \"LIST TITLE\";\n\n public static final String HEADER_GID = \"GID\";\n public static final String HEADER_ENTRY_CD = \"ENTRY CD\";\n public static final String HEADER_ENTRY_CODE = \"ENTRY CODE\"; \n public static final String HEADER_DESIGNATION = \"DESIG\";\n public static final String HEADER_CROSS = \"CROSS\";\n public static final String HEADER_SOURCE = \"SOURCE\";\n public static final String HEADER_UNIQUE_ID = \"UNIQUE ID\";\n public static final String HEADER_ENTRY_ID = \"ENTRY\";\n\n // Assume that entry values starts at 7 (8)\n public static final int ROW_HEADER_INDEX = 7;\n\n public static final int COLUMN_GID = 0;\n public static final int COLUMN_ENTRY_CODE = 1;\n public static final int COLUMN_DESIGNATION = 2;\n public static final int COLUMN_CROSS = 3;\n public static final int COLUMN_SOURCE = 4;\n public static final int COLUMN_UNIQUE_ID = 5;\n public static final int COLUMN_ENTRY_ID = 6;\n \n public static final int MAX_ROW = 2000;\n\n\n /**\n * Get Germplasm info from a excel file according to Germplasm template\n * @param fileName The file name including full path FullName\n * @return GermplasmList object with all entries\n */\n public GermplasmList getGermPlasmList(String fileName) throws Exception;\n\n public boolean isValidTemplate(String fileName) throws Exception;\n\n public boolean isValidCrossScript(String fileName) throws Exception;\n\n /**\n * Get Germplasm info from database according to Germplasm list id\n * @param listid ID for germplasm list\n * @return GermplasmList object with all entries\n */\n public GermplasmList getGermPlasmListFromDB(Integer listid);\n\n /**\n * Assign sheet number where Germplasm list is containted\n *\n * @param sheetNumber\n */\n public void setSheetNumberForGermplasm(Integer sheetNumber);\n\n /**\n * Assign sheet namn where Germplasm list is containted\n *\n * @param sheetNumber\n */\n public void setSheetNameForGermplasm(String sheetName);\n \n /**\n * Assign the list of factors header to read excel template\n * @param factorHeader \n */\n public void setEntryFactors(List<Factor> entryFactors);\n \n /**\n * Is it a germplasm template\n * @param isGermplasmTemplate \n */\n public void setIsGermplasmTemplate(boolean isGermplasmTemplate);\n \n}", "public StatDataFileReader createReaderInstance() throws IOException{\n return createReaderInstance(null);\n }", "private void startReadLoop() {\n\t\t\n\t\treadLoop=new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\t/*\n\t\t\t\t * According to the spec, we should be able to read an 8 character string,\n\t\t\t\t * which we turn into a number, and that number is the size of the next data\n\t\t\t\t * block. In all likelihood our buffer will be much bigger, but the whole point\n\t\t\t\t * of using the buffer is we don't have to care about the underlying sync between\n\t\t\t\t * what we have read, what the device has written etc. etc. \n\t\t\t\t */\n\t\t\t\twhile(keepGoing) {\n//\t\t\t\t\tif(pauseForCommand) {\n//\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\tThread.sleep(50);\t//Give a bit of time for something else...\n//\t\t\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tSystem.err.println(\"readLoop is paused\");\n//\t\t\t\t\t\tcontinue;\n//\t\t\t\t\t}\n\t\t\t\t\tDocument xmlDoc;\n\t\t\t\t\ttry {\n\t\t\t\t\t\txmlDoc = getNextBlock();\n\t\t\t\t\t\tif(xmlDoc.hasChildNodes()) {\n\t\t\t\t\t\t\tprocessChildren(xmlDoc);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (SAXException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlog.info(\"Read loop finishing as keepGoing now false\");\n\t\t\t}\n\t\t};\n\t\treadLoop.setName(\"NKV550Reader\");\n\t\treadLoop.setPriority(Thread.MAX_PRIORITY);\n\t\treadLoop.start();\n\t}", "private static void parseRoutesAndSensors (int numRoutes,\n String currentLine,\n Network network,\n BufferedReader bufferedReader) {\n // Parse routes and sensors\n for (int i = 0; i < numRoutes; i++) {\n String[] routeValues = currentLine.split(\":\");\n\n // add Route\n try {\n network.connectIntersections(\n routeValues[0],\n routeValues[1],\n Integer.parseInt(routeValues[2])\n );\n } catch (IntersectionNotFoundException e) {\n e.printStackTrace();\n }\n\n // Adding Sensors\n for (int j = 0; j < Integer.parseInt(routeValues[3]); j++) {\n try {\n currentLine = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n String[] sensorValues = currentLine.split(\":\");\n\n // Converting sensor values to int\n String[] dataString = sensorValues[2].split(\",\");\n int[] dataInt = new int[dataString.length];\n for(int k = 0; k < dataString.length; k++) {\n dataInt[k] = Integer.parseInt(dataString[k]);\n }\n\n try {\n switch (sensorValues[0]) {\n case \"PP\":\n network.addSensor(\n routeValues[0],\n routeValues[1],\n new DemoPressurePad(\n dataInt,\n Integer.parseInt(\n sensorValues[1])\n ));\n break;\n case \"SC\":\n network.addSensor(\n routeValues[0],\n routeValues[1],\n new DemoSpeedCamera(\n dataInt,\n Integer.parseInt(\n sensorValues[1])\n ));\n break;\n case \"VC\":\n network.addSensor(\n routeValues[0],\n routeValues[1],\n new DemoVehicleCount(\n dataInt,\n Integer.parseInt(sensorValues[1])\n ));\n break;\n }\n } catch (DuplicateSensorException\n | IntersectionNotFoundException\n | RouteNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n if (i + 1 < numRoutes) {\n try {\n currentLine = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n // add speedSign\n if (routeValues.length > 4) {\n try {\n network.addSpeedSign(\n routeValues[0],\n routeValues[1],\n Integer.parseInt(routeValues[4]));\n } catch (IntersectionNotFoundException\n | RouteNotFoundException e) {\n e.printStackTrace();\n }\n }\n }\n }", "private RadialGradient getGradient(Rect bounds) {\n adjustGradientColors();\n int count = colors.size();\n int[] colors = new int[count];\n float[] positions = new float[count];\n for (int i = 0; i < count; i++) {\n colors[i] = this.colors.get(i);\n positions[i] = this.offsets.get(i);\n }\n try {\n float r;\n PointF c;\n if (radius == 0) {\n c = new PointF(bounds.exactCenterX(), bounds.exactCenterY());\n r = Math.min(bounds.width() * 0.5f, bounds.height() * 0.5f);\n } else if (gradientUnits == PXGradientUnits.USER_SPACE) {\n c = new PointF(center.x, center.y);\n r = radius;\n } else {\n // linear-gradient points are based on the shape's bbox, so grab\n // that\n Rect pathBounds = bounds;\n\n // grab the x,y offset which we will apply later\n int left = pathBounds.left;\n int top = pathBounds.top;\n\n // grab the positions within the bbox for each point\n float p1x = pathBounds.width() * center.x;\n float p1y = pathBounds.height() * center.y;\n\n // create final points by offsetting the bbox coordinates by the\n // bbox origin\n c = new PointF(left + p1x, top + p1y);\n\n // TODO: need rx and ry. Using width for both now\n r = pathBounds.width() * radius;\n }\n RadialGradient gradient = new RadialGradient(c.x, c.y, r, colors, positions,\n TileMode.CLAMP);\n return gradient;\n } catch (Exception e) {\n if (PXLog.isLogging()) {\n PXLog.e(TAG, e, \"Error while instantiating a RadialGradient\");\n }\n return null;\n }\n }" ]
[ "0.74648786", "0.5889299", "0.5714345", "0.54755956", "0.54442334", "0.5101017", "0.5041771", "0.49833718", "0.48769173", "0.48665342", "0.48417392", "0.48342323", "0.47666433", "0.47393575", "0.47327617", "0.4725444", "0.4665143", "0.465044", "0.4578598", "0.4562866", "0.4538221", "0.4536695", "0.45274135", "0.45220235", "0.45183936", "0.4505362", "0.4501533", "0.44792184", "0.44445142", "0.44402394", "0.4434766", "0.44186935", "0.4401717", "0.4396948", "0.43909073", "0.43628874", "0.4349677", "0.43471345", "0.43430543", "0.43389347", "0.4295", "0.42905098", "0.4287429", "0.42771503", "0.4276716", "0.4248929", "0.4246679", "0.42337757", "0.42225873", "0.42203072", "0.41969073", "0.4184556", "0.41643703", "0.4143406", "0.413616", "0.41313025", "0.41180167", "0.41123646", "0.41022784", "0.4099733", "0.40988743", "0.40904742", "0.40885565", "0.4087323", "0.40733218", "0.40693805", "0.4060568", "0.404993", "0.40372577", "0.4035578", "0.40287757", "0.40264162", "0.4026236", "0.4025023", "0.40162155", "0.40078157", "0.40074933", "0.40065405", "0.3999772", "0.39994192", "0.39958382", "0.39887336", "0.39854038", "0.39771596", "0.3954956", "0.3954012", "0.3936908", "0.3932847", "0.3927582", "0.39275154", "0.39222333", "0.39206818", "0.3916125", "0.39068204", "0.39054728", "0.39038953", "0.39009652", "0.38961262", "0.38843763", "0.38824007" ]
0.7949619
0
Creates an RSSI reading from a ranging and RSSI reading.
private RssiReadingLocated<S, P> createRssiReading( final RangingAndRssiReadingLocated<S, P> reading) { return new RssiReadingLocated<>(reading.getSource(), reading.getRssi(), reading.getPosition(), reading.getRssiStandardDeviation(), reading.getPositionCovariance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RangingReadingLocated<S, P> createRangingReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RangingReadingLocated<>(reading.getSource(),\n reading.getDistance(), reading.getPosition(),\n reading.getDistanceStandardDeviation(),\n reading.getPositionCovariance());\n }", "AdvSample(int RSSI, long time)\n {\n this.RSSI = RSSI;\n this.time = time;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n }", "public void setRSSI(int rssi) {\r\n this.rssi = rssi;\r\n }", "@MavlinkFieldInfo(\n position = 14,\n unitSize = 1,\n description = \"Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown.\"\n )\n public final Builder rssi(int rssi) {\n this.rssi = rssi;\n return this;\n }", "private void setupRSSIsNRBroadcastReceiver() {\n broadcastReceiverRSSI = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.RSSI_RECEIVED\".equals(intent.getAction())) {\n byte[] bytes = intent.getByteArrayExtra(\"com.example.loravisual.RSSISNR\");\n int rssi = LVUtil.makeByteUnsigned(bytes[1]);\n int bitErrors = LVUtil.makeByteUnsigned(bytes[3]);\n String rssiSnr = \"RSSI: -\" + rssi + \" SNR: \" + (bytes[2]);\n rssiSnrTextView.setText(rssiSnr);\n if (dbEntries == null) {\n dbEntries = new String[5];\n dbEntries[2] = \"-\" + rssi;\n dbEntries[3] = Byte.toString(bytes[2]);\n dbEntries[4] = Integer.toString(bitErrors);\n } else {\n dbEntries[2] = \"-\" + rssi;\n dbEntries[3] = Byte.toString(bytes[2]);\n dbEntries[4] = Integer.toString(bitErrors);\n databaseHandler.logReceivedTransmission(Integer.toString(experimentNumber), dbEntries);\n dbEntries = null;\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.RSSI_RECEIVED\");\n registerReceiver(broadcastReceiverRSSI, filter);\n\n }", "private void getStrongestRSSI() {\n\t\tint index1, index2;\n\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\tfor(index2=0; index2<discoveredBeaconList.size()-1; index2++){\n\t\t\t\tBeacon bcn1 = discoveredBeaconList.get(index2);\n\t\t\t\tBeacon bcn2 = discoveredBeaconList.get(index2+1);\n\t\t\t\tSystem.out.println(bcn1.getId3().toString());\n\t\t\t\tif(bcn1.getRssi() < bcn2.getRssi())\n\t\t\t\t{\n\t\t\t\t\tdiscoveredBeaconList.set(index2, bcn2);\n\t\t\t\t\tdiscoveredBeaconList.set(index2+1, bcn1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(discoveredBeaconList.size()>=3){\n\t\t\tfor(index1=0; index1<3; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else if(discoveredBeaconList.size()==2){\n\t\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else{\n\t\t\tToast.makeText(getApplicationContext(), \"No beacon or just one beacon was discovered.\", Toast.LENGTH_LONG).show();\n\t\t}\t\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent) {\n this(readings, initialPosition, initialTransmittedPowerdBm);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public int getRssi() {\r\n return rssi;\r\n }", "public int getRssi() {\n return rssi;\n }", "private int normaliseRssi(int rssi) {\n final int RSSI_RANGE = 147;\n final int RSSI_MAX = 20;\n\n return (RSSI_RANGE + (rssi - RSSI_MAX)) * 100 / RSSI_RANGE;\n }", "@Override\n\t\tpublic void onRssi(Myo myo, long timestamp, int rssi) {\n\t\t\tsuper.onRssi(myo, timestamp, rssi);\n\t\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final double initialPathLossExponent,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n this(readings, initialPosition, initialTransmittedPowerdBm,\n listener);\n mInitialPathLossExponent = initialPathLossExponent;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm) {\n super(readings);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "@SuppressLint(\"DefaultLocale\")\n\tpublic static Eddystone fromScanData(BluetoothDevice device, int rssi, byte[] scanData) {\n\t\tString scanDataHex = Conversion.bytesToHexString(scanData);\n\t\t\n\t\tString tempiBeacon = scanDataHex.substring(14, 18);\n\t\tString tempOther = scanDataHex.substring(6, 14);\n\t\n//--------------------------This is an iBeacon------------------------------------------------------------------------\n\t\tif (iBeaconType.equals(tempiBeacon)) {\n\t\t\tint startByte = 2;\n\t\t\tboolean patternFound = false;\n\t\t\twhile (startByte <= 5) {\n\t\t\t\tif (((int) scanData[startByte + 2] & 0xff) == 0x02 && ((int) scanData[startByte + 3] & 0xff) == 0x15) {\n\t\t\t\t\t// yes! This is an iBeacon\n\t\t\t\t\tpatternFound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tstartByte++;\n\t\t\t}\n\t\t\tif (patternFound == false) {\n\t\t\t\t// This is not an iBeacon\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tEddystone iBeacon = new Eddystone();\n\t\t\t/**\n\t\t\t * iBeacon.ID2 is major\n\t\t\t */\n\t\t\tiBeacon.ID2 = ((scanData[startByte + 20] & 0xff) * 0x100 + (scanData[startByte + 21] & 0xff) + \"\")\n\t\t\t\t\t.toUpperCase();\n\t\t\t/**\n\t\t\t * iBeacon.ID3 is minor\n\t\t\t */\n\t\t\tiBeacon.ID3 = ((scanData[startByte + 22] & 0xff) * 0x100 + (scanData[startByte + 23] & 0xff) + \"\")\n\t\t\t\t\t.toUpperCase();\n\t\t\tiBeacon.txPower = (int) scanData[startByte + 24];\n\t\t\t\n\t\t\tiBeacon.rssi = rssi;\n\t\t\tbyte[] proximityUuidBytes = new byte[16];\n\t\t\tSystem.arraycopy(scanData, startByte + 4, proximityUuidBytes, 0, 16);\n\t\t\tString hexString = Conversion.bytesToHexString(proximityUuidBytes);\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(hexString.substring(0, 8));\n\t\t\tsb.append(\"-\");\n\t\t\tsb.append(hexString.substring(8, 12));\n\t\t\tsb.append(\"-\");\n\t\t\tsb.append(hexString.substring(12, 16));\n\t\t\tsb.append(\"-\");\n\t\t\tsb.append(hexString.substring(16, 20));\n\t\t\tsb.append(\"-\");\n\t\t\tsb.append(hexString.substring(20, 32));\n\t\t\t/**\n\t\t\t * iBeacon.type is UUID\n\t\t\t */\n\t\t\tiBeacon.type = sb.toString().toUpperCase();\n\t\t\tif (device != null) {\n\t\t\t\tiBeacon.bluetoothAddress = device.getAddress();\n\t\t\t\t/**\n\t\t\t\t * Plus ibeacon is mainly for the LeDeviceListAdapter class show a good distinction\n\t\t\t\t */\n\t\t\t\tiBeacon.name = device.getName() + \"(iBeacon)\";\n\t\t\t}\n\t\t\treturn iBeacon;\n\t\t} \n\t\t\n//----------------------This is an Eddystone-UID-----------------------------------------------------------------\t\t\n\t\telse if (other.equals(tempOther)) {\n\t\t\t// This is an Eddystone-UID\n\t\t\ttry {\n\t\t\t\tString UID = scanDataHex.substring(22, 24);\n\t\t\t\tif (UIDType.equals(UID)) {\n\t\t\t\t\tEddystone UidInstance = new Eddystone();\n\t\t\t\t\tif (device != null) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Plus Eddystone UID is mainly for the LeDeviceListAdapter class show a good distinction\n\t\t\t\t\t\t */\n\t\t\t\t\t\tUidInstance.name = device.getName() + \"(Eddystone UID)\";\n\t\t\t\t\t\tUidInstance.bluetoothAddress = device.getAddress();\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * UidInstance.ID2 is Namespace ID\n\t\t\t\t\t */\n\t\t\t\t\tUidInstance.ID2 = scanDataHex.substring(46, 58).toUpperCase();\n\n\t\t\t\t\tUidInstance.txPower = (int) scanData[12] - 41;\n\n\t\t\t\t\tUidInstance.rssi = rssi;\n\t\t\t\t\t/**\n\t\t\t\t\t * UidInstance.type is Instance ID\n\t\t\t\t\t */\n\t\t\t\t\tUidInstance.type = scanDataHex.substring(26, 46).toUpperCase();\n\t\t\t\t\treturn UidInstance;\n\t\t\t\t} \n\t\t\t\t\n//----------------------This is an Eddystone-URL-----------------------------------------------------------------\t\t\n\t\t\t\telse if (URLType.equals(UID)) {\n\t\t\t\t\t// This is an Eddystone-URL\n\t\t\t\t\tEddystone UrlInstance = new Eddystone();\n\t\t\t\t\tif (device != null) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Plus Eddystone URL is mainly for the LeDeviceListAdapter class show a good distinction\n\t\t\t\t\t\t */\n\t\t\t\t\t\tUrlInstance.name = device.getName() + \"(Eddystone URL)\";\n\t\t\t\t\t\tUrlInstance.bluetoothAddress = device.getAddress();\n\t\t\t\t\t}\n\t\t\t\t\tUrlInstance.txPower = (int) scanData[12] - 41;\n\t\t\t\t\tUrlInstance.rssi = rssi;\n\t\t\t\t\t/**\n\t\t\t\t\t * URL prefix\n\t\t\t\t\t */\n\t\t\t\t\tString urlprefix=Conversion.calculateURLpro(scanDataHex.substring(26,28));\n\t\t\t\t\t/**\n\t\t\t\t\t * URL suffix\n\t\t\t\t\t */\n\t\t\t\t\tString URLsuffix=Conversion.calculateURL(scanDataHex.substring(28,\n\t\t\t\t\t\t\t28 + (Integer.parseInt(scanDataHex.substring(14, 16), 16) - 6) * 2));\n\t\t\t\t\t/**\n\t\t\t\t\t * UrlInstance.type is Website url\n\t\t\t\t\t */\n\t\t\t\t\tUrlInstance.type = urlprefix+URLsuffix;\n\t\t\t\t\t\t\t\n\t\t\t\t\treturn UrlInstance;\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final Double initialTransmittedPowerdBm,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialTransmittedPowerdBm = initialTransmittedPowerdBm;\n }", "@Override\n public void estimate() throws RadioSourceEstimationException, NotReadyException,\n LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n createInnerEstimatorsIfNeeded();\n\n final List<RangingReadingLocated<S, P>> rangingReadings = new ArrayList<>();\n final List<RssiReadingLocated<S, P>> rssiReadings = new ArrayList<>();\n for (final ReadingLocated<P> reading : mReadings) {\n if (reading instanceof RangingReadingLocated) {\n rangingReadings.add((RangingReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RssiReadingLocated) {\n rssiReadings.add((RssiReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n rangingReadings.add(createRangingReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n rssiReadings.add(createRssiReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n }\n }\n\n //estimate position using ranging data, if possible\n P estimatedPosition = null;\n if (!mRssiPositionEnabled) {\n mRangingInnerEstimator.setUseReadingPositionCovariances(\n mUseReadingPositionCovariances);\n mRangingInnerEstimator.setHomogeneousLinearSolverUsed(\n mUseHomogeneousRangingLinearSolver);\n mRangingInnerEstimator.setReadings(rangingReadings);\n mRangingInnerEstimator.setInitialPosition(mInitialPosition);\n\n mRangingInnerEstimator.estimate();\n\n mEstimatedPositionCoordinates =\n mRangingInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRangingInnerEstimator.getEstimatedPositionCovariance();\n estimatedPosition = mRangingInnerEstimator.getEstimatedPosition();\n }\n\n //estimate transmitted power and/or pathloss if enabled\n if (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled || mRssiPositionEnabled) {\n mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled);\n mRssiInnerEstimator.setInitialPosition(estimatedPosition);\n\n mRssiInnerEstimator.setTransmittedPowerEstimationEnabled(\n mTransmittedPowerEstimationEnabled);\n mRssiInnerEstimator.setInitialTransmittedPowerdBm(\n mInitialTransmittedPowerdBm);\n\n mRssiInnerEstimator.setPathLossEstimationEnabled(\n mPathLossEstimationEnabled);\n mRssiInnerEstimator.setInitialPathLossExponent(\n mInitialPathLossExponent);\n\n mRssiInnerEstimator.setReadings(rssiReadings);\n\n mRssiInnerEstimator.estimate();\n\n if (mRssiPositionEnabled) {\n mEstimatedPositionCoordinates =\n mRssiInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRssiInnerEstimator.getEstimatedPositionCovariance();\n }\n\n if (mTransmittedPowerEstimationEnabled) {\n //transmitted power estimation enabled\n mEstimatedTransmittedPowerdBm =\n mRssiInnerEstimator.getEstimatedTransmittedPowerdBm();\n mEstimatedTransmittedPowerVariance =\n mRssiInnerEstimator.getEstimatedTransmittedPowerVariance();\n } else {\n //transmitted power estimation disabled\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n }\n\n if (mPathLossEstimationEnabled) {\n //pathloss exponent estimation enabled\n mEstimatedPathLossExponent =\n mRssiInnerEstimator.getEstimatedPathLossExponent();\n mEstimatedPathLossExponentVariance =\n mRssiInnerEstimator.getEstimatedPathLossExponentVariance();\n } else {\n //pathloss exponent estimation disabled\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n //build covariance matrix\n if (mRssiPositionEnabled) {\n //if only RSSI estimation is done, we use directly the available estimated covariance\n mEstimatedCovariance = mRssiInnerEstimator.getEstimatedCovariance();\n\n } else {\n //if both ranging and RSSI data is used, we build covariance matrix by setting\n //position covariance estimated by ranging estimator into top-left corner, and then\n //adding covariance terms related to pathloss exponent and transmitted power\n final Matrix rssiCov = mRssiInnerEstimator.getEstimatedCovariance();\n if (mEstimatedPositionCovariance != null && rssiCov != null) {\n final int dims = getNumberOfDimensions();\n int n = dims;\n if (mTransmittedPowerEstimationEnabled) {\n n++;\n }\n if (mPathLossEstimationEnabled) {\n n++;\n }\n\n final int dimsMinus1 = dims - 1;\n final int nMinus1 = n - 1;\n mEstimatedCovariance = new Matrix(n, n);\n mEstimatedCovariance.setSubmatrix(0, 0,\n dimsMinus1, dimsMinus1,\n mEstimatedPositionCovariance);\n mEstimatedCovariance.setSubmatrix(dims, dims,\n nMinus1, nMinus1, rssiCov);\n } else {\n mEstimatedCovariance = null;\n }\n }\n\n } else {\n mEstimatedCovariance = mEstimatedPositionCovariance;\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n } catch (final AlgebraException e) {\n throw new RadioSourceEstimationException(e);\n } finally {\n mLocked = false;\n }\n }", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "private ExtendedBluetoothDevice convertDevice(BluetoothDevice device, int rssi) {\n\t\treturn new ExtendedBluetoothDevice(device, rssi);\n\t}", "QualityYieldMetrics addRead(final GATKRead read){\n TOTAL_READS++;\n final int length = read.getLength();\n\n final boolean isPfRead = !read.failsVendorQualityCheck();\n if (isPfRead) {\n PF_READS++;\n PF_BASES += length;\n }\n\n TOTAL_BASES += length;\n\n final byte[] quals;\n if (useOriginalQualities) {\n byte[] tmp = ReadUtils.getOriginalBaseQualities(read);\n if (tmp == null) {\n tmp = read.getBaseQualities();\n }\n quals = tmp;\n } else {\n quals = read.getBaseQualities();\n }\n\n // add up quals, and quals >= 20\n for (final byte qual : quals) {\n Q20_EQUIVALENT_YIELD += qual;\n if (qual >= 20) {\n Q20_BASES++;\n }\n if (qual >= 30) {\n Q30_BASES++;\n }\n\n if (isPfRead) {\n PF_Q20_EQUIVALENT_YIELD += qual;\n if (qual >= 20) {\n PF_Q20_BASES++;\n }\n if (qual >= 30) {\n PF_Q30_BASES++;\n }\n }\n }\n return this;\n }", "@Override\r\n\tpublic ArrayList<Rents> readRents(String address) {\n\t\treturn null;\r\n\t}", "public LFSR(String seed, int tap) {\n // PUT YOUR CODE HERE\n }", "public synchronized int getCurrentRssi() {\n initNetwork();\n return currentSignalStrength;\n }", "@Override\n \t\tpublic void onReceive(Context context, Intent intent) {\n \t\t\tif(sVerboseLog) {\n \t\t\t\tLog.v(sLogTag, \"newReadingsReceiver called\");\n \t\t\t\tLog.v(sLogTag, \"new reading uri '\" + intent.getDataString() + \"'\");\n \t\t\t}\n \t\t\t\n \t\t\t// define the projection\n \t\t\tif(projection == null) {\n \t\t\t\tprojection = new String[3];\n \t\t\t\tprojection[0] = ReadingsContract.Table.TEMPERATURE;\n \t\t\t\tprojection[1] = ReadingsContract.Table.HUMIDITY;\n \t\t\t\tprojection[2] = ReadingsContract.Table.TIMESTAMP;\n \t\t\t}\n \t\t\t\n \t\t\t// get a content resolver if required\n \t\t\tif(contentResolver == null) {\n \t\t\t\tcontentResolver = context.getContentResolver();\n \t\t\t}\n \t\t\t\n \t\t\t// get the URI from the intent\n \t\t\tUri mNewRecord = intent.getData();\n \t\t\t\n \t\t\t// get the data\n \t\t\tCursor mCursor = contentResolver.query(\n \t\t\t\t\tmNewRecord, \n \t\t\t\t\tprojection, \n \t\t\t\t\tnull, \n \t\t\t\t\tnull, \n \t\t\t\t\tnull);\n \t\t\t\n \t\t\tif(mCursor != null && mCursor.getCount() > 0) {\n \t\t\t\tmCursor.moveToFirst();\n \t\t\t\t\n \t\t\t\t// update the temperature\n \t\t\t\tupdateTemperatureValue(mCursor.getFloat(mCursor.getColumnIndex(projection[0])));\n \t\t\t updateTemperatureImage(mCursor.getFloat(mCursor.getColumnIndex(projection[0])));\n \t\t\t \n \t\t\t // update the humidity\n \t\t\t updateHumidityValue(mCursor.getFloat(mCursor.getColumnIndex(projection[1])));\n \t\t updateHumidityImage(mCursor.getFloat(mCursor.getColumnIndex(projection[1])));\n \t\t \n \t\t // update the reading time\n \t\t updateReadingTime(mCursor.getLong(mCursor.getColumnIndex(projection[2])));\n \t\t \n \t\t mCursor.close();\n \t\t\t}\n \t\t\t\n \t\t\t// check on the status of the serval mesh\n \t\t\tif(servalMeshStatusReceiver.getStatus() != ServalStatusReceiver.SERVAL_STATUS_ON) {\n \t\t\t\tToast.makeText(getApplicationContext(), R.string.readings_ui_toast_serval_not_running, Toast.LENGTH_LONG).show();\n \t\t\t}\n \t\t}", "private DbLocus readAlternativeProtein() {\n String prAcc = null;\n String prDescr = null;\n char preResidue = 0;\n char postResidue = 0;\n int numEnzymaticTermini = 0;\n\n for (int i = 0; i < reader.getAttributeCount(); i++) {\n String attrib = reader.getAttributeLocalName(i);\n String val = reader.getAttributeValue(i);\n if (attrib.equalsIgnoreCase(\"protein\"))\n prAcc = val;\n else if (attrib.equalsIgnoreCase(\"protein_descr\"))\n prDescr = val;\n else if (attrib.equalsIgnoreCase(\"peptide_prev_aa\"))\n preResidue = Character.valueOf(val.charAt(0));\n else if (attrib.equalsIgnoreCase(\"peptide_next_aa\"))\n postResidue = Character.valueOf(val.charAt(0));\n else if (attrib.equalsIgnoreCase(\"num_tol_term\")) \n numEnzymaticTermini = Integer.parseInt(val);\n }\n DbLocus locus = new DbLocus(prAcc, prDescr);\n locus.setNtermResidue(preResidue);\n locus.setCtermResidue(postResidue);\n locus.setNumEnzymaticTermini(numEnzymaticTermini);\n return locus;\n }", "public void read(CompoundNBT nbt) {\n this.nextAvailableId = nbt.getInt(\"NextAvailableID\");\n this.tick = nbt.getInt(\"Tick\");\n ListNBT listnbt = nbt.getList(\"Raids\", 10);\n\n for(int i = 0; i < listnbt.size(); ++i) {\n CompoundNBT compoundnbt = listnbt.getCompound(i);\n Raid raid = new Raid(this.world, compoundnbt);\n this.byId.put(raid.getId(), raid);\n }\n\n }", "double getRangeDist( RangeName r ) {\n double dis = 0.0;\n double period = 1.0/MAX_RANGE_READ_FREQ ; // dflt 10Hz => one read per 100ms\n last_range_read_failed_ = false;\n switch ( r ) {\n case RGB_RANGE_STONE :\n if( rgb_range_stone_ != null ) {\n if( (last_rgb_range_stone_read_loop_id_ == loop_cnt_) || (last_rgb_range_stone_read_time_>0 && curr_time_-last_rgb_range_stone_read_time_<period) ) {\n dis = rgb_range_stone_dist_;\n } else {\n dis = rgb_range_stone_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_rgb_range_stone_read_loop_id_ = loop_cnt_;\n last_rgb_range_stone_read_time_ = curr_time_;\n rgb_range_stone_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = rgb_range_stone_dist_;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_STONE :\n if( range_stone_ != null ) {\n if( (last_range_stone_read_loop_id_ == loop_cnt_) || (last_range_stone_read_time_>0 && curr_time_-last_range_stone_read_time_<period) ) {\n dis = range_stone_dist_;\n } else {\n dis = range_stone_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_stone_read_loop_id_ = loop_cnt_;\n last_range_stone_read_time_ = curr_time_;\n range_stone_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_stone_dist_;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_RIGHT :\n if( range_right_ != null ) {\n if( (last_range_right_read_loop_id_ == loop_cnt_) || (last_range_right_read_time_>0 && curr_time_-last_range_right_read_time_<period) ) {\n dis = range_right_dist_;\n } else {\n dis = range_right_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_right_read_loop_id_ = loop_cnt_;\n last_range_right_read_time_ = curr_time_;\n range_right_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_right_dist_ ;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_LEFT :\n if( range_left_ != null ) {\n if( (last_range_left_read_loop_id_ == loop_cnt_) || (last_range_left_read_time_>0 && curr_time_-last_range_left_read_time_<period) ) {\n dis = range_left_dist_;\n } else {\n dis = range_left_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_left_read_loop_id_ = loop_cnt_;\n last_range_left_read_time_ = curr_time_;\n range_left_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_left_dist_ ;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n default:\n break;\n }\n return dis;\n }", "@Override\n public void onRssiUpdate(final int resultId, final int rssi) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n for (MultiDeviceSearchResultWithRSSI result : mFoundDevices) {\n if (result.mDevice.resultID == resultId) {\n result.mRSSI = rssi;\n mFoundAdapter.notifyDataSetChanged();\n\n break;\n }\n }\n }\n });\n }", "private void dist2Pos2Beacons(){\n double dist = Math.sqrt(Math.pow(posReceiver[0][0] - posReceiver[1][0], 2) + Math.pow(posReceiver[0][1] - posReceiver[1][1], 2));\n //Wenn Distanz ist größer als summe der Radien, dann gibt es keine Überschneidungen\n if (dist > (radius[0] + radius[1])) {\n //Berechne mittlere Distanz zwischen den Empfängern, da sich Kreise nicht überschneiden\n xPos_func = (posReceiver[0][0] + posReceiver[1][0]) / 2;\n yPos_func = (posReceiver[0][1] + posReceiver[1][1]) / 2;\n }\n else {\n double[][] pos = circlepoints2(posReceiver[0][0], posReceiver[0][1], posReceiver[1][0], posReceiver[1][1], radius[0], radius[1]);\n //Schnittpunkte sind identisch, Beacon ist exakt zu lokalisieren\n if ((pos[0][0] == pos[1][0]) && (pos[0][1] == pos[1][1])) {\n xPos_func = pos[0][0];\n yPos_func = pos[0][1];\n }else {\n xPos_func = (pos[0][0] + pos[1][0]) / 2;\n yPos_func = (pos[0][1] + pos[1][1]) / 2;\n errRad_func = Math.abs(dist -(radius[0] + radius[1]));\n }\n }\n }", "private void setListener2(BluetoothReader reader) {\n mBluetoothReader2\n .setOnAuthenticationCompleteListener(new OnAuthenticationCompleteListener() {\n\n @Override\n public void onAuthenticationComplete(\n BluetoothReader bluetoothReader, final int errorCode) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (errorCode == BluetoothReader.ERROR_SUCCESS) {\n mTxtAuthentication\n .setText(\"Authentication Success!\");\n mEditApdu.setText(\"FF CA 00 00 00\");\n mAuthentication.setEnabled(false);\n } else {\n mTxtAuthentication\n .setText(\"Authentication Failed!\");\n }\n }\n });\n }\n\n });\n\n /* Wait for receiving ATR string. */\n mBluetoothReader2\n .setOnAtrAvailableListener(new OnAtrAvailableListener() {\n\n @Override\n public void onAtrAvailable(BluetoothReader bluetoothReader,\n final byte[] atr, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (atr == null) {\n mTxtATR.setText(getErrorString(errorCode));\n } else {\n mTxtATR.setText(Utils.toHexString(atr));\n }\n }\n });\n }\n\n });\n\n /* Wait for power off response. */\n mBluetoothReader2\n .setOnCardPowerOffCompleteListener(new OnCardPowerOffCompleteListener() {\n\n @Override\n public void onCardPowerOffComplete(\n BluetoothReader bluetoothReader, final int result) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtATR.setText(getErrorString(result));\n }\n });\n }\n\n });\n\n /* Wait for response APDU. */\n mBluetoothReader2\n .setOnResponseApduAvailableListener(new OnResponseApduAvailableListener() {\n\n @Override\n public void onResponseApduAvailable(\n BluetoothReader bluetoothReader, final byte[] apdu,\n final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtResponseApdu.setText(getResponseString(\n apdu, errorCode));\n // InnerTes(\"tes\");\n }\n });\n }\n\n });\n mBluetoothReader2\n .setOnResponseApduAvailableListener(new OnResponseApduAvailableListener() {\n\n @Override\n public void onResponseApduAvailable(\n BluetoothReader bluetoothReader, final byte[] apdu,\n final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtScan.setText(getResponseString(\n apdu, errorCode));\n String uid = mTxtScan.getText().toString();\n uid_final= uid;\n final String uid2=mTxtScan.getText().toString();\n /*** Kirim Variabel String uid ke ChildviewHolder **/\n /** code start here **/\n Tes tes = new Tes() {\n\n\n @Override\n public String onClickTes(String uid) {\n return null;\n }\n\n @Override\n public String getUid() {\n return mTxtScan.getText().toString();\n\n }\n };\n tes.onClickTes(uid);\n uid_final = tes.getUid();\n Log.d(\"uidFinal_listener\",\" \"+uid_final);\n requestUid(tes);\n\n\n //uid_final=\"tes\";\n // InnerTes(\"tes\");\n// rvTxtScan.setText(getResponseString(\n// apdu, errorCode));\n getInfoCard(uid);\n }\n\n\n });\n\n\n\n }\n\n });\n\n\n /* Wait for escape command response. */\n mBluetoothReader2\n .setOnEscapeResponseAvailableListener(new OnEscapeResponseAvailableListener() {\n\n @Override\n public void onEscapeResponseAvailable(\n BluetoothReader bluetoothReader,\n final byte[] response, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mTxtEscapeResponse.setText(getResponseString(\n response, errorCode));\n }\n });\n }\n\n });\n\n /* Wait for device info available. */\n mBluetoothReader2\n .setOnDeviceInfoAvailableListener(new OnDeviceInfoAvailableListener() {\n\n @Override\n public void onDeviceInfoAvailable(\n BluetoothReader bluetoothReader, final int infoId,\n final Object o, final int status) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (status != BluetoothGatt.GATT_SUCCESS) {\n Toast.makeText(ReaderActivity.this,\n \"Failed to read device info!\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n switch (infoId) {\n case BluetoothReader.DEVICE_INFO_SYSTEM_ID: {\n // mTxtSystemId.setText(Utils.toHexString((byte[]) o));\n }\n break;\n case BluetoothReader.DEVICE_INFO_MODEL_NUMBER_STRING:\n // mTxtModelNo.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_SERIAL_NUMBER_STRING:\n // mTxtSerialNo.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_FIRMWARE_REVISION_STRING:\n // mTxtFirmwareRev.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_HARDWARE_REVISION_STRING:\n // mTxtHardwareRev.setText((String) o);\n break;\n case BluetoothReader.DEVICE_INFO_MANUFACTURER_NAME_STRING:\n //mTxtManufacturerName.setText((String) o);\n break;\n default:\n break;\n }\n }\n });\n }\n\n });\n\n /* Wait for battery level available. */\n if (mBluetoothReader2 instanceof Acr1255uj1Reader) {\n ((Acr1255uj1Reader) mBluetoothReader2)\n .setOnBatteryLevelAvailableListener(new OnBatteryLevelAvailableListener() {\n\n @Override\n public void onBatteryLevelAvailable(\n BluetoothReader bluetoothReader,\n final int batteryLevel, int status) {\n Log.i(TAG, \"mBatteryLevelListener data: \" + batteryLevel);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // mTxtBatteryLevel2.setText(getBatteryLevelString(batteryLevel));\n }\n });\n\n }\n\n });\n }\n\n /* Handle on battery status available. */\n if (mBluetoothReader2 instanceof Acr3901us1Reader) {\n ((Acr3901us1Reader) mBluetoothReader2)\n .setOnBatteryStatusAvailableListener(new OnBatteryStatusAvailableListener() {\n\n @Override\n public void onBatteryStatusAvailable(\n BluetoothReader bluetoothReader,\n final int batteryStatus, int status) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // mTxtBatteryStatus2.setText(getBatteryStatusString(batteryStatus));\n }\n });\n }\n\n });\n }\n\n /* Handle on slot status available. */\n mBluetoothReader2\n .setOnCardStatusAvailableListener(new OnCardStatusAvailableListener() {\n\n @Override\n public void onCardStatusAvailable(\n BluetoothReader bluetoothReader,\n final int cardStatus, final int errorCode) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (errorCode != BluetoothReader.ERROR_SUCCESS) {\n mTxtSlotStatus\n .setText(getErrorString(errorCode));\n } else {\n mTxtSlotStatus\n .setText(getCardStatusString(cardStatus));\n }\n }\n });\n }\n\n });\n\n mBluetoothReader2\n .setOnEnableNotificationCompleteListener(new OnEnableNotificationCompleteListener() {\n\n @Override\n public void onEnableNotificationComplete(\n BluetoothReader bluetoothReader, final int result) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (result != BluetoothGatt.GATT_SUCCESS) {\n /* Fail */\n Toast.makeText(\n ReaderActivity.this,\n \"The device is unable to set notification!\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(ReaderActivity.this,\n \"The device is ready to use!\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n\n });\n }", "@Override\n public void onBeaconServiceConnect() {\n beaconManager.addRangeNotifier(new RangeNotifier() {\n @Override\n public void didRangeBeaconsInRegion(Collection<Beacon> beacons,Region region) {\n Log.i(\"beacon\",\"Beacon Size:\"+beacons.size());\n Log.i(\"beaconManager\",\"beaconRanging\");\n if (beacons.size() > 0) {\n Iterator<Beacon> beaconIterator = beacons.iterator();\n while (beaconIterator.hasNext()) {\n Beacon beacon = beaconIterator.next();\n logBeaconData(LBD.Find_Loc(beacon,2));\n }\n }\n }\n\n });\n try {\n beaconManager.startRangingBeaconsInRegion(new Region(\"myRangingUniqueId\",\n null, null, null));\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n }", "public static Pair<List<Attribute>, Attribute> read(BufferedReader br) throws IOException {\n\t\tList<Attribute> attributes = new ArrayList<Attribute>();\n\t\tAttribute targetAtt = null;\n\t\tSet<String> usedNames = new HashSet<>();\n\t\tfor (int i = 0;; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tif (line == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tAttribute att = null;\n\t\t\tif (line.indexOf(\"binned\") != -1) {\n\t\t\t\tatt = BinnedAttribute.parse(line);\n\t\t\t} else if (line.indexOf(\"{\") != -1) {\n\t\t\t\tatt = NominalAttribute.parse(line);\n\t\t\t} else {\n\t\t\t\tatt = NumericalAttribute.parse(line);\n\t\t\t}\n\t\t\tatt.setIndex(i);\n\t\t\tif (line.indexOf(\" (target)\") != -1) {\n\t\t\t\ttargetAtt = att;\n\t\t\t\ti--;\n\t\t\t} else {\n\t\t\t\tif (usedNames.contains(att.getName())) {\n\t\t\t\t\tthrow new RuntimeException(\"Duplicate attribute name: \" + att.getName());\n\t\t\t\t}\n\t\t\t\tusedNames.add(att.getName());\n\t\t\t\tattributes.add(att);\n\t\t\t}\n\t\t\tif (line.indexOf(\" (x)\") != -1) {\n\t\t\t\tatt.setIndex(-1);\n\t\t\t}\n\t\t}\n\n\t\treturn new Pair<List<Attribute>, Attribute>(attributes, targetAtt);\n\t}", "private void setupBLEScan() {\n if (Build.VERSION.SDK_INT >= 21) {//LOLLIPOP\n mLEScanner = mBluetoothAdapter.getBluetoothLeScanner();\n scanSettings = new ScanSettings.Builder()\n .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)\n .build();\n filters = new ArrayList<ScanFilter>();\n ScanFilter.Builder mBuilder = new ScanFilter.Builder();\n ByteBuffer mManufacturerData = ByteBuffer.allocate(23);\n ByteBuffer mManufacturerDataMask = ByteBuffer.allocate(24);\n byte[] uuid = getIdAsByte(UUID.fromString(\"B9407F30-F5F8-466E-AFF9-25556B575555\"));\n mManufacturerData.put(0, (byte) 0xBE);\n mManufacturerData.put(1, (byte) 0xAC);\n for (int i = 2; i <= 17; i++) {\n mManufacturerData.put(i, uuid[i - 2]);\n }\n for (int i = 0; i <= 17; i++) {\n mManufacturerDataMask.put((byte) 0x01);\n }\n mBuilder.setManufacturerData(76, mManufacturerData.array(), mManufacturerDataMask.array());\n ScanFilter mScanFilter = mBuilder.build();\n //TODO\n //filters.add(mScanFilter);\n\n }\n }", "private void checkReadings(final List<? extends ReadingLocated<P>> readings) {\n mNumRangingReadings = mNumRssiReadings = 0;\n\n if (readings == null) {\n return;\n }\n\n for (final ReadingLocated<P> reading : readings) {\n if (reading instanceof RangingReadingLocated) {\n mNumRangingReadings++;\n\n } else if (reading instanceof RssiReadingLocated) {\n mNumRssiReadings++;\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n mNumRangingReadings++;\n mNumRssiReadings++;\n }\n }\n\n mRssiPositionEnabled = mNumRangingReadings < getMinRangingReadings();\n }", "public LFSR(String seed, int tap) {\n lfsr1 = seed + 'z'; // 'z' to signal end of bits\n currentIndex = lfsr1.length() - tap - 1;\n }", "public void readSensor() {\n try {\n Log.i(TAG, \"trying to read from sensors\");\n distance = this.bufferedReader.readLine();\n // if (distance != null && distance != \"0\") {\n Log.i(TAG, distance);\n\n // MainActivity.distance.setText(distance);\n Log.i(TAG, \"done with sensors\");\n //setBackgroundColor(Integer.parseInt(distance));\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private ArrayList<Read> makeReadList() {\r\n\t\tArrayList<Read> rlist=makeReadList2();\r\n\t\tif(mateStream!=null){\r\n\t\t\tListNum<Read> matesln=mateStream.nextList();\r\n\t\t\tArrayList<Read> mates=matesln.list;\r\n\t\t\tif(rlist!=null && mates!=null){\r\n\t\t\t\tint max=Tools.min(rlist.size(), mates.size());\r\n\t\t\t\tfor(int i=0; i<max; i++){\r\n\t\t\t\t\tRead a=rlist.get(i);\r\n\t\t\t\t\tRead b=mates.get(i);\r\n\t\t\t\t\ta.mate=b;\r\n\t\t\t\t\tb.mate=a;\r\n\t\t\t\t\tb.setPairnum(1);\r\n\t\t\t\t}\r\n\t\t\t\tmates.clear();\r\n\t\t\t\tmateStream.returnList(matesln, false);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rlist;\r\n\t}", "private void initBLESetup() {\n // Initializes Bluetooth adapter.\n final BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n //Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app.\n //Obtaining dynamic permissions from the user\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { //23\n if (this.checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"This app needs location access.\");\n builder.setMessage(\"Please grant location access to this app.\");\n builder.setPositiveButton(android.R.string.ok, null);\n builder.setOnDismissListener(new DialogInterface.OnDismissListener() {\n public void onDismiss(DialogInterface dialog) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION}, PERMISSION_REQUEST_COARSE_LOCATION);\n }\n\n });// See onRequestPermissionsResult callback method for negative behavior\n builder.show();\n }\n }\n // Create callback methods\n if (Build.VERSION.SDK_INT >= 21) //LOLLIPOP\n newerVersionScanCallback = new ScanCallback() {\n @Override\n public void onScanResult(int callbackType, ScanResult result) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n BluetoothDevice btDevice = result.getDevice();\n ScanRecord mScanRecord = result.getScanRecord();\n int rssi = result.getRssi();\n// Log.i(TAG, \"Address: \"+ btDevice.getAddress());\n// Log.i(TAG, \"TX Power Level: \" + result.getScanRecord().getTxPowerLevel());\n// Log.i(TAG, \"RSSI in DBm: \" + rssi);\n// Log.i(TAG, \"Manufacturer data: \"+ mScanRecord.getManufacturerSpecificData());\n// Log.i(TAG, \"device name: \"+ mScanRecord.getDeviceName());\n// Log.i(TAG, \"Advertise flag: \"+ mScanRecord.getAdvertiseFlags());\n// Log.i(TAG, \"service uuids: \"+ mScanRecord.getServiceUuids());\n// Log.i(TAG, \"Service data: \"+ mScanRecord.getServiceData());\n byte[] recordBytes = mScanRecord.getBytes();\n\n iBeacon ib = parseBLERecord(recordBytes);\n\n if (ib != null) {\n setLog(ib.getUuid(), ib.getMajor(), ib.getMinor(), rssi);\n\n }\n }\n }\n\n @Override\n public void onScanFailed(int errorCode) {\n Log.e(\"Scan Failed\", \"Error Code: \" + errorCode);\n }\n };\n else\n olderVersionScanCallback =\n new BluetoothAdapter.LeScanCallback() {\n @Override\n public void onLeScan(final BluetoothDevice device, final int rssi,\n final byte[] scanRecord) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.i(\"onLeScan\", device.toString());\n\n iBeacon ib = parseBLERecord(scanRecord);\n\n if (ib != null) {\n setLog(ib.getUuid(), ib.getMajor(), ib.getMinor(), rssi);\n\n }\n }\n });\n }\n };\n }", "protected OcapLocator createIBDetailsChannelLocator(final int frequency, final int programNumber)\n throws InvalidLocatorException\n {\n OcapLocator locator = null;\n\n if (programNumber == 0xFFFF)\n { // analog channel\n locator = new OcapLocator(frequency, programNumber, 0xFF);\n }\n else\n { // digital channel\n Transport[] transports = SIManager.createInstance().getTransports();\n for (int t = 0; locator == null && t < transports.length; ++t)\n {\n try\n {\n TransportStream[] streams = ((TransportExt) transports[t]).getTransportStreams();\n for (int s = 0; locator == null && s < streams.length; ++s)\n {\n TransportStreamExt stream = (TransportStreamExt) streams[s];\n if (frequency == stream.getFrequency())\n {\n locator = new OcapLocator(frequency, programNumber, stream.getModulationFormat());\n }\n }\n }\n catch (InterruptedException e)\n {\n SystemEventUtil.logRecoverableError(e);\n continue; // with next transport\n }\n catch (SIRequestException e)\n {\n SystemEventUtil.logRecoverableError(e);\n continue; // with next transport\n }\n }\n }\n\n return locator;\n }", "public Reading(Date read_at, int glucose_value, int code_no, int type, String serialNumber) {\n \tmRead_at = read_at;\n \tmGlucose_value = glucose_value;\n \tmCode_no = code_no;\n \tmType = type;\n \tmSerialNumber = serialNumber;\n }", "@Override\n public void onLeScan(final BluetoothDevice device, int rssi, byte[] scanRecord) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mLeDeviceListAdapter.addDevice(device);\n mLeDeviceListAdapter.notifyDataSetChanged();\n }\n });\n }", "@Override\n\tpublic Receive createReceive() {\n\t\treturn receiveBuilder()\n\t\t\t\t.match(RequestTrackDevice.class, this::onTrackDevice)\n\t\t\t\t.match(Terminated.class, this::onTerminate)\n\t\t\t\t.match(RequestDeviceList.class, this::onDeviceList)\n\t\t\t\t.match(RequestAllTemperatures.class, this::onAllTemperatures)\n\t\t\t\t.build();\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n\n MainActivity activity = (MainActivity) context;\n\n\n String action = intent.getAction();\n if (BluetoothDevice.ACTION_FOUND.equals(action));\n {\n\n Log.d(\"receive\",\"action found\");\n try {\n\n // rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE);\n\n\n BluetoothDevice bluetoothDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n Short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI,Short.MIN_VALUE);\n\n activity.setDisciveredDevice(bluetoothDevice,rssi);\n\n Log.d(\"receive\", \" Name = \"+bluetoothDevice.getName() );\n Log.d(\"receive\", \" Address = \"+bluetoothDevice.getAddress() );\n\n Toast.makeText(context,\"action found\",Toast.LENGTH_SHORT).show();\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n }\n\n }", "public com.vodafone.global.er.decoupling.binding.request.RatingAttributesType createRatingAttributesType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.RatingAttributesTypeImpl();\n }", "private SensorReading extractReading(String line) {\n\t\tList<Integer> tempArray = new ArrayList<Integer>();\n\t\tString[] sr = line.split(\",\");\n\t\tfor(int i=0; i<sr.length; i++) {\n\t\t\tint num = Integer.MIN_VALUE;\n\t\t\ttry {\n\t\t\t\tnum = Integer.parseInt(sr[i]);\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\t// if num is not integer, skip the current line\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttempArray.add(num);\n\t\t}\t\t\t\n\t\tif(tempArray.size() == sr.length) {\n\t\t\treturn new SensorReading(tempArray, zeroValues);\n\t\t}\n\t\treturn null;\n\t}", "int rawDataCreateDownSampleLevelNumber();", "public void createRatingRange() {\n final CharSequence[] ratingRange = {\"0~1\", \"1~2\", \"2~3\", \"3~4\", \"4~5\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Rating Range\");\n builder.setItems(ratingRange, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String type = (String) ratingRange[which];\n if (type.equals(\"0~1\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n } else if (type.equals(\"1~2\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n } else if (type.equals(\"2~3\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n } else if (type.equals(\"3~4\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n } else if (type.equals(\"4~5\")) {\n restList.clear();\n restList = rDB.GetRestaurants(null, null, null);\n mAdapter.clear();\n mAdapter.addAll(restList);\n mAdapter.notifyDataSetChanged();\n }\n\n\n System.out.println(ratingRange[which]);\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.create();\n\n builder.show();\n\n\n }", "public int readDistance() {\r\n\t\tint newDistance=0;\r\n\t\tint filterCount = 0;\r\n\t\twhile(filterCount<US_FILTER) {\r\n\t\t\tus.fetchSample(usData, 0); // acquire data\r\n\t\t\tnewDistance=(int) (usData[0] * 100.0);// extract from buffer, cast to int and add to total\r\n\t\t\t\r\n\t\t\tif(newDistance<=distance+US_ERROR && newDistance>=distance-US_ERROR) {\r\n\t\t\t\tfilterCount++;\r\n\t\t\t}else {\r\n\t\t\t\tfilterCount=0;\r\n\t\t\t}\r\n\t\t\tdistance=newDistance;\r\n\t\t}\r\n\t\treturn distance; \r\n\t}", "Read createRead();", "public static void main(String args[]) throws Exception {\n\t\t//set new RFID\n\t\treadRFID rf1 = new readRFID(RFIDNum[1]);\n\t\trf1.setOnOff(false);\n\t\treadRFID rf2 = new readRFID(RFIDNum[2]);\n\t\trf2.setOnOff(false);\n\t\treadRFID rf3 = new readRFID(RFIDNum[3]);\n\t\trf3.setOnOff(false);\n\t\treadRFID rf4 = new readRFID(RFIDNum[4]);\n\t\trf4.setOnOff(false);\n\t\treadRFID rf5 = new readRFID(RFIDNum[5]);\n\t\trf5.setOnOff(false);\n\n\t\tThread.sleep(1000);\n\t\twhile(true) {\n\t\t\tSystem.out.println(rf1.getTag());\n\t\t\tSystem.out.println(rf2.getTag());\n\t\t\tSystem.out.println(rf3.getTag());\n\t\t\tSystem.out.println(rf4.getTag());\n\t\t\tSystem.out.println(rf5.getTag());\n\t\t}\n\n\t}", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "public void addReading(Reading newReading) {\n\t\tint i = 0;\n\t\t\n\t\twhile (_readings[i] != null) {\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t_readings[i] = newReading;\n\t}", "@Nullable\n public static BLEResult createReadRemoteRssiTask(@NonNull BLEConnection bleConnection\n , long taskTimeout\n , long bleTimeout\n , @Nullable Bundle argument\n , boolean isBroadcast) {\n BLEResult bleResult = null;\n if (bleConnection.isConnected()) {\n BLESyncConnection bleSyncConnection = new BLESyncConnection();\n bleSyncConnection.mBLEConnection = bleConnection;\n bleResult = bleSyncConnection.createReadRemoteRssiTask(taskTimeout, bleTimeout, argument, isBroadcast);\n }\n return bleResult;\n }", "private Pair<List<Genotype>, GenotypeLocusData> createCalls(RefMetaDataTracker tracker, char ref, HashMap<String, AlignmentContextBySample> contexts, GenomeLoc loc) {\n int indexOfMax = 0;\n char baseOfMax = ref;\n double maxConfidence = Double.MIN_VALUE;\n for ( char altAllele : BaseUtils.BASES ) {\n if ( altAllele != ref ) {\n int baseIndex = BaseUtils.simpleBaseToBaseIndex(altAllele);\n if ( PofFs[baseIndex] > maxConfidence ) {\n indexOfMax = baseIndex;\n baseOfMax = altAllele;\n maxConfidence = PofFs[baseIndex];\n }\n }\n }\n \n double phredScaledConfidence = -10.0 * Math.log10(alleleFrequencyPosteriors[indexOfMax][0]);\n \n // return a null call if we don't pass the confidence cutoff\n if ( !ALL_BASE_MODE && phredScaledConfidence < CONFIDENCE_THRESHOLD )\n return new Pair<List<Genotype>, GenotypeLocusData>(null, null);\n \n ArrayList<Genotype> calls = new ArrayList<Genotype>();\n \n // first, populate the sample-specific data\n for ( String sample : GLs.keySet() ) {\n \n // create the call\n AlignmentContext context = contexts.get(sample).getContext(StratifiedContext.OVERALL);\n Genotype call = GenotypeWriterFactory.createSupportedCall(OUTPUT_FORMAT, ref, context.getLocation());\n \n if ( call instanceof ReadBacked ) {\n ((ReadBacked)call).setReads(context.getReads());\n }\n if ( call instanceof SampleBacked ) {\n ((SampleBacked)call).setSampleName(sample);\n }\n if ( call instanceof LikelihoodsBacked ) {\n ((LikelihoodsBacked)call).setLikelihoods(GLs.get(sample).getLikelihoods());\n }\n if ( call instanceof PosteriorsBacked ) {\n ((PosteriorsBacked)call).setPosteriors(GLs.get(sample).getPosteriors());\n }\n \n calls.add(call);\n }\n \n // next, the general locus data\n // note that calculating strand bias involves overwriting data structures, so we do that last\n GenotypeLocusData locusdata = GenotypeWriterFactory.createSupportedGenotypeLocusData(OUTPUT_FORMAT, ref, loc);\n if ( locusdata != null ) {\n if ( locusdata instanceof ConfidenceBacked ) {\n ((ConfidenceBacked)locusdata).setConfidence(phredScaledConfidence);\n }\n if ( locusdata instanceof AlleleFrequencyBacked ) {\n int bestAFguess = findMaxEntry(alleleFrequencyPosteriors[indexOfMax]).second;\n ((AlleleFrequencyBacked)locusdata).setAlleleFrequency((double)bestAFguess / (double)(frequencyEstimationPoints-1));\n AlleleFrequencyBacked.AlleleFrequencyRange range = computeAFrange(alleleFrequencyPosteriors[indexOfMax], frequencyEstimationPoints-1, bestAFguess, ALLELE_FREQUENCY_RANGE);\n ((AlleleFrequencyBacked)locusdata).setAlleleFrequencyRange(range);\n }\n if ( locusdata instanceof IDBacked ) {\n rodDbSNP dbsnp = getDbSNP(tracker);\n if ( dbsnp != null )\n ((IDBacked)locusdata).setID(dbsnp.getRS_ID());\n }\n if ( locusdata instanceof ArbitraryFieldsBacked) {\n ArrayList<Double> refBalances = new ArrayList<Double>();\n ArrayList<Double> onOffBalances = new ArrayList<Double>();\n ArrayList<Double> weights = new ArrayList<Double>();\n \n // accumulate ratios and weights\n for ( java.util.Map.Entry<String, GenotypeLikelihoods> entry : GLs.entrySet() ) {\n // determine the best genotype\n Integer sorted[] = Utils.SortPermutation(entry.getValue().getPosteriors());\n DiploidGenotype bestGenotype = DiploidGenotype.values()[sorted[DiploidGenotype.values().length - 1]];\n \n // we care only about het calls\n if ( bestGenotype.isHetRef(ref) ) {\n \n // make sure the alt base is our target alt\n char altBase = bestGenotype.base1 != ref ? bestGenotype.base1 : bestGenotype.base2;\n if ( altBase != baseOfMax )\n continue;\n \n // get the base counts at this pileup (minus deletions)\n ReadBackedPileup pileup = new ReadBackedPileup(ref, contexts.get(entry.getKey()).getContext(StratifiedContext.OVERALL));\n int[] counts = pileup.getBasePileupAsCounts();\n int refCount = counts[BaseUtils.simpleBaseToBaseIndex(ref)];\n int altCount = counts[BaseUtils.simpleBaseToBaseIndex(altBase)];\n int totalCount = 0;\n for (int i = 0; i < counts.length; i++)\n totalCount += counts[i];\n \n // add the entries\n weights.add(entry.getValue().getNormalizedPosteriors()[bestGenotype.ordinal()]);\n refBalances.add((double)refCount / (double)(refCount + altCount));\n onOffBalances.add((double)(refCount + altCount) / (double)totalCount);\n }\n }\n \n if ( weights.size() > 0 ) {\n // normalize the weights\n double sum = 0.0;\n for (int i = 0; i < weights.size(); i++)\n sum += weights.get(i);\n for (int i = 0; i < weights.size(); i++)\n weights.set(i, weights.get(i) / sum);\n \n // calculate total weighted ratios\n double normalizedRefRatio = 0.0;\n double normalizedOnOffRatio = 0.0;\n for (int i = 0; i < weights.size(); i++) {\n normalizedRefRatio += weights.get(i) * refBalances.get(i);\n normalizedOnOffRatio += weights.get(i) * onOffBalances.get(i);\n }\n \n HashMap<String, String> fields = new HashMap<String, String>();\n fields.put(\"AB\", String.format(\"%.2f\", normalizedRefRatio));\n fields.put(\"OO\", String.format(\"%.2f\", normalizedOnOffRatio));\n ((ArbitraryFieldsBacked)locusdata).setFields(fields);\n }\n }\n if ( locusdata instanceof SLODBacked ) {\n // the overall lod\n double overallLog10PofNull = Math.log10(alleleFrequencyPosteriors[indexOfMax][0]);\n double overallLog10PofF = Math.log10(PofFs[indexOfMax]);\n double lod = overallLog10PofF - overallLog10PofNull;\n \n // the forward lod\n initializeGenotypeLikelihoods(ref, contexts, StratifiedContext.FORWARD);\n calculateAlleleFrequencyPosteriors(ref, null);\n double forwardLog10PofNull = Math.log10(alleleFrequencyPosteriors[indexOfMax][0]);\n double forwardLog10PofF = Math.log10(PofFs[indexOfMax]);\n \n // the reverse lod\n initializeGenotypeLikelihoods(ref, contexts, StratifiedContext.REVERSE);\n calculateAlleleFrequencyPosteriors(ref, null);\n double reverseLog10PofNull = Math.log10(alleleFrequencyPosteriors[indexOfMax][0]);\n double reverseLog10PofF = Math.log10(PofFs[indexOfMax]);\n \n double forwardLod = forwardLog10PofF + reverseLog10PofNull - overallLog10PofNull;\n double reverseLod = reverseLog10PofF + forwardLog10PofNull - overallLog10PofNull;\n //logger.debug(\"forward lod=\" + forwardLod + \", reverse lod=\" + reverseLod);\n \n // strand score is max bias between forward and reverse strands\n double strandScore = Math.max(forwardLod - lod, reverseLod - lod);\n // rescale by a factor of 10\n strandScore *= 10.0;\n //logger.debug(String.format(\"SLOD=%f\", strandScore));\n \n ((SLODBacked)locusdata).setSLOD(strandScore);\n }\n }\n \n return new Pair<List<Genotype>, GenotypeLocusData>(calls, locusdata);\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "@Override\n\t\tpublic void onSignalStrengthsChanged(SignalStrength signalStrength) {\n\t\t\tint NewCellId = 0;\n\t\t\tint NewLacId = 0;\n\t\t\tLocation mLocation;\n\n\t\t\tString outputText = \"\\n\";\n\n\t\t\t/*\n\t\t\t * a try enclosure is necessary as an exception is thrown inside if\n\t\t\t * the network is currently not available.\n\t\t\t */\n\t\t\ttry {\n\t\t\t\t// outputText = \"Software Version: v20\\r\\n\";\n\n\t\t\t\t// if (outputDebugInfo == true) outputText +=\n\t\t\t\t// \"Debug Mode Activated\\r\\n\";\n\n\t\t\t\toutputText += \"\\r\\n\";\n\n\t\t\t\t/*\n\t\t\t\t * output signal strength value directly on canvas of the main\n\t\t\t\t * activity\n\t\t\t\t */\n\t\t\t\tNumberOfSignalStrengthUpdates += 1;\n\t\t\t\t//outputText += \"Number of updates: \"\n\t\t\t\t\t//\t+ String.valueOf(NumberOfSignalStrengthUpdates)\n\t\t\t\t\t\t//+ \"\\r\\n\\r\\n\";\n\n\t\t\t\toutputText += \"Network Operator: \" + Tel.getNetworkOperator()\n\t\t\t\t\t\t+ \" \" + Tel.getNetworkOperatorName() + \"\\r\\n\";\n\t\t\t\toutputText += \"Network Type: \"\n\t\t\t\t\t\t+ String.valueOf(Tel.getNetworkType()) + \"\\r\\n\\r\\n\";\n\n\t\t\t\toutputText = outputText\n\t\t\t\t\t\t+ \"Signal Strength: \"\n\t\t\t\t\t\t+ String.valueOf(-113\n\t\t\t\t\t\t\t\t+ (2 * signalStrength.getGsmSignalStrength()))\n\t\t\t\t\t\t+ \" dBm\\r\\n\\r\\n\";\n\n\t\t\t\tGsmCellLocation myLocation = null;\n\t\t\t\twhile (myLocation == null)\n\t\t\t\t\tmyLocation = (GsmCellLocation) Tel.getCellLocation();\n\t\t\t\tint signalstr = -113\n\t\t\t\t\t\t+ (2 * signalStrength.getGsmSignalStrength());\n\t\t\t\tif (myLocation != null) {\n\t\t\t\t\tNewCellId = myLocation.getCid();\n\t\t\t\t} else\n\t\t\t\t\tNewCellId = 0;\n\t\t\t\toutputText += \"Cell ID: \" + String.valueOf(NewCellId) + \"\\r\\n\";\n\n\t\t\t\tif (myLocation != null) {\n\t\t\t\t\tNewLacId = myLocation.getLac();\n\t\t\t\t} else\n\t\t\t\t\tNewLacId = 0;\n\t\t\t\t//outputText += \"LAC: \" + String.valueOf(NewLacId) + \"\\r\\n\\r\\n\";\n\n\t\t\t\t/*\n\t\t\t\t * Check if the current cell has changed and increase counter if\n\t\t\t\t * necessary\n\t\t\t\t */\n\t\t\t\tif (NewCellId != LastCellId) {\n\t\t\t\t\tNumberOfCellChanges += 1;\n\t\t\t\t\tLastCellId = NewCellId;\n\t\t\t\t}\n\n\t\t\t\tboolean IsCellInArray = false;\n\n\t\t\t\tfor (int x = 0; x < PreviousCells.length; x++) {\n\t\t\t\t\tif (PreviousCells[x] == NewCellId) {\n\t\t\t\t\t\tIsCellInArray = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* if the cell change was unique */\n\t\t\t\tif (IsCellInArray == false) {\n\t\t\t\t\t/*\n\t\t\t\t\t * increase unique cell change counter and save cell id in\n\t\t\t\t\t * array at current index\n\t\t\t\t\t */\n\t\t\t\t\tNumberOfUniqueCellChanges++;\n\t\t\t\t\tPreviousCells[PreviousCellsIndex] = NewCellId;\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Increase index and wrap back to 0 in case it is at the\n\t\t\t\t\t * end of the array\n\t\t\t\t\t */\n\t\t\t\t\tPreviousCellsIndex++;\n\t\t\t\t\tif (PreviousCellsIndex == PreviousCells.length)\n\t\t\t\t\t\tPreviousCellsIndex = 0;\n\t\t\t\t} /* else: do not increase the counter */\n\n\t\t\t\t//outputText += \"Number of Unique Cell Changes: \"\n\t\t\t\t\t\t//+ String.valueOf(NumberOfUniqueCellChanges) + \"\\r\\n\";\n\n\t\t\t\t/*\n\t\t\t\t * Check if the current LAC has changed and increase counter if\n\t\t\t\t * necessary\n\t\t\t\t */\n\t\t\t\tif (NewLacId != LastLacId) {\n\t\t\t\t\tNumberOfLacChanges += 1;\n\t\t\t\t\tLastLacId = NewLacId;\n\t\t\t\t}\n\t\t\t\t//outputText += \"Number of LAC Changes: \"\n\t\t\t\t\t\t//+ String.valueOf(NumberOfLacChanges) + \"\\r\\n\\r\\n\";\n\n\t\t\t\t/* Neighbor Cell Stuff */\n\t\t\t\tList<NeighboringCellInfo> nbcell = Tel.getNeighboringCellInfo();\n\t\t\t\toutputText += \"Current Neighbors with their RSS values: \"\n\t\t\t\t\t\t+ String.valueOf(nbcell.size()) + \"\\r\\n\";\n\t\t\t\tIterator<NeighboringCellInfo> it = nbcell.iterator();\n\t\t\t\t// Iterator<NeighboringCellInfo> it1 =nbcell.iterator();\n\t\t\t\tint cid1[] = { 0, 0, 0, 0, 0, 0 }, rssi1[] = { 0, 0, 0, 0, 0, 0 }, i = 0;\n\t\t\t\twhile (it.hasNext()) {\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tNeighboringCellInfo it1 = it.next();\n\t\t\t\t\t\n\t\t\t\t\tcid1[i] = it1.getCid();\n\t\t\t\t\tform.close();\n\t\t\t\t\tform = new Formatter();\n\t\t\t\t\toutputText += (form.format(\"%05d \",cid1[i]).toString());\n\t\t\t\t\toutputText += String.valueOf((rssi1[i] = -113\n\t\t\t\t\t\t\t+ (2 * it1.getRssi())))\n\t\t\t\t\t\t\t+ \" dBm\\n\";\n\t\t\t\t\tFileWriteBufferStr += String.valueOf(cid1[i]) + \", \";\n\t\t\t\t\tFileWriteBufferStr += String.valueOf(rssi1[i]) + \", \";\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\tString dt = DateFormat.getDateInstance().format(new Date())\n\t\t\t\t\t\t+ \", \";\n\t\t\t\tString tm = DateFormat.getTimeInstance().format(new Date());\n\n\t\t\t\t// ArrayList<Fingerprint>\n\t\t\t\t// if (userFingerprint == null)\n\t\t\t\t// userFingerprint = new ArrayList<Fingerprint>();\n\t\t\t\t//\n\t\t\t\tif (mode == UPDATE_DATABASE) {\n\t\t\t\t\tFingerprint f;\n\t\t\t\t\tmLocation = locationManager\n\t\t\t\t\t\t\t.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\n\t\t\t\t\t// Long l1=mLocation.getTime();\n\n\t\t\t\t\tif (mLocation != null)\n\t\t\t\t\t\tf = new Fingerprint(NewCellId, signalstr, cid1, rssi1,\n\t\t\t\t\t\t\t\tmLocation.getLatitude(),\n\t\t\t\t\t\t\t\tmLocation.getLongitude(), dt, tm);\n\n\t\t\t\t\telse\n\t\t\t\t\t\tf = new Fingerprint(NewCellId, signalstr, cid1, rssi1,\n\t\t\t\t\t\t\t\t0.0, 0.0, dt, tm);\n\n\t\t\t\t\td.AddFingerprint(f);\n\n\t\t\t\t}\n\n\t\t\t\telse\n\n\t\t\t\t{\n\t\t\t\t\t// f = new Fingerprint(NewCellId, signalstr , cid1 ,\n\t\t\t\t\t// rssi1,0.0,0.0,dt,tm) ;\n\t\t\t\t\tFingerprint f;\n\t\t\t\t\tf = new Fingerprint(NewCellId, signalstr, cid1, rssi1, 0.0,\n\t\t\t\t\t\t\t0.0, dt, tm);\n\t\t\t\t\t// userFingerprint.add(f);\n\t\t\t\t\tuserD.AddFingerprint(f);\n\t\t\t\t\tmLocation = locationManager\n\t\t\t\t\t\t\t.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\n\t\t\t\t\t// Long l1=mLocation.getTime();\n\n\t\t\t\t\tif (mLocation != null) {\n\t\t\t\t\t\tf.lat = mLocation.getLatitude();\n\t\t\t\t\t\tf.lon = mLocation.getLongitude();\n\n\t\t\t\t\t}\n\t\t\t\t\td.AddFingerprint(f);\n\n\t\t\t\t\tif (currentInterval == 0) {\n\t\t\t\t\t\tsaveDataToFile(\n\t\t\t\t\t\t\t\tFileWriteBufferStr,\n\t\t\t\t\t\t\t\t\"---in listener, \"\n\t\t\t\t\t\t\t\t\t\t+ DateFormat.getTimeInstance().format(\n\t\t\t\t\t\t\t\t\t\t\t\tnew Date()) + \"\\r\\n\",\n\t\t\t\t\t\t\t\tcellLogFilename);\n\t\t\t\t\t\tFileWriteBufferStr = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tcurrentInterval++;\n\n\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t.valueOf(\"\\nEntering user records .....\\nCurrent user record being entered = \");\n\t\t\t\t\tmatchOutputText += String.valueOf(currentInterval);\n\t\t\t\t\tif (currentInterval == DatabaseHelper.numIntervals) {\n\t\t\t\t\t\tcurrentInterval = currentInterval\n\t\t\t\t\t\t\t\t% DatabaseHelper.numIntervals;\n\t\t\t\t\t\td.Matchfingerprint(d.getLastNRecordsFromDatabase());\n\n\t\t\t\t\t\t// matchOutputText +=\n\t\t\t\t\t\t// String.valueOf(\"\\n Frequency match scores are:\");\n\t\t\t\t\t\t// for (int io =0 ; io< d.gridSquares.size(); io ++ )\n\t\t\t\t\t\t// { matchOutputText += String.valueOf(\"\\n GridID\") +\n\t\t\t\t\t\t// String.valueOf((Integer)(d.gridSquares.keySet().toArray()[io])+1)\n\t\t\t\t\t\t// + String.valueOf(\" = \") +\n\t\t\t\t\t\t// String.valueOf(d.gridSquares.get(d.gridSquares.keySet().toArray()[io]).frequencyMatchScore);\n\t\t\t\t\t\t// if (minFrequencyMatchScore >\n\t\t\t\t\t\t// d.gridSquares.get(d.gridSquares.keySet().toArray()[io]).frequencyMatchScore)\n\t\t\t\t\t\t// {\n\t\t\t\t\t\t// minFrequencyMatchScore =\n\t\t\t\t\t\t// d.gridSquares.get(d.gridSquares.keySet().toArray()[io]).frequencyMatchScore;\n\t\t\t\t\t\t// gridCellWithMinFrequencyMatchScore =\n\t\t\t\t\t\t// (Integer)d.gridSquares.keySet().toArray()[io] ;\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(\"\\n SignalStrength match scores are:\");\n\t\t\t\t\t\tfor (int io = 0; io < d.gridSquares.size(); io++) {\n\t\t\t\t\t\t\tmatchOutputText += String.valueOf(\"\\n GridID\")\n\t\t\t\t\t\t\t\t\t+ String.valueOf((Integer) (d.gridSquares\n\t\t\t\t\t\t\t\t\t\t\t.keySet().toArray()[io]) + 1)\n\t\t\t\t\t\t\t\t\t+ String.valueOf(\" = \")\n\t\t\t\t\t\t\t\t\t+ String.valueOf(d.gridSquares\n\t\t\t\t\t\t\t\t\t\t\t.get(d.gridSquares.keySet()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.toArray()[io]).signalStrengthMatchScore);\n\n\t\t\t\t\t\t\tif (minSignalStrengthMatchScore > d.gridSquares\n\t\t\t\t\t\t\t\t\t.get(d.gridSquares.keySet().toArray()[io]).signalStrengthMatchScore) {\n\n\t\t\t\t\t\t\t\tminSignalStrengthMatchScore = d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.get(d.gridSquares.keySet().toArray()[io]).signalStrengthMatchScore;\n\t\t\t\t\t\t\t\tgridCellWithMinSignalStrengthMatchScore = (Integer) d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.keySet().toArray()[io];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(\"\\n WeightedSignalStrength match scores are:\");\n\t\t\t\t\t\tfor (int io = 0; io < d.gridSquares.size(); io++) {\n\t\t\t\t\t\t\tmatchOutputText += String.valueOf(\"\\n GridID\")\n\t\t\t\t\t\t\t\t\t+ String.valueOf((Integer) (d.gridSquares\n\t\t\t\t\t\t\t\t\t\t\t.keySet().toArray()[io]) + 1)\n\t\t\t\t\t\t\t\t\t+ String.valueOf(\" = \")\n\t\t\t\t\t\t\t\t\t+ String.valueOf(d.gridSquares\n\t\t\t\t\t\t\t\t\t\t\t.get(d.gridSquares.keySet()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.toArray()[io]).weightedSignalStrengthMatchScore);\n\n\t\t\t\t\t\t\tif (minWeightedSignalStrengthMatchScore > d.gridSquares\n\t\t\t\t\t\t\t\t\t.get(d.gridSquares.keySet().toArray()[io]).weightedSignalStrengthMatchScore) {\n\n\t\t\t\t\t\t\t\tminWeightedSignalStrengthMatchScore = d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.get(d.gridSquares.keySet().toArray()[io]).weightedSignalStrengthMatchScore;\n\t\t\t\t\t\t\t\tgridCellWithMinWeightedSignalStrengthMatchScore = (Integer) d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.keySet().toArray()[io];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// matchOutputText +=\n\t\t\t\t\t\t// String.valueOf(\"\\nBest co ordinates with frequency = \");\n\t\t\t\t\t\t// matchOutputText += String.valueOf(\"Grid ID:\");\n\t\t\t\t\t\t// matchOutputText +=\n\t\t\t\t\t\t// String.valueOf(d.gridSquares.get(gridCellWithMinFrequencyMatchScore).gridID+1);\n\t\t\t\t\t\t// matchOutputText += String.valueOf(\"\\nLat : \");\n\t\t\t\t\t\t// matchOutputText +=\n\t\t\t\t\t\t// String.valueOf(d.gridSquares.get(gridCellWithMinFrequencyMatchScore).latitude);\n\t\t\t\t\t\t// matchOutputText += String.valueOf(\"Lon : \");\n\t\t\t\t\t\t// matchOutputText +=\n\t\t\t\t\t\t// String.valueOf(d.gridSquares.get(gridCellWithMinFrequencyMatchScore).longitude);\n\t\t\t\t\t\t//\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(\"\\nBest co ordinates with signal strength = \");\n\t\t\t\t\t\tmatchOutputText += String.valueOf(\"Grid ID:\");\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.get(gridCellWithMinSignalStrengthMatchScore).gridID + 1);\n\t\t\t\t\t\tmatchOutputText += String.valueOf(\"\\nLat : \");\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.get(gridCellWithMinSignalStrengthMatchScore).latitude);\n\t\t\t\t\t\tmatchOutputText += String.valueOf(\"Lon : \");\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.get(gridCellWithMinSignalStrengthMatchScore).longitude);\n\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(\"\\nBest co ordinates with weighted signal strength = \");\n\t\t\t\t\t\tmatchOutputText += String.valueOf(\"Grid ID:\");\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.get(gridCellWithMinWeightedSignalStrengthMatchScore).gridID + 1);\n\t\t\t\t\t\tmatchOutputText += String.valueOf(\"\\nLat : \");\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.get(gridCellWithMinWeightedSignalStrengthMatchScore).latitude);\n\t\t\t\t\t\tmatchOutputText += String.valueOf(\"Lon : \");\n\t\t\t\t\t\tmatchOutputText += String\n\t\t\t\t\t\t\t\t.valueOf(d.gridSquares\n\t\t\t\t\t\t\t\t\t\t.get(gridCellWithMinWeightedSignalStrengthMatchScore).longitude);\n\n\t\t\t\t\t\tbestMatchLatitudeE6 = (int) (d.gridSquares\n\t\t\t\t\t\t\t\t.get(gridCellWithMinWeightedSignalStrengthMatchScore).latitude * 1000000);\n\t\t\t\t\t\tbestMatchLongitudeE6 = (int) (d.gridSquares\n\t\t\t\t\t\t\t\t.get(gridCellWithMinWeightedSignalStrengthMatchScore).longitude * 1000000);\n\t\t\t\t\t\t// setContentView(R.layout.mapview1);\n\t\t\t\t\t\t// mapView = (MapView)findViewById(R.id.mapview);\n\t\t\t\t\t\t// mapView.getController().setCenter(new\n\t\t\t\t\t\t// GeoPoint(bestMatchLatitudeE6, bestMatchLongitudeE6));\n\t\t\t\t\t\t//\n\t\t\t\t\t\tsaveDataToFile(\n\t\t\t\t\t\t\t\tFileWriteBufferStr,\n\t\t\t\t\t\t\t\t\"---in listener, \"\n\t\t\t\t\t\t\t\t\t\t+ DateFormat.getTimeInstance().format(\n\t\t\t\t\t\t\t\t\t\t\t\tnew Date()) + \"\\r\\n\",\n\t\t\t\t\t\t\t\tuserLogFilename);\n\t\t\t\t\t\tsaveDataToFile(\n\t\t\t\t\t\t\t\tmatchOutputText,\n\t\t\t\t\t\t\t\t\"---in listener, \"\n\t\t\t\t\t\t\t\t\t\t+ DateFormat.getTimeInstance().format(\n\t\t\t\t\t\t\t\t\t\t\t\tnew Date()) + \"\\r\\n\",\n\t\t\t\t\t\t\t\tuserLogFilename);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * Write the information to a file, too This information is\n\t\t\t\t * first buffered in a string buffer and only written to the\n\t\t\t\t * file once enough data has accumulated\n\t\t\t\t */\n\t\t\t\tFileWriteBufferStr += String\n\t\t\t\t\t\t.valueOf(NumberOfSignalStrengthUpdates) + \", \";\n\t\t\t\tFileWriteBufferStr += DateFormat.getDateInstance().format(\n\t\t\t\t\t\tnew Date())\n\t\t\t\t\t\t+ \", \";\n\t\t\t\tFileWriteBufferStr += DateFormat.getTimeInstance().format(\n\t\t\t\t\t\tnew Date())\n\t\t\t\t\t\t+ \", \";\n\t\t\t\tFileWriteBufferStr += String.valueOf(NewLacId) + \", \";\n\t\t\t\tFileWriteBufferStr += String.valueOf(NewCellId) + \", \";\n\t\t\t\tFileWriteBufferStr += String.valueOf(-113\n\t\t\t\t\t\t+ (2 * signalStrength.getGsmSignalStrength()));\n\t\t\t\tFileWriteBufferStr += \"\\r\\n\";\n\n\t\t\t\t//outputText += \"File Buffer Length: \"\n\t\t\t\t\t//\t+ FileWriteBufferStr.length() + \"\\r\\n\";\n\n\t\t\t\tif (FileWriteBufferStr.length() >= MAX_FILE_BUFFER_SIZE) {\n\n\t\t\t\t\tsaveDataToFile(FileWriteBufferStr, \"---in listener, \"\n\t\t\t\t\t\t\t+ DateFormat.getTimeInstance().format(new Date())\n\t\t\t\t\t\t\t+ \"\\r\\n\", cellLogFilename);\n\t\t\t\t\tif (mode != UPDATE_DATABASE)\n\t\t\t\t\t\tsaveDataToFile(\n\t\t\t\t\t\t\t\tFileWriteBufferStr,\n\t\t\t\t\t\t\t\t\"---in listener, \"\n\t\t\t\t\t\t\t\t\t\t+ DateFormat.getTimeInstance().format(\n\t\t\t\t\t\t\t\t\t\t\t\tnew Date()) + \"\\r\\n\",\n\t\t\t\t\t\t\t\tuserLogFilename);\n\t\t\t\t\tFileWriteBufferStr = \"\";\n\t\t\t\t}\n\t\t\t\tif (mode == MATCH_FINGERPRINT) {\n\t\t\t\t\t// setContentView(R.layout.textview1);\n\t\t\t\t\t((TextView) findViewById(R.id.textView2))\n\t\t\t\t\t\t\t.setText(matchOutputText);\n\t\t\t\t}\n\n\t\t\t\tsuper.onSignalStrengthsChanged(signalStrength);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\toutputText = \"No network information available...\";\n\t\t\t}\n\n\t\t\toutText = outputText;\n\t\t\tif (isCurrentSamplePressed && mode != MATCH_FINGERPRINT) {\n\t\t\t\t// setContentView(R.layout.textview1);\n\t\t\t\t((TextView) findViewById(R.id.textView2)).setText(outText);\n\n\t\t\t}\n\n\t\t\telse {\n\n\t\t\t\tif(isCurrentSamplePressed==false)\n\t\t\t\t((TextView) findViewById(R.id.textView2))\n\t\t\t\t\t\t.setText(new String(\"Determining your current position\"));\n\t\t\t}\n\n\t\t}", "@Override\n public boolean areValidReadings(\n final List<? extends ReadingLocated<P>> readings) {\n if (readings == null) {\n return false;\n }\n\n checkReadings(readings);\n\n //if enough ranging data is available, we check validity both for ranging and RSSI readings\n return ((!mRssiPositionEnabled && mNumRangingReadings >= getMinRangingReadings() &&\n mNumRssiReadings >= getMinRssiReadings()) ||\n //if not enough ranging data is available, we check validity only for RSSI readings\n (mRssiPositionEnabled && mNumRssiReadings >= getMinRssiReadings()) ||\n //if only position is enabled, then only check for ranging readings\n (!mTransmittedPowerEstimationEnabled && !mPathLossEstimationEnabled &&\n mNumRangingReadings >= getMinRangingReadings())) &&\n //in both upper cases enough general readings must be available\n super.areValidReadings(readings);\n }", "public static FingerprintInformation parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n FingerprintInformation object =\n new FingerprintInformation();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"FingerprintInformation\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (FingerprintInformation)gov.gsa.hspd12.federated.enrollment.ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\"FteReasonCode\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setFteReasonCode(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\"PrimaryPrintIndicator\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setPrimaryPrintIndicator(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\"SecondaryPrintIndicator\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setSecondaryPrintIndicator(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\"FingerprintTemplate\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setFingerprintTemplate(null);\n reader.next();\n } else {\n \n object.setFingerprintTemplate(org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(reader));\n \n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://hspd12.gsa.gov/federated/enrollment\",\"NfiqScores\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setNfiqScores(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setNfiqScores(gov.gsa.hspd12.federated.enrollment.ArrayOfFingerprintScore.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "public MixedRadioSourceEstimator(\n final List<? extends ReadingLocated<P>> readings) {\n super(readings);\n }", "public static int calculateSignalLevel(int rssi, int numLevels) {\n if (rssi <= MIN_RSSI) {\n return 0;\n } else if (rssi >= MAX_RSSI) {\n return numLevels - 1;\n } else {\n float inputRange = (MAX_RSSI - MIN_RSSI);\n float outputRange = (numLevels - 1);\n return (int) ((float) (rssi - MIN_RSSI) * outputRange / inputRange);\n }\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName) throws org.apache.axis2.databinding.ADBException {\n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n if (localAnnouncesTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"announces\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAnnounces));\n }\n if (localAttenuatorTracker) {\n if (localAttenuator != null) {\n for (int i = 0; i < localAttenuator.length; i++) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"attenuator\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAttenuator[i]));\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"attenuator\"));\n elementList.add(null);\n }\n }\n if (localChannelListTracker) {\n if (localChannelList != null) {\n for (int i = 0; i < localChannelList.length; i++) {\n if (localChannelList[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\"));\n elementList.add(localChannelList[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\"));\n elementList.add(localChannelList);\n }\n }\n if (localFiltersTracker) {\n if (localFilters != null) {\n for (int i = 0; i < localFilters.length; i++) {\n if (localFilters[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\"));\n elementList.add(localFilters[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\"));\n elementList.add(localFilters);\n }\n }\n if (localHasGetFuncTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetFunc\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasGetFunc));\n }\n if (localHasGetLevelTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetLevel\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasGetLevel));\n }\n if (localHasGetParmTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetParm\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasGetParm));\n }\n if (localHasSetFuncTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetFunc\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasSetFunc));\n }\n if (localHasSetLevelTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetLevel\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasSetLevel));\n }\n if (localHasSetParmTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetParm\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasSetParm));\n }\n if (localItuRegionTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"ituRegion\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItuRegion));\n }\n if (localMaxIfShiftTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxIfShift\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxIfShift));\n }\n if (localMaxRITTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxRIT\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxRIT));\n }\n if (localMaxXITTracker) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxXIT\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxXIT));\n }\n if (localPreampTracker) {\n if (localPreamp != null) {\n for (int i = 0; i < localPreamp.length; i++) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"preamp\"));\n elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPreamp[i]));\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"preamp\"));\n elementList.add(null);\n }\n }\n if (localRxRangeListTracker) {\n if (localRxRangeList != null) {\n for (int i = 0; i < localRxRangeList.length; i++) {\n if (localRxRangeList[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\"));\n elementList.add(localRxRangeList[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\"));\n elementList.add(localRxRangeList);\n }\n }\n if (localTuningStepsTracker) {\n if (localTuningSteps != null) {\n for (int i = 0; i < localTuningSteps.length; i++) {\n if (localTuningSteps[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\"));\n elementList.add(localTuningSteps[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\"));\n elementList.add(localTuningSteps);\n }\n }\n if (localTxRangeListTracker) {\n if (localTxRangeList != null) {\n for (int i = 0; i < localTxRangeList.length; i++) {\n if (localTxRangeList[i] != null) {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\"));\n elementList.add(localTxRangeList[i]);\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\"));\n elementList.add(null);\n }\n }\n } else {\n elementList.add(new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\"));\n elementList.add(localTxRangeList);\n }\n }\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n }", "private LedgerEntry buildLedgerEntry( Account account, String[] tupule ) \n throws Exception {\n \n LedgerEntry entry = new LedgerEntry() ;\n entry.setAccount( account ) ;\n entry.setValueDate( new Date( VALUE_DT_SDF.parse( tupule[1] ).getTime() ) ) ;\n \n entry.setRemarks( tupule[2] ) ;\n \n Float withdrawalAmt = getFloatValue( tupule[4] ) ;\n Float depositAmt = getFloatValue( tupule[5] ) ;\n if( depositAmt > 0 ) {\n entry.setAmount( depositAmt ) ;\n }\n else if( withdrawalAmt > 0 ) {\n entry.setAmount( -withdrawalAmt ) ;\n }\n \n entry.setBalance( getFloatValue( tupule[6] ) ) ;\n entry.generateHash() ;\n \n return entry ;\n }", "@Override\n public void onReceive(BluetoothLeUart uart, BluetoothGattCharacteristic rx) {\n\n\n\n writeLine(\"Received: \" + rx.getStringValue(0));\n String data = rx.getStringValue(0);\n String delim = \"[,]\";\n final String[] tokens = data.split(delim);\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() { //Using the conversions in the Hardware README.\n TextView tempDoe = (TextView) findViewById(R.id.tempMonitor);\n TextView humid = (TextView) findViewById(R.id.humidMonitor);\n TextView noisePol = (TextView) findViewById(R.id.noisePolMonitor);\n TextView carMon = (TextView) findViewById(R.id.coMonitor);\n float value = new BigInteger(tokens[0], 16).longValue();\n //System.out.println(value);\n float temp = (value * 50) / 65535;\n //System.out.println(temp);\n double tempFah = temp * 1.8000 + 32.00;\n String tempFahStr = String.valueOf(tempFah);\n //System.out.println(tempFah);\n int humidity = (Integer.parseInt(tokens[1],16) * 100) / 65535;\n String humidityDoe = String.valueOf(humidity);\n double noiseLev = Integer.parseInt(tokens[2],16);\n noiseLev = 20*(Math.log10(noiseLev/1024));\n String noiseLevStr = String.valueOf(noiseLev);\n int methane = Integer.parseInt(tokens[3],16);\n String methaneStr = String.valueOf(methane);\n tempDoe.setText(tempFahStr);\n humid.setText(humidityDoe);\n noisePol.setText(noiseLevStr);\n carMon.setText(methaneStr);\n }\n });\n\n\n\n float value = new BigInteger(tokens[0], 16).longValue(); //Done twice because, well, time\n //System.out.println(value); //issues...\n float temp = (value * 50) / 65535;\n //System.out.println(temp);\n double tempFah = temp * 1.8000 + 32.00;\n //System.out.println(tempFah);\n int humidity = (Integer.parseInt(tokens[1],16) * 100) / 65535;\n double noiseLev = Integer.parseInt(tokens[2],16);\n noiseLev = 20*(Math.log10(noiseLev/1024));\n int methane = Integer.parseInt(tokens[3],16);\n\n\n\n System.out.println(tempFah + \" \" + humidity + \" \" + noiseLev + \" \" + methane);\n\n writeLine(\"Pushing to Parse...\");\n //Parse.initialize(this, /*YOUR APP ID*/, /*YOUR CLIENT ID*/);\n ParseObject dataStuff = new ParseObject(\"SensorData\");\n dataStuff.put(\"User\",\"UserName\");\n dataStuff.put(\"Latitude\",\"Latitude Information\");\n dataStuff.put(\"Longitude\",\"Longitude Information\");\n dataStuff.put(\"Temperature\",tempFah);\n dataStuff.put(\"Humidity\",humidity);\n dataStuff.put(\"NoiseLevel\",noiseLev);\n dataStuff.put(\"Methane\",methane);\n dataStuff.saveInBackground();\n writeLine(\"Finished pushing.\");\n writeLine(\"Temperature (F): \" + tempFah);\n writeLine(\"Humidity: \" + humidity);\n writeLine(\"Noise Level: \" + noiseLev);\n writeLine(\"Methane: \" + methane);\n writeLine(\"Sensor Data Collected and pushed!\");\n\n }", "@MavlinkFieldInfo(\n position = 14,\n unitSize = 1,\n description = \"Receive signal strength indicator in device-dependent units/scale. Values: [0-254], UINT8_MAX: invalid/unknown.\"\n )\n public final int rssi() {\n return this.rssi;\n }", "private LawnBoundaries createLawnBoudaries(String line) {\n\t\tLOGGER.info(\"Reads lawn boundaries as '{}'\", line);\n\t\tMatcher m = LAWN_DIMENSION_LINE_PATTERN.matcher(line);\n\t\tif (!m.matches()) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\tString.format(\"The line '%s' does not define a correct lawn's right superior corner!\", line));\n\t\t}\n\t\tint x = Integer.parseInt(m.group(1), 10);\n\t\tint y = Integer.parseInt(m.group(2), 10);\n\t\treturn new LawnBoundaries(new Position(x, y));\n\t}", "private void setLog(String uuid, int major, int minor, int rssi) {\n if(\"B9407F30-F5F8-466E-AFF9-25556B575555\".equalsIgnoreCase(uuid)){\n if (major == 1){\n if (minor == 1){ //beacon1\n beacon1RSSI = rssi;\n } else if (minor == 2){ //beacon2\n beacon2RSSI = rssi;\n }\n } else if (major == 2){\n if (minor == 1){ //beacon3\n beacon3RSSI = rssi;\n } else if (minor == 2){ //beacon4\n beacon4RSSI = rssi;\n }\n } else if (major == 3){\n if (minor == 1){ //beacon5\n beacon5RSSI = rssi;\n } else if (minor == 2){ //beacon6\n beacon6RSSI = rssi;\n }\n }\n }\n }", "public String LDR(int R,int IX,int I,int Address) {\n\t\t\tint EA=Get_EA(I,IX,Address);\r\n\t\t\tString Information;\r\n\t\t\tInformation=\"\";\r\n\t\t\tif(R==0){\r\n\t\t\t\tthis.R0.Insert(this.Memory.Output(EA), 0);\r\n\t\t\t\tInformation=Information+\"R0<-c(\"+EA+\").\\n\";\r\n\t\t\t\treturn Information;\r\n\t\t\t}\r\n\t\t\telse if(R==1) {\r\n\t\t\t\tthis.R1.Insert(this.Memory.Output(EA), 0);\r\n\t\t\t\tInformation=Information+\"R1<-c(\"+EA+\").\\n\";\r\n\t\t\t\treturn Information;\r\n\t\t\t}\r\n\t\t\telse if(R==2) {\r\n\t\t\t\tthis.R2.Insert(this.Memory.Output(EA), 0);\r\n\t\t\t\tInformation=Information+\"R2<-c(\"+EA+\").\\n\";\r\n\t\t\t\treturn Information;\r\n\t\t\t}\r\n\t\t\telse if(R==3) {\r\n\t\t\t\tthis.R3.Insert(this.Memory.Output(EA), 0);\r\n\t\t\t\tInformation=Information+\"R3<-c(\"+EA+\").\\n\";\r\n\t\t\t\treturn Information;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tInformation=\"Instruction LDR fail .\\n\";\r\n\t\t\t\treturn Information;//fault\r\n\t\t\t}\r\n\t\t}", "private static com.unboundid.ldap.sdk.Filter create(java.lang.String r30, int r31, int r32, int r33) {\n /*\n r1 = r30\n r0 = r31\n r2 = r32\n r3 = r33\n r4 = 50\n if (r3 > r4) goto L_0x0622\n if (r0 >= r2) goto L_0x0614\n char r4 = r30.charAt(r31)\n r5 = 41\n r6 = 40\n r7 = 2\n r8 = 0\n r9 = 1\n if (r4 != r6) goto L_0x0042\n char r4 = r1.charAt(r2)\n if (r4 != r5) goto L_0x0026\n int r4 = r0 + 1\n int r10 = r2 + -1\n goto L_0x0046\n L_0x0026:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_OPEN_WITHOUT_CLOSE\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n java.lang.Integer r0 = java.lang.Integer.valueOf(r32)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r1\n L_0x0042:\n if (r0 != 0) goto L_0x05fb\n r4 = r0\n r10 = r2\n L_0x0046:\n char r11 = r1.charAt(r4)\n r12 = 33\n r13 = -87\n if (r11 == r12) goto L_0x05ad\n r12 = 38\n if (r11 == r12) goto L_0x0599\n if (r11 == r6) goto L_0x0581\n r12 = 92\n r15 = 58\n r14 = 61\n if (r11 == r15) goto L_0x041b\n r5 = 124(0x7c, float:1.74E-43)\n if (r11 == r5) goto L_0x0408\n com.unboundid.ldap.sdk.Filter[] r3 = NO_FILTERS\n r5 = r4\n L_0x0065:\n if (r5 > r10) goto L_0x0161\n int r6 = r5 + 1\n char r5 = r1.charAt(r5)\n if (r5 == r15) goto L_0x015a\n r11 = 126(0x7e, float:1.77E-43)\n if (r5 == r11) goto L_0x0111\n switch(r5) {\n case 60: goto L_0x00c7;\n case 61: goto L_0x00c2;\n case 62: goto L_0x0078;\n default: goto L_0x0076;\n }\n L_0x0076:\n r5 = r6\n goto L_0x0065\n L_0x0078:\n r5 = -91\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x00ac\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x008b\n r5 = 1\n r6 = -91\n goto L_0x0165\n L_0x008b:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_GT\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x00ac:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_GT\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x00c2:\n int r11 = r6 + -1\n r15 = r6\n goto L_0x0163\n L_0x00c7:\n r5 = -90\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x00fb\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x00da\n r5 = 1\n r6 = -90\n goto L_0x0165\n L_0x00da:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_LT\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x00fb:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_LT\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0111:\n r5 = -88\n int r11 = r6 + -1\n if (r6 > r10) goto L_0x0144\n int r15 = r6 + 1\n char r6 = r1.charAt(r6)\n if (r6 != r14) goto L_0x0123\n r5 = 1\n r6 = -88\n goto L_0x0165\n L_0x0123:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_TILDE\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r8] = r0\n int r15 = r15 - r9\n char r0 = r1.charAt(r15)\n java.lang.Character r0 = java.lang.Character.valueOf(r0)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x0144:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_END_AFTER_TILDE\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x015a:\n int r11 = r6 + -1\n r15 = r6\n r5 = 1\n r6 = -87\n goto L_0x0165\n L_0x0161:\n r11 = -1\n r15 = r5\n L_0x0163:\n r5 = 0\n r6 = 0\n L_0x0165:\n if (r11 <= r4) goto L_0x03f0\n java.lang.String r4 = r1.substring(r4, r11)\n if (r5 == 0) goto L_0x0249\n if (r6 != r13) goto L_0x0249\n if (r15 > r10) goto L_0x0233\n int r11 = r15 + 1\n char r13 = r1.charAt(r15)\n if (r13 != r14) goto L_0x017c\n r15 = r11\n goto L_0x0249\n L_0x017c:\n int r13 = r11 + -1\n L_0x017e:\n if (r11 > r10) goto L_0x018c\n int r15 = r11 + 1\n char r11 = r1.charAt(r11)\n if (r11 != r14) goto L_0x018a\n r11 = 1\n goto L_0x018e\n L_0x018a:\n r11 = r15\n goto L_0x017e\n L_0x018c:\n r15 = r11\n r11 = 0\n L_0x018e:\n if (r11 == 0) goto L_0x021d\n int r11 = r15 + -1\n java.lang.String r11 = r1.substring(r13, r11)\n java.lang.String r13 = com.unboundid.util.StaticUtils.toLowerCase(r11)\n java.lang.String r14 = \":\"\n boolean r14 = r11.endsWith(r14)\n if (r14 == 0) goto L_0x0207\n java.lang.String r14 = \"dn:\"\n boolean r14 = r13.equals(r14)\n if (r14 == 0) goto L_0x01ad\n r11 = 1\n goto L_0x024a\n L_0x01ad:\n java.lang.String r14 = \"dn:\"\n boolean r13 = r13.startsWith(r14)\n if (r13 == 0) goto L_0x01df\n r13 = 3\n int r14 = r11.length()\n int r14 = r14 - r9\n java.lang.String r11 = r11.substring(r13, r14)\n int r13 = r11.length()\n if (r13 == 0) goto L_0x01c9\n r14 = r11\n r11 = 1\n goto L_0x024b\n L_0x01c9:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x01df:\n int r13 = r11.length()\n int r13 = r13 - r9\n java.lang.String r11 = r11.substring(r8, r13)\n int r13 = r11.length()\n if (r13 == 0) goto L_0x01f1\n r14 = r11\n r11 = 0\n goto L_0x024b\n L_0x01f1:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0207:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_CANNOT_PARSE_MRID\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x021d:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUALS\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0233:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUALS\n java.lang.Object[] r4 = new java.lang.Object[r9]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r8] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0249:\n r11 = 0\n L_0x024a:\n r14 = 0\n L_0x024b:\n r13 = -93\n if (r15 <= r10) goto L_0x0260\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n r7.<init>()\n if (r5 != 0) goto L_0x0257\n goto L_0x0258\n L_0x0257:\n r13 = r6\n L_0x0258:\n com.unboundid.asn1.ASN1OctetString[] r5 = NO_SUB_ANY\n r6 = r5\n L_0x025b:\n r5 = 0\n r16 = 0\n goto L_0x03da\n L_0x0260:\n if (r15 != r10) goto L_0x02d8\n if (r5 == 0) goto L_0x029a\n char r5 = r1.charAt(r15)\n if (r5 == r12) goto L_0x027a\n switch(r5) {\n case 40: goto L_0x027a;\n case 41: goto L_0x027a;\n case 42: goto L_0x027a;\n default: goto L_0x026d;\n }\n L_0x026d:\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n int r7 = r15 + 1\n java.lang.String r7 = r1.substring(r15, r7)\n r5.<init>((java.lang.String) r7)\n r13 = r6\n goto L_0x02b4\n L_0x027a:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_IN_AV\n java.lang.Object[] r5 = new java.lang.Object[r7]\n char r1 = r1.charAt(r15)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r5[r8] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x029a:\n char r5 = r1.charAt(r15)\n if (r5 == r12) goto L_0x02b8\n switch(r5) {\n case 40: goto L_0x02b8;\n case 41: goto L_0x02b8;\n case 42: goto L_0x02af;\n default: goto L_0x02a3;\n }\n L_0x02a3:\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n int r6 = r15 + 1\n java.lang.String r6 = r1.substring(r15, r6)\n r5.<init>((java.lang.String) r6)\n goto L_0x02b4\n L_0x02af:\n r6 = -121(0xffffffffffffff87, float:NaN)\n r5 = 0\n r13 = -121(0xffffffffffffff87, float:NaN)\n L_0x02b4:\n com.unboundid.asn1.ASN1OctetString[] r6 = NO_SUB_ANY\n r7 = r5\n goto L_0x025b\n L_0x02b8:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r4 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_IN_AV\n java.lang.Object[] r5 = new java.lang.Object[r7]\n char r1 = r1.charAt(r15)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r5[r8] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r9] = r0\n java.lang.String r0 = r4.get(r5)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x02d8:\n if (r5 != 0) goto L_0x02db\n goto L_0x02dc\n L_0x02db:\n r13 = r6\n L_0x02dc:\n java.util.ArrayList r6 = new java.util.ArrayList\n r6.<init>(r9)\n java.lang.StringBuilder r7 = new java.lang.StringBuilder\n int r16 = r10 - r15\n int r8 = r16 + 1\n r7.<init>(r8)\n r8 = r7\n r7 = r15\n r16 = 0\n L_0x02ee:\n if (r7 > r10) goto L_0x03aa\n int r9 = r7 + 1\n char r7 = r1.charAt(r7)\n if (r7 == r12) goto L_0x03a2\n switch(r7) {\n case 40: goto L_0x038a;\n case 41: goto L_0x0372;\n case 42: goto L_0x0301;\n default: goto L_0x02fb;\n }\n L_0x02fb:\n r8.append(r7)\n r7 = r9\n goto L_0x03a6\n L_0x0301:\n if (r5 != 0) goto L_0x035a\n int r7 = r9 + -1\n if (r7 != r15) goto L_0x0309\n r13 = 1\n goto L_0x0356\n L_0x0309:\n r7 = -92\n if (r13 != r7) goto L_0x0341\n int r7 = r8.length()\n if (r7 == 0) goto L_0x0329\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n r6.add(r7)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n int r7 = r10 - r9\n r13 = 1\n int r7 = r7 + r13\n r8.<init>(r7)\n goto L_0x0356\n L_0x0329:\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_DOUBLE_ASTERISK\n java.lang.Object[] r4 = new java.lang.Object[r13]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0341:\n r13 = 1\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n int r16 = r10 - r9\n int r12 = r16 + 1\n r8.<init>(r12)\n r16 = r7\n L_0x0356:\n r7 = r9\n r13 = -92\n goto L_0x03a6\n L_0x035a:\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_ASTERISK\n java.lang.Object[] r4 = new java.lang.Object[r13]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0372:\n r5 = 0\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CLOSE_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r13]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r9)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x038a:\n r5 = 0\n r13 = 1\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r13]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r9)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x03a2:\n int r7 = readEscapedHexString(r1, r9, r10, r8)\n L_0x03a6:\n r12 = 92\n goto L_0x02ee\n L_0x03aa:\n r7 = -92\n if (r13 != r7) goto L_0x03be\n int r5 = r8.length()\n if (r5 <= 0) goto L_0x03be\n com.unboundid.asn1.ASN1OctetString r5 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r7 = r8.toString()\n r5.<init>((java.lang.String) r7)\n goto L_0x03bf\n L_0x03be:\n r5 = 0\n L_0x03bf:\n int r7 = r6.size()\n com.unboundid.asn1.ASN1OctetString[] r7 = new com.unboundid.asn1.ASN1OctetString[r7]\n java.lang.Object[] r6 = r6.toArray(r7)\n com.unboundid.asn1.ASN1OctetString[] r6 = (com.unboundid.asn1.ASN1OctetString[]) r6\n r7 = -92\n if (r13 != r7) goto L_0x03d1\n r7 = 0\n goto L_0x03da\n L_0x03d1:\n com.unboundid.asn1.ASN1OctetString r7 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r8 = r8.toString()\n r7.<init>((java.lang.String) r8)\n L_0x03da:\n r20 = r3\n r22 = r4\n r26 = r5\n r25 = r6\n r23 = r7\n r28 = r11\n r19 = r13\n r27 = r14\n r24 = r16\n r21 = 0\n goto L_0x05ce\n L_0x03f0:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_ATTR_NAME\n r8 = 1\n java.lang.Object[] r4 = new java.lang.Object[r8]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5 = 0\n r4[r5] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0408:\n r8 = 1\n r5 = -95\n int r4 = r4 + r8\n int r3 = r3 + r8\n com.unboundid.ldap.sdk.Filter[] r3 = parseFilterComps(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r20 = r3\n r25 = r4\n r19 = -95\n goto L_0x05aa\n L_0x041b:\n r8 = 1\n com.unboundid.ldap.sdk.Filter[] r3 = NO_FILTERS\n com.unboundid.asn1.ASN1OctetString[] r9 = NO_SUB_ANY\n int r4 = r4 + r8\n r8 = r4\n L_0x0422:\n if (r8 > r10) goto L_0x042d\n char r11 = r1.charAt(r8)\n if (r11 == r15) goto L_0x042d\n int r8 = r8 + 1\n goto L_0x0422\n L_0x042d:\n if (r8 > r10) goto L_0x0569\n if (r8 == r4) goto L_0x0551\n int r11 = r8 + 1\n java.lang.String r4 = r1.substring(r4, r8)\n java.lang.String r8 = \"dn\"\n boolean r8 = r4.equalsIgnoreCase(r8)\n if (r8 == 0) goto L_0x04b7\n r4 = r11\n L_0x0440:\n if (r4 >= r10) goto L_0x044b\n char r8 = r1.charAt(r4)\n if (r8 == r15) goto L_0x044b\n int r4 = r4 + 1\n goto L_0x0440\n L_0x044b:\n if (r4 >= r10) goto L_0x049f\n java.lang.String r8 = r1.substring(r11, r4)\n int r11 = r8.length()\n if (r11 == 0) goto L_0x0487\n r11 = 1\n int r4 = r4 + r11\n if (r4 > r10) goto L_0x0465\n char r11 = r1.charAt(r4)\n if (r11 != r14) goto L_0x0465\n r11 = r8\n r7 = 1\n r8 = 1\n goto L_0x04c6\n L_0x0465:\n com.unboundid.ldap.sdk.LDAPException r2 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r3 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r5 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CHAR_AFTER_MRID\n java.lang.Object[] r6 = new java.lang.Object[r7]\n char r1 = r1.charAt(r4)\n java.lang.Character r1 = java.lang.Character.valueOf(r1)\n r4 = 0\n r6[r4] = r1\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r7 = 1\n r6[r7] = r0\n java.lang.String r0 = r5.get(r6)\n r2.<init>((com.unboundid.ldap.sdk.ResultCode) r3, (java.lang.String) r0)\n throw r2\n L_0x0487:\n r4 = 0\n r7 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r4] = r0\n java.lang.String r0 = r3.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x049f:\n r4 = 0\n r7 = 1\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_COLON_AFTER_MRID\n java.lang.Object[] r5 = new java.lang.Object[r7]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r5[r4] = r0\n java.lang.String r0 = r3.get(r5)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x04b7:\n r7 = 1\n if (r11 > r10) goto L_0x0539\n char r8 = r1.charAt(r11)\n if (r8 != r14) goto L_0x0539\n r8 = 0\n r29 = r11\n r11 = r4\n r4 = r29\n L_0x04c6:\n int r4 = r4 + r7\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n int r14 = r10 - r4\n int r14 = r14 + r7\n r12.<init>(r14)\n L_0x04cf:\n if (r4 > r10) goto L_0x051a\n char r7 = r1.charAt(r4)\n r14 = 92\n if (r7 != r14) goto L_0x04e0\n int r4 = r4 + 1\n int r4 = readEscapedHexString(r1, r4, r10, r12)\n goto L_0x04cf\n L_0x04e0:\n if (r7 == r6) goto L_0x0502\n if (r7 == r5) goto L_0x04ea\n r12.append(r7)\n int r4 = r4 + 1\n goto L_0x04cf\n L_0x04ea:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_CLOSE_PAREN\n r3 = 1\n java.lang.Object[] r3 = new java.lang.Object[r3]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r5 = 0\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0502:\n r3 = 1\n r5 = 0\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r3]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r3[r5] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x051a:\n com.unboundid.asn1.ASN1OctetString r4 = new com.unboundid.asn1.ASN1OctetString\n java.lang.String r5 = r12.toString()\n r4.<init>((java.lang.String) r5)\n r20 = r3\n r23 = r4\n r28 = r8\n r25 = r9\n r27 = r11\n r19 = -87\n r21 = 0\n r22 = 0\n r24 = 0\n r26 = 0\n goto L_0x05ce\n L_0x0539:\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_EQUAL_AFTER_MRID\n r5 = 1\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r6 = 0\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0551:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_EMPTY_MRID\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0569:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r1 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r2 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r3 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_NO_COLON_AFTER_MRID\n java.lang.Object[] r4 = new java.lang.Object[r5]\n java.lang.Integer r0 = java.lang.Integer.valueOf(r31)\n r4[r6] = r0\n java.lang.String r0 = r3.get(r4)\n r1.<init>((com.unboundid.ldap.sdk.ResultCode) r2, (java.lang.String) r0)\n throw r1\n L_0x0581:\n r5 = 1\n r6 = 0\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_UNEXPECTED_OPEN_PAREN\n java.lang.Object[] r3 = new java.lang.Object[r5]\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4)\n r3[r6] = r4\n java.lang.String r2 = r2.get(r3)\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0599:\n r5 = 1\n r6 = -96\n int r4 = r4 + r5\n int r3 = r3 + r5\n com.unboundid.ldap.sdk.Filter[] r3 = parseFilterComps(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r20 = r3\n r25 = r4\n r19 = -96\n L_0x05aa:\n r21 = 0\n goto L_0x05c2\n L_0x05ad:\n r5 = 1\n r6 = -94\n com.unboundid.ldap.sdk.Filter[] r7 = NO_FILTERS\n int r4 = r4 + r5\n int r3 = r3 + r5\n com.unboundid.ldap.sdk.Filter r3 = create(r1, r4, r10, r3)\n com.unboundid.asn1.ASN1OctetString[] r4 = NO_SUB_ANY\n r21 = r3\n r25 = r4\n r20 = r7\n r19 = -94\n L_0x05c2:\n r22 = 0\n r23 = 0\n r24 = 0\n r26 = 0\n r27 = 0\n r28 = 0\n L_0x05ce:\n if (r0 != 0) goto L_0x05ed\n com.unboundid.ldap.sdk.Filter r12 = new com.unboundid.ldap.sdk.Filter\n r0 = r12\n r1 = r30\n r2 = r19\n r3 = r20\n r4 = r21\n r5 = r22\n r6 = r23\n r7 = r24\n r8 = r25\n r9 = r26\n r10 = r27\n r11 = r28\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)\n return r12\n L_0x05ed:\n com.unboundid.ldap.sdk.Filter r3 = new com.unboundid.ldap.sdk.Filter\n r4 = 1\n int r2 = r2 + r4\n java.lang.String r18 = r1.substring(r0, r2)\n r17 = r3\n r17.<init>(r18, r19, r20, r21, r22, r23, r24, r25, r26, r27, r28)\n return r3\n L_0x05fb:\n com.unboundid.ldap.sdk.LDAPException r3 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r4 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r5 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_MISSING_PARENTHESES\n r6 = 1\n java.lang.Object[] r7 = new java.lang.Object[r6]\n int r2 = r2 + r6\n java.lang.String r0 = r1.substring(r0, r2)\n r1 = 0\n r7[r1] = r0\n java.lang.String r0 = r5.get(r7)\n r3.<init>((com.unboundid.ldap.sdk.ResultCode) r4, (java.lang.String) r0)\n throw r3\n L_0x0614:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_TOO_SHORT\n java.lang.String r2 = r2.get()\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n L_0x0622:\n com.unboundid.ldap.sdk.LDAPException r0 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r1 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r2 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_TOO_DEEP\n java.lang.String r2 = r2.get()\n r0.<init>((com.unboundid.ldap.sdk.ResultCode) r1, (java.lang.String) r2)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.Filter.create(java.lang.String, int, int, int):com.unboundid.ldap.sdk.Filter\");\n }", "private void init(RnsReader inputRnsReader){\n\t\tsynchronized(this.getVehicleLock()){\n\t\t\tsetRnsRoot();\n\t\t\t//connections first because they are needed for\n\t\t\t//computing next places\n\t\t\tsetConnections(inputRnsReader); \n\t\t\tsetRoads(inputRnsReader);\n\t\t\tsetPlaces(inputRnsReader);\t\t\n\t\t}\n\t}", "public void addReading(Reading r) {\n readingList.add(r);\n }", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "private LineData generateLineData() {\n\n LineData d = new LineData();\n LineDataSet set = new LineDataSet(ReportingRates, \" ARVs (Reporting Rates)\");\n set.setColors(Color.parseColor(\"#90ed7d\"));\n set.setLineWidth(2.5f);\n set.setCircleColor(Color.parseColor(\"#90ed7d\"));\n set.setCircleRadius(2f);\n set.setFillColor(Color.parseColor(\"#90ed7d\"));\n set.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n set.setDrawValues(true);\n\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n d.addDataSet(set);\n\n return d;\n }", "public SawLPFInstRT(int sampleRate){\r\n\t\tthis(sampleRate, 1000);\r\n\t}", "private static android.content.res.ColorStateList inflate(android.content.res.Resources r21, org.xmlpull.v1.XmlPullParser r22, android.util.AttributeSet r23, android.content.res.Resources.Theme r24) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException {\n /*\n r0 = r23\n int r1 = r22.getDepth()\n r2 = 1\n int r1 = r1 + r2\n r3 = 20\n int[][] r3 = new int[r3][]\n int r4 = r3.length\n int[] r4 = new int[r4]\n r5 = 0\n L_0x0010:\n int r6 = r22.next()\n r7 = r6\n if (r6 == r2) goto L_0x00de\n int r6 = r22.getDepth()\n r9 = r6\n if (r6 >= r1) goto L_0x002a\n r6 = 3\n if (r7 == r6) goto L_0x0022\n goto L_0x002a\n L_0x0022:\n r10 = r21\n r11 = r24\n r17 = r1\n goto L_0x00e4\n L_0x002a:\n r6 = 2\n if (r7 != r6) goto L_0x00d3\n if (r9 > r1) goto L_0x00d3\n java.lang.String r6 = r22.getName()\n java.lang.String r10 = \"item\"\n boolean r6 = r6.equals(r10)\n if (r6 != 0) goto L_0x0043\n r10 = r21\n r11 = r24\n r17 = r1\n goto L_0x00d9\n L_0x0043:\n int[] r6 = androidx.core.R.styleable.ColorStateListItem\n r10 = r21\n r11 = r24\n android.content.res.TypedArray r6 = obtainAttributes(r10, r11, r0, r6)\n int r12 = androidx.core.R.styleable.ColorStateListItem_android_color\n r13 = -65281(0xffffffffffff00ff, float:NaN)\n int r12 = r6.getColor(r12, r13)\n r13 = 1065353216(0x3f800000, float:1.0)\n int r14 = androidx.core.R.styleable.ColorStateListItem_android_alpha\n boolean r14 = r6.hasValue(r14)\n if (r14 == 0) goto L_0x0067\n int r14 = androidx.core.R.styleable.ColorStateListItem_android_alpha\n float r13 = r6.getFloat(r14, r13)\n goto L_0x0075\n L_0x0067:\n int r14 = androidx.core.R.styleable.ColorStateListItem_alpha\n boolean r14 = r6.hasValue(r14)\n if (r14 == 0) goto L_0x0075\n int r14 = androidx.core.R.styleable.ColorStateListItem_alpha\n float r13 = r6.getFloat(r14, r13)\n L_0x0075:\n r6.recycle()\n r14 = 0\n int r15 = r23.getAttributeCount()\n int[] r2 = new int[r15]\n r16 = 0\n r8 = r16\n L_0x0083:\n if (r8 >= r15) goto L_0x00b4\n r17 = r1\n int r1 = r0.getAttributeNameResource(r8)\n r18 = r6\n r6 = 16843173(0x10101a5, float:2.3694738E-38)\n if (r1 == r6) goto L_0x00ad\n r6 = 16843551(0x101031f, float:2.3695797E-38)\n if (r1 == r6) goto L_0x00ad\n int r6 = androidx.core.R.attr.alpha\n if (r1 == r6) goto L_0x00ad\n int r6 = r14 + 1\n r19 = r6\n r6 = 0\n boolean r20 = r0.getAttributeBooleanValue(r8, r6)\n if (r20 == 0) goto L_0x00a8\n r6 = r1\n goto L_0x00a9\n L_0x00a8:\n int r6 = -r1\n L_0x00a9:\n r2[r14] = r6\n r14 = r19\n L_0x00ad:\n int r8 = r8 + 1\n r1 = r17\n r6 = r18\n goto L_0x0083\n L_0x00b4:\n r17 = r1\n r18 = r6\n int[] r1 = android.util.StateSet.trimStateSet(r2, r14)\n int r2 = modulateColorAlpha(r12, r13)\n int[] r4 = androidx.core.content.res.GrowingArrayUtils.append((int[]) r4, (int) r5, (int) r2)\n java.lang.Object[] r6 = androidx.core.content.res.GrowingArrayUtils.append((T[]) r3, (int) r5, r1)\n r3 = r6\n int[][] r3 = (int[][]) r3\n int r5 = r5 + 1\n r1 = r17\n r2 = 1\n goto L_0x0010\n L_0x00d3:\n r10 = r21\n r11 = r24\n r17 = r1\n L_0x00d9:\n r1 = r17\n r2 = 1\n goto L_0x0010\n L_0x00de:\n r10 = r21\n r11 = r24\n r17 = r1\n L_0x00e4:\n int[] r1 = new int[r5]\n int[][] r2 = new int[r5][]\n r6 = 0\n java.lang.System.arraycopy(r4, r6, r1, r6, r5)\n java.lang.System.arraycopy(r3, r6, r2, r6, r5)\n android.content.res.ColorStateList r6 = new android.content.res.ColorStateList\n r6.<init>(r2, r1)\n return r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.content.res.ColorStateListInflaterCompat.inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, android.content.res.Resources$Theme):android.content.res.ColorStateList\");\n }", "public BeaconAnalysis() {\n this.left = BeaconColor.UNKNOWN;\n this.right = BeaconColor.UNKNOWN;\n this.confidence = 0.0f;\n this.location = new Rectangle();\n this.leftButton = null;\n this.rightButton = null;\n }", "public static List<ExactCall> readExactLog(final BufferedReader reader, final List<Integer> startsToKeep, GenomeLocParser parser) throws IOException {\n if ( reader == null ) throw new IllegalArgumentException(\"reader cannot be null\");\n if ( startsToKeep == null ) throw new IllegalArgumentException(\"startsToKeep cannot be null\");\n if ( parser == null ) throw new IllegalArgumentException(\"GenomeLocParser cannot be null\");\n\n List<ExactCall> calls = new LinkedList<ExactCall>();\n\n // skip the header line\n reader.readLine();\n\n // skip the first \"type\" line\n reader.readLine();\n\n while (true) {\n final VariantContextBuilder builder = new VariantContextBuilder();\n final List<Allele> alleles = new ArrayList<Allele>();\n final List<Genotype> genotypes = new ArrayList<Genotype>();\n final double[] posteriors = new double[2];\n final double[] priors = MathUtils.normalizeFromLog10(new double[]{0.5, 0.5}, true);\n final List<Integer> mle = new ArrayList<Integer>();\n final Map<Allele, Double> log10pRefByAllele = new HashMap<Allele, Double>();\n long runtimeNano = -1;\n\n GenomeLoc currentLoc = null;\n while (true) {\n final String line = reader.readLine();\n if (line == null)\n return calls;\n\n final String[] parts = line.split(\"\\t\");\n final GenomeLoc lineLoc = parser.parseGenomeLoc(parts[0]);\n final String variable = parts[1];\n final String key = parts[2];\n final String value = parts[3];\n\n if (currentLoc == null)\n currentLoc = lineLoc;\n\n if (variable.equals(\"type\")) {\n if (startsToKeep.isEmpty() || startsToKeep.contains(currentLoc.getStart())) {\n builder.alleles(alleles);\n final int stop = currentLoc.getStart() + alleles.get(0).length() - 1;\n builder.chr(currentLoc.getContig()).start(currentLoc.getStart()).stop(stop);\n builder.genotypes(genotypes);\n final int[] mleInts = ArrayUtils.toPrimitive(mle.toArray(new Integer[]{}));\n final AFCalcResult result = new AFCalcResult(mleInts, 1, alleles, posteriors, priors, log10pRefByAllele);\n calls.add(new ExactCall(builder.make(), runtimeNano, result));\n }\n break;\n } else if (variable.equals(\"allele\")) {\n final boolean isRef = key.equals(\"0\");\n alleles.add(Allele.create(value, isRef));\n } else if (variable.equals(\"PL\")) {\n final GenotypeBuilder gb = new GenotypeBuilder(key);\n gb.PL(GenotypeLikelihoods.fromPLField(value).getAsPLs());\n genotypes.add(gb.make());\n } else if (variable.equals(\"log10PosteriorOfAFEq0\")) {\n posteriors[0] = Double.valueOf(value);\n } else if (variable.equals(\"log10PosteriorOfAFGt0\")) {\n posteriors[1] = Double.valueOf(value);\n } else if (variable.equals(\"MLE\")) {\n mle.add(Integer.valueOf(value));\n } else if (variable.equals(\"pRefByAllele\")) {\n final Allele a = Allele.create(key);\n log10pRefByAllele.put(a, Double.valueOf(value));\n } else if (variable.equals(\"runtime.nano\")) {\n runtimeNano = Long.valueOf(value);\n } else {\n // nothing to do\n }\n }\n }\n }", "@Override\n\tpublic AbstractReine createReine() {\n\t\treturn new ReineSN();\n\t}", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder2() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public WifiScan( String date ,String time, String id, double latitude, double longtitude, double altitude, int Signal, String SSID,String mac , int frequncy) {\r\n\r\n\t\tthis.date = date;\r\n\t\tthis.time = time;\r\n\t\tthis.id = id;\r\n\t\tthis.p = new Point3D(longtitude, latitude, altitude);\r\n\t\taddline (Signal, mac, SSID, frequncy);\r\n\t}", "private void readSledState( Sled currentSled ) {\n currentSled.coord.x = stateScanner.nextDouble();\r\n currentSled.coord.y = stateScanner.nextDouble();\r\n currentSled.direction = stateScanner.nextDouble();\r\n\r\n // read the trail coordinates\r\n currentSled.trailLength = stateScanner.nextInt();\r\n for ( int trailPointIndex = 0; trailPointIndex < currentSled.trailLength; trailPointIndex++ ) {\r\n currentSled.trail[trailPointIndex].coord.x = stateScanner.nextDouble();\r\n currentSled.trail[trailPointIndex].coord.y = stateScanner.nextDouble();\r\n }\r\n }", "public com.vodafone.global.er.decoupling.binding.request.RefundAttributesType createRefundAttributesType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.RefundAttributesTypeImpl();\n }", "public int a(int r7, int r8, int r9, jumio.nv.nfc.cd r10) {\n /*\n r6 = this;\n r0 = r6.b;\n if (r7 >= r0) goto L_0x006a;\n L_0x0004:\n r0 = r6.a;\n if (r8 >= r0) goto L_0x006a;\n L_0x0008:\n if (r9 >= 0) goto L_0x000b;\n L_0x000a:\n goto L_0x006a;\n L_0x000b:\n r0 = r6.c;\n r1 = 1;\n r0 = r0 - r1;\n r2 = r6.e;\n r2 = r2[r0];\n r3 = 0;\n r2 = r2[r3];\n r3 = r7 >> r0;\n r4 = r6.a;\n r5 = r1 << r0;\n r4 = r4 + r5;\n r4 = r4 - r1;\n r4 = r4 >> r0;\n r3 = r3 * r4;\n r4 = r8 >> r0;\n r3 = r3 + r4;\n L_0x0024:\n r4 = r6.e;\n r4 = r4[r0];\n r4 = r4[r3];\n r5 = r6.d;\n r5 = r5[r0];\n r5 = r5[r3];\n if (r4 >= r2) goto L_0x0033;\n L_0x0032:\n goto L_0x0034;\n L_0x0033:\n r2 = r4;\n L_0x0034:\n if (r9 <= r2) goto L_0x0046;\n L_0x0036:\n if (r5 < r2) goto L_0x0045;\n L_0x0038:\n r4 = r10.a();\n if (r4 != 0) goto L_0x0041;\n L_0x003e:\n r2 = r2 + 1;\n goto L_0x0034;\n L_0x0041:\n r4 = r2 + 1;\n r5 = r2;\n goto L_0x0033;\n L_0x0045:\n r2 = r9;\n L_0x0046:\n r4 = r6.e;\n r4 = r4[r0];\n r4[r3] = r2;\n r4 = r6.d;\n r4 = r4[r0];\n r4[r3] = r5;\n if (r0 <= 0) goto L_0x0069;\n L_0x0054:\n if (r2 >= r5) goto L_0x0057;\n L_0x0056:\n goto L_0x0058;\n L_0x0057:\n r2 = r5;\n L_0x0058:\n r0 = r0 + -1;\n r3 = r7 >> r0;\n r4 = r6.a;\n r5 = r1 << r0;\n r4 = r4 + r5;\n r4 = r4 - r1;\n r4 = r4 >> r0;\n r3 = r3 * r4;\n r4 = r8 >> r0;\n r3 = r3 + r4;\n goto L_0x0024;\n L_0x0069:\n return r5;\n L_0x006a:\n r7 = new java.lang.IllegalArgumentException;\n r7.<init>();\n throw r7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: jumio.nv.nfc.ce.a(int, int, int, jumio.nv.nfc.cd):int\");\n }", "AnalogPin createAnalogPin();", "private boolean connectReader() {\n BluetoothManager bluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n if (bluetoothManager == null) {\n Log.w(TAG, \"Unable to initialize BluetoothManager.\");\n updateConnectionState(BluetoothReader.STATE_DISCONNECTED);\n return false;\n }\n\n BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter();\n if (bluetoothAdapter == null) {\n Log.w(TAG, \"Unable to obtain a BluetoothAdapter.\");\n updateConnectionState(BluetoothReader.STATE_DISCONNECTED);\n return false;\n }\n\n /*\n * Connect Device.\n */\n /* Clear old GATT connection. */\n if (mBluetoothGatt != null) {\n Log.i(TAG, \"Clear old GATT connection\");\n mBluetoothGatt.disconnect();\n mBluetoothGatt.close();\n mBluetoothGatt = null;\n }\n\n /* Create a new connection. */\n final BluetoothDevice device = bluetoothAdapter\n .getRemoteDevice(mDeviceAddress);\n\n if (device == null) {\n Log.w(TAG, \"Device not found. Unable to connect.\");\n return false;\n }\n\n /* Connect to GATT server. */\n updateConnectionState(BluetoothReader.STATE_CONNECTING);\n mBluetoothGatt = device.connectGatt(this, false, mGattCallback);\n return true;\n }", "@Test\n\tpublic void testRomeTaxiRangeTupleBuilder1() throws ParseException {\n\t\tfinal TupleBuilder tupleBuilder = TupleBuilderFactory.getBuilderForFormat(\n\t\t\t\tTupleBuilderFactory.Name.ROME_TAXI_RANGE);\n\n\t\tfinal Tuple tuple1 = tupleBuilder.buildTuple(ROME_TAXI_1, \"1\");\n\t\tfinal Tuple tuple2 = tupleBuilder.buildTuple(ROME_TAXI_2, \"1\");\n\n\t\tAssert.assertNull(tuple1);\n\t\tAssert.assertNotNull(tuple2);\n\t\tAssert.assertEquals(Integer.toString(1), tuple2.getKey());\n\n\t\tfinal Hyperrectangle exptectedBox = new Hyperrectangle(1388790007028d, 1388790009028d,\n\t\t\t\t41.91924450823211, 41.92924450823211,\n\t\t\t\t12.5027184734508, 14.5527184734508);\n\n\t\tAssert.assertEquals(exptectedBox, tuple2.getBoundingBox());\n\t}", "public void init(URI uri1, URI uri2) throws AlignmentException, OWLOntologyCreationException, OntowrapException {\n\t\tsuper.init(uri1, uri2);\n\t\tload(uri1, uri2);\n\t}", "protected BeaconScanner() {\n Log.i(TAG, \"Initialising beacon scanner.\");\n scanning = false;\n beaconEmitters = new LinkedList<>();\n beaconStream = Observable.create(new ObservableOnSubscribe<Beacon>() {\n @Override\n public void subscribe(ObservableEmitter<Beacon> emitter) throws Exception {\n beaconEmitters.push(emitter);\n }\n });\n adapter = BluetoothAdapter.getDefaultAdapter();\n }", "public static ExaminationType_type1 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ExaminationType_type1 object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList<org.apache.axiom.om.OMAttribute>();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"ExaminationType_type0\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = ExaminationType_type1.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = ExaminationType_type1.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "private void bleSearch(BluetoothDevice device, int rssi){\n bleSearchResponse.beaconFound(device, rssi);\n }", "public static CDOffering readFromString(String accountData) throws NumberFormatException {\n\t\t\tString termString = \"\";\n\t\t\tString rateString = \"\";\n\t\t\tint position = 1;\n\t\t\n\t\t\tfor (char c: accountData.toCharArray()) {\n\t\t\t\tif(c == ',') { position ++; continue; }\n\t\t\t\tif(position == 1) { termString += c; }\n\t\t\t\tif(position == 2) { rateString += c; }\n\t\t\t}\n\t\t\t\n\t\t\tif(termString == \"\" || rateString == \"\" || position != 2) {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\t\n\t\t\tint term = Integer.parseInt(termString);\n\t\t\tdouble rate = Double.parseDouble(rateString);\n\t\t\t\n\t\t\tCDOffering newCDOffering = new CDOffering(term, rate);\n\t\t\t\n\t\t\treturn newCDOffering;\n\n\t}", "public NewTransitionRecord(int from, int to, double r) {\r\n fromstate = from;\r\n tostate = to;\r\n rate = r;\r\n }", "public void readRestaurantDetail (BufferedReader reader) {\n\n\n try {\n // Each line of CSV will be stored in this String\n String line = \"\";\n reader.readLine();\n int id = 0;\n while ((line = reader.readLine()) != null) {\n// count++;\n\n // line will be split by \",\", into an array of String\n String[] eachDetailsOfRestaurant = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n\n // Restaurant object created with the tracking number and name.\n Restaurant restaurant = new Restaurant(eachDetailsOfRestaurant[0], eachDetailsOfRestaurant[1], id);\n\n// Log.e(\"checking..............\", count.toString() + \" \" + restaurant.getName());\n\n // Converting coordinates to double and creating Location object\n for (int i = 0; i < eachDetailsOfRestaurant.length; i++) {\n Log.e(TAG, \"\" + i + \":\" + eachDetailsOfRestaurant[i]);\n }\n Double latitude = Double.parseDouble(eachDetailsOfRestaurant[5]);\n Double longitude = Double.parseDouble(eachDetailsOfRestaurant[6]);\n Location location = new Location(eachDetailsOfRestaurant[2], eachDetailsOfRestaurant[3], latitude, longitude);\n\n // Setting Location of the restaurant and adding to the Arraylist\n restaurant.setLocation(location);\n restaurants.add(restaurant);\n id++;\n }\n Collections.sort(restaurants);\n } catch (IOException e) {\n// e.printStackTrace();\n }\n }", "StockRangeLineType createStockRangeLineType();", "public static RigState parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\n RigState object = new RigState();\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n try {\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\");\n if (fullTypeName != null) {\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\n }\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\n if (!\"RigState\".equals(type)) {\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RigState) cwterm.service.rigctl.ExtensionMapper.getTypeObject(nsUri, type, reader);\n }\n }\n }\n java.util.Vector handledAttributes = new java.util.Vector();\n reader.next();\n java.util.ArrayList list2 = new java.util.ArrayList();\n java.util.ArrayList list3 = new java.util.ArrayList();\n java.util.ArrayList list4 = new java.util.ArrayList();\n java.util.ArrayList list15 = new java.util.ArrayList();\n java.util.ArrayList list16 = new java.util.ArrayList();\n java.util.ArrayList list17 = new java.util.ArrayList();\n java.util.ArrayList list18 = new java.util.ArrayList();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"announces\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setAnnounces(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n reader.next();\n } else {\n object.setAnnounces(java.lang.Long.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"attenuator\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list2.add(String.valueOf(java.lang.Integer.MIN_VALUE));\n reader.next();\n } else {\n list2.add(reader.getElementText());\n }\n boolean loopDone2 = false;\n while (!loopDone2) {\n while (!reader.isEndElement()) {\n reader.next();\n }\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone2 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"attenuator\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list2.add(String.valueOf(java.lang.Integer.MIN_VALUE));\n reader.next();\n } else {\n list2.add(reader.getElementText());\n }\n } else {\n loopDone2 = true;\n }\n }\n }\n object.setAttenuator((int[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(int.class, list2));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list3.add(null);\n reader.next();\n } else {\n list3.add(cwterm.service.rigctl.xsd.Channel.Factory.parse(reader));\n }\n boolean loopDone3 = false;\n while (!loopDone3) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone3 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"channelList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list3.add(null);\n reader.next();\n } else {\n list3.add(cwterm.service.rigctl.xsd.Channel.Factory.parse(reader));\n }\n } else {\n loopDone3 = true;\n }\n }\n }\n object.setChannelList((cwterm.service.rigctl.xsd.Channel[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.Channel.class, list3));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list4.add(null);\n reader.next();\n } else {\n list4.add(cwterm.service.rigctl.xsd.Filter.Factory.parse(reader));\n }\n boolean loopDone4 = false;\n while (!loopDone4) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone4 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"filters\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list4.add(null);\n reader.next();\n } else {\n list4.add(cwterm.service.rigctl.xsd.Filter.Factory.parse(reader));\n }\n } else {\n loopDone4 = true;\n }\n }\n }\n object.setFilters((cwterm.service.rigctl.xsd.Filter[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.Filter.class, list4));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetFunc\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasGetFunc(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetLevel\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasGetLevel(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasGetParm\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasGetParm(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetFunc\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasSetFunc(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetLevel\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasSetLevel(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"hasSetParm\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setHasSetParm(org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n reader.next();\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"ituRegion\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setItuRegion(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n reader.next();\n } else {\n object.setItuRegion(java.lang.Integer.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxIfShift\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setMaxIfShift(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n reader.next();\n } else {\n object.setMaxIfShift(java.lang.Long.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxRIT\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setMaxRIT(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n reader.next();\n } else {\n object.setMaxRIT(java.lang.Long.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"maxXIT\").equals(reader.getName())) {\n java.lang.String content = reader.getElementText();\n object.setMaxXIT(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n reader.next();\n } else {\n object.setMaxXIT(java.lang.Long.MIN_VALUE);\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"preamp\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list15.add(String.valueOf(java.lang.Integer.MIN_VALUE));\n reader.next();\n } else {\n list15.add(reader.getElementText());\n }\n boolean loopDone15 = false;\n while (!loopDone15) {\n while (!reader.isEndElement()) {\n reader.next();\n }\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone15 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"preamp\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list15.add(String.valueOf(java.lang.Integer.MIN_VALUE));\n reader.next();\n } else {\n list15.add(reader.getElementText());\n }\n } else {\n loopDone15 = true;\n }\n }\n }\n object.setPreamp((int[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(int.class, list15));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list16.add(null);\n reader.next();\n } else {\n list16.add(cwterm.service.rigctl.xsd.FreqRange.Factory.parse(reader));\n }\n boolean loopDone16 = false;\n while (!loopDone16) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone16 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"rxRangeList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list16.add(null);\n reader.next();\n } else {\n list16.add(cwterm.service.rigctl.xsd.FreqRange.Factory.parse(reader));\n }\n } else {\n loopDone16 = true;\n }\n }\n }\n object.setRxRangeList((cwterm.service.rigctl.xsd.FreqRange[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.FreqRange.class, list16));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list17.add(null);\n reader.next();\n } else {\n list17.add(cwterm.service.rigctl.xsd.TuningStep.Factory.parse(reader));\n }\n boolean loopDone17 = false;\n while (!loopDone17) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone17 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"tuningSteps\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list17.add(null);\n reader.next();\n } else {\n list17.add(cwterm.service.rigctl.xsd.TuningStep.Factory.parse(reader));\n }\n } else {\n loopDone17 = true;\n }\n }\n }\n object.setTuningSteps((cwterm.service.rigctl.xsd.TuningStep[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.TuningStep.class, list17));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list18.add(null);\n reader.next();\n } else {\n list18.add(cwterm.service.rigctl.xsd.FreqRange.Factory.parse(reader));\n }\n boolean loopDone18 = false;\n while (!loopDone18) {\n while (!reader.isEndElement()) reader.next();\n reader.next();\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isEndElement()) {\n loopDone18 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://rigctl.service.cwterm/xsd\", \"txRangeList\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n list18.add(null);\n reader.next();\n } else {\n list18.add(cwterm.service.rigctl.xsd.FreqRange.Factory.parse(reader));\n }\n } else {\n loopDone18 = true;\n }\n }\n }\n object.setTxRangeList((cwterm.service.rigctl.xsd.FreqRange[]) org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(cwterm.service.rigctl.xsd.FreqRange.class, list18));\n } else {\n }\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n if (reader.isStartElement()) {\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n return object;\n }", "private static List<ArrivalRateTuple> readRequestTimeStamps(BufferedReader br, double offset) throws IOException {\r\n\t\tArrayList<ArrivalRateTuple> timeStamps = new ArrayList<ArrivalRateTuple>();\r\n\t\tString line = br.readLine();\r\n\t\twhile (line != null) {\r\n\t\t\tline = line.trim();\r\n\t\t\tif (!line.isEmpty()) {\r\n\t\t\t\tdouble ts;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tts = Double.parseDouble(line);\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tts = (Double.parseDouble(line.substring(0, line.length() - 1)));\r\n\t\t\t\t}\r\n\t\t\t\ttimeStamps.add(new ArrivalRateTuple(ts - offset, -1.0));\r\n\t\t\t}\r\n\t\t\tline = br.readLine();\r\n\t\t}\r\n\t\treturn timeStamps;\r\n\t}" ]
[ "0.6760385", "0.57224596", "0.57080346", "0.56388354", "0.54007727", "0.53779465", "0.5366733", "0.5272243", "0.5219474", "0.51878965", "0.5182021", "0.5134431", "0.50954294", "0.5086206", "0.4990973", "0.4869827", "0.48582926", "0.48329005", "0.479303", "0.47777995", "0.46062365", "0.45582736", "0.45305943", "0.45253032", "0.45002192", "0.4493144", "0.448535", "0.4469884", "0.44268566", "0.4419764", "0.4415187", "0.4409914", "0.43679625", "0.43591136", "0.43332884", "0.43018678", "0.42830455", "0.42499307", "0.42281443", "0.4221049", "0.42043576", "0.41925272", "0.41766995", "0.41678938", "0.4166364", "0.41658396", "0.41207373", "0.40957734", "0.40547824", "0.4011126", "0.4007451", "0.4003801", "0.4000719", "0.40001583", "0.39989606", "0.3981235", "0.3975096", "0.39714447", "0.3966705", "0.39526138", "0.39500868", "0.39455846", "0.39453822", "0.39043278", "0.38932404", "0.3891865", "0.38911542", "0.3880329", "0.38793856", "0.3877885", "0.38744017", "0.38632834", "0.3862405", "0.3859605", "0.384939", "0.384619", "0.3837104", "0.38350296", "0.38316026", "0.3826025", "0.38256067", "0.3824964", "0.38247362", "0.38227966", "0.3822384", "0.38138777", "0.38107026", "0.37989655", "0.37988973", "0.37965503", "0.37954554", "0.37885615", "0.37865055", "0.37836385", "0.377521", "0.3770037", "0.3767487", "0.37607828", "0.3759683", "0.37519118" ]
0.7519122
0
Checks number of available ranging readings and number of available RSSI readings. Also determines whether position must be estimated using ranging data or RSSI data.
private void checkReadings(final List<? extends ReadingLocated<P>> readings) { mNumRangingReadings = mNumRssiReadings = 0; if (readings == null) { return; } for (final ReadingLocated<P> reading : readings) { if (reading instanceof RangingReadingLocated) { mNumRangingReadings++; } else if (reading instanceof RssiReadingLocated) { mNumRssiReadings++; } else if (reading instanceof RangingAndRssiReadingLocated) { mNumRangingReadings++; mNumRssiReadings++; } } mRssiPositionEnabled = mNumRangingReadings < getMinRangingReadings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean areValidReadings(\n final List<? extends ReadingLocated<P>> readings) {\n if (readings == null) {\n return false;\n }\n\n checkReadings(readings);\n\n //if enough ranging data is available, we check validity both for ranging and RSSI readings\n return ((!mRssiPositionEnabled && mNumRangingReadings >= getMinRangingReadings() &&\n mNumRssiReadings >= getMinRssiReadings()) ||\n //if not enough ranging data is available, we check validity only for RSSI readings\n (mRssiPositionEnabled && mNumRssiReadings >= getMinRssiReadings()) ||\n //if only position is enabled, then only check for ranging readings\n (!mTransmittedPowerEstimationEnabled && !mPathLossEstimationEnabled &&\n mNumRangingReadings >= getMinRangingReadings())) &&\n //in both upper cases enough general readings must be available\n super.areValidReadings(readings);\n }", "@Override\n public void estimate() throws RadioSourceEstimationException, NotReadyException,\n LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n if (!isReady()) {\n throw new NotReadyException();\n }\n\n try {\n mLocked = true;\n\n if (mListener != null) {\n mListener.onEstimateStart(this);\n }\n\n createInnerEstimatorsIfNeeded();\n\n final List<RangingReadingLocated<S, P>> rangingReadings = new ArrayList<>();\n final List<RssiReadingLocated<S, P>> rssiReadings = new ArrayList<>();\n for (final ReadingLocated<P> reading : mReadings) {\n if (reading instanceof RangingReadingLocated) {\n rangingReadings.add((RangingReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RssiReadingLocated) {\n rssiReadings.add((RssiReadingLocated<S, P>) reading);\n\n } else if (reading instanceof RangingAndRssiReadingLocated) {\n rangingReadings.add(createRangingReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n rssiReadings.add(createRssiReading(\n (RangingAndRssiReadingLocated<S, P>) reading));\n }\n }\n\n //estimate position using ranging data, if possible\n P estimatedPosition = null;\n if (!mRssiPositionEnabled) {\n mRangingInnerEstimator.setUseReadingPositionCovariances(\n mUseReadingPositionCovariances);\n mRangingInnerEstimator.setHomogeneousLinearSolverUsed(\n mUseHomogeneousRangingLinearSolver);\n mRangingInnerEstimator.setReadings(rangingReadings);\n mRangingInnerEstimator.setInitialPosition(mInitialPosition);\n\n mRangingInnerEstimator.estimate();\n\n mEstimatedPositionCoordinates =\n mRangingInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRangingInnerEstimator.getEstimatedPositionCovariance();\n estimatedPosition = mRangingInnerEstimator.getEstimatedPosition();\n }\n\n //estimate transmitted power and/or pathloss if enabled\n if (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled || mRssiPositionEnabled) {\n mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled);\n mRssiInnerEstimator.setInitialPosition(estimatedPosition);\n\n mRssiInnerEstimator.setTransmittedPowerEstimationEnabled(\n mTransmittedPowerEstimationEnabled);\n mRssiInnerEstimator.setInitialTransmittedPowerdBm(\n mInitialTransmittedPowerdBm);\n\n mRssiInnerEstimator.setPathLossEstimationEnabled(\n mPathLossEstimationEnabled);\n mRssiInnerEstimator.setInitialPathLossExponent(\n mInitialPathLossExponent);\n\n mRssiInnerEstimator.setReadings(rssiReadings);\n\n mRssiInnerEstimator.estimate();\n\n if (mRssiPositionEnabled) {\n mEstimatedPositionCoordinates =\n mRssiInnerEstimator.getEstimatedPositionCoordinates();\n mEstimatedPositionCovariance =\n mRssiInnerEstimator.getEstimatedPositionCovariance();\n }\n\n if (mTransmittedPowerEstimationEnabled) {\n //transmitted power estimation enabled\n mEstimatedTransmittedPowerdBm =\n mRssiInnerEstimator.getEstimatedTransmittedPowerdBm();\n mEstimatedTransmittedPowerVariance =\n mRssiInnerEstimator.getEstimatedTransmittedPowerVariance();\n } else {\n //transmitted power estimation disabled\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n }\n\n if (mPathLossEstimationEnabled) {\n //pathloss exponent estimation enabled\n mEstimatedPathLossExponent =\n mRssiInnerEstimator.getEstimatedPathLossExponent();\n mEstimatedPathLossExponentVariance =\n mRssiInnerEstimator.getEstimatedPathLossExponentVariance();\n } else {\n //pathloss exponent estimation disabled\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n //build covariance matrix\n if (mRssiPositionEnabled) {\n //if only RSSI estimation is done, we use directly the available estimated covariance\n mEstimatedCovariance = mRssiInnerEstimator.getEstimatedCovariance();\n\n } else {\n //if both ranging and RSSI data is used, we build covariance matrix by setting\n //position covariance estimated by ranging estimator into top-left corner, and then\n //adding covariance terms related to pathloss exponent and transmitted power\n final Matrix rssiCov = mRssiInnerEstimator.getEstimatedCovariance();\n if (mEstimatedPositionCovariance != null && rssiCov != null) {\n final int dims = getNumberOfDimensions();\n int n = dims;\n if (mTransmittedPowerEstimationEnabled) {\n n++;\n }\n if (mPathLossEstimationEnabled) {\n n++;\n }\n\n final int dimsMinus1 = dims - 1;\n final int nMinus1 = n - 1;\n mEstimatedCovariance = new Matrix(n, n);\n mEstimatedCovariance.setSubmatrix(0, 0,\n dimsMinus1, dimsMinus1,\n mEstimatedPositionCovariance);\n mEstimatedCovariance.setSubmatrix(dims, dims,\n nMinus1, nMinus1, rssiCov);\n } else {\n mEstimatedCovariance = null;\n }\n }\n\n } else {\n mEstimatedCovariance = mEstimatedPositionCovariance;\n mEstimatedTransmittedPowerdBm = mInitialTransmittedPowerdBm;\n mEstimatedTransmittedPowerVariance = null;\n\n mEstimatedPathLossExponent = mInitialPathLossExponent;\n mEstimatedPathLossExponentVariance = null;\n }\n\n if (mListener != null) {\n mListener.onEstimateEnd(this);\n }\n\n } catch (final AlgebraException e) {\n throw new RadioSourceEstimationException(e);\n } finally {\n mLocked = false;\n }\n }", "@Override\n public int getMinReadings() {\n createInnerEstimatorsIfNeeded();\n\n int result = getNumberOfDimensions();\n if (mRssiInnerEstimator != null &&\n (mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled)) {\n try {\n mRssiInnerEstimator.setPositionEstimationEnabled(mRssiPositionEnabled);\n mRssiInnerEstimator.setTransmittedPowerEstimationEnabled(\n mTransmittedPowerEstimationEnabled);\n mRssiInnerEstimator.setPathLossEstimationEnabled(\n mPathLossEstimationEnabled);\n } catch (final LockedException e) {\n throw new IllegalStateException(e);\n }\n\n result += mRssiInnerEstimator.getMinReadings();\n } else {\n result++;\n }\n\n return result;\n }", "protected void checkTransmissionRequirements()\n {\n if (isOutOfBandAlert())\n { // Out-of-band (OOB) transmission requirements\n if (this.alert_text == null && this.details_OOB_source_ID == 0)\n { // [SCTE 18] 6-3\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB alert requires alert text or a details source ID\"));\n }\n }\n else if (this.alert_priority > EASMessage.ALERT_PRIORITY_HIGH)\n {\n if (this.details_OOB_source_ID == 0)\n { // [SCTE 18] 6-5\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB maximum priority alert requires a details source ID\"));\n }\n }\n else if (this.alert_text != null && this.audio_OOB_source_ID == 0)\n { // [SCTE 18] 6-7\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: OOB maximum priority alert with alert text requires an audio source ID\"));\n }\n }\n }\n }\n else\n { // In-band (IB) transmission requirements\n if (this.alert_text == null && this.details_major_channel_number == 0\n && this.details_minor_channel_number == 0)\n { // [SCTE 18] 6-2\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: IB alert requires alert text or a details channel\"));\n }\n }\n else if (this.alert_priority > EASMessage.ALERT_PRIORITY_HIGH && this.details_major_channel_number == 0\n && this.details_minor_channel_number == 0)\n { // [SCTE 18] 6-4\n if (log.isInfoEnabled())\n {\n log.info(formatLogMessage(\"SCTE-18: IB maximum priority alert requires a details channel\"));\n }\n }\n }\n }", "public int getMinRangingReadings() {\n return getNumberOfDimensions() + 1;\n }", "@Override\n public boolean isReady() {\n //at least one parameter estimtion must be enabled\n return (mPositionEstimationEnabled || mTransmittedPowerEstimationEnabled || mPathLossEstimationEnabled) &&\n //if position estimation is disabled, an initial position must be provided\n !(!mPositionEstimationEnabled && mInitialPosition == null) &&\n //if transmitted power estimation is disabled, an initial transmitted power must be provided\n !(!mTransmittedPowerEstimationEnabled && mInitialTransmittedPowerdBm == null) &&\n //readings must also be valid\n areValidReadings(mReadings);\n }", "public int checkGoals() {\n\t\tupdateUnsupportedPreconditionInconsistencies(maxLevel);\n\t\tcountInconsistencies();\n\t\tgraphQuality = calculateQuality();\n\t\treturn this.inconsistencyCount;\n\t}", "private void checkForMinimumDistanceFailure(final ReadEndsForMateCigar current) {\n if (!toMarkQueue.isEmpty()) {\n final ReadEndsForMateCigar other = toMarkQueue.peek();\n if (other.read1ReferenceIndex == current.read1ReferenceIndex && toMarkQueue.getToMarkQueueMinimumDistance() <= other.read1Coordinate - current.read1Coordinate) {\n if (checkCigarForSkips(other.getRecord().getCigar())) {\n throw new PicardException(\"Found a samRecordWithOrdinal with sufficiently large code length that we may have\\n\"\n + \" missed including it in an early duplicate marking iteration. Alignment contains skipped\"\n + \" reference bases (N's). If this is an\\n RNAseq aligned bam, please use MarkDuplicates instead,\"\n + \" as this tool does not work well with spliced reads.\\n Minimum distance set to \"\n + toMarkQueue.getToMarkQueueMinimumDistance() + \" but \" + (other.read1Coordinate - current.read1Coordinate - 1)\n + \" would be required.\\n\" + \"Record was: \" + other.getRecord().getSAMString());\n } else {\n System.err.print(\"record #1: \" + other.getRecord().getSAMString());\n System.err.print(\"record #2: \" + current.getRecord().getSAMString());\n throw new PicardException(\"Found a samRecordWithOrdinal with sufficiently large clipping that we may have\\n\"\n + \" missed including it in an early duplicate marking iteration. Please increase the\"\n + \" minimum distance to at least \" + (other.read1Coordinate - current.read1Coordinate - 1)\n + \"bp\\nto ensure it is considered (was \" + toMarkQueue.getToMarkQueueMinimumDistance() + \").\\n\"\n + \"Record was: \" + other.getRecord().getSAMString());\n }\n }\n }\n }", "public boolean checkRapelState () { return noOfRapels > 0; }", "@Test\n\tpublic void testLimits() throws DeviceException {\n\t\tsetUpIncrement();\n\t\tdouble lastPos = INITIAL_POSITION;\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tfinal double currentPos = (double) monitor.getPosition();\n\t\t\tassertTrue(Math.abs(currentPos - lastPos) > 0.001);\n\t\t\tassertTrue(currentPos - UPPER_LIMIT < 0.001);\n\t\t\tassertTrue(currentPos - LOWER_LIMIT > 0.001);\n\t\t\tlastPos = currentPos;\n\t\t}\n\t}", "public void validateReading() {\r\n\t\tint i = 0;\r\n\t\tfor (Integer reading : readingList) {\r\n\t\t\tif (reading != null) {\r\n\t\t\t\tif (reading < 0 || reading > Constantes.PLUVIOMETER_MAX_RANGE) {\r\n\t\t\t\t\tControladorContexto\r\n\t\t\t\t\t\t\t.mensajeErrorArg1(\r\n\t\t\t\t\t\t\t\t\t\"formDetalles:repeat:\" + i + \":message\",\r\n\t\t\t\t\t\t\t\t\t\"javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE\",\r\n\t\t\t\t\t\t\t\t\t\"mensaje\", 0,\r\n\t\t\t\t\t\t\t\t\tConstantes.PLUVIOMETER_MAX_RANGE);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tControladorContexto.mensajeErrorEspecifico(\r\n\t\t\t\t\t\t\"formDetalles:repeat:\" + i + \":message\",\r\n\t\t\t\t\t\t\"message_campo_requerido\", \"mensaje\");\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "private void checkBaselineHints() {\n onView(withId(R.id.upperThresh)).check(matches(withHint(topHint)));\n onView(withId(R.id.upperThresh)).perform(typeText(\"2.00\"), closeSoftKeyboard());\n onView(withId(R.id.lowerThresh)).check(matches(withHint(botHint)));\n onView(withId(R.id.lowerThresh)).perform(typeText(\"1.00\"), closeSoftKeyboard());\n }", "public int getMinRssiReadings() {\n return getMinReadings();\n }", "protected final List<LocRefPoint> checkAndAdjustOffsets(\n\t\t\tfinal LocRefData lrd, final OpenLREncoderProperties properties)\n\t\t\tthrows OpenLRProcessingException {\n\t\tList<LocRefPoint> checkedAndAdjusted = lrd.getLocRefPoints();\n\t\tLocation location = lrd.getLocation();\n\t\tExpansionData expansion = lrd.getExpansionData();\n\t\tint startLength = checkedAndAdjusted.get(0).getDistanceToNext();\n\t\tint totalPosOff = location.getPositiveOffset()\n\t\t\t\t+ expansion.getExpansionLengthStart();\n\t\twhile (totalPosOff > startLength) {\n\t\t\tif (expansion.hasExpansionStart()) {\n\t\t\t\tif (!expansion.modifyExpansionAtStart(checkedAndAdjusted.get(0)\n\t\t\t\t\t\t.getRoute())) {\n\t\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlrd.addToReducedPosOff(startLength);\n\t\t\t}\n\t\t\tcheckedAndAdjusted.remove(0);\n\t\t\tif (checkedAndAdjusted.size() < 2) {\n\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t}\n\t\t\tstartLength = checkedAndAdjusted.get(0).getDistanceToNext();\n\t\t\ttotalPosOff = location.getPositiveOffset()\n\t\t\t\t\t+ expansion.getExpansionLengthStart()\n\t\t\t\t\t- lrd.getReducedPosOff();\n\t\t}\n\n\t\tint endLength = checkedAndAdjusted.get(checkedAndAdjusted.size() - 2)\n\t\t\t\t.getDistanceToNext();\n\t\tint totalNegOff = location.getNegativeOffset()\n\t\t\t\t+ expansion.getExpansionLengthEnd();\n\t\twhile (totalNegOff > endLength) {\n\t\t\tif (expansion.hasExpansionEnd()) {\n\t\t\t\tif (!expansion.modifyExpansionAtEnd(checkedAndAdjusted.get(\n\t\t\t\t\t\tcheckedAndAdjusted.size() - 2).getRoute())) {\n\t\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlrd.addToReducedNegOff(endLength);\n\t\t\t}\n\t\t\t// remove last LRP\n\t\t\tcheckedAndAdjusted.remove(checkedAndAdjusted.size() - 1);\n\t\t\tif (checkedAndAdjusted.size() < 2) {\n\t\t\t\tthrow new OpenLREncoderProcessingException(\n\t\t\t\t\t\tEncoderProcessingError.OFFSET_TRIMMING_FAILED);\n\t\t\t}\n\t\t\t\n\t\t\tLocRefPoint oldLastLRP = checkedAndAdjusted.get(checkedAndAdjusted\n\t\t\t\t\t.size() - 1);\n\t\t\tLocRefPoint prevLRP = checkedAndAdjusted.get(checkedAndAdjusted\n\t\t\t\t\t.size() - 2);\n\t\t\tLocRefPoint newLastLRP;\n\t\t\tif (oldLastLRP.isLRPOnLine()) {\n\t\t\t\tnewLastLRP = new LocRefPoint(oldLastLRP.getLine(), oldLastLRP.getLongitudeDeg(), oldLastLRP.getLatitudeDeg(), properties, true);\n\t\t\t} else {\n\t\t\t\tnewLastLRP = new LocRefPoint(prevLRP.getLastLineOfSubRoute(), properties);\n\t\t\t}\n\t\t\tcheckedAndAdjusted.remove(checkedAndAdjusted.size() - 1);\n\t\t\tprevLRP.setNextLRP(newLastLRP);\n\t\t\tcheckedAndAdjusted.add(newLastLRP);\n\t\t\t\n\t\t\tendLength = checkedAndAdjusted.get(checkedAndAdjusted.size() - 2)\n\t\t\t\t\t.getDistanceToNext();\n\t\t\ttotalNegOff = location.getNegativeOffset()\n\t\t\t\t\t+ expansion.getExpansionLengthEnd()\n\t\t\t\t\t- lrd.getReducedNegOff();\n\t\t}\n\t\treturn checkedAndAdjusted;\n\t}", "private void checkPoints() {\n if (mPointsManager.getScore() < 20 && !SharedDataManager.isHuntReady(this)) {\n /* Before the 30 points 'reward', player must have no locked target in history */\n if (SharedDataManager.isLockedTargetInHistory(MainActivity.this)) {\n return;\n }\n mPointsManager.setScore(30);\n updateInfo();\n try {\n if (!requestingPoints) {\n requestingPoints = true;\n /* Update the value in the server database if possible */\n mPointsManager.updateInDatabase(MainActivity.this, new ResponseTask.OnResponseTaskCompleted() {\n @Override\n public void onResponseTaskCompleted(Request request, Response response, OHException ohex, Object data) {\n /* It's ok if the request was not successful, the update will be done later */\n requestingPoints = false;\n }\n });\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void checkPosition(){\n int absPos = mArm.getSensorCollection().getPulseWidthPosition();\n // mArm.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);\n mArm.setSelectedSensorPosition(absPos - offset);\n }", "private static void reportStatistics() {\n SmartDashboard.putNumber(\"Speed value\", speed);\n SmartDashboard.putNumber(\"Desired RPM\", kVelocitySetpoint);\n SmartDashboard.putNumber(\"Error\", error);\n SmartDashboard.putNumber(\"ErrorSum\", errorSum);\n SmartDashboard.putNumber(\"Flywheel Velocity (Master)\", -flywheelMaster.getSelectedSensorVelocity());\n\n if(d >= kMinThreePoint && d <= kMaxThreePoint) { //If we are in the range for a 3-point shot\n threePointDistanceEntry.setBoolean(true); //Alert operator\n } else { //If we are not in the range for a 3-point shot\n threePointDistanceEntry.setBoolean(false); //Alert operator\n }\n\n if(d >= kMinViableRange && d <= kMaxViableRange) { //If we are in the viable range for any power port shot\n viableDistanceEntry.setBoolean(true); //Alert operator\n } else { //If we cannot make a shot into the power port\n viableDistanceEntry.setBoolean(false); //Alert operator\n }\n }", "public boolean getLocationsFrom(double curLat, double curLon, Double num) {\r\n boolean locationsFromDB = true;\r\n String previousCurLat, previousCurLon;\r\n Log.d(\"Detailed analysis\",\"getting data from db, calling getdata function\");\r\n Cursor rs1 = myDB.getData(curLat, curLon, num);\r\n //In this condition if data not found locationsFromDB is set to false and then returned\r\n if (rs1.getCount() <= 0){\r\n System.out.println(rs1.getCount());\r\n locationsFromDB = false;\r\n Log.d(\"Detailed analysis\",\"Data not found\");\r\n }\r\n //In this condition if data is found need to do the further action of finding the user has moved or not and calculating the direction and distance if user has moved\r\n else {\r\n Log.d(\"Detailed analysis\", \"data found\");\r\n Double[] latArray = new Double[rs1.getCount()];\r\n Double[] lonArray = new Double[rs1.getCount()];\r\n int z = 0;\r\n double distanceBtwLocations = 0;\r\n double finalLat = 0.0;\r\n double finalLon = 0.0;\r\n while (rs1.moveToNext()) {\r\n latArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lat)));\r\n lonArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lon)));\r\n Log.d(\"Detailed Analysis\", latArray[z] +\", \" + lonArray[z] );\r\n double tempDistance = findDistanceBetweenPoints(latArray[z], lonArray[z], Math.round(curLat * 10000.0) / 10000.0, Math.round(curLon * 10000.0) / 10000.0);\r\n System.out.println(tempDistance + \" : tempDistance\");\r\n if (distanceBtwLocations < tempDistance) {\r\n finalLat = latArray[z];\r\n finalLon = lonArray[z];\r\n distanceBtwLocations = tempDistance;\r\n System.out.println(distanceBtwLocations + \" : distanceBtwLocations\");\r\n }\r\n z++;\r\n }\r\n if (distanceBtwLocations < 100 * 1606.34) {\r\n Log.d(\"Detailed Analysis\", \"Distance is not greater than 100 miles\");\r\n previousCurLat = String.valueOf(finalLat);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lat));\r\n previousCurLon = String.valueOf(finalLon);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lon));\r\n Cursor rs = myDB.getData(finalLat, finalLon, num);\r\n rs.moveToFirst();\r\n// condChoice = Integer.parseInt(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_condChoice)));\r\n number = Double.parseDouble(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_num)));\r\n Log.d(\"Detailed Analysis\", \"number while data found: \" + number);\r\n Log.d(\"Detailed Analysis\", \"Recent number value from getLocationsFrom: \" + number);\r\n Log.d(\"Detailed analysis\", \"Lattittude and Longitude points\" + \" \" + Double.parseDouble(previousCurLat) + \",\" + Double.parseDouble(previousCurLon) + \":\" + Math.round(curLat * 10000.0) / 10000.0 + \",\" + Math.round(curLon * 10000.0) / 10000.0);\r\n //if user has not moved then locationsFromDB is set to true and then returned\r\n if (Double.parseDouble(previousCurLat) == Math.round(curLat * 10000.0) / 10000.0 && Double.parseDouble(previousCurLon) == Math.round(curLon * 10000.0) / 10000.0) {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are same\");\r\n rs.moveToFirst();\r\n locationValues = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n locationsFromDB = true;\r\n } else {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are not same\");\r\n float distance = 0;\r\n LatLng movedPoints;\r\n Log.d(\"Detailed analysis\", \"finding distance between lattitudes and longitudes\");\r\n distance = findDistanceBetweenPoints(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon), curLat, curLon);\r\n Log.d(\"Detailed Analysis\", \"distance in meters\" + \" \" + distance);\r\n direction = SphericalUtil.computeHeading(new LatLng(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon)), new LatLng(curLat, curLon));\r\n Log.d(\"Detailed Analysis\", \"direction in degrees\" + \" \" + direction);\r\n String values = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n String valuesArray[] = values.split(\":\");\r\n Log.d(\"Detailed analysis\", \"finding random locations after moving a bit\");\r\n for (int i = 0; i < valuesArray.length; i++) {\r\n String pointsArray[] = valuesArray[i].split(\",\");\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes points\" + pointsArray[0] + \" \" + pointsArray[1]);\r\n movedPoints = findMovedPoints(Double.parseDouble(pointsArray[0]), Double.parseDouble(pointsArray[1]), distance, direction);\r\n Log.d(\"Detailed Analysis\", \"latitude and longitude points after moving\" + \" \" + movedPoints);\r\n locationValues = findRandomLocations(movedPoints.latitude, movedPoints.longitude, 1, distance + 1);\r\n }\r\n }\r\n }\r\n else{\r\n locationValues = findRandomLocations(curLat, curLon, num, 30);\r\n }\r\n locationsFromDB = true;\r\n }\r\n return locationsFromDB;\r\n }", "public boolean hasScannedAllies()\n\t{\n\t\treturn (lastscanround == br.curRound && !needToScanAllies);\n\t}", "public int getNumberAvailableSeats(){\n int out = Integer.MAX_VALUE;\n for(int i=0; i<flights.size();i++){\n for(int j=0; j<availabilities.size(); j++) {\n if (flights.get(i).getFlightNumber().equals(availabilities.get(j).getFlightNumber())) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg1() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg1();\n }\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() != null) {\n if (availabilities.get(i).getNumberAvailableSeatsLeg2() < out) {\n out = availabilities.get(i).getNumberAvailableSeatsLeg2();\n }\n }\n break;\n }\n }\n }\n return out;\n }", "public void check2Minerals(){\n\t\t/*if (tfod != null) {\n\t\t\t// getUpdatedRecognitions() will return null if no new information is available since\n\t\t\t// the last time that call was made.\n\t\t\tList<Recognition> updatedRecognitions = tfod.getRecognitions();\n\n\t\t\tif (updatedRecognitions != null) {\n\n\t\t\t\tfloat goldMineral;\n\t\t\t\tfloat silverMineral;\n\n\t\t\t\tif(updatedRecognitions.size()==3){\n\t\t\t\t\tcheckMinerals();\n\t\t\t\t}\n\t\t\t\telse if (updatedRecognitions.size() >= 2) {\n\t\t\t\t\tif(updatedRecognitions.get(0).getLabel().equals(LABEL_GOLD_MINERAL)) {\n\t\t\t\t\t\tgoldMineral = updatedRecognitions.get(0).getLeft();\n\t\t\t\t\t\tsilverMineral = updatedRecognitions.get(1).getLeft();\n\t\t\t\t\t}\n\t\t\t\t\telse if(updatedRecognitions.get(1).getLabel().equals(LABEL_GOLD_MINERAL)){\n\t\t\t\t\t\tgoldMineral = updatedRecognitions.get(1).getLeft();\n\t\t\t\t\t\tsilverMineral = updatedRecognitions.get(0).getLeft();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tposition=\"right\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\ttelemetry.clearAll();\n\t\t\t\t\ttelemetry.addData(\"minerals\", updatedRecognitions.size());\n\t\t\t\t\ttelemetry.addData(\"goldMineral\", goldMineral);\n\t\t\t\t\ttelemetry.addData(\"silverMineral\", silverMineral);\n\t\t\t\t\ttelemetry.addData(\"position\", position);\n\t\t\t\t\ttelemetry.update();\n\n\n\t\t\t\t\tif(goldMineral<528){\n\t\t\t\t\t\tposition=\"center\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(goldMineral>528){\n\t\t\t\t\t\tposition=\"left\";\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tposition=\"rotate\";\n\t\t\t\t\t}*/\n\n\t\t//\t\t}\n\t\t//\t}\n\t\t//}\n\t}", "void checkPositions() {\n //check if any bullets have hit any asteroids\n for (int i = 0; i < bullets.size(); i++) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHit(bullets.get(i).pos)) {\n shotsHit++;\n bullets.remove(i);//remove bullet\n score +=1;\n break;\n }\n }\n }\n //check if player has been hit\n if (immortalityTimer <=0) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHitPlayer(position)) {\n playerHit();\n }\n }\n }\n }", "private void checkBluetoothPermissions() {\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) {\n int permissionCheck = activity.checkSelfPermission(\"Manifest.permission.ACCESS_FINE_LOCATION\");\n permissionCheck += activity.checkSelfPermission(\"Manifest.permission.ACCESS_COARSE_LOCATION\");\n if (permissionCheck != 0) {\n\n ((Activity) activity).requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION},\n 1001); //Any number\n }\n } else {\n Log.d(TAG, \"checkBluetoothPermissions: No need to check permissions. SDK version < LOLLIPOP.\");\n }\n }", "public void checkCellStatus()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n checkNeighbours(rows, columns);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }", "public int checkNoOfRapelPlayerHolds () { return noOfRapels; }", "@Override\n public boolean isReady() {\n return areValidReadings(mReadings);\n }", "double getRangeDist( RangeName r ) {\n double dis = 0.0;\n double period = 1.0/MAX_RANGE_READ_FREQ ; // dflt 10Hz => one read per 100ms\n last_range_read_failed_ = false;\n switch ( r ) {\n case RGB_RANGE_STONE :\n if( rgb_range_stone_ != null ) {\n if( (last_rgb_range_stone_read_loop_id_ == loop_cnt_) || (last_rgb_range_stone_read_time_>0 && curr_time_-last_rgb_range_stone_read_time_<period) ) {\n dis = rgb_range_stone_dist_;\n } else {\n dis = rgb_range_stone_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_rgb_range_stone_read_loop_id_ = loop_cnt_;\n last_rgb_range_stone_read_time_ = curr_time_;\n rgb_range_stone_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = rgb_range_stone_dist_;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_STONE :\n if( range_stone_ != null ) {\n if( (last_range_stone_read_loop_id_ == loop_cnt_) || (last_range_stone_read_time_>0 && curr_time_-last_range_stone_read_time_<period) ) {\n dis = range_stone_dist_;\n } else {\n dis = range_stone_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_stone_read_loop_id_ = loop_cnt_;\n last_range_stone_read_time_ = curr_time_;\n range_stone_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_stone_dist_;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_RIGHT :\n if( range_right_ != null ) {\n if( (last_range_right_read_loop_id_ == loop_cnt_) || (last_range_right_read_time_>0 && curr_time_-last_range_right_read_time_<period) ) {\n dis = range_right_dist_;\n } else {\n dis = range_right_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_right_read_loop_id_ = loop_cnt_;\n last_range_right_read_time_ = curr_time_;\n range_right_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_right_dist_ ;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n case RANGE_LEFT :\n if( range_left_ != null ) {\n if( (last_range_left_read_loop_id_ == loop_cnt_) || (last_range_left_read_time_>0 && curr_time_-last_range_left_read_time_<period) ) {\n dis = range_left_dist_;\n } else {\n dis = range_left_.getDistance( DistanceUnit.METER );\n if( isValidRangeReading(dis) ) {\n last_range_left_read_loop_id_ = loop_cnt_;\n last_range_left_read_time_ = curr_time_;\n range_left_dist_ = dis;\n last_range_failed_read_time_ = 0.0;\n } else { // invalid reading, use the last value\n dis = range_left_dist_ ;\n last_range_read_failed_ = true;\n last_range_failed_read_time_ = curr_time_;\n }\n }\n }\n break;\n default:\n break;\n }\n return dis;\n }", "private void checkForNewAppliancesAndUpdateConstants()\n\t{\n\t\t// This could be more sophisticated, but for now all this needs to do is\n\t\t// make sure that\n\t\t// the wattbox assigns load only according to the rated heat pump and\n\t\t// immersion capacity\n\t\t// of its owner\n\t\tthis.maxHeatPumpElecDemandPerTick = (this.owner.ratedPowerHeatPump * 24 / this.ticksPerDay);\n\t\tthis.maxImmersionHeatPerTick = Consts.MAX_DOMESTIC_IMMERSION_POWER * 24 / this.ticksPerDay;\n\t}", "private void validateInputParams(long bitPos, int nrBits, int maxNrBitsRead) {\n\n if (nrBits < 1) {\n throw new BitBufferException(\"Number of bits to read (\" + nrBits\n + \") should greater than zero.\");\n }\n\n if (bitPos < 0)\n throw new BitBufferException(\"Bit position (\" + bitPos\n + \") should be positive.\");\n\n if (maxNrBitsRead != 1 && maxNrBitsRead != 8 && maxNrBitsRead != 16\n && maxNrBitsRead != 32 && maxNrBitsRead != 64)\n throw new BitBufferException(\"Max number of bits to read (\"\n + maxNrBitsRead + \") should be either 1, 8, 16, 32 or 64.\");\n\n if (nrBits > maxNrBitsRead)\n throw new BitBufferException(\"Cannot read \" + nrBits\n + \" bits using \" + maxNrBitsRead\n + \" bit long numberBuf (bitPos=\" + bitPos + \").\");\n\n if (bitPos + nrBits > bitBufBitSize)\n throw new BitBufferUnderflowException(bitPos, nrBits);\n\n // if (nrBits <= maxNrBitsRead / 2 && log.isWarnEnabled())\n // log.warn(\"It is not recommended to read \" + nrBits + \" using \"\n // + maxNrBitsRead + \" bit long numberBuf (bitPos=\" + bitPos\n // + \").\");\n\n }", "int getDataScansCount();", "private void findLargestCells(int r22) {\n /*\n r21 = this;\n r7 = 1;\n r5 = r21.getChildCount();\n r8 = 0;\n L_0x0006:\n if (r8 >= r5) goto L_0x00d5;\n L_0x0008:\n r0 = r21;\n r4 = r0.getChildAt(r8);\n r17 = r4.getVisibility();\n r18 = 8;\n r0 = r17;\n r1 = r18;\n if (r0 != r1) goto L_0x001d;\n L_0x001a:\n r8 = r8 + 1;\n goto L_0x0006;\n L_0x001d:\n r0 = r4 instanceof android.widget.TableRow;\n r17 = r0;\n if (r17 == 0) goto L_0x001a;\n L_0x0023:\n r15 = r4;\n r15 = (android.widget.TableRow) r15;\n r10 = r15.getLayoutParams();\n r17 = -2;\n r0 = r17;\n r10.height = r0;\n r0 = r22;\n r16 = r15.getColumnsWidths(r0);\n r0 = r16;\n r13 = r0.length;\n if (r7 == 0) goto L_0x0073;\n L_0x003b:\n r0 = r21;\n r0 = r0.mMaxWidths;\n r17 = r0;\n if (r17 == 0) goto L_0x0052;\n L_0x0043:\n r0 = r21;\n r0 = r0.mMaxWidths;\n r17 = r0;\n r0 = r17;\n r0 = r0.length;\n r17 = r0;\n r0 = r17;\n if (r0 == r13) goto L_0x005c;\n L_0x0052:\n r0 = new int[r13];\n r17 = r0;\n r0 = r17;\n r1 = r21;\n r1.mMaxWidths = r0;\n L_0x005c:\n r17 = 0;\n r0 = r21;\n r0 = r0.mMaxWidths;\n r18 = r0;\n r19 = 0;\n r0 = r16;\n r1 = r17;\n r2 = r18;\n r3 = r19;\n java.lang.System.arraycopy(r0, r1, r2, r3, r13);\n r7 = 0;\n goto L_0x001a;\n L_0x0073:\n r0 = r21;\n r0 = r0.mMaxWidths;\n r17 = r0;\n r0 = r17;\n r11 = r0.length;\n r6 = r13 - r11;\n if (r6 <= 0) goto L_0x00bd;\n L_0x0080:\n r0 = r21;\n r14 = r0.mMaxWidths;\n r0 = new int[r13];\n r17 = r0;\n r0 = r17;\n r1 = r21;\n r1.mMaxWidths = r0;\n r17 = 0;\n r0 = r21;\n r0 = r0.mMaxWidths;\n r18 = r0;\n r19 = 0;\n r0 = r14.length;\n r20 = r0;\n r0 = r17;\n r1 = r18;\n r2 = r19;\n r3 = r20;\n java.lang.System.arraycopy(r14, r0, r1, r2, r3);\n r0 = r14.length;\n r17 = r0;\n r0 = r21;\n r0 = r0.mMaxWidths;\n r18 = r0;\n r0 = r14.length;\n r19 = r0;\n r0 = r16;\n r1 = r17;\n r2 = r18;\n r3 = r19;\n java.lang.System.arraycopy(r0, r1, r2, r3, r6);\n L_0x00bd:\n r0 = r21;\n r12 = r0.mMaxWidths;\n r11 = java.lang.Math.min(r11, r13);\n r9 = 0;\n L_0x00c6:\n if (r9 >= r11) goto L_0x001a;\n L_0x00c8:\n r17 = r12[r9];\n r18 = r16[r9];\n r17 = java.lang.Math.max(r17, r18);\n r12[r9] = r17;\n r9 = r9 + 1;\n goto L_0x00c6;\n L_0x00d5:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.TableLayout.findLargestCells(int):void\");\n }", "@Override\n public Integer map(ReferenceContext ref, SAMRecord read, ReadMetaDataTracker metaDataTracker) {\n //logger.info(String.format(\"examining read %s\", read.getReadName()));\n\n byte[] bases = read.getReadBases();\n if(read.getReadNegativeStrandFlag()) bases = BaseUtils.simpleReverseComplement(bases);\n\n boolean matches = true;\n Iterable<Alignment[]> alignments = aligner.getAllAlignments(bases);\n Iterator<Alignment[]> alignmentIterator = alignments.iterator();\n\n if(!alignmentIterator.hasNext()) {\n matches = read.getReadUnmappedFlag();\n }\n else {\n Alignment[] alignmentsOfBestQuality = alignmentIterator.next();\n for(Alignment alignment: alignmentsOfBestQuality) {\n matches = (alignment.getContigIndex() == read.getReferenceIndex());\n matches &= (alignment.getAlignmentStart() == read.getAlignmentStart());\n matches &= (alignment.isNegativeStrand() == read.getReadNegativeStrandFlag());\n matches &= (alignment.getCigar().equals(read.getCigar()));\n matches &= (alignment.getMappingQuality() == read.getMappingQuality());\n if(matches) break;\n }\n }\n\n if(!matches) {\n logger.error(\"Found mismatch!\");\n logger.error(String.format(\"Read %s:\",read.getReadName()));\n logger.error(String.format(\" Contig index: %d\",read.getReferenceIndex()));\n logger.error(String.format(\" Alignment start: %d\", read.getAlignmentStart()));\n logger.error(String.format(\" Negative strand: %b\", read.getReadNegativeStrandFlag()));\n logger.error(String.format(\" Cigar: %s%n\", read.getCigarString()));\n logger.error(String.format(\" Mapping quality: %s%n\", read.getMappingQuality()));\n for(Alignment[] alignmentsByScore: alignments) {\n for(int i = 0; i < alignmentsByScore.length; i++) {\n logger.error(String.format(\"Alignment %d:\",i));\n logger.error(String.format(\" Contig index: %d\",alignmentsByScore[i].getContigIndex()));\n logger.error(String.format(\" Alignment start: %d\", alignmentsByScore[i].getAlignmentStart()));\n logger.error(String.format(\" Negative strand: %b\", alignmentsByScore[i].isNegativeStrand()));\n logger.error(String.format(\" Cigar: %s\", alignmentsByScore[i].getCigarString()));\n logger.error(String.format(\" Mapping quality: %s%n\", alignmentsByScore[i].getMappingQuality()));\n }\n }\n throw new ReviewedStingException(String.format(\"Read %s mismatches!\", read.getReadName()));\n }\n\n return 1;\n }", "public void analyzeData(){\n\t\tlinewidth = rt.getValue(\"Mean\", 1) - rt.getValue(\"Mean\", 0);\n\t\tRMS_edge_roughness = Math.sqrt((Math.pow(rt.getValue(\"StdDev\", 1), 2) + Math.pow(rt.getValue(\"StdDev\", 0), 2))/2); // this is the correct form\n\t\tif(rt.getValue(\"Max\",1) - rt.getValue(\"Min\", 1) > rt.getValue(\"Max\", 0) - rt.getValue(\"Min\", 0)){\n\t\t\tpkpk_edge_roughness = rt.getValue(\"Max\", 1) – rt.getValue(\"Min\", 1);\n\t\t}\n\t\telse{\n\t\t\tpkpk_edge_roughness = (rt.getValue(\"Max\", 0) – rt.getValue(\"Min\", 0));\n\t\t}\n\t\treturn;\n\t}", "boolean isValidRangeReading(double dist) {\n return ( !Double.isNaN(dist) && dist>MIN_RANGE_DIST && dist<MAX_RANGE_DIST ) ;\n }", "private void checkAnnotation() {\n if (annotMin != -1)\n Assert.condition(annotMin >= 0, \"min isn't >= 0: '\" + annotMin + \"'\");\n if (annotMax != -1)\n Assert.condition(annotMax >= 0, \"max isn't >= 0: '\" + annotMax + \"'\");\n if ((annotMin != -1) && (annotMax != -1))\n Assert.condition(annotMin <= annotMax,\n \"min isn't <= max: '\" + annotMin + \"', '\" + annotMax + \"'\");\n }", "private boolean hasEnoughInfoForBeaconMode() {\n return nsdController.getSocketManager().getConnections().size() >= 2\n && nodeManager.countConnectedNodes() >= 2;\n // TODO check node connected nodes.\n }", "private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }", "private void detectParkingSlot()\r\n\t{\t\t\r\n\t\tPoint PosS = new Point(0,0);\r\n\t\tPoint PosE = new Point(0,0);\r\n\t\t\r\n\t\tdouble sum_F = 0;\r\n\t\tdouble sum_B = 0;\r\n\t\t\r\n\t\tdouble distance_F = 0;\r\n\t\tdouble distance_B = 0;\r\n\t\t\r\n\t\tint SlotID = Pk_counter;\r\n\t\tINavigation.ParkingSlot.ParkingSlotStatus SlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\r\n\t\tshort axe = getHeadingAxe();\r\n\t\t\r\n\t\tfor (int i = 1; i <= 4; i++)\r\n\t\t{\r\n\t\t\tPk_DIST_FS[i] = Pk_DIST_FS[i-1];\r\n\t\t\tsum_F = Pk_DIST_FS[i] + sum_F;\r\n\t\t\t\r\n\t\t\tPk_DIST_BS[i] = Pk_DIST_BS[i-1];\r\n\t\t\tsum_B = Pk_DIST_BS[i] + sum_B;\r\n\t\t}\r\n\t\t\r\n\t\tPk_DIST_FS[0] = frontSensorDistance;\r\n\t\t//distance_F = (sum_F + Pk_DIST_FS[0])/5;\r\n\t\tdistance_F = frontSensorDistance;\r\n\t\t\r\n\t\tPk_DIST_BS[0] = backSideSensorDistance;\r\n\t\t//distance_B = (sum_B + Pk_DIST_BS[0])/5;\r\n\t\tdistance_B = backSideSensorDistance;\r\n\t\t\r\n\t\t//LCD.drawString(\"Dist_F: \" + (distance_F), 0, 6);\r\n\t\t//LCD.drawString(\"Dist_B: \" + (distance_B), 0, 7);\r\n\t\t\r\n\t\t// Saving the begin point of the PS\r\n\t\tif ((distance_F <= TRSH_SG) && (Pk_burstFS == 0))\r\n\t\t{\r\n\t\t\tPk_PosF1.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstFS = 1;\r\n\t\t\tPk_burstFE = 0;\r\n\t\t\t//Sound.beep();\r\n\t\t}\r\n\t\t\r\n\t\tif ((distance_B <= TRSH_SG) && (Pk_burstRS == 0))\r\n\t\t{\r\n\t\t\tPk_PosR1.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstRS = 1;\r\n\t\t\tPk_burstRE = 0;\r\n\t\t\t//Sound.twoBeeps();\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// Saving the end point of the PS\r\n\t\tif ((distance_F >= TRSH_SG) && (Pk_burstFE == 0))\r\n\t\t{\r\n\t\t\tPk_PosF2.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstFS = 0;\r\n\t\t\tPk_burstFE = 1;\r\n\t\t\t//Sound.beep();\r\n\t\t}\r\n\t\t\r\n\t\tif ((distance_B >= TRSH_SG) && (Pk_burstRE == 0))\r\n\t\t{\r\n\t\t\tPk_PosR2.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstRS = 0;\r\n\t\t\t//burstRE = 1;\r\n\t\t\t//Sound.twoBeeps();\r\n\t\t}\r\n\t\t\r\n\t\tif (Po_RoundF == 0)\t\t\t// Saving new parking slots\r\n\t\t{\t\r\n\t\t\tif ((Pk_burstRS == 0) && (Pk_burstRE == 0) && (Pk_counter < 10))\r\n\t\t\t{\r\n\t\t\t\tPosS.setLocation(((Pk_PosF1.getX() + Pk_PosR1.getX())/2), ((Pk_PosF1.getY() + Pk_PosR1.getY())/2));\r\n\t\t\t\tPosE.setLocation(((Pk_PosF2.getX() + Pk_PosR2.getX())/2), ((Pk_PosF2.getY() + Pk_PosR2.getY())/2));\r\n\t\t\t\t\r\n\t\t\t\t// Evaluation of the slot\r\n\t\t\t\tif (axe == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getX() - PosS.getX()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getY() - PosS.getY()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_slotList[Pk_counter] = new INavigation.ParkingSlot(SlotID, PosE, PosS, SlotStatus, 0);\r\n\t\t\t\tPk_counter ++;\r\n\t\t\t\t\r\n\t\t\t\tPk_burstRE = 1;\r\n\t\t\t\t\r\n\t\t\t\tSound.beepSequence();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\t\t\t\t\t// Updating the old slots\r\n\t\t{\r\n\t\t\tif ((Pk_burstRS == 0) && (Pk_burstRE == 0) && (Pk_update <= Pk_counter))\r\n\t\t\t{\r\n\t\t\t\tPosS.setLocation(((Pk_PosF1.getX() + Pk_PosR1.getX())/2), ((Pk_PosF1.getY() + Pk_PosR1.getY())/2));\r\n\t\t\t\tPosE.setLocation(((Pk_PosF2.getX() + Pk_PosR2.getX())/2), ((Pk_PosF2.getY() + Pk_PosR2.getY())/2));\r\n\t\t\t\t\r\n\t\t\t\t// Evaluation of the slot\r\n\t\t\t\tif (axe == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getX() - PosS.getX()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getY() - PosS.getY()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_slotList[Pk_update] = new INavigation.ParkingSlot(SlotID, PosE, PosS, SlotStatus, 0);\r\n\t\t\t\t\r\n\t\t\t\tif (Pk_update < Pk_counter)\r\n\t\t\t\t{\r\n\t\t\t\t\tPk_update ++;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tPk_update = 0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_burstRE = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn; // data are saved in the shared variable\r\n\t}", "public void sanityCheckNumNodes() {\n\t\tint sanity = viewedPos.sanityCheckGetNumberOfNodes();\n\t\tif(sanity != numPosRecorded) {\n\t\t\tSystem.err.println(\"ERROR: the number of nodes in the tree is not equal to the number of nodes added. #Added: \" + numPosRecorded + \" number received: \" + sanity);\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public void checkBounds() {\n for (int k = 0; k < numDataCols; k++) {\n DashDataType<?> dtype = dataTypes[k];\n\n if ( dtype instanceof StringDashDataType ) {\n StringDashDataType strtype = (StringDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = strtype.boundsCheckStandardValue((String) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else if ( dtype instanceof IntDashDataType ) {\n IntDashDataType inttype = (IntDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = inttype.boundsCheckStandardValue((Integer) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else if ( dtype instanceof DoubleDashDataType ) {\n DoubleDashDataType dbltype = (DoubleDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = dbltype.boundsCheckStandardValue((Double) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else {\n throw new IllegalArgumentException(\n \"unexpected data type encountered in bounds checking: \" + dtype);\n }\n }\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition) {\n super(readings);\n mInitialPosition = initialPosition;\n }", "protected final boolean checkLRPCoverage(final LocRefData locRefData) {\n\t\tList<LocRefPoint> locRefPoints = locRefData.getLocRefPoints();\n\t\tList<Line> locRoute = ExpansionHelper.getExpandedLocation(locRefData);\n\t\tint lrpLength = 0;\n\t\tList<Line> lrpRoute = new ArrayList<Line>();\n\t\tfor (LocRefPoint lrd : locRefPoints) {\n\t\t\tif (lrd.getRoute() != null) {\n\t\t\t\tif (!lrd.isLRPOnLine()) {\n\t\t\t\t\t// Added by DLR e.V. (RE)\n\t\t\t\t\tif (locRefData.getLocationType() == LocationType.CLOSED_LINE\n\t\t\t\t\t\t\t&& lrd == locRefPoints.get(locRefPoints.size() - 1)) {\n\t\t\t\t\t\tList<Line> route = lrd.getRoute();\n\t\t\t\t\t\troute.add(locRefPoints.get(0).getRoute().get(0));\n\t\t\t\t\t\tlrpRoute.addAll(route);\n\t\t\t\t\t\troute.remove(route.size() - 1);\n\t\t\t\t\t} else { // original code\n\t\t\t\t\t\tlrpRoute.addAll(lrd.getRoute());\n\t\t\t\t\t}\n\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t\t// Added by DLR e.V. (RE)\n\t\t\t\tif (locRefData.getLocationType() == LocationType.CLOSED_LINE\n\t\t\t\t\t\t&& lrd == locRefPoints.get(locRefPoints.size() - 1)) {\n\t\t\t\t\tList<Line> route = lrd.getRoute();\n\t\t\t\t\troute.add(locRefPoints.get(0).getRoute().get(0));\n\t\t\t\t\tlrpLength += PathUtils.getLength(route);\n\t\t\t\t\troute.remove(route.size() - 1);\n\t\t\t\t} else { // original code\n\t\t\t\t\tlrpLength += lrd.getDistanceToNext();\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t}\n\t\t}\n\t\t// check for the same amount of lines\n\t\tif (locRoute.size() != lrpRoute.size()) {\n\t\t\tLOG.error(\"number of lines are different\");\n\t\t\tLOG.error(\"location: \" + locRoute.size() + \" - locRef: \"\n\t\t\t\t\t+ lrpRoute.size());\n\t\t\treturn false;\n\t\t}\n\t\tint locationLength = 0;\n\t\tint count = locRoute.size();\n\t\t// check if the lines are equal and in the same order\n\t\tfor (int i = 0; i < count; ++i) {\n\t\t\tLine next = locRoute.get(i);\n\t\t\tif (next.getID() != lrpRoute.get(i).getID()) {\n\t\t\t\t// if a line is missing or in an incorrect order, then fail\n\t\t\t\tLOG.error(\"paths are different\");\n\t\t\t\tLOG.error(\"location line: \" + next.getID() + \" - locRef line: \"\n\t\t\t\t\t\t+ lrpRoute.get(i).getID());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tlocationLength += next.getLineLength();\n\t\t}\n\t\t// check that the location length and location reference path length are\n\t\t// equal\n\t\tif (locationLength != lrpLength) {\n\t\t\tLOG.error(\"lengths are different\");\n\t\t\tLOG.error(\"location: \" + locationLength + \" - locRef: \" + lrpLength);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Ensures(\"result != null\")\n public static MismatchCount getMismatchCount(GATKSAMRecord r, byte[] refSeq, int refIndex, int startOnRead, int nReadBases) {\n if ( r == null ) throw new IllegalArgumentException(\"attempting to calculate the mismatch count from a read that is null\");\n if ( refSeq == null ) throw new IllegalArgumentException(\"attempting to calculate the mismatch count with a reference sequence that is null\");\n if ( refIndex < 0 ) throw new IllegalArgumentException(\"attempting to calculate the mismatch count with a reference index that is negative\");\n if ( startOnRead < 0 ) throw new IllegalArgumentException(\"attempting to calculate the mismatch count with a read start that is negative\");\n if ( nReadBases < 0 ) throw new IllegalArgumentException(\"attempting to calculate the mismatch count for a negative number of read bases\");\n if ( refSeq.length - refIndex < (r.getAlignmentEnd() - r.getAlignmentStart()) )\n throw new IllegalArgumentException(\"attempting to calculate the mismatch count against a reference string that is smaller than the read\");\n\n MismatchCount mc = new MismatchCount();\n\n int readIdx = 0;\n final int endOnRead = startOnRead + nReadBases - 1; // index of the last base on read we want to count (note we are including soft-clipped bases with this math)\n final byte[] readSeq = r.getReadBases();\n final Cigar c = r.getCigar();\n final byte[] readQuals = r.getBaseQualities();\n for (final CigarElement ce : c.getCigarElements()) {\n\n if (readIdx > endOnRead)\n break;\n\n final int elementLength = ce.getLength();\n switch (ce.getOperator()) {\n case X:\n mc.numMismatches += elementLength;\n for (int j = 0; j < elementLength; j++)\n mc.mismatchQualities += readQuals[readIdx+j];\n case EQ:\n refIndex += elementLength;\n readIdx += elementLength;\n break;\n case M:\n for (int j = 0; j < elementLength; j++, refIndex++, readIdx++) {\n if (refIndex >= refSeq.length)\n continue; // TODO : It should never happen, we should throw exception here\n if (readIdx < startOnRead) continue;\n if (readIdx > endOnRead) break;\n byte refChr = refSeq[refIndex];\n byte readChr = readSeq[readIdx];\n // Note: we need to count X/N's as mismatches because that's what SAM requires\n //if ( BaseUtils.simpleBaseToBaseIndex(readChr) == -1 ||\n // BaseUtils.simpleBaseToBaseIndex(refChr) == -1 )\n // continue; // do not count Ns/Xs/etc ?\n if (readChr != refChr) {\n mc.numMismatches++;\n mc.mismatchQualities += readQuals[readIdx];\n }\n }\n break;\n case I:\n case S:\n readIdx += elementLength;\n break;\n case D:\n case N:\n refIndex += elementLength;\n break;\n case H:\n case P:\n break;\n default:\n throw new ReviewedGATKException(\"The \" + ce.getOperator() + \" cigar element is not currently supported\");\n }\n\n }\n return mc;\n }", "private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }", "protected void analyzeMark() {\n \t\tLog.e(\"MYT\", \"Maxedmoisture was \"+maxedmoisturelevel+\"Shift Amount= \" + (100-maxedmoisturelevel)/100);\n \n \t\t//Rate the mark\n \t\trating = 0;\n \t\talpharating=\"F\";\n \t\tcheckinmessage=\"I have no ownership of anything\";\n \n \t\t\t\n \tif(maxedmoisturelevel>50){\n \t\trating = 1;\n \t\talpharating=\"D\";\n \t\tcheckinmessage=\"I am so lame.\\nMYT score = \"+alpharating;\n \t}\n \tif(maxedmoisturelevel>200){\n \t\trating = 2;\n \t\talpharating=\"C\";\n \t\tcheckinmessage=\"I wasn't really here, just pretending.\\nMYT score = \"+alpharating;\n \n \t}\n \tif(maxedmoisturelevel>600){\n \t\trating = 3;\n \t\talpharating=\"B\";\n \t\tcheckinmessage=\"Yeah, look for me, IM HERE!\\nMYT score = \"+alpharating;\n \n \t}\n \tif(maxedmoisturelevel>850){\n \t\trating = 4;\n \t\talpharating=\"A\";\n \t\tcheckinmessage=\"THIS IS MY PLACE! PHYSICAL CHECK-IN!\\nMYT score = \"+alpharating;\n \n \t}\n \tif(maxedmoisturelevel>950){\n \t\trating = 5;\n \t\talpharating=\"AA\";\n \t\tcheckinmessage=\"I AM THE SUPREME RULER HERE! CLAIMED SO HARD! THE DIGITAL AND PHSYICAL REALMS ARE MINE!\\nMYT score = \"+alpharating;\n \n \t}\n \t\t\n \tLog.e(\"MYT\", \"rating= \"+rating+\" \" +alpharating);\n \n \t\tif(rating>0){\n \t\tString latitude = tvLatitude.getText().toString();\n \t\tString longitude = tvLongitude.getText().toString();\n \n \t\tdouble manipulatedlat = Double.valueOf(latitude)+(100-maxedmoisturelevel)/100;\n \t\tdouble manipulatedlon = Double.valueOf(longitude)+(100.00-maxedmoisturelevel)/100.00;\n \t\tLog.e(\"MYT\", \"Trying to physically check into= \" + currentVenue);\n \t\tcheckinmessage=URLEncoder.encode(checkinmessage);\n \t\tCheckIntoVenue(manipulatedlat, manipulatedlon, rating, alpharating, checkinmessage, currentVenueID);\n \t\tToast.makeText(BaseActivity.this, URLDecoder.decode(checkinmessage)+\" @\"+currentVenue, Toast.LENGTH_LONG).show();\n \n \t\t}\n \t\telse{\n \t\t\tToast.makeText(BaseActivity.this, URLDecoder.decode(checkinmessage)+\" @\"+currentVenue, Toast.LENGTH_LONG).show();\n \t\t}\n \t\t\n \t\t\n \t\t\n \t\t//Reset all the values for next check in\n \t\trating=-1;\n \t\talpharating=\"NA\";\n \t\tmaxedmoisturelevel=-1;\n \t\t\n \t}", "@Value.Check\n default void checkPreconditions()\n {\n RangeCheck.checkIncludedInInteger(\n this.feedback(),\n \"Feedback\",\n RangeInclusiveI.of(0, 7),\n \"Valid feedback values\");\n\n RangeCheck.checkIncludedInInteger(\n this.transpose(),\n \"Transpose\",\n RangeInclusiveI.of(-24, 24),\n \"Valid transpose values\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Level(),\n \"Pitch R1 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Rate(),\n \"Pitch R1 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Level(),\n \"Pitch R2 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Rate(),\n \"Pitch R2 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Level(),\n \"Pitch R3 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Rate(),\n \"Pitch R3 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Level(),\n \"Pitch R4 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Rate(),\n \"Pitch R4 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationDepth(),\n \"LFO Pitch Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid pitch modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationSensitivity(),\n \"LFO Pitch Modulation Sensitivity\",\n RangeInclusiveI.of(0, 7),\n \"Valid pitch modulation sensitivity values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoAmplitudeModulationDepth(),\n \"LFO Amplitude Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid amplitude modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoSpeed(),\n \"LFO Speed\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO speed values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoDelay(),\n \"LFO Delay\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO delay values\");\n }", "public boolean checkMissingLonLatTime() {\n\t\ttry {\n _locationsChecked = true;\n\t\t\tDouble[] longitudes = getSampleLongitudes();\n\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( longitudes[rowIdx] == null ) {\n\t\t\t\t\t_locationsOk = false;\n\t\t\t\t\tADCMessage msg = new ADCMessage();\n\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\t\t\tmsg.setRowIndex(rowIdx);\n\t\t\t\t\tmsg.setColIndex(longitudeIndex);\n\t\t\t\t\tmsg.setColName(userColNames[longitudeIndex]);\n\t\t\t\t\tString comment = \"missing longitude\";\n\t\t\t\t\tmsg.setGeneralComment(comment);\n\t\t\t\t\tmsg.setDetailedComment(comment);\n\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_locationsOk = false;\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"no longitude column\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(comment);\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n\t\ttry {\n\t\t\tDouble[] latitudes = getSampleLatitudes();\n\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( latitudes[rowIdx] == null ) {\n\t\t\t\t\t_locationsOk = false;\n\t\t\t\t\tADCMessage msg = new ADCMessage();\n\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\t\t\tmsg.setRowIndex(rowIdx);\n\t\t\t\t\tmsg.setColIndex(latitudeIndex);\n\t\t\t\t\tmsg.setColName(userColNames[latitudeIndex]);\n\t\t\t\t\tString comment = \"missing latitude\";\n\t\t\t\t\tmsg.setGeneralComment(comment);\n\t\t\t\t\tmsg.setDetailedComment(comment);\n\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_locationsOk = false;\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"no latitude column\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(comment);\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n//\t DashDataType<?> pressureColumn = findDataColumn(\"water_pressure\");\n//\t DashDataType<?> depthColumn = findDataColumn(\"sample_depth\");\n//\t if ( depthColumn != null ) {\n//\t\t\ttry {\n//\t\t\t\tDouble[] depths = getSampleDepths();\n//\t\t\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n//\t\t\t\t\tif ( depths[rowIdx] == null ) {\n//\t\t\t\t\t\tisOk = pressureColumn != null;\n//\t\t\t\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\t\t\t\tmsg.setSeverity(pressureColumn == null ? Severity.ERROR : Severity.WARNING);\n//\t\t\t\t\t\tmsg.setRowIndex(rowIdx);\n//\t\t\t\t\t\tmsg.setColIndex(sampleDepthIndex);\n//\t\t\t\t\t\tmsg.setColName(userColNames[sampleDepthIndex]);\n//\t\t\t\t\t\tString comment = \"missing sample depth\";\n//\t\t\t\t\t\tmsg.setGeneralComment(comment);\n//\t\t\t\t\t\tmsg.setDetailedComment(comment);\n//\t\t\t\t\t\tstdMsgList.add(msg);\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t} catch ( Exception ex ) {\n//\t\t\t ex.printStackTrace();\n//\t\t\t}\n//\t\t} else if ( pressureColumn == null ) {\n//\t\t\tisOk = false;\n//\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\tmsg.setSeverity(Severity.CRITICAL);\n//\t\t\tString comment = \"no sample depth column\";\n//\t\t\tmsg.setGeneralComment(comment);\n//\t\t\tmsg.setDetailedComment(comment);\n//\t\t\tstdMsgList.add(msg);\n//\t\t}\n\n\t\tDouble[] times = null;\n\t\ttry {\n _timesChecked = true;\n\t\t\ttimes = getSampleTimes();\n\t\t\tfor (int rowIdx = 0; _timesOk && rowIdx < numSamples; rowIdx++) {\n\t\t\t\tif ( times[rowIdx] == null ) {\n\t\t\t\t\t_timesOk = false;\n // XXX Messages are now added during the data standarization phase\n\t\t\t\t\t// in the StdUserDataArray constructor.\n//\t\t\t\t\tADCMessage msg = new ADCMessage();\n//\t\t\t\t\tmsg.setSeverity(Severity.CRITICAL);\n//\t\t\t\t\tmsg.setRowIndex(rowIdx);\n//\t\t\t\t\tString comment = \"incomplete sample date/time specification\";\n//\t\t\t\t\tmsg.setGeneralComment(\"Bad date/time value\");\n//\t\t\t\t\tmsg.setDetailedComment(comment);\n//\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( Exception ex ) {\n\t\t\t_timesOk = false;\n\t\t\tex.printStackTrace();\n\t\t\tADCMessage msg = new ADCMessage();\n\t\t\tmsg.setSeverity(Severity.CRITICAL);\n\t\t\tString comment = \"incomplete columns specifying sample date/time\";\n\t\t\tmsg.setGeneralComment(comment);\n\t\t\tmsg.setDetailedComment(ex.getMessage());\n\t\t\tstdMsgList.add(msg);\n\t\t}\n\n\t\treturn _locationsOk && _timesOk;\n\t}", "private void checkApple() {\n\n if ((xLength[0] == appleX[xApplePosition]) && (yLength[0] == appleY[yApplePosition])) {\n score++;\n snakeLength++;\n locateApple();\n }\n }", "public boolean[] map(LocusContext context, SAMRecord read) {\n boolean[] errorsPerCycle = new boolean[read.getReadLength() + 1];\n \n byte[] bases = read.getReadBases();\n byte[] contig = context.getReferenceContig().getBases();\n byte[] sq = (byte[]) read.getAttribute(\"SQ\");\n \n int totalMismatches = 0;\n \n for (int cycle = 0, offset = (int) context.getPosition(); cycle < bases.length; cycle++, offset++) {\n byte compBase;\n \n switch (contig[offset]) {\n case 'A':\n case 'a': compBase = 'A'; break;\n case 'C':\n case 'c': compBase = 'C'; break;\n case 'G':\n case 'g': compBase = 'G'; break;\n case 'T':\n case 't': compBase = 'T'; break;\n default: compBase = '.'; break;\n }\n \n if (compBase != '.') {\n if (useNextBestBase) {\n int nextBestBaseIndex = QualityUtils.compressedQualityToBaseIndex(sq[cycle]);\n byte nextBestBase;\n switch (nextBestBaseIndex) {\n case 0: nextBestBase = 'A'; break;\n case 1: nextBestBase = 'C'; break;\n case 2: nextBestBase = 'G'; break;\n case 3: nextBestBase = 'T'; break;\n default: nextBestBase = '.'; break;\n }\n \n if (nextBestBase != '.') {\n errorsPerCycle[cycle] = !(bases[cycle] == compBase || nextBestBase == compBase);\n totalMismatches = (!(bases[cycle] == compBase || nextBestBase == compBase)) ? 1 : 0;\n }\n } else {\n errorsPerCycle[cycle] = !(bases[cycle] == compBase);\n totalMismatches += (!(bases[cycle] == compBase)) ? 1 : 0;\n }\n }\n }\n \n /*\n if (totalMismatches > 4) {\n for (int cycle = 0; cycle < bases.length; cycle++) { System.out.print((char) bases[cycle]); } System.out.print(\"\\n\");\n for (int cycle = 0, offset = (int) context.getPosition(); cycle < bases.length; cycle++, offset++) { System.out.print((char) contig[offset]); } System.out.print(\"\\n\");\n System.out.println(totalMismatches + \"\\n\");\n }\n */\n\n // We encode that we saw a read in the last position of the array.\n // That way we know what to normalize by, and we get thread safety!\n errorsPerCycle[errorsPerCycle.length - 1] = true;\n \n return errorsPerCycle;\n }", "private boolean checkAddrInputFields(){\n \tboolean same = textFieldCurrents.get(jTextFieldStart).equals(jTextFieldStart.getText()) &&\n\t\t\t\ttextFieldCurrents.get(jTextFieldEnd).equals(jTextFieldEnd.getText()) &&\n\t\t\t\tjComboBoxFormat.getSelectedIndex() == selectedFormat &&\n\t\t\t\tjCheckBoxQuickSearch.isSelected() == quickSearch;\n \t\n \tif(DEBUG){\n \t\toutputResults(\"lasts:\");\n \t\toutputResults(textFieldCurrents.get(jTextFieldStart));\n\t\t\toutputResults(textFieldCurrents.get(jTextFieldEnd));\n\t\t\toutputResults(\"\"+jComboBoxFormat.getSelectedIndex()); \n\t\t\toutputResults(\"nows:\");\n\t\t\toutputResults(jTextFieldEnd.getText());\n\t\t\toutputResults(jTextFieldStart.getText());\n\t\t\toutputResults(\"\"+selectedFormat);\n \t}\n \t\n \tif(!same){\n \t\tjButtonGetDirections.setText(\"Find Directions!\");\n \t}else{\n \t\tjButtonGetDirections.setText(\"Refresh Map\");\n \t}\n \treturn same;\n }", "public void pollData() {\r\n\t\t// Will be something like \"LLL\", \"LRL\", \"RRR\", etc where\r\n\t\t// first character is our switch (\"L\" if on left, \"R\" if on right)\r\n\t\t// second character is scale (\"L\" if on left, \"R\" if on right)\r\n\t\t// third character is their switch (\"L\" if on left, \"R\" if on right)\r\n\t\tswitchPos = Position.Unknown;\r\n\t\tscalePos = Position.Unknown;\r\n\t\tString gameData = DriverStation.getInstance().getGameSpecificMessage();\r\n\t\t// Robot position is based on what driver has selected on dashboard\r\n\t\trobotStartPos = (Position) robotPositionChooser.getSelected();\r\n\t\tif (gameData.length() >= 2) {\r\n\t\t\tif (gameData.charAt(0) == 'L') {\r\n\t\t\t\tswitchPos = Position.Left;\r\n\t\t\t} else if (gameData.charAt(0) == 'R') {\r\n\t\t\t\tswitchPos = Position.Right;\r\n\t\t\t}\r\n\t\t\tif (gameData.charAt(1) == 'L') {\r\n\t\t\t\tscalePos = Position.Left;\r\n\t\t\t} else if (gameData.charAt(1) == 'R') {\r\n\t\t\t\tscalePos = Position.Right;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (switchPos == Position.Unknown || scalePos == Position.Unknown || robotStartPos == Position.Unknown) {\r\n\t\t\tstateKnown = false;\r\n\t\t} else {\r\n\t\t\tstateKnown = true;\r\n\t\t}\r\n\t}", "private void checkOffset() {\n\t\tfloat CurZ=mApplications.get(CurIndex).getZ();\r\n\t\tfloat diff=0;\r\n\t\tfloat offset=ApplicationInfo.getOffset();\r\n\t\tLog.d(TAG, \"checkOffset: \"+ApplicationInfo.Destination);\r\n\t\tif(ApplicationInfo.IsScrolling)\r\n\t\t{\r\n\t\t\tif(offset > 0 && CurZ < Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=diff;\r\n\t\t\t}\r\n\t\t\telse if(offset < 0 && CurZ > Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=-diff;\r\n\t\t\t}\r\n\t\t\tApplicationInfo.setOffset(offset);\r\n\t\t\treturn ;\r\n\t\t}\r\n \t\tswitch(ApplicationInfo.Destination)\r\n \t\t{\r\n \t\tcase Constants.TO_BACK:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.originPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_BACKWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FORWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FRONT:\r\n \t\t\tif((diff=glview.floorby2(Constants.disapearedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t\tApplicationInfo.setOffset(offset);\r\n\t}", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings,\n final P initialPosition,\n final RobustRssiRadioSourceEstimatorListener<S, P> listener) {\n super(readings, listener);\n mInitialPosition = initialPosition;\n }", "private RangingReadingLocated<S, P> createRangingReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RangingReadingLocated<>(reading.getSource(),\n reading.getDistance(), reading.getPosition(),\n reading.getDistanceStandardDeviation(),\n reading.getPositionCovariance());\n }", "public final int Available() {\n\t\treturn m_rxlen;\n\t}", "public static int compareSafetyComputations() {\n\t\tSystem.out.println(\"Distance,Duration,Exhalation,Derived,Inferred\");\n\t\tfinal boolean[] derived_results = new boolean[10];\n\t\tfinal boolean[] inferred_results = new boolean[10];\n\t\tint correctInferences = 0;\n\t\tfor(int i = 0; i < derived_results.length; i++) {\n\t\t\tfinal int randomDistance = (int) (Math.random() * (LARGE_DISTANCE * 3));\n\t\t\tfinal int randomDuration = (int) (Math.random() * (LARGE_DURATION * 3));\n\t\t\tfinal int randomExhalation = (int) (Math.random() * (LARGE_EXHALATION_LEVEL * 3));\n\t\t\tderived_results[i] = isDerivedSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tinferred_results[i] = isInferredSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tSystem.out.println(randomDistance + COMMA + randomDuration + COMMA \n\t\t\t\t\t\t\t\t+ randomExhalation + COMMA + derived_results[i] + COMMA\n\t\t\t\t\t\t\t\t+ inferred_results[i]);\n\t\t}\n\t\tfor(int j = 0; j < derived_results.length; j++) {\n\t\t\tif(derived_results[j] == inferred_results[j]) {\n\t\t\t\tcorrectInferences++;\n\t\t\t}\n\t\t}\n\t\treturn correctInferences;\n\t}", "private void checkBounds(int n) throws ParseException\n {\n if (pos + n > s.length())\n {\n throw new ParseException(format(\"Requested: %s, Available: %s\", n, remaining()));\n }\n }", "private void checkLocationAndBluetoothPermissions() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, \"This phone does not support Bluetooth 4.0. Bubble Hub Application requires Bluetooth 4.0 in order to operate.\", Toast.LENGTH_SHORT).show();\n finish();\n }\n\n if(!BluetoothAdapter.getDefaultAdapter().isEnabled()) { //if BT is present but is turned off\n CustomLogger.log(\"MainActivity: onCreate: Ask user to turn on BT.\");\n\n //Ask to the user turn the bluetooth on\n Intent turnBTon = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(turnBTon, 1);\n }\n\n if (Build.VERSION.SDK_INT >= 23) {\n if (!haveLocationPermissions()) {\n mDeviceList.setVisibility(View.GONE);\n mTopTextLinearLayout.setVisibility(View.GONE);\n mLocationPermissionWarningLinearLayout.setVisibility(View.VISIBLE);\n CustomLogger.log(\"MainActivity: onCreate: missing location permissions\");\n requestLocationPermission(this, LOCATION_PERMISSION_REQUEST_CODE);\n } else {\n CustomLogger.log(\"MainActivity: onCreate: got location permissions\");\n mLocationPermissionWarningLinearLayout.setVisibility(View.GONE);\n mDeviceList.setVisibility(View.VISIBLE);\n mTopTextLinearLayout.setVisibility(View.VISIBLE);\n }\n }\n }", "@Override\n public boolean isFinished() {\n double[] positions = drivetrain.getPositions();\n\n return Math.abs(positions[0] - targetDistance) <= allowedError && Math.abs(positions[1] - targetDistance) <= allowedError;\n }", "private boolean checkValid() {\n\t\tif(openRadio.isSelected()) {\n\t\t\t//Open loop mode.\n\t\t\treturn checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t} else {\n\t\t\t//Closed loop mode.\n\t\t\t//Check patient selected\n\t\t\t//Check QCore selected\n\t\t\t//Check BP monitor selected\n\t\t\t//Check target BP range\n\t\t\t//Check infusion rate.\n\t\t\treturn checkTargetBPRange() && checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t}\n\t}", "public int getNumber(Resource res, Location loc){\n\t\tif(res.equals(Resource.BRICKS)){\n\t\t\tdouble[] values = new double[3];\n\t\t\tdouble d1 = loc.distance(locBR2);\n\t\t\tdouble d2 = loc.distance(firstLocBR4);\n\t\t\tdouble d3 = loc.distance(secondLocBR4);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 3; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tif(minValue == d2 || minValue == d3){\n\t\t\t\treturn 4;\n\t\t\t}\n\n\t\t}\n\t\tif(res.equals(Resource.ORE)){\n\t\t\tdouble[] values = new double[3];\n\t\t\tdouble d1 = loc.distance(locOR3);\n\t\t\tdouble d2 = loc.distance(locOR6);\n\t\t\tdouble d3 = loc.distance(locOR8);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 3; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\tif(minValue == d2){\n\t\t\t\treturn 6;\n\t\t\t}\n\t\t\tif(minValue == d3){\n\t\t\t\treturn 8;\n\t\t\t}\n\t\t}\n\n\t\tif( res.equals(Resource.SHEEP) ){\n\t\t\tdouble[] values = new double[4];\n\t\t\tdouble d1 = loc.distance(locSH10);\n\t\t\tdouble d2 = loc.distance(locSH12);\n\t\t\tdouble d3 = loc.distance(locSH3);\n\t\t\tdouble d4 = loc.distance(locSH5);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tvalues[3] = d4;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 4; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 10;\n\t\t\t}\n\t\t\tif(minValue == d2){\n\t\t\t\treturn 12;\n\t\t\t}\n\t\t\tif(minValue == d3){\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\tif(minValue == d4){\n\t\t\t\treturn 5;\n\t\t\t}\n\t\t}\n\t\tif( res.equals(Resource.WOOD) ){\n\t\t\tdouble[] values = new double[4];\n\t\t\tdouble d1 = loc.distance(locWO10);\n\t\t\tdouble d2 = loc.distance(locWO8);\n\t\t\tdouble d3 = loc.distance(locWO9);\n\t\t\tdouble d4 = loc.distance(locWO5);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tvalues[3] = d4;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 4; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 10;\n\t\t\t}\n\t\t\tif(minValue == d2){\n\t\t\t\treturn 8;\n\t\t\t}\n\t\t\tif(minValue == d3){\n\t\t\t\treturn 9;\n\t\t\t}\n\t\t\tif(minValue == d4){\n\t\t\t\treturn 5;\n\t\t\t}\n\t\t}\n\t\tif( res.equals(Resource.WHEAT)){\n\t\t\tdouble[] values = new double[4];\n\t\t\tdouble d1 = loc.distance(locWH6);\n\t\t\tdouble d2 = loc.distance(locWH9);\n\t\t\tdouble d3 = loc.distance(firstLocWH11);\n\t\t\tdouble d4 = loc.distance(secondLocWH11);\n\t\t\tvalues[0] = d1;\n\t\t\tvalues[1] = d2;\n\t\t\tvalues[2] = d3;\n\t\t\tvalues[3] = d4;\n\t\t\tdouble minValue = 10000.00; //Absurdly high value to make sure the first value will always be lower\n\t\t\tfor(int x = 0; x < 4; x++){\n\t\t\t\tif(values[x] < minValue){\n\t\t\t\t\tminValue = values[x];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minValue == d1){\n\t\t\t\treturn 6;\n\t\t\t}\n\t\t\tif(minValue == d2){\n\t\t\t\treturn 9;\n\t\t\t}\n\t\t\tif(minValue == d3){\n\t\t\t\treturn 11;\n\t\t\t}\n\t\t\tif(minValue == d4){\n\t\t\t\treturn 11;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public void verifyPermissions(Activity activity) {\n\n int coarseLocation = ActivityCompat.checkSelfPermission(activity, PERMISSIONS_LOCATION[0]);\n int fineLocation = ActivityCompat.checkSelfPermission(activity, PERMISSIONS_LOCATION[1]);\n\n if (coarseLocation != PackageManager.PERMISSION_GRANTED || fineLocation != PackageManager.PERMISSION_GRANTED) {\n\n // No permission, so ask them\n ActivityCompat.requestPermissions(activity, PERMISSIONS_LOCATION, REQUEST_LOCATION_PERMISSION);\n\n } else {\n\n // Permission are granted. Check if GPS and bluetooth are enabled or send an alert to activate them\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 20000, 10, locationListener);\n if (!mBluetoothAdapter.isEnabled())\n if (mAlertBlue == null) {\n mAlertBlue = showAlert(ALERT_BLUE).create();\n }\n if (!mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n if (mAlertGps == null) {\n mAlertGps = showAlert(ALERT_GPS).create();\n mAlertGps.show();\n }\n }\n }\n }", "public void checkAvaliableElevators()\r\n\t{\r\n\t\tSystem.out.println(\"--------- Checking Elevators Current Status ------\");\t\r\n\t\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tfor(int i=0; i <numberOfElevators-3; i++) {\r\n\t\t\t\tavailableElevadors.add(occupiedElevadors.remove(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"--------- Elevators are available again ------\");\r\n\t\t\r\n\t\t}else {\r\n\t\t\tfor(int i=0;i<availableElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + availableElevadors.get(i).getElevatorNumber() +\" ready for Requests\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<occupiedElevadors.size();i++) {\r\n\t\t\t\tSystem.out.println(\" Elevator no \" + occupiedElevadors.get(i).getElevatorNumber() +\" is Occupied\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t}\r\n\r\n\t}", "private boolean checkScanFinished() {\n\t\treturn trimToEmpty(getCursor().getCursor()).equalsIgnoreCase(\"0\");\n\t}", "private void checkUpdateAvailability() {\n\t\t\n\t\t// Grab the data from the device and manifest\n\t\tString currentVersion = Utils.getProp(\"ro.ota.version\");\n\t\tcurrentVersion = currentVersion.replaceAll(\"[^0-9]\", \"\"); // Strip anyhting not a number\n\t\tString manifestVer = results.getVersion();\n\t\tmanifestVer = manifestVer.replaceAll(\"[^0-9]\", \"\");\n\n\t\t// Parse ints\n\t\tint manifestNumber = Integer.parseInt(manifestVer);\n\t\tint currentNumber = Integer.parseInt(currentVersion);\n\t\t\n\t\t// Pad out to be at least 5 digits long\n\t\t// That way, 1.2 shows bigger than 1.1.1\n\t\t// Because 12000 > 11100\n\t\t// Without this it would show 12 > 111\n\t\tif(manifestVer.length() <= 2){\n\t\t\tmanifestNumber *= 1000;\n\t\t} else if(manifestVer.length() <= 3) {\n\t\t\tmanifestNumber *= 100;\n\t\t} else if(manifestVer.length() <= 4) {\n\t\t\tmanifestNumber *= 10;\n\t\t}\n\t\t\n\t\t// Same again\n\t\tif(currentVersion.length() <= 2){\n\t\t\tcurrentNumber *= 1000;\n\t\t} else if(currentVersion.length() <= 3) {\n\t\t\tcurrentNumber *= 100;\n\t\t} else if(currentVersion.length() <= 4) {\n\t\t\tcurrentNumber *= 10;\n\t\t}\n\t\t\n\t\t// Set pref\n\t\tPreferences.setUpdateAvailable(mContext, manifestNumber > currentNumber);\n\t}", "public void checkInputs() {\n\n gearShift = driveStick.getXButtonReleased();\n slow = driveStick.getAButtonReleased();\n\n manualClimb = driveStick.getBumper(Hand.kLeft) && driveStick.getBumper(Hand.kRight);\n\n //climbToggle = driveStick.getBumperReleased(Hand.kLeft);\n climbToggle = false;\n climbRelease = driveStick.getStartButton();\n\n resetBalls = gunnerStick.getStartButtonReleased();\n visionShoot = gunnerStick.getBButtonReleased();\n manualShoot = gunnerStick.getYButton();\n distShoot = gunnerStick.getAButton();\n intakeToggle = gunnerStick.getBumperReleased(Hand.kRight);\n hoodToggle = gunnerStick.getBumperReleased(Hand.kLeft);\n intakeReverse = gunnerStick.getXButtonReleased();\n magazineReverse = gunnerStick.getBackButton();\n\n\n //Switch statement to determine controls for the driver\n switch (driverScheme) {\n case \"Reverse Turning\":\n XSpeed = -driveStick.getY(Hand.kLeft);\n ZRotation = driveStick.getX(Hand.kRight);\n break;\n default:\n XSpeed = driveStick.getY(Hand.kLeft);\n ZRotation = -driveStick.getX(Hand.kRight);\n break;\n }\n\n //Switch statement to determine controls for the gunner\n switch (gunnerScheme) {\n case \"Fun Mode\":\n\n discoToggle = gunnerStick.getBackButtonReleased();\n break;\n\n default:\n\n // if ((gunnerStick.getTriggerAxis(Hand.kRight) >= 0.75) && (gunnerStick.getTriggerAxis(Hand.kLeft) >= 0.75) && !overriding) {\n // overrideSafeties = !overrideSafeties;\n // overriding = true;\n // } else if ((gunnerStick.getTriggerAxis(Hand.kRight) <= 0.75) && (gunnerStick.getTriggerAxis(Hand.kLeft) <= 0.75)) {\n // overriding = false;\n // }\n\n break;\n }\n }", "public void determineDataPathPriority() {\n long calculatedTxBad;\n if (this.mCmi.isConnected() && this.mWifiInfo.getRssi() != -127 && this.mOldWifiRssi != -127) {\n logv(\"determineSubflowPriority: mIsSwitchBoardPerferDataPathWifi =\" + this.mIsSwitchBoardPerferDataPathWifi);\n long calculatedTxBad2 = this.mWifiInfo.txBad - this.mOldWifiTxBad;\n long calculatedTxRetriesRate = 0;\n long txFrames = (this.mWifiInfo.txSuccess + this.mWifiInfo.txBad) - (this.mOldWifiTxSuccess + this.mOldWifiTxBad);\n if (txFrames > 0) {\n calculatedTxRetriesRate = (this.mWifiInfo.txRetries - this.mOldWifiTxRetries) / txFrames;\n }\n logv(\"wifiMetric New [\" + String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txSuccess)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txBad)}) + \"]\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"wifiMetric Old [\");\n sb.append(String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mOldWifiRssi)}));\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxRetries)}));\n String str = \"]\";\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxSuccess)}));\n long calculatedTxBad3 = calculatedTxBad2;\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxBad)}));\n sb.append(str);\n logv(sb.toString());\n logv(\"wifiMetric [\" + String.format(\"RSSI: %4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"Retry: %4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries - this.mOldWifiTxRetries)}) + String.format(\"TXGood: %4d, \", new Object[]{Long.valueOf(txFrames)}) + String.format(\"TXBad: %4d, \", new Object[]{Long.valueOf(calculatedTxBad3)}) + String.format(\"RetryRate%4d\", new Object[]{Long.valueOf(calculatedTxRetriesRate)}) + str);\n int i = this.mIsSwitchBoardPerferDataPathWifi;\n if (i == 1) {\n if (calculatedTxRetriesRate <= 1 && calculatedTxBad3 <= 2) {\n calculatedTxBad = calculatedTxBad3;\n } else if (this.mWifiInfo.getRssi() >= -70 || this.mOldWifiRssi >= -70) {\n calculatedTxBad = calculatedTxBad3;\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Case0, triggered - txRetriesRate(\");\n sb2.append(calculatedTxRetriesRate);\n sb2.append(\"), txBad(\");\n long calculatedTxBad4 = calculatedTxBad3;\n sb2.append(calculatedTxBad4);\n sb2.append(\")\");\n logd(sb2.toString());\n setWifiDataPathPriority(0);\n long j = calculatedTxBad4;\n }\n if (this.mWifiInfo.getRssi() >= -85 || this.mOldWifiRssi >= -85) {\n long j2 = calculatedTxBad;\n } else {\n logd(\"Case1, triggered\");\n setWifiDataPathPriority(0);\n long j3 = calculatedTxBad;\n }\n } else {\n long calculatedTxBad5 = calculatedTxBad3;\n if (i == 0) {\n if (txFrames > 0 && calculatedTxRetriesRate < 1 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -75 && this.mOldWifiRssi > -75) {\n logd(\"Case2, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (txFrames > 0 && calculatedTxRetriesRate < 2 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -70 && this.mOldWifiRssi > -70) {\n logd(\"Case3, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (this.mWifiInfo.getRssi() > -60 && this.mOldWifiRssi > -60) {\n logd(\"Case4, triggered RSSI is higher than -60dBm\");\n setWifiDataPathPriority(1);\n }\n }\n }\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (this.mCmi.isConnected() && (this.mWifiInfo.getRssi() != -127 || this.mOldWifiRssi != -127)) {\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (!this.mCmi.isConnected() && this.mOldWifiRssi != -127) {\n this.mOldWifiRssi = -127;\n this.mOldWifiTxSuccess = 0;\n this.mOldWifiTxBad = 0;\n this.mOldWifiTxRetries = 0;\n }\n }", "private boolean updatePositions() {\n /*\n r14 = this;\n int r0 = r14.getFirstVisiblePosition()\n int r1 = r14.mFirstExpPos\n int r2 = r1 - r0\n android.view.View r2 = r14.getChildAt(r2)\n if (r2 != 0) goto L_0x001b\n int r1 = r14.getChildCount()\n int r1 = r1 / 2\n int r1 = r1 + r0\n int r0 = r1 - r0\n android.view.View r2 = r14.getChildAt(r0)\n L_0x001b:\n int r0 = r2.getTop()\n int r2 = r2.getHeight()\n int r3 = r14.getShuffleEdge(r1, r0)\n int r4 = r14.getDividerHeight()\n int r5 = r14.mFloatViewMid\n if (r5 >= r3) goto L_0x004c\n L_0x002f:\n if (r1 < 0) goto L_0x004a\n int r1 = r1 + -1\n int r2 = r14.getItemHeight(r1)\n if (r1 != 0) goto L_0x003c\n int r0 = r0 - r4\n int r0 = r0 - r2\n goto L_0x006e\n L_0x003c:\n int r2 = r2 + r4\n int r0 = r0 - r2\n int r2 = r14.getShuffleEdge(r1, r0)\n int r5 = r14.mFloatViewMid\n if (r5 >= r2) goto L_0x0048\n r3 = r2\n goto L_0x002f\n L_0x0048:\n r0 = r2\n goto L_0x006e\n L_0x004a:\n r0 = r3\n goto L_0x006e\n L_0x004c:\n int r5 = r14.getCount()\n L_0x0050:\n if (r1 >= r5) goto L_0x004a\n int r6 = r5 + -1\n if (r1 != r6) goto L_0x0059\n int r0 = r0 + r4\n int r0 = r0 + r2\n goto L_0x006e\n L_0x0059:\n int r2 = r2 + r4\n int r0 = r0 + r2\n int r2 = r1 + 1\n int r6 = r14.getItemHeight(r2)\n int r7 = r14.getShuffleEdge(r2, r0)\n int r8 = r14.mFloatViewMid\n if (r8 < r7) goto L_0x006d\n r1 = r2\n r2 = r6\n r3 = r7\n goto L_0x0050\n L_0x006d:\n r0 = r7\n L_0x006e:\n int r2 = r14.getHeaderViewsCount()\n int r4 = r14.getFooterViewsCount()\n r5 = 0\n int r6 = r14.mFirstExpPos\n int r7 = r14.mSecondExpPos\n float r8 = r14.mSlideFrac\n boolean r9 = r14.mAnimate\n if (r9 == 0) goto L_0x00c7\n int r9 = r0 - r3\n int r9 = java.lang.Math.abs(r9)\n int r10 = r14.mFloatViewMid\n if (r10 >= r0) goto L_0x008e\n r13 = r3\n r3 = r0\n r0 = r13\n L_0x008e:\n float r10 = r14.mSlideRegionFrac\n r11 = 1056964608(0x3f000000, float:0.5)\n float r10 = r10 * r11\n float r9 = (float) r9\n float r10 = r10 * r9\n int r9 = (int) r10\n float r10 = (float) r9\n int r0 = r0 + r9\n int r9 = r3 - r9\n int r12 = r14.mFloatViewMid\n if (r12 >= r0) goto L_0x00b0\n int r3 = r1 + -1\n r14.mFirstExpPos = r3\n r14.mSecondExpPos = r1\n int r3 = r14.mFloatViewMid\n int r0 = r0 - r3\n float r0 = (float) r0\n float r0 = r0 * r11\n float r0 = r0 / r10\n r14.mSlideFrac = r0\n goto L_0x00cb\n L_0x00b0:\n int r0 = r14.mFloatViewMid\n if (r0 < r9) goto L_0x00c7\n r14.mFirstExpPos = r1\n int r0 = r1 + 1\n r14.mSecondExpPos = r0\n r0 = 1065353216(0x3f800000, float:1.0)\n int r9 = r14.mFloatViewMid\n int r3 = r3 - r9\n float r3 = (float) r3\n float r3 = r3 / r10\n float r3 = r3 + r0\n float r3 = r3 * r11\n r14.mSlideFrac = r3\n goto L_0x00cb\n L_0x00c7:\n r14.mFirstExpPos = r1\n r14.mSecondExpPos = r1\n L_0x00cb:\n int r0 = r14.mFirstExpPos\n r3 = 1\n if (r0 >= r2) goto L_0x00d6\n r14.mFirstExpPos = r2\n r14.mSecondExpPos = r2\n r1 = r2\n goto L_0x00ea\n L_0x00d6:\n int r0 = r14.mSecondExpPos\n int r9 = r14.getCount()\n int r9 = r9 - r4\n if (r0 < r9) goto L_0x00ea\n int r0 = r14.getCount()\n int r0 = r0 - r4\n int r1 = r0 + -1\n r14.mFirstExpPos = r1\n r14.mSecondExpPos = r1\n L_0x00ea:\n int r0 = r14.mFirstExpPos\n if (r0 != r6) goto L_0x00f8\n int r0 = r14.mSecondExpPos\n if (r0 != r7) goto L_0x00f8\n float r0 = r14.mSlideFrac\n int r0 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1))\n if (r0 == 0) goto L_0x00f9\n L_0x00f8:\n r5 = 1\n L_0x00f9:\n int r0 = r14.mFloatPos\n if (r1 == r0) goto L_0x010e\n com.autonavi.minimap.widget.draglistview.DragSortListView$DragListener r0 = r14.mDragListener\n if (r0 == 0) goto L_0x010b\n com.autonavi.minimap.widget.draglistview.DragSortListView$DragListener r0 = r14.mDragListener\n int r4 = r14.mFloatPos\n int r4 = r4 - r2\n int r2 = r1 - r2\n r0.drag(r4, r2)\n L_0x010b:\n r14.mFloatPos = r1\n goto L_0x010f\n L_0x010e:\n r3 = r5\n L_0x010f:\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.autonavi.minimap.widget.draglistview.DragSortListView.updatePositions():boolean\");\n }", "public RobustRssiRadioSourceEstimator(\n final List<? extends RssiReadingLocated<S, P>> readings) {\n super(readings);\n }", "public int[] receiveDiscoverResponse()\n {\n final int minLenght = 3;\n int[] portsThresholds;\n try {\n String spot_address = \"\";\n while(!spot_address.equals(spotAddress)) {\n radioConn.receive(datagram);\n spot_address = datagram.readUTF();\n // System.out.println(\"Sun SPOT address \" + spotAddress + \" has received a discover response with the recipient of \" + spot_address);\n }\n \n \n int datagramLength = datagram.readInt();\n if(datagramLength < minLenght){\n portsThresholds = new int[3];\n for(int i = 0; i < 2; i++){\n portsThresholds[i] = -1;\n }\n return portsThresholds;\n }\n portsThresholds = new int[datagramLength];\n \n for (int i = 0;i < datagramLength; i += 3) {\n portsThresholds[i] = datagram.readInt();\n portsThresholds[i+1] = datagram.readInt();\n portsThresholds[i+2] = datagram.readInt();\n }\n \n \n \n return portsThresholds;\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public void tensionRangeCheck(){\n if(motor.get() < 0){\n if(Bottom_Limit_Switch.get() | tenPot.pidGet()> tenPotMAX ){\n motor.set(0.0);\n }\n }else if(motor.get() > 0){\n if(Top_Limit_Switch.get() | tenPot.pidGet()< tenPotMIN){\n motor.set(0.0);\n }\n }\n }", "private boolean reachableGap(int a_xmin, int a_xmax, int pos)\n {\n boolean reachableGap = false;\n int destinationY = GEBT_MarioAgent.MARIO_Y;\n if(pos-1 > m_cellsRun)\n {\n destinationY = GEBT_MarioAgent.MARIO_Y + (pos - 1 - m_cellsRun);\n reachableGap = !isObstacle(GEBT_MarioAgent.MARIO_X-1, GEBT_MarioAgent.MARIO_X,GEBT_MarioAgent.MARIO_Y, destinationY);\n }\n else if(pos-1 < m_cellsRun)\n {\n destinationY = GEBT_MarioAgent.MARIO_Y + (pos - 1 - m_cellsRun);\n reachableGap = !isObstacle(GEBT_MarioAgent.MARIO_X-1, GEBT_MarioAgent.MARIO_X, destinationY, GEBT_MarioAgent.MARIO_Y);\n }\n else reachableGap = true;\n\n //2nd check, there must be space for me over the gap\n if(reachableGap)\n {\n boolean obsInTop = isObstacle(a_xmin, a_xmin, destinationY+1, destinationY+1); //Identify where the obstacle is.\n boolean obsInDown = isObstacle(a_xmax, a_xmax, destinationY+1, destinationY+1);\n int hMin = a_xmin, hMax = a_xmax;\n if(obsInTop && !obsInDown)\n {\n//hMin = a_xmax;//THIS IS BAD\n//hMax = a_xmax + 1;//THIS IS BAD\n\n hMin = a_xmin-2; //THIS IS GOOD\n hMax = a_xmax-2; //THIS IS GOOD\n }else if(obsInDown)\n {\n//hMin = a_xmin + 2;//THIS IS BAD\n//hMax = a_xmax + 2;//THIS IS BAD\n hMin = a_xmin-1;//THIS IS GOOD\n hMax = a_xmax-1;//THIS IS GOOD\n }\n\n boolean marioSmall = marioMode == 0;\n if(marioSmall) hMax = hMin;\n reachableGap = !isObstacle(hMin, hMax, destinationY+1, destinationY+1); //Check if there is space enough for Mario to jump.\n }\n\n return reachableGap;\n }", "private int countReadjusting(int pos, int l){\n\t\treturn (yb[pos] + l * (int)pow(2,k));\n\t}", "private void ensureGettingGPSUpdates() {\n\t\t// It doesn't do any harm if we call this method repeatedly - we only ever end up subscribing once.\n\t\tMultiLocationProvider.getInstance().addListener(this);\n\t}", "private void m11061a(com.bigroad.ttb.android.vehicle.C2338a r7, long r8, java.util.ArrayList<com.bigroad.ttb.android.status.C2265b> r10) {\n /*\n r6 = this;\n r4 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320;\n if (r7 == 0) goto L_0x000c;\n L_0x0004:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.REQUIRED;\n r0 = r7.m11451a(r0);\n if (r0 != 0) goto L_0x000d;\n L_0x000c:\n return;\n L_0x000d:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x002d;\n L_0x0015:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0124;\n L_0x001d:\n r0 = r0.longValue();\n r2 = 20000; // 0x4e20 float:2.8026E-41 double:9.8813E-320;\n r0 = r0 + r2;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0124;\n L_0x0028:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.VAR_DATA_CORRUPTED;\n r6.m11060a(r2, r0, r10);\n L_0x002d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00e5;\n L_0x0035:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.TURBO_FIRMWARE_UPDATING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x0042;\n L_0x003d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.TURBO_FIRMWARE_UPDATING;\n r6.m11060a(r0, r8, r10);\n L_0x0042:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_INCOMPATIBLE;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x004f;\n L_0x004a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_NOT_COMPATIBLE;\n r6.m11060a(r0, r8, r10);\n L_0x004f:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x006d;\n L_0x0057:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0121;\n L_0x005f:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0121;\n L_0x0068:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_DETECTING;\n r6.m11060a(r2, r0, r10);\n L_0x006d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CURRENT;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00d2;\n L_0x0075:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.EOBR_TYPE_MATCH;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x0082;\n L_0x007d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WRONG_EOBR_TYPE;\n r6.m11060a(r0, r8, r10);\n L_0x0082:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_READINGS_VALID;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x008f;\n L_0x008a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x008f:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_CALIBRATED;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x009c;\n L_0x0097:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.UNCALIBRATED_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x009c:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ABSOLUTE_TIMESTAMP;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x00b7;\n L_0x00a4:\n r0 = r6.f7779m;\n if (r0 == 0) goto L_0x00b7;\n L_0x00a8:\n r0 = r6.f7779m;\n r0 = r0.mo1121o();\n r1 = com.bigroad.shared.eobr.EobrType.TURBO;\n if (r0 != r1) goto L_0x00b7;\n L_0x00b2:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WAITING_FOR_TURBO_GPS;\n r6.m11060a(r0, r8, r10);\n L_0x00b7:\n r0 = r7.m11449a();\n if (r0 == 0) goto L_0x00c2;\n L_0x00bd:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.RECONNECTING;\n r6.m11060a(r0, r8, r10);\n L_0x00c2:\n r0 = r6.f7780n;\n if (r0 != 0) goto L_0x00cb;\n L_0x00c6:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED_NOT_PLUGGED_IN;\n r6.m11060a(r0, r8, r10);\n L_0x00cb:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x00d2:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11453b(r0);\n if (r0 == 0) goto L_0x00b7;\n L_0x00da:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NOT_CURRENT;\n r6.m11060a(r2, r0, r10);\n goto L_0x00b7;\n L_0x00e5:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.SEARCHING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x00f2;\n L_0x00ed:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.SEARCHING;\n r6.m11060a(r0, r8, r10);\n L_0x00f2:\n r0 = com.bigroad.ttb.android.status.p031a.C2242a.C22408.f7760b;\n r1 = r7.m11455c();\n r1 = r1.ordinal();\n r0 = r0[r1];\n switch(r0) {\n case 1: goto L_0x0103;\n case 2: goto L_0x010a;\n case 3: goto L_0x0113;\n case 4: goto L_0x011a;\n default: goto L_0x0101;\n };\n L_0x0101:\n goto L_0x000c;\n L_0x0103:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_VIN_SPECIFIED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x010a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_DISABLED;\n r2 = 0;\n r6.m11060a(r0, r2, r10);\n goto L_0x000c;\n L_0x0113:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_UNSUPPORTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x011a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.DISCONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x0121:\n r0 = r8;\n goto L_0x0068;\n L_0x0124:\n r0 = r8;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bigroad.ttb.android.status.a.a.a(com.bigroad.ttb.android.vehicle.a, long, java.util.ArrayList):void\");\n }", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "public void checkUpdates(int timePerStep){\r\n\t\tif(updateStatistics_ || statisticsCountdown_ == -1){\r\n\t\t\tstatisticsCountdown_ -= timePerStep;\r\n\t\t\tif(statisticsCountdown_ < 1){\r\n\t\t\t\tstatisticsCountdown_ += STATISTICS_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateStatistics();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(updateBeaconInfo_){\r\n\t\t\tbeaconInfoCountdown_ -= timePerStep;\r\n\t\t\tif(beaconInfoCountdown_ < 1){\r\n\t\t\t\tbeaconInfoCountdown_ += BEACONINFO_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateBeaconInfo();\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "protected final boolean rangeTestNeeded() {\n\treturn needRangeTest;\n }", "private int checkCorners(int[] arr, int[] availableMoves) {\n for (int i = 0; i <= 6; i += 6) {\n int sum = arr[i] + arr[i + 1] + arr[i + 2];\n System.out.println(sum);\n if (sum == -1 && contains(availableMoves,i)) { \n return i;\n } \n }\n\n // Check verticals\n for (int i = 0; i < 3; i+=2) {\n int sum = arr[i] + arr[i + 3] + arr[i + 6];\n System.out.println(sum);\n if (sum == -1 && contains(availableMoves,i)) {\n return i;\n } \n }\n \n return -1;\n }", "private void getStrongestRSSI() {\n\t\tint index1, index2;\n\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\tfor(index2=0; index2<discoveredBeaconList.size()-1; index2++){\n\t\t\t\tBeacon bcn1 = discoveredBeaconList.get(index2);\n\t\t\t\tBeacon bcn2 = discoveredBeaconList.get(index2+1);\n\t\t\t\tSystem.out.println(bcn1.getId3().toString());\n\t\t\t\tif(bcn1.getRssi() < bcn2.getRssi())\n\t\t\t\t{\n\t\t\t\t\tdiscoveredBeaconList.set(index2, bcn2);\n\t\t\t\t\tdiscoveredBeaconList.set(index2+1, bcn1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(discoveredBeaconList.size()>=3){\n\t\t\tfor(index1=0; index1<3; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else if(discoveredBeaconList.size()==2){\n\t\t\tfor(index1=0; index1<discoveredBeaconList.size()-1; index1++){\n\t\t\t\tstrongestBeaconList.add(index1, discoveredBeaconList.get(index1));\n\t\t\t}\n\t\t}else{\n\t\t\tToast.makeText(getApplicationContext(), \"No beacon or just one beacon was discovered.\", Toast.LENGTH_LONG).show();\n\t\t}\t\n\t}", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n int coarseLocation = ActivityCompat.checkSelfPermission(this, PERMISSIONS_LOCATION[0]);\n int fineLocation = ActivityCompat.checkSelfPermission(this, PERMISSIONS_LOCATION[1]);\n\n switch (requestCode) {\n\n case (REQUEST_LOCATION_PERMISSION):\n\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Log.v(TAG, \"Permission Granted\");\n\n if (coarseLocation == PackageManager.PERMISSION_GRANTED && fineLocation == PackageManager.PERMISSION_GRANTED) {\n\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 20000, 10, locationListener);\n\n // Permission are granted. Check if GPS and bluetooth are enabled or send an alert to activate them\n if (!mBluetoothAdapter.isEnabled() && mAlertBlue == null)\n mAlertBlue = showAlert(ALERT_BLUE).create();\n if (!mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER) && mAlertGps == null) {\n mAlertGps = showAlert(ALERT_GPS).create();\n mAlertGps.show();\n }\n if (mBluetoothAdapter.isEnabled() && mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n Log.d(TAG, \"scanLeDevice(true) after permission and all enabled\");\n scanLeDevice(true);\n }\n }\n\n } else {\n\n Log.v(TAG, \"Permission NOT Granted\");\n showNegativeDialog(getResources().getString(R.string.perm_error_title),\n getResources().getString(R.string.perm_error_msg)\n );\n if (mLocationManager != null)\n mLocationManager.removeUpdates(locationListener);\n }\n break;\n\n default:\n break;\n }\n }", "public int available()\n {\n return ( _end - _pos );\n }", "private void checkIfR2D2Found() throws Exception {\n\t\tint tortoiseLocationX = Tortoise.getX();\n\t\tint tortoiseLocationY = Tortoise.getY();\n\n\t\tif (tortoiseLocationX <= 510 && tortoiseLocationX >= 505 && tortoiseLocationY >= 110 && tortoiseLocationY <= 115)\n\t\t\tplayEureka();\n\t}", "public void checkBounds() {\n\t\tfor (int k = 0; k < numDataCols; k++) {\n\t\t\tDashDataType<?> dtype = dataTypes[k];\n\n\t\t\tif ( dtype instanceof StringDashDataType ) {\n\t\t\t\tStringDashDataType strtype = (StringDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = strtype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(String) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof CharDashDataType ) {\n\t\t\t\tCharDashDataType chartype = (CharDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = chartype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Character) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof IntDashDataType ) {\n\t\t\t\tIntDashDataType inttype = (IntDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = inttype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Integer) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof DoubleDashDataType ) {\n\t\t\t\tDoubleDashDataType dbltype = (DoubleDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = dbltype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Double) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new IllegalArgumentException(\"unexpected data type encountered \" + \n\t\t\t\t\t\t\"in bounds checking: \" + dtype);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testGetFrequencyRange_invalidFrequencyMappingReturnsEmptyRange() {\n assertEquals(Range.create(0f, 0f), new VibratorInfo.Builder(\n TEST_VIBRATOR_ID).build().getFrequencyRange());\n assertEquals(Range.create(0f, 0f), new VibratorInfo.Builder(TEST_VIBRATOR_ID)\n .setFrequencyMapping(new VibratorInfo.FrequencyMapping(\n Float.NaN, 150, 25, 50, TEST_AMPLITUDE_MAP))\n .build().getFrequencyRange());\n assertEquals(Range.create(0f, 0f), new VibratorInfo.Builder(TEST_VIBRATOR_ID)\n .setFrequencyMapping(new VibratorInfo.FrequencyMapping(\n 50, Float.NaN, 25, 50, TEST_AMPLITUDE_MAP))\n .build().getFrequencyRange());\n assertEquals(Range.create(0f, 0f), new VibratorInfo.Builder(TEST_VIBRATOR_ID)\n .setFrequencyMapping(new VibratorInfo.FrequencyMapping(\n 50, 150, Float.NaN, 50, TEST_AMPLITUDE_MAP))\n .build().getFrequencyRange());\n assertEquals(Range.create(0f, 0f), new VibratorInfo.Builder(TEST_VIBRATOR_ID)\n .setFrequencyMapping(new VibratorInfo.FrequencyMapping(\n 50, 150, 25, Float.NaN, TEST_AMPLITUDE_MAP))\n .build().getFrequencyRange());\n assertEquals(Range.create(0f, 0f), new VibratorInfo.Builder(TEST_VIBRATOR_ID)\n .setFrequencyMapping(new VibratorInfo.FrequencyMapping(50, 150, 25, 50, null))\n .build().getFrequencyRange());\n // Invalid, minFrequency > resonantFrequency\n assertEquals(Range.create(0f, 0f), new VibratorInfo.Builder(TEST_VIBRATOR_ID)\n .setFrequencyMapping(new VibratorInfo.FrequencyMapping(\n /* minFrequencyHz= */ 250, /* resonantFrequency= */ 150, 25, 50, null))\n .build().getFrequencyRange());\n // Invalid, maxFrequency < resonantFrequency by changing resolution.\n assertEquals(Range.create(0f, 0f), new VibratorInfo.Builder(TEST_VIBRATOR_ID)\n .setFrequencyMapping(new VibratorInfo.FrequencyMapping(\n 50, 150, /* frequencyResolutionHz= */10, 50, null))\n .build().getFrequencyRange());\n }", "public void finishLengthCalculation(int rates[], int n) {\n if (ltype != LENGTH_NEAR_OPT) {\n // For the simple calculations the only thing we need to do is to\n // ensure that the calculated lengths are no greater than the\n // terminated one\n if (n > 0 && rates[n-1] > rates[n]) {\n // We need correction\n int tl = rates[n]; // The terminated length\n n--;\n do {\n rates[n--] = tl;\n } while (n >= 0 && rates[n] > tl);\n }\n }\n else {\n // We need to perform the more sophisticated near optimal\n // calculation.\n\n // The calculation of the length is based on the fact that the\n // decoder will pad the codestream with an endless string of\n // (binary) 1s after termination. If the codestream, padded with\n // 1s, is within the bounds of the current interval then correct\n // decoding is guaranteed. The lower inclusive bound of the\n // current interval is the value of C (i.e. if only lower\n // intervals would be coded in the future). The upper exclusive\n // bound of the current interval is C+A (i.e. if only upper\n // intervals would be coded in the future). We therefore calculate\n // the minimum length that would be needed so that padding with 1s\n // gives a codestream within the interval.\n\n // In order to know what will be appended to the current base of\n // the interval we need to know what is in the MQ bit stream after\n // the current last output byte until the termination. This is why\n // this calculation has to be performed after the MQ segment has\n // been entirely coded and terminated.\n\n int cLow; // lower bound on the C register for correct decoding\n int cUp; // upper bound on the C register for correct decoding\n int bLow; // lower bound on the byte buffer for correct decoding\n int bUp; // upper bound on the byte buffer for correct decoding\n int ridx; // index in the rates array of the pass we are\n // calculating\n int sidx; // index in the saved state array\n int clen; // current calculated length\n boolean cdFF; // the current delayed FF state\n int nb; // the next byte of output\n int minlen; // minimum possible length\n int maxlen; // maximum possible length\n\n // Start on the first pass of this segment\n ridx = n-nSaved;\n // Minimum allowable length is length of previous termination\n minlen = (ridx-1>=0) ? rates[ridx-1] : 0;\n // Maximum possible length is the terminated length\n maxlen = rates[n];\n for (sidx = 0; ridx < n; ridx++, sidx++) {\n // Load the initial values of the bounds\n cLow = savedC[sidx];\n cUp = savedC[sidx]+savedA[sidx];\n bLow = savedB[sidx];\n bUp = savedB[sidx];\n // Normalize to CT = 0 and propagate and reset any carry bits\n cLow <<= savedCT[sidx];\n if ((cLow & 0x8000000) != 0) {\n bLow++;\n cLow &= 0x7FFFFFF;\n }\n cUp <<= savedCT[sidx];\n if ((cUp & 0x8000000) != 0) {\n bUp++;\n cUp &= 0x7FFFFFF;\n }\n // Initialize current calculated length\n cdFF = savedDelFF[sidx];\n // rates[ridx] contains the number of bytes already output\n // when the state was saved, compensated for the offset in the\n // output stream.\n clen = rates[ridx]+(cdFF? 1 : 0);\n while (true) {\n // If we are at end of coded data then this is the length\n if (clen >= maxlen) {\n clen = maxlen;\n break;\n }\n // Check for sufficiency of coded data\n if (cdFF) {\n if (bLow < 128 && bUp >= 128) {\n // We are done for this pass\n clen--; // Don't need delayed FF\n break;\n }\n }\n else {\n if (bLow < 256 && bUp >= 256) {\n // We are done for this pass\n break;\n }\n }\n // Update bounds with next byte of coded data and\n // normalize to CT = 0 again.\n nb = (clen >= minlen) ? out.getByte(clen) : 0;\n bLow -= nb;\n bUp -= nb;\n clen++;\n if (nb == 0xFF) {\n bLow <<= 7;\n bLow |= (cLow >> 20) & 0x7F;\n cLow &= 0xFFFFF;\n cLow <<= 7;\n bUp <<= 7;\n bUp |= (cUp >> 20) & 0x7F;\n cUp &= 0xFFFFF;\n cUp <<= 7;\n cdFF = true;\n }\n else {\n bLow <<= 8;\n bLow |= (cLow >> 19) & 0xFF;\n cLow &= 0x7FFFF;\n cLow <<= 8;\n bUp <<= 8;\n bUp |= (cUp >> 19) & 0xFF;\n cUp &= 0x7FFFF;\n cUp <<= 8;\n cdFF = false;\n }\n // Test again\n }\n // Store the rate found\n rates[ridx] = (clen>=minlen) ? clen : minlen;\n }\n // Reset the saved states\n nSaved = 0;\n }\n }", "public void doCheckingMatl() {\n \tcheckIntPosMatl = true;\n \tcheckFloatPosMatl = true;\n \tif(!reactionsText.getText().equals(\"\")) {\n \t\tcheckIntPosMatl = checkIntPosMatl && checkPosIntValues(reactionsText);\n \t}\n \tif(!specificText.getText().equals(\"\")) {\n \t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(specificText);\n \t}\n\t\tif(!reactionText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(reactionText);\t\t\n \t}\n\t\tif(!referenceText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(referenceText);\n\t\t}\n\t\tif(!densityText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(densityText);\n\t\t}\n\t\tif(!conductivityText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(conductivityText);\n\t\t}\n }", "public static boolean checkSensors() {\n //Default booleans set to true\n rightLineDetect = true;\n leftLineDetect = true;\n \n //If the left sensor detects the line first\n if (Math.abs(leftRedVal - initialRedValue) > rgbThres) {\n leftMotor.stop(true);\n rightMotor.stop(false);\n //if the right sensor does not detect a line\n if(Math.abs(rightRedVal - initialRedValue) < rgbThres) {\n rightLineDetect = false;\n return false;\n }\n }\n \n //if the right sensor detects the line first\n else if(Math.abs(rightRedVal - initialRedValue) > rgbThres) {\n leftMotor.stop(true);\n rightMotor.stop(false);\n //if the left sensor does not detect a line\n if(Math.abs(leftRedVal - initialRedValue) < rgbThres) {\n leftLineDetect = false;\n return false;\n }\n }\n return true;\n }", "public static ArrayList<Integer>[] checkthresholdBiggest(int numberlocations, ArrayList<Integer>[] allocPolys, ArrayList<Double>[] polys, ArrayList<String>[] polysGeometry,List<Integer> neighbourPolyIds, ArrayList<Integer>[] neighbourNeighbours) throws SQLException{\n\t\tboolean satisfied=false;\n\t\tList<Integer> tempbufferlist = new ArrayList<Integer>();\n\t\t\n\t\tint lastPolyID=-1;\n\t\tint lastArea=-1;\n\t\tList<Integer> changedIds = new ArrayList<Integer>();\n\t\t\n\t\t//rearrange while no balance is achieved\n\t\twhile (!satisfied){\n\t\t\tint threshold = 30;\n\t\t\tint[] compCriterias = new int[numberlocations];\n\t\t\tfor (int i=0; i<numberlocations; i++) compCriterias[i]=0;\n\t\t\t\n\t\t\t//check balance\n\t\t\tfor (int i=0; i<numberlocations;i++){\n\t\t\t\tfor (int j=0;j<numberlocations;j++){\n\t\t\t\t\tif (j!=i){\n\t\t\t\t\t\tif (criteriaf[i]<criteriaf[j]){\n\t\t\t\t\t\t\tif (100-(criteriaf[j]*100/criteriaf[i])>-threshold)\n\t\t\t\t\t\t\t\tcompCriterias[i]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tif ((criteriaf[j]*100/criteriaf[i])-100< threshold)\n\t\t\t\t\t\t\t\tcompCriterias[i]++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint no=0;\n\t\t\t\n\t\t\t//rearrange if balance is not reached, check every territory centre\n\t\t\tfor (int i=0; i<numberlocations;i++){\t\t\t\n\t\t\t\tif (compCriterias[i]!=(numberlocations-1)){\n\t\t\t\t\tdouble[] criteriaBuffer = new double[numberlocations];\n\t\t\t\t\t\n\t\t\t\t\tfor (int j=0; j<criteriaBuffer.length;j++){\n\t\t\t\t\t\tcriteriaBuffer[j]=criteriaf[j];\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t\t//sort activity measures from highest to smallest\n\t\t\t\t\t//criteriaBuffer[0] territory with highest activity measure\n\t\t\t\t\tfor (int j = 0; j < criteriaBuffer.length - 1; j++)\n\t\t\t {\n\t\t\t int index = j;\n\t\t\t for (int k = j + 1; k < criteriaBuffer.length; k++)\n\t\t\t if (criteriaBuffer[k] > criteriaBuffer[index])\n\t\t\t index = k;\n\t\t\t double greaterNumber = criteriaBuffer[index]; \n\t\t\t criteriaBuffer[index] = criteriaBuffer[j];\n\t\t\t criteriaBuffer[j] = greaterNumber;\n\t\t\t }\n\t\t\t\t\t\n\t\t\t\t\tint locBiggest=-1;\n\t\t\t\t\t\n\t\t\t\t\tfor (int j=0;j<numberlocations;j++){\n\t\t\t\t\t\tif (criteriaf[j]==criteriaBuffer[0]){\n\t\t\t\t\t\t\tlocBiggest=j;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//determine neighbours of territory with highest activity measure\n\t\t\t\t\tList<Integer> actNeighbours = new ArrayList<Integer>();\n\t\t\t\t\t\n\t\t\t\t\tfor (int j=0;j<numberlocations;j++){\n\t\t\t\t\t\tif (j!=locBiggest){\n\t\t\t\t\t\t\tboolean neighbour=false;\n\t\t\t\t\t\t\tint pos=0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (pos<allocPolys[locBiggest].size() && neighbour==false){\n\t\t\t\t\t\t\t\t//check every allocated basic area whether it is a neighbour of one of the basic areas of another territory\n\t\t\t\t\t\t\t\t//take basic area of locBiggest and check to every basic area of centre\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tint actPoly = allocPolys[locBiggest].get(pos);\n\t\t\t\t\t\t\t\tint posActPoly = neighbourPolyIds.indexOf(actPoly);\n\t\t\t\t\t\t\t\tboolean neighbourfound=false;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(int k=0;k<allocPolys[j].size();k++){\n\t\t\t\t\t\t\t\t\tint comparePoly = allocPolys[j].get(k);\n\t\t\t\t\t\t\t\t\tfor (int l=0;l<neighbourNeighbours[posActPoly].size();l++){\n\t\t\t\t\t\t\t\t\t\tif (neighbourNeighbours[posActPoly].get(l).equals(comparePoly) && !neighbourfound){\n\t\t\t\t\t\t\t\t\t\t\tneighbour=true;\n\t\t\t\t\t\t\t\t\t\t\tactNeighbours.add(j);\n\t\t\t\t\t\t\t\t\t\t\tneighbourfound=true;\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\t\n\t\t\t\t\t\t\t\tpos++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//determine that territory of neighboured territories with smallest activity measure\n\t\t\t\t\tdouble minsum=-1;\n\t\t\t\t\tboolean first=true;\n\t\t\t\t\tint locMinsum=-1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<numberlocations;j++){\n\t\t\t\t\t\tboolean found=false;\n\t\t\t\t\t\tint posLoc=0;\n\t\t\t\t\t\twhile (!found){\n\t\t\t\t\t\t\tif (actNeighbours.get(posLoc)==j){\n\t\t\t\t\t\t\t\tif (first){\n\t\t\t\t\t\t\t\t\tfirst=false;\n\t\t\t\t\t\t\t\t\tminsum=criteriaf[j];\n\t\t\t\t\t\t\t\t\tlocMinsum=j;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tif (criteriaf[j]<minsum){\n\t\t\t\t\t\t\t\t\t\tlocMinsum=j;\n\t\t\t\t\t\t\t\t\t\tminsum=criteriaf[j];\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\t\n\t\t\t\t\t\t\t\tfound=true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ((posLoc+1)<actNeighbours.size()){\n\t\t\t\t\t\t\t\tposLoc++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tfound=true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//give locMinSum 1 basic area of locbiggest\n\t\t\t\t\tint polyID = allocPolys[locBiggest].get(0).intValue();\n\t\t\t\t\tSystem.out.println(polyID);\n\t\t\t\t\tdouble minDist = polys[locMinsum+1].get(polys[0].indexOf(Double.valueOf(polyID)));\n\t\t\t\t\t\n\t\t\t\t\tfor (int l=1;l<allocPolys[locBiggest].size();l++){\n\t\t\t\t\t\tdouble actDist = polys[locMinsum+1].get(polys[0].indexOf(Double.valueOf(allocPolys[locBiggest].get(l))));\n\t\t\t\t\t\tif (locBiggest==2){\n\t\t\t\t\t\t\tSystem.out.println(\"here\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (actDist<minDist && !changedIds.contains(allocPolys[locBiggest].get(l).intValue())){\n\t\t\t\t\t\t\tminDist=actDist;\n\t\t\t\t\t\t\tpolyID=allocPolys[locBiggest].get(l).intValue();\n\t\t\t\t\t\t\tchangedIds.add(polyID);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//add polyID of basic area to locMinsum and remove from locbiggest\n\t\t\t\t\tSystem.out.println(\"Set to \"+(locMinsum+1)+\" remove \"+polyID+\" from \"+(locBiggest+1));\n\t\t\t\t\tallocPolys[locBiggest].remove(Integer.valueOf(polyID));\n\t\t\t\t\tallocPolys[locMinsum].add(polyID);\n\t\t\t\t\tcriteriaf=addToCriteria(polyID, locMinsum+1, locBiggest+1, criteriaf, true,polysGeometry);\n\t\t\t\t}\n\t\t\t\telse no++;\n\t\t\t}\n\t\t\t\n\t\t\tif (no==numberlocations){\n\t\t\t\tsatisfied=true;\n\t\t\t}\n\t\t}\n\t\treturn allocPolys;\n\t\n}", "private void process () {\r\n\r\n ArrayList<String> anomaly;\r\n ArrayList<DataInfo> tmp = new ArrayList<>();\r\n int appState, screenState, screenOrientation, closeToObject, opID;\r\n long permissionCount;\r\n double scanDuration;\r\n String packageName, permission, accessTime;\r\n\r\n // get the data in the given scope (from offset, limit rows)\r\n Cursor cursor = sqliteDBHelper.get_data(\"SELECT \" + SqliteDBStructure.PACKAGE_NAME + \", \"\r\n + SqliteDBStructure.PERMISSION + \", \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \", \"\r\n + SqliteDBStructure.APP_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_ORIENTATION + \", \"\r\n + SqliteDBStructure.CLOSE_TO_OBJECT\r\n + \" FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME\r\n + \" LIMIT \" + limit + \" OFFSET \" + offset);\r\n\r\n try {\r\n if (cursor != null) {\r\n cursor.moveToFirst();\r\n\r\n while (!cursor.isAfterLast()) {\r\n packageName = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.PACKAGE_NAME));\r\n opID = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.PERMISSION));\r\n permission = Permission.opIDToName(opID);\r\n accessTime = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.ACCESS_TIME));\r\n appState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.APP_STATE));\r\n screenState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_STATE));\r\n screenOrientation = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_ORIENTATION));\r\n closeToObject = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.CLOSE_TO_OBJECT));\r\n\r\n permissionCount = DatabaseUtils.longForQuery(sqliteDBHelper.getReadableDatabase(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE + \" WHERE \" + SqliteDBStructure.PACKAGE_NAME + \" = '\" + packageName + \"' \" + \" AND \" + SqliteDBStructure.PERMISSION + \" = '\" + opID + \"';\", null);\r\n\r\n //Scan duration in Minutes\r\n scanDuration = (((double) stop_scan_time.getTime() + (double) start_scan_time.getTime()) / 1000 )/ 60;\r\n //check for anomaly by ruleset class\r\n anomaly = RuleSet.checkForAnomaly(packageName, permission, permissionCount, appState, screenState, screenOrientation, closeToObject, scanDuration, context);\r\n\r\n //Send data to server or save it locally, if no valid internet connection is available\r\n if (networking) {\r\n sendRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n MyClient.POST_Anomaly(packageName, permission, anomaly.get(1), \"0\");\r\n } else {\r\n saveRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n saveAnomaliesImage(packageName, permission, anomaly.get(1), 0);\r\n }\r\n\r\n // create a info object which holds all the necessary information about that data block and store it temporarily in a list\r\n DataInfo info = new DataInfo(packageName, Permission.opIDToDescription(opID), accessTime, permissionCount, anomaly.get(0), anomaly.get(1), scanTime, 0);\r\n tmp.add(info);\r\n\r\n // should the size of the temporary list exceeds MaxBatchSize, write list to the local DB and clear the temp list afterwards \r\n // technically this cannot happen but we are working with threads here so better be safe than sorry\r\n // temp list should not be to big, because we have have to hold task amount of temp list, with each containing around MaxBatchSize entries, in memory at the same time\r\n if (tmp.size() > MaxBatchSize) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n\r\n cursor.moveToNext();\r\n }\r\n\r\n }\r\n } finally {\r\n if (cursor != null) {\r\n cursor.close();\r\n }\r\n }\r\n\r\n // write the data stored in the temp list to the local DB \r\n if (tmp.size() > 0) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n // inform the progress dialog that a task has been finished\r\n updateProgressDialog();\r\n // decrease the amount of ongoing tasks by 1\r\n decreaseTasks();\r\n }", "protected void validateRxRangeList(cwterm.service.rigctl.xsd.FreqRange[] param) {\n }", "protected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\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\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\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\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\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\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "protected void checkReceivePermission() throws InterruptedIOException {\n\t/* Check if we have permission to recieve. */\n\tif (!readPermission) {\n\t try {\n\t\tmidletSuite.checkForPermission(Permissions.SMS_RECEIVE,\n\t\t\t\t\t\t\"sms:receive\");\n\t\treadPermission = true;\n\t } catch (InterruptedException ie) {\n\t\tthrow new InterruptedIOException(\"Interrupted while trying \" +\n\t\t\t\t\t\t \"to ask the user permission\");\n\t }\n\t}\n }", "public void testBoardAvailablePositions() {\n \tassertTrue(board6.hasAvailablePositionsForTile());\n \tList<PlacementLocation> expected = new ArrayList<PlacementLocation>();\n \tboard6.place(new Placement(Color.RED, 5, 21, Color.RED, 4, 16));\n \tboard6.place(new Placement(Color.RED, 4, 12, Color.RED, 5, 14));\n \tboard6.place(new Placement(Color.RED, 4, 8, Color.RED, 5, 11));\n \tboard6.place(new Placement(Color.RED, 5, 4, Color.RED, 4, 4));\n \tboard6.place(new Placement(Color.RED, 5, 1, Color.RED, 4, 0));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(5, 26))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 20))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(5, 24))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 29))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 30))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(6, 31))));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(5, 23))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(3, 15))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(5, 27))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 33))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 35))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 37))));\n \t\n \t\n \tfor (PlacementLocation location : board6.getAvailablePositionsForTile()) {\n \t\tif (!expected.contains(location))\n \t\t\tSystem.out.println(\"expected does not contain location: \" + location);\n \t}\n \tSet<PlacementLocation> locations = board6.getAvailablePositionsForTile();\n \tfor (PlacementLocation location : locations) {\n \t\tSystem.out.println(location);\n \t}\n \tfor (PlacementLocation location : expected) {\n \t\tif (!locations.contains(location))\n \t\t\tSystem.out.println(\"expected2 does not contain location: \" + location);\n \t}\n \t\n \tassertEquals(expected, board6.getAvailablePositionsForTile());\n \t\n \t\n }", "private int searchNumberOfAvailableSeats(@SuppressWarnings(\"rawtypes\") PropertySource ps) {\n\t\tString levelString = (String) ps.getProperty(LEVEL.toString());\n\t\tOptional<Integer> venueLevel = StringUtils.isEmpty(levelString) ? Optional.empty() : Optional.of(Integer.valueOf( levelString ));\n\t\treturn ticketService.numSeatsAvailable(venueLevel);\n\t}", "public void checkDataOrder(Double[] times) {\n Double[] longitudes;\n Double[] latitudes;\n try {\n longitudes = getSampleLongitudes();\n latitudes = getSampleLatitudes();\n } catch ( Exception ex ) {\n // Messages about problems getting the longitudes or latitudes should already have been generated\n return;\n }\n TreeSet<DataLocation> orderedSet = new TreeSet<DataLocation>();\n for (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n if ( times[rowIdx] != null ) {\n DataLocation dataLoc = new DataLocation();\n // Messages about missing longitude, latitude, or times should already have been generated\n if ( (times[rowIdx] == null) || (longitudes[rowIdx] == null) || (latitudes[rowIdx] == null) )\n continue;\n dataLoc.setDataDate(new Date(Math.round(times[rowIdx] * 1000.0)));\n dataLoc.setLongitude(longitudes[rowIdx]);\n dataLoc.setLatitude(latitudes[rowIdx]);\n dataLoc.setRowNumber(rowIdx + 1);\n if ( !orderedSet.add(dataLoc) )\n throw new RuntimeException(\"Unexpected duplicate data location with row number\");\n }\n }\n\n // TODO: needs a better method of figuring out which rows are actually misordered\n // the following works okay if there is only one block of misordered data\n // or if multiple blocks are consistent in the \"direction\" they are misordered.\n\n double[] maxSpeeds = DashboardConfigStore.getMaxCalcSpeedsKnots();\n double[] maxTimeGaps = DashboardConfigStore.getMaxTimeGapsDays();\n\n // The following will say:\n // 4,5,6 are misordered in 1,2,3,7,8,9,4,5,6,10,11,12;\n // 1,2 are misordered in 3,4,1,2,5,6\n // 3 is misordered in 1,2,4,5\n TreeSet<Integer> forwardErrs = new TreeSet<Integer>();\n ArrayList<ADCMessage> forwardSpeedMsgs = new ArrayList<ADCMessage>();\n ArrayList<ADCMessage> forwardTimeGapMsgs = new ArrayList<ADCMessage>();\n int lastRowNum = 0;\n int expectedRowNum = 1;\n for (DataLocation dataLoc : orderedSet) {\n int actualRowNum = dataLoc.getRowNumber();\n while ( expectedRowNum < actualRowNum ) {\n forwardErrs.add(expectedRowNum);\n expectedRowNum += 1;\n }\n if ( expectedRowNum == actualRowNum ) {\n if ( lastRowNum > 0 ) {\n double kmdelta = DashboardServerUtils.distanceBetween(longitudes[actualRowNum - 1],\n latitudes[actualRowNum - 1], longitudes[lastRowNum - 1], latitudes[lastRowNum - 1]);\n double hourdelta = (times[actualRowNum - 1] - times[lastRowNum - 1]) / 3600.0;\n double speed = 0.539957 * kmdelta / hourdelta;\n if ( (speed < 0.0) || (hourdelta < 0.0) ) {\n // Just to make sure the calculation was done correctly\n throw new RuntimeException(\"Negative calculated speed or time gap obtained\");\n }\n else if ( speed > maxSpeeds[1] ) {\n // Add one message at this time - later repeat with all the columns\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.ERROR);\n msg.setRowNumber(actualRowNum);\n msg.setGeneralComment(String.format(\n \"calculated speed exceeds %g knots\", maxSpeeds[1]));\n msg.setDetailedComment(String.format(\n \"calculated speed of %g knots exceeds %g knots\", speed, maxSpeeds[1]));\n forwardSpeedMsgs.add(msg);\n }\n else if ( speed > maxSpeeds[0] ) {\n // Add one message at this time - later repeat with all the columns\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.WARNING);\n msg.setRowNumber(actualRowNum);\n msg.setGeneralComment(String.format(\n \"calculated speed exceeds %g knots\", maxSpeeds[0]));\n msg.setDetailedComment(String.format(\n \"calculated speed of %g knots exceeds %g knots\", speed, maxSpeeds[0]));\n forwardSpeedMsgs.add(msg);\n }\n else if ( hourdelta > 24.0 * maxTimeGaps[1] ) {\n // Add one message at this time - later repeat with all the columns\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.ERROR);\n msg.setRowNumber(actualRowNum);\n msg.setGeneralComment(String.format(\n \"time between consecutive measurements exceeds %g days\", maxTimeGaps[1]));\n msg.setDetailedComment(String.format(\n \"time between consecutive measurements %g days exceeds %g days\",\n hourdelta / 24.0, maxTimeGaps[1]));\n forwardTimeGapMsgs.add(msg);\n }\n else if ( hourdelta > 24.0 * maxTimeGaps[0] ) {\n // Add one message at this time - later repeat with all the columns\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.WARNING);\n msg.setRowNumber(actualRowNum);\n msg.setGeneralComment(String.format(\n \"time between consecutive measurements exceeds %g days\", maxTimeGaps[0]));\n msg.setDetailedComment(String.format(\n \"time between consecutive measurements %g days exceeds %g days\",\n hourdelta / 24.0, maxTimeGaps[0]));\n forwardTimeGapMsgs.add(msg);\n }\n }\n lastRowNum = actualRowNum;\n expectedRowNum += 1;\n }\n }\n // The following will say:\n // 7,8,9 are misordered in 1,2,3,7,8,9,4,5,6,10,11,12;\n // 3,4 are misordered in 3,4,1,2,5,6\n // 3 is misordered in 1,2,4,5\n TreeSet<Integer> reverseErrs = new TreeSet<Integer>();\n ArrayList<ADCMessage> reverseSpeedMsgs = new ArrayList<ADCMessage>();\n ArrayList<ADCMessage> reverseTimeGapMsgs = new ArrayList<ADCMessage>();\n lastRowNum = 0;\n expectedRowNum = numSamples;\n for (DataLocation dataLoc : orderedSet.descendingSet()) {\n int actualRowNum = dataLoc.getRowNumber();\n while ( expectedRowNum > actualRowNum ) {\n reverseErrs.add(expectedRowNum);\n expectedRowNum -= 1;\n }\n if ( expectedRowNum == actualRowNum ) {\n if ( lastRowNum > 0 ) {\n double kmdelta = DashboardServerUtils.distanceBetween(longitudes[lastRowNum - 1],\n latitudes[lastRowNum - 1], longitudes[actualRowNum - 1], latitudes[actualRowNum - 1]);\n double hourdelta = (times[lastRowNum - 1] - times[actualRowNum - 1]) / 3600.0;\n double speed = 0.539957 * kmdelta / hourdelta;\n if ( (speed < 0.0) || (hourdelta < 0.0) ) {\n // Just to make sure the calculation was done correctly\n throw new RuntimeException(\"Negative calculated speed or time gap obtained\");\n }\n else if ( speed > maxSpeeds[1] ) {\n // Add one message at this time - later repeat with all the columns\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.ERROR);\n msg.setRowNumber(actualRowNum);\n msg.setGeneralComment(String.format(\n \"calculated speed exceeds %g knots\", maxSpeeds[1]));\n msg.setDetailedComment(String.format(\n \"calculated speed of %g knots exceeds %g knots\", speed, maxSpeeds[1]));\n reverseSpeedMsgs.add(msg);\n }\n else if ( speed > maxSpeeds[0] ) {\n // Add one message at this time - later repeat with all the columns\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.WARNING);\n msg.setRowNumber(actualRowNum);\n msg.setGeneralComment(String.format(\n \"calculated speed exceeds %g knots\", maxSpeeds[0]));\n msg.setDetailedComment(String.format(\n \"calculated speed of %g knots exceeds %g knots\", speed, maxSpeeds[0]));\n reverseSpeedMsgs.add(msg);\n }\n else if ( hourdelta > 24.0 * maxTimeGaps[1] ) {\n // Add one message at this time - later repeat with all the columns\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.ERROR);\n msg.setRowNumber(actualRowNum);\n msg.setGeneralComment(String.format(\n \"time between consecutive measurements exceeds %g days\", maxTimeGaps[1]));\n msg.setDetailedComment(String.format(\n \"time between consecutive measurements %g days exceeds %g days\",\n hourdelta / 24.0, maxTimeGaps[1]));\n reverseTimeGapMsgs.add(msg);\n }\n else if ( hourdelta > 24.0 * maxTimeGaps[0] ) {\n // Add one message at this time - later repeat with all the columns\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.WARNING);\n msg.setRowNumber(actualRowNum);\n msg.setGeneralComment(String.format(\n \"time between consecutive measurements exceeds %g days\", maxTimeGaps[0]));\n msg.setDetailedComment(String.format(\n \"time between consecutive measurements %g days exceeds %g days\",\n hourdelta / 24.0, maxTimeGaps[0]));\n reverseTimeGapMsgs.add(msg);\n }\n }\n lastRowNum = actualRowNum;\n expectedRowNum -= 1;\n }\n }\n // Guess that the set with fewer errors is the correct one\n TreeSet<Integer> errorRowsNums;\n ArrayList<ADCMessage> speedMsgs;\n ArrayList<ADCMessage> timeGapMsgs;\n if ( (forwardErrs.size() + forwardSpeedMsgs.size() + forwardTimeGapMsgs.size())\n <= (reverseErrs.size() + reverseSpeedMsgs.size() + reverseTimeGapMsgs.size()) ) {\n errorRowsNums = forwardErrs;\n speedMsgs = forwardSpeedMsgs;\n timeGapMsgs = forwardTimeGapMsgs;\n }\n else {\n errorRowsNums = reverseErrs;\n speedMsgs = reverseSpeedMsgs;\n timeGapMsgs = reverseTimeGapMsgs;\n }\n for (Integer rowNum : errorRowsNums) {\n for (Integer colIdx : indicesForTime) {\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(Severity.CRITICAL);\n msg.setRowNumber(rowNum);\n msg.setColNumber(colIdx + 1);\n msg.setColName(userColNames[colIdx]);\n String comment = \"time-misordered data row\";\n msg.setGeneralComment(comment);\n msg.setDetailedComment(comment);\n stdMsgList.add(msg);\n }\n }\n for (ADCMessage spdmsg : speedMsgs) {\n // Speed problems could be in longitude ...\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(spdmsg.getSeverity());\n msg.setRowNumber(spdmsg.getRowNumber());\n msg.setColNumber(longitudeIndex + 1);\n msg.setColName(userColNames[longitudeIndex]);\n msg.setGeneralComment(spdmsg.getGeneralComment());\n msg.setDetailedComment(spdmsg.getDetailedComment());\n stdMsgList.add(msg);\n // ... or latitude ...\n msg = new ADCMessage();\n msg.setSeverity(spdmsg.getSeverity());\n msg.setRowNumber(spdmsg.getRowNumber());\n msg.setColNumber(latitudeIndex + 1);\n msg.setColName(userColNames[latitudeIndex]);\n msg.setGeneralComment(spdmsg.getGeneralComment());\n msg.setDetailedComment(spdmsg.getDetailedComment());\n stdMsgList.add(msg);\n // ... or time\n for (Integer colIdx : indicesForTime) {\n msg = new ADCMessage();\n msg.setSeverity(spdmsg.getSeverity());\n msg.setRowNumber(spdmsg.getRowNumber());\n msg.setColNumber(colIdx + 1);\n msg.setColName(userColNames[colIdx]);\n msg.setGeneralComment(spdmsg.getGeneralComment());\n msg.setDetailedComment(spdmsg.getDetailedComment());\n stdMsgList.add(msg);\n }\n }\n for (ADCMessage tgmsg : timeGapMsgs) {\n for (Integer colIdx : indicesForTime) {\n ADCMessage msg = new ADCMessage();\n msg.setSeverity(tgmsg.getSeverity());\n msg.setRowNumber(tgmsg.getRowNumber());\n msg.setColNumber(colIdx + 1);\n msg.setColName(userColNames[colIdx]);\n msg.setGeneralComment(tgmsg.getGeneralComment());\n msg.setDetailedComment(tgmsg.getDetailedComment());\n stdMsgList.add(msg);\n }\n }\n }", "private RssiReadingLocated<S, P> createRssiReading(\n final RangingAndRssiReadingLocated<S, P> reading) {\n return new RssiReadingLocated<>(reading.getSource(),\n reading.getRssi(), reading.getPosition(),\n reading.getRssiStandardDeviation(),\n reading.getPositionCovariance());\n }", "protected boolean checkBioScarso() {\n return bioService.count() < BIO_NEEDED_MINUMUM_SIZE;\n }", "@Test\n\tpublic void seperateRangeTest() {\n\n\t\tsetup();\n\t\tSystem.out.println(\"seperate range test\");\n\t\tZipCodeRange z1 = new ZipCodeRange(new ZipCode(94133), new ZipCode(94133));\n\t\tZipCodeRange z2 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94299));\n\t\tZipCodeRange z3 = new ZipCodeRange(new ZipCode(94600), new ZipCode(94699));\n\n\t\t// Testing\n\t\tZipRangeControl zrc = new ZipRangeControl();\n\t\tzrc.processNewRange(z1);\n\t\tzrc.processNewRange(z2);\n\t\tzrc.processNewRange(z3);\n\n\t\tZipCodeRange z4 = new ZipCodeRange(new ZipCode(94200), new ZipCode(94399));\n\t\trequiredList.add(z1);\n\t\trequiredList.add(z2);\n\t\trequiredList.add(z3);\n\n\t\tZipCodeRange[] ziparray = new ZipCodeRange[requiredList.size()];\n\t\tList<ZipCodeRange> zlist = zrc.getFinalZipRanges();\n\n\t\tfor (int i = 0; i < requiredList.size(); i++) {\n\t\t\tAssert.assertThat(\"Lower Limit match failed at entry\" + i, requiredList.get(i).lower.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).lower.zipcode));\n\t\t\tAssert.assertThat(\"Upper Limit match failed at entry\" + i, requiredList.get(i).upper.zipcode,\n\t\t\t\t\torg.hamcrest.CoreMatchers.equalTo(zlist.get(i).upper.zipcode));\n\t\t}\n\t\tclimax();\n\n\t}", "public int countBadLegs() {\n int badLegs = 0;\n\n for (int i = 0; i < locations(); i++) {\n badLegs += (locationIsLeg(i) && isLocationBad(i)) ? 1 : 0;\n }\n\n return badLegs;\n }" ]
[ "0.7021597", "0.5945103", "0.5763812", "0.53003", "0.52589905", "0.5239555", "0.52002233", "0.5105105", "0.51016635", "0.5058082", "0.5035911", "0.5013666", "0.5008365", "0.4993128", "0.48572052", "0.48533502", "0.48451653", "0.48238903", "0.4822938", "0.48151705", "0.48133442", "0.48118675", "0.4802852", "0.47914103", "0.478196", "0.4763978", "0.47430646", "0.47320104", "0.47108993", "0.46921995", "0.4687975", "0.46724203", "0.46600842", "0.4659758", "0.46583357", "0.4654647", "0.46496564", "0.464312", "0.46425956", "0.46407077", "0.46375176", "0.46312425", "0.46179697", "0.4610164", "0.46057305", "0.46031064", "0.46019298", "0.45892227", "0.4588794", "0.45877448", "0.45871568", "0.45853373", "0.45847914", "0.45697922", "0.45639208", "0.45593682", "0.45528454", "0.4543489", "0.454264", "0.4541173", "0.45408008", "0.45384622", "0.45378715", "0.4529869", "0.45298493", "0.4523153", "0.45199776", "0.45199502", "0.4511294", "0.45060962", "0.4501604", "0.45001018", "0.44989732", "0.44979298", "0.44963738", "0.44955114", "0.449422", "0.4486769", "0.44861904", "0.44808704", "0.44783694", "0.44686162", "0.44637087", "0.4461861", "0.44585916", "0.44571844", "0.44515595", "0.44511425", "0.44507426", "0.44453007", "0.4443851", "0.44407058", "0.44348648", "0.44335276", "0.44294322", "0.44177496", "0.44171104", "0.4415784", "0.44144014", "0.4409577" ]
0.742098
0
return super.onCreateView(inflater, container, savedInstanceState);
@Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View v = inflater.inflate(R.layout.classifieds_liting, null); rv = (RecyclerView) v.findViewById(R.id.rv); id_list = new ArrayList<>(); swipe_refresh = (SwipeRefreshLayout) v.findViewById(R.id.swipe); final LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity()); // layoutManager.setStackFromEnd(true); layoutManager.setOrientation(LinearLayout.VERTICAL); rv.setLayoutManager(layoutManager); cm = new Common_Methods(); Cat_id = getArguments().getString("Cat_id"); Section_id = getArguments().getString("Section_id"); list = new ArrayList<>(); Recycler_view_adaper = new Recycler_View(); ItemOffsetDecoration itemDecoration = new ItemOffsetDecoration(getActivity(), R.dimen.column_width); rv.addItemDecoration(itemDecoration); Load_Data(cm.Serv_Address + "Pagination?", "0", false); swipe_refresh.setColorSchemeResources(android.R.color.holo_blue_bright, android.R.color.holo_green_light, android.R.color.holo_orange_light, android.R.color.holo_red_light); swipe_refresh.measure(View.MEASURED_SIZE_MASK, View.MEASURED_HEIGHT_STATE_SHIFT); swipe_refresh.setEnabled(true); swipe_refresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { // Toast.makeText(getActivity(), "loading", Toast.LENGTH_SHORT).show(); // Load_Data(cm.Serv_Address + "Pagination?", last_advt_id, true); } }); rv.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrollStateChanged(RecyclerView recyclerView, int newState) { super.onScrollStateChanged(recyclerView, newState); item_count = layoutManager.getItemCount(); last_visible_item_count = layoutManager.findLastVisibleItemPosition(); if (item_count == (last_visible_item_count + 1)) { if (!swipe_refresh.isRefreshing()) { swipe_refresh.post(new Runnable() { @Override public void run() { swipe_refresh.setRefreshing(true); Load_Data(cm.Serv_Address + "Pagination?", last_advt_id, true); } }); } } } @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { super.onScrolled(recyclerView, dx, dy); } }); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return super.onCreateView(inflater, container, savedInstanceState);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return super.onCreateView(inflater, container, savedInstanceState);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\treturn super.onCreateView(inflater, container, savedInstanceState);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return super.onCreateView(inflater, container, savedInstanceState);\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn super.onCreateView(inflater, container, savedInstanceState);\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn super.onCreateView(inflater, container, savedInstanceState);\n\t}", "@Override\n\tpublic View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {\n\t\treturn super.onCreateView(inflater, container, savedInstanceState);\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \tthis.setRetainInstance(true);\n \treturn super.onCreateView(inflater, container, savedInstanceState);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \n return this.view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = getThisView(inflater,container);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_recetas, parent, false);\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onCreateView---------\");\n\t\tview = inflater.inflate(getContentViewId(),container,false);\n\t\tunbinder = ButterKnife.bind(this,view);\n\t\tinitView(savedInstanceState);\n\t\treturn view;\n\t}", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }", "@Override\n public void onViewCreated(View view , Bundle savedInstanceState) {\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\treturn inflater.inflate(R.layout.activity_main, container, false);\n }", "@Override\n public void onViewCreate() {\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_main4, container, false);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_add_meals, container, false);\n return view;\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_adddatacat, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sesion3, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return initUiComponents(inflater, container);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.layoutview3, container, false);\n }", "public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState) {\n return null;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_conta, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return super.onCreateView(inflater, (ViewGroup) inflater.inflate(R.layout.fragment_display_good_detial, container, false), savedInstanceState);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.select_game, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.activity_show3, container, false);\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n }", "@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.d(TAG, \"onCreateView\");\n return inflater.inflate(R.layout.fragment_crime, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n mLayoutInflater = inflater;\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.d(LOG, \"Inflating...\");\n return inflater.inflate(R.layout.fragment_milk_adder, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n mView = inflater.inflate(R.layout.fragment_list_book, container, false);\n initViews();\n if(BuildConfig.enableDebugLogging) {\n Log.i(TAG, \"onCreateView\");\n }\n return mView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder=ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View v = inflater.inflate(R.layout.fragment_donor_dash, container, false);\r\n\r\n\r\n\r\n return v;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n activity = (InitializeDineOrderActivity) getActivity();\n View view = inflater.inflate(R.layout.fragment_items_added_success, container, false);\n unbinder = ButterKnife.bind(this, view);\n //animate(imageView);\n return view;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_coat_of_arms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\r\n\t\tView view = inflater.inflate(R.layout.frag_main_pak, container, false);\r\n\r\n\t\tinit(view);\r\n\t\t\r\n\t\t\r\n\t\treturn view;\r\n\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n parent_view = inflater.inflate(R.layout.fragment_medals, container, false);\n initComponent(parent_view);\n\n return parent_view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.folio_activity, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fg_movie, null);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.frag_new_entries, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_post_property_screen, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_bao_yang_scx, container, false);\n unbinder = ButterKnife.bind(this, view);\n init();\n }\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n ButterKnife.inject(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n ButterKnife.inject(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n ButterKnife.inject(this, rootView);\n return rootView;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n Fabric.with(getContext(), new Crashlytics());\r\n View view = inflater.inflate(R.layout.fragment_open_ticket_general_enquiries_department, container, false);\r\n unbinder = ButterKnife.bind(this, view);\r\n\r\n\r\n intialize();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tv = inflater.inflate(R.layout.wisata, container, false);\r\n \r\n\t\t\r\n\t\t\r\n\t\treturn v;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_intro_ds, container, false);\n\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container , savedInstanceState);\n View rootView = inflater.inflate(R.layout.fragment_info_, container, false);\n //return inflater.inflate(R.layout.fragment_info_, container, false);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\r\n unbinder = ButterKnife.bind(this, rootView);\r\n return rootView;\r\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\r\n unbinder = ButterKnife.bind(this, rootView);\r\n return rootView;\r\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\r\n unbinder = ButterKnife.bind(this, rootView);\r\n return rootView;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.main_fragment, container, false);\n\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_votevents, container, false);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n view = inflater.inflate(R.layout.layout_inventory_list, container, false);\n\n return view;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_vicky, container, false);\r\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\r\n ButterKnife.bind(this, rootView);\r\n return rootView;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, final ViewGroup container,\n Bundle savedInstanceState) {\n\n\n return inflater.inflate(R.layout.fragment_splash, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.frag__tanding, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view= inflater.inflate(R.layout.fragment_insect, container, false);\n\n return view;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder2 = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder2 = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_guan_lxswei_shen, container, false);\n ButterKnife.bind(this, view);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_eatery_detail, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder1 = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder1 = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\n unbinder = ButterKnife.bind(this, rootView);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_outfits, container, false);\n }" ]
[ "0.8521086", "0.8521086", "0.8470297", "0.844018", "0.82390475", "0.82390475", "0.82019675", "0.8171322", "0.81422734", "0.81091815", "0.80201185", "0.79594934", "0.7933955", "0.7910876", "0.79049486", "0.79015666", "0.789198", "0.78882235", "0.78876203", "0.78756505", "0.78386974", "0.7825494", "0.7803782", "0.7797407", "0.7789381", "0.77695185", "0.77670527", "0.7763977", "0.7759276", "0.77556235", "0.7753287", "0.77481353", "0.77410525", "0.7736385", "0.77217025", "0.77198553", "0.7718946", "0.7716901", "0.77132905", "0.771083", "0.7707086", "0.7693232", "0.7678665", "0.7676493", "0.7670907", "0.7666581", "0.76600206", "0.76562476", "0.7655169", "0.7652273", "0.76460946", "0.76458627", "0.76432353", "0.7642639", "0.76405525", "0.76405525", "0.76405525", "0.76382464", "0.763804", "0.7636345", "0.76298976", "0.76286197", "0.7625819", "0.7625204", "0.76164347", "0.76164347", "0.76164347", "0.7613653", "0.7612052", "0.76102954", "0.7601363", "0.7599226", "0.7597925", "0.7597433", "0.7589657", "0.75875044", "0.7586866", "0.7586866", "0.7586194", "0.75847685", "0.7582338", "0.7582338", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7572017", "0.7569085" ]
0.0
-1
Toast.makeText(getActivity(), "loading", Toast.LENGTH_SHORT).show(); Load_Data(cm.Serv_Address + "Pagination?", last_advt_id, true);
@Override public void onRefresh() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n loading = ProgressDialog.show(this.context, \"Fetching Data\",\"Please Wait...\",true,true);\n }", "@Override\n public void showLoading() {\n Log.i(Tag, \"showLoading\");\n }", "@Override\n public Void call(Long aLong) {\n if (mShowLoading) {\n mView.showLoading(true);\n }\n return null;\n }", "@Override\n protected void onPreExecute() {\n progressDialog= new ProgressDialog(getActivity());\n progressDialog.setMessage(\"loading..\");\n progressDialog.setIndeterminate(false);\n progressDialog.show();\n }", "private void showProgressDialog(){\n progressDialog=ProgressDialog.show(context,\"\",\"Loading...Please wait...\");\n\n\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(getActivity());\n pDialog.setMessage(\"Chargement des données...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(getActivity());\n pDialog.setMessage(\"Chargement des données...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }", "@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }", "@Override\n protected void onPreExecute() {\n showLoadingProgressDialog();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tdl = ProgressDialog.show(getActivity(), \"Thông báo\", \"Loading...\",\n\t\t\t\t\ttrue, false);\n\t\t\tdl.show();\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n protected void callBeforeDataBack(HemaNetTask netTask) {\n showProgressDialog(\"加载中\");\n }", "@Override\n protected void onPreExecute() {\n progressDialog = new ProgressDialog(getActivity());\n progressDialog.setTitle(getResources().getString(R.string.please_wait));\n progressDialog.setMessage(getResources().getString(R.string.fetching_data));\n progressDialog.show();\n }", "@Override\n\tpublic void getData(final Fragment context,\n\t\t\tfinal OnProgramlist_location_FinishenListener listener,final String category, final String p_addr_1) {\n\t\tfinal ProgressDialog progressdialog = new ProgressDialog(context.getActivity());\n\t\tprogressdialog.setMessage(context.getActivity().getString(R.string.loading));\n\t\tprogressdialog.setIndeterminate(true);\n\t\tprogressdialog.setCancelable(false);\n\t\tprogressdialog.show();\n\t\tnew Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tRestAdapter restAdapter = new RestAdapter.Builder()\n\t\t\t\t\t\t\t.setEndpoint(Retrofit.ROOT) // call your base url\n\t\t\t\t\t\t\t.build();\n\t\t\t\t\tRetrofit retrofit = restAdapter.create(Retrofit.class); \n\t\t\t\t\tretrofit.getProgramList_location(category,p_addr_1,new Callback<JsonArray>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void success(JsonArray result//\n\t\t\t\t\t\t\t\t,Response response) {\n\t\t\t\t\t\t\tif (context != null) {\n\t\t\t\t\t\t\t\tlistener.getDataSuccess(result);\n\t\t\t\t\t\t\t\tprogressdialog.dismiss();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void failure(RetrofitError retrofitError) {\n\t\t\t\t\t\t\tprogressdialog.dismiss();\n\t\t\t\t\t\t\tnew AlertDialog.Builder(context.getActivity())\n\t\t\t\t\t\t\t\t\t.setMessage(\"데이터를 받아오는데 실패하였습니다.\")\n\t\t\t\t\t\t\t\t\t.setPositiveButton(\n\t\t\t\t\t\t\t\t\t\t\t\"확인\",\n\t\t\t\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dia,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tdia.dismiss();\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}).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t} catch (Throwable ex) {\n\t\t\t\t\tprogressdialog.dismiss();\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\tnew AlertDialog.Builder(context.getActivity())\n\t\t\t\t\t\t\t.setMessage(\"데이터를 받아오는데 실패하였습니다.\")\n\t\t\t\t\t\t\t.setPositiveButton(\"확인\",\n\t\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dia, int which) {\n\t\t\t\t\t\t\t\t\t\t\tdia.dismiss();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}).show();\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t\n\t\t\n\t}", "@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\tpDialog = new ProgressDialog(getActivity());\r\n\t\t\tpDialog.setMessage(\"Loading...\");\r\n\t\t\tpDialog.setIndeterminate(false);\r\n\t\t\tpDialog.setCancelable(false);\r\n\t\t\tpDialog.show();\r\n\t\t}", "@Override\r\n protected void onPreExecute() {\n super.onPreExecute();\r\n progressDialog = new ProgressDialog(getActivity());\r\n progressDialog.setMessage(\"Fetching route, Please wait...\");\r\n progressDialog.setIndeterminate(true);\r\n progressDialog.show();\r\n }", "public void showLoading() {\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(context);\n pDialog.setMessage(\"Fetching videolists..\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(true);\n pDialog.show();\n }", "@Override\n protected void onStartLoading() {\n progressBar.setVisibility(View.VISIBLE);\n forceLoad();\n }", "public static String _showloading(String _msg) throws Exception{\nanywheresoftware.b4a.keywords.Common.ProgressDialogShow2(mostCurrent.activityBA,BA.ObjectToCharSequence(_msg),anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 66;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void onLoadingStarted(String paramString, View paramView) {\n\n }", "public String _paymentpage_pagefinished(String _url) throws Exception{\n__c.ProgressDialogHide();\n //BA.debugLineNum = 158;BA.debugLine=\"Loaded = True\";\n_loaded = __c.True;\n //BA.debugLineNum = 159;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void setHiddenLoadData(){\n imvAvatar.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n HttpDAO.getInstance(ProfileFragment.this.getActivity(), spSupport.get(\"ip_port\")).getAllData(spSupport.get(\"child_id\"), new DataCallback() {\n @Override\n public void onDataReceiving(JSONObject data) throws Exception {\n txtName.setText(spSupport.get(\"child_name\"));\n txtNickname.setText('(' + spSupport.get(\"child_nickname\") + ')');\n setAvatar();\n Toast.makeText(getActivity(), \"Load thành công\", Toast.LENGTH_LONG).show();\n }\n });\n\n return true;\n }\n });\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n pDialog = new ProgressDialog(Activity_List.this);\n pDialog.setMessage(\"Loading spots. Please wait...\");\n\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n }", "private void displayLoader() {\n pDialog = new ProgressDialog(DangKyActivity.this);\n pDialog.setMessage(\"Vui lòng đợi trong giây lát...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "@Override\n protected void onPreExecute() {\n pDialog = new ProgressDialog(homeActivity);\n pDialog.setMessage(\"Retrieving Details... \");\n // pDialog.setMax(16);\n pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\n pDialog.setCancelable(false);\n pDialog.show();\n\n\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n /** SHOW PROGRESS WHILE LOADING DATA **/\n linlaHeaderProgress.setVisibility(View.VISIBLE);\n }", "protected void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\nsetContentView(R.layout.tixian_appliction);\ninitview();\nString url1 = Url.user()+\"getContact/\";\nLoadData(url1\t,null,\"loading\");\n}", "@Override\n public void onLoadMore() {\n MyApplacation.getmHandler().postDelayed(new Runnable() {\n @Override\n public void run() {\n pageNo++;\n getDataForService();\n }\n }, 1000);\n\n }", "@Override\n public void onClick(View v) {\n progressActivity.showLoading();\n informationList.clear();\n loadOnlineInformationData();\n }", "@Override\n\tpublic void onLoad() {\n\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcount=pagerlistener.setpage();\n//\t\t\t\t initNewDatas(count);//得到新数据\n\t\t\t\tfightermessageadapter.notifyDataSetChanged();//刷新ListView;\n\t\t\t\ttopNewsMoreLV.loadCompleted();\n\t\t\t}\n\t\t}, 2000);\n\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n // Show the progress in load\n pDialog = new ProgressDialog(UpdateTimeTable.this);\n pDialog.setMessage(\"Please wait...\");\n pDialog.setCancelable(false);\n pDialog.show();\n \n }", "@Override\n public void onResume() {\n super.onResume();\n MobclickAgent.onResume(mContext);\n MobclickAgent.onPageStart(\"MallFragment\");\n /*if(mImagePagerAdapter.getImageIdList().size()==0){\n setTV();\n\t\t}*/\n String json = SharedPreUtil.getStringValue(getActivity(), ACTION_GetAdList3, \"\");\n if (!TextUtils.isEmpty(json)) {\n Object mObject = new JsonBuild().getData(GetAdList.class, json);\n if (mObject != null && mObject instanceof GetAdList) {\n GetAdList mData = (GetAdList) mObject;\n if (mData != null && mData.data != null && mData.data.size() >= 0) {\n BaseApplication.mInstance.imageIdList3 = mData.data;\n setTV();\n }\n }\n }\n\n //轮播图\n new GetAdListTask(getActivity(), \"2\", new Back() {\n\n @Override\n public void success(Object object, String msg) {\n // TODO Auto-generated method stub\n if (object != null && object instanceof GetAdList) {\n GetAdList list = (GetAdList) object;\n Log.e(\"lbb\", \"---------3-------0-2-\");\n if (list != null && list.data != null && list.data.size() >= 0) {\n BaseApplication.mInstance.imageIdList3 = list.data;\n adLists = list.data;\n try {\n setTV();\n BaseApplication.mInstance.context.sendBroadcast(new Intent(ACTION_GetAdList3));\n } catch (Exception e) {\n e.printStackTrace();\n }\n //getActivity().sendBroadcast(new Intent(ACTION_GetAdList3));\n SharedPreUtil.putStringValue(getActivity(), ACTION_GetAdList3, new JsonBuild().setModel(object).getJson1());\n Log.e(\"lbb\", \"---------3-----1-2---\");\n }\n }\n }\n\n @Override\n public void fail(String status, String msg, Object object) {\n // TODO Auto-generated method stub\n //getActivity().sendBroadcast(new Intent(ACTION_GetAdList_Fail3));\n /*try {\n BaseApplication.mInstance.context.sendBroadcast(new Intent(ACTION_GetAdList_Fail3));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}*/\n }\n }).start();\n setGoodList();\n user = DBManager.getInstance(getActivity()).getUserMessage();\n setTv_moneyNum(user);\n new QueryPtbTask(getActivity(), user.userId, new Back() {\n\n @Override\n public void success(Object object, String msg) {\n if (object != null && object instanceof QueryPtb) {\n QueryPtb mQueryPtb = (QueryPtb) object;\n if (mQueryPtb.data != null) {\n user.jsonData = null;\n user.ptb = mQueryPtb.data;\n user.jsonData = new JsonBuild().setModel(user).getJsonString1();\n DBManager.getInstance(mContext).insert(user);\n user = DBManager.getInstance(getActivity()).getUserMessage();\n setTv_moneyNum(user);\n }\n }\n\n }\n\n @Override\n public void fail(String status, String msg, Object object) {\n // TODO Auto-generated method stub\n\n }\n }).start();\n\n ViewChange();\n }", "@Trace\n//\t@LogMethod\n\tprivate void loadNext() {\n\t\tToast.makeText(MainActivity.this, \"Test\", Toast.LENGTH_SHORT).show();\n\t}", "@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\tshowLoading();\r\n\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n settLoadingScr.setVisibility(View.VISIBLE);\n\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n settLoadingScr.setVisibility(View.VISIBLE);\n\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tshowLoadingProgressDialog();\n\t\t}", "@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(getContext(), \"המוצר נמחק בהצלחה!\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog1 = new ProgressDialog(Doctorslist.this);\n\t\t\tpDialog1.setMessage(\"Loading ...\");\n\t\t\tpDialog1.setIndeterminate(false);\n\t\t\tpDialog1.setCancelable(false);\n\t\t\tpDialog1.show();\n\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(activity);\n pd.setMessage(\"Loading, Please Wait.....\");\n pd.setCancelable(false);\n pd.show();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tpdia = new ProgressDialog(mContext);\n\t\t\tpdia.setMessage(\"Loading...\");\n\t\t\tpdia.show();\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progressDialog = ProgressDialog.show(ShowMap.this, \"Message\", \"Fetching Details...\");\n\n }", "@Override\n\t\tprotected void onPreExecute()\n\t\t{\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog = new ProgressDialog(MainActivity.this);\n\t\t\tpDialog.setMessage(\"Loading....\");\n\t\t\tpDialog.setCancelable(true);\n\t\t\tpDialog.show();\n\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n mLoadingIndicator.setVisibility(View.VISIBLE);\n }", "@Override\n\t\tpublic synchronized void onLoadMore() {\n\t\t\ttry {\n\t\t\t\t//如果总页数大于当前页码数,加载更多\n\t\t\t\tif(pageSize > curPage){\n\t\t\t\t\tURL = URL.substring(0, URL.lastIndexOf(\"_\")+1);\n\t\t\t\t\tcurPage++;\n\t\t\t\t\tURL = URL+curPage+\".xml\";\n\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t}else{\n\t\t\t\t\tlistView.setPullLoadEnable(false);\n\t\t\t\t\tonLoadStop();\n\t\t\t\t\tToast toast = Toast.makeText(getActivity(), \"数据已经加载完毕!\", Toast.LENGTH_LONG);\n//\t\t\t\t\ttoast.getView().setBackgroundResource(R.drawable.red_toast_bg);\n\t\t\t\t\ttoast.getView().setPadding(20, 10, 20, 10);\n\t\t\t\t\ttoast.show();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tmainProBar.setVisibility(ProgressBar.VISIBLE);\n\t\t\tToast.makeText(MainActivity.this, \"Fetching news list ...\", 500).show();\n\t\t}", "public void loadToast(){\n Toast.makeText(getApplicationContext(), \"Could not find city\", Toast.LENGTH_SHORT).show();\n }", "public void paginationLoading() {\n mTvShows.add(null);\n notifyItemInserted(mTvShows.size() - 1);\n }", "protected void onPreExecute() {\n dialog = ProgressDialog.show(getActivity(), \"\", \"Consultando Clientes...\", true);\n }", "protected void onPreExecute() {\r\n \tdialog = new ProgressDialog(context);\r\n \t\tdialog.setMessage(\"Loading...\");\r\n \t\tdialog.show();\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_customer_list, container, false);\n pd=new ProgressDialog(getActivity());\n pd.setMessage(\"Please wait...\");\n pd.setCancelable(false);\n pd.show();\n custListVM = new ViewModelProvider(this).get(CustListVM.class);\n custListVM.AllCustApiCall(\"fromcustomerlist\");\n prepareRecyclerView(v);\n custListVM.getAllcustObserver().observe(getViewLifecycleOwner(), new Observer<List<CustomerListData>>() {\n @Override\n public void onChanged(List<CustomerListData> customerListData) {\n if(customerListData!=null)\n {\n newCustlist=customerListData;\n allCustomerAdapter.setCusttList(newCustlist);\n }\n }\n });\n\n custListVM.CustloadDoneObserver().observe(getViewLifecycleOwner(), new Observer<String>() {\n @Override\n public void onChanged(String s) {\n if(s.equals(\"lcomplete\"))\n {\n pd.dismiss();\n }if(s.equals(\"lincomplete\")) {\n pd.dismiss();\n Toast.makeText(getActivity(), \"Data Not Loded correctly\", Toast.LENGTH_SHORT).show();\n }\n\n }\n });\n swip_cust.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n custListVM.AllCustApiCall(\"fromcustomerlistswip\");\n swip_cust.setRefreshing(false);\n }\n });\n return v;\n }", "@Override\r\n protected Boolean doInBackground(Void... params) {\n getData(pageIndex);\r\n return true;\r\n }", "@Override\n protected void onPreExecute() {\n\n\n dialog = new ProgressDialog(MainArea.this);\n dialog.setTitle(\"Loading Results\");\n dialog.setMessage(\"Please Wait Results Are Loading For You....\");\n dialog.setCanceledOnTouchOutside(false);\n dialog.show();\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n // showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading records from datastore...\", \"excecuting task...\");\n //simpleWaitDialog.setCancelable(true);\n\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n // showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading records from datastore...\", \"excecuting task...\");\n //simpleWaitDialog.setCancelable(true);\n\n super.onPreExecute();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tsuper.onPreExecute();\n\t\t\tpd = ProgressDialogUtil.createDialogNoTitle(context, \"loading...\");\n\t\t\tpd.show();\n\t\t}", "@Override\n protected Void doInBackground(Void... params) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n //change the flag to be true\n loadingMore=true;\n //load data from url\n ArrayList<Recipe> recipe = Utils.fetchListOfRecipeData(stringUrl+current_page);\n ++current_page;\n recipesList.addAll(recipe);\n }\n });\n\n\n return null;\n }", "@Override\n protected void onPreExecute() {\n\n dialog = new ProgressDialog(context);\n dialog.setTitle(\"Loading Contents\");\n dialog.setMessage(\"Doing something interesting ...\");\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n dialog.show();\n }", "@Override\n\t\t\t\t\tpublic void onFail(String failstring) {\n\t\t\t\t\t\tToast.makeText(getActivity(), \"加载数据失败!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tnodata.setVisibility(View.VISIBLE);\n\t\t\t\t\t\tlistview.setVisibility(View.GONE);\n\t\t\t\t\t\tcustomProgressDialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onError(VolleyError error) {\n\t\t\t\t\t\tToast.makeText(getActivity(), \"加载数据失败!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tnodata.setVisibility(View.VISIBLE);\n\t\t\t\t\t\tlistview.setVisibility(View.GONE);\n\t\t\t\t\t\tcustomProgressDialog.dismiss();\n\t\t\t\t\t}", "@Override\n protected void onPostExecute(Void result) {\n startViewPagerThread();\n\n }", "@Override protected void onPreExecute() {\r\n // A toast provides simple feedback about an operation as popup. \r\n // It takes the application Context, the text message, and the duration for the toast as arguments\r\n //android.widget.Toast.makeText(mContext, \"Going for the network call..\", android.widget.Toast.LENGTH_LONG).show();\r\n }", "@Override\n\tpublic synchronized void onLoadMore() {\n\t\ttry {\n\t\t\t// 如果总页数大于当前页码数,加载更多\n\t\t\tif (pageSize > curPage) {\n\t\t\t\tURL = URL.substring(0, URL.lastIndexOf(\"_\") + 1);\n\t\t\t\tcurPage++;\n\t\t\t\tURL = URL + curPage + \".xml\";\n\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t} else {\n\t\t\t\tlistView.setPullLoadEnable(false);\n\t\t\t\tonLoadStop();\n\t\t\t\tToast toast = Toast.makeText(getActivity(), \"数据已经加载完毕!\",\n\t\t\t\t\t\tToast.LENGTH_LONG);\n\t\t\t\t// toast.getView().setBackgroundResource(R.drawable.red_toast_bg);\n\t\t\t\ttoast.getView().setPadding(20, 10, 20, 10);\n\t\t\t\ttoast.show();\n\t\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}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tmyDialog = ProgressDialog.show\n\t\t\t\t\t(\n\t\t\t\t\t\t\tgetActivity(),\n\t\t\t\t\t\t\t\"Loading...\",\n\t\t\t\t\t\t\t\"Please Wait\",\n\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t\t);\n\t\t}", "@Override\n public void onCancelled(DatabaseError error) {\n Toast.makeText(getApplicationContext(),\"Failed to Load Data\",Toast.LENGTH_SHORT);\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(Integrationforkhalti.this);\n pDialog.setMessage(\"Loading Please wait...\");\n pDialog.setIndeterminate(true);\n pDialog.setCancelable(false);\n pDialog.show();\n }", "@Override\n public void showLoading() {\n setRefresh(true);\n }", "@Override\r\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\tToast.makeText(\r\n\t\t\t\t\t\t\t\tactivityContext,\r\n\t\t\t\t\t\t\t\tR.string.unable_to_fetch_the_details,\r\n\t\t\t\t\t\t\t\t2000);\r\n\r\n\t\t\t\t\t\t }", "@Override\n protected void onPreExecute() {\n asyncDialog.setMessage(\"Loading...\");\n //show dialog\n asyncDialog.show();\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n pDialog = new ProgressDialog(Resume_create_employee.this);\n pDialog.setMessage(\"Loading...\");\n pDialog.setCancelable(false);\n pDialog.show();\n }", "private void showLoading() {\n hideNoNetwork();\n mRecipesBinding.fragmentRecipesProgressBar.setVisibility(View.VISIBLE);\n }", "private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }", "@Override\r\n \tprotected void onPreExecute() {\n \t\tsuper.onPreExecute();\r\n \t\tpdia = new ProgressDialog(Regmember.this);\r\n \t\tpdia.setCanceledOnTouchOutside(false);\r\n pdia.setMessage(\"Dhiraj rakh..........\");\r\n pdia.show(); \r\n \t}", "@Override\r\n\t\t\t\t\tpublic void onFail(String msg) {\n\t\t\t\t\t\tUToast.showOnFail(getActivity());\r\n\t\t\t\t\t\tstopLoadMoreAndRefresh();\r\n\t\t\t\t\t}", "@Override\n protected void onStartLoading() {\n super.onStartLoading();\n\n mLoadingIndicator.setVisibility(View.VISIBLE);\n\n forceLoad();\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n showProgressDialog(R.string.please_wait);\n //showDialog(progress_bar_type);\n }", "protected void onPreExecute() {\n super.onPreExecute();\n mProgressDialog = new ProgressDialog(PetaWisataActivity.this);\n mProgressDialog.setTitle(\"Download Data, Mohon Tunggu!\");\n mProgressDialog.setMessage(\"Loading...\");\n mProgressDialog.setIndeterminate(false);\n mProgressDialog.setCancelable(true);\n // Show progressdialog\n mProgressDialog.show();\n }", "private void loadMoreData(){\n\n //just for tesing\n\n progressBar.setVisibility(View.VISIBLE);\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n\n adsList.add(new AdvertismentClass(1,\"Shoe\",1000,800,\"10/8/2018\",\"30/10/2018\",false,\"Adidas\"));\n adsList.add(new AdvertismentClass(1,\"Shoe\",1000,800,\"10/8/2018\",\"30/10/2018\",true,\"Adidas\"));\n adsList.add(new AdvertismentClass(1,\"Shoe\",1000,800,\"10/8/2018\",\"30/10/2018\",true,\"Adidas\"));\n adsList.add(new AdvertismentClass(1,\"Shoe\",1000,800,\"10/8/2018\",\"30/10/2018\",false,\"Adidas\"));\n\n progressBar.setVisibility(View.GONE);\n\n adapter.notifyDataSetChanged();\n }\n },3000);\n\n }", "@Override\n\tpublic void onLoadMore() {\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\t\t\n\t\tmAdapterView.setLoadTime(sdf.format(new Date()));\n\t\tmAdapterView.stopLoadMore();\n\t\tFindHttpPost();\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tProfile.this.infolay.setVisibility(View.INVISIBLE);\n\t\t\t\tProfile.this.otherlay.setVisibility(View.VISIBLE);\n\t\t\t\tpd = ProgressDialog.show(Profile.this, \"dowloading\", \"dowloading,please wait……\");\n\n\t\t\t\t new Thread(runnableloadportf).start();\n\n\t\t\t\tsm.toggle();\n\t\t\t\t\n\t\t\t}", "private void loadaspirasirt(){\n String m_idwarga = getSp().getString(\"id_warga\",null);\n Call<ResponModel>viewmypost = getApi().rtaspirasi();\n viewmypost.enqueue(new Callback<ResponModel>() {\n @Override\n public void onResponse(Call<ResponModel> call, Response<ResponModel> response) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"Hasil\"+response.body());\n mItem= response.body().getResult();\n mAdapter = new AdapterRT(mItem,AspirasiRTActivity.this);\n mylistpost.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onFailure(Call<ResponModel> call, Throwable t) {\n refresh.setRefreshing(false);\n Log.d(\"RESPON\",\"GAGAL\");\n }\n });\n }", "@Override\n public void hiddenLoading() {\n Log.i(Tag, \"hiddenLoading\");\n }", "private void showLoadingDialog() {\n mDefaultLoadingDialogFragment = new DefaultLoadingDialogFragment();\n mDefaultLoadingDialogFragment.show(getChildFragmentManager(), \"loadingDialog\");\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(Edit_Profile_Company_Activity.this);\n pd.setMessage(str_loding);\n pd.setCancelable(false);\n pd.show();\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(Edit_Profile_Company_Activity.this);\n pd.setMessage(str_loding);\n pd.setCancelable(false);\n pd.show();\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(Edit_Profile_Company_Activity.this);\n pd.setMessage(str_loding);\n pd.setCancelable(false);\n pd.show();\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pd = new ProgressDialog(Edit_Profile_Company_Activity.this);\n pd.setMessage(str_loding);\n pd.setCancelable(false);\n pd.show();\n }", "@Override\n protected void onPostExecute(Void result) {\n super.onPostExecute(result);\n\n listBook.setAdapter(adapter);\n\n /** HIDE PROGRESS AFTER LOADING DATA **/\n linlaHeaderProgress.setVisibility(View.GONE);\n\n\n }", "@Override\n protected void onPreExecute() {\n pDialog = new ProgressDialog(getActivity());\n pDialog.setMessage(\"Please wait...\");\n pDialog.setCancelable(false);\n pDialog.setIndeterminate(false);\n pDialog.setMax(100);\n pDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n pDialog.show();\n// progressBar.setVisibility(View.VISIBLE);\n// progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog = new ProgressDialog(activity);\n\t\t\tpDialog.setMessage(\"Loading...\");\n\t\t\tpDialog.setIndeterminate(false);\n\t\t\tpDialog.setCancelable(true);\n\t\t\tpDialog.show();\n\t\t}", "@Override\n public void onClick(View v) {\n if(totalDataArr!=null && totalDataArr.length()>0){\n ViewBillDetailFragment fragment = new ViewBillDetailFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"TOT_DATA\", totalDataArr.toString());\n fragment.setArguments(bundle);\n ((HomeActivity) context).addFragment(fragment);\n }\n\n }", "@Override\r\n\t protected void onPreExecute() {\n\t super.onPreExecute();\r\n\t progressDialog = new ProgressDialog(UDMap.this);\r\n\t progressDialog.setMessage(\"Loading the best way...\");\r\n\t progressDialog.setIndeterminate(true);\r\n\t progressDialog.show();\r\n\t }", "private void loading(){\n mDbHelper = new DbHelper(getActivity());\n if(!(mDbHelper.getPlanCount() == 0)){\n plan_list.addAll(mDbHelper.getAllPlan());\n }\n refreshList();\n }", "@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor data) {\n mAdapter.swapCursor(data);\n if(mPosition==RecyclerView.NO_POSITION){\n mPosition=0;\n }\n mRecyclerView.smoothScrollToPosition(mPosition);\n // Log.v(\"getcount\",String.valueOf(data.getCount()));\n if(data.getCount()!=0){\n showWeatherDataView();\n }\n\n }", "@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\tpDialog = new ProgressDialog(EventDetailActivity.this);\r\n\t\t\tpDialog.setMessage(\"Loading event details. Please wait...\");\r\n\t\t\tpDialog.setIndeterminate(false);\r\n\t\t\tpDialog.setCancelable(true);\r\n\t\t\tpDialog.show();\r\n\t\t}", "public void initLoadingPage(Context c) {\n\n LayoutInflater inflater = (LayoutInflater) c.getSystemService( c.LAYOUT_INFLATER_SERVICE);\n final AlertDialog.Builder nameBuilder = new AlertDialog.Builder(c);\n View alertDiaView = inflater.inflate(R.layout.activity_loading_page,null);\n nameBuilder.setView(alertDiaView);\n\n avi = (AVLoadingIndicatorView) alertDiaView.findViewById(R.id.avi);\n avi.smoothToShow();\n\n\n int val= (int) (130 * Resources.getSystem().getDisplayMetrics().density);//dp to px\n alertDialog= nameBuilder.show();\n alertDialog.getWindow().setLayout(val ,val);\n\n\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n // // pDialog = new ProgressDialog(getContext());\n pDialog = new ProgressDialog(context);\n pDialog.setMessage(\"Cargando Información\");\n pDialog.setCancelable(true);\n pDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n pDialog.show();\n\n }", "private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n progress.setMessage(getResources().getString(R.string.loading));\n progress.setIndeterminate(false);\n progress.setCancelable(true);\n // progress.show();\n }", "private void onClick_recargar(){\n this.onDestroy();\n ((principal)getActivity()).loadLastFragment();\n }", "@Override\n\tpublic void onMyLoadMore() {\n\t\t\n\t}", "@Override\n\tpublic void onMyLoadMore() {\n\t\t\n\t}" ]
[ "0.69005454", "0.67028046", "0.665442", "0.6645439", "0.6620362", "0.6511366", "0.6511366", "0.6498679", "0.6498679", "0.6465354", "0.6448429", "0.6417339", "0.64120144", "0.6366906", "0.6341993", "0.63417727", "0.63314605", "0.6325917", "0.63221383", "0.63215655", "0.6293105", "0.6283037", "0.62805116", "0.62727386", "0.62693113", "0.62690306", "0.6268079", "0.6261395", "0.6245738", "0.62452304", "0.62384975", "0.62189627", "0.6210445", "0.62052995", "0.61979705", "0.61979705", "0.61770564", "0.61704296", "0.61668515", "0.61317724", "0.61298466", "0.6129715", "0.6128482", "0.61150205", "0.6102424", "0.6099402", "0.6097603", "0.6073079", "0.606738", "0.6060076", "0.6060022", "0.60540545", "0.60496646", "0.60370815", "0.60370815", "0.6032999", "0.60222554", "0.60170615", "0.6015366", "0.60135674", "0.60093844", "0.6008629", "0.60085166", "0.6008218", "0.6005528", "0.6003728", "0.59938407", "0.5989805", "0.5987648", "0.59824836", "0.59760815", "0.59738463", "0.59725523", "0.5957919", "0.5957853", "0.5957343", "0.59571946", "0.59528536", "0.59526867", "0.5947549", "0.5947543", "0.59437543", "0.594022", "0.5939239", "0.5939239", "0.5939239", "0.5939239", "0.5934048", "0.59317493", "0.593078", "0.59270334", "0.59249634", "0.592217", "0.5917024", "0.5915098", "0.59137386", "0.5909442", "0.59092164", "0.59088224", "0.59017587", "0.59017587" ]
0.0
-1
this method enters a new row corresponding to every recharge
public void enterRecharge(int rechargeId,String mobileNo,int PlanId) { Context ctx; try { ctx = new InitialContext(); DataSource ds=(DataSource)ctx.lookup("java:OracleDS"); Connection con=ds.getConnection(); Statement stmt=con.createStatement(); stmt.executeUpdate("Insert into recharge values("+rechargeId+","+mobileNo+","+PlanId+")"); con.close(); } catch (Exception e) { System.out.println("Error in connection with Database :"+e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }", "private void addRow() throws CoeusException{\r\n // PDF is not mandatory\r\n// String fileName = displayPDFFileDialog();\r\n// if(fileName == null) {\r\n// //Cancelled\r\n// return ;\r\n// }\r\n \r\n BudgetSubAwardBean budgetSubAwardBean = new BudgetSubAwardBean();\r\n budgetSubAwardBean.setProposalNumber(budgetBean.getProposalNumber());\r\n budgetSubAwardBean.setVersionNumber(budgetBean.getVersionNumber());\r\n budgetSubAwardBean.setAcType(TypeConstants.INSERT_RECORD);\r\n// budgetSubAwardBean.setPdfAcType(TypeConstants.INSERT_RECORD);\r\n budgetSubAwardBean.setSubAwardStatusCode(1);\r\n // PDF is not mandatory\r\n// budgetSubAwardBean.setPdfFileName(fileName);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n //COEUSQA-4061 \r\n CoeusVector cvBudgetPeriod = new CoeusVector(); \r\n \r\n cvBudgetPeriod = getBudgetPeriodData(budgetSubAwardBean.getProposalNumber(),budgetSubAwardBean.getVersionNumber()); \r\n \r\n //COEUSQA-4061\r\n int rowIndex = 0;\r\n if(data == null || data.size() == 0) {\r\n budgetSubAwardBean.setSubAwardNumber(1);\r\n // Added for COEUSQA-2115 : Subaward budgeting for Proposal Development - Start\r\n // Sub Award Details button will be enabled only when the periods are generated or budget has one period\r\n if(isPeriodsGenerated() || cvBudgetPeriod.size() == 1){\r\n subAwardBudget.btnSubAwardDetails.setEnabled(true);\r\n }\r\n // Added for COEUSQA-2115 : Subaward budgeting for Proposal Development - End\r\n }else{\r\n rowIndex = data.size();\r\n BudgetSubAwardBean lastBean = (BudgetSubAwardBean)data.get(rowIndex - 1);\r\n budgetSubAwardBean.setSubAwardNumber(lastBean.getSubAwardNumber() + 1);\r\n }\r\n if(!subAwardBudget.isEnabled()){\r\n subAwardBudget.btnSubAwardDetails.setEnabled(true);\r\n }\r\n data.add(budgetSubAwardBean);\r\n subAwardBudgetTableModel.fireTableRowsInserted(rowIndex, rowIndex);\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(rowIndex, rowIndex);\r\n \r\n }", "public void harvestRow()\n {\n this.hopAndPick();\n this.hop();\n this.plant();\n this.hopAndPick();\n this.hop();\n this.plant();\n this.hopAndPick();\n this.hop();\n this.plant();\n }", "public final void nextRow() {\n this.line++;\n }", "private void reloadPlanTable() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddRow();\n\t\t\t}", "private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddRow();\n\t\t\t}", "private void reloadShoppingCarTable() {\n\t\t\r\n\t}", "private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }", "public void logrec()\r\n {\n Object[] row = new Object[4];\r\n\r\n if(true){\r\n row[0] = date;\r\n row[1] = un;\r\n row[2] = tn;\r\n // add row to the model\r\n\r\n\r\n model.addRow(row);}\r\n\r\n\r\n }", "private void updateDatabase() {\n\n Database db = new Database();\n \n ArrayList<Order> orderArr = new ArrayList<>();\n orderArr = db.getPaidOrders(1);\n \n for (int i = 0; i < orderArr.size(); i++) {\n DefaultTableModel model = (DefaultTableModel) tblInvoices.getModel();\n \n boolean available = true;\n if (orderArr.get(i).getQuantity() == 0){\n available = false;\n }\n \n Object[] row = {orderArr.get(i).getOrderid(),\n orderArr.get(i).getBusinessname(), \n orderArr.get(i).getAmount(), \n orderArr.get(i).getDate()};\n model.addRow(row);\n } \n }", "private void prmtRepairItem_dataChange(KDTable kdTable,\r\n\t\t\tRepairItemEntryInfo[] repairItemEntryInfos) {\n\t\ttry {\r\n\t\t\tsuper.isNotNull();\r\n\t\t} catch (Exception e) {\r\n\t\t\tUIUtils.handUIExceptionAndAbort(e);\r\n\t\t}\r\n\r\n\t\tif (PublicUtils.isEmpty(txtMile.getText())) {\r\n\t\t\tMsgBoxEx.showInfo(\"进厂行驶里程不能为空\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if(selectBlock == null)\r\n\t\tint beginRowIndex = kdTable.getRowCount();\r\n\t\t// else beginRowIndex = selectBlock.getBeginRow();\r\n\t\t// if (beginRowIndex > 0 && selectBlock == null)\r\n\t\t// beginRowIndex--;\r\n\t\t// boolean isFirstRowIndex = true;\r\n\t\t// 已全部结算,不允许添加数据\r\n\t\ttry {\r\n\t\t\tif (!canChangeBillHeadValue()) {\r\n\t\t\t\tMsgBoxEx.showInfo(\"已全部结算,不允许添加新项目!\");\r\n\t\t\t\tprmtRepairItem.setValue(null);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} catch (Exception exc) {\r\n\t\t\tUIUtils.handUIException(exc);\r\n\t\t}\r\n\t\tisModify = true;\r\n\t\tint i = 0;\r\n\t\tint rowIndex = beginRowIndex;\r\n\t\tfor (int length = repairItemEntryInfos.length; i < length; i++) {\r\n\r\n\t\t\tRepairItemEntryInfo repairItemEntryInfo = repairItemEntryInfos[i];\r\n\t\t\tRepairItemInfo repairItemInfo = repairItemEntryInfo.getParent();\r\n\t\t\t// repairItemNums = repairItemNums + repairItemInfo.getNumber() +\r\n\t\t\t// \";\";\r\n\t\t\t/*\r\n\t\t\t * if(isFirstRowIndex) { if (beginRowIndex==0) insertLine(kdTable,\r\n\t\t\t * rowIndex); else if (kdTable.getCell(rowIndex,\r\n\t\t\t * \"repairItem\").getValue() != null || kdTable.getCell(rowIndex,\r\n\t\t\t * \"material\").getValue() != null) insertLine(kdTable, rowIndex);\r\n\t\t\t * \r\n\t\t\t * } else { insertLine(kdTable, rowIndex);\r\n\t\t\t * \r\n\t\t\t * }\r\n\t\t\t */\r\n\t\t\tinsertLine(kdTable, rowIndex);\r\n\t\t\tkdTable.getCell(rowIndex, \"repairItem\").setValue(repairItemInfo);\r\n\t\t\tkdTable.getCell(rowIndex, \"t\").setValue(TEnum.L);\r\n\t\t\tkdTable.getCell(rowIndex, \"itemspNum\").setValue(\r\n\t\t\t\t\trepairItemInfo.getNumber());\r\n\t\t\tkdTable.getCell(rowIndex, \"itemspName\").setValue(\r\n\t\t\t\t\trepairItemInfo.getName());\r\n\t\t\tkdTable.getCell(rowIndex, \"issueQty\").setValue(null);\r\n\t\t\tkdTable.getCell(rowIndex, \"unIssueQty\").setValue(null);\r\n\r\n\t\t\ttry {\r\n\t\t\t\t/** 计算标准工时、工时单价、工时成本 */\r\n\t\t\t\tBigDecimal workTimeQty = getRepairItemWorkTimeQty(repairItemInfo);\r\n\t\t\t\tkdTable.getCell(rowIndex, \"worktimeQty\").setValue(workTimeQty);\r\n\t\t\t\tkdTable.getCell(rowIndex, \"worktimePrice\").setValue(workTimeStdPrice);\r\n\t\t\t\tkdTable.getCell(rowIndex, \"worktimeCost\").setValue(workTimeQty.multiply(workTimeStdPrice));\r\n\r\n\t\t\t\t// 出关联配件\r\n\t\t\t\tRepairItemSpEntryCollection repairItemSpEntryCol = getRepairItemSPEntryCollection(repairItemInfo);\r\n\t\t\t\tBigDecimal defaultRepairItemTaxPrice = repairItemInfo.getBigDecimal(\"price\"); // 参考售价(含税)\r\n\r\n\t\t\t\tif (PublicUtils.equals(repairItemInfo, defaultRepairItemForTXT)) {\r\n\t\t\t\t\tkdTable.getCell(rowIndex, \"price\").setValue(BIGDEC0);\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tif (defaultRepairItemTaxPrice != null && defaultRepairItemTaxPrice.compareTo(BIGDEC0) != 0) {\r\n\t\t\t\t\t\tBigDecimal taxRate = PublicUtils.getBigDecimal(kdTable.getRow(rowIndex).getCell(\"taxRate\").getValue());\r\n\t\t\t\t\t\tBigDecimal defaultPrice = defaultRepairItemTaxPrice.divide(BIGDEC1.add(taxRate.divide(BIGDEC100,10, BigDecimal.ROUND_HALF_UP)), 10,BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"price\").setValue(defaultPrice);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (PublicUtils.isEmpty(repairItemSpEntryCol)) { // 无关联配件时\r\n\t\t\t\t\t\t\t// ,\r\n\t\t\t\t\t\t\t// 未设参考售价时\r\n\t\t\t\t\t\t\t// ,\r\n\t\t\t\t\t\t\t// 默认39\r\n\t\t\t\t\t\t\t// ,\r\n\t\t\t\t\t\t\t// 否则为0\r\n\t\t\t\t\t\t\tkdTable.getCell(rowIndex, \"price\").setValue(new BigDecimal(39));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tkdTable.getCell(rowIndex, \"price\").setValue(BIGDEC0);\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\tif (repairItemInfo.getNumber().startsWith(\"FDJQ\")) {\r\n\t\t\t\t\tkdTable.getCell(rowIndex, \"qty\").setValue(new BigDecimal(-1));\r\n\t\t\t\t}\r\n\t\t\t\tif (rowIndex > 0) {\r\n\t\t\t\t\tWInfo wInfo = (WInfo) kdTable.getRow(0).getCell(\"w\")\r\n\t\t\t\t\t\t\t.getValue();\r\n\t\t\t\t\tif (wInfo != null) {\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"w\").setValue(wInfo);\r\n\t\t\t\t\t\tkdtRWOItemSpEntry.getRow(rowIndex).getCell(\"settlementObject\").setValue(wInfo.getSettleObject());\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcalItemSpEntryAmount(kdTable.getRow(rowIndex));\r\n\t\t\t\t// 维修项目分录ID\r\n\t\t\t\tString repairItemEntryId = ((RepairWORWOItemSpEntryInfo) kdTable.getRow(rowIndex).getUserObject()).getString(\"id\");\r\n\t\t\t\trowIndex++;\r\n\t\t\t\t// 自动带出关联配件\r\n\t\t\t\tif (!PublicUtils.isEmpty(repairItemSpEntryCol)) {\r\n\r\n\t\t\t\t\tString orgId = orgUnitInfo.getString(\"id\");\r\n\t\t\t\t\tfor (int j = 0; j < repairItemSpEntryCol.size(); j++) {\r\n\t\t\t\t\t\tRepairItemSpEntryInfo repairItemSpEntryInfo = repairItemSpEntryCol.get(j);\r\n\t\t\t\t\t\tMaterialInfo materialInfo = repairItemSpEntryInfo.getMaterial();\r\n\t\t\t\t\t\tBigDecimal qty = PublicUtils.getBigDecimal(repairItemSpEntryInfo.getBigDecimal(\"qty\"));\r\n\t\t\t\t\t\tBigDecimal price = PublicUtils.getBigDecimal(repairItemSpEntryInfo.getBigDecimal(\"price\"));\r\n\t\t\t\t\t\tBigDecimal discountRate = PublicUtils.getBigDecimal(repairItemSpEntryInfo.getBigDecimal(\"discountRate\"));\r\n\r\n\t\t\t\t\t\tBigDecimal costPrice = getMaterialCostPrice(orgId,materialInfo);\r\n\t\t\t\t\t\tinsertLine(kdTable, rowIndex);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"costAmount\").setValue(costPrice);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"material\").setValue(materialInfo);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"t\").setValue(TEnum.P);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"itemspNum\").setValue(materialInfo.getNumber());\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"itemspName\").setValue(materialInfo.getName());\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"qty\").setValue(qty);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString sql = String.format(\"select isnull(FPrice,0) FPrice,FTaxRate from T_BD_MaterialSales where FMaterialID='%s' and FOrgUnit='%s'\",\r\n\t\t\t\t\t\t\t\tmaterialInfo.getString(\"id\"), orgUnitInfo.getString(\"id\"));\r\n\t\t\t\t\r\n\t\t\t\t\t\tIRowSet rs = DBUtils.executeQuery(null, sql);\r\n\t\t\t\t\t\tif (rs != null && rs.next()) {\r\n\t\t\t\t\t\t\tif (rs.getBigDecimal(\"FTaxRate\") != null && !PublicUtils.equals(BigDecimal.ZERO, rs.getBigDecimal(\"FTaxRate\"))) {\r\n\t\t\t\t\t\t\t\tkdTable.getCell(rowIndex, \"taxRate\").setValue(rs.getBigDecimal(\"FTaxRate\"));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tBigDecimal retailDiscountRate = BIGDEC0;\r\n\t\t\t\t\t\tHashMap<String, BigDecimal> hashDiscountRate = getDiscountRate();\r\n\t\t\t\t\t\tif (!PublicUtils.isEmpty(hashDiscountRate)) {\r\n\t\t\t\t\t\t\tretailDiscountRate = hashDiscountRate.get(DiscountDate_Retail);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"discountRate\").setValue(retailDiscountRate);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"unIssueQty\").setValue(qty);\r\n\t\t\t\t\t\tif (rowIndex > 0) {\r\n\t\t\t\t\t\t\tWInfo wInfo = (WInfo) kdTable.getRow(0).getCell(\"w\").getValue();\r\n\t\t\t\t\t\t\tif (wInfo != null) {\r\n\t\t\t\t\t\t\t\tkdTable.getCell(rowIndex, \"w\").setValue(wInfo);\r\n\t\t\t\t\t\t\t\tkdtRWOItemSpEntry.getRow(rowIndex).getCell(\"settlementObject\").setValue(wInfo.getSettleObject());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tkdTable.getRow(rowIndex).getCell(\"itemspName\").getStyleAttributes().setLocked(!hasPermission_OprtRetailItemspName);\r\n\r\n\t\t\t\t\t\t// 关联维修项目参考售价未配置或为0时,关联配件取自身的参考售价,否则为0----取消\r\n\t\t\t\t\t\t// if (defaultRepairItemTaxPrice == null ||\r\n\t\t\t\t\t\t// defaultRepairItemTaxPrice.compareTo(BIGDEC0) == 0) {\r\n\t\t\t\t\t\t// String sql = String.format(\r\n\t\t\t\t\t\t// \"select isnull(FPrice,0) from T_BD_MaterialSales where FMaterialID='%s' and FOrgUnit='%s'\"\r\n\t\t\t\t\t\t// ,\r\n\t\t\t\t\t\t//materialInfo.getString(\"id\"),orgUnitInfo.getString(\"id\"\r\n\t\t\t\t\t\t// ));\r\n\t\t\t\t\t\t// IRowSet rs = DBUtils.executeQuery(null, sql);\r\n\t\t\t\t\t\t// if (rs != null && rs.next()) {\r\n\t\t\t\t\t\t// kdTable.getCell(rowIndex,\r\n\t\t\t\t\t\t// \"price\").setValue(rs.getBigDecimal(1));\r\n\t\t\t\t\t\t//\t\t\t\t\r\n\t\t\t\t\t\t// } else {\r\n\t\t\t\t\t\t// throw new EASBizException(new\r\n\t\t\t\t\t\t// NumericExceptionSubItem(\r\n\t\t\t\t\t\t// \"\",String.format(\"物料[%s],销售组织[%s]未分配销售页签,请先分配\"\r\n\t\t\t\t\t\t// ,materialInfo\r\n\t\t\t\t\t\t// .getName(),orgUnitInfo.getString(\"name\"))));\r\n\t\t\t\t\t\t// }\r\n\r\n\t\t\t\t\t\t// } else {\r\n\t\t\t\t\t\t// kdTable.getCell(rowIndex, \"price\").setValue(BIGDEC0);\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"price\").setValue(price);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"discountRate\").setValue(discountRate);\r\n\r\n\t\t\t\t\t\tIRow row = kdTable.getRow(rowIndex);\r\n\t\t\t\t\t\tcalItemSpEntryAmount(row);\r\n\t\t\t\t\t\t// 默认首次计算出初始的实际含税单价\r\n\t\t\t\t\t\tBigDecimal taxPrice = (BigDecimal) row.getCell(\"taxPrice\").getValue(); // 含税\r\n\t\t\t\t\t\t// BigDecimal discountRate = (BigDecimal)\r\n\t\t\t\t\t\t// row.getCell(\"discountRate\").getValue();\r\n\t\t\t\t\t\tBigDecimal initFactPrice = taxPrice.multiply(BIGDEC1.subtract(discountRate.divide(BIGDEC100, 10,BigDecimal.ROUND_HALF_UP)));\r\n\t\t\t\t\t\trow.getCell(\"initFactPrice\").setValue(initFactPrice);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"price\").getStyleAttributes().setLocked(!hasPermission_OprtRetailPrice);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"taxPrice\").getStyleAttributes().setLocked(!hasPermission_OprtRetailPrice);\r\n\t\t\t\t\t\tkdTable.getCell(rowIndex, \"relateItemEntryId\").setValue(repairItemEntryId);\r\n\r\n\t\t\t\t\t\tresetItemSpEditorLocked(kdTable.getRow(rowIndex));\r\n\r\n\t\t\t\t\t\trowIndex++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tstoreFields();\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tUIUtils.handUIException(e);\r\n\t\t\t}\r\n\t\t\t// isFirstRowIndex = false;\r\n\t\t}\r\n\t\tint qtyIndex = kdTable.getColumnIndex(\"qty\");\r\n\t\tkdTable.getEditManager().editCellAt(beginRowIndex, qtyIndex);\r\n\r\n\t}", "private void refreshTable() {\n dataPanel.getModel().setRowCount(0);\n try {\n ResultSet resultSet = reg.get();\n while (resultSet.next()) {\n dataPanel.getModel().addRow(new Object[]{\n resultSet.getInt(\"id\"),\n resultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"username\"),\n resultSet.getString(\"password\"),\n resultSet.getInt(\"age\"),\n resultSet.getString(\"gender\"),\n });\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }", "private void fillFirstRow() {\n\t\tputBeeper();\n\t\tputEveryOtherBeeper();\t\t\n\t}", "private void remplirPrestaraireData() {\n\t}", "public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }", "private void advanceRow(){\n\t\tfaceBackwards();\n\t\twhile(frontIsClear()){\n\t\t\tmove();\n\t\t}\n\t\tturnRight();\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t}\n\t}", "public void populateDiseaseTable() {\r\n DefaultTableModel dtm = (DefaultTableModel) tblDisease.getModel();\r\n dtm.setRowCount(0);\r\n for (Conditions disease : system.getConditionsList().getConditionList()) {\r\n Object[] row = new Object[2];\r\n row[0] = disease;\r\n row[1] = disease.getDiseaseId();\r\n dtm.addRow(row);\r\n }\r\n }", "private void LeastMoviableItem() {\n DefaultTableModel dtm=(DefaultTableModel) leastmoviableitemtable.getModel();\n ArrayList<MoviableItem> findleastmoviableitem;\n try {\n findleastmoviableitem = LeastMoviableItemController.findleastmoviableitem();\n for (MoviableItem moviableItem : findleastmoviableitem) {\n Object[]rowdata={moviableItem.getItemcode(),moviableItem.getDescription(),moviableItem.getSalse()}; \n dtm.addRow(rowdata);\n }\n } catch (ClassNotFoundException | SQLException ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n \n\n }", "public void newRow();", "protected void addNewRow(Object[] row) {\n for (int i = 0; i < aggregators.length; i++) {\n if (null != row[i]) {\n this.isNotNullValue[i] = true;\n aggregators[i].agg(row[i]);\n }\n }\n prvKey = (byte[]) row[this.keyIndex];\n calculateMaxMinUnique();\n }", "public void newRecord() {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tdateTxt.setText(dateFormat.format(new Date()));\n\t\t//mark all students enrolled as attendant\n\t\tif (courseTable.getSelectedRow() != -1) {\n\t\t\tsetWarningMsg(\"\");\n\t\t\tupdateStudent(currentCourse);\n\t\t\tfor (int i = 0; i < studentTable.getRowCount(); i++) {\n\t\t\t\tstudentTable.setValueAt(new Boolean(true), i, 0);\n\t\t\t}\t\t\t\n\t\t}\n\t\telse {\n\t\t\t//show message: choose course first\n\t\t\tsetWarningMsg(\"please select course first\");\n\t\t}\n\t}", "private void intiPlanTable(){\n //gets all plans that are linked with the current profile\n List<Plan> planList = profile.getPlans().getPlans();\n //now add all plans to the table\n DefaultTableModel model = (DefaultTableModel) this.jTable1.getModel();\n model.setRowCount(0);\n planList.forEach((p) -> {\n model.addRow(new Object[]{p.getPlanName(),p});\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\teditRow();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\teditRow();\n\t\t\t}", "private void formWindowGainedFocus(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowGainedFocus\n DefaultTableModel tabla = (DefaultTableModel) jTable1.getModel();\n tabla.setRowCount(0);\n Iterator<Incidencies> iterando = Public.arrayIncidencies.iterator();\n\n while (iterando.hasNext()) {\n Incidencies incidencia_aux = iterando.next();\n tabla.addRow(new Object[]{incidencia_aux.getid(),\n incidencia_aux.gettitolIncidencia(),\n incidencia_aux.getdescripcioIncidencia(),\n incidencia_aux.getlloc(),\n incidencia_aux.getuser(),\n incidencia_aux.getdate()\n });\n } }", "@Override\n\tpublic void rent() {\n\t\tcontactLandlord();\n\t\tli.rent();\n\t\tchargeAgency();\n\t}", "public final void incrementRowsReadEvent() {\n rowsRead_++;\n }", "public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }", "private void histBtnActionPerformed(java.awt.event.ActionEvent evt) {\n rentTable.setModel(new DefaultTableModel(null, new Object[]{\"Rental Number\",\n \"Date of Rent\", \"Return Date\", \"Total Price\"}));\n\n DefaultTableModel rentalTable = (DefaultTableModel) rentTable.getModel();\n\n Object row[];\n for (int x = 0; x < rentalsList.size(); x++) {\n row = new Object[4];\n row[0] = rentalsList.get(x).getRentalNumber();\n row[1] = rentalsList.get(x).getDateRental();\n row[2] = rentalsList.get(x).getDateReturned();\n row[3] = \"R\" + rentalsList.get(x).getTotalRental();\n\n rentalTable.addRow(row);\n }\n\n }", "private void riempimentoTableQuote() {\n\t\tString[] nameColumns = { \"Id\", \"Data inizio\", \"Valore\", \"Tipologia\" };\n\t\tquote = new ArrayList<Quota>(model.getQuote());\n\n\t\t/* Istanza del TableModel con l'override di isCellEditable per rendere\n\t\tla tabella non modificabile */\n\t\t@SuppressWarnings(\"serial\")\n\t\tDefaultTableModel dati = new DefaultTableModel(nameColumns, 0) {\n\t\t\t@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t\tfor (int j = 0; j < quote.size(); j++) {\n\t\t\tdati.addRow(new Vector<>());\n\t\t\tdati.setValueAt(quote.get(j).getId(), j, 0);\n\t\t\tdati.setValueAt(quote.get(j).getDataI(), j, 1);\n\t\t\tdati.setValueAt(quote.get(j).getValore(), j, 2);\n\t\t\tdati.setValueAt(quote.get(j).getTipologia(), j, 3);\n\t\t}\n\t\tviewGestione.getTable().setModel(dati);\n\t}", "void fill(Row row) {\n if (row == null) return;\n for (Column column : getColumns()) {\n String name = column.getName();\n Object value = row.get(name);\n Classes.setFieldValue(this, name, value);\n }\n }", "public void DataRow_AcceptChanges() throws Exception {\n DataTable table = new DataTable(\"table\");\r\n DataColumn fNameColumn = new DataColumn(\"FirstName\", TClrType.getType(\"System.String\"));\r\n table.getColumns().Add(fNameColumn);\r\n DataRow row;\r\n\r\n // Create a new DataRow.\r\n row = table.NewRow();\r\n // Detached row.\r\n System.out.println(row.getRowState());\r\n\r\n table.getRows().Add(row);\r\n // New row.\r\n System.out.println(row.getRowState());\r\n\r\n table.AcceptChanges();\r\n // Unchanged row.\r\n System.out.println(row.getRowState());\r\n\r\n row.setItem(0, \"Scott\");\r\n // Modified row.\r\n System.out.println(row.getRowState());\r\n\r\n row.Delete();\r\n // Deleted row.\r\n System.out.println(row.getRowState());\r\n }", "@Override\n\t\t\t\tpublic void allRowsChanged() {\n\n\t\t\t\t}", "private void pushEditedReport() throws JSONException {\n Cursor cursor = getEditedReportCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n\n int updatedRows;\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n final ExpenseReport expenseReport = Utility\n .createExpenseReportFromCursor(cursor);\n\n ERTRestApi.apiEditReport(\n expenseReport,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n\n pushSavedExpenseLineItem();\n\n int updatedRows = updateReportSyncStatus\n (reportBaseId,\n SyncStatus.SYNCED\n );\n Log.d(LOG_TAG, \"SyncStatus after test \" +\n getReportSyncStatus(getContext(),\n reportBaseId));\n Log.d(LOG_TAG, \"Report ID: \" + expenseReport.getId());\n\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n\n int updatedRows = updateReportSyncStatus\n (reportBaseId, SyncStatus.EDITED_REPORT);\n Log.d(LOG_TAG, \"updated rows edit report error:\" + updatedRows);\n Log.e(LOG_TAG, error.getMessage());\n\n }\n });\n\n updatedRows = updateReportSyncStatus(reportBaseId,\n SyncStatus.SYNC_IN_PROGRESS\n );\n\n Log.d(LOG_TAG, \"updated rows edit report complete:\" + updatedRows);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "public void enterEmpsInInsertMode(){\n EmployeesViewImpl emps=(EmployeesViewImpl)this.getEmployeesView1();\n \n emps.executeEmptyRowSet(); // executeEmpty RowSet in order not to fetch Data.\n \n Row newRow=emps.createRow();\n \n emps.insertRow(newRow);\n \n emps.setCurrentRow(newRow);\n \n }", "private void pushSavedExpenseLineItem(){\n //Cursor cursor = getExpenseStatusCursor(SyncStatus.SAVED_REPORT);\n Cursor cursor = getSavedExpenseLineItemCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n do {\n final Long expenseBaseId = cursor.getLong(\n cursor.getColumnIndex(ExpenseEntry._ID));\n\n ExpenseLineItem expenseLineItem = new ExpenseLineItem();\n\n expenseLineItem.setDescription(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_DESCRIPTION)));\n\n expenseLineItem.setExpenseReportId(cursor.getInt(\n cursor.getColumnIndex(ExpenseEntry.COLUMN_REPORT_ID)));\n\n expenseLineItem.setExpenseDate(\n cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_EXPENSE_DATE)));\n\n expenseLineItem.setCategory(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CATEGORY)));\n\n expenseLineItem.setCost(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_COST)));\n\n expenseLineItem.setHst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_HST)));\n expenseLineItem.setGst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_GST)));\n expenseLineItem.setQst(cursor.getFloat(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_QST)));\n expenseLineItem.setCurrency(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_CURRENCY)));\n expenseLineItem.setRegion(cursor.getString(cursor.getColumnIndex(\n ExpenseEntry.COLUMN_REGION)));\n\n //TODO: receipt\n\n try {\n ERTRestApi.apiAddExpenseLineItem(\n expenseLineItem,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseLineItem expenseLineItemResponse =\n gson.fromJson(response.toString(),\n ExpenseLineItem.class\n );\n\n updateExpenseLineItemSyncStatus(expenseBaseId,\n SyncStatus.SYNCED\n );\n\n setExpenseLineItemValuesFromServer(\n expenseBaseId,\n expenseLineItemResponse\n );\n\n }\n },\n\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n\n Log.e(LOG_TAG, error.getMessage());\n\n }\n }\n );\n } catch (ERTRestApiException | JSONException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n\n updateExpenseLineItemSyncStatus(expenseBaseId,SyncStatus.SYNC_IN_PROGRESS);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "public void fetRowList() {\n try {\n data.clear();\n if (rsAllEntries != null) {\n ObservableList row = null;\n //Iterate Row\n while (rsAllEntries.next()) {\n row = FXCollections.observableArrayList();\n //Iterate Column\n for (int i = 1; i <= rsAllEntries.getMetaData().getColumnCount(); i++) {\n row.add(rsAllEntries.getString(i));\n }\n data.add(row);\n }\n //connects table with list\n table.setItems(data);\n // cell instances are generated for Order Status column and then colored\n customiseStatusCells();\n\n } else {\n warning.setText(\"No rows to display\");\n }\n } catch (SQLException ex) {\n System.out.println(\"Failure getting row data from SQL \");\n }\n }", "public void rowField()\n\t{ \n\t\tviewTable.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e)\n\t\t\t{\n\t\t\t\tint c;\n\t\t\t\tString id ,oldname,oladdress,oldcontact,oldemail,oldusername, oldpassword;\n\t\t\t\tDefaultTableModel viewTablemodel = (DefaultTableModel)viewTable.getModel();\n\t\t\t\tc=viewTable.getSelectedRow();\n\t\t\t\tid= viewTablemodel.getValueAt(c, 1).toString();\n\t\t\t\toldname= viewTablemodel.getValueAt(c,2).toString();\n\t\t\t\toldcontact= viewTablemodel.getValueAt(c,3).toString();\n\t\t\t\toladdress= viewTablemodel.getValueAt(c,4).toString();\n\t\t\t\toldemail= viewTablemodel.getValueAt(c,5).toString();\n\t\t\t\toldusername= viewTablemodel.getValueAt(c,6).toString();\n\t\t\t\toldpassword= viewTablemodel.getValueAt(c,7).toString();\n\t\t\t\tupdatePanel(id, oldname, oldcontact, oladdress, oldemail, oldusername, oldpassword);\n\t\t\t\tsetRowCount(viewTable.getSelectedRow());\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tArrayList<CommodityVO> cmlist = new ArrayList<CommodityVO>();\r\n\t\tfor (int j = 0; j <p. table.getRowCount(); j++) {\r\n\t\t\tArrayList<String> line = p.cmContent.get(j);\r\n\t\t\tdouble cost = Double.parseDouble(line.get(4)) * p.last_bid.get(j);\r\n\t\t\tCommodityVO cv = new CommodityVO(line.get(0), line.get(1),\r\n\t\t\t\t\tline.get(2), Double.parseDouble(line.get(4)),\r\n\t\t\t\t\tp.last_bid.get(j), Integer.parseInt(line.get(3)),\r\n\t\t\t\t\tDouble.parseDouble(line.get(5)), cost, line.get(6));\r\n\t\t\tcmlist.add(cv);\r\n\t\t}\r\n\t\tPurchaseReturnVO v=new PurchaseReturnVO(vo.getId(),vo.getMemberName(),\r\n\t\t\t\tvo.getMemberID(),vo.getUser(),vo.getStatus(),p.remarkFld.getText(),\r\n\t\t\t\tvo.getHurry(),cmlist,p.totalMoney,vo.getStockid(),vo.getPurid());\r\n\t\tString tip=\"修改\";\r\n\t\tint result=0;\r\n\t\tif(isRed)\r\n\t\t{\r\n\t\t\tresult=p.service.addPurchaseReturn(v);tip=\"制定\";\r\n\t\t}\r\n\t\tresult=p.service.modifyPurchaseReturn(v);\r\n\t\tif (result == 0) {\r\n\t\t\tlog.addLog(new LogVO(log.getdate(),parent.getUser()\r\n\t\t\t\t.getID(), parent.getUser().getName(), tip+\"一笔进货退货单\", 3));\r\n\t\t\ttry {\r\n\t\t\t\theadPane.RefreshGrades();\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\tJOptionPane.showMessageDialog(null, \"进货退货单\"+tip+\"失败\", \"提示\",\r\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\r\n\t}", "public void refreshRow() throws SQLException\n {\n m_rs.refreshRow();\n }", "public void addRow(String data){//adds a new row of data to the table\n\t\t\t\tif(row_count<100){//checks to see if there is space left in the current datum for an additional rows\n\t\t\t\t\tif(row_count<50){//halvs the data for more efficiant row insertion\n\t\t\t\t\t\tif(row_count<10){//checks to see if it is in the first inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[0]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<20){//checks to see if it is in the second inner datum\n\t\t\t\t\t\t\tf(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[1]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<30){//checks to see if it is in the third inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[2]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<40){//checks to see if it is in the fourth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[3]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the fifth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[4]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\t\n\t\t\t\t\t\tif(row_count<60){//checks to see if it is in the sixth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[5]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<70){//checks to see if it is in the seventh inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[6]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<80){//checks to see if it is in the eighth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[7]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<90){//checks to see if it is in the ninth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[8]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the tenth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[9]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\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}else{//acctivated when there is no room left in the current outer datum}\n\t\t\t\t\tif(next==null){//checks to see if there is a next outer datum\n\t\t\t\t\t\tnext=new OuterDatum();\t\n\t\t\t\t\t}\n\t\t\t\t\tnext.addRow(data);\n\t\t\t\t}\n\t\t\t}", "private void fillData() {\n table.setRowList(data);\n }", "public void moveToCurrentRow() throws SQLException {\n\n try {\n debugCodeCall(\"moveToCurrentRow\");\n checkClosed();\n insertRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public void addPreqData(Object[] tableData) {\n\t\tlogger.info(\"addCreditData\");\r\n\t\tString qury=\" SELECT HRMS_EMP_PERQUISITE.PERQ_AMT FROM HRMS_EMP_PERQUISITE WHERE HRMS_EMP_PERQUISITE.PERQ_CODE=\"+ tableData[0]+\" AND \" +\r\n\t\t\t\t\" HRMS_EMP_PERQUISITE.EMP_ID =\"+ tableData[2];\r\n\t\t\t\tObject amt[][]=getSqlModel().getSingleResult(qury);\r\n\t\t\t\tlogger.info(\"FIRING QUERY\");\r\n\t\t\t\t/*PERQ_CODE,DEBIT_APPLICABLE,DEBIT_AMT,EMP_ID*/\r\n\t\t\t\tlogger.info(\"*********************************before\"+tableData[2]);\r\n\t\t\t\tif(amt.length==0)\r\n\t\t\t\t{\r\n\t\t\t\tObject[][] bean = new Object[1][3];\r\n\r\n\t\t\t\tbean[0][0] = tableData[0];//code\r\n\t\t\t\t\r\n\t\t\t\tbean[0][1] = tableData[1];//amt\r\n\t\t\t\tbean[0][2] = tableData[2];//empid\r\n logger.info(\"insert query...!!\");\r\n\t\t\t\tboolean result = getSqlModel().singleExecute(getQuery(7), bean);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tString upd=\" UPDATE HRMS_EMP_PERQUISITE SET PERQ_AMT=\"+tableData[1]+\" WHERE PERQ_CODE=\"+tableData[0]+\" AND EMP_ID=\"+tableData[2];\r\n\t\t\t\t\tlogger.info(upd);\r\n\t\t\t\t\tboolean result = getSqlModel().singleExecute(upd);\t\r\n\t\t\t\t\tlogger.info(upd);\r\n\t\t\t\t\tlogger.info(\"*********************************before\"+tableData[2]);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}", "void committed() {\n\t\t\tfor (Entry<Integer, Object> entry : newData.entrySet())\n\t\t\t\toriginalData.put(entry.getKey(), entry.getValue());\n\t\t\treset();\n\t\t\taction = RowAction.UPDATE;\n\t\t}", "private void refreshJTable() {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(DATABASE_URL, UserName_SQL, Password_SQL);\n\t\t\tstatement = connection.createStatement();\n\t\t\tResultSet resultSet = statement.executeQuery(\n\t\t\t\t\t\"SELECT customerID, productId, qtyProduct, invoiceDate, invoiceTime FROM invoice ORDER BY invoiceDate DESC, invoiceTime DESC\");\n\t\t\tResultSetMetaData metaData = resultSet.getMetaData(); /* create for the columns count */\n\t\t\tint numberOfColumns = metaData.getColumnCount(); /* get the number of columns for Query Table */\n\t\t\tint numberOfRows = getJTableNumberOfRows(); /* get the number of rows for Query Table */\n\t\t\tObject[][] data = new Object[numberOfRows][numberOfColumns]; /* create a storage for the database */\n\n\t\t\tmodel.getDataVector().removeAllElements(); /* remove JTable all elements */\n\n\t\t\t/* While loop for getting all database into object */\n\t\t\tint j = 0, k = 0;\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tfor (int i = 1; i <= numberOfColumns; i++) {\n\t\t\t\t\tdata[j][k] = resultSet.getObject(i);\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t\tObject[] addRow = { data[j][0], data[j][1], data[j][2], data[j][3], data[j][4] };\n\t\t\t\tmodel.addRow(addRow);\n\t\t\t\tk = 0;\n\t\t\t\tj++;\n\t\t\t} // end while\n\t\t\t\t// model.fireTableDataChanged(); /* no use at the moment*/\n\t\t} // end try\n\t\tcatch (SQLException sqlException) {\n\t\t\tsqlException.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} // end catch\n\t\tfinally // ensure statement and connection are closed properly\n\t\t{\n\t\t\ttry {\n\t\t\t\tstatement.close();\n\t\t\t\tconnection.close();\n\t\t\t} // end try\n\t\t\tcatch (Exception exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t} // end catch\n\t\t} // end finally\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tint row = deckTable.getSelectedRow();\n\t\t\t\tif (row >= 0) {\n\t\t\t\t\tdeck.removeCard(((String)deckTable.getValueAt(row, 0)));\n\t\t\t\t\tSystem.out.println(((String)deckTable.getValueAt(row, 0)));\n\t\t\t\t\tArrayList<Object[]> objs = new ArrayList<Object[]>();\n\t\t\t\t\t\n\t\t\t\t\t// update the dcek table\n\t\t\t\t\tDeckObject[] deckRows = deck.getTable();\n\t\t\t\t\tfor (int i = 0; i < deckRows.length; i++) {\n\t\t\t\t\t\tobjs.add(deckRows[i].get());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString[][] rows = objs.toArray(new String[0][0]);\n\t\t\t\t\t\n\t\t\t\t\t// display the new table\n\t\t\t\t\tdeckTable.setModel(new UneditableTableModel(rows, deckColumns));\n\t\t\t\t\tint newSelectRow = row;\n\t\t\t\t\tif (row == deckTable.getRowCount())\n\t\t\t\t\t\tnewSelectRow = deckTable.getRowCount()-1;\n\t\t\t\t\t\n\t\t\t\t\t// select the next item on the table\n\t\t\t\t\tif (newSelectRow >= 0)\n\t\t\t\t\t\tdeckTable.setRowSelectionInterval(newSelectRow,newSelectRow);\n\t\t\t\t\tSystem.out.println(deckTable.getRowCount());\n\t\t\t\t}\n\t\t\t}", "public void setRow(int newRow) {\n this.row = newRow;\n }", "private void deleteRow(int selectedRow){\r\n BudgetSubAwardBean budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n if(budgetSubAwardBean.getAcType() == null || budgetSubAwardBean.getAcType().equals(TypeConstants.UPDATE_RECORD)){\r\n budgetSubAwardBean.setAcType(TypeConstants.DELETE_RECORD);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n if(deletedData ==null) {\r\n deletedData = new ArrayList();\r\n }\r\n deletedData.add(budgetSubAwardBean);\r\n }\r\n data.remove(selectedRow);\r\n \r\n //If Last Row nothing to do\r\n //else Update Sub Award Number for rest of the Rows\r\n /*int size = data.size();\r\n if(selectedRow != size) {\r\n for(int index = selectedRow; index < size; index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n budgetSubAwardBean.setSubAwardNumber(index + 1);\r\n if(budgetSubAwardBean.getAcType() == null) {\r\n budgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End For\r\n }//End If\r\n */\r\n \r\n subAwardBudgetTableModel.fireTableRowsDeleted(selectedRow, selectedRow);\r\n }", "public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}", "public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}", "@After\n\t\t@ActionTrigger(action=\"WHEN-NEW-RECORD-INSTANCE\", function=KeyFunction.RECORD_CHANGE)\n\t\tpublic void spriden_recordChange()\n\t\t{\n\t\t\t\n\n\t\t\t\tSpridenAdapter spridenElement = (SpridenAdapter)this.getFormModel().getSpriden().getRowAdapter(true);\n\n\t\t\t\tif(spridenElement!=null){\n\n\t\t\t\tif ( spridenElement.getRowState().equals(DataRowStatus.INSERTED) )\n\t\t\t\t{\n\t\t\t\t\tif ( getBlockCurrentRecord(getCursorBlock()).notEquals(1) )\n\t\t\t\t\t{\n\t\t\t\t\t\tpreviousRecord();\n\t\t\t\t\t\tmessage(GNls.Fget(toStr(\"SOAIDNS-0002\"), toStr(\"FORM\"), toStr(\"At last record.\")), OutputMessageUserResponse.NO_ACKNOWLEDGE);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\treturn ;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// \n\t\t\t\texecuteAction(\"QUERY_RECS\");\n\t\t\t}\n\t\t}", "@Override\n public int getRowChange() {\n return rowChange;\n }", "public void getNextRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.getNextRecord(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\t}", "private void generatedNewCredits(Locale locale, PdfPTable paymentMethodTable, BigDecimal newCreditAmount) {\n if (newCreditAmount != null && newCreditAmount.intValue() != new BigDecimal(0).intValue()) {\n String message = getMessage(locale, \"pdf.receipt.newCreditsIssued\");\n Font font = getFont(GREEN_COLOR, FONT_SIZE_12, Font.NORMAL);\n PdfPCell generatedCreditsCell = new PdfPCell(new Phrase(message, font));\n PdfPCell generatdCreditAmountCell = new PdfPCell(new Phrase(getFormattedAmount(newCreditAmount), font));\n cellAlignment(generatedCreditsCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, generatedCreditsCell, Rectangle.NO_BORDER, 0, 0);\n\n cellAlignment(generatdCreditAmountCell, Element.ALIGN_RIGHT, GRAY_COLOR, 0);\n cellAddingToTable(paymentMethodTable, generatdCreditAmountCell, Rectangle.NO_BORDER, 0, 0);\n }\n }", "@DISPID(-2147412093)\n @PropGet\n java.lang.Object onrowenter();", "public void populateTable() {\n DefaultTableModel dtm = (DefaultTableModel)tblSalesPersonCommision.getModel();\n dtm.setRowCount(0);\n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getSalesPersonOrder()){\n // for(Order order:salesperson.getOrderListSalesPerson().getOrderList()){ \n // for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n // for(SalesPerson salesperson :business.getEmployeedirectory().getSalesPersonList()){\n \n for(OrderList orderlist:salesperson.getOrderlistcatalog().getOrCatalog()){\n Object [] row = new Object[4];\n // row[0]=.getCustomer().getCustomerId();\n // row[1]= market.getCustomer().getCustomerName();\n row[0]=orderlist;\n row[1]=orderlist.getOrdertotalprice();\n row[2]=orderlist.getSalespersoncomission();\n row[3]=orderlist.getTotalorderlistquantity();\n //3 tcomission = tcomission + orderlist.getSalespersoncomission();\n //3 totalquantity = totalquantity + orderlist.getTotalorderlistquantity();\n //3 totalorderprice = totalorderprice + orderlist.getOrdertotalprice();\n \n // row[0]=order;\n // row[1]=order.getAmountprice();\n \n dtm.addRow(row);\n // }\n // }\n } \n //2 salesperson.getOrderlistcatalog().setTotalquantitypersalesperson(totalquantity);\n //2 salesperson.getOrderlistcatalog().setTotalcommision(tcomission);\n //2 salesperson.getOrderlistcatalog().setTotalorderlistcsatalogprice(totalorderprice);\n}", "private boolean correctRowNumber()\n {\n \n extraRows = 0;\n final int oldSize = gradeAndSemesterList.size()-1+extraRows;\n \n \n if(gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type2.ordinal()< 2)\n extraRows += 2 - gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type2.ordinal();\n \n extraRows += 3*(this.extraGradeLevel-gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type1.intValue());\n //Debug.line(\"extra rows post correction:\"+extraRows);\n \n \n this.fireTableRowsDeleted(gradeAndSemesterList.size()-1+extraRows, oldSize);\n return true; \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int selection = statsTable.getSelectedRow();\n if (selection != -1) {\n int modelIndex = statsTable.getRowSorter().convertRowIndexToModel(selection);\n String set = (String) statsTable.getModel().getValueAt(modelIndex, 0);\n int index = map.getSettlement(set);\n String number = JOptionPane.showInputDialog(\"Please enter number of Dose Vaccine to add :\");\n map.getSettlements()[index].setNumberVaccineDose(Integer.parseInt(number));\n }\n else\n JOptionPane.showMessageDialog(new JFrame(), \"Select a row!\", \"Statistics Error\",\n JOptionPane.ERROR_MESSAGE);\n }", "public void firstfilltable2 (){\n\t\t\n\tContext mContext = getApplicationContext();\n\t\t\n\t \n\t\t//InputStream csvStream;\n\t\t\n \t String reader = \"\";\n \t\tString date = null;\n \t\tString value;\n \t\t\n \t\t\n \t\t\n \t\ttry {\n\n\n assert mContext != null;\n InputStream\t csvStream = mContext.getResources().openRawResource(R.raw.eating);\n \t\t\t\n \t\t\tDataInputStream data = new DataInputStream(csvStream);\n \t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(data));\n \t\t\twhile ((reader = in.readLine())!=null){\n \t\t\t\tString[] RowData = reader.split(\",\");\n \t\t\t\t\n \t\t\t date =RowData[0];\n \t\t\t \n \t\t\t value = RowData[1];\n \t\t\t db.addRow_eating_time(date, value);\n \t\t\t \n \t\t\t}\n \t\t\tin.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 \n\t\t\t\t\n\t\t\t\n\t\t\n\t}", "void addRowsLock();", "public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }", "public String onNew() {\n final DataTableCRUDRow<R> row = getModel().createRow(getModel().newElementInstance());\n getModel().getRows().add(0, row);\n getModel().setRowClicked(row);\n row.setNewRow(true);\n row.setReadonly(false);\n return \"\";\n }", "private void populateTreatementHistory() {\n DefaultTableModel model = (DefaultTableModel) historyTable.getModel();\n model.setRowCount(0);\n if (wr.getPatient().getPerson().getTreatmentHistory() != null) {\n for (WorkRequest r : wr.getPatient().getPerson().getTreatmentHistory()) {\n Object[] row = new Object[4];\n row[0] = r.getReceiver();\n row[1] = r.getResolveDate();\n row[2] = r.getMessage();\n row[3] = r.getStatus();\n\n model.addRow(row);\n }\n }\n\n }", "public void loadInTable(){\n table_counter=1; //id_array\r\n String sid=jTextField1.getText();\r\n// String d1=jTextField7.getText();\r\n// String d2=jTextField8.getText();\r\n // String sql = \"select item_id, item_name,item_type,type,price,Quantity from item2 where type='veg'\";\r\n //String sql = \"select sa_id,date1, w_type,working_hours,overtime,payment from staffattendance \";\r\n // String sql = \"select sa_id,date1, w_type,working_hours,overtime,payment from staffattendance where staff_id='\"+sid+\"'And date1 between '\"+d1+\"' And '\"+d2+\"' ORDER BY date1\";\r\n // String sql = \"select sa_id,date1, w_type,working_hours,overtime,payment from staffattendance where staff_id='\"+sid+\"'And date1 between '\"+dateString1+\"' And '\"+dateString2+\"' ORDER BY date1\";\r\n try{\r\n ConItem cn1=new ConItem();\r\n // Connection con = (Connection) Action.getDBConnection();\r\n cn1. st = cn1. con.createStatement();\r\n // cn1. rs = cn1.st.executeQuery(sql);\r\n DefaultTableModel model = (DefaultTableModel) stafftable.getModel();\r\n model.setRowCount(0);\r\n Object data[] = new Object[6];\r\n double total=0, payment;\r\n while(cn1.rs.next())\r\n {\r\n id_array.add(cn1.rs.getObject(\"sa_id\"));\r\n data[0] = table_counter+\"\";\r\n data[1] = cn1.rs.getObject(\"date1\");\r\n data[2] =cn1. rs.getObject(\"w_type\");\r\n data[3] = cn1.rs.getObject(\"working_hours\");\r\n data[4] = cn1.rs.getObject(\"overtime\");\r\n payment=cn1.rs.getDouble(\"payment\");\r\n data[5] = payment+\"\";\r\n model.addRow(data);\r\n total+=payment;\r\n table_counter++;\r\n \r\n }\r\n cn1.rs.close();\r\n cn1.st.close();\r\n jTextField9.setText(total+\"\");\r\n GlobalVariable.gpayment=total;\r\n \r\n }catch(Exception e)\r\n {\r\n JOptionPane.showMessageDialog(null, e);\r\n }\r\n }", "public void addNewIDtoCells() {\n\t\t//Get iterator to all the rows in current sheet\n\t\tIterator<Row> rowIteratorA = cells.iterator();\n\t\t\n\t\trowIteratorA.next();//Ignore the column names. We actually know it.\n\t\tRow row = null;\n\t\tint previousValue = -1;\n\t\tdouble key = -1;\n\t\t//For each row we will read the info. 12\n\t\twhile(rowIteratorA.hasNext()){\n\t\t\trow = rowIteratorA.next();\n\t\t\tdouble currentValue = Math.round(row.getCell(CELLQUERY).getNumericCellValue()*100)/100;\n\t\t\t//System.out.println(i++);\n\t\t\tif(currentValue!=previousValue){\n\t\t\t\tif(table.containsKey(currentValue))\n\t\t\t\t\tkey=table.get(currentValue);\n\t\t\t\telse\n\t\t\t\t\tkey=-1;\n\t\t\t}\n\t\t\trow.createCell(CELLKEY);\n\t\t\trow.getCell(CELLKEY).setCellValue(key);\n\t\t\tif(key==-1){\n\t\t\t\tSystem.err.println(\"Error: Value \"+currentValue+\" was not found in the matching table\");\n\t\t\t}\n\t\t}\n\t\tFileOutputStream dataFileOut;\n\t\ttry {\n\t\t\tdataFileOut = new FileOutputStream(\n\t\t\t\t\tcellsFile.getAbsolutePath().replace(\".xlsx\", \"out.xlsx\"));\n\t\t\t//System.out.println(dataFileOut+\" \"+cellsWorkbook);\n\t\t\t\n\t\t\tcellsWorkbook.write(dataFileOut);\n\t\t\tdataFileOut.flush();\n\t\t\tdataFileOut.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}", "public void insertOrdertable(int rorderId, java.util.Date rorderDate, int clientId, double totalPrice, String paymentMethod, String transactionId, String pinNumber, String address) throws SQLException {\r\n\r\n connection = Database.getConnection();\r\n String queryRo = \"insert into order_table (order_id, order_date, client_id, total_price, payment_method, transaction_id, pin_number, delivery_address, order_status)\"\r\n + \" values (?,?,?,?,?,?,?,?,?)\";\r\n PreparedStatement pstm1 = connection.prepareStatement(queryRo);\r\n pstm1.setInt(1, rorderId);\r\n pstm1.setDate(2, (Date) rorderDate);\r\n pstm1.setInt(3, clientId);\r\n pstm1.setDouble(4, totalPrice);\r\n pstm1.setString(5, paymentMethod);\r\n pstm1.setString(6, transactionId);\r\n pstm1.setString(7, pinNumber);\r\n pstm1.setString(8, address);\r\n pstm1.setString(9, \"Accepted\");\r\n\r\n int addRo = pstm1.executeUpdate();\r\n\r\n String qureyRol = \"INSERT INTO order_line (order_serial, order_id, client_id, product_id, quantity, total, date )\"\r\n + \"SELECT rorder_serial, rorder_id, client_id, product_id, quantity, total, date \\n\"\r\n + \"FROM requested_orderline\\n\"\r\n + \"WHERE (rorder_id=\" + rorderId + \")\";\r\n PreparedStatement pstm2 = connection.prepareStatement(qureyRol);\r\n int q = pstm2.executeUpdate();\r\n\r\n String update = \"update requested_order set order_status='Accepted' where rorderid=\"+rorderId+\"\";\r\n PreparedStatement pstm3 = connection.prepareStatement(update);\r\n int u = pstm3.executeUpdate();\r\n\r\n pstm1.close();\r\n pstm2.close();\r\n pstm3.close();\r\n\r\n Database.close(connection);\r\n //return arr2;\r\n }", "private void refreshTable() {\n data = getTableData();\n updateTable();\n }", "private void repopulateTableForDelete()\n {\n clearTable();\n populateTable(null);\n }", "private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }", "final void refresh() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n String conURL = \"jdbc:mysql://localhost/enoriadb?\"\n + \"user=root&password=\";\n java.sql.Connection con = DriverManager.getConnection(conURL);\n\n java.sql.PreparedStatement pstmt = con.prepareStatement(\"SELECT * FROM tblproducts ORDER BY id DESC\");\n ResultSet rs = pstmt.executeQuery();\n DefaultTableModel tblmodel = (DefaultTableModel) prodTBL.getModel();\n tblmodel.setRowCount(0);\n\n while (rs.next()) {\n tblmodel.addRow(new Object[]{rs.getString(\"id\"),\n rs.getString(\"P_name\"),\n rs.getString(\"Qty\"),\n rs.getString(\"price\")});\n }\n\n //TFrCode.requestFocus();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ProductClass.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(ProductClass.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void setRow(int row) {\n\t\tthis.row = row; \n\t}", "@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}", "public void setRow(int row) {\n\t\tthis.row = row;\n\t}", "public void setRow(int row) {\n\t\tthis.row = row;\n\t}", "public void updateTable() {\n tabelModel.setRowCount(0);\n Link current = result.first;\n for (int i = 0; current != null; i++) {\n Object[] row = {current.getMasjid(), current.getAlamat()};\n tabelModel.addRow(row);\n current = current.next;\n }\n }", "public void refreshRow() throws SQLException {\n\n try {\n debugCodeCall(\"refreshRow\");\n checkClosed();\n if (insertRow != null) { throw Message.getSQLException(ErrorCode.NO_DATA_AVAILABLE); }\n checkOnValidRow();\n patchCurrentRow(getUpdatableRow().readRow(result.currentRow()));\n updateRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public void moveToCurrentRow() throws SQLException\n {\n m_rs.moveToCurrentRow();\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "public void fillMyGoodsTable() {\n\t\tHashMap<Goods, Integer> myGoods = ship.getMyGoods();\n\t\tDefaultTableModel model = (DefaultTableModel)this.myGoodsTable.getModel();\n\t\tint number = 1;\n\t\tfor (HashMap.Entry<Goods, Integer> set: myGoods.entrySet()) {\n\t\t\tString name = set.getKey().getName();\n\t\t\tint quantity = set.getKey().getQuantityOwned();\n\t\t\tint price = set.getValue();\n\t\t\tmodel.addRow(new Object [] {number, name, quantity, price});\n\t\t\tnumber++;\n\t\t}\n\t}", "public void reloadTableCliente() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (lista.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Cliente object = lista.get(i);\n this.AddtoTableCliente(object);\n }\n\n }", "public void setRow(int r) {\n\t\tthis.row = r;\n\t}", "@Override\n\tpublic void takeNewOrder() {\n\t\tif(customersInLine.size()>0&&wait==0){\n\t\t\tint customerSelectedIndex = 0;\n\t\t\tfor(int i=0; i<customersInLine.size(); i++){\n\t\t\t\tif(customersInLine.get(i).getTimeToPrepare()<customersInLine.get(customerSelectedIndex).getTimeToPrepare()){\n\t\t\t\t\tcustomerSelectedIndex = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsetWait(customersInLine.get(customerSelectedIndex).getTimeToPrepare());\n\t\t\taddToProfit(customersInLine.get(customerSelectedIndex).getCostOfOrder());\n\t\t\tcustomersInLine.remove(customerSelectedIndex);\n\t\t\tcustomersInRestaurant--;\n\t\t}\n\t}", "private void custComboActionPerformed(java.awt.event.ActionEvent evt) {\n String name = \"select * from Customer WHERE fname = ?\";\n String userName = custCombo.getSelectedItem().toString();\n\n long custNum = 0;\n try {\n prepState = run.connect().prepareStatement(name);\n prepState.setString(1, userName);\n resSet = prepState.executeQuery();\n\n while (resSet.next()) {\n if (userName.equals(resSet.getString(2))) {\n custTable.setModel(new DefaultTableModel(null, new Object[]{\"Rental Number\",\n \"Date of Rent\", \"Return Date\", \"Total Price\"}));\n custNum = resSet.getLong(1);\n\n }\n }\n\n String rental = \"select * from Rental WHERE custNumber = ?\";\n prepState = run.connect().prepareStatement(rental);\n prepState.setLong(1, custNum);\n resSet = prepState.executeQuery();\n\n Object row[];\n while (resSet.next()) {\n if (custNum == resSet.getLong(2)) {\n custTable.setModel(new DefaultTableModel(null, new Object[]{\"Rental Number\",\n \"Date of Rent\", \"Return Date\", \"Total Price\"}));\n DefaultTableModel cTable = (DefaultTableModel) custTable.getModel();\n\n row = new Object[4];\n row[0] = resSet.getLong(1);\n row[1] = resSet.getString(4);\n row[2] = resSet.getString(5);\n row[3] = resSet.getDouble(7);\n\n cTable.addRow(row);\n\n } else if (custNum != resSet.getLong(2)) {\n custTable.setModel(new DefaultTableModel(null, new Object[]{\"Rental Number\",\n \"Date of Rent\", \"Return Date\", \"Total Price\"}));\n }\n }\n } catch (SQLException ex) {\n System.out.println(\"SQLException: \" + ex.getMessage());\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n \n \n private void table(){\n \n int c;\n \n try{\n \n Connection con1 = ConnectionProvider.getConn();\n Statement stm = con1.createStatement();\n ResultSet rst = stm.executeQuery(\"select * from sales\");\n ResultSetMetaData rstm = rst.getMetaData();\n \n c = rstm.getColumnCount();\n \n DefaultTableModel dtm2 = (DefaultTableModel)jTable1.getModel();\n dtm2.setRowCount(0);\n \n while (rst.next()){\n \n Vector vec = new Vector();\n \n for(int a =1 ; a<=c; a++)\n {\n vec.add(rst.getString(\"CustomerName\"));\n vec.add(rst.getString(\"OrderNo\"));\n vec.add(rst.getString(\"TypeOfService\"));\n vec.add(rst.getString(\"OrderType\"));\n vec.add(rst.getString(\"Descript\"));\n vec.add(rst.getString(\"OrderConfirmation\"));\n vec.add(rst.getString(\"OrderHandledBy\"));\n vec.add(rst.getString(\"OrderDate\"));\n vec.add(rst.getString(\"WarrantyExpireDate\"));\n vec.add(rst.getString(\"FullAmount\"));\n vec.add(rst.getString(\"AmountPaid\"));\n vec.add(rst.getString(\"Balance\"));\n }\n \n dtm2.addRow(vec);\n }\n \n }\n catch(Exception e)\n {\n \n }\n \n \n }", "private void refreshFaultPanel() {\n\t\t\n\t\t//vymazeme vsechny radky tabulky\n\t\tfaultTableModel.setRowCount(0);\n\t\t//faultTable.setEnabled(true);\n\t\t//addFaultButton.setEnabled(true);\n\t\t//removeFaultButton.setEnabled(true);\n\t\tFaultInjectionData selectedTest= getData();\n\t\t\n\t\tfor (Fault currentFault : selectedTest.getFaultList()) {\n\t\t\t//vlozeni noveho radku do tabulky poruch\n\t\t\tObject[] newRow= new Object[] {currentFault, currentFault.getDescription()};\n\t\t\tfaultTableModel.insertRow(faultTable.getRowCount(), newRow);\n\t\t}\n\t}", "public void acceptRow( Object[] row ) {\n nrow_++;\n\n /* Get values using the column lookup table.\n * In fact we know what sequence the columns are in so we could\n * hard code the colum indices in here, but doing it like this\n * reduces the chance of programming error. */\n final String ivoid = getString( row, \"ivoid\" );\n final String shortName = getString( row, \"short_name\" );\n final String title = getString( row, \"res_title\" );\n final String refUrl = getString( row, \"reference_url\" );\n final String baseRole = getString( row, \"base_role\" );\n final String roleName = getString( row, \"role_name\" );\n final String email = getString( row, \"email\" );\n final Object intfIndex = getEntry( row, \"intf_index\" );\n final String accessUrl = getString( row, \"access_url\" );\n final String standardId = getString( row, \"standard_id\" );\n final String capType = getString( row, \"cap_type\" );\n final String capDescription = getString( row, \"cap_description\" );\n final String stdVersion = getString( row, \"std_version\" );\n final String subjectTxt = getString( row, \"res_subjects\" );\n\n /* Update this object's data structures in accordance with the\n * information received from this row. */\n if ( ! resMap_.containsKey( ivoid ) ) {\n String[] subjects = subjectTxt == null\n ? new String[ 0 ]\n : subjectTxt.split( SUBJECT_DELIM );\n resMap_.put( ivoid,\n new RegTapResource( ivoid, shortName, title,\n refUrl, subjects ) );\n }\n RegTapResource resource = resMap_.get( ivoid );\n if ( \"contact\".equals( baseRole ) ) {\n resource.contactName_ = roleName;\n resource.contactEmail_ = email;\n }\n else if ( \"publisher\".equals( baseRole ) ) {\n resource.publisherName_ = roleName;\n }\n if ( intfIndex != null ) {\n if ( ! resource.capMap_.containsKey( intfIndex ) ) {\n resource.capMap_.put( intfIndex,\n new RegCapabilityInterface() {\n public String getAccessUrl() {\n return accessUrl;\n }\n public String getStandardId() {\n return standardId;\n }\n public String getXsiType() {\n return capType;\n }\n public String getDescription() {\n return capDescription;\n }\n public String getVersion() {\n return stdVersion;\n }\n } );\n }\n }\n }", "public void rowEdit(RowEditEvent event){\n //obtenemos la instancia de la Fila modificada \n Detallefactura detalle = (Detallefactura)event.getObject();\n \n //obtenemos el indice de la fila modificada\n DataTable table = (DataTable) event.getSource();\n Integer indice = table.getRowIndex();\n \n //Calculamos el nuevo total del producto\n BigDecimal nuevoTotal = detalle.getPrecioVenta().multiply(new BigDecimal(detalle.getCantidad()));\n //seteamos al detalle el nuevo total\n //detalle.setTotal(nuevoTotal);\n \n //Recorremos la lista de Detalle y actualizamos el item correspondiente\n int i =0;\n for(Detallefactura det : listDetalle){\n if(det.getCodBarra().equals(detalle.getCodBarra()) && indice.equals(i)){\n //listDetalle.set(i, detalle);\n listDetalle.get(i).setTotal(nuevoTotal);\n break; //para que se salfa del for de manera inmediata\n }\n i++;\n }\n \n totalFacturaVenta();\n System.out.println(\"TOTAL: \"+ factura.getTotalVenta());\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\"\n , \"Producto: Cantidad de producto Modificado\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }", "public void reloadTableEmpleado() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (listae.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Empleado object = listae.get(i);\n this.AddtoTableEmpleado(object);\n }\n\n }", "public void moveToInsertRow() throws SQLException {\n\n try {\n debugCodeCall(\"moveToInsertRow\");\n checkClosed();\n insertRow = new Value[columnCount];\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "private void pushSavedReport() throws JSONException {\n final Cursor cursor = getSavedReportCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n\n int updatedRows = 0;\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n final int reportId = cursor.getInt(\n cursor.getColumnIndex(ReportEntry.COLUMN_REPORT_ID));\n ExpenseReport expenseReport = new ExpenseReport();\n expenseReport.setName(cursor.getString(\n cursor.getColumnIndex(ReportEntry.COLUMN_NAME)));\n expenseReport.setApproverEmail(cursor.getString(\n cursor.getColumnIndex(ReportEntry.COLUMN_APPROVER_EMAIL)\n ));\n\n expenseReport.setComment(cursor.getString(cursor.getColumnIndex(\n ReportEntry.COLUMN_COMMENT)));\n\n ERTRestApi.apiSaveReport(\n expenseReport,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseReport expenseReportResponse =\n gson.fromJson(\n response.toString(),\n ExpenseReport.class\n );\n\n if(!getReportSyncStatus(getContext(), reportBaseId).equalsIgnoreCase(SyncStatus.EDITED_REPORT.toString())) {\n\n int updatedRows = updateReportSyncStatus\n (reportBaseId,\n SyncStatus.SYNCED);\n }\n\n\n updateExpenseLineItemReportId(reportBaseId,\n expenseReportResponse.getId()\n );\n setReportValuesFromServer(reportBaseId, expenseReportResponse);\n\n pushSavedExpenseLineItem();\n\n\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi.ERTRestApiError error) {\n int updatedRows = updateReportSyncStatus(reportBaseId, SyncStatus.SAVED_REPORT);\n Log.d(LOG_TAG, \"updated rows save report error:\" + updatedRows);\n Log.e(LOG_TAG, error.getMessage());\n }\n }\n );\n\n if(getReportSyncStatus(getContext(), reportBaseId).equalsIgnoreCase(SyncStatus.SAVED_REPORT.toString())) {\n\n updatedRows = updateReportSyncStatus(reportBaseId,\n SyncStatus.SYNC_IN_PROGRESS\n );\n }\n\n Log.d(LOG_TAG, \"updated rows save report:\" + updatedRows);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "public void dbAddRow(EdaContext xContext)\n\tthrows IcofException{\n\n\t\t// Get the next id for this new row.\n\t\tsetNextIdStatement(xContext);\n\t\tlong id = getNextBigIntId(xContext);\n\t\tcloseStatement(xContext);\n\n\t\t// Create the SQL query in the PreparedStatement.\n\t\tsetAddRowStatement(xContext);\n\t\ttry {\n\t\t\tgetStatement().setLong(1, id);\n\t\t\tgetStatement().setLong(2, getFromChangeReq().getId());\n\t\t\tgetStatement().setLong(3, getToChangeReq().getId());\n\t\t\tgetStatement().setString(4, getRelationshipb());\n\t\t}\n\t\tcatch(SQLException trap) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbAddRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to prepare SQL statement.\",\n\t\t\t IcofException.printStackTraceAsString(trap) + \n\t\t\t \"\\n\" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Run the query.\n\t\tif (! insertRow(xContext)) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbAddRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to insert new row.\\n\",\n\t\t\t \"QUERY: \" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Close the PreparedStatement.\n\t\tcloseStatement(xContext);\n\n\t\t// Load the data for the new row.\n\t\tsetId(id);\n\t\tdbLookupById(xContext); \n\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tint row = deckTable.getSelectedRow();\n\t\t\t\tif (row >= 0) {\n\t\t\t\t\t// remove a single copy of the card\n\t\t\t\t\tdeck.removeCard(((String)deckTable.getValueAt(row, 0)), 1);\n\t\t\t\t\tSystem.out.println(((String)deckTable.getValueAt(row, 0)));\n\t\t\t\t\tArrayList<Object[]> objs = new ArrayList<Object[]>();\n\t\t\t\t\t\n\t\t\t\t\t// update the deck list\n\t\t\t\t\tDeckObject[] deckRows = deck.getTable();\n\t\t\t\t\tfor (int i = 0; i < deckRows.length; i++) {\n\t\t\t\t\t\tobjs.add(deckRows[i].get());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString[][] rows = objs.toArray(new String[0][0]);\n\n\t\t\t\t\t// update the table\n\t\t\t\t\tdeckTable.setModel(new UneditableTableModel(rows, deckColumns));\n\t\t\t\t\tint newSelectRow = row;\n\t\t\t\t\tif (row == deckTable.getRowCount())\n\t\t\t\t\t\tnewSelectRow = deckTable.getRowCount()-1;\n\t\t\t\t\t\n\t\t\t\t\t// select the next object in table\n\t\t\t\t\tif (newSelectRow >= 0)\n\t\t\t\t\t\tdeckTable.setRowSelectionInterval(newSelectRow,newSelectRow);\n\t\t\t\t\tSystem.out.println(deckTable.getRowCount());\n\t\t\t\t}\n\t\t\t}", "public void fill_table()\n {\n Secante secante = new Secante(GraficaSecanteController.a, GraficaSecanteController.b, GraficaSecanteController.ep, FuncionController.e);\n list = secante.algoritmo();\n }", "protected abstract E newRow();", "public void alertasexistencia() {\r\n try {\r\n rs = modelo.alertaexistenciapro();//C.P.M consultamos los producto con alerta en existencia\r\n DefaultTableModel tabla = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.Talertas.setModel(tabla);//C.P.M le mandamos el modelo\r\n modelo.estructuraAlrta(tabla);//C.P.M obtenemos la estructura de la tabla \"los encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de las columnas de la consulta\r\n while (rs.next()) {\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con la cantidad de columnas \r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1);//C.P.M y agregamos la informacion de la consulta\r\n }\r\n tabla.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio algun error al consultar las alertas\");\r\n }\r\n }" ]
[ "0.5932825", "0.5764046", "0.57275116", "0.57111055", "0.5702886", "0.5668302", "0.56202656", "0.55920994", "0.5591935", "0.55525935", "0.5520451", "0.5511939", "0.5511907", "0.5506691", "0.5423493", "0.54155785", "0.54034525", "0.5395643", "0.53912526", "0.53902364", "0.53653234", "0.5360406", "0.5349403", "0.53433526", "0.5313185", "0.53097063", "0.53097063", "0.53046346", "0.5301684", "0.5289369", "0.52865016", "0.5283941", "0.52721554", "0.52628875", "0.52624756", "0.52547115", "0.5246644", "0.5245279", "0.5243286", "0.52323586", "0.52291256", "0.522385", "0.52110314", "0.5205957", "0.5204879", "0.52018934", "0.5190797", "0.518172", "0.5179052", "0.5170441", "0.51607865", "0.5151648", "0.51473784", "0.51473784", "0.51469463", "0.51458424", "0.5144914", "0.51436657", "0.5141163", "0.51409125", "0.5140661", "0.5137961", "0.51377195", "0.5137255", "0.513528", "0.51330197", "0.5132276", "0.5127277", "0.5123639", "0.5121592", "0.51188934", "0.51162064", "0.5115913", "0.51150763", "0.511368", "0.51098347", "0.5105662", "0.5102476", "0.5102476", "0.51015484", "0.5094167", "0.5086627", "0.5077864", "0.50769484", "0.5071087", "0.5070301", "0.5065256", "0.5061256", "0.5059672", "0.50587714", "0.50575334", "0.5055656", "0.505493", "0.50502694", "0.50484586", "0.5047111", "0.50459206", "0.5044747", "0.50323385", "0.5027767" ]
0.578363
1
this method retrieves the current balance of a particular number
public int getBalance(String mobileNo) { ResultSet rs; Context ctx; int balance=0; try { ctx = new InitialContext(); DataSource ds=(DataSource)ctx.lookup("java:OracleDS"); Connection con=ds.getConnection(); Statement stmt=con.createStatement(); rs=stmt.executeQuery("select Balance from mobile where mobileno="+mobileNo); while(rs.next()) { balance=rs.getInt(1); } return balance; } catch (Exception e) { System.out.println("Error in connection with Database :"+e.getMessage()); return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String balance() {\n\t\treturn this.apiCall(\"balance\", \"\", \"\", true);\n\t}", "double getBalance();", "double getBalance();", "public int getBalance()\n {\n return balance;\n }", "public int getBalance() {\n return balance;\n }", "public int getBalance() {\n return balance;\n }", "public Integer getBalance() {\n return balance;\n }", "public Integer getBalance() {\n return balance;\n }", "public double getCurrentBalance(){\n if(!checkAccountOpen()){\n System.out.println(\"This transaction could not be processed. Please check your account status.\");\n }\n System.out.println(\"Your current balance is: $\"+currentBalance);\n return currentBalance;\n }", "public int getBalance() {\n return total_bal;\n }", "public void getBalance( Integer account_id ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }", "public long getBalance() {\n\t\n\treturn balance;\n}", "public long getBalance() {\n return this.balance;\n }", "public double getBalance()\n \n {\n \n return balance;\n \n }", "public void getBalance() {\n\t\tSystem.out.println(\"Balance in Savings account is\" + balance);\n\t\t//return balance;\n\t}", "public double getBal() {\n\t\t return balance;\r\n\t }", "public int getBalance() {\n return this.balance;\n\n }", "public double getBalance(){\n return balance.getBalance();\n }", "public double getBalance()\r\n\t{\r\n\t\treturn balance;\t\t\r\n\t}", "public double getBalance(){\r\n\t\treturn balance;\r\n\t}", "public Money getTotalBalance();", "public int getBalance() {\n\t\treturn balance;\n\t}", "public com.token.vl.service.MoneyWs getCurrent_balance() {\n return current_balance;\n }", "public float getBalance()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tDBConnection ToDB = new DBConnection(); //Have a connection to the DB\r\n\t\t\tConnection DBConn = ToDB.openConn();\r\n\t\t\tStatement Stmt = DBConn.createStatement();\r\n\t\t\tString SQL_Command = \"SELECT Balance FROM SavingsAccount WHERE SavingsAccountNumber ='\"+SavingsAccountNumber+\"'\"; //SQL query command for Balance\r\n\t\t\tResultSet Rslt = Stmt.executeQuery(SQL_Command);\r\n\t\t\twhile (Rslt.next())\r\n\t\t\t{\r\n\t\t\t\tBalance = Rslt.getFloat(1);\r\n\t\t\t}\r\n\t\t\tStmt.close();\r\n\t\t\tToDB.closeConn();\r\n\t\t}\r\n\t\tcatch(SQLException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SQLException: \" + e);\r\n\t\t\twhile (e != null)\r\n\t\t\t{ System.out.println(\"SQLState: \" + e.getSQLState());\r\n\t\t\t\tSystem.out.println(\"Message: \" + e.getMessage());\r\n\t\t\t\tSystem.out.println(\"Vendor: \" + e.getErrorCode());\r\n\t\t\t\te = e.getNextException();\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exception: \" + e);\r\n\t\t\te.printStackTrace ();\r\n\t\t}\r\n\t\treturn Balance;\r\n\t}", "public double getBalance()\n {\n return balance;\n }", "public String getBalance() {\n return this.balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n\n double balance = 0;\n balance = overDraftLimit;\n return balance;\n\n }", "public double getBalance(){\n\t\treturn balance;\n\t}", "public Double getBalance() {\r\n return balance;\r\n }", "public double getBalance() {\r\n\t\t\r\n\t\treturn balance;\r\n\t\t\r\n\t}", "public double getBalance() \n\t{\n\t\treturn balance;\n\t\t\n\t}", "public BigDecimal getBalance() {\n return balance;\n }", "public BigDecimal getBalance() {\n return balance;\n }", "public double getBalance(){\n return this.balance;\r\n }", "public String getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return balance;\n }", "public double getBalance() {\n return this.balance;\n }", "BigDecimal getOpeningDebitBalance();", "BigDecimal getOpeningDebitBalance();", "public double getBalance()\t{\n\t\treturn balance;\n\t}", "public static Double getCurrentBalance() {\n\t\treturn BankAccount.currentBalance;\n\t}", "public float getBalance() {\n return balance;\n }", "public final float getBalance() {\n return balance;\n }", "private double getBalance() { return balance; }", "double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public double getBalance() {\n\t\treturn balance;\n\t}", "public int getCurBalance() {\n\t\treturn curBalance;\n\t}", "public double getBalance(){\n return balance;\n }", "public java.math.BigDecimal getBalance() {\n return balance;\n }", "public double getBalance()\n {\n return startingBalance;\n }", "BigDecimal getClosingDebitBalance();", "@Override\r\n\tpublic Double getBalance( Integer id) {\n\t\tString sql = \"SELECT balance FROM buyers WHERE id = ?;\";\r\n\t\treturn jdbcTemplate.queryForObject( sql, Double.class, id);\r\n\t}", "public double getBalance(){\n return balance;\r\n }", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "public float showBalance() {\n\t\treturn dao.showBalance();\r\n\t}", "public double selectCurrentBalance(int choice, String getUser);", "public double getBalance(){\n return balance;\n }", "public double getBalance(){\n return balance;\n }", "BigDecimal getOpeningCreditBalance();", "BigDecimal getOpeningCreditBalance();", "@Override\r\n\tpublic double getBalance() {\n\t\treturn (super.getBalance()+cashcredit);\r\n\t}", "public void GetInterest() {\n\t\tSystem.out.println(\"balance=\"+bal);\r\n\t\tinterest_rate=((bal/100)*10);\r\n\t\t\r\n\t\tSystem.out.println(\"Interest :- \"+ interest_rate);\r\n\t\tbal=(int) (bal+interest_rate);\r\n\t\tSystem.out.println(\"Balance after interest:- \"+bal );\r\n\t}", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "public AmountOfMoney getCashRegisterBalance(){\n return cashRegister.getBalance();\n }", "double getBalance(UUID name);", "public Coin getBalance(BalanceType balanceType) {\n try {\n if (balanceType == BalanceType.AVAILABLE || balanceType == BalanceType.AVAILABLE_SPENDABLE) {\n List<TransactionOutput> candidates = calculateAllSpendCandidates(true, balanceType == BalanceType.AVAILABLE_SPENDABLE);\n CoinSelection selection = coinSelector.select(NetworkParameters.MAX_MONEY, candidates);\n return selection.valueGathered;\n } else if (balanceType == BalanceType.ESTIMATED || balanceType == BalanceType.ESTIMATED_SPENDABLE) {\n List<TransactionOutput> all = calculateAllSpendCandidates(false, balanceType == BalanceType.ESTIMATED_SPENDABLE);\n Coin value = Coin.ZERO;\n for (TransactionOutput out : all) value = value.add(out.getValue());\n return value;\n } else {\n throw new AssertionError(\"Unknown balance type\"); // Unreachable.\n }\n } finally {\n }\n }", "private int getBalance() throws SQLException {\n\t\tgetBalanceStatement.clearParameters();\n\t\tgetBalanceStatement.setString(1, this.username);\n\t\tResultSet result = getBalanceStatement.executeQuery();\n\t\tresult.next();\n\t\tint out = result.getInt(1);\n\t\tresult.close();\n\t\treturn out;\n\t}", "BigDecimal getClosingCreditBalance();", "@Override\r\n\tpublic double showbalanceDao() {\n\t\t\r\n\t\treturn temp.getCustBal();\r\n\t}", "protected double getTotalBalance()\r\n {\r\n return totalBalance;\r\n }", "public String getCurrentAmount() {\n\t\twaitForControl(driver, LiveGuru99.WithdrawallPage.GET_CURRENT_AMOUNT, timeWait);\n\t\tString currentAmount = getText(driver, LiveGuru99.WithdrawallPage.GET_CURRENT_AMOUNT);\n\t\treturn currentAmount;\n\t}", "public void viewBalance() {\n\t\tSystem.out.println(\"This is your current Balance $\" + tuitionBalance);\n\t}", "public java.lang.String getBalance() {\n java.lang.Object ref = balance_;\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 balance_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public BigDecimal getBalance()\n\t{\n\t\tBigDecimal retValue = Env.ZERO;\n\t//\tlog.config( toString() + \" Balance=\" + retValue);\n\t\treturn retValue;\n\t}", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "public Integer getAccountBalance(int account_id){\n Account a = cache.get(account_id);\n if(a != null) return a.getBalance();\n\n try (\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SELECT BALANCE FROM ACCOUNTS WHERE ACCOUNT_ID = \" + account_id)) {\n\n if (res.next())\n return res.getInt(\"BALANCE\");\n } catch (SQLException ex) {\n return null;\n }\n\n return null;\n }", "public abstract int getBalancesRead();", "@java.lang.Override\n public java.lang.String getBalance() {\n java.lang.Object ref = balance_;\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 balance_ = s;\n return s;\n }\n }", "public double getBankAccountBalance() {\r\n\t\t\r\n\t\tdouble balance = 0.0;\r\n\t\t\r\n\t\t\t\tif( customerBankAccountList.contains(this.getCustomer() ) ) \r\n\t\t\t\t{\t\r\n\t\t\t\t\tbalance = this.getCustomer().getBalance();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\treturn balance;\r\n\t\t}", "public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}", "@Override\n public AccountDto getBalance(AccountNumberDto accountNumber) {\n AccountEntity accountEntity = new AccountDaoImpl(new StatementsRunnerImpl()).readBalance(accountNumber);\n return new AccountDto(accountEntity.getId(), accountNumber.getAccountNumber(), accountEntity.getCurrency());\n }", "public Coin getBalance(CoinSelector selector) {\n try {\n checkNotNull(selector);\n List<TransactionOutput> candidates = calculateAllSpendCandidates(true, false);\n CoinSelection selection = selector.select(params.getMaxMoney(), candidates);\n return selection.valueGathered;\n } finally {\n }\n }", "public double getPendingBalance() {\n return pendingBalance;\n }", "public com.token.vl.service.MoneyWs getAvailable_Balance() {\n return available_Balance;\n }", "public static void getAcountsBalance(int value) {\n\t\t\t\n\t\t\taccounts.clear();\n\n\t\t\tString query = \"select account.accID, accType, balance, dateCreated, fName, lName \" + \n\t\t \"from ser322.account,ser322.customer \" + \n\t\t \"WHERE customer.accID = account.accID AND balance =\" + value;\n\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tStatement stmt = con.getConnection().createStatement();\n\t\t\t ResultSet rs = stmt.executeQuery(query);\n\t\t while (rs.next()) {\n\t\t \taccounts.addElement(new Account(rs.getInt(\"accID\"),rs.getString(\"accType\"),\n\t\t \t\t\t rs.getFloat(\"balance\"),rs.getDate(\"dateCreated\"), rs.getString(\"fName\"), rs.getString(\"lName\")));\n\t\t \n\t\t }\n\t\t \n\t\t } catch (SQLException e ) {\n\t\t \tSystem.out.println(\"QUERY WRONG - getAcountsBalance\");\n\t\t }\n\t\n\t\t}", "public Double getBalance() {\n return null;\n }", "@Override\n\tpublic double queryBalance(int accNo) {\n\t\treturn 0;\n\t}", "private Node<T> balance(Node<T> current) {\n hAndBF(current);\n int balance = current.getBalanceFactor();\n if (balance > 1) {\n hAndBF(current.getLeft());\n if (current.getLeft().getBalanceFactor() < 0) {\n return doubleWithLeft(current);\n } else {\n return rotateWithLeft(current);\n }\n }\n if (balance < -1) {\n hAndBF(current.getRight());\n if (current.getRight().getBalanceFactor() <= 0) {\n return rotateWithRight(current);\n } else {\n return doubleWithRight(current);\n }\n }\n return current;\n }", "@Override\n public BigDecimal getBalance(String customerId, EMCUserData userData) {\n BigDecimal outstandingDebit = null;\n\n //Get total outstanding credits for customer, which existed at atDate\n EMCQuery query = new EMCQuery(enumQueryTypes.SELECT, DebtorsOpenTransactions.class);\n query.addFieldAggregateFunction(\"debit\", \"SUM\");\n query.addFieldAggregateFunction(\"debitAmountSettled\", \"SUM\");\n query.addFieldAggregateFunction(\"credit\", \"SUM\");\n query.addFieldAggregateFunction(\"creditAmountSettled\", \"SUM\");\n\n //Customer is optional.\n if (customerId != null) {\n query.addAnd(\"customerId\", customerId);\n }\n\n query.addAnd(\"transactionDate\", Functions.nowDate(), EMCQueryConditions.LESS_THAN_EQ);\n\n Object[] debitTotals = (Object[]) util.executeSingleResultQuery(query, userData);\n\n if (debitTotals != null) {\n BigDecimal totalDebit = debitTotals[0] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[0];\n BigDecimal totalDebitSettled = debitTotals[1] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[1];\n BigDecimal totalCredit = debitTotals[2] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[2];\n BigDecimal totalCreditSettled = debitTotals[3] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[3];\n outstandingDebit = totalDebit.subtract(totalDebitSettled);\n totalCredit = totalCredit.subtract(totalCreditSettled);\n outstandingDebit = outstandingDebit.subtract(totalCredit);\n }\n return outstandingDebit;\n }", "public String getBalanceInfo(String request,String user);", "public com.google.protobuf.ByteString\n getBalanceBytes() {\n java.lang.Object ref = balance_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n balance_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ResultSet retBalance(Long userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"Select balance from account where accno=\"+userid+\"\");\r\n\treturn rs;\r\n}" ]
[ "0.7513216", "0.7469154", "0.7469154", "0.7405803", "0.7321912", "0.7321912", "0.7313576", "0.7313576", "0.73117983", "0.73035556", "0.7287316", "0.72790486", "0.7256122", "0.72135633", "0.7200869", "0.7195302", "0.7187673", "0.7184392", "0.7155719", "0.7149153", "0.7136656", "0.71306396", "0.71123135", "0.7098642", "0.7089513", "0.70880896", "0.7079978", "0.70780903", "0.7067336", "0.7067042", "0.7058239", "0.70536005", "0.70485187", "0.70485187", "0.7035564", "0.70010054", "0.69953436", "0.69953436", "0.69953436", "0.69953436", "0.6988687", "0.6982002", "0.6982002", "0.6980326", "0.6965349", "0.69553393", "0.69525176", "0.6946964", "0.6940589", "0.6937942", "0.6937942", "0.6937942", "0.6937942", "0.6937942", "0.6927316", "0.69197834", "0.6919247", "0.69100195", "0.68672496", "0.6850718", "0.6831502", "0.6829008", "0.68036646", "0.6789344", "0.67770743", "0.6775472", "0.6749974", "0.6749974", "0.6715194", "0.6712051", "0.67099845", "0.669232", "0.6653054", "0.66346824", "0.662477", "0.66124684", "0.6590897", "0.65835124", "0.6581767", "0.6554572", "0.6553664", "0.65532583", "0.6552932", "0.6528653", "0.6519674", "0.6496354", "0.647263", "0.646148", "0.645888", "0.6439557", "0.64140856", "0.6406829", "0.6400936", "0.63999027", "0.638109", "0.6378489", "0.63781536", "0.63552004", "0.6350607", "0.63499796" ]
0.6609789
76
this method updates the balance of the number
public void updateBalance(String mobileNo,int balance) { Context ctx; try { ctx = new InitialContext(); DataSource ds=(DataSource)ctx.lookup("java:OracleDS"); Connection con=ds.getConnection(); Statement stmt=con.createStatement(); stmt.executeUpdate("update mobile set balance="+balance+" where mobileno="+mobileNo); con.close(); } catch (Exception e) { System.out.println("Error in connection with Database :"+e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}", "public void updateBal(int value) {\r\n bal = bal + value;\r\n }", "public void changeBalance (int amount){\n balance += amount;\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "@Override\n\tpublic void calculateAndUpdateBalance() {\n\n\t\tbalance -= fee;\n\n\t}", "public void setBalance(double bal){\n balance = bal;\r\n }", "void setBalance(double value);", "public void setBalance(){\n balance.setBalance();\n }", "public void increase() {\n balance.multiply(1.001);\n }", "private void setBalance(double balance) {\n this.balance = balance;\n }", "public void update() {\n\t\n\tif(getBalance() > 0) {\n\t\tcanWithdraw = true;\n\t}else {canWithdraw = false;}//end else statement\n}", "public void addBalance(long balance) {\r\n this.balance += balance;\r\n }", "public void increaseBalance(final double balance) {\n this.balance += balance;\n }", "private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}", "public void deposit(double value){\r\n balance += value;\r\n}", "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "public void setBalance(int balance) {\r\n\t\tif(0<=balance&&balance<=1000000) {\r\n\t\tthis.balance = balance;\r\n\t}else{\r\n\t\t System.out.println(\"잘못 입력하셨습니다. 현재 잔고는 \"+this.balance+\"입니다\");\r\n\t}\r\n \r\n}", "public void setBalance(float balance) {\n this.balance = balance;\n }", "public void setNewBalance() {\n\t\tacc.setBankBalance(acc.getBalance() - keyboard.getAmt());\r\n\t}", "public void setBalance(double balance)\n {\n startingBalance = balance;\n }", "public void updateAccount() {\r\n\t\t\r\n\t\t//update all totals\r\n\t\ttotalYouOwe = 0.0;\r\n\t\ttotalOwedToYou = 0.0;\r\n\t\tbalance = 0.0;\r\n\t\tnetBalance = 0.0;\r\n\t\t\r\n\t\t//totalYouOwe and totalOwedToYou\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.isParticipantByGID(GID)) {\r\n\t\t\t\tif (e.getParticipantByGID(GID).getBalance() > 0) {\r\n\t\t\t\t\ttotalOwedToYou = totalOwedToYou + e.getParticipantByGID(GID).getBalance(); \r\n\t\t\t\t} else {\r\n\t\t\t\t\ttotalYouOwe = totalYouOwe + (-e.getParticipantByGID(GID).getBalance());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//netBalance/balance - the same in current implementation\r\n\t\tnetBalance = totalOwedToYou - totalYouOwe;\r\n\t\tbalance = totalOwedToYou - totalYouOwe;\r\n\t\t\r\n\t\tupdatePastRelations();\r\n\t}", "public void setBalance(double balance){\n\t\tthis.balance = balance;\n\t}", "private void updateBalance(int balance) throws SQLException {\n\t\tupdateBalanceStatement.clearParameters();\n\t\tupdateBalanceStatement.setInt(1, balance);\n\t\tupdateBalanceStatement.setString(2, this.username);\n\t\tupdateBalanceStatement.executeUpdate();\n\t}", "public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "public synchronized void setBalance(double balance) {\n this.balance = balance;\n }", "public int baldown(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}", "protected void setTotalBalance(double balance)\r\n {\r\n totalBalance = balance;\r\n }", "void addBalance(double amount) {\n\t\tbalance += amount;\n\t}", "public void updatebal(String cname, String amt1) {\nString countQuery = \"SELECT Balance FROM \" + DATABASE_TABLE1+\" WHERE Name='\"+cname+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(\"Balance\");\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\tint cur=Integer.parseInt(cbal);\n\t\tcur=cur+Integer.parseInt(amt1);\n\t ContentValues up=new ContentValues();\n\t up.put(Com_Balance, cur);\n\t\tourDatabase.update(DATABASE_TABLE1, up, Com_Name+\" = '\"+cname+\"'\", null);\n\t\t\n\t}", "public void setBalance( long balance ) {\r\n this.balance = balance;\r\n }", "public void setBalance(Double balance) {\r\n this.balance = balance;\r\n }", "@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}", "public void setBalance(Integer balance) {\n this.balance = balance;\n }", "public void setBalance(Integer balance) {\n this.balance = balance;\n }", "public void credit(double amount) {\n this.balance += amount;\n }", "public abstract void updateBalance(Balance balance, LedgerEntry.Subtype subtype, long amount) throws TransactionException;", "public void setBalance(final int balance)\n {\n this.balance = balance;\n }", "public void balance(){\n\t\tnamesTree.balance();\n\t\taccountNumbersTree.balance();\n\t}", "@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}", "public void updateBalance(float amount) throws BalanceException{\r\n\t\tif (balance + amount < 0){\r\n\t\t\tthrow new BalanceException();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tbalance += amount;\r\n\t\t}\r\n\t}", "public void setBalance(double newBalance) {\n\t\tbalance = newBalance;\n\t\tbalance = Math.round(balance * 100.0) / 100.0;\n\t}", "@Override\r\n\tpublic void updateBalance( Integer userid, double amount) {\n\t\tif ( getBalance( userid) < amount) {\r\n\t\t\tthrow new RuntimeException( \"用户余额不足!\");\r\n\t\t}\r\n\t\tString sql = \"UPDATE buyers SET balance = balance - ? WHERE id = ?;\";\r\n\t\tjdbcTemplate.update( sql, amount, userid);\r\n\t}", "private void updateBalance(){\n Intent toUpdateBal = new Intent(this, UpdateAccount.class);\n startActivity(toUpdateBal);\n }", "public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }", "private void updateBalanceLabel() {\n balanceLabel.setText(String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance));\n }", "public void updateBalance(int account_id, int final_amount){\n dbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id);\n cache.add(new Account(account_id, final_amount));\n }", "public void setBalance(double balance) {\n\t\tthis.balance = balance;\n\t}", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "public void updateBalance(UUID accountId, double amount) {\n Account account = repository.getAccount(accountId);\n account.updateBalance(amount);\n repository.save(account);\n }", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "protected void insertNickel(double balance)\r\n {\r\n totalBalance = balance;\r\n totalBalance = totalBalance + 0.05;\r\n }", "public void balance() {\n tree.balance();\n }", "public void withdraw(double amount)\n {\n startingBalance -= amount;\n }", "public void setBalance(float value)\n {\n balanceCtrl.setValue(value);\n }", "private void updateCardBalanceUI() {\n exactAmount.setText(decimalFormat.format(cardBalance));\n }", "public void withdraw(double amount){\n\t\tbalance -= amount;\n\t}", "public void addBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() + this.getTemp_d_acc2());\n\t\t}", "public void onClick(View v){\n updateBalance();\n }", "protected void insertDime(double balance)\r\n {\r\n totalBalance = balance;\r\n totalBalance = totalBalance + 0.1;\r\n }", "public void deposit(double amount) {\n balance = balance + amount + 10;\n }", "public void withdraw(double amount) {\n this.balance -= amount;\n }", "public void setBalance(final double newBalance) {\n this.balance = newBalance;\n }", "public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\t\n\t}", "int updateBalance(CardVO cv) throws RemoteException;", "public void withdraw(double amount) throws InsufficientFundsException {\n if (amount <= balance) {\n balance -= amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo= '\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n } //end if\n else {\n throw new InsufficientFundsException(amount);\n } //end else\n }", "public void setBalance(java.math.BigDecimal balance) {\n this.balance = balance;\n }", "public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }", "public void setBalance(BigDecimal balance) {\n this.balance = balance;\n }", "public void OpeningBalance (double open)\t{\n\t\tbalance = balance + open;\n\t\t}", "protected void resetTotalBalance()\r\n {\r\n totalBalance = 0.00;\r\n }", "public void addBalance(float deposit) {\r\n\t\tthis.balance += deposit;\r\n\t}", "public void setBalance( Integer account_id, double balance ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n params.put(\"balance\", String.valueOf(balance));\r\n String url = API_DOMAIN + ACCOUNT_EXT + SET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }", "private void addToBalance(double aBalance) {\n balance += aBalance;\n String out = String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance);\n balanceLabel.setText(out);\n }", "public void withdraw(double amount)\n\t{\n\t\tbalance -= amount;\n\t}", "public void editBalance() {\n\t\tAccount account = getAccountForEditBalance();\n\n\t\tif (adminDao.editBalance(account))\n\t\t\tSystem.out.println(\"Balance edited!\");\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}", "private void withdraw() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at hæve: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n if ((userInput * 100) <= balance) {\n moneyController(-userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Withdraw\");\n } else {\n System.out.println(\"Utilstrækkelig balance på kontien\");\n }\n }", "Account(int balance) {\n if(balance <0) this.balance=0;\n this.balance = balance;\n }", "public void deposit(double amount)\n {\n startingBalance += amount;\n }", "public void withdraw(int amount)\n {\n setBalance(getBalance()-amount);\n }", "public double getBal() {\n\t\t return balance;\r\n\t }", "public void deposit(double amount) {\n this.balance += amount;\n }", "@Override\r\n\tpublic double getBalance() {\n\t\treturn (super.getBalance()+cashcredit);\r\n\t}", "public void withdraw(double amount) {\n\t\tbalance -= amount;\n\t}", "public double getBalance()\n \n {\n \n return balance;\n \n }", "private double getBalance() { return balance; }", "double getBalance();", "double getBalance();", "public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }", "private void setWallet(int dollars) {\n\t\twallet += dollars;\n\t}", "public void addToBalance(double depositBalanceAmount) \n\t{\n\t\taccountBalance += depositBalanceAmount;\n\t}", "public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}", "public void sendNewRound(int balance) {\n sendMessage(Prefix.NEWROUND, \"\" + balance);\n }", "public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }", "public void showAccountBalance(){\n balance();\n\n }", "void withdraw(double amount) {\n try {Thread.sleep(10l);} catch (InterruptedException e) {}\r\n balance -= amount;\r\n System.out.println(\"Inside withdraw\"+ balance);\r\n }", "public void printBalance() {\n logger.info(\"Wallet balance : \" + total_bal);\n }", "public void withdraw (int amount) {\n if (amount >= 0) {\n balance = balance - amount;\n valueWithdrawals = valueWithdrawals + amount;\n if (balance < minimumBalance){\n minimumBalance = balance;\n }\n }\n }", "@Override //nadpisanie - adnotacja, wskazówka\n public int withdraw(int cash) {\n super.balance -=cash;\n return cash;\n }", "public double getBalance(){\r\n\t\treturn balance;\r\n\t}", "public int deposit(int amount) {\n\n balance += amount;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n\n }" ]
[ "0.8293271", "0.79910326", "0.78677887", "0.76622635", "0.7473835", "0.7326761", "0.7281158", "0.7248081", "0.7234366", "0.7124801", "0.71213096", "0.71143764", "0.7101514", "0.7073623", "0.7032503", "0.70214367", "0.69984704", "0.69979465", "0.6991248", "0.69722974", "0.6968379", "0.6949414", "0.6937394", "0.6929175", "0.6892596", "0.6889174", "0.688302", "0.68825245", "0.6878711", "0.68770784", "0.68672806", "0.685193", "0.684332", "0.684332", "0.68408287", "0.6832208", "0.6814587", "0.6812109", "0.68009204", "0.6798971", "0.6777922", "0.67769825", "0.6776453", "0.67536956", "0.6747726", "0.67437804", "0.6733862", "0.6721137", "0.672044", "0.6651131", "0.6641681", "0.66392535", "0.6638684", "0.6638304", "0.6626467", "0.6599116", "0.65857166", "0.658558", "0.6581915", "0.65760136", "0.6575861", "0.6561484", "0.6559506", "0.6548392", "0.6536117", "0.6483209", "0.6473594", "0.6473594", "0.64663243", "0.6453125", "0.64526415", "0.64512753", "0.64476466", "0.64258987", "0.6423027", "0.6419987", "0.64132774", "0.6411817", "0.6406356", "0.6398592", "0.63942385", "0.6379267", "0.6379241", "0.63743967", "0.63699085", "0.6368795", "0.6368795", "0.6364278", "0.63609886", "0.6348924", "0.6348735", "0.63479966", "0.6342463", "0.6341868", "0.6341646", "0.63409287", "0.63407123", "0.6339071", "0.6326916", "0.6321632" ]
0.67635334
43
set hadoop cassandra connection settings
protected void setConnectionInformation() throws IOException { StorageHelper.setConnectionInformation(conf); if (System.getenv(StorageHelper.PIG_INPUT_FORMAT) != null) inputFormatClass = getFullyQualifiedClassName(System.getenv(StorageHelper.PIG_INPUT_FORMAT)); else inputFormatClass = DEFAULT_INPUT_FORMAT; if (System.getenv(StorageHelper.PIG_OUTPUT_FORMAT) != null) outputFormatClass = getFullyQualifiedClassName(System.getenv(StorageHelper.PIG_OUTPUT_FORMAT)); else outputFormatClass = DEFAULT_OUTPUT_FORMAT; if (System.getenv(PIG_ALLOW_DELETES) != null) allow_deletes = Boolean.parseBoolean(System.getenv(PIG_ALLOW_DELETES)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConnectionProperties(String hostname, String dbName, String username, String password);", "public void initializeConnection() {\n\n cluster = Cluster.builder().addContactPoint(host).build();\n session = cluster.connect(keyspaceName);\n session.execute(\"USE \".concat(keyspaceName));\n }", "public void setConnection(Connection conn);", "public static void setConfValues(Configuration conf) {\n MetastoreConf.setVar(conf, ConfVars.HIVE_TXN_MANAGER, TXN_MANAGER);\n MetastoreConf.setBoolVar(conf, ConfVars.HIVE_SUPPORT_CONCURRENCY, true);\n }", "@Before\n public void conn() throws Exception {\n conf = new Configuration();\n fs = FileSystem.get(URI.create(\"hdfs://hadoop001:9000\"), conf, \"hadoop\");\n\n //fs = FileSystem.get(conf);\n }", "public void setConn(Connection conn) {this.conn = conn;}", "public ConnexionClass(){\n\n //sparkSession = SparkSession.builder().master(\"local[*]\").appName(\"BigDATA\").config(\"spark.master\", \"local\").getOrCreate();\n sparkSession = SparkSession\n .builder()\n .config(\"spark.master\", \"local\")\n .getOrCreate();\n }", "private static void setProperties(String sCluster) {\n\t\tSystem.setProperty(\"coherence.cluster\", sCluster);\r\n\r\n\t\tif (CLUSTER_A.equals(sCluster)) {\r\n\t\t\tSystem.setProperty(\"coherence.clusterport\", \"11100\");\r\n\t\t} else if (CLUSTER_B.equals(sCluster)) {\r\n\t\t\tSystem.setProperty(\"coherence.clusterport\", \"11200\");\r\n\t\t}\r\n\t}", "protected void configureConnectionPool() {\n JdbcPropertyAdapter adapter = getPropertyAdapter(dbType, properties);\n JdbcConnectionProvider cp = new JdbcConnectionProvider(this.translator, adapter);\n this.connectionPool = new PoolConnectionProvider(cp, this.maxConnectionPoolSize);\n this.transactionProvider = new SimpleTransactionProvider(this.connectionPool);\n }", "@Override\n public void connect(Properties conf) throws Exception {\n loadConfiguration(conf);\n hBaseOperation = new HBaseOperation(conf);\n hadoopConf = hBaseOperation.gethConf();\n hbaseConnections = new Connection[numConnection];\n for (int i = 0; i < numConnection; i++) {\n hbaseConnections[i] = ConnectionFactory.createConnection(hadoopConf);\n }\n currentConnectionID = new AtomicInteger(0);\n dataTableName = TableName.valueOf(this.dataTableNameString);\n logger.info(\"HBase connections established.\");\n }", "void setConnection(Connection con);", "public void init(ServletConfig config) throws ServletException {\n cluster = CassandraHosts.getCluster();\r\n }", "public void init(ServletConfig config) throws ServletException {\n cluster = CassandraHosts.getCluster();\r\n }", "public void setConnection(String sConnection) throws IOException;", "public void connect() {\n this.disconnect();\n\n Settings settings = ImmutableSettings.settingsBuilder()\n .put(\"cluster.name\", this.cluster)\n .put(\"client.transport.sniff\", true)\n .build();\n this.elasticClient = new TransportClient(settings).addTransportAddresses(\n new InetSocketTransportAddress(this.host, this.port)\n );\n }", "public interface CassandraClusterWrapper {\n CassandraSession open();\n Collection<String> getTableNames();\n void close();\n}", "public void init(ServletConfig config) throws ServletException \n {\n \tcluster = CassandraHosts.getCluster();\n }", "public void init(ServletConfig config) throws ServletException {\n cluster = CassandraHosts.getCluster();\n }", "public void addConnectionInfo(String dataSourceName, boolean managedtx, boolean useDriverManager, String driverClass, String user, String password, int loginTimeout) {\n ConnectionInfo info = ConfigFactory.INSTANCE.createConnectionInfo();\n info.setDataSource(dataSourceName);\n info.setManagedtx(managedtx);\n info.setUseDriveManager(useDriverManager);\n \n ConnectionProperties connectionProperties = ConfigFactory.INSTANCE.createConnectionProperties(); \n connectionProperties.setDriverClass(driverClass);\n \n connectionProperties.setUserName(user);\n connectionProperties.setPassword(password);\n connectionProperties.setLoginTimeout(loginTimeout); \n \n info.setConnectionProperties(connectionProperties);\n config.setConnectionInfo(info);\n }", "@Override\n public void configureMiniCluster(MiniAccumuloConfigImpl cfg, Configuration hadoopCoreSite) {\n cfg.setProperty(Property.TSERV_NATIVEMAP_ENABLED, \"false\");\n cfg.setNumTservers(1);\n }", "protected void init(final MapWritable c) throws IOException {\n try {\n for (Map.Entry<Writable, Writable> e: c.entrySet()) {\n String key = e.getKey().toString();\n String value = e.getValue().toString();\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Config from master: \" + key + \"=\" + value);\n }\n this.conf.set(key, value);\n }\n // Master may have sent us a new address with the other configs.\n // Update our address in this case. See HBASE-719\n if(conf.get(\"hbase.regionserver.address\") != null)\n serverInfo.setServerAddress(new HServerAddress\n (conf.get(\"hbase.regionserver.address\"), \n serverInfo.getServerAddress().getPort()));\n // Master sent us hbase.rootdir to use. Should be fully qualified\n // path with file system specification included. Set 'fs.default.name'\n // to match the filesystem on hbase.rootdir else underlying hadoop hdfs\n // accessors will be going against wrong filesystem (unless all is set\n // to defaults).\n this.conf.set(\"fs.default.name\", this.conf.get(\"hbase.rootdir\"));\n this.fs = FileSystem.get(this.conf);\n this.rootDir = new Path(this.conf.get(HConstants.HBASE_DIR));\n this.log = setupHLog();\n this.logFlusher.setHLog(log);\n // Init in here rather than in constructor after thread name has been set\n this.metrics = new RegionServerMetrics();\n startServiceThreads();\n isOnline = true;\n } catch (IOException e) {\n this.stopRequested.set(true);\n isOnline = false;\n e = RemoteExceptionHandler.checkIOException(e); \n LOG.fatal(\"Failed init\", e);\n IOException ex = new IOException(\"region server startup failed\");\n ex.initCause(e);\n throw ex;\n }\n }", "private DataStaxConnection(String cassandraAddress, String keySpaceName) {\r\n\t\ttry {\r\n\t\t if (instance != null)\r\n\t\t return;\r\n\t\t \r\n\t\t this.address = cassandraAddress;\r\n\t\t this.keyspace = keySpaceName;\r\n\t\t \r\n\t\t Cluster.Builder builder = Cluster.builder();\r\n\t\t \r\n\t\t String[] clusterAddress = cassandraAddress.split(\",\");\r\n\t\t for (String nodeAddress: clusterAddress) {\r\n\t\t builder = builder.addContactPoint(nodeAddress);\r\n\t\t }\r\n\t\t \r\n\t\t\tthis.cluster = builder.build();\t\t\t\r\n\t\t\tLogService.appLog.debug(\"DataStaxConnection: Cluster build is successful\");\r\n\t\t\tthis.session = cluster.connect(keySpaceName);\r\n\t\t\tLogService.appLog.debug(\"DataStaxConnection: Session established successfully\");\r\n\t\t\tinstance = this;\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogService.appLog.debug(\"DataStaxConnection: Encoutnered exception:\",e);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "public CassandraService(JavaSparkContext sparkContext) {\n this.sparkContext = sparkContext;\n\n //Создаю коннектор к Cassandra для native запроса\n CassandraConnector connector = CassandraConnector.apply(sparkContext.getConf());\n\n try (CqlSession session = connector.openSession()) {\n session.execute(\"CREATE KEYSPACE IF NOT EXISTS hw2 WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1}\");\n //Создаю таблицу для результата\n session.execute(\"CREATE TABLE IF NOT EXISTS hw2.result (id int, time timestamp, scale varchar, value int, \" +\n \"PRIMARY KEY ((id), time, scale))\");\n }\n }", "private void setProperties( JobConf conf ) throws IOException {\n \t\tConfig index_conf = ConfigFactory.load();\n\t\tconf.set( CONFIG_PROPERTIES, index_conf.toString());\n \n \t\t// Also set mapred speculative execution off:\n \t\tconf.set( \"mapred.reduce.tasks.speculative.execution\", \"false\" );\n \n \t\t// Reducer count dependent on concurrent HTTP connections to Solr server.\n \t\ttry {\n \t\t\tnumReducers = index_conf.getInt( \"warc.hadoop.num_reducers\" );\n \t\t} catch( NumberFormatException n ) {\n \t\t\tnumReducers = 10;\n \t\t}\n \t}", "@Override\n\tpublic void setConnectTimeout(long arg0) {\n\n\t}", "public void setClusterConfig(Element config)\r\n\t {\r\n\t\t \r\n\t StringBuffer buffer = new StringBuffer();\r\n\t NodeList stack = config.getChildNodes();\r\n\t int length = stack.getLength();\r\n\r\n\t for (int s = 0; s < length; s++)\r\n\t {\r\n\t org.w3c.dom.Node node = stack.item(s);\r\n\t if (node.getNodeType() != org.w3c.dom.Node.ELEMENT_NODE)\r\n\t continue;\r\n\r\n\t Element tag = (Element) node;\r\n\t String protocol = tag.getTagName();\r\n\t buffer.append(protocol);\r\n\t NamedNodeMap attrs = tag.getAttributes();\r\n\t int attrLength = attrs.getLength();\r\n\t if (attrLength > 0)\r\n\t buffer.append('(');\r\n\t for (int a = 0; a < attrLength; a++)\r\n\t {\r\n\t Attr attr = (Attr) attrs.item(a);\r\n\t String name = attr.getName();\r\n\t String value = attr.getValue();\r\n\t buffer.append(name);\r\n\t buffer.append('=');\r\n\t buffer.append(value);\r\n\t if (a < attrLength - 1)\r\n\t buffer.append(';');\r\n\t }\r\n\t if (attrLength > 0)\r\n\t buffer.append(')');\r\n\t buffer.append(':');\r\n\t }\r\n\t // Remove the trailing ':'\r\n\t buffer.setLength(buffer.length() - 1);\r\n\t this.cluster_props = buffer.toString();\r\n\t log.info(\"setting cluster properties from xml to: \" + cluster_props);\r\n\t }", "private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setConn(Connection connection){\n\t\tthis.conn = connection;\n\t}", "private void setDataBase(Settings set) {\n URL_BASE_POSTGRES = set.getValue(\"jdbc.urlBasePostgres\");\n URL_BASE_VACANCY = set.getValue(\"jdbc.urlBaseVacancy\");\n USER_NAME = set.getValue(\"jdbc.userName\");\n PASSWORD = set.getValue(\"jdbc.password\");\n }", "@Override\n\tpublic Map<String, String> settings(Procontext pc) {\n\t\tMap<String, String> settings = super.settings(pc);\n\t\tString ds = param(\"datasource\");\n\t\tsettings.putAll(pc.appproperties().propsWithPrefix(\"progsets.spark.datasource.\" + ds +\".\", true));\n\t\treturn settings;\n\t}", "public void setConn(Connection conn) {\r\n this.conn = conn;\r\n }", "public void setup(){\n this.cluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build();\n this.session = this.cluster.connect(\"demo\");\n }", "@Override\n\t\tpublic void prepare(Map conf, TopologyContext context, OutputCollector collector) {\n\t\t\ttry {\n\t\t\t\tcluster = Cluster.builder().addContactPoint(\"192.168.2.10\").build(); //vagrant cassandra cluster\n\t\t\t\tsession = cluster.connect(); \n\t\t\t}catch(NoHostAvailableException et){\n\t\t\t\ttry{\n\t\t\t\t\tcluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build(); //localhost\n\t\t\t\t\tsession = cluster.connect();\n\t\t\t\t}catch(NoHostAvailableException et1){\n\t\t\t\t\t//can't get to a cassandra cluster bug out\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\t\t\t} \n\t\t\tKeyspaces kp = new Keyspaces();\n\t\t\tkp.SetUpKeySpaces(cluster);\n\t\t\tInsertStatement = session.prepare(\"insert into mzMLKeyspace.mzml (name,scan,mzarray,intensityarray)\" +\n\t\t\t\t\t\" VALUES (?, ?, ?,?);\");\n\t\t\t_collector = collector;\n\t\t\tComponentId=context.getThisComponentId();\n\t\t}", "public DBConnect(String hostname, String dbname, String username, String password, int port, String _nodetable, String [] _nodeCols, String _edgetable, String [] _edgeCols){\r\n this.stillWorks=true;\r\n this.hostname=hostname;\r\n this.dbname=dbname;\r\n this.username=username;\r\n this.password=password;\r\n this.nodetable=_nodetable;\r\n this.edgetable=_edgetable; \r\n this.nodeCols=_nodeCols;\r\n this.edgeCols=_edgeCols;\r\n this.port=port;\r\n }", "public void setConn(Connection conn) {\n this.conn = conn;\n }", "public void setConnection(Connection connection) {\n this.connection = connection;\n }", "void setAllowClusterGet( boolean r );", "public static void setJDBCConnection(String url, String user, String passwd){\n\t\tif(properties.isEmpty()) initialize();\n\t\tproperties.put(\"hibernate.connection.url\", url);\n\t\tproperties.put(\"hibernate.connection.username\", user);\n\t\tproperties.put(\"hibernate.connection.password\", passwd);\n\t}", "public ClientLibrary(Map<String, Integer> localServerIPAndPorts, String keyspace, ConsistencyLevel consistencyLevel)\n throws Exception\n {\n // if (logger.isTraceEnabled()) {\n // logger.trace(\"ClientLibrary(localServerIPAndPorts = {}, keyspace = {}, consistencyLevel = {})\", new Object[]{localServerIPAndPorts, keyspace, consistencyLevel});\n //}\n\n for (Entry<String, Integer> ipAndPort : localServerIPAndPorts.entrySet()) {\n String ip = ipAndPort.getKey();\n Integer port = ipAndPort.getValue();\n\n TTransport tFramedTransport = new TFramedTransport(new TSocket(ip, port));\n TProtocol binaryProtoOnFramed = new TBinaryProtocol(tFramedTransport);\n Cassandra.Client client = new Cassandra.Client(binaryProtoOnFramed);\n tFramedTransport.open();\n addressToClient.put(InetAddress.getByName(ip), client);\n\n TNonblockingTransport tNonblockingTransport = new TNonblockingSocket(ip, port);\n //TODO: 1 or many clientManagers?!?\n TAsyncClientManager clientManager = new TAsyncClientManager();\n Cassandra.AsyncClient asyncClient = new Cassandra.AsyncClient(new TBinaryProtocol.Factory(), clientManager, tNonblockingTransport);\n addressToAsyncClient.put(InetAddress.getByName(ip), asyncClient);\n\n // Set the keyspace for both synchronous and asynchronous clients\n client.set_keyspace(keyspace, LamportClock.sendTimestamp());\n\n BlockingQueueCallback<set_keyspace_call> callback = new BlockingQueueCallback<set_keyspace_call>();\n asyncClient.set_keyspace(keyspace, LamportClock.sendTimestamp(), callback);\n callback.getResponseNoInterruption();\n }\n\n String partitionerName = addressToClient.values().iterator().next().describe_partitioner();\n\n this.partitioner = FBUtilities.newPartitioner(partitionerName);\n\n Configuration conf = new Configuration();\n ConfigHelper.setOutputPartitioner(conf, partitionerName);\n ConfigHelper.setOutputInitialAddress(conf, localServerIPAndPorts.entrySet().iterator().next().getKey());\n ConfigHelper.setOutputRpcPort(conf, localServerIPAndPorts.entrySet().iterator().next().getValue().toString());\n ConfigHelper.setOutputColumnFamily(conf, keyspace, \"ColumnFamilyEntryIgnored\");\n this.ringCache = new RingCache(conf);\n\n this.consistencyLevel = consistencyLevel;\n }", "public void connect(String hostname, int port, String username, String database, String password, boolean useSSL, boolean compress, int maxconnections) throws ClassNotFoundException, SQLException {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n tconn.conn.close();\n }\n if (watchDog != null) {\n watchDog.terminate();\n }\n try {\n this.isCompetitionDB = null;\n this.hostname = hostname;\n this.port = port;\n this.username = username;\n this.password = password;\n this.database = database;\n properties = new Properties();\n properties.put(\"user\", username);\n properties.put(\"password\", password);\n properties.put(\"rewriteBatchedStatements\", \"true\");\n //properties.put(\"profileSQL\", \"true\");\n //properties.put(\"traceProtocol\", \"true\");\n //properties.put(\"logger\", \"edacc.model.MysqlLogger\");\n //properties.put(\"useUnbufferedInput\", \"false\");\n //properties.put(\"useServerPrepStmts\", \"true\");\n if (useSSL) {\n properties.put(\"useSSL\", \"true\");\n properties.put(\"requireSSL\", \"true\");\n }\n if (compress) {\n properties.put(\"useCompression\", \"true\");\n }\n /*java.io.PrintWriter w =\n new java.io.PrintWriter(new java.io.OutputStreamWriter(System.out));\n DriverManager.setLogWriter(w);*/\n \n Class.forName(\"com.mysql.jdbc.Driver\");\n this.maxconnections = maxconnections;\n watchDog = new ConnectionWatchDog();\n connections.add(new ThreadConnection(Thread.currentThread(), getNewConnection(), System.currentTimeMillis()));\n watchDog.start();\n } catch (ClassNotFoundException e) {\n throw e;\n } catch (SQLException e) {\n throw e;\n } finally {\n // inform Observers of changed connection state\n this.setChanged();\n this.notifyObservers();\n }\n }", "@Override\n\tpublic void setConnectionPoolSize(int arg0) {\n\n\t}", "public Builder withCassandraConfiguration(String key, String value) {\n this.cassandraConfiguration.put(key, value);\n return this;\n }", "public void setConn(Connection conn)\r\n\t{\r\n\t\tthis.conn = conn;\r\n\t}", "public void setConnection(Connection value) {\r\n connection = value;\r\n }", "@Override\r\n protected void connect() {\r\n try {\r\n this.setDatabase();\r\n } catch (SQLException e) {\r\n Log.w(NoteTraitDataSource.class.getName(), \"Error setting database.\");\r\n }\r\n }", "public void setConnectionId(long id) {\n connId = id;\n }", "@Override\n public void open() {\n if (getProperty(\"master\").equals(\"yarn-client\")) {\n System.setProperty(\"SPARK_YARN_MODE\", \"true\");\n }\n Properties interpreterProperties = getProperties();\n if (interpreterProperties.containsKey(\"spark.yarn.keytab\") &&\n interpreterProperties.containsKey(\"spark.yarn.principal\")) {\n try {\n String keytab = interpreterProperties.getProperty(\"spark.yarn.keytab\");\n String principal = interpreterProperties.getProperty(\"spark.yarn.principal\");\n UserGroupInformation.loginUserFromKeytab(principal, keytab);\n } catch (IOException e) {\n throw new RuntimeException(\"Can not pass kerberos authentication\", e);\n }\n }\n\n conf = new SparkConf();\n URL[] urls = getClassloaderUrls();\n\n // Very nice discussion about how scala compiler handle classpath\n // https://groups.google.com/forum/#!topic/scala-user/MlVwo2xCCI0\n\n /*\n * > val env = new nsc.Settings(errLogger) > env.usejavacp.value = true > val p = new\n * Interpreter(env) > p.setContextClassLoader > Alternatively you can set the class path through\n * nsc.Settings.classpath.\n *\n * >> val settings = new Settings() >> settings.usejavacp.value = true >>\n * settings.classpath.value += File.pathSeparator + >> System.getProperty(\"java.class.path\") >>\n * val in = new Interpreter(settings) { >> override protected def parentClassLoader =\n * getClass.getClassLoader >> } >> in.setContextClassLoader()\n */\n Settings settings = new Settings();\n\n // process args\n String args = getProperty(\"args\");\n if (args == null) {\n args = \"\";\n }\n\n String[] argsArray = args.split(\" \");\n LinkedList<String> argList = new LinkedList<String>();\n for (String arg : argsArray) {\n argList.add(arg);\n }\n\n String sparkReplClassDir = getProperty(\"spark.repl.classdir\");\n if (sparkReplClassDir == null) {\n sparkReplClassDir = System.getProperty(\"spark.repl.classdir\");\n }\n if (sparkReplClassDir == null) {\n sparkReplClassDir = System.getProperty(\"java.io.tmpdir\");\n }\n\n outputDir = createTempDir(sparkReplClassDir);\n\n argList.add(\"-Yrepl-class-based\");\n argList.add(\"-Yrepl-outdir\");\n argList.add(outputDir.getAbsolutePath());\n\n\n scala.collection.immutable.List<String> list =\n JavaConversions.asScalaBuffer(argList).toList();\n\n settings.processArguments(list, true);\n\n\n // set classpath for scala compiler\n PathSetting pathSettings = settings.classpath();\n String classpath = \"\";\n List<File> paths = currentClassPath();\n for (File f : paths) {\n if (classpath.length() > 0) {\n classpath += File.pathSeparator;\n }\n classpath += f.getAbsolutePath();\n }\n\n if (urls != null) {\n for (URL u : urls) {\n if (classpath.length() > 0) {\n classpath += File.pathSeparator;\n }\n classpath += u.getFile();\n }\n }\n\n // add dependency from local repo\n String localRepo = getProperty(\"zeppelin.interpreter.localRepo\");\n if (localRepo != null) {\n File localRepoDir = new File(localRepo);\n if (localRepoDir.exists()) {\n File[] files = localRepoDir.listFiles();\n if (files != null) {\n for (File f : files) {\n if (classpath.length() > 0) {\n classpath += File.pathSeparator;\n }\n classpath += f.getAbsolutePath();\n }\n }\n }\n }\n\n pathSettings.v_$eq(classpath);\n settings.scala$tools$nsc$settings$ScalaSettings$_setter_$classpath_$eq(pathSettings);\n\n\n // set classloader for scala compiler\n settings.explicitParentLoader_$eq(new Some<ClassLoader>(Thread.currentThread()\n .getContextClassLoader()));\n BooleanSetting b = (BooleanSetting) settings.usejavacp();\n b.v_$eq(true);\n settings.scala$tools$nsc$settings$StandardScalaSettings$_setter_$usejavacp_$eq(b);\n\n /* Required for scoped mode.\n * In scoped mode multiple scala compiler (repl) generates class in the same directory.\n * Class names is not randomly generated and look like '$line12.$read$$iw$$iw'\n * Therefore it's possible to generated class conflict(overwrite) with other repl generated\n * class.\n *\n * To prevent generated class name conflict,\n * change prefix of generated class name from each scala compiler (repl) instance.\n *\n * In Spark 2.x, REPL generated wrapper class name should compatible with the pattern\n * ^(\\$line(?:\\d+)\\.\\$read)(?:\\$\\$iw)+$\n */\n System.setProperty(\"scala.repl.name.line\", \"$line\" + this.hashCode());\n\n // To prevent 'File name too long' error on some file system.\n MutableSettings.IntSetting numClassFileSetting = settings.maxClassfileName();\n numClassFileSetting.v_$eq(128);\n settings.scala$tools$nsc$settings$ScalaSettings$_setter_$maxClassfileName_$eq(\n numClassFileSetting);\n\n synchronized (sharedInterpreterLock) {\n /* create scala repl */\n\n this.interpreter = new SparkILoop((java.io.BufferedReader) null, new PrintWriter(out));\n\n interpreter.settings_$eq(settings);\n\n interpreter.createInterpreter();\n\n intp = ZeppelinIntpUtil.invokeMethod(interpreter, \"intp\");\n ZeppelinIntpUtil.invokeMethod(intp, \"setContextClassLoader\");\n ZeppelinIntpUtil.invokeMethod(intp, \"initializeSynchronous\");\n\n\n if (ZeppelinIntpUtil.findClass(\"org.apache.spark.repl.SparkJLineCompletion\", true) != null) {\n completer = ZeppelinIntpUtil.instantiateClass(\n \"org.apache.spark.repl.SparkJLineCompletion\",\n new Class[]{ZeppelinIntpUtil.findClass(\"org.apache.spark.repl.SparkIMain\")},\n new Object[]{intp});\n } else if (ZeppelinIntpUtil.findClass(\n \"scala.tools.nsc.interpreter.PresentationCompilerCompleter\", true) != null) {\n completer = ZeppelinIntpUtil.instantiateClass(\n \"scala.tools.nsc.interpreter.PresentationCompilerCompleter\",\n new Class[]{IMain.class},\n new Object[]{intp});\n } else if (ZeppelinIntpUtil.findClass(\n \"scala.tools.nsc.interpreter.JLineCompletion\", true) != null) {\n completer = ZeppelinIntpUtil.instantiateClass(\n \"scala.tools.nsc.interpreter.JLineCompletion\",\n new Class[]{IMain.class},\n new Object[]{intp});\n }\n sparkSession = getSparkSession();\n sc = getSparkContext();\n if (sc.getPoolForName(\"fair\").isEmpty()) {\n Value schedulingMode = org.apache.spark.scheduler.SchedulingMode.FAIR();\n int minimumShare = 0;\n int weight = 1;\n Pool pool = new Pool(\"fair\", schedulingMode, minimumShare, weight);\n sc.taskScheduler().rootPool().addSchedulable(pool);\n }\n\n if (null != getProperty(Constants.FS_S3A_ACCESS_KEY) && null != getProperty(Constants.FS_S3A_SECRET_KEY)) {\n sc.hadoopConfiguration().set(Constants.FS_S3A_IMPL, \"org.apache.hadoop.fs.s3a.S3AFileSystem\");\n sc.hadoopConfiguration().set(Constants.FS_S3A_ACCESS_KEY, getProperty(Constants.FS_S3A_ACCESS_KEY));\n sc.hadoopConfiguration().set(Constants.FS_S3A_SECRET_KEY, getProperty(Constants.FS_S3A_SECRET_KEY));\n }\n sparkVersion = SparkVersion.fromVersionString(sc.version());\n\n snc = getSnappyContext();\n\n dep = getDependencyResolver();\n addDeployedJars();\n\n hooks = getInterpreterGroup().getInterpreterHookRegistry();\n z = new SparkZeppelinContext(sc, hooks,\n Integer.parseInt(getProperty(\"zeppelin.spark.maxResult\")));\n\n interpret(\"@transient val _binder = new java.util.HashMap[String, Object]()\");\n Map<String, Object> binder;\n\n binder = (Map<String, Object>) getLastObject();\n binder.put(\"sc\", sc);\n binder.put(\"snc\", snc);\n binder.put(\"z\", z);\n\n binder.put(\"spark\", sparkSession);\n\n\n interpret(\"@transient val z = \"\n + \"_binder.get(\\\"z\\\").asInstanceOf[org.apache.zeppelin.spark.ZeppelinContext]\");\n interpret(\"@transient val sc = \"\n + \"_binder.get(\\\"sc\\\").asInstanceOf[org.apache.spark.SparkContext]\");\n // Injecting SnappyContext in repl\n interpret(\"@transient val snc = \"\n + \"_binder.get(\\\"snc\\\").asInstanceOf[org.apache.spark.sql.SnappyContext]\");\n interpret(\"@transient val snappyContext = \"\n + \"_binder.get(\\\"snc\\\").asInstanceOf[org.apache.spark.sql.SnappyContext]\");\n\n interpret(\"@transient val spark = \"\n + \"_binder.get(\\\"spark\\\").asInstanceOf[org.apache.spark.sql.SparkSession]\");\n\n interpret(\"import org.apache.spark.SparkContext._\");\n interpret(\"import org.apache.spark.sql.SnappyContext._\");\n interpret(\"import org.apache.spark.sql.{Row, SaveMode, SnappyContext}\");\n if (importImplicit()) {\n interpret(\"import spark.implicits._\");\n interpret(\"import spark.sql\");\n interpret(\"import org.apache.spark.sql.functions._\");\n\n }\n }\n\n /* Temporary disabling DisplayUtils. see https://issues.apache.org/jira/browse/ZEPPELIN-127\n *\n // Utility functions for display\n intp.interpret(\"import org.apache.zeppelin.spark.utils.DisplayUtils._\");\n\n // Scala implicit value for spark.maxResult\n intp.interpret(\"import org.apache.zeppelin.spark.utils.SparkMaxResult\");\n intp.interpret(\"implicit val sparkMaxResult = new SparkMaxResult(\" +\n Integer.parseInt(getProperty(\"zeppelin.spark.maxResult\")) + \")\");\n */\n\n\n // add jar from local repo\n if (localRepo != null) {\n File localRepoDir = new File(localRepo);\n if (localRepoDir.exists()) {\n File[] files = localRepoDir.listFiles();\n if (files != null) {\n for (File f : files) {\n if (f.getName().toLowerCase().endsWith(\".jar\")) {\n sc.addJar(f.getAbsolutePath());\n logger.info(\"sc.addJar(\" + f.getAbsolutePath() + \")\");\n } else {\n sc.addFile(f.getAbsolutePath());\n logger.info(\"sc.addFile(\" + f.getAbsolutePath() + \")\");\n }\n }\n }\n }\n }\n\n }", "public static void connect() throws IOException {\n\n if (PROJECT_ID == null || INSTANCE_ID == null) {\n if (sc != null) {\n sc.log(\"environment variables BIGTABLE_PROJECT, and BIGTABLE_INSTANCE need to be defined.\");\n }\n return;\n }\n\n connection = BigtableConfiguration.connect(PROJECT_ID, INSTANCE_ID);\n }", "private static void connect() {\n\t\ttry {\n\t\t\tif (connection == null) {\n\t\t\t\tClass.forName(\"org.mariadb.jdbc.Driver\");\n\t\t\t\tconnection = DriverManager.getConnection(url, user, password);\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public final void setConnection(Connection connection) {\n this.conn = connection;\n }", "public static synchronized void init() {\n\n if (serverRunning.get()) {\n\n LOG.info(\"Initializing the Cassandra server with a default schema and default values\");\n\n String[] createKeySpace = new String[]{\n // \"USE \" + KEY_SPACE + \";\\n\", -> rather specify the key space explicitly for the generic session object we use here\n \"DROP TABLE IF EXISTS \" + KEY_SPACE + \".events;\\n\",\n \"CREATE TABLE \" + KEY_SPACE + \".events (\\n\" +\n \" eventId ASCII PRIMARY KEY,\\n\" +\n \" auditStream ASCII,\\n\" +\n \" eventJson VARCHAR\\n\" +\n \");\"\n };\n\n try {\n for (String cql : createKeySpace) {\n session.execute(cql);\n }\n } catch (Exception e) {\n LOG.error(\"The Cassandra server cannot be initialized\", e.getCause(), e.getStackTrace());\n }\n } else {\n LOG.info(\"The Cassandra server cannot be initialized because it is not running\");\n }\n\n }", "private void setConfiguration() throws IOException{\n\t\tString confPath = \"mapreduce.conf\";\n\t\tFileInputStream fis = new FileInputStream(confPath);\n\t\tthis.load(fis);\n\t\tfis.close();\n\t}", "private void setDefaultOnRawConn(Connection rawConn) {\r\n try {\r\n rawConn.setAutoCommit(poolConfig.isDefaultAutoCommit());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})failed to set default on executing 'setAutoCommit',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})failed to set default on executing 'setAutoCommit'\", poolName);\r\n }\r\n\r\n try {\r\n rawConn.setTransactionIsolation(poolConfig.getDefaultTransactionIsolationCode());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setTransactionIsolation',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setTransactionIsolation'\", poolName);\r\n }\r\n\r\n try {\r\n rawConn.setReadOnly(poolConfig.isDefaultReadOnly());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setReadOnly',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setReadOnly'\", poolName);\r\n }\r\n\r\n if (!isBlank(poolConfig.getDefaultCatalog())) {\r\n try {\r\n rawConn.setCatalog(poolConfig.getDefaultCatalog());\r\n } catch (Throwable e) {\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({}))failed to set default on executing to 'setCatalog',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({}))failed to set default on executing to 'setCatalog'\", poolName);\r\n }\r\n }\r\n\r\n //for JDK1.7 begin\r\n if (supportSchema && !isBlank(poolConfig.getDefaultSchema())) {//test schema\r\n try {\r\n rawConn.setSchema(poolConfig.getDefaultSchema());\r\n } catch (Throwable e) {\r\n supportSchema = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'schema',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'schema'\", poolName);\r\n }\r\n }\r\n\r\n if (supportNetworkTimeout) {//test networkTimeout\r\n try {//set networkTimeout\r\n this.networkTimeout = rawConn.getNetworkTimeout();\r\n if (networkTimeout < 0) {\r\n supportNetworkTimeout = false;\r\n commonLog.warn(\"BeeCP({})driver not support 'networkTimeout'\", poolName);\r\n } else {\r\n rawConn.setNetworkTimeout(this.getNetworkTimeoutExecutor(), networkTimeout);\r\n }\r\n } catch (Throwable e) {\r\n supportNetworkTimeout = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'networkTimeout',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'networkTimeout'\", poolName);\r\n }\r\n }\r\n\r\n if (this.supportIsValid) {//test isValid\r\n try {//test Connection.isValid\r\n if (rawConn.isValid(connectionTestTimeout)) {\r\n this.connectionTester = new ConnValidTester();\r\n } else {\r\n supportIsValid = false;\r\n commonLog.warn(\"BeeCP({})driver not support 'isValid'\", poolName);\r\n }\r\n } catch (Throwable e) {\r\n supportIsValid = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'isValid',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'isValid'\", poolName);\r\n\r\n Statement st = null;\r\n try {\r\n st = rawConn.createStatement();\r\n st.setQueryTimeout(connectionTestTimeout);\r\n } catch (Throwable ee) {\r\n supportQueryTimeout = false;\r\n if (commonLog.isDebugEnabled())\r\n commonLog.debug(\"BeeCP({})driver not support 'queryTimeout',cause:\", poolName, e);\r\n else\r\n commonLog.warn(\"BeeCP({})driver not support 'queryTimeout'\", poolName);\r\n } finally {\r\n if (st != null) oclose(st);\r\n }\r\n }\r\n }\r\n //for JDK1.7 end\r\n }", "@Override\r\n\tpublic void setContext(Context context) {\n\t\thost = context.getString(MongoWriteConstants.MONGO_HOST);\r\n\t\tport = context.getInteger(MongoWriteConstants.MONGO_PORT, MongoWriteConstants.DEFAULT_MONGO_PORT);\r\n\t\tuser = context.getString(MongoWriteConstants.MONGO_USER);\r\n\t\tpassword = context.getString(MongoWriteConstants.MONGO_PASSWORD);\r\n\t\tdatabase = context.getString(MongoWriteConstants.MONGO_DATABASE);\r\n\t\tcollection = context.getString(MongoWriteConstants.MONGO_COLLECTION);\r\n\t}", "public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }", "public void setConn(Connection conn)\n\t{\n\t\tthis.conn = conn;\n\t}", "public static void setTestConnectionHost(String host) {\n TEST_CONNECTION_HOST = host;\n }", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }", "public static void setConnectionPool(BoneCP connectionPool) {\n\t\tSQLDataBaseConnector.connectionPool = connectionPool;\n\t}", "private void connect(String host, int port) throws ClassNotFoundException, SQLException, PropertyVetoException {\n\n cpds = new ComboPooledDataSource();\n cpds.setDriverClass(\"org.postgresql.Driver\"); //loads the jdbc driver\n String url = \"jdbc:postgresql://\"+ host + \":\" + port + \"/postgres?currentSchema=lectures\";\n cpds.setJdbcUrl(url);\n cpds.setUser(\"postgres\");\n cpds.setPassword(\"filip123\");\n }", "public void set_keyspace(String keyspace)\n throws InvalidRequestException, TException\n {\n for (Cassandra.Client client : addressToClient.values()) {\n long returnTime = client.set_keyspace(keyspace, LamportClock.sendTimestamp());\n LamportClock.updateTime(returnTime);\n }\n }", "public static void init()\n {\n try\n {\n // The newInstance() call is a work around for some broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\n // Create a new configuration object\n BoneCPConfig config = new BoneCPConfig();\n\n // Setup the configuration\n config.setJdbcUrl(\"jdbc:mysql://cs304.c0mk5mvcjljr.us-west-2.rds.amazonaws.com/cs304\"); // jdbc url specific to your database, eg jdbc:mysql://127.0.0.1/yourdb\n config.setUsername(\"cs304\");\n config.setPassword(\"ubccs304\");\n config.setConnectionTestStatement(\"SELECT 1\");\n config.setConnectionTimeout(10, TimeUnit.SECONDS);\n config.setMinConnectionsPerPartition(5);\n config.setMaxConnectionsPerPartition(10);\n config.setPartitionCount(1);\n\n // Setup the connection pool\n _pool = new BoneCP(config);\n\n // Log\n LogManager.getLogger(DatabasePoolManager.class).info(\"Database configuration initialized\");\n }\n catch (Exception ex)\n {\n // Log\n LogManager.getLogger(DatabasePoolManager.class).fatal(\"Could not initialize Database configuration\", ex);\n }\n\n }", "String getCassandraName();", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "public void setConnection( String connection )\n {\n this.connection = connection;\n }", "public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernhart1234\");\n }", "@Test\n void testGetSet() {\n SqlClusterExecutor.initJavaSdkLibrary(null);\n SdkOption option = new SdkOption();\n try {\n SQLRouterOptions co = option.buildSQLRouterOptions();\n } catch (SqlException e) {\n Assert.assertTrue(e.getMessage().contains(\"empty zk\"));\n }\n try {\n option.setClusterMode(false);\n StandaloneOptions co = option.buildStandaloneOptions();\n } catch (SqlException e) {\n Assert.assertTrue(e.getMessage().contains(\"empty host\"));\n }\n\n }", "public CitusMasterNode(String nodeName, int nodePort) throws SQLException {\n String connectionString = String.format(CONNECTION_STRING_FORMAT,\n nodeName, nodePort);\n\n masterNodeConnection = DriverManager.getConnection(connectionString);\n }", "public CMySQLDataStore(String Sname, int Pnumber) {\r\n \r\n MysqlDataSource objDs = new MysqlDataSource();\r\n\r\n objDs.setServerName(Sname);\r\n objDs.setPortNumber(Pnumber);\r\n \r\n objDs.setUser(CSettingManager.getSetting(\"DB_User\"));\r\n objDs.setPassword(CSettingManager.getSetting(\"DB_Pwd\"));\r\n objDs.setDatabaseName(CSettingManager.getSetting(\"DB_Database\"));\r\n\r\n ds = objDs;\r\n\r\n }", "public void setConnectionContext(Object tmp) {\n this.connectionContext = tmp;\n }", "public DatabaseConnector() {\n HikariConfig config = new HikariConfig();\n config.setJdbcUrl(\"jdbc:postgresql://localhost:5547/go_it_homework\");\n config.setUsername(\"postgres\");\n config.setPassword(\"Sam@64hd!+4\");\n this.ds = new HikariDataSource(config);\n ds.setMaximumPoolSize(5);\n }", "private void configureMqtt() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"ws://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"tcp://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTT_PORT;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString mqttServer = getMQTTServer();\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tpersistence = new MemoryPersistence();\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, persistence);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void getConnection() {\n con = this.dbc.getMySQLConnection();\n Logger.getLogger(SettingImplementation.class.getName()).log(Level.SEVERE, \"Connection Basic >>>>>\" + con);\n }", "void connect(String servers) throws InterruptedException,\n ClassNotFoundException, SQLException {\n connection = DBConnection.getJDBCConnection(servers);\n\n periodicStatsContext = ((IVoltDBConnection) connection).createStatsContext();\n fullStatsContext = ((IVoltDBConnection) connection).createStatsContext();\n }", "public abstract Connection getConnection(String user, String password) throws SQLException;", "public CachedRowSet setConnection(int db) throws SQLException {\n String url = null;\n switch (db) {\n case 1:\n url = urlRestaurant;\n break;\n case 2:\n url = urlStudent;\n break;\n case 3:\n url = urlLogin;\n default:\n url = \"Invalid URL\";\n break;\n }\n CachedRowSet cachedRowset = RowSetProvider.newFactory().createCachedRowSet();\n cachedRowset.setUrl(url);\n cachedRowset.setUsername(username);\n cachedRowset.setPassword(password);\n return cachedRowset;\n }", "private MySQL() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\tBoneCPConfig config = new BoneCPConfig();\n\t\t\tconfig.setJdbcUrl(\"jdbc:mysql://localhost:3306/moviedb\"); \n\t\t\tconfig.setUsername(\"testuser\");\n\t\t\tconfig.setPassword(\"testpass\");\n\t\t\tconfig.setMinConnectionsPerPartition(5);\n\t\t\tconfig.setMaxConnectionsPerPartition(100);\n\t\t\tconfig.setPartitionCount(1);\n\t\t\tconnectionPool = new BoneCP(config); // setup the connection pool\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Session getConnection(String username, String password, Map<String,String> parameters);", "private void initializeConnectionData() throws IOException, ClassNotFoundException {\n\n\t\tFileInputStream fileInputStream = new FileInputStream(new File(AlohaTransactionManager.CONNECTION_DATA_PATH));\n\t\tProperties properties = new Properties();\n\t\t\n\t\tproperties.load(fileInputStream);\n\t\tfileInputStream.close();\n\t\t\n\t\tthis.url = properties.getProperty(\"url\");\n\t\tthis.user = properties.getProperty(\"usuario\");\n\t\tthis.password = properties.getProperty(\"clave\");\n\t\tthis.driver = properties.getProperty(\"driver\");\n\t\t\n\t\t//Class.forName(driver);\n\t}", "org.apache.calcite.avatica.proto.Common.ConnectionProperties getConnProps();", "public void setConnection(Connection connection) {\n\t\tthis.connection = connection;\n\t}", "@Override\n \t\tprotected void setup(Context context){\n \t\t\tint port = 5701 + context.getTaskAttemptID().getId()%numInstances;\n \t\t\t//System.out.println(\"Connecting to port \" + port);\n \t\t\tClientConfig clientConfig = new ClientConfig();\n \t\t\tclientConfig.addAddress(\"127.0.0.1:\" + port);\n \t\t\tthis.client = HazelcastClient.newHazelcastClient(clientConfig);\n \t\t\tthis.map = client.getMap(\"kmer\");\n \t\t}", "private void initializeConnectionData() throws IOException, ClassNotFoundException {\n\n\t\tFileInputStream fileInputStream = new FileInputStream(new File(AlohandesTransactionManager.CONNECTION_DATA_PATH));\n\t\tProperties properties = new Properties();\n\n\t\tproperties.load(fileInputStream);\n\t\tfileInputStream.close();\n\n\t\tthis.url = properties.getProperty(\"url\");\n\t\tthis.user = properties.getProperty(\"usuario\");\n\t\tthis.password = properties.getProperty(\"clave\");\n\t\tthis.driver = properties.getProperty(\"driver\");\n\n\t\t//Class.forName(driver);\n\t}", "@Override\n protected Settings nodeSettings(int nodeOrdinal) {\n String randomClientPortRange = randomClientPort + \"-\" + (randomClientPort+100);\n String randomNoClientAuthPortRange = randomNoClientAuthPort + \"-\" + (randomNoClientAuthPort+100);\n\n Path trustCert;\n try {\n trustCert = getDataPath(\"/org/elasticsearch/xpack/security/transport/ssl/certs/simple/testclient-client-profile.crt\");\n assertThat(Files.exists(trustCert), is(true));\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n Settings.Builder builder = Settings.builder().put(super.nodeSettings(nodeOrdinal));\n addSSLSettingsForNodePEMFiles(builder, \"transport.profiles.client.xpack.security.\", true);\n builder.put(\"transport.profiles.client.port\", randomClientPortRange)\n .put(\"transport.profiles.client.bind_host\", NetworkAddress.format(localAddress))\n .put(\"transport.profiles.client.xpack.security.ssl.certificate_authorities\", trustCert.toAbsolutePath());\n addSSLSettingsForNodePEMFiles(builder, \"transport.profiles.no_client_auth.xpack.security.\", true);\n builder.put(\"transport.profiles.no_client_auth.port\", randomNoClientAuthPortRange)\n .put(\"transport.profiles.no_client_auth.bind_host\", NetworkAddress.format(localAddress))\n .put(\"transport.profiles.no_client_auth.xpack.security.ssl.client_authentication\", SSLClientAuth.NONE);\n final Settings settings = builder.build();\n logger.info(\"node {} settings:\\n{}\", nodeOrdinal, settings);\n return settings;\n }", "@Override\n public void setConnectionStatus( int status )\n {\n }", "public synchronized VoidResponse setConfigurationStoreConnection(String userId,\n Connection connection)\n {\n configurationStoreConnection = connection;\n return new VoidResponse();\n }", "boolean initConfiguration(Connection con, String schema, boolean dropIfExist) throws Exception;", "public CassandraNode(String host, int port) {\r\n\t\tif (port <= 0) {\r\n\t\t\tport = DEFAULT_JMX_PORT;\r\n\t\t}\r\n\r\n\t\tthis.host = host;\r\n\t\tthis.port = port;\r\n\t\tisLocal = isLocalHost();\r\n\t\tlockedMessages = Collections.synchronizedSet(new HashSet<String>());\r\n\r\n\t\ttry {\r\n\t\t\tstorageServiceName = new ObjectName(\r\n\t\t\t\t\t\"org.apache.cassandra.db:type=StorageService\");\r\n\r\n\t\t\truntimeServiceName = new ObjectName(\"java.lang:type=Runtime\");\r\n\t\t\tosServiceName = new ObjectName(\"java.lang:type=OperatingSystem\");\r\n\r\n\t\t} catch (MalformedObjectNameException ex) {\r\n\t\t\tlogger.error(\"Program error.\", ex);\r\n\t\t}\r\n\r\n\t\tString osv = System.getProperty(\"os.version\");\r\n\t\tlogger.debug(\"OS version: \" + osv);\r\n\t\t// If OS version is x.y.z, strip .z part(s)\r\n\t\twhile (osv.lastIndexOf('.') > osv.indexOf('.')) {\r\n\t\t osv = osv.substring(0, osv.lastIndexOf('.'));\r\n\t\t}\r\n\t\tosversion = Float.parseFloat(osv);\r\n\r\n\t\tsetDbtoolProps();\r\n\t}", "public static void setHBaseConfiguration(Configuration configuration) {\n\t\tHBaseAdminProvider.setConfiguration(configuration);\n\t}", "io.netifi.proteus.admin.om.Connection getConnection(int index);", "private void assignFields(HashMap<String, String> map) {\n driver = map.get(\"driver\");\n address = \"jdbc:mysql://\" + map.get(\"address\");\n username = map.get(\"username\");\n password = map.get(\"password\");\n timeOut = map.get(\"timeout\");\n dbName = map.get(\"dbname\");\n }", "public void setDatabase(Connection _db);", "public interface Constants {\n String ASTYANAX_HOSTS = \"127.0.0.1:9160\";\n String DATASTAX_HOSTS = \"127.0.0.1:9042\";\n String GRAPHITE_HOSTS = \"127.0.0.1\";\n int ASTYANAX_PORT = 9160;\n int GRAPHITE_PORT = 2003;\n int WRITE_BATCH_SIZE = 20;\n int READ_BATCH_SIZE = 200;\n int NUMBER_OF_WRITE_THREADS = 10;\n int NUMBER_OF_READ_THREADS = 10;\n}", "public abstract void connect(JMXServiceURL url, Map<String, Object> env) throws IOException;", "@attribute(value = \"\", required = true)\t\r\n\tpublic void setConnection(String connection) {\r\n\t\tthis.connectionString = connection;\r\n\t}", "public static void initDrillConnector() {\n startTime = System.currentTimeMillis();\n if (clientExecutorEngine == null) {\n clientExecutorEngine = new ClientExecutorEngine();\n }\n }", "public void setConnectTimeout(int connectTimeout) {\n this.connectTimeout = connectTimeout;\n }", "@Override\n public Connection newConnection(String url, String login, String password) {\n Connection connection = null;\n cpds.setJdbcUrl(url);\n cpds.setUser(login);\n cpds.setPassword(password);\n //logger.debug(\"Connection params: JdbcUrl \" + url + \", Login \" + login + \", Password \" + password);\n\n\n try {\n //logger.debug(\"Try to create new C3P0 connection ...\");\n connection = cpds.getConnection();\n //logger.debug(\"New C3P0 connection created succesfully! \" + connection.toString());\n } catch (SQLException e) {\n //logger.warn(\"Creation of new C3P0 connection is failed!\", e);\n }\n\n return connection;\n }", "private void connect() {\n connectionString = \"jdbc:mysql://\" + Config.getInstance().getMySQLServerName() + \":\" + Config.getInstance().getMySQLServerPort() + \"/\" + Config.getInstance().getMySQLDatabaseName();\n\n try {\n Assassin.p.getLogger().info(\"Attempting connection to MySQL...\");\n\n // Force driver to load if not yet loaded\n Class.forName(\"com.mysql.jdbc.Driver\");\n Properties connectionProperties = new Properties();\n connectionProperties.put(\"user\", Config.getInstance().getMySQLUserName());\n connectionProperties.put(\"password\", Config.getInstance().getMySQLUserPassword());\n connectionProperties.put(\"autoReconnect\", \"false\");\n connectionProperties.put(\"maxReconnects\", \"0\");\n connection = DriverManager.getConnection(connectionString, connectionProperties);\n\n Assassin.p.getLogger().info(\"Connection to MySQL was a success!\");\n }\n catch (SQLException ex) {\n connection = null;\n\n if (reconnectAttempt == 0 || reconnectAttempt >= 11) {\n Assassin.p.getLogger().severe(\"Connection to MySQL failed!\");\n printErrors(ex);\n }\n }\n catch (ClassNotFoundException ex) {\n connection = null;\n\n if (reconnectAttempt == 0 || reconnectAttempt >= 11) {\n Assassin.p.getLogger().severe(\"MySQL database driver not found!\");\n }\n }\n }", "public void connect(HTransportCallback callback, HTransportOptions options){\t\n \t\tif (connection != null && connection.isConnected()) {\n \t\t\tconnection.disconnect();\n \t\t}\n \t\t\n \t\tthis.connectionStatus = ConnectionStatus.CONNECTING;\n \t\t\n \t\tthis.callback = callback;\n \t\tthis.options = options;\n \t\t\n \t\tString serverHost = options.getServerHost();\n \t\tint serverPort = options.getServerPort();\n \t\tString serviceName = options.getJid().getDomain();\n \n \t\t//each time it connect we create a new configuration and connection objects\n \t\t//because smack doesn't allow setting host, or configuration on existing objects\n \t\t//@todo check if config has changed rather than create a new one\n \t\tthis.config = new ConnectionConfiguration(serverHost, serverPort, serviceName);\n //\t\t//patch for android to support security\n //\t\tconfig.setTruststorePath(\"/system/etc/security/cacerts.bks\");\n //\t config.setTruststoreType(\"bks\");\n \n \t // Sets whether the client will use SASL authentication when logging into the server.\n \t //config.setSASLAuthenticationEnabled(true);\n \t\t\t \n \t // Sets the TLS security mode used when making the connection.\n \t //config.setSecurityMode(SecurityMode.required);\n \t \n \t config.setReconnectionAllowed(false);\n \t config.setSendPresence(true);\n \t \n \t //add a timer to monitor connection thread. If it takes too long kill it and return conn timeout\n \t final Timer timer = new Timer();\n \t \n \t try {\n \t \tthis.connection = new XMPPConnection(config);\n \t \n \t\t final HTransportOptions localOptions = options;\n \t\t final HTransportXMPP outerClass = this;\n \t\t \n \t\t //create a thread to connect async\n \t\t this.connectionThread = new Thread(new Runnable() {\n \n \t\t\t\tpublic void run() {\n \t\t\t\t\ttry {\n \t\t\t\t\t\t//launch connection and add connection listener for errors\n \t\t\t\t\t\tconnection.connect();\n \t\t\t\t\t\tconnection.addConnectionListener(outerClass);\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t//try to login and update status\n \t\t\t\t\t\t\tconnection.login(localOptions.getUsername(), localOptions.getPassword(), localOptions.getResource());\n \t\t\t\t\t\t\tupdateStatus(ConnectionStatus.CONNECTED, null, null);\n\t\t\t\t\t\t\tPacketFilter packetFilter = new FromContainsFilter(localOptions.getHserverService());\n \t\t\t\t\t\t\tconnection.addPacketListener(outerClass,packetFilter);\n \t\t\t\t\t\t} catch(Exception e) { //login failed\n \t\t\t\t\t\t\tboolean wasConnected = false;\n \t\t\t\t\t\t\tif (connection.isConnected()) {\n \t\t\t\t\t\t\t\twasConnected = true;\n \t\t\t\t\t\t\t\tconnection.disconnect();\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tconnection = null;\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t//update status only if connected, because if not, it's a network error not a login error\n \t\t\t\t\t\t\tif(wasConnected) {\n \t\t\t\t\t\t\t\tupdateStatus(ConnectionStatus.DISCONNECTED, ConnectionError.AUTH_FAILED, e.getMessage());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t} catch(Exception e) { //in case connection failed\n \t\t\t\t\t\tconnection = null;\n \t\t\t\t\t\tupdateStatus(ConnectionStatus.DISCONNECTED, ConnectionError.TECH_ERROR , e.getMessage());\n \t\t\t\t\t}\t\n \t\t\t\t\ttimer.cancel();\n \t\t\t\t}\n \t\t\t});\n \t\t this.connectionThread.start(); //start async thread\n \t } catch(Exception e) { //in case thread creation failed or it was interrupted\n \t \tif (connection.isConnected()) {\n \t\t\t\tconnection.disconnect();\n \t\t\t}\n \t \t//e.printStackTrace();\n \t \tthis.connection = null;\n \t \tthis.updateStatus(ConnectionStatus.DISCONNECTED, ConnectionError.TECH_ERROR, e.getMessage());\n \t }\n \t \n \t \n \t //set timer task to add a connection timeout\n \t timer.schedule(new TimerTask() {\n \t\t\t\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tif (connectionThread != null && connectionThread.isAlive()) {\n \t\t\t\t\tconnectionThread.interrupt();\n \t\t\t\t\tif(connection.isConnected()) {\n \t\t\t\t\t\tconnection.disconnect();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tupdateStatus(ConnectionStatus.DISCONNECTED, ConnectionError.CONN_TIMEOUT, null);\n \t\t\t}\n \t\t}, SmackConfiguration.getPacketReplyTimeout());\n \t}" ]
[ "0.6096431", "0.5963143", "0.58067137", "0.5656161", "0.5654059", "0.5598599", "0.5553459", "0.5533096", "0.5522535", "0.5455439", "0.534061", "0.53231126", "0.53231126", "0.5281748", "0.5247434", "0.524663", "0.5204989", "0.51987267", "0.51810586", "0.5156936", "0.5155321", "0.5123824", "0.51111907", "0.5099629", "0.5098209", "0.50271106", "0.4988297", "0.4987924", "0.49813116", "0.49613357", "0.49561864", "0.49499655", "0.4941556", "0.49390158", "0.49249598", "0.49088463", "0.48952615", "0.4895238", "0.48723564", "0.48684207", "0.48464486", "0.4843502", "0.48308125", "0.48286855", "0.4805242", "0.47951737", "0.47933945", "0.4790261", "0.47886166", "0.47782683", "0.47503036", "0.47442415", "0.47430113", "0.47403616", "0.47301206", "0.47197297", "0.4710828", "0.47055474", "0.47021523", "0.47017354", "0.47005174", "0.46984535", "0.46926153", "0.4691906", "0.46917644", "0.46856403", "0.46809506", "0.46720394", "0.4670835", "0.46700367", "0.46675575", "0.4653756", "0.46504644", "0.4648381", "0.46435583", "0.46423778", "0.46423143", "0.46369508", "0.46332765", "0.46304366", "0.4626008", "0.4612715", "0.46055767", "0.4604816", "0.45929825", "0.45872223", "0.4585469", "0.45845616", "0.45835978", "0.45591158", "0.45570084", "0.45515448", "0.45386565", "0.45268843", "0.4524095", "0.45084643", "0.4500791", "0.44972897", "0.44957963", "0.4493819" ]
0.48609316
40
get the full class name
protected String getFullyQualifiedClassName(String classname) { return classname.contains(".") ? classname : "org.apache.cassandra.hadoop." + classname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}", "java.lang.String getClassName();", "public String getClassName() {\n\t\tString tmp = methodBase();\n\t\treturn tmp.substring(0, 1).toUpperCase()+tmp.substring(1);\n\t}", "public final String toStringClassName() {\r\n \t\tString str = this.getClass().getName();\r\n \t\tint lastIx = str.lastIndexOf('.');\r\n \t\treturn str.substring(lastIx+1);\r\n \t}", "String getClassName();", "String getClassName();", "String getClassName();", "public String getClassName();", "protected String getClassName() {\n return getDescriptedClass().getName();\n }", "public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }", "public String getClassname() {\n return classname;\n }", "private static String getClassName() {\n\n\t\tThrowable t = new Throwable();\n\n\t\ttry {\n\t\t\tStackTraceElement[] elements = t.getStackTrace();\n\n\t\t\t// for (int i = 0; i < elements.length; i++) {\n\t\t\t//\n\t\t\t// }\n\n\t\t\treturn elements[2].getClass().getSimpleName();\n\n\t\t} finally {\n\t\t\tt = null;\n\t\t}\n\n\t}", "public String getClassname() {\n\t\treturn classname;\n\t}", "java.lang.String getClass_();", "java.lang.String getClass_();", "public String getName_Class() {\n\t\treturn name;\n\t}", "public String getClassname()\r\n {\r\n return m_classname;\r\n }", "private String getClassName( Class c ) {\n\treturn c.getName().substring(c.getName().lastIndexOf('.')+1);\n }", "public static String getClassName() {\n return CLASS_NAME;\n }", "@Override\n public String simpleName() {\n if (this == class_) {\n return \"class\";\n }\n return name();\n }", "public abstract String getClassName();", "public String getClazzName();", "String getClassName() {\n final StringBuilder builder = new StringBuilder();\n final String shortName = getShortName();\n boolean upperCaseNextChar = true;\n for (final char c : shortName.toCharArray()) {\n if (c == '_' || c == '-') {\n upperCaseNextChar = true;\n continue;\n }\n\n if (upperCaseNextChar) {\n builder.append(Character.toUpperCase(c));\n upperCaseNextChar = false;\n } else {\n builder.append(c);\n }\n }\n builder.append(\"Messages\");\n return builder.toString();\n }", "public String getName() {\n return className;\n }", "abstract String getClassName();", "public String getFullyQualifiedName() {\n\t\treturn this.getPackageName() + \".\" + this.getClassName();\n\t}", "@Override\n public String getClassName() {\n Object ref = className_;\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 className_ = s;\n return s;\n }\n }", "public String getClassName(final String fullClassName) {\r\n\t\tint lastIndexPoint = fullClassName.lastIndexOf(\".\");\r\n\t\tString resultClassName = fullClassName.substring(lastIndexPoint + 1,\r\n\t\t\t\tfullClassName.length());\r\n\t\treturn resultClassName;\r\n\t}", "protected static String getSimpleName(Class<?> c) {\n String name = c.getName();\n return name.substring(name.lastIndexOf(\".\") + 1);\n }", "public String getClassname(Class<?> aClass) {\n\t\tString result = aClass.getCanonicalName();\n\t\tif (result.endsWith(\"[]\")) {\n\t\t\tresult = result.substring(0, result.length() - 2);\n\t\t}\n\t\treturn result;\n\t}", "public String getClassName(){\n\t\treturn targetClass.name;\n\t}", "public String getClassName() {\n Object ref = className_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n className_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getCurrentClassName () {\n String currentClass = getCurrentElement(ElementKind.CLASS);\n if (currentClass == null) return \"\";\n else return currentClass;\n }", "public String getName() {\n\t\treturn className;\n\t}", "public String getClassName() {\n return super.getClassName();\n }", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "public String getClassName(){\n\t\treturn classname;\n\t}", "public String getClassName()\n {\n return className;\n }", "public String getClassName()\n {\n return _className;\n }", "protected String getClassName(Object o) {\n\t\tString classString = o.getClass().getName();\n\t\tint dotIndex = classString.lastIndexOf(\".\");\n\n\t\treturn classString.substring(dotIndex + 1);\n\t}", "private String getClassName(String fileName){\n String className = FilenameUtils.getBaseName(fileName);\n return className;\n }", "public String getClassName() { return className; }", "default String getClassName() {\n return declaringType().getClassName();\n }", "protected String getName() {\n\t\tfinal String tmpName = getClass().getSimpleName();\n\t\tif (tmpName.length() == 0) {\n\t\t\t// anonymous class\n\t\t\treturn \"???\";//createAlgorithm(replanningContext).getClass().getSimpleName();\n\t\t}\n\n\t\treturn tmpName;\n\t}", "protected String getClassName() {\r\n return newName.getText();\r\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\r\n return className;\r\n }", "public ApexQualifiedName getClassName() {\n if (isClass()) {\n return this;\n }\n\n return new ApexQualifiedName(this.nameSpace, this.classes, null);\n }", "public String toString() {return classSimpleName+\"#\"+name;}", "public static String getCurrentClassName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getClassName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=java.lang.Thread s1=g1.tool.Tool s2=g1.TRocketmq1Application\n\t\treturn s2;\n\t}", "public String getClassName()\n {\n return this.className;\n }", "String getClassName(Element e) {\n // e has to be a TypeElement\n TypeElement te = (TypeElement)e;\n String packageName = elementUtils.getPackageOf(te).getQualifiedName().toString();\n String className = te.getQualifiedName().toString();\n if (className.startsWith(packageName + \".\")) {\n String classAndInners = className.substring(packageName.length() + 1);\n className = packageName + \".\" + classAndInners.replace('.', '$');\n }\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() {\n return className;\n }", "public String getBaseClassName() {\n return className;\n }", "public String getClassName () { return _className; }", "public java.lang.String getClassName() {\n return this._className;\n }", "private String m56637b(Class cls) {\n return cls.getName();\n }", "private static String getSimpleClassName(String className) {\n\n\n\t\tString[] names = className.split(\"\\\\.\");\n\n\t\tfor (int i = 0; i < names.length; i++) {\n\t\t\tLog.d(\"\", \"names =\" + names[i]);\n\t\t}\n\n\t\treturn names[names.length - 1];\n\t}", "@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getName()\n {\n return underlyingClass.getName();\n }", "String getGeneratedClassName();", "String getGeneratedClassName();", "String getGeneratedClassName();", "String getClassName() {\n return this.className;\n }", "public String getName() {\r\n \treturn this.getClass().getName();\r\n }", "@Override\n public String getName() {\n final String name = getClass().getName();\n final int lastDollar = name.lastIndexOf('$');\n return name.substring(lastDollar + 1);\n }", "public String getClassName() {\n return this.className;\n }", "public String getClassName() {\n return this.className;\n }", "@DISPID(-2147417111)\n @PropGet\n java.lang.String className();", "public String className() {\n\t\treturn className;\n\t}", "private String getClass( String format )\n {\n final Class clazz = StackIntrospector.getCallerClass( Logger.class );\n\n if( null == clazz )\n {\n return \"Unknown-class\";\n }\n else\n {\n // Found : the caller is the previous stack element\n String className = clazz.getName();\n\n // Handle optional format\n if( TYPE_CLASS_SHORT_STR.equalsIgnoreCase( format ) )\n {\n int pos = className.lastIndexOf( '.' );\n\n if( pos >= 0 )\n {\n className = className.substring( pos + 1 );\n }\n }\n\n return className;\n }\n }", "@Override\n public String getName() {\n return getDeclaringClass().getName();\n }", "public String getClassName() {\n\t\treturn className;\n\t}", "public String getClassName() {\n\t\treturn className;\n\t}", "public final String getName() {\n if (name == null) {\n name = this.getClass().getSimpleName().substring(3);\n }\n return name;\n }", "private String getClassName(final Class<?> clazz) {\n return EntityType.getEntityType(clazz).map(e -> e.getEntityName(clazz)).orElse(clazz.getSimpleName());\n }", "@Override\n public com.google.protobuf.ByteString\n getClassNameBytes() {\n Object ref = className_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n className_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String shortName(Class<?> someClass) {\r\n String fullName = someClass.getName();\r\n return fullName.substring(fullName.lastIndexOf('.') + 1);\r\n }", "public static String getName (Class<? extends MailController> clazz)\n {\n String fqcn = clazz.getName ();\n int i = fqcn.lastIndexOf ('.');\n String name = i>0 ? fqcn.substring (i+1) : fqcn;\n\n String xname = name.endsWith (\"MailController\")\n ? name.substring (0, name.length ()-14)\n : name;\n return xname.substring (0, 1).toLowerCase () + xname.substring (1);\n }", "public static String getShortClassName(Class clazz) {\r\n\t\treturn getShortClassName(clazz.getName());\r\n\t}", "public String getStartName() {// TODO remove\n\t\treturn this.getClass().getSimpleName();\n\t}", "public static String getClassNameNoPackage(Class<?> aClass) {\n \t\n String fullClassName = aClass.getName();\n int index = fullClassName.lastIndexOf('.');\n String className = null;\n \n //in this case, there is no package name\n if(index==-1) {\n \treturn fullClassName;\n }\n else {\n className = fullClassName.substring(index+1);\n return className;\n } \n }", "public final String getName() {\n /// Since we plan to have only one wizard for each class, we use the name of the class.\n return this.getClass().getSimpleName();\n }", "public String getBinaryClassName() {\n\t\tString bcn = classQName.dotSeparated();\n\t\t// Inner classes not supported yet\n\t\tassert(!bcn.contains(\"$\"));\n\t\treturn bcn;\n\t}", "java.lang.String getInstanceName();", "public final String getDClassName() {\n return Descriptor.getDClassName(this.dclass);\n }", "public static String getClassName(Class<?> objectClass) {\n RemoteClass annotation = objectClass.getAnnotation(RemoteClass.class);\n if (annotation != null) {\n return annotation.alias();\n }\n String className = objectClass.getName();\n if (className.startsWith(\"org.red5.compatibility.\")) {\n // Strip compatibility prefix from classname\n className = className.substring(23);\n if (\"flex.messaging.messages.AsyncMessageExt\".equals(className)) {\n className = \"DSA\";\n } else if (\"flex.messaging.messages.CommandMessageExt\".equals(className)) {\n className = \"DSC\";\n } else if (\"flex.messaging.messages.AcknowledgeMessageExt\".equals(className)) {\n className = \"DSK\";\n }\n }\n log.debug(\"Classname: {}\", className);\n return className;\n }", "@Override\n public String getName() {\n return this.getClass().getSimpleName();\n }", "private static String resolveName(@Nonnull final Class<?> clazz) {\n\t\tfinal String n = clazz.getName();\n\t\tfinal int i = n.lastIndexOf('.');\n\t\treturn i > 0 ? n.substring(i + 1) : n;\n\t}", "public String getShortTestClassName()\r\n {\r\n return target.getClass().getSimpleName();\r\n }", "@Override\n\tpublic String getClassName() {\n\t\treturn\tSchool.class.getName();\n\t}", "com.google.protobuf.ByteString\n getClassNameBytes();", "public String getClassName(String path);", "public String getFullName() {\n return getAndroidPackage() + \"/\" + getInstrumentationClass();\n }", "String getClassName() {\n return mClassName;\n }", "public String mo12985l_() {\n return getClass().getName();\n }" ]
[ "0.8649212", "0.85047287", "0.8420065", "0.8261254", "0.8161003", "0.8161003", "0.8161003", "0.7943591", "0.79410255", "0.7936999", "0.7909252", "0.784939", "0.7793615", "0.7722043", "0.7722043", "0.77217203", "0.76898634", "0.7652028", "0.7646331", "0.7634703", "0.7582276", "0.7562066", "0.75507885", "0.748409", "0.7477253", "0.742124", "0.7418894", "0.7398609", "0.73913634", "0.7374686", "0.7361317", "0.73553866", "0.73490727", "0.73313254", "0.73061955", "0.72953796", "0.7261909", "0.72392285", "0.7226197", "0.72170687", "0.7216423", "0.7216196", "0.7180496", "0.71779984", "0.7170093", "0.71571016", "0.7153403", "0.7150461", "0.71395594", "0.71367407", "0.71081436", "0.71043694", "0.70926803", "0.70926803", "0.70926803", "0.70926803", "0.70926803", "0.70926803", "0.7081385", "0.70763147", "0.7074303", "0.70569944", "0.7042406", "0.70328885", "0.7022141", "0.7020256", "0.7020256", "0.7020256", "0.70043594", "0.7000897", "0.6999719", "0.6981308", "0.6981308", "0.6967914", "0.6964356", "0.696185", "0.69434696", "0.69132185", "0.69132185", "0.690032", "0.6885987", "0.6880219", "0.6871232", "0.68698984", "0.6862536", "0.6856603", "0.6845529", "0.6840182", "0.6831487", "0.68148243", "0.6793645", "0.6787983", "0.6783963", "0.6781973", "0.6773192", "0.6772183", "0.67559564", "0.6752037", "0.67321163", "0.67319024", "0.67294246" ]
0.0
-1
set read configuration settings
public void setLocation(String location, Job job) throws IOException { conf = HadoopCompat.getConfiguration(job); setLocationFromUri(location); if (ConfigHelper.getInputSlicePredicate(conf) == null) { SliceRange range = new SliceRange(slice_start, slice_end, slice_reverse, limit); SlicePredicate predicate = new SlicePredicate().setSlice_range(range); ConfigHelper.setInputSlicePredicate(conf, predicate); } if (System.getenv(PIG_WIDEROW_INPUT) != null) widerows = Boolean.parseBoolean(System.getenv(PIG_WIDEROW_INPUT)); if (System.getenv(PIG_USE_SECONDARY) != null) usePartitionFilter = Boolean.parseBoolean(System.getenv(PIG_USE_SECONDARY)); if (System.getenv(StorageHelper.PIG_INPUT_SPLIT_SIZE) != null) { try { ConfigHelper.setInputSplitSize(conf, Integer.parseInt(System.getenv(StorageHelper.PIG_INPUT_SPLIT_SIZE))); } catch (NumberFormatException e) { throw new IOException("PIG_INPUT_SPLIT_SIZE is not a number", e); } } if (usePartitionFilter && getIndexExpressions() != null) ConfigHelper.setInputRange(conf, getIndexExpressions()); if (username != null && password != null) ConfigHelper.setInputKeyspaceUserNameAndPassword(conf, username, password); if (splitSize > 0) ConfigHelper.setInputSplitSize(conf, splitSize); if (partitionerClass!= null) ConfigHelper.setInputPartitioner(conf, partitionerClass); if (rpcPort != null) ConfigHelper.setInputRpcPort(conf, rpcPort); if (initHostAddress != null) ConfigHelper.setInputInitialAddress(conf, initHostAddress); ConfigHelper.setInputColumnFamily(conf, keyspace, column_family, widerows); setConnectionInformation(); if (ConfigHelper.getInputRpcPort(conf) == 0) throw new IOException("PIG_INPUT_RPC_PORT or PIG_RPC_PORT environment variable not set"); if (ConfigHelper.getInputInitialAddress(conf) == null) throw new IOException("PIG_INPUT_INITIAL_ADDRESS or PIG_INITIAL_ADDRESS environment variable not set"); if (ConfigHelper.getInputPartitioner(conf) == null) throw new IOException("PIG_INPUT_PARTITIONER or PIG_PARTITIONER environment variable not set"); if (loadSignature == null) loadSignature = location; initSchema(loadSignature); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setConfiguration() throws IOException{\n\t\tString confPath = \"mapreduce.conf\";\n\t\tFileInputStream fis = new FileInputStream(confPath);\n\t\tthis.load(fis);\n\t\tfis.close();\n\t}", "void setConfiguration();", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void readConfigFile() {\n\n BufferedReader input = null;\n try {\n input = new BufferedReader(new FileReader(getConfigFile()));\n String sLine = null;\n while ((sLine = input.readLine()) != null) {\n final String[] sTokens = sLine.split(\"=\");\n if (sTokens.length == 2) {\n m_Settings.put(sTokens[0], sTokens[1]);\n }\n }\n }\n catch (final FileNotFoundException e) {\n }\n catch (final IOException e) {\n }\n finally {\n try {\n if (input != null) {\n input.close();\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n\n }", "public static void ReadConfig() throws IOException\r\n {\r\n ReadConfiguration read= new ReadConfiguration(\"settings/FabulousIngest.properties\");\r\n \t \r\n fedoraStub =read.getvalue(\"fedoraStub\");\r\n \t username = read.getvalue(\"fedoraUsername\");\r\n \t password =read.getvalue(\"fedoraPassword\");\r\n \t pidNamespace =read.getvalue(\"pidNamespace\");\r\n \t contentAltID=read.getvalue(\"contentAltID\");\r\n \t \r\n \t \r\n \t ingestFolderActive =read.getvalue(\"ingestFolderActive\");\r\n \t ingestFolderInActive =read.getvalue(\"ingestFolderInActive\");\r\n \t\r\n logFileNameInitial=read.getvalue(\"logFileNameInitial\");\r\n \r\n DataStreamID=read.getvalue(\"DataStreamID\");\r\n \t DataStreamLabel=read.getvalue(\"DataStreamLabel\");\r\n \r\n \r\n \r\n }", "public void setConfiguration(Properties props);", "public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }", "public void intiSettings()throws Exception{\r\n\r\n\t\tinputStream = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\config.properties\");\r\n\t\tconfig.load(inputStream);\r\n\t\t\r\n\t\tprop.put(\"bootstrap.servers\", config.getProperty(\"bootstrap.servers\"));\r\n\t\tprop.put(\"key.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\t\tprop.put(\"value.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\r\n\t\ttopicName = config.getProperty(\"TopicName\");\r\n\t\ttopicName = createTopic(topicName);\r\n\t\t\r\n\t\tmessageList = Arrays.asList(config.getProperty(\"messages\").split(\"\\\\|\"));\r\n\t}", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "void configure (Settings settings);", "private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}", "private void config() {\n\t}", "private void loadSettings() {\r\n \tString fname = baseDir + \"/\" + configFile;\r\n\t\tString line = null;\r\n\r\n\t\t// Load the settings hash with defaults\r\n\t\tsettings.put(\"db_url\", \"\");\r\n\t\tsettings.put(\"db_user\", \"\");\r\n\t\tsettings.put(\"db_pass\", \"\");\r\n\t\tsettings.put(\"db_min\", \"2\");\r\n\t\tsettings.put(\"db_max\", \"10\");\r\n\t\tsettings.put(\"db_query\", \"UPDATE members SET is_activated=1 WHERE memberName=? AND is_activated=3\");\r\n\t\t// Read the current file (if it exists)\r\n\t\ttry {\r\n \t\tBufferedReader input = new BufferedReader(new FileReader(fname));\r\n \t\twhile (( line = input.readLine()) != null) {\r\n \t\t\tline = line.trim();\r\n \t\t\tif (!line.startsWith(\"#\") && line.contains(\"=\")) {\r\n \t\t\t\tString[] pair = line.split(\"=\", 2);\r\n \t\t\t\tsettings.put(pair[0], pair[1]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tcatch (FileNotFoundException e) {\r\n\t\t\tlogger.warning( \"[SMF] Error reading \" + e.getLocalizedMessage() + \", using defaults\" );\r\n \t}\r\n \tcatch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n }", "private static void loadSettings() {\n try {\n File settings = new File(\"settings.txt\");\n //Options\n BufferedReader reader = new BufferedReader(new FileReader(settings));\n defaultSliderPosition = Double.parseDouble(reader.readLine());\n isVerticalSplitterPane = Boolean.parseBoolean(reader.readLine());\n verboseCompiling = Boolean.parseBoolean(reader.readLine());\n warningsEnabled = Boolean.parseBoolean(reader.readLine());\n clearOnMethod = Boolean.parseBoolean(reader.readLine());\n compileOptions = reader.readLine();\n runOptions = reader.readLine();\n //Colors\n for(int i = 0; i < colorScheme.length; i++) \n colorScheme[i] = new Color(Integer.parseInt(reader.readLine()));\n\n for(int i = 0; i < attributeScheme.length; i++) {\n attributeScheme[i] = new SimpleAttributeSet();\n attributeScheme[i].addAttribute(StyleConstants.Foreground, colorScheme[i]);\n }\n\n theme = reader.readLine();\n\n reader.close(); \n } catch (FileNotFoundException f) {\n println(\"Couldn't find the settings. How the hell.\", progErr);\n } catch (IOException i) {\n println(\"General IO exception when loading settings.\", progErr);\n } catch (Exception e) {\n println(\"Catastrophic failure when loading settings.\", progErr);\n println(\"Don't mess with the settings file, man!\", progErr);\n }\n }", "public void setConfig(String config)\n throws IOException\n {\n _config=config;\n _configResource=Resource.newResource(_config);\n loadConfig();\n \n }", "private void readPreferences() {\n configAutonomousCommand();\n }", "public ReadConfig() \n\t{\n\t\tFile scr = new File(\"./Configuration/config.properties\"); //property file\n\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(scr); // READ the DATA (read mode)\n\t\t\tpro = new Properties(); // pro object\n\t\t\tpro.load(fis); // Load method -load at the \n\n\t\t} catch (final Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Except is \" + e.getMessage());\n\t\t} \n\t}", "public void setConfigurations() {\n configurations = jsonManager.getConfigurationsFromJson();\n }", "@BeforeClass\n\tpublic void readConfig() {\n\t\t// object creation of properties file\n\n\t\tProperties prop = new Properties();\n\n\t\t// read the file: inputstream\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(\"\\\\src\\\\main\\\\java\\\\config\\\\config.properties\");\n\t\t\tprop.load(input);\n\t\t\tbrowser = prop.getProperty(\"browser\");\n\t\t//\turl = prop.getProperty(\"url\");\n\t\t\t\n\t\t}\n\n\t\tcatch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "protected boolean readProjectSettings() { return true; }", "private void setProperties( JobConf conf ) throws IOException {\n \t\tConfig index_conf = ConfigFactory.load();\n\t\tconf.set( CONFIG_PROPERTIES, index_conf.toString());\n \n \t\t// Also set mapred speculative execution off:\n \t\tconf.set( \"mapred.reduce.tasks.speculative.execution\", \"false\" );\n \n \t\t// Reducer count dependent on concurrent HTTP connections to Solr server.\n \t\ttry {\n \t\t\tnumReducers = index_conf.getInt( \"warc.hadoop.num_reducers\" );\n \t\t} catch( NumberFormatException n ) {\n \t\t\tnumReducers = 10;\n \t\t}\n \t}", "public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "public void loadConfig() {\n\t}", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "private void loadSettings() throws NumberFormatException, SQLException {\n\t\tmaximumRequests = Integer.parseInt(getSetting(\"maximum_requests\"));\n\t\trequestCount = Integer.parseInt(getSetting(\"requests\"));\n\t}", "public static void readConfig() {\n\t\tint[] defaultBanned = Loader.isModLoaded(\"twilightforest\") ? new int[]{7} : new int[0];\n\t\t\n\t\tDIMENSION_LIST = ConfigHelpers.getIntArray(config, \"dimensionIdList\", \"general\", defaultBanned, \"The list of dimension IDs, used as a allow-list or deny-list, depending on your other config settings. Internal numeric IDs, please.\");\n\t\t\n\t\tMODE = ConfigHelpers.getEnum(config, \"mode\", \"general\", ListMode.DENY_LIST, \"What mode should Broken Wings operate under?\", (mode) -> {\n\t\t\tswitch (mode) {\n\t\t\t\tcase DENY_LIST: return \"Flying is disabled in only the dimensions listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALLOW_LIST: return \"Flying is disabled in all dimensions, except the ones listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALWAYS_DENY: return \"Flying is always disabled, regardless of dimension ID.\";\n\t\t\t\tcase ALWAYS_ALLOW: return \"Flying is never disabled (it's like the mod isn't even installed)\";\n\t\t\t\tdefault: return \"h\";\n\t\t\t}\n\t\t}, ListMode.class);\n\t\t\n\t\tARMOR_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyArmor\", \"general\", new ItemList(), \"A player wearing one of these armor pieces will be immune to the no-flight rule.\");\n\t\t\n\t\tINVENTORY_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyInventory\", \"general\", new ItemList(), \"A player with one of these items in their inventory will be immune to the no-flight rule.\");\n\t\t\n\t\tif(Loader.isModLoaded(\"baubles\")) {\n\t\t\tBUBBLE_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyBauble\", \"general\", new ItemList(), \"A player wearing one of these Baubles will be immune to the no-flight rule.\");\n\t\t} else {\n\t\t\tBUBBLE_BYPASS_KEYS = new ItemList();\n\t\t}\n\t\t\n\t\t//Countermeasures\n\t\tCountermeasures.readConfig(config);\n\t\t\n\t\t//Effects\n\t\tPRINT_TO_LOG = config.getBoolean(\"printToLog\", \"effects\", true, \"Should a message be printed to the server console when a player is dropped from the sky?\");\n\t\t\n\t\tSEND_STATUS_MESSAGE = config.getBoolean(\"sendStatusMessage\", \"effects\", true, \"Should players receive a status message when they are dropped from the sky?\");\n\t\t\n\t\tSHOW_PARTICLES = config.getBoolean(\"showParticles\", \"effects\", true, \"Should players create particle effects when they are dropped from the sky?\");\n\t\t\n\t\tEFFECT_INTERVAL = config.getInt(\"effectInterval\", \"effects\", 3, 0, Integer.MAX_VALUE, \"To prevent spamming players and the server console, how many seconds will need to pass before performing another effect? (Players will still drop out of the sky if they try to fly faster than this interval.)\");\n\t\t\n\t\tFIXED_MESSAGE = config.getString(\"fixedStatusMessage\", \"effects\", \"\", \"Whatever you enter here will be sent to players when they are dropped out of the sky if 'effects.sendStatusMessage' is enabled. If this is empty, I'll choose from my own internal list of (tacky) messages.\").trim();\n\t\t\n\t\t//Client\n\t\tSHOW_BYPASS_KEY_TOOLTIP = config.getBoolean(\"showBypassKeyTooltip\", \"client\", true, \"Show a tooltip on items that are bypass-keys informing the player that they can use this item to bypass the rule.\");\n\t\t\n\t\tif(config.hasChanged()) config.save();\n\t}", "public static void load()\n throws IOException, ClassNotFoundException {\n FileInputStream f_in = new\n FileInputStream (settingsFile);\n ObjectInputStream o_in = new\n ObjectInputStream(f_in);\n SettingsSaver loaded = (SettingsSaver) o_in.readObject();\n advModeUnlocked = loaded.set[0];\n LIM_NOTESPERLINE = loaded.set[1];\n LIM_96_MEASURES = loaded.set[2];\n LIM_VOLUME_LINE = loaded.set[3];\n LIM_LOWA = loaded.set[4];\n LIM_HIGHD = loaded.set[5];\n LOW_A_ON = loaded.set[6];\n NEG_TEMPO_FUN = loaded.set[7];\n LIM_TEMPO_GAPS = loaded.set[8];\n RESIZE_WIN = loaded.set[9];\n ADV_MODE = loaded.set[10];\n o_in.close();\n f_in.close();\n }", "public void setRead(){\n \tthis.isRead = true;\n }", "private void defaultConfig(){\n\t\t\n\t\t String status =\"\";\n\t\t try {\n\t\t \tstatus =\"reading control file\";\n\t\t \tString aFile = controlfileTF.getText();\n\t\t\t config.controlfile = aFile;\n\n\t\t BufferedReader input = new BufferedReader(new FileReader(aFile));\n\t\t try {\n\t\t \n\t\t config.outputdir = input.readLine();\t\t \n\t\t outputdirTF.setText(config.outputdir);\n\t\t config.reginputdir = input.readLine();\t\t \n\t\t reginputdirTF.setText(config.reginputdir);\n\t\t config.grdinputdir = input.readLine();\t\t \n\t\t grdinputdirTF.setText(config.grdinputdir);\n\t\t config.eqchtinputdir = input.readLine();\t\t \n\t\t eqchtinputdirTF.setText(config.eqchtinputdir);\n\t\t config.spchtinputdir = input.readLine();\t\t \n\t\t spchtinputdirTF.setText(config.spchtinputdir);\n\t\t config.trchtinputdir = input.readLine();\t\t \n\t\t trchtinputdirTF.setText(config.trchtinputdir);\n\t\t config.restartinputdir = input.readLine();\t\t \n\t\t restartinputdirTF.setText(config.restartinputdir);\n\t\t config.calibrationdir = input.readLine();\t\t \n\t\t calibrationdirTF.setText(config.calibrationdir);\n\t\t \n\t\t config.runstage = input.readLine();\n\t\t if (config.runstage.equalsIgnoreCase(\"eq\")) {\n\t\t \trunstageRB[0].setSelected(true);\n\t\t } else if (config.runstage.equalsIgnoreCase(\"sp\")) {\n\t\t \trunstageRB[1].setSelected(true);\t\t \t\n\t\t } else if (config.runstage.equalsIgnoreCase(\"tr\")) {\n\t\t \trunstageRB[2].setSelected(true);\t\t \t\n\t\t } else if (config.runstage.equalsIgnoreCase(\"sptr\")) {\n\t\t \trunstageRB[3].setSelected(true);\t\t \t\n\t\t }\n\t\t \n\t\t config.initmode = input.readLine();\t\t \n\t\t if (config.initmode.equalsIgnoreCase(\"lookup\")) {\n\t\t \tinitmodeRB[0].setSelected(true);\n\t\t } else if (config.initmode.equalsIgnoreCase(\"restart\")) {\n\t\t \tinitmodeRB[1].setSelected(true);\n\t\t } else if (config.initmode.equalsIgnoreCase(\"sitein\")) {\n\t\t \tinitmodeRB[2].setSelected(true);\t\t \t\n\t\t }\n\t\t \n\t\t config.climatemode = input.readLine();\t\t \n\t\t if (config.climatemode.equalsIgnoreCase(\"normal\")) {\n\t\t \tclmmodeRB[0].setSelected(true);\n\t\t } else if (config.climatemode.equalsIgnoreCase(\"dynamic\")) {\n\t\t \tclmmodeRB[1].setSelected(true);\t\t \t\n\t\t }\n\n\t\t config.co2mode = input.readLine();\t\t \n\t\t if (config.co2mode.equalsIgnoreCase(\"initial\")) {\n\t\t \tco2modeRB[0].setSelected(true);\n\t\t } else if (config.co2mode.equalsIgnoreCase(\"dynamic\")) {\n\t\t \tco2modeRB[1].setSelected(true);\n\t\t }\n\n\t\t config.casename = input.readLine();\t\t \n\t\t casenameTF.setText(config.casename);\n \n\t\t }catch (Exception e){\n\t\t \t JOptionPane.showMessageDialog(f, status+\" failed\");\n\t\t }\n\t\t finally {\n\t\t input.close();\n\t\t }\n\t\t }\n\t\t catch (IOException ex){\n\t\t ex.printStackTrace();\n\t\t }\t\t\n\t\t}", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "@Test\n public final void testConfigurationParser() {\n URL resourceUrl = this.getClass().getResource(configPath);\n File folder = new File(resourceUrl.getFile());\n for (File configFile : folder.listFiles()) {\n try {\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }\n }", "Collection<String> readConfigs();", "private void read() {\n // Read the properties from the project\n EditableProperties sharedProps = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties privateProps = antProjectHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n final ProjectConfiguration cfgs[] = configHelper.getConfigurations().toArray(new ProjectConfiguration[0]);\n final ProjectConfiguration confs[] = new ProjectConfiguration[cfgs.length];\n System.arraycopy(cfgs, 0, confs, 0, cfgs.length);\n setConfigurations(confs);\n // Initialize the property map with objects\n properties.put(J2ME_PROJECT_NAME, new PropertyInfo(new PropertyDescriptor(J2ME_PROJECT_NAME, true, DefaultPropertyParsers.STRING_PARSER), ProjectUtils.getInformation(project).getDisplayName()));\n for (PropertyDescriptor pd:PROPERTY_DESCRIPTORS) {\n EditableProperties ep = pd.isShared() ? sharedProps : privateProps;\n String raw = ep.getProperty( pd.getName());\n properties.put( pd.getName(), new PropertyInfo( pd, raw == null ? pd.getDefaultValue() : raw));\n for (int j=0; j<devConfigs.length; j++) {\n final PropertyDescriptor clone = pd.clone(CONFIG_PREFIX + devConfigs[j].getDisplayName() + '.' + pd.getName());\n raw = ep.getProperty(clone.getName());\n if (raw != null) {\n properties.put(clone.getName(), new PropertyInfo(clone, raw));\n }\n }\n }\n }", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public static void read(String configFile){\n\t\ttry {\n\t\t\tif(configFile.startsWith(\"$setu\")){\n\t\t\t\t\n\t\t\t\tString path=AppProperties.getProperty(\"setu\");\n\t\t\t\tif((path.substring(path.length()-1)).equals(\"/\")){\n\t\t\t\t\tpath=path.substring(0,path.length()-1);\n\t\t\t\t}\n\t\t\t\tconfigFile=path.concat(configFile.substring(5));\n\t\t\t}\n\n\t\t\tBufferedReader bcfr = new BufferedReader(new InputStreamReader(new FileInputStream(configFile), \"UTF8\"));\n\t\t\tString varPrefix = \"\";\n\t\t\tString varName;\n\t\t\tString value;\n\t\t\tint indexOfEqual;\n\t\t\tString line = null;\n\t\t\tconfig = new HashMap<String,String>();\n\t\t\twhile((line = bcfr.readLine()) != null){\n\t\t\t\tif(line.equals(\"\"))\n\t\t\t\t\tcontinue;\n\t\t\t\tif(line.startsWith(\"[\") && line.trim().endsWith(\"]\")){\n\t\t\t\t\tvarPrefix = line.substring(1, line.indexOf(\"]\"))+\".\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tindexOfEqual = line.indexOf(\"=\");\n\t\t\t\t\tvarName = line.substring(0, indexOfEqual).trim();\n\t\t\t\t\tvalue = line.substring(indexOfEqual + 1).trim();\n\t\t\t\t\tconfig.put(varPrefix + varName, value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\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}", "public static void configureLocal() {\r\n configure(getProperties(true));\r\n }", "private void updateConfig(){\n try {\n BeanUtils.copyProperties(config_,newConfig_);//copy the properties of newConfig_ into config_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n }\n }", "@Override\n public void setConf(Configuration conf) {\n }", "private void initConfigVar() {\n\t\tConfigUtils configUtils = new ConfigUtils();\n\t\tmenuColor = configUtils.readConfig(\"MENU_COLOR\");\n\t\taboutTitle = configUtils.readConfig(\"ABOUT_TITLE\");\n\t\taboutHeader = configUtils.readConfig(\"ABOUT_HEADER\");\n\t\taboutDetails = configUtils.readConfig(\"ABOUT_DETAILS\");\n\t\tgsTitle = configUtils.readConfig(\"GS_TITLE\");\n\t\tgsHeader = configUtils.readConfig(\"GS_HEADER\");\n\t\tgsDetailsFiles = configUtils.readConfig(\"GS_DETAILS_FILES\");\n\t\tgsDetailsCases = configUtils.readConfig(\"GS_DETAILS_CASES\");\n\t}", "private ConfigReader() {\r\n\t\tsuper();\r\n\t}", "public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }", "public StoreReadSettings() {\n }", "protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }", "@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}", "private void loadSettings() {\n \tLog.i(\"T4Y-Settings\", \"Load mobile settings\");\n \tmobileSettings = mainApplication.getMobileSettings();\n \t\n \t//update display\n autoSynchronizationCheckBox.setChecked(mobileSettings.isAllowAutoSynchronization());\n autoScanCheckBox.setChecked(mobileSettings.isAllowAutoScan());\n autoSMSNotificationCheckBox.setChecked(mobileSettings.isAllowAutoSMSNotification());\n }", "private void setConfiguration(JSONObject config) throws JSONException{\n\t\tif(config.has(\"api\")){\n\t\t\tJSONObject obj=config.getJSONObject(\"api\");\n\t\t\tif(obj.has(\"bind\")){\n\t\t\t\tbind=obj.getString(\"bind\");\n\t\t\t}\n\t\t\tif(obj.has(\"port\")){\n\t\t\t\tport=obj.getInt(\"port\");\n\t\t\t}\n\t\t}\n\t\tif(config.has(\"streams\")){\n\t\t\tJSONObject obj=config.getJSONObject(\"streams\");\n\t\t\tif(obj.has(\"port\")){\n\t\t\t\tstreamPort=obj.getInt(\"port\");\n\t\t\t}\n\t\t\tif(obj.has(\"host\")){\n\t\t\t\tstreamHost=obj.getString(\"host\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 2. Overlay environment variables\n\t\tMap<String,String>env=System.getenv();\n\t\tif(env.containsKey(\"BIND\")){\n\t\t\tbind=env.get(\"BIND\");\n\t\t}\n\t\tif(env.containsKey(\"PORT\")){\n\t\t\tport=Integer.parseInt(env.get(\"PORT\"));\n\t\t}\n\t\tif(env.containsKey(\"STREAMSHOST\")){\n\t\t\tstreamHost=env.get(\"STREAMSHOST\");\n\t\t}\n\t\tif(env.containsKey(\"STREAMSPORT\")){\n\t\t\tstreamPort=Integer.parseInt(env.get(\"STREAMSPORT\"));\n\t\t}\n\t}", "public static void setEnv() throws IOException {\n\t\tBuildURL.propReader = new PropertyReader(App.getResourcesFilePath() + FileSystems.getDefault().getSeparator() + App.getConfigFileRoot() + \"configuration.properties\");\n\t\tBuildURL.baseURL = propReader.readValue(\"baseURL\");\n\t\tBuildURL.domain = propReader.readValue(\"domain\");\n\t\tBuildURL.project = propReader.readValue(\"project\");\n\n\t\tif(propReader.readValue(\"login_form_required\").equalsIgnoreCase(\"Y\")){\n\t\t\tlogin_required_string = \"?login-form-required=y\";\n\t\t}else{\n\t\t\tlogin_required_string = \"\";\n\t\t}\n\t}", "private static ConfigImpl loadProperties(Reader reader) throws IOException {\n ConfigImpl ret = new ConfigImpl();\n\n Properties properties = new Properties();\n properties.load(reader);\n for (String key : properties.stringPropertyNames()) {\n ret.set(key, properties.getProperty(key));\n }\n\n return ret;\n }", "public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public String readConfiguration(String path);", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "protected String readSettings() {\n String output = \"\";\n for (String setting: settings.keySet()) {\n String value = settings.get(setting);\n output += setting + \":\" + value + \"\\n\";\n }\n return output;\n }", "public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void initSettings() {\n\n\t}", "public static void readConfiguration() throws IOException {\n synchronized (Configuration.class) {\n Properties props = new Properties();\n InputStream is = new FileInputStream(Constants.ROOT_PATH + \"/opencraft.properties\");\n try {\n props.load(is);\n configuration = new Configuration(props);\n } finally {\n is.close();\n }\n }\n }", "@Override\n\tpublic void checkPropertyConfiguration() throws IOException, CustomizedException {\n\t\tString conf=PropertyReader.getProperty(\"configuration\");\n\t\tString\tfileName=\"\";\n\t\tconfiguration=conf;\n\t\tif(conf == null || conf.isEmpty())\n\t\t{\n\t\t\tthrow new CustomizedException(\"Configuration property is not set,it must be set to 1 or 2 \");\n\n\t\t}\n\t\tif(conf.equals(\"1\"))\n\t\t{\n\t\t\titeration=1;\n\t\t\tfileName=PropertyReader.getProperty(\"anagram_file\");\n\t\t\n\t\t\tif(fileName == null || fileName.isEmpty())\n\t\t\t{\n\t\t\t\tthrow new CustomizedException(\"Filename property is not set,it must be set to sample against the key anagramFile \");\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(conf.equals(\"2\"))\n\t\t{\n\t\t\titeration=Integer.parseInt(PropertyReader.getProperty(\"load_testing_iteration\"));\n\t\t\tfileName=PropertyReader.getProperty(\"large_file\");\n\t\t\tif(fileName == null || fileName.isEmpty())\n\t\t\t{\n\t\t\t\tthrow new CustomizedException(\"Filename property is not set,it must be bigFile against the key largeFile \");\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tthis.fileName=fileName;\n\t\t\n\t}", "public abstract void initialSettings();", "private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}", "private static void processIncludedConfig() {\n String configName = \"config.\" + getRunMode() + \".properties\";\n\n //relative path cannot be recognized and not figure out the reason, so here use absolute path instead\n InputStream configStream = Configuration.class.getResourceAsStream(\"/\" + configName);\n if (configStream == null) {\n log.log(Level.WARNING, \"configuration resource {0} is missing\", configName);\n return;\n }\n\n try (InputStreamReader reader = new InputStreamReader(configStream, StandardCharsets.UTF_8)) {\n Properties props = new Properties();\n props.load(reader);\n CONFIG_VALUES.putAll(props);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Unable to process configuration {0}\", configName);\n }\n\n }", "private void loadConfig()\n {\n File config = new File(\"config.ini\");\n\n if (config.exists())\n {\n try\n {\n BufferedReader in = new BufferedReader(new FileReader(config));\n\n configLine = Integer.parseInt(in.readLine());\n configString = in.readLine();\n socketSelect = (in.readLine()).split(\",\");\n in.close();\n }\n catch (Exception e)\n {\n System.exit(1);\n }\n }\n else\n {\n System.exit(1);\n }\n }", "public static void readXmlSettings() throws SAXException, IOException,\r\n\tParserConfigurationException {\n\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory\r\n\t\t\t\t.newInstance();\r\n\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n\t\tDocument xmlBaseSettings = docBuilder.parse(new File(\"config.xml\"));\r\n\t}", "protected void setConnectionInformation() throws IOException\n {\n StorageHelper.setConnectionInformation(conf);\n if (System.getenv(StorageHelper.PIG_INPUT_FORMAT) != null)\n inputFormatClass = getFullyQualifiedClassName(System.getenv(StorageHelper.PIG_INPUT_FORMAT));\n else\n inputFormatClass = DEFAULT_INPUT_FORMAT;\n if (System.getenv(StorageHelper.PIG_OUTPUT_FORMAT) != null)\n outputFormatClass = getFullyQualifiedClassName(System.getenv(StorageHelper.PIG_OUTPUT_FORMAT));\n else\n outputFormatClass = DEFAULT_OUTPUT_FORMAT;\n if (System.getenv(PIG_ALLOW_DELETES) != null)\n allow_deletes = Boolean.parseBoolean(System.getenv(PIG_ALLOW_DELETES));\n }", "public SettingsSaver() {\n set[0] = advModeUnlocked;\n set[1] = LIM_NOTESPERLINE;\n set[2] = LIM_96_MEASURES;\n set[3] = LIM_VOLUME_LINE;\n set[4] = LIM_LOWA;\n set[5] = LIM_HIGHD;\n set[6] = LOW_A_ON;\n set[7] = NEG_TEMPO_FUN;\n set[8] = LIM_TEMPO_GAPS;\n set[9] = RESIZE_WIN;\n set[10] = ADV_MODE;\n }", "public synchronized static void initConfig() {\n SeLionLogger.getLogger().entering();\n Map<ConfigProperty, String> initialValues = new HashMap<>();\n\n initConfig(initialValues);\n\n SeLionLogger.getLogger().exiting();\n }", "private void setAndWriteFiles()\n\t{\n\t\tSensorConfiguration config = new SensorConfiguration();\n\t\tString versionMajor = ConfigurationInterface_v1_0.VERSION.substring(0,\n\t\t\t\tConfigurationInterface_v1_0.VERSION.indexOf('.'));\n\t\tString versionMinor = ConfigurationInterface_v1_0.VERSION\n\t\t\t\t.substring(ConfigurationInterface_v1_0.VERSION.indexOf('.') + 1);\n\t\tconfig.setConfigurationInterfaceVersion(versionMajor, versionMinor);\n\n\t\tStartModes startModes = new StartModes();\n\t\t// set startMode for sensorConfiguration\n\t\tfor (StartMode element : startModes.getStartModeList())\n\t\t{\n\t\t\tif (element.getName().equals(\"DEFINED_TIME\"))\n\t\t\t{\n\t\t\t\tconfig.setStartMode(element);\n\t\t\t}\n\t\t}\n\n\t\tConfigurationSets configSets = new ConfigurationSets();\n\t\t// set configurationSet for sensorConfiguration\n\t\tfor (ConfigurationSet element : configSets.getConfigSetList())\n\t\t{\n\t\t\tif (element.getName().equals(\"mesana\"))\n\t\t\t{\n\n\t\t\t\tconfig.setConfigurationSet(element);\n\t\t\t}\n\t\t}\n\n\t\tif (config.getStartMode().getName().equals(\"DEFINED_TIME\"))\n\t\t{\n\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH, 10);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 5);\n\t\t\tcalendar.set(Calendar.MINUTE, 11);\n\t\t\tDate date = calendar.getTime();\n\t\t\tconfig.setRecordingStartTime(date);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconfig.setRecordingStartTime(null);\n\t\t}\n\t\t\n\t\tconfig.setRecordingDuration(12000);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnectionManager.getInstance().currentSensor(0).setSensorConfiguration(config);\n\t\t\t\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeConfigFile();\n\t\t\t\n\t\t\t// write Encrypted data to sensor\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeEncryptedParameters(\"123456789abcd12\");\n\t\t\t\n\t\t\tint index = customerList.getSelectionIndex();\n\t\t\tif (index >= 0 && index <= mCollect.getList().size())\n\t\t\t{\n\t\t\t\tString linkId = mCollect.getList().get(index).getLinkId();\n\t\t\t\tconfig.addParameter(\"LinkId\", linkId);\n\t\t\t}\n\t\t\t// write custom data to additional file in sensor\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeCustomFile();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t}", "public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }", "private SettingsManager initSettings() {\n // Copy the demo/config.yml instead of using it directly so it doesn't get overridden\n configFile = copyFileFromJar(\"/demo/config.yml\");\n return SettingsManagerBuilder.withYamlFile(configFile).configurationData(TitleConfig.class).create();\n }", "public static void loadConfig() throws IOException {\n\t\t// initialize hash map\n\t\tserverOptions = new HashMap<>();\n\t\t// Get config from file system\n\t\tClass<ConfigurationHandler> configurationHandler = ConfigurationHandler.class;\n\t\tInputStream inputStream = configurationHandler.getResourceAsStream(\"/Config/app.properties\");\n\t\tInputStreamReader isReader = new InputStreamReader(inputStream);\n\t //Creating a BufferedReader object\n\t BufferedReader reader = new BufferedReader(isReader);\n\t String str;\n\t while((str = reader.readLine())!= null){\n\t \t if (str.contains(\"=\")) {\n\t \t\t String[] config = str.split(\" = \", 2);\n\t \t serverOptions.put(config[0], config[1]);\n\t \t }\n\t }\n\t}", "public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}", "public void testSettingValues() throws Exception {\n this.l2Manager.dsoL2Config().garbageCollection().setInterval(142);\n ((Client) this.l1Manager.commonL1Config().getBean()).setLogs(\"whatever\");\n ((Server) this.l2Manager.commonl2Config().getBean()).setData(\"marph\");\n\n // A sub-config object\n this.l1Manager.dsoL1Config().instrumentationLoggingOptions().setLogDistributedMethods(true);\n\n this.factory.activateConfigurationChange();\n\n System.err.println(this.l2Manager.systemConfig());\n System.err.println(this.l1Manager.dsoL1Config());\n\n assertEquals(142, this.l2Manager.dsoL2Config().garbageCollection().getInterval());\n assertEquals(new File(\"whatever\"), this.l1Manager.commonL1Config().logsPath());\n assertEquals(new File(\"marph\"), this.l2Manager.commonl2Config().dataPath());\n assertTrue(this.l1Manager.dsoL1Config().instrumentationLoggingOptions().logDistributedMethods());\n }", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void loadSettings(String configFileName, String corpusDirName, String inputasN, String outputasN)\n throws GateException, IOException {\n LogService.minVerbosityLevel = 0;\n if(LogService.minVerbosityLevel>0)\n System.out.println(\"Learning Home : \" + learningHome.getAbsolutePath());\n FeatureMap parameters = Factory.newFeatureMap();\n URL configFileURL = new File(configFileName).toURI().toURL();\n parameters.put(\"configFileURL\", configFileURL);\n learningApi = (LearningAPIMain)Factory.createResource(\n \"gate.learning.LearningAPIMain\", parameters);\n // Load the corpus\n corpus = Factory.newCorpus(\"DataSet\");\n ExtensionFileFilter fileFilter = new ExtensionFileFilter();\n fileFilter.addExtension(\"xml\");\n File[] xmlFiles = new File(corpusDirName).listFiles(fileFilter);\n Arrays.sort(xmlFiles, new Comparator<File>() {\n public int compare(File a, File b) {\n return a.getName().compareTo(b.getName());\n }\n });\n for(File f : xmlFiles) {\n if(!f.isDirectory()) {\n Document doc = Factory.newDocument(f.toURI().toURL(), \"UTF-8\");\n doc.setName(f.getName());\n corpus.add(doc);\n }\n }\n// URL tempURL = new File(corpusDirName).toURI().toURL();\n// corpus.populate(tempURL, fileFilter, \"UTF-8\", false);\n // Set the inputAS\n learningApi.setInputASName(inputasN);\n learningApi.setOutputASName(outputasN);\n controller = (gate.creole.SerialAnalyserController)Factory\n .createResource(\"gate.creole.SerialAnalyserController\");\n controller.setCorpus(corpus);\n controller.add(learningApi);\n }", "private void override() {\n AppSettings.setInstance(\n ConfigFactory.parseMap(newSettingsMap).withFallback(AppSettings.getInstance()));\n }", "public static void acceptConfig() {\r\n\t\t//Here, it tries to read over the config file using try-catch in case of Exception\r\n\t\ttry {\r\n\t\t\tProperties properties = new Properties();\r\n\t\t\tFileInputStream fis = new FileInputStream(new File(\"config.properties\"));\r\n\t\t\tproperties.load(fis);\r\n\t\t\tString storage = properties.getProperty(\"storage\");\r\n\t\t\tif(storage == null) \r\n\t\t\t\tthrow new IllegalArgumentException(\"Property 'storage' not found\");\r\n\t\t\tif(storage.equals(\"tree\"))\r\n\t\t\t\tdata = new BinarySearchTree();\r\n\t\t\tif(storage.equals(\"trie\"))\r\n\t\t\t\tdata = new Trie();\r\n\t\t\tif(data == null) \r\n\t\t\t\tthrow new IllegalArgumentException(\"Not valid storage configuration.\");\r\n\t\t}\r\n\t\t//If an Exception occurs, it just prints a message\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Configuration file not found.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error reading the configuration file.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public void loadConfiguration(){\n\t\t\n\t\tString jarLoc = this.getJarLocation();\n\t\tTicklerVars.jarPath = jarLoc;\n\t\tTicklerVars.configPath=TicklerVars.jarPath+TicklerConst.configFileName;\n\t\t\n\t\t//Read configs from conf file\n\t\tif (new File(TicklerVars.configPath).exists()){\n\t\t\ttry {\n\t\t\t\tString line;\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(TicklerVars.configPath));\n\t\t\t\twhile ((line =reader.readLine())!= null) {\n\t\t\t\t\tif (line.contains(\"Tickler_local_directory\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length());\n\t\t\t\t\t\tTicklerVars.ticklerDir = this.correctJarLoc(loc);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line.contains(\"Tickler_sdcard_directory\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length()-1);\n\t\t\t\t\t\tTicklerVars.sdCardPath = this.correctJarLoc(loc);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line.contains(\"Frida_server_path\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length());\n\t\t\t\t\t\tTicklerVars.fridaServerLoc = loc;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//Config path does not exist\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"WARNING...... Configuration file does not exist!!!!\\nThe following default configurations are set:\\n\");\n\t\t\tTicklerVars.ticklerDir = TicklerVars.jarPath+TicklerConst.defaultTicklerDirName;\n\t\t\tSystem.out.println(\"Tickler Workspace directory on host: \"+TicklerVars.ticklerDir);\n\t\t\tSystem.out.println(\"Tickler temporary directory on device: \"+TicklerConst.sdCardPathDefault);\n\t\t}\n\t\t\n\t\tString x = TicklerVars.ticklerDir;\n\t\tif (TicklerVars.ticklerDir == null || TicklerVars.ticklerDir.matches(\"\\\\s*/\") ){\n\t\t\tTicklerVars.ticklerDir = TicklerVars.jarPath+TicklerConst.defaultTicklerDirName;\n//\t\t\tOutBut.printWarning(\"Configuration File \"+TicklerVars.configPath+ \" doesn't specify Tickler_local_directory. Workspace is set at \"+ TicklerVars.ticklerDir);\n\t\t\tOutBut.printStep(\"Tickler Workspace directory on host: \"+TicklerVars.ticklerDir);\n\t\t}\n\t\t\n\t\tif (TicklerVars.sdCardPath == null || TicklerVars.sdCardPath.matches(\"\\\\s*/\")) {\n\t\t\tTicklerVars.sdCardPath = TicklerConst.sdCardPathDefault;\t\n//\t\t\tOutBut.printWarning(\"Configuration File \"+TicklerVars.configPath+ \" doesn't specify Tickler's temp directory on the device. It is set to \"+ TicklerVars.sdCardPath);\n\t\t\tOutBut.printStep(\"Tickler temporary directory on device: \"+TicklerConst.sdCardPathDefault);\n\t\t}\n\t\t\t\n\t}", "private static void loadConfig() throws IOException { \t\t\n final InputStream input = Main.class.getResourceAsStream(\"/configuration.properties\");\n final Properties prop = new Properties();\n \n prop.load(input);\n System.out.println(\"Configuration loaded:\"); \n\n // PostgreSQL server access config\n dbmsUrl = prop.getProperty(\"dbms_url\");\n System.out.println(\"- dbms_url: \" + dbmsUrl);\n\n dbmsUser = prop.getProperty(\"dbms_user\");\n System.out.println(\"- dbms_user: \" + dbmsUser);\n\n userPw = prop.getProperty(\"user_pw\"); \n System.out.println(\"- user_pw: \" + userPw);\n\n\n // Benchmarks config\n noTransactions = Integer.parseInt(prop.getProperty(\"no_transactions\"));\n System.out.println(\"- no_transactions: \" + noTransactions);\n\n noStatementsPerTransaction = Integer.parseInt(prop.getProperty(\"no_statements_per_transaction\")); \n System.out.println(\"- no_statements_per_transaction: \" + noStatementsPerTransaction);\n\n noSelectStatements = Integer.parseInt(prop.getProperty(\"no_select_statements\")); \n System.out.println(\"- no_select_statements: \" + noSelectStatements + \"\\n\");\n\n input.close();\n }", "private void configureNode() {\n\t\twaitConfigData();\n\t\tpropagateConfigData();\n\n\t\tisConfigured = true;\n\t}", "public void updateSettings(){\n\n // load in configuration variables\n layout = plugin.getConfig().getString(\"layout\");\n enabled = plugin.getConfig().getBoolean(\"enabled\");\n minTemp = plugin.getConfig().getInt(\"min-temperature\");\n maxTemp = plugin.getConfig().getInt(\"max-temperature\");\n peakTime = plugin.getConfig().getInt(\"peak-time\");\n tickrate = plugin.getConfig().getLong(\"tickrate\");\n worldName = plugin.getConfig().getString(\"world-name\");\n\n }", "protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }", "public interface ConfigProperties {\n ConfigFileReader config = new ConfigFileReader();\n // Common configuration properties\n String WORKING_DIRECTORY = System.getProperty(\"user.dir\");\n String TestAppName = config.getProperty(\"testappname\");\n String TestExecutionType = config.getProperty(\"testexecutiontype\");\n String OsType = config.getProperty(\"ostype\");\n // String AppType = config.getProperty(\"apptype\");\n String AppType = config.getProperty(\"apptype\");\n String AppiumVersion = config.getProperty(\"appiumversion\");\n long EXPLICIT_WAIT_TIME = Integer.parseInt(config.getProperty(\"explicit.wait\"));\n long IMPLICIT_WAIT_TIME = Integer.parseInt(config.getProperty(\"implicit.wait\"));\n long DEFAULT_WAIT_TIME = Integer.parseInt(config.getProperty(\"default.wait\"));\n String APPLICATION_NAME = config.getProperty(\"key\");\n String APPIUM_PORT = config.getProperty(\"appium.server.port\");\n String APPIUM_SYSTEM_PORT = config.getProperty(\"appium.system.port\");\n int NEW_COMMAND_TIMEOUT = Integer.parseInt(config.getProperty(\"new.command.timeout\"));\n String DEVICE_READY_TIMEOUT = config.getProperty(\"device.ready.timeout\");\n String HubAddress = config.getProperty(\"HubAddress\");\n String DEVICE_CATEGORY = config.getProperty(\"Device.category\");\n String TabletSize = config.getProperty(\"Tablet.size\");\n String ExecutionEnvironment = config.getProperty(\"execution.environment\");\n //String User_Type = config.getProperty(\"usertype\");\n String User_Type = config.getProperty(\"usertype\");\n String Full_Reset = config.getProperty(\"full.reset\");\n String No_Reset = config.getProperty(\"no.reset\");\n // iOS specific configuration properties\n String IOS_AUTOMATION_NAME = config.getProperty(\"ios.automation.name\");\n String IOS_BROWSER_NAME = config.getProperty(\"ios.browser.name\");\n String IOS_PLATFORM_NAME = config.getProperty(\"ios.platform.name\");\n String IOS_PLATFORM_VERSION = config.getProperty(\"ios.platform.version\");\n String IOS_DEVICE_NAME = config.getProperty(\"ios.device.name\");\n String IOS_BUNDLE_ID = config.getProperty(\"ios.bundle.id\");\n String IOS_APPLICATION_PATH = getConfigFileLocation(config.getProperty(\"ios.application.apppath\"));\n String IOS_UDID = config.getProperty(\"ios.udid\");\n // Android specific configuration properties\n String ANDROID_AUTOMATION_NAME = config.getProperty(\"android.automation.name\");\n String ANDROID_APP_PKG = config.getProperty(\"android.app.pkg\");\n String ANDROID_APP_ACTIVITY = config.getProperty(\"android.application.activity\");\n String ANDROID_APPlICATION_PATH = getConfigFileLocation(config.getProperty(\"android.application.apppath\"));\n String ANDROID_DEVICE_NAME = config.getProperty(\"android.device.name\");\n String ANDROID_PLATFORM_VERSION = config.getProperty(\"android.platform.version\");\n // Windows specific configuration properties\n String WINDOWS_APPlICATION_PATH = getConfigFileLocation(config.getProperty(\"windows.application.apppath\"));\n String WINDOWS_DEVICE_NAME = config.getProperty(\"windows.device.name\");\n boolean SCREENSHOT_ON_PASS = Boolean.parseBoolean(config.getProperty(\"screenshotOnPass\"));\n }", "private static void initSettings(TransferITModel model) {\n if (settingsfile.exists()) {\n try {\n ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(settingsfile));\n Object[] readObjects = new Object[6];\n for (int x = 0; x < readObjects.length; x++) {\n readObjects[x] = objectInputStream.readUnshared();\n if (readObjects[x] == null) {\n return;\n }\n }\n model.putAll((Properties) readObjects[0]);\n\n model.setHostHistory((HashSet<String>) readObjects[1]);\n\n model.setUsernameHistory((HashMap<String, String>) readObjects[2]);\n\n model.setPasswordHistory((HashMap<String, String>) readObjects[3]);\n\n model.setUsers((HashMap<String, String>) readObjects[4]);\n\n model.setUserRights((HashMap<String, Boolean>) readObjects[5]);\n\n\n\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n model.addUser(\"anon\", \"anon\", false);\n }\n }", "public MechanismReadOptions() {\n initComponents();\n }", "public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.close();\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}", "public void loadStorageConfiguration() throws IOException {\n String loadedConfigurationFile;\n if (this.configFile != null) {\n loadedConfigurationFile = this.configFile;\n this.configuration = StorageConfiguration.load(new FileInputStream(new File(this.configFile)));\n } else {\n // We load configuration file either from app home folder or from the JAR\n Path path = Paths.get(appHome + \"/conf/storage-configuration.yml\");\n if (appHome != null && Files.exists(path)) {\n loadedConfigurationFile = path.toString();\n this.configuration = StorageConfiguration.load(new FileInputStream(path.toFile()));\n } else {\n loadedConfigurationFile = StorageConfiguration.class.getClassLoader().getResourceAsStream(\"storage-configuration.yml\")\n .toString();\n this.configuration = StorageConfiguration\n .load(StorageConfiguration.class.getClassLoader().getResourceAsStream(\"storage-configuration.yml\"));\n }\n }\n\n // logLevel parameter has preference in CLI over configuration file\n if (this.logLevel == null || this.logLevel.isEmpty()) {\n this.logLevel = \"info\";\n }\n configureDefaultLog(this.logLevel);\n\n // logFile parameter has preference in CLI over configuration file, we first set the logFile passed\n// if (this.logFile != null && !this.logFile.isEmpty()) {\n// this.configuration.setLogFile(logFile);\n// }\n\n // If user has set up a logFile we redirect logs to it\n// if (this.logFile != null && !this.logFile.isEmpty()) {\n// org.apache.log4j.Logger rootLogger = LogManager.getRootLogger();\n//\n// // If a log file is used then console log is removed\n// rootLogger.removeAppender(\"stderr\");\n//\n// // Creating a RollingFileAppender to output the log\n// RollingFileAppender rollingFileAppender = new RollingFileAppender(new PatternLayout(\"%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - \"\n// + \"%m%n\"), this.logFile, true);\n// rollingFileAppender.setThreshold(Level.toLevel(this.logLevel));\n// rootLogger.addAppender(rollingFileAppender);\n// }\n\n logger.debug(\"Loading configuration from '{}'\", loadedConfigurationFile);\n }", "private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }", "public void setConfig(ConfigurationManagement config) {\r\n\t\tthis.config = config;\r\n\t}", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public void setRead(boolean read)\n\t{\n\t\tthis.read = read;\n\t}", "private void loadWiperConfig(String mSubPath,boolean bQuiet)\n {\n FileReader mWiperConfigReader;\n\n // Environment.getRootDirectory() = /system\".\n final File mFileName = new File(Environment.getRootDirectory(), mSubPath);\n try\n {\n mWiperConfigReader = new FileReader(mFileName);\n }\n catch (FileNotFoundException e)\n {\n if (!bQuiet)\n {\n Log.e(TAG, \"wiperconfig file read/open error \" + mFileName);\n }\n bWiperConfigReadError = true;\n return;\n }\n\n try\n {\n XmlPullParser mParser = Xml.newPullParser();\n mParser.setInput(mWiperConfigReader);\n\n XmlUtils.beginDocument(mParser, \"wiperconfig\");\n\n while (true)\n {\n XmlUtils.nextElement(mParser);\n\n String szName = mParser.getName();\n if (!\"configparam\".equals(szName))\n {\n break;\n }\n\n szUsername = mParser.getAttributeValue(null, \"username\");\n szRealm = mParser.getAttributeValue(null, \"realm\");\n\n String szHighFreqPeriodMs = mParser.getAttributeValue(null, \"highFreqPeriodMs\");\n lHighFreqPeriodMs = Long.parseLong(szHighFreqPeriodMs);\n\n String szLowFreqPeriodMs = mParser.getAttributeValue(null, \"lowFreqPeriodMs\");\n lLowFreqPeriodMs = Long.parseLong(szLowFreqPeriodMs);\n\n szTilingPath = mParser.getAttributeValue(null, \"tilingPath\");\n\n String szMaxDataSizePerSession = mParser.getAttributeValue(null, \"maxDataSizePerSession\");\n lMaxDataSizePerSession = Long.parseLong(szMaxDataSizePerSession);\n\n String szMaxDataSizeTotal = mParser.getAttributeValue(null, \"maxDataSizeTotal\");\n lMaxDataSizeTotal = Long.parseLong(szMaxDataSizeTotal);\n\n String szNetworkPvdEnabled = mParser.getAttributeValue(null, \"networkPvdEnabled\");\n bNetworkPvdEnabled = Boolean.parseBoolean(szNetworkPvdEnabled);\n\n }\n }\n catch (XmlPullParserException e)\n {\n Log.e(TAG, \"WiperConfig parsing exception \", e);\n bWiperConfigReadError = true;\n }\n catch (IOException e)\n {\n Log.e(TAG, \"WiperConfig parsing exception\", e);\n bWiperConfigReadError = true;\n }\n\n if(Config.LOGV)\n {\n Log.v(TAG,\"WiperConfig uname:\"+szUsername+\", realm:\"+szRealm+\",hi:\"+lHighFreqPeriodMs+\",lo:\"+lLowFreqPeriodMs+\":tPath:\"+szTilingPath);\n }\n return;\n }", "public abstract IOpipeConfiguration config();", "public\n void setProperties(InputStream in)\n {\n if (in == null)\n return;\n\n try {\n load(in);\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }", "private void configureRobot() {\n // Populating robot configuration\n m_robotConfiguration.setMasterUri(ROS_MASTER_URI);\n m_robotConfiguration.setHostname(JAVA_ROS_HOSTNAME);\n m_robotConfiguration.setNodeName(NODE_NAME);\n }", "void configure();", "@Override\n public void readSettings(Object settings) {\n ((WizardDescriptor) settings).putProperty(\"WizardPanel_image\", ImageUtilities.loadImage(\"net/phyloviz/core/TypingImage.png\", true));\n sDBName = (String) ((WizardDescriptor) settings).getProperty(\"dbName\");\n\t sDBNameShort = (String) ((WizardDescriptor) settings).getProperty(\"dbNameShort\");\n ((PubMLSTVisualPanel2) getComponent()).setDatabase(sDBNameShort, sDBName);\n tf = new MLSTypingFactory();\n }", "private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "public abstract void loadDeviceSettings(DeviceSettings deviceSettings);", "public void loadConfig(){\r\n File config = new File(\"config.ini\");\r\n if(config.exists()){\r\n try {\r\n Scanner confRead = new Scanner(config);\r\n \r\n while(confRead.hasNextLine()){\r\n String line = confRead.nextLine();\r\n if(line.indexOf('=')>0){\r\n String setting,value;\r\n setting = line.substring(0,line.indexOf('='));\r\n value = line.substring(line.indexOf('=')+1,line.length());\r\n \r\n //Perform the actual parameter check here\r\n if(setting.equals(\"romfile\")){\r\n boolean result;\r\n result = hc11_Helpers.loadBinary(new File(value.substring(value.indexOf(',')+1,value.length())),board,\r\n Integer.parseInt(value.substring(0,value.indexOf(',')),16));\r\n if(result)\r\n System.out.println(\"Loaded a rom file.\");\r\n else\r\n System.out.println(\"Error loading rom file.\");\r\n }\r\n }\r\n }\r\n confRead.close();\r\n } catch (FileNotFoundException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n public void setConfiguration(Environment environment) {\n this.xmlConfigFile = environment.getProperty(\"challenges.xmlconfig\");\n this.xmlConfigSchema = environment.getProperty(\"challenges.xmlschema\");\n }" ]
[ "0.6803825", "0.6602744", "0.6467366", "0.64196783", "0.6407438", "0.6254745", "0.6192563", "0.6095234", "0.6089839", "0.60617185", "0.6056783", "0.6047338", "0.6026689", "0.60161614", "0.59997046", "0.59925216", "0.59845793", "0.5976927", "0.5970576", "0.59358263", "0.58791494", "0.58619857", "0.5861733", "0.5859688", "0.58419645", "0.58032805", "0.5785866", "0.57700634", "0.5768235", "0.5733392", "0.5731532", "0.57294196", "0.5705591", "0.5683851", "0.5678586", "0.56733716", "0.56729233", "0.56624377", "0.56562805", "0.565518", "0.565462", "0.56482667", "0.5636359", "0.5635183", "0.56257236", "0.56141317", "0.56050605", "0.5600815", "0.55984163", "0.5585375", "0.5578818", "0.5575148", "0.5570239", "0.5564389", "0.5559595", "0.55437124", "0.5543464", "0.5536122", "0.5535116", "0.5530478", "0.55255985", "0.552085", "0.5518005", "0.55178785", "0.5506468", "0.54984546", "0.54972935", "0.5490354", "0.54887813", "0.548399", "0.5471059", "0.5470015", "0.5468434", "0.54627025", "0.54594535", "0.5455016", "0.5454089", "0.54524785", "0.5446", "0.54432625", "0.54423654", "0.5438566", "0.5436692", "0.54352516", "0.5430781", "0.5427375", "0.5424844", "0.54219323", "0.5421627", "0.5414967", "0.5408346", "0.53971183", "0.53948903", "0.5390028", "0.5386972", "0.53846514", "0.53829044", "0.53809667", "0.5378397", "0.53661317", "0.53484905" ]
0.0
-1
set store configuration settings
public void setStoreLocation(String location, Job job) throws IOException { conf = HadoopCompat.getConfiguration(job); // don't combine mappers to a single mapper per node conf.setBoolean("pig.noSplitCombination", true); setLocationFromUri(location); if (username != null && password != null) ConfigHelper.setOutputKeyspaceUserNameAndPassword(conf, username, password); if (splitSize > 0) ConfigHelper.setInputSplitSize(conf, splitSize); if (partitionerClass!= null) ConfigHelper.setOutputPartitioner(conf, partitionerClass); if (rpcPort != null) { ConfigHelper.setOutputRpcPort(conf, rpcPort); ConfigHelper.setInputRpcPort(conf, rpcPort); } if (initHostAddress != null) { ConfigHelper.setOutputInitialAddress(conf, initHostAddress); ConfigHelper.setInputInitialAddress(conf, initHostAddress); } ConfigHelper.setOutputColumnFamily(conf, keyspace, column_family); setConnectionInformation(); if (ConfigHelper.getOutputRpcPort(conf) == 0) throw new IOException("PIG_OUTPUT_RPC_PORT or PIG_RPC_PORT environment variable not set"); if (ConfigHelper.getOutputInitialAddress(conf) == null) throw new IOException("PIG_OUTPUT_INITIAL_ADDRESS or PIG_INITIAL_ADDRESS environment variable not set"); if (ConfigHelper.getOutputPartitioner(conf) == null) throw new IOException("PIG_OUTPUT_PARTITIONER or PIG_PARTITIONER environment variable not set"); // we have to do this again here for the check in writeColumnsFromTuple if (System.getenv(PIG_USE_SECONDARY) != null) usePartitionFilter = Boolean.parseBoolean(System.getenv(PIG_USE_SECONDARY)); initSchema(storeSignature); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setStore(String store) {\n this.store = store;\n }", "public void setConfiguration(Properties props);", "void setConfiguration();", "private synchronized void storeAppSettings() {\n\t \n\t\n \tif(_appSettings != null){\t\n \t\tAppLogger.debug2(\"AppFrame.storeAppSettings saving.\");\n\n \t\ttry {\t \n \t\t\tFileOutputStream oFile = new FileOutputStream(_configFile);\n\t\t\tOutputStream setupOutput = new DataOutputStream(oFile);\t\t \t\t\t\t\n\t\t\t_appSettings.store(setupOutput, \"\");\t\t\n \t\t}catch(Exception oEx){\n \t\tAppLogger.error(oEx);\n \t\t}\t\t \t\t\t\t\t\t\n\t}\t\t\t\t \t\n }", "void configure (Settings settings);", "void store() {\n UserPreferences.setLogFileCount(Integer.parseInt(logFileCount.getText()));\n if (!agencyLogoPathField.getText().isEmpty()) {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists()) {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, agencyLogoPathField.getText());\n }\n } else {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, \"\");\n }\n UserPreferences.setMaxSolrVMSize((int)solrMaxHeapSpinner.getValue());\n if (memField.isEnabled()) { //if the field could of been changed we need to try and save it\n try {\n writeEtcConfFile();\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unable to save config file to \" + PlatformUtil.getUserDirectory() + \"\\\\\" + ETC_FOLDER_NAME, ex);\n }\n }\n }", "private void saveProperties() {\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.driver\", driver);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.serverURL\", serverURL);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.username\", username);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.password\", password);\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.minConnections\",\n Integer.toString(minConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.maxConnections\",\n Integer.toString(maxConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.connectionTimeout\",\n Double.toString(connectionTimeout));\n }", "private static void persistSettings() {\n\t\ttry {\n\t\t\tBufferedWriter userConf = new BufferedWriter(new FileWriter(\n\t\t\t\t\tconf.getAbsolutePath()));\n\t\t\tproperties.store(userConf, null);\n\t\t\t// flush and close streams\n\t\t\tuserConf.flush();\n\t\t\tuserConf.close();\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"Couldn't save config file.\");\n\t\t}\n\t}", "UserSettings store(String key, String value);", "public void initConfigStore(GithubTickets plugin) {\n configStore = plugin.getConfig();\n\n configStore.setDefaults(getDefaults());\n configStore.options().copyDefaults(true);\n\n plugin.saveConfig();\n }", "public void setTemplateStore(TemplateStore store) {\n \t\tfTemplateStore= store;\n \t}", "public static void setConfValues(Configuration conf) {\n MetastoreConf.setVar(conf, ConfVars.HIVE_TXN_MANAGER, TXN_MANAGER);\n MetastoreConf.setBoolVar(conf, ConfVars.HIVE_SUPPORT_CONCURRENCY, true);\n }", "public StoreConfig(final Properties pProps) {\n\t\tthis.overloadConfigFromEnviroment(pProps);\n\t\tinitConfig(this);\n\t}", "public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "public void setConfig(ConfigurationManagement config) {\r\n\t\tthis.config = config;\r\n\t}", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "@Autowired\r\n\tpublic void setDataStore(TrPortfolioContestDAO dataStore) {\r\n\t\tthis.dataStore = dataStore;\r\n\t}", "public static void setConfiguration(String key, String value) {\r\n \r\n PersistenceManager pm = PMF.getPersistenceManager();\r\n Configuration config = new Configuration(key, value);\r\n \r\n Query query = pm.newQuery(Configuration.class, \"key == \" + key);\r\n query.setUnique(true);\r\n Configuration configuration = (Configuration) query.execute(query);\r\n \r\n if (configuration == null) {\r\n pm.makePersistent(config);\r\n } else {\r\n configuration.setValue(value);\r\n pm.makePersistent(configuration);\r\n }\r\n pm.close();\r\n System.out.println(\"Datastore: Configuration hinzugefügt mit Key, Value: \" + key + \", \" + value);\r\n }", "public void setStoreId(String storeId) {\n\t doSetStoreId(storeId);\n\t return;\n\t }", "private void saveSettings() {\n \tLog.i(\"T4Y-Settings\", \"Save mobile settings\");\n \t\n \tmobileSettings.setAllowAutoSynchronization(autoSynchronizationCheckBox.isChecked());\n mobileSettings.setAllowAutoScan(autoScanCheckBox.isChecked());\n mobileSettings.setAllowAutoSMSNotification(autoSMSNotificationCheckBox.isChecked());\n \n \tmainApplication.setMobileSettings(mobileSettings);\n }", "public void setConfigurations() {\n configurations = jsonManager.getConfigurationsFromJson();\n }", "@Override public void saveSettings(Map pProps, Map pSettings) {\n pProps.put(\"$class\", \"com.castorama.searchadmin.adapter.content.impl.CastoramaDocumentAdapter\");\n pProps.put(CDS_PATH, pSettings.get(getSourceTypeInternalName() + PATH));\n pProps.put(PORT, pSettings.get(getSourceTypeInternalName() + PORT));\n pProps.put(HOST_MACHINE, pSettings.get(getSourceTypeInternalName() + HOST_MACHINE));\n }", "private void initializeStore()\r\n {\r\n log.debug(\"initializing MongoStore\");\r\n try (InputStream is = getClass().getClassLoader().getResourceAsStream(\"visualharvester.properties\"))\r\n {\r\n final Properties properties = new Properties();\r\n properties.load(is);\r\n\r\n host = properties.get(\"mongo.host\").toString();\r\n final String portString = properties.get(\"mongo.port\").toString();\r\n port = Integer.valueOf(portString).intValue();\r\n database = properties.get(\"mongo.database\").toString();\r\n collection = properties.get(\"mongo.collection\").toString();\r\n\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"Could not open properties file, using defaults\", e);\r\n host = \"localhost\";\r\n port = 27017;\r\n database = \"visualdb\";\r\n collection = \"visualcollection\";\r\n }\r\n\r\n store = new MongoStorage(host, port, database, collection);\r\n\r\n }", "public static void configureLocal() {\r\n configure(getProperties(true));\r\n }", "private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}", "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }", "public void doSetStoreId(String storeId) {\n\t this.storeId = storeId;\n\t return;\n\t }", "boolean setSettings(Settings sm);", "private void saveConfiguration() {\n }", "public SettingsPreferenceStore(Settings base){\n\t\tthis.base = base;\n\t}", "UserSettings store(HawkularUser user, String key, String value);", "public void transferStateToConfig() {\r\n \t\t\r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.SEAM_DEFAULT_RUNTIME_NAME,\r\n \t\t\t\t\tjBossSeamHomeEditor.getValueAsString());\r\n \r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.SEAM_DEFAULT_CONNECTION_PROFILE,\r\n \t\t\t\t\tconnProfileSelEditor.getValueAsString());\r\n \t\t\t\r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.JBOSS_AS_DEFAULT_DEPLOY_AS,\r\n \t\t\t\t\tthis.jBossAsDeployAsEditor.getValueAsString());\r\n \t\t\t\r\n \t\t\tSeamCorePlugin.getDefault().getPluginPreferences().setValue(\r\n \t\t\t\t\tSeamProjectPreferences.HIBERNATE_DEFAULT_DB_TYPE,\r\n \t\t\t\t\tthis.jBossHibernateDbTypeEditor.getValueAsString());\r\n \t\t\t\r\n \t}", "public void setSettings(final String settings);", "public void setSettings(Settings settings)\r\n\t{\r\n\t\tthis.settings = settings;\r\n\t}", "public void setConfig(final Properties config) {\n \n // Update current configuration.\n try {\n \n final DirectoryManagerConfiguration newConfiguration = new DirectoryManagerConfiguration(config);\n configuration = newConfiguration;\n \n } catch (Exception e) {\n \n // Something happened while updating the configuration; can we\n // recover?\n if (configuration == null) {\n \n // Critical error; we don't have a working configuration.\n throw new DirectoryManagerConfigurationException(\"Unable to set initial configuration\", e);\n \n } else {\n \n // Non-critical error; we still have a working configuration.\n log.logWarn(\"Unable to update existing configuration\", e);\n \n }\n \n }\n \n // Update the index and (re-)start the index update timer.\n IndexUpdater indexUpdater = new IndexUpdater(this, configuration.getIndexFilename());\n if (indexTimer != null) {\n \n // Stop the currently running index update timer.\n indexTimer.cancel();\n \n } else {\n \n // The first time we set the configuration we manually force an\n // index update to ensure we have a working index.\n indexTimer = new Timer(true); // Daemon.\n updateIndex(indexUpdater.readIndex());\n \n }\n indexTimer.scheduleAtFixedRate(indexUpdater, configuration.getIndexUpdateFrequency(), configuration.getIndexUpdateFrequency());\n \n // Set the backend factory class.\n // TODO: Gracefully handle switch between backend factories? Unlikely...\n Constructor constructor = null;\n try {\n \n constructor = configuration.getBackendFactoryClass().getConstructor(null);\n backendFactory = (DirectoryManagerBackendFactory) constructor.newInstance(null);\n \n } catch (NoSuchMethodException e) {\n log.logCritical(\"Cannot find backend factory constructor\", e);\n throw new DirectoryManagerConfigurationException(\"Cannot find backend factory constructor\", e);\n } catch (Exception e) {\n log.logCritical(\"Unable to instantiate backend factory object\", e);\n throw new DirectoryManagerConfigurationException(\"Unable to instantiate backend factory object\", e);\n }\n \n }", "public void saveProperties()\n {\n _appContext.Configuration.save();\n }", "public void setDataStoreType(DataStoreType dataStoreType) {\n this.dataStoreType = dataStoreType;\n }", "@Inject\n\tpublic StoreManagement(Store store) {\n\t\tsuper(store.shardId(), store.indexSettings());\n\t\tthis.store = store;\n\t}", "public abstract void setConfig(String config) throws java.rmi.RemoteException;", "@Override\n public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "@Override\n\tpublic void saveSettings() {\n\n\t}", "public abstract void initialSettings();", "public SettingsPreferenceStore(Settings base, String pluginId){\n\t\tthis.base = base;\n\t\tdefaultContext = new DefaultScope();\n\t\tdefaultContext.getNode(pluginId);\n\t}", "public void setAmazonConfig(final BaseStore item, final AmazonConfig value)\n\t{\n\t\tsetAmazonConfig( getSession().getSessionContext(), item, value );\n\t}", "public void setStoreId(Integer storeId) {\n this.storeId = storeId;\n }", "protected StoreParams() {\n this.setBatchSize(BATCH_SIZE_DEFAULT);\n this.setNumSyncBatches(NUM_SYNC_BATCHES_DEFAULT);\n this.setSegmentFileSizeMB(SEGMENT_FILE_SIZE_MB_DEFAULT);\n this.setSegmentCompactFactor(SEGMENT_COMPACT_FACTOR_DEFAULT);\n this.setHashLoadFactor(HASH_LOAD_FACTOR_DEFAULT);\n this.setIndexesCached(INDEXES_CACHED_DEFAULT);\n }", "protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }", "private void setSessionStoreConfig(final FilterConfig filterConfig, final String configName, final String configDefault) {\n final String configValue = filterConfig.getInitParameter(configName);\n sessionStoreConfigs.put(configName, configValue == null ? configDefault : configValue);\n }", "public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "@Override\n public void setConf(Configuration conf) {\n }", "public void setConfig(C config)\n {\n this.config = config;\n fireConfigChanged();\n }", "private void setDataBase(Settings set) {\n URL_BASE_POSTGRES = set.getValue(\"jdbc.urlBasePostgres\");\n URL_BASE_VACANCY = set.getValue(\"jdbc.urlBaseVacancy\");\n USER_NAME = set.getValue(\"jdbc.userName\");\n PASSWORD = set.getValue(\"jdbc.password\");\n }", "public void\t\tsetConfiguration(Object obj);", "public SettingsSaver() {\n set[0] = advModeUnlocked;\n set[1] = LIM_NOTESPERLINE;\n set[2] = LIM_96_MEASURES;\n set[3] = LIM_VOLUME_LINE;\n set[4] = LIM_LOWA;\n set[5] = LIM_HIGHD;\n set[6] = LOW_A_ON;\n set[7] = NEG_TEMPO_FUN;\n set[8] = LIM_TEMPO_GAPS;\n set[9] = RESIZE_WIN;\n set[10] = ADV_MODE;\n }", "public void setConfig(Config config) {\n this.config = config;\n }", "@Override\n\tpublic void save(DataConfig storeConfig) throws RemoteException {\n\t\t\n\t\tsuper.save(storeConfig);\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(storeConfig);\n\t\tsaveBnetMap(adapter, bnetMap, storeConfig.getStoreUri(), getName());\n\t\tadapter.close();\n\t}", "private void storeProperties() {\n storeValue(Variable.MODE);\n storeValue(Variable.ITEM);\n storeValue(Variable.DEST_PATH);\n storeValue(Variable.MAXTRACKS_ENABLED);\n storeValue(Variable.MAXTRACKS);\n storeValue(Variable.MAXSIZE_ENABLED);\n storeValue(Variable.MAXSIZE);\n storeValue(Variable.MAXLENGTH_ENABLED);\n storeValue(Variable.MAXLENGTH);\n storeValue(Variable.ONE_MEDIA_ENABLED);\n storeValue(Variable.ONE_MEDIA);\n storeValue(Variable.CONVERT_MEDIA);\n storeValue(Variable.CONVERT_COMMAND);\n storeValue(Variable.NORMALIZE_FILENAME);\n storeValue(Variable.RATING_LEVEL);\n }", "public void setEventStore(EventStore eventStore) {\n this.eventStore = eventStore;\n }", "public StoreReadSettings() {\n }", "public static void set(ServerLoggingConfiguration config) {\r\n LogImplServer.config = config;\r\n }", "public void setStoreId(Long storeId) {\r\n this.storeId = storeId;\r\n }", "void setConversationStore(ConversationStore conversationStore) {\n this.conversationStore = conversationStore;\n }", "void setConversationStore(ConversationStore conversationStore) {\n this.conversationStore = conversationStore;\n }", "void setSettings(ControlsSettings settings);", "private static HashMap<String, String> settings() {\n HashMap<String, String> settings = new HashMap<String, String>();\n settings.put(\"db.default.url\", \"jdbc:mysql://api.template-java.com:3306/play_test\");\n settings.put(\"db.default.username\", \"root\");\n settings.put(\"db.default.password\", \"\");\n settings.put(\"db.default.jndiName\", \"DefaultDS\");\n settings.put(\"jpa.default\", \"mySqlPersistenceUnit\");\n return(settings);\n }", "public Gateway setStoreId(java.lang.String storeId) {\n return genClient.setOther(storeId, CacheKey.storeId);\n }", "public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}", "private void config() {\n\t}", "public void saveDbConfig () {\n\t\ttry {\n\t\t\tthis.databaseConfig.store(new FileWriter(new File(this.databaseAddress)), \"\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR] Could not save initialization to database properties file: \" + databaseAddress);\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t}", "public void setConfig(WeberknechtConf conf, AreaPathResolver areaPathResolver);", "public void storeDefaultMassOptions() {\n\t\ttheMassOptions.store(theConfiguration);\n\t}", "public void setConfig(final ConfigCommon val) {\n config = val;\n\n /* Set defaults */\n setMinIncrement(config.getMinIncrement());\n assignShowYearData(config.getShowYearData());\n }", "@Override\n\tpublic void initSettings() {\n\n\t}", "private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}", "public void setStoreId(Long storeId) {\n this.storeId = storeId;\n }", "private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "public void storeCompositionOptions() {\n\t\ttheCompositionOptions.store(theConfiguration);\n\t}", "public void setConfig(String config) {\n this.config = config;\n }", "public void setConfig(ConfigurationHolder c) {\n this.cfg = c;\n }", "private void loadSettings() {\r\n \tString fname = baseDir + \"/\" + configFile;\r\n\t\tString line = null;\r\n\r\n\t\t// Load the settings hash with defaults\r\n\t\tsettings.put(\"db_url\", \"\");\r\n\t\tsettings.put(\"db_user\", \"\");\r\n\t\tsettings.put(\"db_pass\", \"\");\r\n\t\tsettings.put(\"db_min\", \"2\");\r\n\t\tsettings.put(\"db_max\", \"10\");\r\n\t\tsettings.put(\"db_query\", \"UPDATE members SET is_activated=1 WHERE memberName=? AND is_activated=3\");\r\n\t\t// Read the current file (if it exists)\r\n\t\ttry {\r\n \t\tBufferedReader input = new BufferedReader(new FileReader(fname));\r\n \t\twhile (( line = input.readLine()) != null) {\r\n \t\t\tline = line.trim();\r\n \t\t\tif (!line.startsWith(\"#\") && line.contains(\"=\")) {\r\n \t\t\t\tString[] pair = line.split(\"=\", 2);\r\n \t\t\t\tsettings.put(pair[0], pair[1]);\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tcatch (FileNotFoundException e) {\r\n\t\t\tlogger.warning( \"[SMF] Error reading \" + e.getLocalizedMessage() + \", using defaults\" );\r\n \t}\r\n \tcatch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n }", "@Override\n public void setConfigParams(Map<String, Object> params) {\n\n }", "void configure(Properties properties);", "public void intiSettings()throws Exception{\r\n\r\n\t\tinputStream = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\config.properties\");\r\n\t\tconfig.load(inputStream);\r\n\t\t\r\n\t\tprop.put(\"bootstrap.servers\", config.getProperty(\"bootstrap.servers\"));\r\n\t\tprop.put(\"key.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\t\tprop.put(\"value.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\r\n\t\ttopicName = config.getProperty(\"TopicName\");\r\n\t\ttopicName = createTopic(topicName);\r\n\t\t\r\n\t\tmessageList = Arrays.asList(config.getProperty(\"messages\").split(\"\\\\|\"));\r\n\t}", "private void updateConfig(){\n try {\n BeanUtils.copyProperties(config_,newConfig_);//copy the properties of newConfig_ into config_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n }\n }", "void storeApplicationConfig(AppConfig appConfig);", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "public void storeProperties() throws LogFile.LockException, IOException {\n // If the file has not been set, don't save.\n if (dataFile != null) {\n synchronized (dataFile) {\n if (!dataFile.isDirectory()) {\n if (dataFile.getName().endsWith(EtomoDirector.USER_CONFIG_FILE_EXT)) {\n dataFile.backupOnce();\n }\n else {\n dataFile.doubleBackupOnce();\n }\n }\n if (!dataFile.exists()) {\n dataFile.create();\n }\n LogFile.OutputStreamId outputStreamId = dataFile.openOutputStream();\n dataFile.store(properties, outputStreamId);\n dataFile.closeOutputStream(outputStreamId);\n }\n }\n }", "@Override\n public void afterPropertiesSet() {\n\n super.afterPropertiesSet();\n\n Assert.notNull(getDataSources(), \"Data sources not set\");\n\n /**\n * SettingServiceProvider setup.\n */\n setSettingService((SettingServiceProvider) getServiceFactory().makeService(SettingServiceProvider.class));\n Assert.notNull(getSettingService(), \"Settings Service Provider could be located.\");\n\n /**\n * IdGenerator setup.\n */\n setIdGenerator((IdGenerator) getServiceFactory().makeService(IdGenerator.class));\n Assert.notNull(getIdGenerator(), \"ID Generator could be located.\");\n\n /**\n * TransactionDAO setup.\n */\n setTransactionDao((JdbcTransactionDao) getServiceFactory().makeService(JdbcTransactionDao.class));\n Assert.notNull(getTransactionDao(), \"TransactionDAO could not be located.\");\n\n /**\n * PartnerDAO setup.\n */\n setPartnerDao((JdbcPartnerDao) getServiceFactory().makeService(JdbcPartnerDao.class));\n Assert.notNull(getTransactionDao(), \"PartnerDao could not be located.\");\n\n /**\n * CompressionService setup.\n */\n setCompressionService((CompressionService) getServiceFactory().makeService(CompressionService.class));\n Assert.notNull(getTransactionDao(), \"CompressionService could not be located.\");\n\n /**\n * Data Access Objects setup\n */\n HibernatePersistenceProvider provider = new HibernatePersistenceProvider();\n EntityManagerFactory emf = provider.createEntityManagerFactory(\n getDataSources().get(ARG_DS_SOURCE),\n new PluginPersistenceConfig()\n .classLoader(OrganizationDataType.class.getClassLoader())\n .debugSql(Boolean.FALSE)\n .rootEntityPackage(\"com.windsor.node.plugin.wqx.domain\")\n .setBatchFetchSize(1000));\n\n setEntityManager(emf.createEntityManager());\n\n /**\n * SubmissionHistoryDao setup\n */\n setSubmissionHistoryDao(new SubmissionHistoryDaoJpaImpl(getEntityManager()));\n\n /**\n * WqxDao setup\n */\n setWqxDao(new WqxDaoJpaImpl(getEntityManager()));\n Assert.notNull(getWqxDao(), \"WqxDao could not be located.\");\n }", "private void saveOtherSetting(GameEngine engine, CustomProperties prop) {\r\n\t\tsuper.saveOtherSetting(engine, prop, \"spf\");\r\n\t\tint playerID = engine.getPlayerID();\r\n\t\tprop.setProperty(\"avalanchevsspf.ojamaCountdown.p\" + playerID, ojamaCountdown[playerID]);\r\n\t\tprop.setProperty(\"avalanchevsspf.dropSet.p\" + playerID, dropSet[playerID]);\r\n\t\tprop.setProperty(\"avalanchevsspf.dropMap.p\" + playerID, dropMap[playerID]);\r\n\t}", "@Override\r\n\tpublic void saveAll(Store store) {\n\t\ttry {\r\n\t\t\tint size = store.getStoreSize();\r\n\t\t\tloader.setNumOfItems(size);\r\n\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\tloader.setItem(i, store.getStoreItem(i));\r\n\t\t\t}\r\n\t\t\tloader.saveProperty();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setEngineConfiguration(final EngineConfiguration conf) {\n this.mssService.setEngineConfiguration(conf);\n }", "public void setPanelConfiguration(){\n\t\tthis.panelConfiguration.setStructurePanel();\n\t\tthis.panelConfiguration.setPanelConfiguration();\n\t}", "private void setProperties( JobConf conf ) throws IOException {\n \t\tConfig index_conf = ConfigFactory.load();\n\t\tconf.set( CONFIG_PROPERTIES, index_conf.toString());\n \n \t\t// Also set mapred speculative execution off:\n \t\tconf.set( \"mapred.reduce.tasks.speculative.execution\", \"false\" );\n \n \t\t// Reducer count dependent on concurrent HTTP connections to Solr server.\n \t\ttry {\n \t\t\tnumReducers = index_conf.getInt( \"warc.hadoop.num_reducers\" );\n \t\t} catch( NumberFormatException n ) {\n \t\t\tnumReducers = 10;\n \t\t}\n \t}", "private void setConfiguration() throws IOException{\n\t\tString confPath = \"mapreduce.conf\";\n\t\tFileInputStream fis = new FileInputStream(confPath);\n\t\tthis.load(fis);\n\t\tfis.close();\n\t}", "public void saveUserSettings() {\n\t}", "public void setKeyStore(String keyStoreLocation) {\n if (!complete) {\n this.keyStoreLocation = keyStoreLocation;\n } else {\n log.warn(\"Connection Descriptor setter used outside of factory.\");\n }\n }", "public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}", "Config set(String path, Object value);" ]
[ "0.66335225", "0.65655273", "0.6329356", "0.6323459", "0.6169671", "0.6126457", "0.6110011", "0.6075936", "0.60237604", "0.5991422", "0.59848017", "0.5948313", "0.59209114", "0.5918126", "0.5901383", "0.5895685", "0.58677435", "0.58677435", "0.58603495", "0.5823013", "0.5822549", "0.5793282", "0.5789529", "0.57848096", "0.5776079", "0.5773799", "0.5734982", "0.5733186", "0.5724028", "0.5722328", "0.56891644", "0.56861705", "0.5682475", "0.56604505", "0.56546247", "0.5653208", "0.56402564", "0.5627818", "0.56158876", "0.55859846", "0.5560945", "0.5553815", "0.5553254", "0.5548275", "0.5528329", "0.5526986", "0.55260473", "0.55245715", "0.55228555", "0.5522611", "0.5498978", "0.5497404", "0.5494067", "0.5492918", "0.54784924", "0.5469487", "0.54535294", "0.5452195", "0.5442274", "0.54311824", "0.5429445", "0.54208183", "0.54175055", "0.54105735", "0.5406237", "0.5406237", "0.54017323", "0.5401001", "0.5399849", "0.5392866", "0.5384189", "0.5381964", "0.53761846", "0.5359085", "0.5358686", "0.53456753", "0.53410876", "0.53405374", "0.53312105", "0.5330287", "0.5329448", "0.5329372", "0.5329182", "0.53225154", "0.53148234", "0.53127587", "0.53102094", "0.5305833", "0.5301801", "0.5286061", "0.5283099", "0.52799875", "0.5272206", "0.5268463", "0.52677566", "0.52615136", "0.52599555", "0.5258108", "0.5257354", "0.5253662", "0.52495706" ]
0.0
-1
Methods to get the column family schema from Cassandra
protected void initSchema(String signature) throws IOException { Properties properties = UDFContext.getUDFContext().getUDFProperties(CassandraStorage.class); // Only get the schema if we haven't already gotten it if (!properties.containsKey(signature)) { try { Cassandra.Client client = ConfigHelper.getClientFromInputAddressList(conf); client.set_keyspace(keyspace); if (username != null && password != null) { Map<String, String> credentials = new HashMap<String, String>(2); credentials.put(PasswordAuthenticator.USERNAME_KEY, username); credentials.put(PasswordAuthenticator.PASSWORD_KEY, password); try { client.login(new AuthenticationRequest(credentials)); } catch (AuthenticationException e) { logger.error("Authentication exception: invalid username and/or password"); throw new IOException(e); } } // compose the CfDef for the columfamily CfDef cfDef = getCfDef(client); if (cfDef != null) { StringBuilder sb = new StringBuilder(); sb.append(cfdefToString(cfDef)); properties.setProperty(signature, sb.toString()); } else throw new IOException(String.format("Table '%s' not found in keyspace '%s'", column_family, keyspace)); } catch (Exception e) { throw new IOException(e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Column> getSchema();", "public Schema getSchema();", "protected CfDef getCfDef(Cassandra.Client client)\n throws org.apache.cassandra.thrift.InvalidRequestException,\n UnavailableException,\n TimedOutException,\n SchemaDisagreementException,\n TException,\n NotFoundException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException,\n IOException\n {\n // get CF meta data\n String query = String.format(\"SELECT type, comparator, subcomparator, default_validator, key_validator \" +\n \"FROM %s.%s \" +\n \"WHERE keyspace_name = '%s' AND columnfamily_name = '%s'\",\n SystemKeyspace.NAME,\n LegacySchemaTables.COLUMNFAMILIES,\n keyspace,\n column_family);\n\n CqlResult result = client.execute_cql3_query(ByteBufferUtil.bytes(query), Compression.NONE, ConsistencyLevel.ONE);\n\n if (result == null || result.rows == null || result.rows.isEmpty())\n return null;\n\n Iterator<CqlRow> iteraRow = result.rows.iterator();\n CfDef cfDef = new CfDef();\n cfDef.keyspace = keyspace;\n cfDef.name = column_family;\n if (iteraRow.hasNext())\n {\n CqlRow cqlRow = iteraRow.next();\n\n cfDef.column_type = ByteBufferUtil.string(cqlRow.columns.get(0).value);\n cfDef.comparator_type = ByteBufferUtil.string(cqlRow.columns.get(1).value);\n ByteBuffer subComparator = cqlRow.columns.get(2).value;\n if (subComparator != null)\n cfDef.subcomparator_type = ByteBufferUtil.string(subComparator);\n cfDef.default_validation_class = ByteBufferUtil.string(cqlRow.columns.get(3).value);\n cfDef.key_validation_class = ByteBufferUtil.string(cqlRow.columns.get(4).value);\n }\n cfDef.column_metadata = getColumnMetadata(client);\n return cfDef;\n }", "String getCassandraName();", "S getSchema();", "public final void mK_COLUMNFAMILY() throws RecognitionException {\n try {\n int _type = K_COLUMNFAMILY;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:15: ( ( C O L U M N F A M I L Y | T A B L E ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:16: ( C O L U M N F A M I L Y | T A B L E )\n {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:16: ( C O L U M N F A M I L Y | T A B L E )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0=='C'||LA3_0=='c') ) {\n alt3=1;\n }\n else if ( (LA3_0=='T'||LA3_0=='t') ) {\n alt3=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:18: C O L U M N F A M I L Y\n {\n mC(); \n mO(); \n mL(); \n mU(); \n mM(); \n mN(); \n mF(); \n mA(); \n mM(); \n mI(); \n mL(); \n mY(); \n\n }\n break;\n case 2 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:513:20: T A B L E\n {\n mT(); \n mA(); \n mB(); \n mL(); \n mE(); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public abstract SchemaClass getSchemaClass();", "protected List<ColumnDef> getColumnMeta(Cassandra.Client client, boolean cassandraStorage, boolean includeCompactValueColumn)\n throws org.apache.cassandra.thrift.InvalidRequestException,\n UnavailableException,\n TimedOutException,\n SchemaDisagreementException,\n TException,\n CharacterCodingException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException,\n NotFoundException\n {\n String query = String.format(\"SELECT column_name, validator, index_type, type \" +\n \"FROM %s.%s \" +\n \"WHERE keyspace_name = '%s' AND columnfamily_name = '%s'\",\n SystemKeyspace.NAME,\n LegacySchemaTables.COLUMNS,\n keyspace,\n column_family);\n\n CqlResult result = client.execute_cql3_query(ByteBufferUtil.bytes(query), Compression.NONE, ConsistencyLevel.ONE);\n\n List<CqlRow> rows = result.rows;\n List<ColumnDef> columnDefs = new ArrayList<ColumnDef>();\n if (rows == null || rows.isEmpty())\n {\n // if CassandraStorage, just return the empty list\n if (cassandraStorage)\n return columnDefs;\n\n // otherwise for CqlNativeStorage, check metadata for classic thrift tables\n CFMetaData cfm = getCFMetaData(keyspace, column_family, client);\n for (ColumnDefinition def : cfm.regularAndStaticColumns())\n {\n ColumnDef cDef = new ColumnDef();\n String columnName = def.name.toString();\n String type = def.type.toString();\n logger.trace(\"name: {}, type: {} \", columnName, type);\n cDef.name = ByteBufferUtil.bytes(columnName);\n cDef.validation_class = type;\n columnDefs.add(cDef);\n }\n // we may not need to include the value column for compact tables as we\n // could have already processed it as schema_columnfamilies.value_alias\n if (columnDefs.size() == 0 && includeCompactValueColumn && cfm.compactValueColumn() != null)\n {\n ColumnDefinition def = cfm.compactValueColumn();\n if (\"value\".equals(def.name.toString()))\n {\n ColumnDef cDef = new ColumnDef();\n cDef.name = def.name.bytes;\n cDef.validation_class = def.type.toString();\n columnDefs.add(cDef);\n }\n }\n return columnDefs;\n }\n\n Iterator<CqlRow> iterator = rows.iterator();\n while (iterator.hasNext())\n {\n CqlRow row = iterator.next();\n ColumnDef cDef = new ColumnDef();\n String type = ByteBufferUtil.string(row.getColumns().get(3).value);\n if (!type.equals(\"regular\"))\n continue;\n cDef.setName(ByteBufferUtil.clone(row.getColumns().get(0).value));\n cDef.validation_class = ByteBufferUtil.string(row.getColumns().get(1).value);\n ByteBuffer indexType = row.getColumns().get(2).value;\n if (indexType != null)\n cDef.index_type = getIndexType(ByteBufferUtil.string(indexType));\n columnDefs.add(cDef);\n }\n return columnDefs;\n }", "public SchemaInfo getSchema () throws Exception;", "public ColumnFamilyStats getColumnFamilyStats(\r\n String keyspace, String cf) throws CassandraServerManagementException {\r\n CassandraManagementUtils.validateKeyspace(keyspace);\r\n CassandraManagementUtils.validateCF(cf);\r\n\r\n String domainQualifiedKSName = this.getDomainQualifiedKSName(keyspace);\r\n ColumnFamilyStoreMBean cfsMBean =\r\n CassandraAdminDataHolder.getInstance().getCassandraMBeanLocator().\r\n locateColumnFamilyStoreMBean(domainQualifiedKSName, cf);\r\n if (cfsMBean == null) {\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Cannot locate a ColumnFamilyStoreMBean for column family : \" + cf);\r\n }\r\n return null;\r\n }\r\n return CassandraManagementUtils.createCFStats(cfsMBean);\r\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "String getRemoteSchema();", "public abstract List<ColumnSpecification> metadata();", "public List<ColumnSchema> getColumns() {\n return columns;\n }", "public SchemaDef getSourceSchema();", "java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> \n getColumnsList();", "public SchemaElement getDatabaseSchema() {\n return SchemaElement.forName(getDatabaseSchemaName());\n }", "SchemaManager getSchemaManager();", "List<GlobalSchema> schemas();", "public String getSchemaLocation();", "@Override\r\n\t\tpublic String getSchema() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "public Vector getColunas(String schema, String name);", "public String getSchema()\n {\n String schema = \"\";\n if(this.props != null && !this.props.isEmpty())\n {\n schema = this.props.getProperty(\"db.schema\");\n }\n \n return schema;\n }", "java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList();", "public SchemaType getHeaderSchemaType()\n {\n return headerSchemaType;\n }", "public SemanticType[] family() {\n return values();\n }", "public List<Column> getColumns();", "private static ColumnDefinition getClusteringColumnDefinition(CFMetaData cfMetaData, int index)\n {\n return cfMetaData.clusteringColumns().get(index);\n }", "public Schema getSchema() throws IOException {\n byte[] schemaBytes = jniWrapper.nativeGetSchema(nativeInstanceId);\n\n try (MessageChannelReader schemaReader = new MessageChannelReader(\n new ReadChannel(new ByteArrayReadableSeekableByteChannel(schemaBytes)),\n allocator)) {\n MessageResult result = schemaReader.readNext();\n if (result == null) {\n throw new IOException(\"Unexpected end of input. Missing schema.\");\n }\n\n return MessageSerializer.deserializeSchema(result.getMessage());\n }\n }", "@Override\n public Schema getSchema () throws BlinkException\n {\n return schema;\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index);", "String getSchemaName();", "String getSchemaName();", "Get<K, C> addColumn(String family, C column);", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, int limit, boolean reversed, String fromColumn, String toColumn);", "AstroSchema getSchema();", "public Map<String, ColumnMetaData> getColumns();", "byte[][] getQualifierKeys(String family) {\n\t\tMap<String, TypeInformation<?>> qualifierMap = familyMap.get(family);\n\n\t\tif (qualifierMap == null) {\n\t\t\tthrow new IllegalArgumentException(\"Family \" + family + \" does not exist in schema.\");\n\t\t}\n\t\tCharset c = Charset.forName(charset);\n\n\t\tbyte[][] qualifierKeys = new byte[qualifierMap.size()][];\n\t\tint i = 0;\n\t\tfor (String name : qualifierMap.keySet()) {\n\t\t\tqualifierKeys[i++] = name.getBytes(c);\n\t\t}\n\t\treturn qualifierKeys;\n\t}", "List<Column> getQueryColumns();", "public ArrayList<Column> getColumns(String schema, String table) {\r\n try {\r\n Statement stmt = conexion.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '\" + schema + \"' AND TABLE_NAME = '\" + table + \"'\";\r\n ResultSet rs = stmt.executeQuery(sql);\r\n ArrayList<Column> columns = new ArrayList();\r\n while (rs.next()) {\r\n Column_Base column = new Column_Base();\r\n column.setTitle(rs.getString(4));\r\n column.setStorageFormat(rs.getString(8));\r\n column.setDecimalPositions(\".\");//default standard mysql\r\n column.setRecordNumber(getRecordNumberColumnBD(schema, table, column.getTitle()));\r\n columns.add(column);\r\n }\r\n return columns;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAOBaseDatos.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n\r\n }", "public Schema getSchema() {\n return schema;\n }", "public Schema getSchema() {\n return schema;\n }", "public Schema getSchema() {\n\t\treturn _schema;\n\t}", "public Schema getSchema()\n {\n return schema;\n }", "protected CFMetaData getCFMetaData(String ks, String cf, Cassandra.Client client)\n throws NotFoundException,\n org.apache.cassandra.thrift.InvalidRequestException,\n TException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException\n {\n KsDef ksDef = client.describe_keyspace(ks);\n for (CfDef cfDef : ksDef.cf_defs)\n {\n if (cfDef.name.equalsIgnoreCase(cf))\n return ThriftConversion.fromThrift(cfDef);\n }\n return null;\n }", "Schema createSchema();", "List<String> getColumns();", "private String getAugmentedKeyspace(final String keyspace) {\n Select augmentedKeyspaceSelect =\n QueryBuilder.select().all().from(Constants.PATHSTORE_APPLICATIONS, Constants.APPS);\n augmentedKeyspaceSelect.where(QueryBuilder.eq(Constants.APPS_COLUMNS.KEYSPACE_NAME, keyspace));\n\n for (Row row : session.execute(augmentedKeyspaceSelect))\n return row.getString(Constants.APPS_COLUMNS.AUGMENTED_SCHEMA);\n\n return null;\n }", "public FeatureFilter getSchema();", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, boolean reversed, String... columns);", "public org.apache.spark.sql.catalyst.ScalaReflection.Schema schemaFor (org.apache.spark.sql.catalyst.ScalaReflection.universe tpe) ;", "public List<String> getColumns();", "public Set<String> getColumns();", "protected List<ColumnDef> getColumnMetadata(Cassandra.Client client)\n throws TException, CharacterCodingException, InvalidRequestException, ConfigurationException\n { \n return getColumnMeta(client, true, true);\n }", "public com.google.cloud.aiplatform.v1.MetadataSchema getMetadataSchema(\n com.google.cloud.aiplatform.v1.GetMetadataSchemaRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetMetadataSchemaMethod(), getCallOptions(), request);\n }", "SchemaComponentType createSchemaComponentType();", "public MetaSchema getMetaSchema(int iSchema);", "public SchemaInfo getAssociatedSchema() {\n return lookupSchema(getTargetNamespace());\n }", "public String getSchema()\n {\n return schema;\n }", "List<ColumnStrategy> getColumnStrategies();", "String getFamily();", "String getFamily();", "RelDataType getColumnType(String sql);", "public TypeDescription getSchema() {\n return schema;\n }", "public String schema() {\n return schemaName;\n }", "public String schema() {\n return schemaName;\n }", "@java.lang.Override\n public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) {\n return columns_.get(index);\n }", "byte[][] getFamilyKeys() {\n\t\tCharset c = Charset.forName(charset);\n\n\t\tbyte[][] familyKeys = new byte[this.familyMap.size()][];\n\t\tint i = 0;\n\t\tfor (String name : this.familyMap.keySet()) {\n\t\t\tfamilyKeys[i++] = name.getBytes(c);\n\t\t}\n\t\treturn familyKeys;\n\t}", "String family();", "ColumnAffinityType getColumnType();", "public String getSchemaName() {\r\n\t\treturn this.tableMetaDataContext.getSchemaName();\r\n\t}", "@Override\n public Schema getXMLSchema() throws XMLPlatformException {\n return documentBuilderFactory.getSchema();\n }", "SchemaDefinition createSchemaDefinition();", "public Collection<TapSchema> findAllSchemas();", "public Schema getSchema() {\n return mSchema;\n }", "public String getSchema() {\n return schema;\n }", "public static Schema getSchema(JobConf conf) throws IOException\n {\n TableExpr expr = getInputExpr(conf);\n return expr.getSchema(conf);\n }", "@java.lang.Override\n public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema getThrift() {\n if (schemaCase_ == 2) {\n return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_;\n }\n return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance();\n }", "public Vector<Class<?>>getTableColumnClasses()\n\t{\n\t\tVector<Class<?>> vec = new Vector<Class<?>>(this.dbColumnNames.size());\n\t\tif( usesPrefix )\n\t\t{\n\t\t\tvec.add(String.class);\n\t\t} else {\n\t\t\tvec.add(Integer.class);\n\t\t}\n\t\treturn vec;\n\t}", "public String getSchema() {\n return schema;\n }", "public String getSchema() {\n return schema;\n }", "public static Schema getClassSchema() {\n return schema$;\n }", "public static Schema getClassSchema() {\n return schema$;\n }", "public static Schema getClassSchema() {\n return schema$;\n }", "public static Schema getClassSchema() {\n return schema$;\n }", "public Schema getKeySchema() {\n\n\t\tint num_keys = pkColumnNames.size();\n\t\tif (num_keys == 0){\n\t\t\tthrow new DataException(\"Empty primary key\");\n\t\t}\n\t\t//TODO: we always create Struct for the pKey - is there a point to just have a field if it's a single pKey?\n\t SchemaBuilder pkBuilder = SchemaBuilder.struct().name(this.pkSchemaName());\n\n\t for (String pk : this.pkColumnNames) {\n\t \t Field field = schema.field(pk);\n\t \t pkBuilder.field(field.name(), field.schema());\n\t }\n\t return pkBuilder.build();\n\t}", "public java.lang.String getSchema() {\r\n return schema;\r\n }", "public ColumnsForType getColumnsForType(String type){\r\n\t\tColumnsForType cft = columnsForTypeCache.get(type);\r\n\t\tif(cft == null){\r\n\t\t\tcft = buildCache(type);\r\n\t\t\tcolumnsForTypeCache.put(type, cft);\r\n\t\t}\r\n\t\treturn cft;\r\n\t\t\r\n\t}", "@java.lang.Override\n public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index) {\n return columns_.get(index);\n }", "public String createCassandraUnitConfigFile(List<String> columnFamilyNames) throws FileNotFoundException {\n\t\ttry {\n\t\t\tOMFactory omFactory = OMAbstractFactory.getOMFactory();\n\t\t\tOMDocument omDocument = omFactory.createOMDocument();\n\n\t\t\tString cassandraUnitNamespace = \"http://xml.dataset.cassandraunit.org\";\n\t\t\tOMElement rootElement = omFactory.createOMElement(new QName(\"keyspace\"));\n\t\t\trootElement.declareDefaultNamespace(cassandraUnitNamespace);\n\t\t\tomDocument.setOMDocumentElement(rootElement);\n\t\t\tOMNamespace defaultNamespace = rootElement.getDefaultNamespace();\n\n\t\t\t// first set the keyspace name.\n\t\t\tOMElement keyspaceNameElement = omFactory.createOMElement(\"name\", defaultNamespace, rootElement);\n\t\t\tkeyspaceNameElement.setText(KEYSPACE);\n\n\t\t\t// add the column families.\n\t\t\tOMElement columnFamilies = omFactory.createOMElement(\"columnFamilies\", defaultNamespace, rootElement);\n\n\t\t\t// In cases where the column value types of the column family is not \"UTF8Type\",\n\t\t\t// the column value type to be used instead will be available in this map, which is indexed by the name\n\t\t\t// of the column family.\n\t\t\tMap<String, String> columnValueTypeOverrides = getColumnValueTypeOverrides();\n\t\t\tboolean isColumnValueTypeOverridesAvailable = (columnValueTypeOverrides != null && columnValueTypeOverrides.size() > 0);\n\n\t\t\tfor (String columnFamilyName : columnFamilyNames) {\n\n\t\t\t\tlogger.info(\"Adding column family \" + columnFamilyName + \"...\");\n\n\t\t\t\tfinal OMElement cfElement = omFactory.createOMElement(\"columnFamily\", defaultNamespace, columnFamilies);\n\n\t\t\t\tfinal OMElement cfNameElement = omFactory.createOMElement(\"name\", defaultNamespace, cfElement);\n\t\t\t\tcfNameElement.setText(columnFamilyName);\n\n\t\t\t\tboolean isSecondayIndexColumnFamily = columnFamilyName.endsWith(HecubaConstants.SECONDARY_INDEX_CF_NAME_SUFFIX);\n\n\t\t\t\tfinal OMElement keyTypeElement = omFactory.createOMElement(\"keyType\", defaultNamespace, cfElement);\n\t\t\t\tkeyTypeElement.setText(getKeyType(columnFamilyName));\n\n\t\t\t\tfinal OMElement comparatorTypeElement = omFactory.createOMElement(\"comparatorType\", defaultNamespace, cfElement);\n\t\t\t\tcomparatorTypeElement.setText(isSecondayIndexColumnFamily ? \"LongType\" : \"UTF8Type\");\n\n\t\t\t\tfinal OMElement defaultColumnValueTypeElement = omFactory.createOMElement(\"defaultColumnValueType\", defaultNamespace, cfElement);\n\n\t\t\t\tString columnValueType = \"UTF8Type\";\n\t\t\t\t// If the column value type is overridden use that value\n\t\t\t\tif (isColumnValueTypeOverridesAvailable && columnValueTypeOverrides.containsKey(columnFamilyName)) {\n\t\t\t\t\tcolumnValueType = columnValueTypeOverrides.get(columnFamilyName);\n\t\t\t\t}\n\t\t\t\tdefaultColumnValueTypeElement.setText(isSecondayIndexColumnFamily ? \"LongType\" : columnValueType);\n\n\t\t\t\t// Handle initial columnFamily data, if any.\n\t\t\t\tMap<String, Map<String, Object>> cfData = getData(columnFamilyName);\n\t\t\t\tif (cfData != null) {\n\t\t\t\t\tIterator<String> keyIter = cfData.keySet().iterator();\n\t\t\t\t\twhile (keyIter.hasNext()) {\n\t\t\t\t\t\tString key = (String) keyIter.next();\n\n\t\t\t\t\t\tfinal OMElement rowElement = omFactory.createOMElement(\"row\", defaultNamespace, cfElement);\n\t\t\t\t\t\tfinal OMElement keyElement = omFactory.createOMElement(\"key\", defaultNamespace, rowElement);\n\t\t\t\t\t\tkeyElement.setText(key);\n\n\t\t\t\t\t\tMap<String, Object> nameValuePairs = cfData.get(key);\n\t\t\t\t\t\tfor (String columnName : nameValuePairs.keySet()) {\n\n\t\t\t\t\t\t\tfinal OMElement columnElement = omFactory.createOMElement(\"column\", defaultNamespace, rowElement);\n\t\t\t\t\t\t\tfinal OMElement nameElement = omFactory.createOMElement(\"name\", defaultNamespace, columnElement);\n\t\t\t\t\t\t\tnameElement.setText(columnName);\n\t\t\t\t\t\t\tfinal OMElement valueElement = omFactory.createOMElement(\"value\", defaultNamespace, columnElement);\n\t\t\t\t\t\t\tvalueElement.setText(String.valueOf(nameValuePairs.get(columnName)));\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\trootElement.serialize(stringWriter);\n\t\t\tString s = new String(stringWriter.getBuffer());\n\t\t\tlogger.info(\"config = \\n\" + s);\n\t\t\treturn s;\n\n\t\t} catch (XMLStreamException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "java.util.List<Column>\n getColumnsList();", "private Map getColumns(TableConfiguration tc) throws SQLException {\n String localCatalog;\n String localSchema;\n String localTableName;\n \n boolean delimitIdentifiers = tc.isDelimitIdentifiers()\n || StringUtility.stringContainsSpace(tc.getCatalog())\n || StringUtility.stringContainsSpace(tc.getSchema())\n || StringUtility.stringContainsSpace(tc.getTableName());\n\n if (delimitIdentifiers) {\n localCatalog = tc.getCatalog();\n localSchema = tc.getSchema();\n localTableName = tc.getTableName();\n } else if (databaseMetaData.storesLowerCaseIdentifiers()) {\n localCatalog = tc.getCatalog() == null ? null : tc.getCatalog()\n .toLowerCase();\n localSchema = tc.getSchema() == null ? null : tc.getSchema()\n .toLowerCase();\n localTableName = tc.getTableName() == null ? null : tc\n .getTableName().toLowerCase();\n } else if (databaseMetaData.storesUpperCaseIdentifiers()) {\n localCatalog = tc.getCatalog() == null ? null : tc.getCatalog()\n .toUpperCase();\n localSchema = tc.getSchema() == null ? null : tc.getSchema()\n .toUpperCase();\n localTableName = tc.getTableName() == null ? null : tc\n .getTableName().toUpperCase();\n } else {\n localCatalog = tc.getCatalog();\n localSchema = tc.getSchema();\n localTableName = tc.getTableName();\n }\n\n if (tc.isWildcardEscapingEnabled()) {\n String escapeString = databaseMetaData.getSearchStringEscape();\n \n StringBuffer sb = new StringBuffer();\n StringTokenizer st;\n if (localSchema != null) {\n st = new StringTokenizer(localSchema, \"_%\", true); //$NON-NLS-1$\n while (st.hasMoreTokens()) {\n String token = st.nextToken();\n if (token.equals(\"_\") //$NON-NLS-1$\n || token.equals(\"%\")) { //$NON-NLS-1$\n sb.append(escapeString);\n }\n sb.append(token);\n }\n localSchema = sb.toString();\n }\n \n sb.setLength(0);\n st = new StringTokenizer(localTableName, \"_%\", true); //$NON-NLS-1$\n while (st.hasMoreTokens()) {\n String token = st.nextToken();\n if (token.equals(\"_\") //$NON-NLS-1$\n || token.equals(\"%\")) { //$NON-NLS-1$\n sb.append(escapeString);\n }\n sb.append(token);\n }\n localTableName = sb.toString();\n }\n\n Map answer = new HashMap();\n \n ResultSet rs = databaseMetaData.getColumns(localCatalog, localSchema,\n localTableName, null);\n\n while (rs.next()) {\n ColumnDefinition cd = new ColumnDefinition(tc.getAlias(), abatorContext);\n\n cd.setJdbcType(rs.getInt(\"DATA_TYPE\")); //$NON-NLS-1$\n cd.setLength(rs.getInt(\"COLUMN_SIZE\")); //$NON-NLS-1$\n cd.setActualColumnName(rs.getString(\"COLUMN_NAME\")); //$NON-NLS-1$\n cd.setNullable(rs.getInt(\"NULLABLE\") == DatabaseMetaData.columnNullable); //$NON-NLS-1$\n cd.setScale(rs.getInt(\"DECIMAL_DIGITS\")); //$NON-NLS-1$\n cd.setTypeName(rs.getString(\"TYPE_NAME\")); //$NON-NLS-1$\n \n ActualTableName atn = new ActualTableName(rs.getString(\"TABLE_CAT\"), //$NON-NLS-1$\n rs.getString(\"TABLE_SCHEM\"), //$NON-NLS-1$\n rs.getString(\"TABLE_NAME\")); //$NON-NLS-1$\n \n List columns = (List) answer.get(atn);\n if (columns == null) {\n columns = new ArrayList();\n answer.put(atn, columns);\n }\n \n columns.add(cd);\n }\n \n closeResultSet(rs);\n \n return answer;\n }", "public java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList() {\n if (columnsBuilder_ != null) {\n return columnsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(columns_);\n }\n }", "public Class<?>[] getColumnTypes();", "public java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder> \n getColumnsBuilderList() {\n return getColumnsFieldBuilder().getBuilderList();\n }", "public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index) {\n if (columnsBuilder_ == null) {\n return columns_.get(index); } else {\n return columnsBuilder_.getMessageOrBuilder(index);\n }\n }", "public LuaObject getcoltypes() throws SQLException\n {\n L.newTable();\n LuaObject table = L.getLuaObject(-1);\n \n ResultSetMetaData md = rs.getMetaData();\n \n for (int i = 1; i <= md.getColumnCount(); i++)\n {\n String name = md.getColumnTypeName(i);\n \n L.pushNumber(i);\n L.pushString(name);\n L.setTable(-3);\n }\n L.pop(1);\n \n return table;\n }", "@JsonIgnore\n public Map<String, ColumnSchema> getColumnsById() {\n return columnsById;\n }", "@Override\r\n\tprotected String getSchemaSpacePattern() throws SQLException {\r\n\t\tString schema = databaseConnection.getSchema();\r\n\t\tif ((schema == null) || schema.isEmpty()) {\r\n\t\t\tschema = dbmd.getUserName();\r\n\t\t}\r\n\t\treturn schema;\r\n\t}", "public int getMetaSchemas();" ]
[ "0.6207973", "0.61058366", "0.6050251", "0.5895904", "0.5893289", "0.58852977", "0.58849674", "0.5880807", "0.58396703", "0.58266985", "0.58024305", "0.5689311", "0.5650047", "0.564978", "0.56038046", "0.5597682", "0.55256724", "0.550905", "0.5439867", "0.541647", "0.5396963", "0.5391518", "0.53878254", "0.537176", "0.5342501", "0.5336213", "0.5332602", "0.53291655", "0.5309354", "0.53020567", "0.53016764", "0.52922046", "0.52922046", "0.5284774", "0.52826005", "0.5254828", "0.5251146", "0.5248667", "0.5221459", "0.5216131", "0.520838", "0.5178987", "0.5171637", "0.5169404", "0.5160009", "0.51583135", "0.5151009", "0.5128209", "0.5125279", "0.51071036", "0.5104249", "0.5100145", "0.5095086", "0.5073337", "0.50691885", "0.5068832", "0.505204", "0.5048774", "0.50483495", "0.504408", "0.5041331", "0.5041331", "0.503359", "0.5031876", "0.5020042", "0.5020042", "0.50159156", "0.50120187", "0.50080603", "0.5005521", "0.50016505", "0.49902788", "0.49874225", "0.4984053", "0.49836758", "0.4971996", "0.49658042", "0.49644965", "0.495831", "0.49581924", "0.49581924", "0.4919334", "0.4919334", "0.4919334", "0.4919334", "0.4917319", "0.49172628", "0.49145132", "0.49080718", "0.49067414", "0.4897468", "0.48944837", "0.48871833", "0.48800296", "0.48697644", "0.48685804", "0.4862228", "0.48599723", "0.48548204", "0.48529324" ]
0.51103985
49
we don't care about types, they all get casted to ByteBuffers
public void checkSchema(ResourceSchema schema) throws IOException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "byte [] getBuffer ();", "protected abstract ByteBuffer toMedia(Object object) throws BeanConversionException;", "protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;", "public abstract byte[] toBytes() throws Exception;", "@Override\n\tpublic void interpretBytes() {\n\t\t\n\t}", "protected ByteBuffer objToBB(Object o)\n {\n if (o == null)\n return nullToBB();\n if (o instanceof java.lang.String)\n return ByteBuffer.wrap(new DataByteArray((String)o).get());\n if (o instanceof Integer)\n return Int32Type.instance.decompose((Integer)o);\n if (o instanceof Long)\n return LongType.instance.decompose((Long)o);\n if (o instanceof Float)\n return FloatType.instance.decompose((Float)o);\n if (o instanceof Double)\n return DoubleType.instance.decompose((Double)o);\n if (o instanceof UUID)\n return ByteBuffer.wrap(UUIDGen.decompose((UUID) o));\n if(o instanceof Tuple) {\n List<Object> objects = ((Tuple)o).getAll();\n //collections\n if (objects.size() > 0 && objects.get(0) instanceof String)\n {\n String collectionType = (String) objects.get(0);\n if (\"set\".equalsIgnoreCase(collectionType) ||\n \"list\".equalsIgnoreCase(collectionType))\n return objToListOrSetBB(objects.subList(1, objects.size()));\n else if (\"map\".equalsIgnoreCase(collectionType))\n return objToMapBB(objects.subList(1, objects.size()));\n\n }\n return objToCompositeBB(objects);\n }\n\n return ByteBuffer.wrap(((DataByteArray) o).get());\n }", "public interface ByteAdaptable {\n\n byte[] SetToByte();\n}", "protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }", "byte[] getBytes();", "byte[] getBytes();", "private byte[] decode(ByteBuffer bytes) {\n \treturn bytes.array();\r\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default byte[] asByteArray() {\n //TODO this is actually sbyte[], but @Unsigned doesn't work on arrays right now\n return notSupportedCast(\"byte[]\");\n }", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "List<byte[]> asByteArrayList();", "List<Byte> getAsBytes();", "@Override\n public void serialize(ByteBuffer buf) {\n }", "CharArrayBuffer getBuffer()\n ;", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "@Override\n public void deserialize(ByteBuffer buf) {\n }", "private static byte[] toBytes(Object sdkBytes) {\n return ((SdkBytes) sdkBytes).asByteArrayUnsafe();\n }", "public void marshal(java.nio.ByteBuffer buff) throws Exception\n{\n recordType.marshal(buff);\n changeIndicator.marshal(buff);\n entityType.marshal(buff);\n buff.putShort( (short)padding);\n buff.putInt( (int)padding1);\n}", "public byte[] marshall();", "public static byte[] toBytes(Object object) {\n\t\tif(object instanceof Boolean) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(boolean) object ? (byte) 1 : (byte) 0\n\t\t\t};\n\t\t} else if (object instanceof Byte) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(byte) object\n\t\t\t};\n\t\t} else if (object instanceof Short) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(2);\n\t\t\tbuffer.putShort((short) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Integer) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((int) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Long) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putLong((long) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Character) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((char) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Float) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putFloat((float) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Double) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putDouble((double) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof String) {\n\t\t\tbyte[] charset = ((String) object).getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t} else {\n\t\t\tbyte[] charset = object.toString().getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t}\n\t}", "com.google.protobuf.ByteString\n getFromBytes();", "com.google.protobuf.ByteString\n getFromBytes();", "void decode2(DataBuffer buffer, T object);", "public ByteBuffer getByteBuffer();", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public void fromBytes(ByteBuffer buffer) {\n }", "private static byte[] toByteArray(Collection<Byte> bytes) {\n\t\tbyte[] result = new byte[bytes.size()];\n\t\t\n\t\tint index = 0;\n\t\t\n\t\tfor (byte b : bytes) {\n\t\t\tresult[index++] = b;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public native static long getConvertBytes();", "com.google.protobuf.ByteString\n getActualBytes();", "void mo12206a(byte[] bArr);", "Buffer copy();", "public interface MarshalBuffer\n{\n /**\n * @param key\n * key\n * @return DBRowColumnTypeReader\n * @see java.util.Map#containsKey(java.lang.Object)\n */\n boolean containsKey(Object key);\n\n /**\n * @return value\n */\n byte get();\n\n /**\n * @param dst\n * dst\n * @return value\n */\n ByteBuffer get(byte[] dst);\n\n /**\n * @param key\n * key\n * @return map\n * @see java.util.Map#get(java.lang.Object)\n */\n DBRowMapPair get(Object key);\n\n /**\n * @return value\n */\n boolean getBoolean(); // NOPMD\n\n /**\n * @return value\n */\n double getDouble();\n\n /**\n * @return value\n */\n int getInt();\n\n /**\n * @return value\n */\n long getLong();\n\n /**\n * @return value\n */\n int getNextSharedIndex();\n\n /**\n * @param index\n * index\n * @return value\n */\n PyBase getShared(int index);\n\n /**\n * @return value\n */\n short getShort(); // NOPMD\n\n /**\n * @throws IllegalOpCodeException\n * on wrong stream format\n */\n void initialize() throws IllegalOpCodeException;\n\n /**\n * @return value\n */\n int parentPosition();\n\n /**\n * @return value\n */\n byte peekByte();\n\n /**\n * @return value\n */\n int position();\n\n /**\n * @return value\n */\n boolean processed();\n\n /**\n * @param key\n * key\n * @param value\n * value\n * @return value\n * @see java.util.Map#put(java.lang.Object, java.lang.Object)\n */\n DBRowMapPair put(PyDBRowDescriptor key, DBRowMapPair value);\n\n /**\n * @param size\n * size\n * @return value\n */\n byte[] readBytes(int size);\n\n /**\n * @param index\n * index\n * @param pyBase\n * pyBase\n * @return value\n */\n PyBase setShared(int index, PyBase pyBase);\n}", "public void GetBytes(ByteBuffer bytes) {\n bytes.put(data);\n }", "protected byte[] stream2blob(InputStream is) throws IOException, IllegalArgumentException {\n return StreamUtils.stream2blob(is);\n }", "public native byte[] __byteArrayMethod( long __swiftObject, byte[] arg );", "private static void writeNonArrayToBuffer(ByteBuffer buffer, Class<?> standardType, Object value) {\n if (null == value) {\n buffer.put(ABIToken.NULL.identifier);\n }\n \n // Primitive types.\n if (ABIToken.BYTE.standardType == standardType) {\n buffer.put(ABIToken.BYTE.identifier);\n buffer.put((Byte) value);\n } else if (ABIToken.BOOLEAN.standardType == standardType) {\n buffer.put(ABIToken.BOOLEAN.identifier);\n buffer.put((byte)((Boolean) value ? 1 : 0));\n } else if (ABIToken.CHAR.standardType == standardType) {\n buffer.put(ABIToken.CHAR.identifier);\n buffer.putChar((Character) value);\n } else if (ABIToken.SHORT.standardType == standardType) {\n buffer.put(ABIToken.SHORT.identifier);\n buffer.putShort((Short) value);\n } else if (ABIToken.INT.standardType == standardType) {\n buffer.put(ABIToken.INT.identifier);\n buffer.putInt((Integer) value);\n } else if (ABIToken.LONG.standardType == standardType) {\n buffer.put(ABIToken.LONG.identifier);\n buffer.putLong((Long) value);\n } else if (ABIToken.FLOAT.standardType == standardType) {\n buffer.put(ABIToken.FLOAT.identifier);\n buffer.putFloat((Float) value);\n } else if (ABIToken.DOUBLE.standardType == standardType) {\n buffer.put(ABIToken.DOUBLE.identifier);\n buffer.putDouble((Double) value);\n \n // Primitive array types.\n } else if (ABIToken.A_BYTE.standardType == standardType) {\n buffer.put(ABIToken.A_BYTE.identifier);\n if (null != value) {\n byte[] cast = (byte[])value;\n writeLength(buffer, cast.length);\n buffer.put(cast);\n }\n } else if (ABIToken.A_BOOLEAN.standardType == standardType) {\n buffer.put(ABIToken.A_BOOLEAN.identifier);\n if (null != value) {\n boolean[] cast = (boolean[])value;\n writeLength(buffer, cast.length);\n byte[] ready = new byte[cast.length];\n for (int i = 0; i < ready.length; ++i) {\n ready[i] = (byte)(cast[i] ? 1 : 0);\n }\n buffer.put(ready);\n }\n } else if (ABIToken.A_CHAR.standardType == standardType) {\n buffer.put(ABIToken.A_CHAR.identifier);\n if (null != value) {\n char[] cast = (char[])value;\n writeLength(buffer, cast.length);\n for (char c : cast) {\n buffer.putChar(c);\n }\n }\n } else if (ABIToken.A_SHORT.standardType == standardType) {\n buffer.put(ABIToken.A_SHORT.identifier);\n if (null != value) {\n short[] cast = (short[])value;\n writeLength(buffer, cast.length);\n for (short s : cast) {\n buffer.putShort(s);\n }\n }\n } else if (ABIToken.A_INT.standardType == standardType) {\n buffer.put(ABIToken.A_INT.identifier);\n if (null != value) {\n int[] cast = (int[])value;\n writeLength(buffer, cast.length);\n for (int i : cast) {\n buffer.putInt(i);\n }\n }\n } else if (ABIToken.A_LONG.standardType == standardType) {\n buffer.put(ABIToken.A_LONG.identifier);\n if (null != value) {\n long[] cast = (long[])value;\n writeLength(buffer, cast.length);\n for (long l : cast) {\n buffer.putLong(l);\n }\n }\n } else if (ABIToken.A_FLOAT.standardType == standardType) {\n buffer.put(ABIToken.A_FLOAT.identifier);\n if (null != value) {\n float[] cast = (float[])value;\n writeLength(buffer, cast.length);\n for (float f : cast) {\n buffer.putFloat(f);\n }\n }\n } else if (ABIToken.A_DOUBLE.standardType == standardType) {\n buffer.put(ABIToken.A_DOUBLE.identifier);\n if (null != value) {\n double[] cast = (double[])value;\n writeLength(buffer, cast.length);\n for (double d : cast) {\n buffer.putDouble(d);\n }\n }\n \n // Special types\n } else if (ABIToken.STRING.standardType == standardType) {\n buffer.put(ABIToken.STRING.identifier);\n if (null != value) {\n byte[] cast = ((String)value).getBytes(StandardCharsets.UTF_8);\n writeLength(buffer, cast.length);\n buffer.put(cast);\n }\n } else if (ABIToken.ADDRESS.standardType == standardType) {\n buffer.put(ABIToken.ADDRESS.identifier);\n if (null != value) {\n byte[] cast = ((Address)value).unwrap();\n RuntimeAssertionError.assertTrue(Address.avm_LENGTH == cast.length);\n buffer.put(cast);\n }\n \n } else {\n // There should be no other kind of case.\n RuntimeAssertionError.unreachable(\"Unknown type in encoder\");\n }\n }", "abstract public Buffer createBuffer();", "private byte[] packObject(ProtocolObject obj) {\n ByteArrayOutputStream bos = new ByteArrayOutputStream(37);\n for (int i = 0; i < 5; i++) {\n \t// write header bytes...\n \tbos.write(0);\n }\n packObject(obj, bos);\n return bos.toByteArray();\n }", "public byte[] getAsBytes() {\n return (byte[])data;\n }", "byte[] readBytes();", "private void loadBuffer(ByteBuffer buffer) {\n byteBuffer = buffer.get();\n }", "@Override // c.d.a.m.w.b.AbstractC0024b\n public ByteBuffer b(byte[] bArr) {\n return ByteBuffer.wrap(bArr);\n }", "T decode1(DataBuffer buffer);", "public abstract void readBytes(PacketBuffer buffer) throws IOException;", "com.google.protobuf.ByteString\n getToBytes();", "public void fromBuffer(ByteBufWrapper paramhd)\r\n/* 18: */ {\r\n/* 19:35 */ this.b = ((np)a.fromJson(paramhd.c(32767), np.class));\r\n/* 20: */ }", "abstract public Buffer createBufferFromData(byte[] data, int size);", "public abstract byte[] getEncoded();", "public void toBuffer(ByteBufWrapper paramhd)\r\n/* 48: */ {\r\n/* 49:55 */ paramhd.b(this.a);\r\n/* 50:56 */ paramhd.writeInt(this.b);\r\n/* 51:57 */ paramhd.writeInt(this.c);\r\n/* 52:58 */ paramhd.writeInt(this.d);\r\n/* 53:59 */ paramhd.writeByte(this.e);\r\n/* 54:60 */ paramhd.writeByte(this.f);\r\n/* 55:61 */ paramhd.writeBoolean(this.g);\r\n/* 56: */ }", "private static byte[] get(ByteIterable bytes, boolean copy) {\n final int len = bytes.getLength();\n final byte[] data = bytes.getBytesUnsafe();\n if (data.length == len && !copy)\n return data;\n final byte[] result = new byte[len];\n System.arraycopy(data, 0, result, 0, len);\n return result;\n }", "static native int jniToBuf(Buf out, long patch);", "protected abstract Buffer doCreateBuffer(byte[] data)\n throws BadParameterException, NoSuccessException;", "public ByteBuffer buffer() { return bb; }", "public void testNIO_byte_array() throws Exception {\n byteBufferTest(ByteBuffer.allocate(12));\n }", "private static Object valueFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tbyte type = bytes.get();\n\t\t//System.out.println(\"From value: \" + new Integer(type).toString());\n\t\tswitch(type){\n\t\tcase MAP_INDICATOR:\n\t\t\t//System.out.println(\"MAP!\");\n\t\t\treturn mapFromBytes(bytes);\n\t\tcase ARRAY_INDICATOR:\n\t\t\treturn arrayFromBytes(bytes);\n\t\tcase STRING_INDICATOR:\n\t\t\t//System.out.println(\"STRING!\");\n\t\t\tint length = bytes.getInt();\n\t\t\tbyte[] stringBytes = new byte[length];\n\t\t\tbytes.get(stringBytes, 0, length);\n\t\t\treturn new String(stringBytes);\n\t\tcase INTEGER_INDICATOR:\n\t\t\treturn bytes.getInt();\n\t\tcase LONG_INDICATOR:\n\t\t\treturn bytes.getLong();\n\t\tcase DOUBLE_INDICATOR:\n\t\t\treturn bytes.getDouble();\n\t\tcase FLOAT_INDICATOR:\n\t\t\treturn bytes.getFloat();\n\t\tcase BOOLEAN_INDICATOR:\n\t\t\treturn bytes.get() == 1 ? 1: 0;\n\t\tdefault:\n\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t}\n\t\t\n\t\t\t\n\t\t\t\n\t}", "public byte[] GetBytes() {\n return data;\n }", "public /*byte[]*/String BinaryCaster(Object item){\n String Sitem = Integer.toBinaryString((int)item);\n //byte[] b = new byte[Sitem.length()];\n //for(int i=0;i<Sitem.length();i++){\n // b[i] = (byte)Sitem.charAt(i);\n //}\n //return b;\n return Sitem;\n }", "public abstract void nextBytes(byte[] byteBuffer);", "byte[] getEByteArray();", "@Override\n\tpublic byte[] toBytes() {\n\t\treturn null;\n\t}", "void mo1751a(byte[] bArr);", "@Override\n\tprotected IoBuffer packBody(IoBuffer buffer) {\n\t\treturn null;\n\t}", "void mo4520a(byte[] bArr);", "public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }", "public static Object read(Object obj) {\n if (obj instanceof byte[] byteArray) {\n return SafeEncoder.encode(byteArray);\n }\n if (obj instanceof List) {\n return ((List<?>) obj).stream().map(Jupiter::read).toList();\n }\n\n return obj;\n }", "byte[] toByteArray() throws IOException {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }", "public static int OpaqueToType(byte[] b) { \n int type = b[8];\n return type; \n }", "private static JSONArray arrayFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tJSONArray json = new JSONArray();\n\t\tint length = bytes.getInt();\n\t\tfor (int i = 0; i < length; i++){\n\t\t\t//Object value = valueFromBytes(bytes);\n\t\t\t//json.put(value);\n\t\t\t//Get value\n\t\t\tbyte type = bytes.get();\n\t\t\tswitch(type){\n\t\t\tcase MAP_INDICATOR:\n\t\t\t\tjson.put(mapFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase ARRAY_INDICATOR:\n\t\t\t\tjson.put(arrayFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase STRING_INDICATOR:\n\t\t\t\tint lengthString = bytes.getInt();\n\t\t\t\tbyte[] stringBytes = new byte[lengthString];\n\t\t\t\tbytes.get(stringBytes, 0, lengthString);\n\t\t\t\tjson.put(new String(stringBytes));\n\t\t\t\tbreak;\n\t\t\tcase INTEGER_INDICATOR:\n\t\t\t\tjson.put(bytes.getInt());\n\t\t\t\tbreak;\n\t\t\tcase LONG_INDICATOR:\n\t\t\t\tjson.put(bytes.getLong());\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE_INDICATOR:\n\t\t\t\tjson.put(bytes.getDouble());\n\t\t\t\tbreak;\n\t\t\tcase FLOAT_INDICATOR:\n\t\t\t\tjson.put(bytes.getFloat());\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t\t}\n\t\t}\n\t\treturn json;\n\t}", "com.google.protobuf.Any getContent();", "public void toBuffer(ByteBufWrapper paramhd)\r\n/* 23: */ {\r\n/* 24:40 */ paramhd.a(a.toJson(this.b));\r\n/* 25: */ }", "private ByteBuffer concatBuffers(List<Object> buffers) throws Exception {\n\t/*\n var length = 0;\n for (var i = 0, l = buffers.length; i < l; ++i) length += buffers[i].length;\n var mergedBuffer = new Buffer(length);\n bufferUtil.merge(mergedBuffer, buffers);\n return mergedBuffer;*/\n\treturn Util.concatByteBuffer(buffers, 0);\n}", "byte[] byteValue() {\n\treturn data;\n }", "protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }", "byte[] getByteArrayField();", "com.google.protobuf.ByteString getObj();", "@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n\n return params;\n }", "@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n\n return params;\n }", "@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n\n return params;\n }", "@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n\n return params;\n }", "@Override\r\n\t@JsonIgnore\r\n\tpublic byte[] asBytes() {\n\t\treturn null;\r\n\t}" ]
[ "0.6550674", "0.64456385", "0.63875157", "0.63864446", "0.63247406", "0.6309023", "0.630344", "0.6299295", "0.62723106", "0.62723106", "0.6259924", "0.6128957", "0.6111764", "0.6111764", "0.6070121", "0.6069689", "0.6067946", "0.6005163", "0.59987515", "0.59679264", "0.5863121", "0.5836513", "0.58252466", "0.57666534", "0.57452345", "0.57452345", "0.57443166", "0.57323945", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.57062984", "0.5704372", "0.5670739", "0.5659041", "0.5646661", "0.5644146", "0.5629394", "0.5625106", "0.5599833", "0.55978125", "0.5590634", "0.558117", "0.5579053", "0.5576049", "0.5575081", "0.55676484", "0.55667675", "0.5558566", "0.5552771", "0.5551609", "0.5550405", "0.55441165", "0.5541936", "0.553477", "0.5531401", "0.55263335", "0.5525935", "0.5521068", "0.55161375", "0.5509821", "0.55036294", "0.54984456", "0.5482458", "0.5481337", "0.54747695", "0.5464106", "0.5461695", "0.545738", "0.5450033", "0.54480773", "0.54443985", "0.544215", "0.54402864", "0.543628", "0.54356694", "0.54331386", "0.5431216", "0.54245025", "0.54229474", "0.5421071", "0.5416626", "0.5391923", "0.5391923", "0.5391923", "0.5391923", "0.5389519" ]
0.0
-1
convert object to ByteBuffer
protected ByteBuffer objToBB(Object o) { if (o == null) return nullToBB(); if (o instanceof java.lang.String) return ByteBuffer.wrap(new DataByteArray((String)o).get()); if (o instanceof Integer) return Int32Type.instance.decompose((Integer)o); if (o instanceof Long) return LongType.instance.decompose((Long)o); if (o instanceof Float) return FloatType.instance.decompose((Float)o); if (o instanceof Double) return DoubleType.instance.decompose((Double)o); if (o instanceof UUID) return ByteBuffer.wrap(UUIDGen.decompose((UUID) o)); if(o instanceof Tuple) { List<Object> objects = ((Tuple)o).getAll(); //collections if (objects.size() > 0 && objects.get(0) instanceof String) { String collectionType = (String) objects.get(0); if ("set".equalsIgnoreCase(collectionType) || "list".equalsIgnoreCase(collectionType)) return objToListOrSetBB(objects.subList(1, objects.size())); else if ("map".equalsIgnoreCase(collectionType)) return objToMapBB(objects.subList(1, objects.size())); } return objToCompositeBB(objects); } return ByteBuffer.wrap(((DataByteArray) o).get()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }", "protected abstract ByteBuffer toMedia(Object object) throws BeanConversionException;", "public static byte[] toBytes(Object object) {\n\t\tif(object instanceof Boolean) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(boolean) object ? (byte) 1 : (byte) 0\n\t\t\t};\n\t\t} else if (object instanceof Byte) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(byte) object\n\t\t\t};\n\t\t} else if (object instanceof Short) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(2);\n\t\t\tbuffer.putShort((short) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Integer) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((int) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Long) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putLong((long) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Character) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((char) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Float) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putFloat((float) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Double) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putDouble((double) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof String) {\n\t\t\tbyte[] charset = ((String) object).getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t} else {\n\t\t\tbyte[] charset = object.toString().getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t}\n\t}", "public ByteBuffer getByteBuffer();", "public static <O> byte[] toBytes(O object) {\n try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ObjectOutputStream objOutputStream = new ObjectOutputStream(byteArrayOutputStream);) {\n objOutputStream.writeObject(object);\n return byteArrayOutputStream.toByteArray();\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }", "@Override\n public void serialize(ByteBuffer buf) {\n }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "private byte[] packObject(ProtocolObject obj) {\n ByteArrayOutputStream bos = new ByteArrayOutputStream(37);\n for (int i = 0; i < 5; i++) {\n \t// write header bytes...\n \tbos.write(0);\n }\n packObject(obj, bos);\n return bos.toByteArray();\n }", "public ByteBuffer convertToMedia(Object object) {\n if (object == null) {\n throw new BeanConversionException(\"Object cannot be null\");\n }\n return toMedia(object);\n }", "@Override\r\n public byte[] encodeToBytes(Object object) throws Exception {\n return null;\r\n }", "com.google.protobuf.ByteString getObj();", "protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;", "public static byte[] objectToBytes( Object object ) throws IOException{\n byte[] output = null;\n if( object != null ){\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(stream);\n out.writeObject(object);\n output = stream.toByteArray();\n }\n return output;\n }", "public ByteBuffer buffer() { return bb; }", "ByteString encode(T object) throws Exception;", "protected byte[] objectToBytes(O object) throws OBException {\r\n try {\r\n return object.store();\r\n\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n }", "public abstract byte[] toBytes() throws Exception;", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "private static byte[] construct(Serializable object) {\n\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\ttry {\n\t // Wrap the ByteArrayOutputStream in an ObjectOutputStream\n\t ObjectOutputStream oos = new ObjectOutputStream(bos);\n\t // and write the objects to the stream\n\t oos.writeObject(object);\n\t oos.close();\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t throw new Error(\"Failed to write serializable data for \" + object);\n\t}\n\n\t// the bytes are now held in the ByteArrayOutputStream\n\t// so we get the bytes of the ByteArrayOutputStream\n\tbyte[] rawBytes = bos.toByteArray();\n\n\treturn rawBytes;\n\n }", "void encode(ByteBuffer buffer, Message message);", "public static byte[] convertObjectToJsonBytes(Object object)\n throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);\n\n JavaTimeModule module = new JavaTimeModule();\n mapper.registerModule(module);\n\n return mapper.writeValueAsBytes(object);\n }", "com.google.protobuf.ByteString\n getToBytes();", "public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }", "public byte[] marshall();", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "public static byte[] ToBytes(AsonValue obj,byte flag) throws java.io.IOException {\n return new AsonSerializer(flag).serialize(obj);\n }", "public final ByteBuffer serialize() {\n return this.b.asReadOnlyBuffer().order(this.b.order());\n }", "public void toBuffer(ByteBufWrapper paramhd)\r\n/* 48: */ {\r\n/* 49:55 */ paramhd.b(this.a);\r\n/* 50:56 */ paramhd.writeInt(this.b);\r\n/* 51:57 */ paramhd.writeInt(this.c);\r\n/* 52:58 */ paramhd.writeInt(this.d);\r\n/* 53:59 */ paramhd.writeByte(this.e);\r\n/* 54:60 */ paramhd.writeByte(this.f);\r\n/* 55:61 */ paramhd.writeBoolean(this.g);\r\n/* 56: */ }", "public static <T> byte[] writeToByteArray(T obj) {\n Output output = kryoThreadLocalContext.get().getOutput();\n while (true) {\n output.clear();\n try {\n Kryo kryo = getInstance();\n kryo.writeClassAndObject(output, obj);\n output.flush();\n break;\n } catch (KryoException e) {\n // need resize\n if (e.getMessage() != null && e.getMessage()\n .startsWith(BUFFER_OVERFLOW_EXCEPTION_MESSAGE)) {\n output = kryoThreadLocalContext.get().resizeOutputBuffer();\n } else {\n throw e;\n }\n }\n }\n return output.toBytes();\n }", "byte[] serialize(Serializable object);", "public static byte[] convertObjectToJsonBytes(Object object) throws IOException {\n\t\treturn MAPPER.writeValueAsBytes(object);\n\t}", "private static byte[] toBytes(Object sdkBytes) {\n return ((SdkBytes) sdkBytes).asByteArrayUnsafe();\n }", "protected abstract byte[] encode(Object o) throws EncoderException;", "@Override\r\n public byte[] toBinary(Object obj) {\r\n return JSON.toJSONBytes(obj, SerializerFeature.WriteClassName);\r\n }", "public static byte[] getByteArray(Object obj) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tObjectOutputStream oos = null;\n\t\ttry {\n\t\t\toos = new ObjectOutputStream(baos);\n\t\t\toos.writeObject(obj);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tcloseCloseable(oos);\n\t\t}\n\t\t\n\t\treturn baos.toByteArray();\n\t}", "@Nonnull\n public String toBuf() {\n Buf buf = new Buf();\n Error.throwIfNeeded(jniToBuf(buf, getRawPointer()));\n return buf.getString().orElse(\"\");\n }", "public ByteBuffer getBytesForMessage(StompFrame msg) throws CharacterCodingException {\n StringBuilder sb = new StringBuilder(msg.getWholeSTOMPMessage());\n sb.append(this._messageSeparator);\n ByteBuffer bb = this._encoder.encode(CharBuffer.wrap(sb));\n return bb;\n }", "com.google.protobuf.ByteString\n getFromBytes();", "com.google.protobuf.ByteString\n getFromBytes();", "static native int jniToBuf(Buf out, long patch);", "public static byte[] toByteArray(Object obj) throws IOException\n {\n byte[] bytes = null;\n ByteArrayOutputStream bos = null;\n ObjectOutputStream oos = null;\n \n try \n {\n bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n oos.writeObject(obj);\n oos.flush();\n bytes = bos.toByteArray();\n }\n finally\n {\n if (oos != null)\n {\n oos.close();\n }\n if (bos != null)\n {\n bos.close();\n }\n }\n return bytes;\n }", "public static Object read(Object obj) {\n if (obj instanceof byte[] byteArray) {\n return SafeEncoder.encode(byteArray);\n }\n if (obj instanceof List) {\n return ((List<?>) obj).stream().map(Jupiter::read).toList();\n }\n\n return obj;\n }", "ByteBuffer allocate() {\n\t\tvar b = ByteBuffer.allocate(size).order(LITTLE_ENDIAN);\n\t\tb.putInt(ordinal());\n\t\treturn b;\n\t}", "private static ByteBuf toByteBuf(Object any) {\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n try {\n out.write(\"data: \".getBytes(Charset.defaultCharset()));\n MAPPER.writeValue(out, any);\n out.write(\"\\n\\n\".getBytes(Charset.defaultCharset()));\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n return ByteBufAllocator.DEFAULT\n .buffer()\n .writeBytes(out.toByteArray());\n }", "@Override // c.d.a.m.w.b.AbstractC0024b\n public ByteBuffer b(byte[] bArr) {\n return ByteBuffer.wrap(bArr);\n }", "public void fromBytes(ByteBuffer buffer) {\n }", "byte[] toJson(Object object) throws Exception {\r\n return this.mapper.writeValueAsString(object).getBytes();\r\n }", "private byte[] serialize(Serializable object) throws Exception {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream objectStream = new ObjectOutputStream(stream);\n objectStream.writeObject(object);\n objectStream.flush();\n return stream.toByteArray();\n }", "public static byte[] GetByteArrayFromObject(Object object)\n\t\t\tthrows IOException {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\tObjectOutputStream out = new ObjectOutputStream(bos);\n\t\tout.writeObject(object);\n\t\tout.close();\n\t\treturn bos.toByteArray();\n\t}", "@Override\n\tpublic void encode(Crate object, IoBuffer buf) {\n\t}", "public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte[] toBytes () {\n return toTuple().toBytes();\n }", "public void toBuffer(ByteBufWrapper paramhd)\r\n/* 23: */ {\r\n/* 24:40 */ paramhd.a(a.toJson(this.b));\r\n/* 25: */ }", "public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "byte [] getBuffer ();", "@Override\n\tpublic byte[] toBytes() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "public byte[] serialize();", "byte[] toByteArray() throws IOException {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }", "public interface ByteBuffer extends Comparable<ByteBuffer> {\n\t\n\n\tvoid writeLong(long value);\n\n\tvoid writeShort(short value);\n\n\tvoid writeInt(int value);\n\n\tlong readLong();\n\n\tshort readShort();\n\n\tint readInt();\n\n\tvoid markReaderIndex();\n\n\tboolean readable();\n\n\tint readableBytes();\n\n\tbyte readByte();\n\n\tvoid readBytes(byte[] dst);\n\n\tvoid readBytes(byte[] dst, int dstIndex, int length);\n\n\tvoid resetReaderIndex();\n\n\tint readerIndex();\n\n\tvoid readerIndex(int readerIndex);\n\n\tvoid skipBytes(int length);\n\n\tvoid writeByte(int value);\n\n\tvoid writeBytes(byte[] src);\n\n\tvoid writeBytes(byte[] src, int index, int length);\n\n\tint writerIndex();\n\n\tvoid writerIndex(int writerIndex);\n\t\n\tByteBuffer slice(int index, int length);\n\t\n\tbyte[] array();\n\n}", "com.google.protobuf.ByteString\n getEncodedBytes();", "private static SdkBytes toSdkBytes(Object sdkBytes) {\n return SdkBytes.fromByteArrayUnsafe((byte[]) sdkBytes);\n }", "protected byte[] serialize(Object o) {\n\t\tif (o == null) {\n\t\t\tthrow new NullPointerException(\"SPYMemcached JAVA Serialization error : Can't serialize null\");\n\t\t}\n\t\tbyte[] rv = null;\n\t\tByteArrayOutputStream bos = null;\n\t\tObjectOutputStream os = null;\n\t\ttry {\n\t\t\tbos = new ByteArrayOutputStream();\n\t\t\tos = new ObjectOutputStream(bos);\n\t\t\tos.writeObject(o);\n\t\t\tos.close();\n\t\t\tbos.close();\n\t\t\trv = bos.toByteArray();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"SPYMemcached JAVA Serialization error : Non-serializable object\", e);\n\t\t} finally {\n\t\t\tif (os != null) {\n\t\t\t\ttry {\n\t\t\t\t\tos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLOGGER.info(\"JAVA Serializer error : close ObjectOutputStream\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (bos != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLOGGER.info(\"JAVA Serializer error : close ByteArrayOutputStream\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn rv;\n\t}", "private static ByteBuffer toByteBuffer(int[] array) {\n final ByteBuffer buffer = ByteBuffer.allocateDirect(array.length);\n buffer.put(toByteArray(array));\n buffer.rewind();\n return buffer;\n }", "public static LargeObjectAvro fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }", "private ByteBuffer serialize() {\n ByteBuffer _locks = ByteableCollections.toByteBuffer(locks);\n ByteBuffer _writes = ByteableCollections\n .toByteBuffer(((Queue) limbo).getWrites());\n ByteBuffer bytes = ByteBuffer\n .allocate(4 + _locks.capacity() + _writes.capacity());\n bytes.putInt(_locks.capacity());\n bytes.put(_locks);\n bytes.put(_writes);\n bytes.rewind();\n return bytes;\n }", "public static byte[] save(Object obj) {\r\n byte[] bytes = null;\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n ObjectOutputStream oos = null;\r\n try {\r\n oos = new ObjectOutputStream(baos);\r\n oos.writeObject(obj);\r\n oos.flush();\r\n bytes = baos.toByteArray();\r\n } catch (IOException e) {\r\n e.printStackTrace(); //To change body of catch statement use Options | File Templates.\r\n }\r\n return bytes;\r\n }", "private static <T extends Serializable> byte[] pickle(T obj)\n throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(baos);\n oos.writeObject(obj);\n oos.close();\n return baos.toByteArray();\n }", "public static ByteBuffer byteBuffer(InputStream in) throws IOException {\n return byteBuf(in, FileChannel.MapMode.READ_WRITE, \"rw\");\n }", "@Override\n public void deserialize(ByteBuffer buf) {\n }", "public byte[] toByteArray() {\n/* 510 */ ByteBuffer buff = ByteBuffer.allocate(40).order(ByteOrder.LITTLE_ENDIAN);\n/* 511 */ writeTo(buff);\n/* 512 */ return buff.array();\n/* */ }", "private static Buffer toBytes(String str) {\n try {\n return new Buffer(str.getBytes(\"UTF-8\"));\n } catch(java.io.UnsupportedEncodingException e) {\n throw new RuntimeException(\"UTF-8 not supported.\", e);\n }\n }", "public static byte[] valueToBytes(Object value) throws JSONException, IOException {\n if (value == null || value.equals(null)) {\n return Constants.NullByteMarker;\n }\n \t// return raw bytes is value is byte[] - else use normal json string conversion\n if (value instanceof byte[]) {\n \treturn (byte[])value;\n }\n \n if (value instanceof long[]) {\n \treturn Util.UTF8(longArrayString((long[])value));\n }\n \n if (value instanceof JSONString) {\n Object o;\n try {\n o = ((JSONString)value).toJSONString();\n } catch (Exception e) {\n throw new JSONException(e);\n }\n if (o instanceof String) {\n return Util.UTF8(o);\n }\n throw new JSONException(\"Bad value from toJSONString: \" + o);\n }\n if (value instanceof Number) {\n return Util.UTF8(JSONObject.numberToString((Number) value));\n }\n if (value instanceof Boolean || value instanceof JSONObject ||\n value instanceof JSONArray) {\n return Util.UTF8(value);\n }\n if (value instanceof Map) {\n return Util.UTF8(new JSONObject((Map)value));\n }\n if (value instanceof JSONList) {\n return ((JSONList)value).getBytes().makeExact().bytes();\n }\n if (value instanceof List) {\n return new JSONList((List)value).getBytes().makeExact().bytes();\n }\n if (value instanceof Collection) {\n return Util.UTF8(new JSONArray((Collection)value));\n }\n if (value.getClass().isArray()) {\n return Util.UTF8(new JSONArray(value));\n }\n return Util.UTF8(JSONObject.quote(value.toString()));\n }", "public com.google.protobuf.ByteString getObjectBytes() {\n java.lang.Object ref = object_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n object_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "CharArrayBuffer getBuffer()\n ;", "public static byte[] serialize(Object object) {\n ByteArrayOutputStream bos = null;\n ObjectOutputStream oos = null;\n try {\n bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n oos.writeObject(object);\n return bos.toByteArray();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (null != oos) {\n try {\n oos.close();\n }\n catch (IOException ex) {}\n }\n if (null != bos) {\n try {\n bos.close();\n }\n catch (IOException ex) {}\n }\n }\n }", "private static ByteBuffer createNativeByteBuffer(int length) {\n ByteBuffer bb = ByteBuffer.allocateDirect(length);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n return bb;\n }", "public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }", "public ByteBuffer getBuffer() {\n return _buf;\n }", "public byte[] convert(Object source) {\n try {\n ByteArrayOutputStream baos = new ByteArrayOutputStream(128);\n serializer.serialize(source, baos);\n return baos.toByteArray();\n } catch (Throwable t) {\n throw new SerializationFailedException(\"Failed to serialize object using \" +\n serializer.getClass().getSimpleName(), t);\n }\n }", "public Object convertToObject(ByteBuffer content, Type targetType) throws BeanConversionException {\n if (content == null || targetType == null) {\n throw new BeanConversionException(\"Content or target type cannot be null\");\n }\n return toObject(content, targetType);\n }" ]
[ "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.75241774", "0.72288567", "0.6943703", "0.69117707", "0.65696734", "0.65471745", "0.65409946", "0.64754593", "0.64629644", "0.64624536", "0.63622135", "0.63454276", "0.6335789", "0.63046145", "0.6285824", "0.6277159", "0.62632984", "0.62410283", "0.6175234", "0.6149744", "0.6084058", "0.6080411", "0.60596895", "0.601876", "0.6018401", "0.6002661", "0.6002661", "0.5966105", "0.59617776", "0.59613085", "0.5948323", "0.59400564", "0.59343797", "0.59250057", "0.5910473", "0.5869742", "0.58068573", "0.579698", "0.5786746", "0.5782859", "0.5782859", "0.5740466", "0.57284504", "0.5711319", "0.57108384", "0.5703613", "0.57019377", "0.56976706", "0.56876063", "0.567492", "0.56673986", "0.5660564", "0.5657518", "0.56530863", "0.56457037", "0.56344146", "0.56253624", "0.56251353", "0.5617312", "0.5601571", "0.5599822", "0.5589798", "0.5587474", "0.55661756", "0.5550963", "0.5550945", "0.5542641", "0.553765", "0.5517454", "0.5516926", "0.55157506", "0.55106956", "0.5510604", "0.55101573", "0.54852617", "0.5479695", "0.54745895", "0.5468712", "0.54544556", "0.54366565", "0.543515", "0.543315", "0.54308265" ]
0.71935076
19
write tuple data to cassandra
private void writeColumnsFromTuple(ByteBuffer key, Tuple t, int offset) throws IOException { ArrayList<Mutation> mutationList = new ArrayList<Mutation>(); for (int i = offset; i < t.size(); i++) { if (t.getType(i) == DataType.BAG) writeColumnsFromBag(key, (DataBag) t.get(i)); else if (t.getType(i) == DataType.TUPLE) { Tuple inner = (Tuple) t.get(i); if (inner.size() > 0) // may be empty, for an indexed column that wasn't present mutationList.add(mutationFromTuple(inner)); } else if (!usePartitionFilter) { throw new IOException("Output type was not a bag or a tuple"); } } if (mutationList.size() > 0) writeMutations(key, mutationList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected void writeTuple(Tuple tuple) throws IOException;", "public abstract boolean writeDataItem(BDTuple tuple) throws RollbackException;", "public void putNext(Tuple tuple) throws IOException {\n\t\tint sqlPos = 1;\n\t\ttry {\n\t\t\tint size = tuple.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tObject field = tuple.get(i);\n\t\t\t\t\tif(field != null){\n\t\t\t\t\t\tif(\"\\\\N\".equalsIgnoreCase(field.toString())){\n\t\t\t\t\t\t\tfield = null;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tswitch (DataType.findType(field)) {\n\t\t\t\t\tcase DataType.NULL:\n\t\t\t\t\t\tps.setNull(sqlPos, java.sql.Types.VARCHAR);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.BOOLEAN:\n\t\t\t\t\t\tps.setBoolean(sqlPos, (Boolean) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.INTEGER:\n\t\t\t\t\t\tps.setInt(sqlPos, (Integer) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.LONG:\n\t\t\t\t\t\tps.setLong(sqlPos, (Long) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.FLOAT:\n\t\t\t\t\t\tps.setFloat(sqlPos, (Float) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.DOUBLE:\n\t\t\t\t\t\tps.setDouble(sqlPos, (Double) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.DATETIME:\n\t\t\t\t\t\tps.setTimestamp(sqlPos, new Timestamp(((DateTime) field).getMillis()));\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.BYTEARRAY:\n\t\t\t\t\t\tbyte[] b = ((DataByteArray) field).get();\n\t\t\t\t\t\tps.setBytes(sqlPos, b);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DataType.CHARARRAY:\n\t\t\t\t\t\tps.setString(sqlPos, (String) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DataType.BYTE:\n\t\t\t\t\t\tps.setByte(sqlPos, (Byte) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.MAP:\n\t\t\t\t\tcase DataType.TUPLE:\n\t\t\t\t\tcase DataType.BAG:\n\t\t\t\t\t\tthrow new RuntimeException(\"Cannot store a non-flat tuple \"\n\t\t\t\t\t\t\t\t+ \"using DbStorage\");\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new RuntimeException(\"Unknown datatype \"\n\t\t\t\t\t\t\t\t+ DataType.findType(field));\n\n\t\t\t\t\t}\n\n\t\t\t\t} catch (ExecException ee) {\n\t\t\t\t\tthrow new RuntimeException(ee);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tps.addBatch();\n\t\t\tcount++;\n\t\t\tif (count > batchSize) {\n\t\t\t\tcount = 0;\n\t\t\t\tps.executeBatch();\n\t\t\t\tps.clearBatch();\n\t\t\t\tps.clearParameters();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tlog\n\t\t\t\t.error(\"Unable to insert record:\" + tuple.toDelimitedString(\"\\t\"),\n\t\t\t\t\t\te);\n\t\t\t} catch (ExecException ee) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\tif (e.getErrorCode() == 1366) {\n\t\t\t\t// errors that come due to utf-8 character encoding\n\t\t\t\t// ignore these kind of errors TODO: Temporary fix - need to find a\n\t\t\t\t// better way of handling them in the argument statement itself\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"JDBC error\", e);\n\t\t\t}\n\t\t}\n\t}", "void write(Object... columns) throws IOException;", "public boolean serializeTuple( ByteBuffer buf, TupleAccessor tuple ) {\n buf.mark();\n try\n {\n scanFields( tuple );\n writer.startBlock( buf );\n writer.writeHeader( isNull, isRepeated );\n writeFields( tuple );\n writer.endBlock();\n return true;\n }\n catch ( IndexOutOfBoundsException e ) {\n buf.reset();\n return false;\n }\n }", "public abstract void save(LongIntsCol col, DataOutputStream output) throws IOException;", "void write(List<Object> values) throws TransportException;", "abstract protected void syncTuples() throws IOException;", "@Override\n public void writeToDb(List<String> data) {\n\n try {\n openConnection();\n if (validateData((ArrayList<String>) data)) {\n for (String datum : data) {\n bufferedWriter.write(getDate() + \" - \" + datum);\n bufferedWriter.newLine();\n }\n bufferedWriter.write(\"==================\\n\");\n System.out.println(\"All data is written to MS SQL DB\");\n closeConnection();\n }\n } catch (IOException e) {\n System.err.println(\"ERROR!!!\");\n e.printStackTrace();\n }\n\n }", "@Override\n public void emitTuples() {\n\n Statement query = queryToRetrieveData();\n logger.debug(String.format(\"select statement: %s\", query.toString()));\n RecordSet rs;\n try {\n rs = store.getClient().query(null, query);\n while(rs.next()){\n Record rec = rs.getRecord();\n T tuple = getTuple(rec);\n outputPort.emit(tuple);\n }\n }\n catch (Exception ex) {\n store.disconnect();\n DTThrowable.rethrow(ex);\n }\n }", "private synchronized boolean create_tuples(String table_name, String[] data, StringBuilder tuples){\n\t\tint seq_no = 0;\n\t\tint schema_id = 0;\n\t\t\n\t\t// msg is null\n\t\tif(tuples == null){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (!measurementPointCounter.isEmpty()) {\n\t\t\tseq_no = measurementPointCounter.get(table_name);\n\t\t\tmeasurementPointCounter.put(table_name, seq_no + 1);\n\t\t} else\n\t\t\treturn false;\n \n\t\tif (!schemaCounter.isEmpty()) {\n\t\t\tschema_id = schemaCounter.get(table_name);\n\t\t} else\n\t\t\treturn false;\n \n\t\tif (!isSrvConnected())\n\t\t\treturn false;\n \n\t\t\n\t\t/**\n\t\t * CALCULATE THE TIME INTERVAL\n\t\t */\n\t\tlong cur_time = System.currentTimeMillis();\n\t\tlong dif_time = cur_time - head_time;\n\t\tdouble lcl_dif_time = dif_time/1000.0;\n\t\tString dif_time_str = Double.toString(lcl_dif_time);\n \n\t\t/**\n\t\t * CREATE THE TUPLE STRING\n\t\t */\n\t\ttuples.append(\tdif_time_str + // #1 : timestamp\n\t\t\t\t\t\t\"\\t\" + \n\t\t\t\t\t\tString.valueOf(schema_id) + // #2 : stream_id\n\t\t\t\t\t\t\"\\t\" + \n\t\t\t\t\t\tString.valueOf(seq_no) // #3 : seq_no\n\t\t\t\t\t); \n\t\t\n\t\tfor (int i = 0; i < data.length; i++) { // #4 : data\n\t\t\ttuples.append(\"\\t\" + data[i]);\n\t\t}\n\t\t\n\t\ttuples.append(\"\\n\");\n\t\treturn true;\n\t}", "private void writeFields(TupleAccessor tuple) {\n for ( int i = 0; i < fieldCount; i++ ) {\n if ( isNull[i] || isRepeated[i] )\n continue;\n FieldAccessor field = tuple.getField( i );\n serializer[i].serialize( writer, field );\n }\n }", "public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;", "private void saveTuple(ArrayList<Tuple> tupleList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(tupleList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void save(IntLongsCol col, DataOutputStream output) throws IOException;", "public <T> void write(MDSKey id, T value) {\n try {\n table.put(new Put(id.getKey()).add(COLUMN, serialize(value)));\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }", "public Key insert(Transaction tx,Tuple t) throws RelationException;", "public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;", "@Override\n public void process(StreamingInput<Tuple> stream, Tuple tuple) throws Exception {\n \t\n \t// Collect fields to add to JSON output.\n\t\tStreamSchema schema = tuple.getStreamSchema();\n \tSet<String> attributeNames = schema.getAttributeNames();\n \tJSONObject jsonFields = new JSONObject();\n\t \n\tfor (String attributeName : attributeNames) {\n\t\tif (schema.getAttribute(attributeName).getType().getMetaType() == Type.MetaType.RSTRING) {\n\t\t\tjsonFields.put(attributeName, tuple.getObject(attributeName).toString());\n\t\t} else {\n\t\t\tjsonFields.put(attributeName, tuple.getObject(attributeName));\n\t\t}\n\t}\n \n \t// Add timestamp, if specified, for time-based queries.\n \tif (timestampName != null) {\n \t\tDateFormat df = new SimpleDateFormat(\"yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSZZ\");\n \t\t\n \t\tif (attributeNames.contains(timestampName) && schema.getAttribute(timestampName).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(timestampName).equals(\"\")) {\n \t\t\tString timestampToInsert = tuple.getString(timestampName);\n \t\t\tjsonFields.put(timestampName, df.format(timestampToInsert));\n \t\t} else {\n \t\t\tjsonFields.put(timestampName, df.format(new Date(System.currentTimeMillis())));\n \t\t}\n \t}\n \t\n \t// Get index name/type/id specified inside tuple (default: from params).\n \tString indexToInsert = index;\n \tString typeToInsert = type;\n \tString idToInsert = null;\n \t\n \tif (attributeNames.contains(index) && schema.getAttribute(index).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(index).equals(\"\")) {\n \t\tindexToInsert = tuple.getString(index);\n \t}\n \t\n \tif (attributeNames.contains(type) && schema.getAttribute(type).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(type).equals(\"\")) {\n \t\ttypeToInsert = tuple.getString(type);\n \t}\n\n \tif (id != null && attributeNames.contains(id) && schema.getAttribute(id).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(id).equals(\"\")) {\n \t\tidToInsert = tuple.getString(id);\n \t}\n \t\n \tif (connectedToElasticsearch(indexToInsert, typeToInsert)) {\n \t\n \t\t// Add jsonFields to bulkBuilder.\n \tString source = jsonFields.toString();\n \t\n \tif (idToInsert != null) {\n \t\tbulkBuilder.addAction(new Index.Builder(source).index(indexToInsert).type(typeToInsert).id(idToInsert).build());\n \t} else {\n \t\tbulkBuilder.addAction(new Index.Builder(source).index(indexToInsert).type(typeToInsert).build());\n \t}\n \t\n \tcurrentBulkSize++;\n \t\n \t// If bulk size met, output jsonFields to Elasticsearch.\n \tif(currentBulkSize >= bulkSize) {\n\t \tBulk bulk = bulkBuilder.build();\n\t \tBulkResult result;\n\t \t\n\t \ttry {\n\t\t \tresult = client.execute(bulk);\n\t \t} catch (NoHttpResponseException e) {\n\t \t\t_trace.error(e);\n\t \t\treturn;\n\t \t}\n\t \t\n \t\t\tif (result.isSucceeded()) {\n \t\t\t\tlong currentNumInserts = numInserts.getValue();\n \t\t\t\tnumInserts.setValue(currentNumInserts + bulkSize);\n \t\t\t\tcurrentBulkSize = 0;\n \t\t\t} else {\n \t\t\t\tfor (BulkResultItem item : result.getItems()) {\n \t\t\t\t\tif (item.error != null) {\n \t\t\t\t\t\tnumInserts.increment();\n \t\t\t\t\t} else {\n \t\t\t\t\t\ttotalFailedRequests.increment();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// Clear bulkBuilder. Gets recreated in connectedToElasticsearch().\n \t\t\tbulkBuilder = null;\n \t\t\t\n \t\t\t// Get size metrics for current type.\n \t\t\tif (sizeMetricsEnabled && mapperSizeInstalled) {\n\t \t\t\tString query = \"{\\n\" +\n\t \t \" \\\"query\\\" : {\\n\" +\n\t \t \" \\\"match_all\\\" : {}\\n\" +\n\t \t \" },\\n\" +\n\t \t \" \\\"aggs\\\" : {\\n\" +\n\t \t \" \\\"size_metrics\\\" : {\\n\" +\n\t \t \" \\\"extended_stats\\\" : {\\n\" +\n\t \t \" \\\"field\\\" : \\\"_size\\\"\\n\" +\n\t \t \" }\\n\" +\n\t \t \" }\\n\" +\n\t \t \" }\\n\" +\n\t \t \"}\";\n\t \t\t\t\n\t \t Search search = new Search.Builder(query)\n\t \t .addIndex(indexToInsert)\n\t \t .addType(typeToInsert)\n\t \t .build();\n\t \t \n\t \t SearchResult searchResult = client.execute(search);\n\t \t \n\t \t if (searchResult.isSucceeded()) {\n\t\t \t ExtendedStatsAggregation sizeMetrics = searchResult.getAggregations().getExtendedStatsAggregation(\"size_metrics\");\n\t\t \t\t\t\n\t\t \t if (sizeMetrics != null) {\n\t\t \t \tif (sizeMetrics.getAvg() != null) {\n\t\t\t\t \t\t\tavgInsertSizeBytes.setValue(sizeMetrics.getAvg().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getMax() != null) {\n\t\t \t \t\tmaxInsertSizeBytes.setValue(sizeMetrics.getMax().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getMin() != null) {\n\t\t \t \t\tminInsertSizeBytes.setValue(sizeMetrics.getMin().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getSum() != null) {\n\t\t \t \t\tsumInsertSizeBytes.setValue(sizeMetrics.getSum().longValue());\n\t\t \t \t}\n\t\t \t }\n\t \t }\n \t\t\t}\n \t\t}\n \t}\n }", "void write(List<?> columns) throws IOException;", "public abstract void write(T dataElement);", "public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;", "private static void writeTupleToBuffer(ByteBuffer buffer, Tuple elt) {\n \n if (ABIToken.STANDARD_LEAF_TYPE_MAP.containsKey(elt.standardType)) {\n // This is a direct leaf type (including a primitive array - they are caught here).\n writeNonArrayToBuffer(buffer, elt.standardType, elt.value);\n } else {\n // This might be an array or something unknown.\n Class<?> componentStandardType = elt.standardType.getComponentType();\n if (ABIToken.STANDARD_LEAF_TYPE_MAP.containsKey(componentStandardType)) {\n // We can write an array token and then the elements.\n Object[] cast = (Object[]) elt.value;\n // (note that it is possible we are seeing a null array so handle that here).\n if (null == cast) {\n buffer.put(ABIToken.NULL.identifier);\n }\n // Now, write the standard array token and leaf type identifier.\n buffer.put(ABIToken.ARRAY.identifier);\n buffer.put(ABIToken.STANDARD_LEAF_TYPE_MAP.get(componentStandardType).identifier);\n // Proceed with length and contents if it was not null.\n if (null != cast) {\n writeLength(buffer, cast.length);\n \n // Now, walk the elements and handle them.\n for (Object val : cast) {\n writeNonArrayToBuffer(buffer, componentStandardType, val);\n }\n }\n } else {\n // Unknown type - no message, due to uncertainty of portability.\n throw new IllegalArgumentException();\n }\n }\n }", "public void insertTuple(TransactionId tid, int tableId, Tuple t)\n throws DbException, IOException, TransactionAbortedException {\n // some code goes here\n // not necessary for proj1\n try {\n DbFile dbFile = Database.getCatalog().getDbFile(tableId);\n HeapFile heapFile = (HeapFile)dbFile;\n List<Page> pages = heapFile.insertTuple(tid, t);\n //Database.getCatalog().getDbFile(tableId)\n // .insertTuple(tid, t);\n for (Page page : pages) {\n page.markDirty(true, tid);\n // updateLruWithNewNode(page.getId(), page);\n }\n } catch (TransactionAbortedException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (DbException e) {\n e.printStackTrace();\n System.exit(0);\n }\n }", "@Override\n public void putAll(byte keys[][], byte values[][]) throws Exception {\n BufferedMutator mutator = getNextConnection().getBufferedMutator(dataTableName);\n for (int i = 0; i < keys.length; i++) {\n byte[] actualKey = transformKey(keys[i]);\n Put put = new Put(actualKey);\n put.addColumn(this.columnFamily, this.columnName, values[i]);\n mutator.mutate(put);\n }\n mutator.close();\n }", "@Override\n public void write(WritableComparable key, Tuple value)\n throws IOException, InterruptedException {\n if(mode == Mode.SINGLE_STORE) {\n if (!(value instanceof NonWritableTuple)) {\n storeDecorator.putNext(value);\n }\n } else {\n throw new IOException(\"Internal Error: Unexpected code path\");\n }\n }", "private void placeInOutput(Tuple tuple) {\n\t\tif (outputBuffer.size() < bufferCapacity) {\n\t\t\toutputBuffer.add(tuple);\n\t\t} else {\n\t\t\tflushOutputBuffer();\n\t\t\tif (outputBuffer.size() < bufferCapacity) {\n\t\t\t\toutputBuffer.add(tuple);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"MAJOR ERROR IN WRITING TO ES OUTPUT BUFFER\");\n\t\t\t}\n\t\t\twriterFlushes++;\n\t\t\t// next bucket when we have written numInputBuffers^passNumber\n\t\t\tif (writerFlushes % Math.pow(numInputBuffers, passNumber) == 0) {\n\t\t\t\twriterBucketID++;\n\t\t\t\toutputWriter = new TupleWriterBinary(DatabaseCatalog.getInstance().getTempDirectory() + \"/\"\n\t\t\t\t\t\t+ instanceHashcode + \"_\" + passNumber + \"_\" + writerBucketID);\n\t\t\t}\n\t\t}\n\t}", "public void writeRow(Object[] colValues) throws IOException;", "protected byte[] serializeCursor(int offset, int pageSize, Serializable[] tuple) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try (ObjectOutputStream oos = new ObjectOutputStream(baos)) {\n oos.write(offset);\n oos.write(pageSize);\n oos.writeObject(tuple);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n return baos.toByteArray();\n }", "protected void handleData(T tuple)\n throws DataException\n {\n \n if (tuple.isMutable())\n {\n if (sequence!=null)\n {\n if (sequenceField.getValue(tuple)==null)\n { \n String sequenceVal = Long.toString(sequence.next());\n if (debug)\n { \n log.fine\n (\"Generated sequence \"+sequenceVal\n +\" for \"+sequenceField.getURI()\n );\n }\n \n sequenceField.setValue\n ((EditableTuple) tuple\n ,sequenceField.getType().fromString(sequenceVal)\n ); \n }\n else\n { \n if (debug)\n {\n log.fine\n (\"Sequence field not null \"+sequenceField.getURI());\n }\n }\n }\n else\n { \n if (sequenceField!=null)\n { log.fine(\"Sequence is null for \"+sequenceField);\n }\n }\n\n if (defaultSetters!=null)\n {\n for (Setter<?> setter : defaultSetters)\n { \n if (setter.getTarget().get()==null)\n { setter.set();\n }\n }\n }\n\n if (fixedSetters!=null)\n {\n for (Setter<?> setter : fixedSetters)\n { setter.set();\n }\n }\n }\n else\n {\n if (debug)\n {\n log.fine\n (\"Not a mutable Tuple \"+tuple);\n }\n }\n \n if (inspector!=null)\n {\n Violation<T>[] violations=inspector.inspect(tuple);\n if (violations!=null)\n { throw new DataException(null,new RuleException(violations));\n }\n }\n \n }", "public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "public final /* synthetic */ void saveToDb() {\n DruidPooledConnection druidPooledConnection;\n DruidPooledConnection druidPooledConnection2;\n block18: {\n block17: {\n StringBuilder stringBuilder;\n PreparedStatement preparedStatement;\n MaplePet a2;\n if (!a2.a) {\n return;\n }\n try {\n druidPooledConnection2 = DBConPool.getInstance().getDataSource().getConnection();\n try {\n preparedStatement = druidPooledConnection2.prepareStatement(ConcurrentEnumMap.ALLATORIxDEMO(\";\\t*\\u0018:\\u001cN)\\u000b-\\u001dy=\\u001c:y\\u00008\\u0003<NdNfBy\\u0002<\\u0018<\\u0002ySyQuN:\\u00026\\u001d<\\u0000<\\u001d*NdNfBy\\b,\\u00025\\u0000<\\u001d*NdNfBy\\u001d<\\r6\\u0000=\\u001dySyQuN?\\u00028\\t*NdNfBy\\u000b!\\r5\\u001b=\\u000b=NdNfNuN*\\u001e<\\u000b=NdNfBy\\f,\\b?\\u001d2\\u00075\\u00020\\nySyQuN:\\u000f7>0\\r2;)NdNfBy\\u001d2\\u00075\\u00020\\nySyQy9\\u0011+\\u000b+y\\u001e<\\u001a0\\nySyQ\"));\n try {\n int n2;\n PreparedStatement preparedStatement2 = preparedStatement;\n PreparedStatement preparedStatement3 = preparedStatement;\n preparedStatement.setString(1, a2.h);\n preparedStatement3.setByte(2, a2.e);\n preparedStatement3.setShort(3, a2.B);\n preparedStatement2.setByte(4, a2.H);\n preparedStatement2.setInt(5, a2.J);\n preparedStatement.setShort(6, a2.k);\n stringBuilder = new StringBuilder();\n int n3 = n2 = 0;\n while (n3 < a2.d.length) {\n stringBuilder.append(a2.d[n2]);\n stringBuilder.append(KoreanDateUtil.ALLATORIxDEMO(\"V\"));\n n3 = ++n2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable2;\n if (preparedStatement != null) {\n try {\n preparedStatement.close();\n throwable2 = throwable;\n throw throwable2;\n }\n catch (Throwable throwable3) {\n throwable.addSuppressed(throwable3);\n }\n }\n throwable2 = throwable;\n throw throwable2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable4;\n if (druidPooledConnection2 != null) {\n try {\n druidPooledConnection2.close();\n throwable4 = throwable;\n throw throwable4;\n }\n catch (Throwable throwable5) {\n throwable.addSuppressed(throwable5);\n }\n }\n throwable4 = throwable;\n throw throwable4;\n }\n }\n catch (SQLException sQLException) {\n FilePrinter.printError(ConcurrentEnumMap.ALLATORIxDEMO(\"\\u0014\\u000f)\\u0002<><\\u001aw\\u001a!\\u001a\"), sQLException, KoreanDateUtil.ALLATORIxDEMO(\"e\\u001b`\\u001fB\\u0015R\\u0018\"));\n return;\n }\n {\n String string = stringBuilder.toString();\n PreparedStatement preparedStatement4 = preparedStatement;\n PreparedStatement preparedStatement5 = preparedStatement;\n PreparedStatement preparedStatement6 = preparedStatement;\n String string2 = string;\n preparedStatement6.setString(7, string2.substring(0, string2.length() - 1));\n preparedStatement6.setInt(8, a2.ALLATORIxDEMO);\n preparedStatement5.setInt(9, a2.I);\n preparedStatement5.setShort(10, a2.K);\n preparedStatement4.setInt(11, a2.M);\n preparedStatement4.setInt(12, a2.D);\n preparedStatement4.executeUpdate();\n a2.a = false;\n if (preparedStatement == null) break block17;\n druidPooledConnection = druidPooledConnection2;\n }\n preparedStatement.close();\n break block18;\n }\n druidPooledConnection = druidPooledConnection2;\n }\n if (druidPooledConnection == null) return;\n druidPooledConnection2.close();\n }", "public abstract void save(LongDoublesCol col, DataOutputStream output) throws IOException;", "private Mutation mutationFromTuple(Tuple t) throws IOException\n {\n Mutation mutation = new Mutation();\n if (t.get(1) == null)\n {\n if (allow_deletes)\n {\n mutation.deletion = new Deletion();\n mutation.deletion.predicate = new org.apache.cassandra.thrift.SlicePredicate();\n mutation.deletion.predicate.column_names = Arrays.asList(objToBB(t.get(0)));\n mutation.deletion.setTimestamp(FBUtilities.timestampMicros());\n }\n else\n throw new IOException(\"null found but deletes are disabled, set \" + PIG_ALLOW_DELETES +\n \"=true in environment or allow_deletes=true in URL to enable\");\n }\n else\n {\n org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column();\n column.setName(objToBB(t.get(0)));\n column.setValue(objToBB(t.get(1)));\n column.setTimestamp(FBUtilities.timestampMicros());\n mutation.column_or_supercolumn = new ColumnOrSuperColumn();\n mutation.column_or_supercolumn.column = column;\n }\n return mutation;\n }", "public abstract void save(IntDoublesCol col, DataOutputStream output) throws IOException;", "void write(String... columns) throws IOException;", "public void insertTuple(TransactionId tid, int tableId, Tuple t)\n throws DbException, IOException, TransactionAbortedException {\n // some code goes here\n // not necessary for lab1\n DbFile dbFile = Database.getCatalog().getDatabaseFile(tableId);\n ArrayList<Page> affectedPgs = dbFile.insertTuple(tid, t);\n for (Page page : affectedPgs) {\n page.markDirty(true, tid);\n // bufferPool.replace(page.getId(), page);\n // bufferPool.remove(page.getId());\n bufferPool.put(page.getId(), page);\n }\n }", "public void writeSQL(SQLOutput stream) throws SQLException{\r\n}", "public void write_to_buffer(DataOutputStream out) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n out.writeFloat(this.data[i]);\r\n }\r\n out.writeFloat(this.distanz);\r\n// out.write(this.PlaceId.getBytes());\r\n out.writeInt(this.getPlaceId());\r\n// System.out.println(\"heheheh +::\" + this.PlaceId.length);\r\n out.writeDouble(this.location[0]);\r\n out.writeDouble(this.location[1]);\r\n// System.out.println(\"heheheh +::\" +this.PlaceId.getBytes().length);\r\n }", "public boolean\n\tstoreData_withTimeStamp\n\t(SQLiteDatabase db, String tableName,\n\t\t\tString[] cols, String[] values) {\n\t\ttry {\n\t\t\t//\n\t\t\tdb.beginTransaction();\n\t\t\t\n\t\t\t//\n\t\t\tContentValues cv = new ContentValues();\n\t\t\t\n\t\t\t/***************************************\n\t\t\t * Time stamps\n\t\t\t ***************************************/\n\t\t\t// \"created_at\"\n\t\t\tcv.put(\n\t\t\t\t\tCONS.DB.timeStamps[0],\n\t\t\t\t\tMethods.getMillSeconds_now());\n\n\t\t\t// \"modified_at\"\n\t\t\tcv.put(\n\t\t\t\t\tCONS.DB.timeStamps[1],\n\t\t\t\t\tMethods.getMillSeconds_now());\n\n\t\t\t/***************************************\n\t\t\t * Other values\n\t\t\t ***************************************/\n\t\t\t// Put values\n\t\t\tfor (int i = 0; i < cols.length; i++) {\n\t\t\t\tcv.put(cols[i], values[i]);\n\t\t\t}//for (int i = 0; i < columnNames.length; i++)\n\n\t\t\t// Insert data\n\t\t\tdb.insert(tableName, null, cv);\n\t\t\t\n\t\t\t// Set as successful\n\t\t\tdb.setTransactionSuccessful();\n\n\t\t\t// End transaction\n\t\t\tdb.endTransaction();\n\t\t\t\n\t\t\t// Log\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i = 0; i < cols.length; i++) {\n\t\t\t\t//\n\t\t\t\tsb.append(cols[i] + \" => \" + values[i] + \"/\");\n\t\t\t\t\n\t\t\t}//for (int i = 0; i < cols.length; i++)\n\t\t\t\n\t\t\tLog.d(\"DBUtils.java\" + \"[\"\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t\t+ \"]\", \"Stored => \" + sb.toString());\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// Log\n\t\t\tLog.e(\"DBUtils.java\" + \"[\"\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\n\t\t\t\t\t+ \"]\", \"Exception => \" + e.toString());\n\t\t\t\n\t\t\treturn false;\n\t\t}//try\n\t\t\n\t}", "public void addTuple(Tuple tup) {\n table.add(tup);\n }", "@Insert({\n \"insert into generalcourseinformation (courseid, code, \",\n \"name, teacher, credit, \",\n \"week, day_detail1, \",\n \"day_detail2, location, \",\n \"remaining, total, \",\n \"extra, index)\",\n \"values (#{courseid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{teacher,jdbcType=VARCHAR}, #{credit,jdbcType=INTEGER}, \",\n \"#{week,jdbcType=VARCHAR}, #{day_detail1,jdbcType=VARCHAR}, \",\n \"#{day_detail2,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, \",\n \"#{remaining,jdbcType=INTEGER}, #{total,jdbcType=INTEGER}, \",\n \"#{extra,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER})\"\n })\n int insert(GeneralCourse record);", "public void push(org.glite.rgma.server.system.TupleSet rs) throws RGMAPermanentException, RGMAPermanentException {\n\t\tsynchronized (this) {\n\t\t\tString warning = rs.getWarning();\n\t\t\tif (warning != null) {\n\t\t\t\tm_warning = warning;\n\t\t\t}\n\t\t\tfor (String[] tuple : rs.getData()) {\n\t\t\t\tif (m_queue.size() >= m_maxTuplesMem) {\n\t\t\t\t\tif (m_write - m_read > m_maxTuplesDB) { // Check on how many tuples on disk\n\t\t\t\t\t\tthrow new RGMAPermanentException(\"Tuple Queue is full - you must pop faster\");\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!m_tableCreated) { // Make sure the table exists\n\t\t\t\t\t\t\tm_columnCount = tuple.length;\n\t\t\t\t\t\t\tStringBuilder create = new StringBuilder(\"CREATE TABLE \" + m_databaseTableName + \"(SEQ INT PRIMARY KEY\");\n\t\t\t\t\t\t\tfor (int i = 0; i < m_columnCount; i++) {\n\t\t\t\t\t\t\t\tcreate.append(\" ,COL\" + i + \" TEXT\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcreate.append(\" , INDEX (SEQ)) ENGINE MYISAM\");\n\t\t\t\t\t\t\tMySQLConnection.executeSimpleUpdate(create.toString());\n\t\t\t\t\t\t\tm_tableCreated = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tStringBuffer insert = new StringBuffer().append(\"INSERT INTO \").append(m_databaseTableName).append(\" VALUES\");\n\t\t\t\t\t\tboolean empty = true;\n\t\t\t\t\t\tfor (int i = 0; i < m_maxTuplesMem; i++) {\n\t\t\t\t\t\t\tString[] tupleToMove = m_queue.remove();\n\n\t\t\t\t\t\t\tif (empty) {\n\t\t\t\t\t\t\t\tempty = false;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tinsert.append(\", \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tinsert.append(\"(\").append(m_write++);\n\t\t\t\t\t\t\tfor (String value : tupleToMove) {\n\t\t\t\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\t\t\t\tinsert.append(\" ,null\");\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tinsert.append(\" ,'\").append(value.replace(\"'\", \"''\")).append(\"'\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tinsert.append(')');\n\n\t\t\t\t\t\t\tif ((i + 1) % m_tupleWriteBatchSize == 0) {\n\t\t\t\t\t\t\t\tMySQLConnection.executeSimpleUpdate(insert.toString());\n\t\t\t\t\t\t\t\tinsert = new StringBuffer().append(\"INSERT INTO \").append(m_databaseTableName).append(\" VALUES\");\n\t\t\t\t\t\t\t\tempty = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!empty) { // Store any tuples not yet written\n\t\t\t\t\t\t\tMySQLConnection.executeSimpleUpdate(insert.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\tthrow new RGMAPermanentException(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tm_queue.add(tuple); // and add the tuple to the queue\n\t\t\t}\n\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\tLOG.debug(rs.getData().size() + \" tuples just stored in TupleQueue. New status is: MSIZE=\" + m_queue.size() + \" Readptr=\" + m_read\n\t\t\t\t\t\t+ \" Writeptr=\" + m_write + \" Count=\" + (m_queue.size() + m_write - m_read));\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void execute(Tuple tuple, BasicOutputCollector collector) {\n\t\tString sentence = tuple.getValue(0).toString();\n\t\ttry {\n\t\t\tsentence = new String(sentence.getBytes(),\"utf-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n collector.emit(new Values(sentence));\n List<DBObject> dbList = new ArrayList<DBObject>(); \n BasicDBObject doc1 = new BasicDBObject(); \n doc1.put(\"ywlog\", sentence);\n int left = sentence.indexOf(\"datetime\");\n if(sentence.contains(\"datetime\")){\n \tdoc1.put(\"datetime\", sentence.substring(left+11, left+30));\n }\n dbList.add(doc1); \n myCollection.insert(dbList);\n\t}", "public void writeDatabase();", "DataFrameWrite<R,C> write();", "public <E extends Writeable> void write(String sql);", "public boolean save(T data) throws MIDaaSException;", "public abstract void write(int rowCount) throws IOException;", "public void write(long[] timestamps, Binary[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }", "R serializeData(T t);", "public void writeSQL(SQLOutput stream) throws SQLException {\n}", "public abstract void readDataItem(BDTuple tuple) throws RollbackException;", "public void persist(DataOutputStream dos) throws Exception;", "public static void addTupleAsOneCell(List<Cell> result,\n Tuple tuple,\n TupleProjector tupleProjector,\n ImmutableBytesWritable ptr) {\n byte[] value =\n tupleProjector.getSchema().toBytes(tuple, tupleProjector.getExpressions(),\n tupleProjector.getValueBitSet(), ptr);\n Cell firstCell = result.get(0);\n Cell keyValue =\n PhoenixKeyValueUtil.newKeyValue(firstCell.getRowArray(),\n firstCell.getRowOffset(),firstCell.getRowLength(), VALUE_COLUMN_FAMILY,\n VALUE_COLUMN_QUALIFIER, firstCell.getTimestamp(), value, 0, value.length);\n result.add(keyValue);\n }", "private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}", "private void addKeyToTuple(Tuple tuple, ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException\n {\n if( comparator instanceof AbstractCompositeType )\n {\n StorageHelper.setTupleValue(tuple, 0, composeComposite((AbstractCompositeType) comparator, key));\n }\n else\n {\n StorageHelper.setTupleValue(tuple, 0, StorageHelper.cassandraToObj(getDefaultMarshallers(cfDef).get(MarshallerType.KEY_VALIDATOR), key, nativeProtocolVersion));\n }\n\n }", "public static void writeDatabase(HashMap h, String newData) throws Exception\r\n {\r\n Connection connection = null;\r\n try\r\n {\r\n // Register MySQL JDBC driver to be known by \r\n // the DriverManager object.\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n // Get a connection to database. We prepare the \r\n // connection information here such as database \r\n // url, user and password.\r\n String url = \"jdbc:mysql://localhost/myDatabase\";\r\n String user = \"Evan\";\r\n String password = \"apcs\";\r\n connection = DriverManager.getConnection(url, \r\n user, password);\r\n\r\n // Create a statement object instance from the \r\n // connection\r\n Statement stmt = connection.createStatement();\r\n\r\n // We are going to execute an insert statement. \r\n // First you have to create a table that has an \r\n // ID, NAME and ADDRESS field. For ID you can use \r\n // an auto number, while NAME and ADDRESS are \r\n // VARCHAR fields.\r\n String sql = \"INSERT INTO data (Sales) \" +\r\n \"VALUES ('\"+ newData + \"')\";\r\n\r\n // Call an execute method in the statement object \r\n // and passed the sql or query string to it.\r\n stmt.execute(sql);\r\n\r\n // After this statement is executed you'll have a \r\n // record in your users table.\r\n } catch (ClassNotFoundException e)\r\n {\r\n\r\n } catch (SQLException e)\r\n {\r\n\r\n } finally\r\n {\r\n if (connection != null)\r\n {\r\n connection.close();\r\n }\r\n }\r\n }", "public void writeDataToDatabase(List<Company> cl){\n\t\tjdbcTemplate.update(\"CREATE TABLE IF NOT EXISTS \" + table + \" (date varchar(40), security varchar(100), weighting float(53));\");\n\t\tfor(Company c : cl){\n\t\t\tthis.writeCompany(c.getDate(), c.getSecurity() ,c.getWeighting());\n\t\t}\n\t}", "void row_Create(String[] col){\n\t\tStatement stm=null;\n\t\tResultSet rs=null;\n\t\tint currentMaxId=0;\n\t\ttry{\n\t\t\t//Create one tuple by executing SQL command\n\t\t\tstm=con.createStatement();\n\t\t\trs=stm.executeQuery(\"select max(id) from \"+tableName);\n\t\t\tif(rs.next()) currentMaxId=rs.getInt(1);\n\t\t\tString sql=\"insert into \"+tableName+ \" values(\"+(currentMaxId+1)+\", '\"+col[1]+\"', '\"+col[2]+\"', '\"+col[3]+\"', '\"+col[4]+\"', '\"+col[5]+\"', \"+col[6]+\", \"+col[7]+\", \"+col[8]+\", '\"+col[9]+\"', '\"+col[10]+\"', \"+col[11]+\", \"+col[12]+\", '\"+col[13]+\"', '\"+col[14]+\"')\";\n\t\t\tSystem.out.println(\"sql: \"+sql);\n\t\t\tstm.executeUpdate(sql);\n\t\t\t\n\t\t\t//Append commands and time stamp on log file\n\t\t\toutfile.write(\"TIMESTAMP: \"+getTimestamp());\n\t\t\toutfile.newLine();\n\t\t\toutfile.write(sql);\n\t\t\toutfile.newLine();\n\t\t\toutfile.newLine();\n\t\t\n\t\t//Catch SQL exception\n\t\t}catch (SQLException e ) {\n\t\t\te.printStackTrace();\n\t }\n\t\t\n\t\t//catch I/O exception\n\t\tcatch(IOException ioe){ \n\t\t\t ioe.printStackTrace();\n\t\t System.exit(1);\n\t\t} finally {\n\t \ttry{\n\t if (stm != null) stm.close(); \n\t if (rs!=null) rs.close();\n\t }\n\t \tcatch (SQLException e ) {\n\t \t\te.printStackTrace();\n\t\t }\n\t }\t\n }", "void setBytes(int index, byte[] value) throws SQLException;", "public abstract void writeToStream(DataOutputStream dataOutputStream);", "public static void write(List<Individual> rows, List<Column> allColumns) {\n\t\tConnection c = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/microsim\", \"postgres\", \"microsim2016\");\n\t\t\tc.setAutoCommit(false);\n\t\t\n\t\t\tString create = \"CREATE TABLE TOTAL(\";\n\t\t\tMap<Column, String> values = rows.get(0).getValues();\n\t\t\tfor (Column col : values.keySet()) {\n\t\t\t\tSource s = col.source;\n\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInteger.parseInt(values.get(col));\n\t\t\t\t\t\tcreate = create + col.datatype + \" BIGINT \" + \"NOT NULL, \";\n\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\tcreate = create + col.datatype + \" VARCHAR \" + \"NOT NULL, \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcreate = create + \" PRIMARY KEY(id));\"; \n\t\t\tstmt = c.prepareStatement(create);\t\t\t\n\t\t\tstmt.executeUpdate();\n\t\t\tfor (Individual i : rows) {\n\t\t\t\tString insert = \"INSERT INTO TOTAL \" +\n\t\t\t\t\t\t\t\t\"VALUES (\";\n\t\t\t\t\n\t\t\t\tMap<Column, String> iValues = i.getValues();\n\t\t\t\tfor (Column col : iValues.keySet()) {\n\t\t\t\t\tSource sc = col.source;\n\t\t\t\t\tif (!sc.equals(Source.MULTI_VALUE) && !sc.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\tString s = iValues.get(col);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tInteger.parseInt(s);\n\t\t\t\t\t\t\tinsert = insert + \" \" + s + \",\"; \n\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\tinsert = insert + \" '\" + s + \"', \"; //doing this each time because need to add '' if a string and no user input\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tinsert = insert.substring(0, insert.length() - 2); //cut off last , \n\t\t\t\tinsert = insert + \");\"; \n\t\t\t\tstmt = c.prepareStatement(insert);\n\t\t\t\tstmt.executeUpdate();\t\t\t\n\t\t\t}\n\t\t\tstmt.close();\n\t\t\tsubTables(rows, c, allColumns);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n\t System.exit(0);\n\t\t}\t\t\t\t\n\t}", "public void run() {\n String query = \"INSERT INTO CustomData (Server, Plugin, ColumnID, DataPoint, Updated) VALUES\";\n int currentSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // Iterate through each column\n for (Map.Entry<Column, Integer> entry : customData.entrySet()) {\n Column column = entry.getKey();\n int value = entry.getValue();\n\n // append the query\n query += \" (\" + server.getId() + \", \" + plugin.getId() + \", \" + column.getId() + \", \" + value + \", \" + currentSeconds + \"),\";\n }\n\n // Remove the last comma\n query = query.substring(0, query.length() - 1);\n\n // add the duplicate key entry\n query += \" ON DUPLICATE KEY UPDATE DataPoint = VALUES(DataPoint) , Updated = VALUES(Updated)\";\n\n // queue the query\n new RawQuery(mcstats, query).save();\n }", "public <E extends Writeable> void storeObject(String sql, E e);", "public void objectToEntry(Object object, TupleOutput to) {\n // Write the data to the TupleOutput (a DatabaseEntry).\n // Order is important. The first data written will be\n // the first bytes used by the default comparison routines.\n\n BaseTuple bt = (BaseTuple) object;\n\n for(int i = 0; i < r.getNumberOfAttributes(); i++) {\n if(r.getAttributeType(i) == Globals.INTEGER) {\n to.writeInt(((Integer) bt.values[i]).intValue());\n } else {\n assert r.getAttributeType(i) == Globals.STRING;\n to.writeString((String) bt.values[i]);\n }\n }\n }", "public Tuple()\n {\n // Creat a new tuple\n data = new byte[max_size];\n tuple_offset = 0;\n tuple_length = max_size;\n }", "public void write(long[] timestamps, int[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }", "@Override\r\n\tpublic void execute( Object obj ) throws Exception {\r\n\t\tTuple t = ( Tuple ) obj;\r\n\t\tif ( t.getType() == TupleType.TRIPLET ) saveEntity( obj );\r\n\t\tif ( t.getType() == TupleType.QUARTET ) saveAncestorAndHistory( obj );\r\n\t}", "public void write(DataOutputStream out) throws IOException;", "public abstract void write(List<EmitterSystemState> data)\n\t\t\tthrows FailedToWriteToDatastoreException;", "public void storeValues() throws SQLException { //store values into the database\n \tstoreValuesDump();\n \tstoreValuesMatl();\n }", "public void saveToDB(String sellerID, ArrayList<String> data) throws SQLException {\n\t\tString sql = \"update contactseller_seller_feedback_stastics set positive_month_1 = ?, positive_month_3= ?, positive_year_1= ?, positive_lifetime= ?, neutral_month_1= ?, neutral_month_3= ?, neutral_year_1= ?, neutral_lifetime= ?, negative_month_1= ?, negative_month_3= ?, negative_year_1= ?, negative_lifetime= ?, count_month_1= ?, count_month_3= ?, count_year_1= ?, count_lifetime= ? where seller_id = ? and country = ?\";\r\n\t\tPreparedStatement pstmt = conn.prepareStatement(sql);\r\n\r\n\t\tfor (int i = 0; i < data.size(); i++) {\r\n\t\t\tpstmt.setString(i + 1, data.get(i).replace(\",\", \"\"));\r\n\t\t}\r\n\t\tpstmt.setString(data.size() + 1, sellerID);\r\n\t\tpstmt.setString(data.size() + 2, this.country.toString());\r\n\t\tpstmt.addBatch();\r\n\t\tpstmt.executeBatch();\r\n\t\t// conn.close();\r\n\t\tSystem.out.println(\"inserted\");\r\n\r\n\t}", "public int insertSensorData(DataValue dataVal) throws Exception;", "public void write(long[] timestamps, long[] values, int batchSize) {\n for (int i = 0; i < batchSize; i++) {\n timeEncoder.encode(timestamps[i], timeOut);\n valueEncoder.encode(values[i], valueOut);\n }\n statistics.update(timestamps, values, batchSize);\n }", "public void sendDataToDB() throws JSONException, InstantiationException, IllegalAccessException, ClassNotFoundException, UnirestException, ParseException {\r\n\t\t\r\n\t\tArrayList<HashMap<String, String>> dataSet = new ArrayList<>();\r\n\t\t\r\n\t\tfor (int i = 0; i < dataArray.length(); i++) {\r\n\t\t\tHashMap<String, String> jsonObject = new HashMap<String, String>();\r\n\t\t\tjsonObject.put(\"id\" ,dataArray.getJSONObject(i).get(\"id\").toString());\r\n\t\t\tjsonObject.put(\"name\", dataArray.getJSONObject(i).get(\"name\").toString());\r\n\t\t\tjsonObject.put(\"free_bikes\", dataArray.getJSONObject(i).get(\"free_bikes\").toString());\r\n\t\t\tjsonObject.put(\"timestamp\", changeTimeStamptoUnixTimeString(dataArray.getJSONObject(i).get(\"timestamp\").toString()));\r\n\t\t\tjsonObject.put(\"latitude\", dataArray.getJSONObject(i).get(\"latitude\").toString());\r\n\t\t\tjsonObject.put(\"longitude\", dataArray.getJSONObject(i).get(\"longitude\").toString());\r\n\r\n\t\t\tdataSet.add(jsonObject);\r\n\t\t}\r\n\t\t\r\n\t\t// Send whole data to DBService\r\n\t\tUnirest.post(\"http://stadtraddbservice:6000/newData\")\r\n\t\t//Unirest.post(\"http://localhost:6000/newData\") // Fuer lokalen Test\r\n\t\t .body(new Gson().toJson(dataSet))\r\n\t\t .asString();\r\n\t}", "@Override\n public long insertCompactRaw(String password, ContactType type, long id) {\n // Specialized Insert - InsertType - BEGIN\n if (insertCompactRawPreparedStatement9==null) {\n // generate static SQL for statement\n String _sql=\"INSERT INTO contact (password, type, id) VALUES (?, ?, ?)\";\n insertCompactRawPreparedStatement9 = KriptonDatabaseHelper.compile(_context, _sql);\n }\n KriptonContentValues _contentValues=contentValuesForUpdate(insertCompactRawPreparedStatement9);\n\n _contentValues.put(\"password\", SQLTypeAdapterUtils.toData(PasswordAdapterType.class, password));\n _contentValues.put(\"type\", SQLTypeAdapterUtils.toData(EnumAdapterType.class, type));\n _contentValues.put(\"id\", id);\n\n // log section BEGIN\n if (_context.isLogEnabled()) {\n // log for insert -- BEGIN \n StringBuffer _columnNameBuffer=new StringBuffer();\n StringBuffer _columnValueBuffer=new StringBuffer();\n String _columnSeparator=\"\";\n for (String columnName:_contentValues.keys()) {\n _columnNameBuffer.append(_columnSeparator+columnName);\n _columnValueBuffer.append(_columnSeparator+\":\"+columnName);\n _columnSeparator=\", \";\n }\n Logger.info(\"INSERT INTO contact (%s) VALUES (%s)\", _columnNameBuffer.toString(), _columnValueBuffer.toString());\n\n // log for content values -- BEGIN\n Triple<String, Object, KriptonContentValues.ParamType> _contentValue;\n for (int i = 0; i < _contentValues.size(); i++) {\n _contentValue = _contentValues.get(i);\n if (_contentValue.value1==null) {\n Logger.info(\"==> :%s = <null>\", _contentValue.value0);\n } else {\n Logger.info(\"==> :%s = '%s' (%s)\", _contentValue.value0, StringUtils.checkSize(_contentValue.value1), _contentValue.value1.getClass().getCanonicalName());\n }\n }\n // log for content values -- END\n // log for insert -- END \n\n\n // log for where parameters -- BEGIN\n int _whereParamCounter=0;\n for (String _whereParamItem: _contentValues.whereArgs()) {\n Logger.info(\"==> param%s: '%s'\",(_whereParamCounter++), StringUtils.checkSize(_whereParamItem));\n }\n // log for where parameters -- END\n }\n // log section END\n // insert operation\n long result = KriptonDatabaseHelper.insert(insertCompactRawPreparedStatement9, _contentValues);\n return result;\n // Specialized Insert - InsertType - END\n }", "void row_Modify(String[] col, int row_id){\n\t\tString values=\"\";\n\t\tStatement stm=null;\n\t\t//Change tuple by executing SQL command\n\t\tfor(int i=1;i<colNum;i++){\n\t\t\tif(col[i]!=\"\"){\n\t\t\t\tif(i!=1 && values!=\"\") values+=\", \";\n\t\t\t\tif(i==1) values+=\"Type='\"+col[i]+\"' \";\n\t\t\t\telse if(i==2) values+=\"Address='\"+col[i]+\"' \";\n\t\t\t\telse if(i==3) values+=\"City='\"+col[i]+\"' \";\n\t\t\t\telse if(i==4) values+=\"State='\"+col[i]+\"' \";\n\t\t\t\telse if(i==5) values+=\"Zip='\"+col[i]+\"' \";\n\t\t\t\telse if(i==6) values+=\"Price=\"+col[i]+\" \";\n\t\t\t\telse if(i==7) values+=\"Beds=\"+col[i]+\" \";\n\t\t\t\telse if(i==8) values+=\"Baths=\"+col[i]+\" \";\n\t\t\t\telse if(i==9) values+=\"SQFT=\"+col[i]+\" \";\n\t\t\t\telse if(i==10) values+=\"Year_built=\"+col[i]+\" \";\n\t\t\t\telse if(i==11) values+=\"Parking_spot=\"+col[i]+\" \";\n\t\t\t\telse if(i==12) values+=\"Days_on_market=\"+col[i]+\" \";\n\t\t\t\telse if(i==13) values+=\"Status='\"+col[i]+\"' \";\n\t\t\t\telse if(i==14) values+=\"Agency='\"+col[i]+\"' \";\n\t\t\t\t\n\t\t\t}\n\t\t}//end of for loop\n\t\t\n\t\tif(values!=\"\"){\n\t\t String sql=\"update \"+tableName+\" set \"+values+\" where id=\"+row_id;\n\t\t System.out.println(\"sql: \"+sql); \n\t\t try{\n\t\t \t stm=con.createStatement(); \n\t\t \t stm.executeUpdate(sql);\n\t\t \t //Append SQL command and time stamp on log file\n\t\t \t outfile.write(\"TIMESTAMP: \"+getTimestamp());\n\t\t\t\t outfile.newLine();\n\t\t\t\t outfile.write(sql);\n\t\t\t\t outfile.newLine();\n\t\t\t\t outfile.newLine();\n\t\t\t //Catch SQL exception\t \n\t\t }catch (SQLException e ) {\n\t\t \t e.printStackTrace();\n\t\t //Catch I/O exception \t \n\t\t }catch(IOException ioe){ \n\t\t \t ioe.printStackTrace();\n\t\t } finally {\n\t\t \t try{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \t catch (SQLException e ) {\n\t\t \t\t e.printStackTrace();\n\t\t\t }\n\t\t }\t\n\t\t}\n\t}", "@Insert({\n \"insert into t_apikey (id, key, \",\n \"name, api_id, des_key, \",\n \"parkIds)\",\n \"values (#{id,jdbcType=INTEGER}, #{key,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{apiId,jdbcType=VARCHAR}, #{desKey,jdbcType=VARCHAR}, \",\n \"#{parkids,jdbcType=VARCHAR})\"\n })\n int insert(TApikey record);", "public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}", "@Override\n\t\tpublic void write(K key, V value) throws IOException, InterruptedException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t//System.out.println(key.toString()+\":\"+value.toString());\n\t\t\tConfiguration conf = HBaseConfiguration.create();\n\t\t\t//conf.set(\"hbase.zookeeper.quorum\", \"10.105.245.143,10.105.245.144,10.105.245.147\");\n\t\t\tString mess[] = key.toString().split(\":\");\n\t\t\tString time = mess[0];\n\t\t\tString nation = mess[1];\n\t\t\tString nationid = PeopleCountByNation.asmap.get(nation);\n\t\t\tconf.set(\"hbase.zookeeper.quorum\", \"localhost\");\n\t\t\tint sum = Integer.parseInt(value.toString());\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tHTable table = new HTable(conf,\"nation\".getBytes());\n\t\t\tPut put = new Put(Bytes.toBytes(time+nationid));\n\t\t\tput.add(Bytes.toBytes(\"n\"),Bytes.toBytes(\"n\"),Bytes.toBytes(sum));\n\t\t\ttable.put(put);\n\t\t /* String record = value.toString();\n\t\t String mess [] = record.split(\"----\");\n\t\t String recordmess [] = mess[0].split(\"////\");\n\t\t HTable table = new HTable(conf,\"sort\".getBytes());\n\t\t //System.out.println(key.toString());\n\t\t Put put = new Put(Bytes.toBytes(key.toString()));\n\t\t put.add(Bytes.toBytes(\"title\"),Bytes.toBytes(recordmess[0]),Bytes.toBytes(mess[1]));\n\t\t table.put(put);*/\n\t\t \n\t\t //将数据存储在 hbase 中,这次存储的是word与title的集合\n\t\t \n\t\t \n\t\t \n\t\t}", "com.google.spanner.v1.Mutation.Write getInsertOrUpdate();", "@Insert({\r\n \"insert into OP.T_CM_SET_CHANGE_SITE_STATE (ORG_CD, WORK_SEQ, \",\r\n \"CHANGE_NO, BRANCH_CD, \",\r\n \"SITE_CD, SITE_NM, \",\r\n \"DATA_TYPE, CLOSE_DATE, \",\r\n \"REOPEN_TYPE, REOPEN_DATE, \",\r\n \"SET_TYPE, OPER_START_TIME, \",\r\n \"OPER_END_TIME, CHECK_YN, \",\r\n \"APPLY_DATE, INSERT_UID, \",\r\n \"INSERT_DATE, UPDATE_UID, \",\r\n \"UPDATE_DATE)\",\r\n \"values (#{orgCd,jdbcType=VARCHAR}, #{workSeq,jdbcType=VARCHAR}, \",\r\n \"#{changeNo,jdbcType=DECIMAL}, #{branchCd,jdbcType=VARCHAR}, \",\r\n \"#{siteCd,jdbcType=VARCHAR}, #{siteNm,jdbcType=VARCHAR}, \",\r\n \"#{dataType,jdbcType=VARCHAR}, #{closeDate,jdbcType=VARCHAR}, \",\r\n \"#{reopenType,jdbcType=VARCHAR}, #{reopenDate,jdbcType=VARCHAR}, \",\r\n \"#{setType,jdbcType=VARCHAR}, #{operStartTime,jdbcType=VARCHAR}, \",\r\n \"#{operEndTime,jdbcType=VARCHAR}, #{checkYn,jdbcType=VARCHAR}, \",\r\n \"#{applyDate,jdbcType=VARCHAR}, #{insertUid,jdbcType=VARCHAR}, \",\r\n \"#{insertDate,jdbcType=TIMESTAMP}, #{updateUid,jdbcType=VARCHAR}, \",\r\n \"#{updateDate,jdbcType=TIMESTAMP})\"\r\n })\r\n int insert(TCmSetChangeSiteState record);", "Row<K, C> execute();", "static void addRecordToDBQueue(HashMap<String, String> data, String tablename) {\r\n try {\r\n String sql;\r\n StringJoiner sqlRowsWithValues = new StringJoiner(\",\");\r\n StringJoiner sqlValues = new StringJoiner(\",\");\r\n\r\n sql = \"INSERT INTO `\" + tablename + \"` (\";\r\n\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n sqlRowsWithValues.add(\" `\" + entry.getKey() + \"`\");\r\n sqlValues.add(\"'\" + entry.getValue() + \"'\");\r\n }\r\n\r\n Run.statement.addBatch(sql + sqlRowsWithValues.toString() + \")\" + \" VALUES( \" + sqlValues.toString() + \")\");\r\n }\r\n catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "@Override\r\n\tpublic void save(TQssql sql) {\n\r\n\t}", "public void persistData(RatingData[] data) {\n //start by setting long_comp_result\n //TODO: maybe remove old_rating / vol and move to the record creation?\n String sqlStr = \"update long_comp_result set rated_ind = 1, \" +\n \"old_rating = (select rating from algo_rating \" +\n \" where coder_id = long_comp_result.coder_id and algo_rating_type_id = 3), \" +\n \"old_vol = (select vol from algo_rating \" +\n \" where coder_id = long_comp_result.coder_id and algo_rating_type_id = 3), \" +\n \"new_rating = ?, \" +\n \"new_vol = ? \" +\n \"where round_id = ? and coder_id = ?\";\n PreparedStatement psUpdate = null;\n PreparedStatement psInsert = null;\n \n try {\n psUpdate = conn.prepareStatement(sqlStr);\n for(int i = 0; i < data.length; i++) {\n psUpdate.clearParameters();\n psUpdate.setInt(1, data[i].getRating());\n psUpdate.setInt(2, data[i].getVolatility());\n psUpdate.setInt(3, roundId);\n psUpdate.setInt(4, data[i].getCoderID());\n psUpdate.executeUpdate();\n }\n \n psUpdate.close();\n //update algo_rating\n String updateSql = \"update algo_rating set rating = ?, vol = ?,\" +\n \" round_id = ?, num_ratings = num_ratings + 1 \" +\n \"where coder_id = ? and algo_rating_type_id = 3\";\n \n psUpdate = conn.prepareStatement(updateSql);\n \n String insertSql = \"insert into algo_rating (rating, vol, round_id, coder_id, algo_rating_type_id, num_ratings) \" +\n \"values (?,?,?,?,3,1)\";\n \n psInsert = conn.prepareStatement(insertSql);\n \n for(int i = 0; i < data.length; i++) {\n psUpdate.clearParameters();\n psUpdate.setInt(1, data[i].getRating());\n psUpdate.setInt(2, data[i].getVolatility());\n psUpdate.setInt(3, roundId);\n psUpdate.setInt(4, data[i].getCoderID());\n if(psUpdate.executeUpdate() == 0) {\n psInsert.clearParameters();\n psInsert.setInt(1, data[i].getRating());\n psInsert.setInt(2, data[i].getVolatility());\n psInsert.setInt(3, roundId);\n psInsert.setInt(4, data[i].getCoderID());\n psInsert.executeUpdate();\n }\n }\n \n psUpdate.close();\n psInsert.close();\n \n //mark the round as rated\n psUpdate = conn.prepareStatement(\"update round set rated_ind = 1 where round_id = ?\");\n psUpdate.setInt(1, roundId);\n psUpdate.executeUpdate();\n \n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n DBMS.close(psUpdate);\n DBMS.close(psInsert);\n }\n }", "com.google.spanner.v1.Mutation.Write getUpdate();", "void write(List<?> columns, CellProcessor[] processors) throws IOException;", "Dao.CreateOrUpdateStatus createOrUpdate(T data) throws SQLException, DaoException;", "void insertSingleRow(String[] values) {\n if (values.length != 16) {\n logger.info(\"Incorrect format for insert query\");\n return;\n }\n try {\n PreparedStatement ps = connection.prepareStatement(insertStmt);\n DateFormat format = new SimpleDateFormat(\"yyyyMMdd/HHmm\");\n for (int i = 0, j = 1; i < values.length; ++i, ++j) {\n if (i == 1) {\n try {\n ps.setTimestamp(j, new java.sql.Timestamp(format.parse(values[i]).getTime()));\n } catch (ParseException e) {\n ps.setNull(j, Types.TIMESTAMP);\n }\n } else if (i == 0) {\n ps.setString(j, values[i]);\n } else {\n try {\n ps.setDouble(j, Double.parseDouble(values[i]));\n } catch (Exception e) {\n ps.setNull(j, Types.DOUBLE);\n }\n }\n }\n ps.executeUpdate();\n connection.commit();\n } catch (SQLException e) {\n logger.log(Level.WARNING, \"SQLException \", e.getMessage());\n }\n }", "public static void main(String[] argv) {\n Type types[] = new Type[]{Type.INT_TYPE, Type.INT_TYPE, Type.INT_TYPE};\n String names[] = new String[]{\"field0\", \"field1\", \"field2\"};\n TupleDesc descriptor = new TupleDesc(types, names);\n\n // create the table, associate it with some_data_file.dat\n // and tell the catalog about the schema of this table.\n HeapFile table1 = new HeapFile(new File(\"some_data_file.dat\"), descriptor);\n Database.getCatalog().addTable(table1, \"test\");\n\n // construct the query: we use a simple SeqScan, which spoonfeeds\n // tuples via its iterator.\n TransactionId tid = new TransactionId();\n SeqScan f = new SeqScan(tid, table1.getId());\n\n try {\n // and run it\n f.open();\n TupleDesc td;\n while (f.hasNext()) {\n Tuple tup = f.next();\n td = tup.getTupleDesc();\n IntField field1 = (IntField) tup.getField(1);\n if (field1.getValue() < 3) {\n System.out.print(\"Update tuple: \" + tup + \" to be: \");\n table1.deleteTuple(tid, tup);\n tup.setField(1, new IntField(3));\n System.out.println(tup.toString());\n table1.insertTuple(tid, tup);\n }\n }\n\n Tuple newtup = Utility.getHeapTuple(99, 3);\n System.out.println(\"Insert tuples: \" + newtup);\n table1.insertTuple(tid, newtup);\n\n System.out.println(\"The table now contains the following records\");\n\n f.rewind();\n while (f.hasNext()) {\n Tuple tup = f.next();\n System.out.println(\"Tuple: \" + tup);\n }\n\n f.close();\n Database.getBufferPool().transactionComplete(tid);\n } catch (Exception e) {\n System.out.println(\"Exception : \" + e);\n }\n\n }", "@Override\n\tpublic void execute(TridentTuple arg0, TridentCollector arg1) {\n\n\t}", "public void store(DBConnection db) throws IOException;", "protected abstract void writeInternal(int index, int value);", "@Override\n\tpublic void execute(TridentTuple tuple, TridentCollector collector) {\n\t\tfinal String beacon = tuple.getString(0);\n\t\t\n\t\tGson gsonSerializer = new Gson();\n\t\t\n\t\tBeacon convetedBeacon = gsonSerializer.fromJson(beacon,Beacon.class);\n\t\tSystem.out.println(convetedBeacon.getDate());\n\t\tString jsonBeacon = gsonSerializer.toJson(beacon);\n\t\t\n\t\tValues value = new Values();\n//\t\tMap<String,Long> tmpMap = (Map<String, Long>)JSONValue.parse(jsonBeacon);\n//\t\tMap<String,Long> inputMap = null;\n\t\t/*for(Map.Entry<String, Long> tmp: tmpMap.entrySet()){\n\t\t\tif(tmp.getKey() == \"accuracy\"){\n\t\t\t\tinputMap.put(tmp.getKey(), tmp.getValue());\n\t\t\t}\n\t\t}*/\n//\t\tHashMap<String,Object> tmpMap = new HashMap<String, Object>();\n//\t\t\n//\t\tSimpleDateFormat sdf = new SimpleDateFormat();\n//\t\tDate date = new Date();\n//\t\ttry {\n//\t\t\tdate = sdf.parse(convetedBeacon.getDate());\n//\t\t} catch (ParseException 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\t\n\t\t//\t\ttmpMap.put( convetedBeacon.getAccuracy());\n//\t\tLong tmpLong = Long.parseLong();\n\t\t\n\t\tcollector.emit(new Values(convetedBeacon.getDate(),convetedBeacon.getAccuracy()));\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "void set(int[] pos, Tuple tuple) {\n verifyModifiable();\n\n if (pos.length != tuple.size())\n throw new RuntimeException(\"given tuple not same size as position array, tuple: \" + tuple.print());\n\n int count = 0;\n for (int i : pos)\n elements.set(i, tuple.elements.get(count++));\n }", "public static void insertSensorDataSQL(int id, double data, Date date, Time time) {\n\n try (\n PreparedStatement stmt = conn.\n prepareStatement(SENSOR_INSERT_INFO_SQL, ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_READ_ONLY);) {\n stmt.setInt(1, id);\n\n stmt.setDouble(2, data);\n stmt.setDate(3, date);\n\n stmt.setTime(4, time);\n\n stmt.execute();\n\n } catch (SQLException e) {\n System.err.println(e);\n System.out.println(\"Insert Issue!!\");\n }\n\n }", "public abstract void Write(WriteOptions options, WriteBatch updates) throws IOException, BadFormatException, DecodeFailedException;" ]
[ "0.67874354", "0.66470736", "0.6579441", "0.57488894", "0.57320356", "0.5728966", "0.5663143", "0.5637589", "0.56008244", "0.55752546", "0.5540476", "0.5535293", "0.5530282", "0.5504453", "0.549771", "0.5497134", "0.54850197", "0.5462409", "0.5412513", "0.5389826", "0.5376603", "0.536866", "0.5366074", "0.5354402", "0.53477645", "0.53379107", "0.52975374", "0.5282893", "0.52758485", "0.52713555", "0.5254966", "0.52106255", "0.52077824", "0.520642", "0.5192501", "0.5168338", "0.51570654", "0.5125808", "0.51176727", "0.5092936", "0.5090365", "0.507311", "0.5067412", "0.50665057", "0.50554144", "0.5041819", "0.5037863", "0.5034656", "0.5026017", "0.50155747", "0.50111264", "0.50058246", "0.49952742", "0.4994494", "0.4978234", "0.49730965", "0.496146", "0.49393246", "0.49354723", "0.49282646", "0.49273387", "0.49146387", "0.49138388", "0.491136", "0.4908467", "0.48970607", "0.4882433", "0.48643383", "0.4857534", "0.4852344", "0.48492002", "0.48386663", "0.48332664", "0.4826643", "0.48108998", "0.48079818", "0.48052976", "0.48043084", "0.4803703", "0.4799464", "0.47986615", "0.47875348", "0.47831106", "0.4781396", "0.47670394", "0.4763978", "0.476306", "0.47613773", "0.47571278", "0.4755725", "0.4747836", "0.4733327", "0.4732561", "0.47287494", "0.47286725", "0.47286645", "0.4717026", "0.471626", "0.47140253", "0.4710919" ]
0.59321636
3
compose Cassandra mutation from tuple
private Mutation mutationFromTuple(Tuple t) throws IOException { Mutation mutation = new Mutation(); if (t.get(1) == null) { if (allow_deletes) { mutation.deletion = new Deletion(); mutation.deletion.predicate = new org.apache.cassandra.thrift.SlicePredicate(); mutation.deletion.predicate.column_names = Arrays.asList(objToBB(t.get(0))); mutation.deletion.setTimestamp(FBUtilities.timestampMicros()); } else throw new IOException("null found but deletes are disabled, set " + PIG_ALLOW_DELETES + "=true in environment or allow_deletes=true in URL to enable"); } else { org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column(); column.setName(objToBB(t.get(0))); column.setValue(objToBB(t.get(1))); column.setTimestamp(FBUtilities.timestampMicros()); mutation.column_or_supercolumn = new ColumnOrSuperColumn(); mutation.column_or_supercolumn.column = column; } return mutation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Expr apply(Context ctx, Expr tuple, Expr val) {\n throw new UnsupportedOperationException(\"Unsupported z3 operation\");\n /*return em.tupleUpdateExpr(tuple, index, val);*/\n }", "private void introduceMutations() {\n }", "TupleExpr createTupleExpr();", "private void writeColumnsFromTuple(ByteBuffer key, Tuple t, int offset) throws IOException\n {\n ArrayList<Mutation> mutationList = new ArrayList<Mutation>();\n for (int i = offset; i < t.size(); i++)\n {\n if (t.getType(i) == DataType.BAG)\n writeColumnsFromBag(key, (DataBag) t.get(i));\n else if (t.getType(i) == DataType.TUPLE)\n {\n Tuple inner = (Tuple) t.get(i);\n if (inner.size() > 0) // may be empty, for an indexed column that wasn't present\n mutationList.add(mutationFromTuple(inner));\n }\n else if (!usePartitionFilter)\n {\n throw new IOException(\"Output type was not a bag or a tuple\");\n }\n }\n if (mutationList.size() > 0)\n writeMutations(key, mutationList);\n }", "public interface Mutation {\n void apply(Collection<PartType> parts);\n}", "@Override\n\tpublic void execute(TridentTuple arg0, TridentCollector arg1) {\n\n\t}", "Astro tuple(AstroArg args);", "Tuple (Atomic... elements) {\n for (Atomic element : elements) {\n add (element);\n }\n }", "@Override\n\t\tpublic Tuple exec(Tuple input) throws IOException {\n\t\t\tfor (Tuple t : (DataBag) input.get(0)) {\n\t\t\t\treturn wrap(t, getSign());\t\n\t\t\t}\n\t\t\t// Odd.\n\t\t\treturn tf.newTuple(bf.newDefaultBag());\n\t\t}", "protected Tuple cleanTuple(Tuple result)\n {\n return result;\n }", "public static void addTupleAsOneCell(List<Cell> result,\n Tuple tuple,\n TupleProjector tupleProjector,\n ImmutableBytesWritable ptr) {\n byte[] value =\n tupleProjector.getSchema().toBytes(tuple, tupleProjector.getExpressions(),\n tupleProjector.getValueBitSet(), ptr);\n Cell firstCell = result.get(0);\n Cell keyValue =\n PhoenixKeyValueUtil.newKeyValue(firstCell.getRowArray(),\n firstCell.getRowOffset(),firstCell.getRowLength(), VALUE_COLUMN_FAMILY,\n VALUE_COLUMN_QUALIFIER, firstCell.getTimestamp(), value, 0, value.length);\n result.add(keyValue);\n }", "com.google.spanner.v1.Mutation.Write getUpdate();", "TupleLiteralExp createTupleLiteralExp();", "private int[] mutationPairwiseExchange(int[] mutant) {\n\t\tint pairPoint1 = rand.nextInt(mutant.length);\n\t\tint pairPoint2 = pairPoint1;\n\t\twhile (mutant[pairPoint2] == mutant[pairPoint1]) {\n\t\t\tpairPoint2 = rand.nextInt(mutant.length); //find element in different bucket\n\t\t}\n\t\tint temp = mutant[pairPoint1];\n\t\tmutant[pairPoint1] = mutant[pairPoint2];\n\t\tmutant[pairPoint2] = temp;\n\t\treturn mutant;\n\t}", "@Override\n public void execute(Tuple tuple) {\n \n String word = tuple.getString(0);\n Integer count = counts.get(word);\n if(count==null) count = 0;\n count++;\n counts.put(word, count);\n \n collector.emit(new Values(word, count));\n \n //Set the tuple as Acknowledge\n collector.ack(tuple);\n }", "@API.Public\npublic interface DocumentMutation extends Iterable<MutationOp> {\n\n /**\n * Empties this Mutation object.\n */\n public DocumentMutation empty();\n\n /**\n * Sets the value of given field to the specified value. If the value of\n * given field name doesn't exist in the existing document on the server\n * then new field will be created.\n *\n * If the value for the given field name exists in the existing document\n * on server and its of the same type as the new value then existing value\n * will be replaced by new value.\n *\n * If the value of given field name exists and it is not same type as the\n * type of newly set value then mutation will fail.\n *\n * @param path path of the field that needs to be updated\n * @return this Mutation object\n */\n public DocumentMutation setNull(String path);\n\n public DocumentMutation setNull(FieldPath path);\n\n public DocumentMutation set(String path, Value v);\n\n public DocumentMutation set(FieldPath path, Value v);\n\n public DocumentMutation set(String path, boolean b);\n\n public DocumentMutation set(FieldPath path, boolean b);\n\n public DocumentMutation set(String path, short s);\n\n public DocumentMutation set(FieldPath path, short s);\n\n public DocumentMutation set(String path, byte b);\n\n public DocumentMutation set(FieldPath path, byte b);\n\n public DocumentMutation set(String path, int i);\n\n public DocumentMutation set(FieldPath path, int i);\n\n public DocumentMutation set(String path, long l);\n\n public DocumentMutation set(FieldPath path, long l);\n\n public DocumentMutation set(String path, float f);\n\n public DocumentMutation set(FieldPath path, float f);\n\n public DocumentMutation set(String path, double d);\n\n public DocumentMutation set(FieldPath path, double d);\n\n public DocumentMutation set(String path, String value);\n\n public DocumentMutation set(FieldPath path, String value);\n\n public DocumentMutation set(String path, BigDecimal bd);\n\n public DocumentMutation set(FieldPath path, BigDecimal bd);\n\n public DocumentMutation set(String path, Time t);\n\n public DocumentMutation set(FieldPath path, Time t);\n\n public DocumentMutation set(String path, Timestamp t);\n\n public DocumentMutation set(FieldPath path, Timestamp t);\n\n public DocumentMutation set(String path, Date d);\n\n public DocumentMutation set(FieldPath path, Date d);\n\n public DocumentMutation set(String path, List<? extends Object> value);\n\n public DocumentMutation set(FieldPath path, List<? extends Object> value);\n\n public DocumentMutation set(String path, Interval intv);\n\n public DocumentMutation set(FieldPath path, Interval intv);\n\n public DocumentMutation set(String path, ByteBuffer bb);\n\n public DocumentMutation set(FieldPath path, ByteBuffer bb);\n\n public DocumentMutation set(String path, Map<String, ? extends Object> value);\n\n public DocumentMutation set(FieldPath path, Map<String, ? extends Object> value);\n\n public DocumentMutation set(String path, Document value);\n\n public DocumentMutation set(FieldPath path, Document value);\n\n\n /**\n * Sets or replaces the value of a given field with the new value given in the API.\n * This is a fast API that doesn't require a read on the server to validate\n * the path or type.\n *\n * If any element in the specified field path doesn't exist then that element\n * will be created on the server.\n * Example : Field is \"a.b.c\" and value is int 10.\n * Suppose the server has only the field \"a\" of type map, then a setOrReplace of \"a.b.c\"\n * will create element \"b\" of type map inside \"a\". It will also create an element\n * named \"c\" of type integer inside map \"b\".\n *\n * If any element specified in the field path is of a different type\n * than the existing field element on the server, it will be deleted and replaced by\n * a new element.\n * Example : Field is \"a.b.c\" and value is int 10.\n * Suppose on the server, there is a field \"a\" of type array. This operation\n * will delete \"a\", create new element \"a\" of type map, and insert \"b.c\" in it.\n *\n * @param path path of the field that needs to be updated\n * @return this Mutation object\n */\n public DocumentMutation setOrReplace(String path, Value v);\n\n public DocumentMutation setOrReplace(FieldPath path, Value v);\n\n public DocumentMutation setOrReplaceNull(String path);\n\n public DocumentMutation setOrReplaceNull(FieldPath path);\n\n public DocumentMutation setOrReplace(String path, boolean b);\n\n public DocumentMutation setOrReplace(FieldPath path, boolean b);\n\n public DocumentMutation setOrReplace(String path, short s);\n\n public DocumentMutation setOrReplace(FieldPath path, short s);\n\n public DocumentMutation setOrReplace(String path, byte b);\n\n public DocumentMutation setOrReplace(FieldPath path, byte b);\n\n public DocumentMutation setOrReplace(String path, int i);\n\n public DocumentMutation setOrReplace(FieldPath path, int i);\n\n public DocumentMutation setOrReplace(String path, long l);\n\n public DocumentMutation setOrReplace(FieldPath path, long l);\n\n public DocumentMutation setOrReplace(String path, float f);\n\n public DocumentMutation setOrReplace(FieldPath path, float f);\n\n public DocumentMutation setOrReplace(String path, double d);\n\n public DocumentMutation setOrReplace(FieldPath path, double d);\n\n public DocumentMutation setOrReplace(String path, String value);\n\n public DocumentMutation setOrReplace(FieldPath path, String value);\n\n public DocumentMutation setOrReplace(String path, BigDecimal bd);\n\n public DocumentMutation setOrReplace(FieldPath path, BigDecimal bd);\n\n public DocumentMutation setOrReplace(String path, Time t);\n\n public DocumentMutation setOrReplace(FieldPath path, Time t);\n\n public DocumentMutation setOrReplace(String path, Timestamp t);\n\n public DocumentMutation setOrReplace(FieldPath path, Timestamp t);\n\n public DocumentMutation setOrReplace(String path, Date d);\n\n public DocumentMutation setOrReplace(FieldPath path, Date d);\n\n public DocumentMutation setOrReplace(String path, List<? extends Object> value);\n\n public DocumentMutation setOrReplace(FieldPath path, List<? extends Object> value);\n\n public DocumentMutation setOrReplace(String path, Interval intv);\n\n public DocumentMutation setOrReplace(FieldPath path, Interval intv);\n\n public DocumentMutation setOrReplace(String path, ByteBuffer bb);\n\n public DocumentMutation setOrReplace(FieldPath path, ByteBuffer bb);\n\n public DocumentMutation setOrReplace(String path, Map<String, ? extends Object> value);\n\n public DocumentMutation setOrReplace(FieldPath path,\n Map<String, ? extends Object> value);\n\n public DocumentMutation setOrReplace(String path, Document value);\n\n public DocumentMutation setOrReplace(FieldPath path, Document value);\n\n /**\n * Appends elements to an existing array. If the field doesn't exist on server,\n * it will be created and this operation proceeds. If the field already exists,\n * this operation will validate that the existing field is of the array type.\n * If it is of a different type, then this operation will fail.\n */\n public DocumentMutation append(String path, List<? extends Object> value);\n\n public DocumentMutation append(FieldPath path, List<? extends Object> value);\n\n /**\n * Appends elements to an existing string. This operation will first\n * validate on the server that the field specified by the given path\n * exists and is of the string type. If the field doesn't exist or is\n * of a different type, then the operation will fail.\n */\n public DocumentMutation append(String path, String value);\n\n public DocumentMutation append(FieldPath path, String value);\n\n /**\n * Appends a given byte array to the existing binary data stored on the server\n * on the given path. This operation will fail if the given field on the server is not of the\n * BINARY type. If the field path specified for append doesn't\n * exist on a server record, then this operation will create a new element at the\n * append path. This new element will be of BINARY type and its value will be\n * as specified in the parameter.\n *\n * This operation will fail if any type of the intermediate path elements specified\n * in the append field path doesn't match the type of the corresponding field in the\n * record stored on server. For example, an operation on field \"a.b.c\" will fail if,\n * on the server, the record a itself is an array or integer.\n *\n * This operation will perform read-modify-write on the server.\n *\n * @param path field path\n * @param value byte array value\n * @param offset offset in byte array\n * @param len length in byte array\n * @return this Mutation Object\n */\n public DocumentMutation append(String path, byte[] value, int offset, int len);\n\n public DocumentMutation append(FieldPath path, byte[] value, int offset, int len);\n\n public DocumentMutation append(String path, byte[] value);\n\n public DocumentMutation append(FieldPath path, byte[] value);\n\n public DocumentMutation append(String path, ByteBuffer value);\n\n public DocumentMutation append(FieldPath path, ByteBuffer value);\n\n /**\n * Merges the existing value on the server for the given field path with the new map\n * provided in the input. This operation will first validate that the entry with the\n * given field name exists on the server and is of the MAP type.\n *\n * If the entry is of a type other than MAP, then the operation will fail.\n * If the field path specified for merge doesn't\n * exist in the record on the server, then this operation will create a new element at the\n * given path. This new element will be of the MAP type and its value will be\n * as specified in the parameter.\n *\n * This operation will fail if any type of intermediate path elements specified\n * in the append field path doesn't match the type of the corresponding field in the\n * record stored on the server. For example, an operation on field \"a.b.c\" will fail if,\n * on the server, record a itself is an array or integer.\n *\n * @param path field path\n * @param value the value to be merged with existing value of a field on the server\n * @return this record mutation\n */\n public DocumentMutation merge(String path, Document value);\n\n public DocumentMutation merge(FieldPath path, Document value);\n\n public DocumentMutation merge(String path, Map<String, Object> value);\n\n public DocumentMutation merge(FieldPath path, Map<String, Object> value);\n\n /**\n * Atomically applies an increment to a given field (in dot separated notation)\n * of the given row id.\n *\n * If the field path specified for the incremental change doesn't\n * exist in the server record then this operation will create a new element at the\n * given path. This new element will be of same type as the value specified\n * in the parameter.\n *\n * This operation will fail if the type of any intermediate path elements specified\n * in the append field path doesn't match the type of the corresponding field in the\n * record stored on the server. For example, an operation on field \"a.b.c\" will fail\n * if, on the server, record a itself is an array or integer.\n *\n * If the field doesn't exist on\n * the server then it will be created with the type of given incremental value.\n * An increment operation can be applied on any of the numeric types\n * of a field, such as byte, short, int, long, float, double, or decimal.\n * The operation will fail if the increment is applied to a field\n * that is of a non-numeric type.\n *\n * The increment operation won't change the type of the existing value stored in\n * the given field for the row. The resultant value of the field will be\n * truncated based on the original type of the field.\n *\n * For example, field 'score' is of type int and contains 60. The increment\n * '5.675', a double, is applied. The resultant value of the field\n * will be 65 (65.675 will be truncated to 65).\n *\n * @param path field name in dot separated notation\n * @param inc increment to apply to a field - can be positive or negative\n */\n public DocumentMutation increment(FieldPath path, byte inc);\n\n public DocumentMutation increment(String path, byte inc);\n\n public DocumentMutation increment(FieldPath path, short inc);\n\n public DocumentMutation increment(String path, short inc);\n\n public DocumentMutation increment(String path, int inc);\n\n public DocumentMutation increment(FieldPath path, int inc);\n\n public DocumentMutation increment(FieldPath path, long inc);\n\n public DocumentMutation increment(String path, long inc);\n\n public DocumentMutation increment(String path, float inc);\n\n public DocumentMutation increment(FieldPath path, float inc);\n\n public DocumentMutation increment(String path, double inc);\n\n public DocumentMutation increment(FieldPath path, double inc);\n\n public DocumentMutation increment(String path, BigDecimal inc);\n\n public DocumentMutation increment(FieldPath path, BigDecimal inc);\n\n /**\n * Deletes the field at the given path.\n * If the field does not exist, this method silently returns without doing anything.\n * For example, if a delete operation is attempted on a.b.c, and a.b is an array on the\n * server, then a.b.c will not be deleted.\n */\n public DocumentMutation delete(String path);\n\n public DocumentMutation delete(FieldPath path);\n\n}", "public void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;", "TupleLiteralPart createTupleLiteralPart();", "private void split(TupleSet tuples, TupleSet insertions, TupleSet deletions) {\n\t\tfor (Tuple tuple : tuples) {\n\t\t\tObject[] insert = tuple.toArray();\n\t\t\tObject[] delete = tuple.toArray();\n\t\t\tinsert[Evaluator.Field.DELETIONS.ordinal()] = null;\n\t\t\tdelete[Evaluator.Field.INSERTIONS.ordinal()] = null;\n\n\t\t\tinsertions.add(new Tuple(insert));\n\t\t\tdeletions.add(new Tuple(delete));\n\t\t}\n\t}", "public void execute(Tuple tuple){\n\t\tString sentence = tuple.getStringByField(\"sentence\");\n\t\tString[] words = sentence.split(\" \");\n\t\tfor(String word: words){\n\t\t\tthis.collector.emit(new Values(word));\n\t\t}\n\t}", "public interface IMutationOperator extends IDescriptable, Opcodes {\n\t/**\n\t * Gets all possible points in given class (bytecode) where different\n\t * mutants can be produced.\n\t *\n\t * @param bytecode bytecode to be analyzed\n\t * @return list of mutation points witihn given class (bytecode)\n\t */\n\tList<IMutationPoint> getMutationPoints(byte[] bytecode);\n\n\t/**\n\t * Mutate given bytecode to create mutants with given mutation points.\n\t *\n\t * @param bytecode bytecode to be mutated\n\t * @param mutationPoint mutation point in given class (bytecode)\n\t * @return list of mutants created within given point\n\t */\n\tList<IMutantBytecode> mutate(byte[] bytecode, IMutationPoint mutationPoint);\n\n\t/**\n\t * @param bytecode bytecode to be mutated\n\t * @param mutationPointIndex mutation point in given class (bytecode)\n\t * @param mutantIndex specific mutant index within given point\n\t * @return mutated bytecode - mutant\n\t */\n\tIMutantBytecode mutate(byte[] bytecode, int mutationPointIndex, int mutantIndex);\n}", "com.google.spanner.v1.Mutation.Write getInsertOrUpdate();", "@Test\n public void testMutationsWithCommaOperator() throws Exception {\n final String program = \"#version 310 es\\n\"\n + \"precision highp float;\\n\"\n + \"void main() {\"\n + \" int a, b, c, d, e;\\n\"\n + \" a, b, c, d, e, a, b, c, d, e;\\n\"\n + \"}\";\n final ShaderJobFileOperations fileOperations = new ShaderJobFileOperations();\n for (int i = 0; i < 20; i++) {\n final TranslationUnit tu = ParseHelper.parse(program);\n new IdentityMutationFinder(tu,\n new RandomWrapper(i), GenerationParams.normal(ShaderKind.FRAGMENT, false, false))\n .findMutations()\n .forEach(Expr2ExprMutation::apply);\n final File shaderJobFile = temporaryFolder.newFile(\"shader\" + i + \".json\");\n final ShaderJob shaderJob = new GlslShaderJob(Optional.empty(), new PipelineInfo(),\n tu);\n fileOperations.writeShaderJobFile(shaderJob, shaderJobFile);\n // Check that there is no invalidity due to mis-use of constants (in which case an exception\n // will be thrown, but we assert the result of 'areShadersValid' is true just to be sure.\n assertTrue(fileOperations.areShadersValid(shaderJobFile, true));\n }\n }", "@Override\n\tpublic void execute(TridentTuple tuple, TridentCollector collector) {\n\t\tfinal String beacon = tuple.getString(0);\n\t\t\n\t\tGson gsonSerializer = new Gson();\n\t\t\n\t\tBeacon convetedBeacon = gsonSerializer.fromJson(beacon,Beacon.class);\n\t\tSystem.out.println(convetedBeacon.getDate());\n\t\tString jsonBeacon = gsonSerializer.toJson(beacon);\n\t\t\n\t\tValues value = new Values();\n//\t\tMap<String,Long> tmpMap = (Map<String, Long>)JSONValue.parse(jsonBeacon);\n//\t\tMap<String,Long> inputMap = null;\n\t\t/*for(Map.Entry<String, Long> tmp: tmpMap.entrySet()){\n\t\t\tif(tmp.getKey() == \"accuracy\"){\n\t\t\t\tinputMap.put(tmp.getKey(), tmp.getValue());\n\t\t\t}\n\t\t}*/\n//\t\tHashMap<String,Object> tmpMap = new HashMap<String, Object>();\n//\t\t\n//\t\tSimpleDateFormat sdf = new SimpleDateFormat();\n//\t\tDate date = new Date();\n//\t\ttry {\n//\t\t\tdate = sdf.parse(convetedBeacon.getDate());\n//\t\t} catch (ParseException 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\t\n\t\t//\t\ttmpMap.put( convetedBeacon.getAccuracy());\n//\t\tLong tmpLong = Long.parseLong();\n\t\t\n\t\tcollector.emit(new Values(convetedBeacon.getDate(),convetedBeacon.getAccuracy()));\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "MutateNda<V> getMut();", "public void optimize(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings) {\n\t\ttupleExpr.visit(new ConstantVisitor());\n\t}", "@ProcessElement\n public void processElement(ProcessContext c) {\n \n TableRow output = c.element();\n // Create our BigTable mutation by iterating over keys and setting cells.\n // This is a shallow operation.\n\n List<Mutation> mutationList = new ArrayList<>();\n Iterator<TableRow.Entry<String,Object>> it = output.entrySet().iterator();\n String uuid = \"\";\n\n while (it.hasNext()) {\n TableRow.Entry<String, Object> pair = (TableRow.Entry<String, Object>)it.next();\n if (pair.getValue() == null) {\n continue;\n }\n if (pair.getKey().equalsIgnoreCase(\"uuid\")) {\n uuid = (String)pair.getValue();\n }\n\n // Java, you so silly sometimes.\n Mutation mutation =\n Mutation.newBuilder()\n .setSetCell(SetCell.newBuilder()\n .setFamilyName(\"events\")\n .setColumnQualifier(ByteString.copyFromUtf8(pair.getKey()))\n .setValue(ByteString.copyFromUtf8(pair.getValue().toString()))\n )\n .build();\n mutationList.add(mutation);\n }\n\n Iterable<Mutation> ol = mutationList;\n c.output(KV.of(ByteString.copyFromUtf8(uuid), ol));\n }", "@Override\n\tpublic void execute(Tuple input, BasicOutputCollector collector) {\n\t\tString[] numbers = (String[]) input.getString(1).split(\"\\\\+\");\n\t\tInteger added = 0;\n\t\ttry{\n\t\t\tif(numbers.length<2){\n\t\t\t\tthrow new InvalidParameterException(\"Should be at least 2 numbers\");\n\t\t\t}\n\t\t\tfor(String num : numbers){\n\t\t\t\t//Add each member\n\t\t\t\tadded += Integer.parseInt((java.lang.String) num);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\t//On error emit null\n\t\t\tcollector.emit(new Values(input.getValue(0),NULL));\n\t\t}\n\t\t//Emit the result\n\t\tcollector.emit(new Values(input.getValue(0),added));\n\t}", "public void putNext(Tuple tuple) throws IOException {\n\t\tint sqlPos = 1;\n\t\ttry {\n\t\t\tint size = tuple.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tObject field = tuple.get(i);\n\t\t\t\t\tif(field != null){\n\t\t\t\t\t\tif(\"\\\\N\".equalsIgnoreCase(field.toString())){\n\t\t\t\t\t\t\tfield = null;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tswitch (DataType.findType(field)) {\n\t\t\t\t\tcase DataType.NULL:\n\t\t\t\t\t\tps.setNull(sqlPos, java.sql.Types.VARCHAR);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.BOOLEAN:\n\t\t\t\t\t\tps.setBoolean(sqlPos, (Boolean) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.INTEGER:\n\t\t\t\t\t\tps.setInt(sqlPos, (Integer) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.LONG:\n\t\t\t\t\t\tps.setLong(sqlPos, (Long) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.FLOAT:\n\t\t\t\t\t\tps.setFloat(sqlPos, (Float) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.DOUBLE:\n\t\t\t\t\t\tps.setDouble(sqlPos, (Double) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.DATETIME:\n\t\t\t\t\t\tps.setTimestamp(sqlPos, new Timestamp(((DateTime) field).getMillis()));\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.BYTEARRAY:\n\t\t\t\t\t\tbyte[] b = ((DataByteArray) field).get();\n\t\t\t\t\t\tps.setBytes(sqlPos, b);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DataType.CHARARRAY:\n\t\t\t\t\t\tps.setString(sqlPos, (String) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DataType.BYTE:\n\t\t\t\t\t\tps.setByte(sqlPos, (Byte) field);\n\t\t\t\t\t\tsqlPos++;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase DataType.MAP:\n\t\t\t\t\tcase DataType.TUPLE:\n\t\t\t\t\tcase DataType.BAG:\n\t\t\t\t\t\tthrow new RuntimeException(\"Cannot store a non-flat tuple \"\n\t\t\t\t\t\t\t\t+ \"using DbStorage\");\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new RuntimeException(\"Unknown datatype \"\n\t\t\t\t\t\t\t\t+ DataType.findType(field));\n\n\t\t\t\t\t}\n\n\t\t\t\t} catch (ExecException ee) {\n\t\t\t\t\tthrow new RuntimeException(ee);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tps.addBatch();\n\t\t\tcount++;\n\t\t\tif (count > batchSize) {\n\t\t\t\tcount = 0;\n\t\t\t\tps.executeBatch();\n\t\t\t\tps.clearBatch();\n\t\t\t\tps.clearParameters();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tlog\n\t\t\t\t.error(\"Unable to insert record:\" + tuple.toDelimitedString(\"\\t\"),\n\t\t\t\t\t\te);\n\t\t\t} catch (ExecException ee) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t\tif (e.getErrorCode() == 1366) {\n\t\t\t\t// errors that come due to utf-8 character encoding\n\t\t\t\t// ignore these kind of errors TODO: Temporary fix - need to find a\n\t\t\t\t// better way of handling them in the argument statement itself\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"JDBC error\", e);\n\t\t\t}\n\t\t}\n\t}", "private IResult evalTuple(final ITuple tup) {\n\t\tSystem.out.println(\"CacheEval \"+tup.toJSONString());\n\t\tIResult result = new ResultPojo();\n\t\t//pass through takes\n\t\tList<Lease> leases = eval(tup, takeHolder, true);\n\t\tSystem.out.println(\"EVALT \"+leases);\n\t\tif (leases == null) {\n\t\t\t//send it to the database\n\t\t\tsynchronized(cache) {\n\t\t\t\t//stash against ID\n\t\t\t\tSystem.out.println(\"CacheStash \"+tup.getId());\n\t\t\t\tcache.put(tup.getId(), tup);\n\t\t\t}\n\t\t\tIResult x = provider.getNodeAsJSONObject(tup.getId(), IElasticConstants.INDEX);\n\t\t\tif (x.getResultObject() == null) {\n\t\t\t\t//only index if not already in database\n\t\t\t\tSystem.out.println(\"INDeXING \"+tup.toJSONString());\n\t\t\t\tresult = provider.indexNode(tup.getId(), IElasticConstants.INDEX, tup.getData());\n\t\t\t}\t//not captured by take means keep this tuple around and store it\n\t\t\t\t\n\t\t\t\tLease lease;\n\t\t\t\tIResult r = new ResultPojo();\n\t\t\t\t\t\n\t\t\t\tleases = eval(tup, readHolder, false);\n\t\t\t\tSystem.out.println(\"EVALR \"+leases);\n\t\t\t\tif (leases != null) {\n\t\t\t\t\t//satisfy all leases\n\t\t\t\t\tIterator<Lease>itr = leases.iterator();\n\t\t\t\t\twhile (itr.hasNext()) {\n\t\t\t\t\t\tlease = itr.next();\n\t\t\t\t\t\tr.setResultObject(tup.cloneTuple());\n\t\t\t\t\t\tlease.listener.acceptResult(r);\n\t\t\t\t\t\tlease.host.dropLease(tup.getTag(), lease);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "@Override\r\n\tpublic Object visitTuple(Tuple tuple, Object arg) throws Exception {\n\t\tfor (int i = 0; i < tuple.getExprList().size(); i++) {\r\n\t\t\ttuple.getExprList().get(i).visit(this, arg);\r\n\t\t\tif (tuple.getExprList().get(i) instanceof ConstantExpression) {\r\n\t\t\t\tmv.visitVarInsn(ALOAD, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private static MultiItemTerminal toMultiItemTerminal(ByteBuffer... values)\n {\n return new Tuples.Value(values);\n }", "protected abstract void safeExecute(final Tuple input) throws Exception;", "public abstract void update (org.apache.spark.sql.expressions.MutableAggregationBuffer buffer, org.apache.spark.sql.Row input) ;", "protected void handleData(T tuple)\n throws DataException\n {\n \n if (tuple.isMutable())\n {\n if (sequence!=null)\n {\n if (sequenceField.getValue(tuple)==null)\n { \n String sequenceVal = Long.toString(sequence.next());\n if (debug)\n { \n log.fine\n (\"Generated sequence \"+sequenceVal\n +\" for \"+sequenceField.getURI()\n );\n }\n \n sequenceField.setValue\n ((EditableTuple) tuple\n ,sequenceField.getType().fromString(sequenceVal)\n ); \n }\n else\n { \n if (debug)\n {\n log.fine\n (\"Sequence field not null \"+sequenceField.getURI());\n }\n }\n }\n else\n { \n if (sequenceField!=null)\n { log.fine(\"Sequence is null for \"+sequenceField);\n }\n }\n\n if (defaultSetters!=null)\n {\n for (Setter<?> setter : defaultSetters)\n { \n if (setter.getTarget().get()==null)\n { setter.set();\n }\n }\n }\n\n if (fixedSetters!=null)\n {\n for (Setter<?> setter : fixedSetters)\n { setter.set();\n }\n }\n }\n else\n {\n if (debug)\n {\n log.fine\n (\"Not a mutable Tuple \"+tuple);\n }\n }\n \n if (inspector!=null)\n {\n Violation<T>[] violations=inspector.inspect(tuple);\n if (violations!=null)\n { throw new DataException(null,new RuleException(violations));\n }\n }\n \n }", "@Deprecated\n public static Tuple asUnmodifiable(Tuple tuple) {\n tuple.isUnmodifiable = true;\n\n return tuple;\n }", "@Override\n\t\t\tpublic Object invoke(Tuple tuple) {\n\t\t\t\treturn type.cast( col.invoke(tuple) );\n\t\t\t}", "public UnmodifiableTuple(Tuple<F, L> tuple) {\r\n this.first = tuple.getFirst();\r\n this.last = tuple.getLast();\r\n size = tuple.size();\r\n hashCode = tuple.hashCode();\r\n }", "public Key insert(Transaction tx,Tuple t) throws RelationException;", "public Relation project(Tuple t) throws RelationException;", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "public void testUnpackMultipleTuples() throws InvalidAdviceException {\n // Set up the baggage\n BaggageAPIForTest baggage = new BaggageAPIForTest();\n baggage.put(\"bag1\", new Object[][] {{\"v1\", \"v2\"}, {\"v3\", \"v4\"}, {\"v5\", \"v6\"}});\n \n EmitAPIForTest results = new EmitAPIForTest();\n Advice advice = AdviceTestUtils.newAdvice().observe(\"a\", \"b\")\n .unpack(\"bag1\", \"c\", \"d\")\n .emit(\"test1\", \"a\", \"b\", \"c\", \"d\")\n .build(baggage, results);\n \n assertTrue(\"Expect nothing emitted yet\", results.emitted.size() == 0);\n advice.advise(\"vva\", \"vvb\");\n results.expectTuple(\"vva\", \"vvb\", \"v1\", \"v2\");\n results.expectTuple(\"vva\", \"vvb\", \"v3\", \"v4\");\n results.expectTuple(\"vva\", \"vvb\", \"v5\", \"v6\");\n results.check();\n assertTrue(\"Expect 3 output tuple emitted\", results.emitted.size() == 3); \n }", "public abstract void handleTuple(ITuple tuple);", "public void merge(Tuple tup) {\n\t\t\n\t}", "public void execute(Tuple input, BasicOutputCollector collector) {\n String sentence = input.getString(0);\n String[] words = sentence.split(\"\\t\");\n collector.emit(new Values(words[1]));\n }", "@Override\n\tpublic List<MutantCtElement> execute(CtElement toMutate) {\n\t\tList<MutantCtElement> result = new ArrayList<MutantCtElement>();\n\n\t\tif (toMutate instanceof CtUnaryOperator<?>) {\n\t\t\tCtUnaryOperator<?> unary = (CtUnaryOperator<?>) toMutate;\n\t\t\tif (unary.getKind() == UnaryOperatorKind.NOT) {\n\t\t\t\tCtExpression expIF = factory.Core().clone(unary.getOperand());\n\t\t\t\tMutantCtElement mutatn = new MutantCtElement(expIF,0.3);\n\t\t\t\t//result.add(expIF);\n\t\t\t\tresult.add(mutatn);\n\t\t\t}\n\t\t} else {\n\t\t\tif (toMutate instanceof CtTypedElement<?>) {\n\t\t\t\tCtExpression<?> inv = (CtExpression<?>) toMutate;\n\t\t\t\tif (inv.getType()!= null && inv.getType().getSimpleName().equals(boolean.class.getSimpleName())) {\n\t\t\t\t\tCtExpression<?> invClone = factory.Core().clone(inv);\n\t\t\t\t\tCtUnaryOperator unary = factory.Core().createUnaryOperator();\n\t\t\t\t\tunary.setOperand(invClone);\n\t\t\t\t\tunary.setKind(UnaryOperatorKind.NOT);\n\t\t\t\t\t//result.add(unary);\n\t\t\t\t\tMutantCtElement mutatn = new MutantCtElement(unary,3);\n\t\t\t\t\t//result.add(expIF);\n\t\t\t\t\tresult.add(mutatn);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "private int[] mutationSingleMove(int[] mutant) {\n\t\tint pairPoint1 = rand.nextInt(mutant.length);\n\t\tint newBin = mutant[pairPoint1];\n\t\twhile (newBin == mutant[pairPoint1]) {\n\t\t\tnewBin = rand.nextInt(binCount);\n\t\t}\n\t\tmutant[pairPoint1] = newBin; //swap to a different bucket\n\t\treturn mutant;\n\t}", "void set(int[] pos, Tuple tuple) {\n verifyModifiable();\n\n if (pos.length != tuple.size())\n throw new RuntimeException(\"given tuple not same size as position array, tuple: \" + tuple.print());\n\n int count = 0;\n for (int i : pos)\n elements.set(i, tuple.elements.get(count++));\n }", "public void addTuple(Tuple tup) {\n table.add(tup);\n }", "@Override\n public Tuple3<Long, Double, Double> add(Tuple3<Long, Double, Double> tuple, Tuple3<Long, Double, Double> acc) {\n acc.f0 = tuple.f0;\n acc.f1 += tuple.f1;\n acc.f2 += tuple.f2;\n return acc;\n }", "private void mutateHelper() {\n\t\tsynchronized (this) {\n\t\t\tRandom rand = new Random();\n\t\t\tint mutateType = rand.nextInt(5);\n\t\t\tif (rules.size() >= 14) {\n\t\t\t\tmutateType = rand.nextInt(6);\n\t\t\t}\n\t\t\tint index = rand.nextInt(rules.size());\n\t\t\tMutation m = null;\n\t\t\tswitch (mutateType) {\n\t\t\tcase 0:\n\t\t\t\tm = MutationFactory.getDuplicate();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tm = MutationFactory.getInsert();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tm = MutationFactory.getRemove();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tm = MutationFactory.getReplace();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tm = MutationFactory.getSwap();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tm = MutationFactory.getTransform();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private void uniformMutation(){\n Random random = new Random();\n double newValue = random.nextGaussian()*16.6 + 50.0;\n if(newValue < 0) newValue = 0;\n if(newValue > 100) newValue = 100;\n int gene = random.nextInt(6);\n switch (gene){\n case 0 : this.x1 = newValue; break;\n case 1 : this.x2 = newValue; break;\n case 2 : this.x3 = newValue; break;\n case 3 : this.y1 = newValue; break;\n case 4 : this.y2 = newValue; break;\n case 5 : this.y3 = newValue; break;\n }\n }", "public void delete(Transaction tx,Tuple old) throws RelationException;", "@Override\n\tpublic Object visitTuple(Tuple tuple, Object arg) throws Exception {\n\t\tList<Expression> explist = tuple.getExprList();\n\t\tfor (Expression exp : explist) {\n\t\t\texp.visit(this, arg);\n\t\t}\n\t\treturn null;\n\t}", "Row<K, C> execute();", "private Mutater createMutater(int mutationpoint) {\n final Mutater m = new Mutater(mutationpoint);\n m.setIgnoredMethods(mExcludeMethods);\n m.setMutateIncrements(mIncrements);\n m.setMutateInlineConstants(mInlineConstants);\n m.setMutateReturnValues(mReturnVals);\n return m;\n }", "@Override\n public void process(StreamingInput<Tuple> stream, Tuple tuple) throws Exception {\n \t\n \t// Collect fields to add to JSON output.\n\t\tStreamSchema schema = tuple.getStreamSchema();\n \tSet<String> attributeNames = schema.getAttributeNames();\n \tJSONObject jsonFields = new JSONObject();\n\t \n\tfor (String attributeName : attributeNames) {\n\t\tif (schema.getAttribute(attributeName).getType().getMetaType() == Type.MetaType.RSTRING) {\n\t\t\tjsonFields.put(attributeName, tuple.getObject(attributeName).toString());\n\t\t} else {\n\t\t\tjsonFields.put(attributeName, tuple.getObject(attributeName));\n\t\t}\n\t}\n \n \t// Add timestamp, if specified, for time-based queries.\n \tif (timestampName != null) {\n \t\tDateFormat df = new SimpleDateFormat(\"yyyy'-'MM'-'dd'T'HH':'mm':'ss.SSSZZ\");\n \t\t\n \t\tif (attributeNames.contains(timestampName) && schema.getAttribute(timestampName).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(timestampName).equals(\"\")) {\n \t\t\tString timestampToInsert = tuple.getString(timestampName);\n \t\t\tjsonFields.put(timestampName, df.format(timestampToInsert));\n \t\t} else {\n \t\t\tjsonFields.put(timestampName, df.format(new Date(System.currentTimeMillis())));\n \t\t}\n \t}\n \t\n \t// Get index name/type/id specified inside tuple (default: from params).\n \tString indexToInsert = index;\n \tString typeToInsert = type;\n \tString idToInsert = null;\n \t\n \tif (attributeNames.contains(index) && schema.getAttribute(index).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(index).equals(\"\")) {\n \t\tindexToInsert = tuple.getString(index);\n \t}\n \t\n \tif (attributeNames.contains(type) && schema.getAttribute(type).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(type).equals(\"\")) {\n \t\ttypeToInsert = tuple.getString(type);\n \t}\n\n \tif (id != null && attributeNames.contains(id) && schema.getAttribute(id).getType().getMetaType() == Type.MetaType.RSTRING\n \t\t\t&& !tuple.getString(id).equals(\"\")) {\n \t\tidToInsert = tuple.getString(id);\n \t}\n \t\n \tif (connectedToElasticsearch(indexToInsert, typeToInsert)) {\n \t\n \t\t// Add jsonFields to bulkBuilder.\n \tString source = jsonFields.toString();\n \t\n \tif (idToInsert != null) {\n \t\tbulkBuilder.addAction(new Index.Builder(source).index(indexToInsert).type(typeToInsert).id(idToInsert).build());\n \t} else {\n \t\tbulkBuilder.addAction(new Index.Builder(source).index(indexToInsert).type(typeToInsert).build());\n \t}\n \t\n \tcurrentBulkSize++;\n \t\n \t// If bulk size met, output jsonFields to Elasticsearch.\n \tif(currentBulkSize >= bulkSize) {\n\t \tBulk bulk = bulkBuilder.build();\n\t \tBulkResult result;\n\t \t\n\t \ttry {\n\t\t \tresult = client.execute(bulk);\n\t \t} catch (NoHttpResponseException e) {\n\t \t\t_trace.error(e);\n\t \t\treturn;\n\t \t}\n\t \t\n \t\t\tif (result.isSucceeded()) {\n \t\t\t\tlong currentNumInserts = numInserts.getValue();\n \t\t\t\tnumInserts.setValue(currentNumInserts + bulkSize);\n \t\t\t\tcurrentBulkSize = 0;\n \t\t\t} else {\n \t\t\t\tfor (BulkResultItem item : result.getItems()) {\n \t\t\t\t\tif (item.error != null) {\n \t\t\t\t\t\tnumInserts.increment();\n \t\t\t\t\t} else {\n \t\t\t\t\t\ttotalFailedRequests.increment();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// Clear bulkBuilder. Gets recreated in connectedToElasticsearch().\n \t\t\tbulkBuilder = null;\n \t\t\t\n \t\t\t// Get size metrics for current type.\n \t\t\tif (sizeMetricsEnabled && mapperSizeInstalled) {\n\t \t\t\tString query = \"{\\n\" +\n\t \t \" \\\"query\\\" : {\\n\" +\n\t \t \" \\\"match_all\\\" : {}\\n\" +\n\t \t \" },\\n\" +\n\t \t \" \\\"aggs\\\" : {\\n\" +\n\t \t \" \\\"size_metrics\\\" : {\\n\" +\n\t \t \" \\\"extended_stats\\\" : {\\n\" +\n\t \t \" \\\"field\\\" : \\\"_size\\\"\\n\" +\n\t \t \" }\\n\" +\n\t \t \" }\\n\" +\n\t \t \" }\\n\" +\n\t \t \"}\";\n\t \t\t\t\n\t \t Search search = new Search.Builder(query)\n\t \t .addIndex(indexToInsert)\n\t \t .addType(typeToInsert)\n\t \t .build();\n\t \t \n\t \t SearchResult searchResult = client.execute(search);\n\t \t \n\t \t if (searchResult.isSucceeded()) {\n\t\t \t ExtendedStatsAggregation sizeMetrics = searchResult.getAggregations().getExtendedStatsAggregation(\"size_metrics\");\n\t\t \t\t\t\n\t\t \t if (sizeMetrics != null) {\n\t\t \t \tif (sizeMetrics.getAvg() != null) {\n\t\t\t\t \t\t\tavgInsertSizeBytes.setValue(sizeMetrics.getAvg().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getMax() != null) {\n\t\t \t \t\tmaxInsertSizeBytes.setValue(sizeMetrics.getMax().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getMin() != null) {\n\t\t \t \t\tminInsertSizeBytes.setValue(sizeMetrics.getMin().longValue());\n\t\t \t \t}\n\t\t \t \tif (sizeMetrics.getSum() != null) {\n\t\t \t \t\tsumInsertSizeBytes.setValue(sizeMetrics.getSum().longValue());\n\t\t \t \t}\n\t\t \t }\n\t \t }\n \t\t\t}\n \t\t}\n \t}\n }", "private void writeColumnsFromBag(ByteBuffer key, DataBag bag) throws IOException\n {\n List<Mutation> mutationList = new ArrayList<Mutation>();\n for (Tuple pair : bag)\n {\n Mutation mutation = new Mutation();\n if (DataType.findType(pair.get(1)) == DataType.BAG) // supercolumn\n {\n SuperColumn sc = new SuperColumn();\n sc.setName(objToBB(pair.get(0)));\n List<org.apache.cassandra.thrift.Column> columns = new ArrayList<org.apache.cassandra.thrift.Column>();\n for (Tuple subcol : (DataBag) pair.get(1))\n {\n org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column();\n column.setName(objToBB(subcol.get(0)));\n column.setValue(objToBB(subcol.get(1)));\n column.setTimestamp(FBUtilities.timestampMicros());\n columns.add(column);\n }\n if (columns.isEmpty())\n {\n if (allow_deletes)\n {\n mutation.deletion = new Deletion();\n mutation.deletion.super_column = objToBB(pair.get(0));\n mutation.deletion.setTimestamp(FBUtilities.timestampMicros());\n }\n else\n throw new IOException(\"SuperColumn deletion attempted with empty bag, but deletes are disabled, set \" +\n PIG_ALLOW_DELETES + \"=true in environment or allow_deletes=true in URL to enable\");\n }\n else\n {\n sc.columns = columns;\n mutation.column_or_supercolumn = new ColumnOrSuperColumn();\n mutation.column_or_supercolumn.super_column = sc;\n }\n }\n else\n mutation = mutationFromTuple(pair);\n mutationList.add(mutation);\n // for wide rows, we need to limit the amount of mutations we write at once\n if (mutationList.size() >= 10) // arbitrary, CFOF will re-batch this up, and BOF won't care\n {\n writeMutations(key, mutationList);\n mutationList.clear();\n }\n }\n // write the last batch\n if (mutationList.size() > 0)\n writeMutations(key, mutationList);\n }", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "@Test\n\tpublic void testMutationTypes() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\t// MutationType\n\t\tfinal IntrospectionFullType mutationType = getFullType(introspection, schemaConfig.getMutationTypeName());\n\n\t\t// - check all mutations are available\n\t\tfinal List<String> mutationNames = new ArrayList<>();\n\t\tArrays.asList(Entity1.class, Entity2.class, Entity3.class, Entity4.class).stream().forEach(clazz -> {\n\t\t\tmutationNames.add(schemaConfig.getMutationSavePrefix() + clazz.getSimpleName());\n\t\t\tmutationNames.add(schemaConfig.getMutationDeletePrefix() + clazz.getSimpleName());\n\t\t});\n\t\tmutationNames.forEach(mutationName -> Assert.assertTrue(mutationType.getFields().stream()\n\t\t\t\t.map(IntrospectionTypeField::getName).collect(Collectors.toList()).contains(mutationName)));\n\n\t\t// - check one 'save' mutation (other ones are built the same way)\n\t\tfinal IntrospectionTypeField saveEntity1 = assertField(mutationType, mutationNames.get(0),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT, Entity1.class);\n\t\tAssert.assertEquals(1, saveEntity1.getArgs().size());\n\t\tassertArg(saveEntity1, \"data\", IntrospectionTypeKindEnum.NON_NULL, IntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\n\t\t// - check one 'delete' mutation (other ones are built the same way)\n\t\tfinal IntrospectionTypeField deleteEntity1 = assertField(mutationType, mutationNames.get(1),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tschemaConfig.getOutputDeleteResultTypeNamePrefix() + schemaConfig.getOutputTypeNameSuffix());\n\t\tAssert.assertEquals(1, deleteEntity1.getArgs().size());\n\t\tassertArg(deleteEntity1, \"id\", IntrospectionTypeKindEnum.NON_NULL, IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLID.getName());\n\t}", "private Tuples() {}", "abstract public Tuple move(Tuple c, char [][] forest);", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "@Test\r\n\tpublic void testPrepareTupleQuery1() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0, testAdminCon.size());\r\n\t\t\r\n\t\tStatement st1 = vf.createStatement(john, fname, johnfname, dirgraph);\r\n\t\tStatement st2 = vf.createStatement(john, lname, johnlname, dirgraph);\r\n\t\tStatement st3 = vf.createStatement(john, homeTel, johnhomeTel, dirgraph);\r\n\t\tStatement st4 = vf.createStatement(john, email, johnemail, dirgraph);\r\n\t\tStatement st5 = vf.createStatement(micah, fname, micahfname, dirgraph);\r\n\t\tStatement st6 = vf.createStatement(micah, lname, micahlname, dirgraph);\r\n\t\tStatement st7 = vf.createStatement(micah, homeTel, micahhomeTel, dirgraph);\r\n\t\tStatement st8 = vf.createStatement(fei, fname, feifname, dirgraph);\r\n\t\tStatement st9 = vf.createStatement(fei, lname, feilname, dirgraph);\r\n\t\tStatement st10 = vf.createStatement(fei, email, feiemail, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(st1, dirgraph);\r\n\t\ttestAdminCon.add(st2, dirgraph);\r\n\t\ttestAdminCon.add(st3, dirgraph);\r\n\t\ttestAdminCon.add(st4, dirgraph);\r\n\t\ttestAdminCon.add(st5, dirgraph);\r\n\t\ttestAdminCon.add(st6, dirgraph);\r\n\t\ttestAdminCon.add(st7, dirgraph);\r\n\t\ttestAdminCon.add(st8, dirgraph);\r\n\t\ttestAdminCon.add(st9, dirgraph);\r\n\t\ttestAdminCon.add(st10, dirgraph);\r\n\t\t\r\n\t\tAssert.assertEquals(10, testAdminCon.size(dirgraph));\t\r\n\t\t\r\n\t\tStringBuilder queryBuilder = new StringBuilder();\r\n\t\tqueryBuilder.append(\"PREFIX ad: <http://marklogicsparql.com/addressbook#>\");\r\n\t\tqueryBuilder.append(\" PREFIX d: <http://marklogicsparql.com/id#>\");\r\n\t\tqueryBuilder.append(\" SELECT DISTINCT ?person\");\r\n\t\tqueryBuilder.append(\" FROM <http://marklogic.com/dirgraph>\");\r\n\t\tqueryBuilder.append(\" WHERE\");\r\n\t\tqueryBuilder.append(\" {?person ad:firstName ?firstname ;\");\r\n\t\tqueryBuilder.append(\" ad:lastName ?lastname.\");\r\n\t\tqueryBuilder.append(\" OPTIONAL {?person ad:homeTel ?phonenumber .}\");\r\n\t\tqueryBuilder.append(\" FILTER (?firstname = \\\"Fei\\\")}\");\r\n\t\t\r\n\t\tTupleQuery query = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, queryBuilder.toString());\r\n\t\tTupleQueryResult result = query.evaluate();\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"person\"), is(equalTo(true)));\r\n\t\t\t\tValue nameResult = solution.getValue(\"person\");\r\n\t\t\t\tAssert.assertEquals(nameResult.stringValue(),fei.stringValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t}", "public void execute(Tuple input) {\n\t\tString type = input.getStringByField(\"type\");\n\t\tString record = input.getStringByField(\"record\");\n\t\tfor (String word : record.split(\"\\\\s+\")) {\n\t\t\tcollector.emit(input, new Values(type, word));\n\t\t\tLOGGER.info(\"Word emmited: type = \" + type + \", word = \" + word);\n\t\t\tcollector.ack(input);\n\t\t}\n\t}", "void insertVariableFields(String streamColumnFamily, String rowKey,\n Mutator<String> mutator,\n Map<String, String> customKeyValuePairs) {\n for (Map.Entry<String, String> stringStringEntry : customKeyValuePairs.entrySet()) {\n mutator.addInsertion(rowKey, streamColumnFamily,\n HFactory.createStringColumn(stringStringEntry.getKey(),\n stringStringEntry.getValue()));\n }\n }", "abstract protected void writeTuple(Tuple tuple) throws IOException;", "public Void visit(TupleUpdateExp exp)\n {\n exp.exp1.accept(this);\n exp.exp2.accept(this);\n int index = exp.index.getInteger()-1;\n TupleType type = (TupleType)exp.exp1.getType();\n Expression c = getConstraint(type.types[index], exp.exp2, exp.exp2.getType());\n if (c != null) \n conditions.add(new Condition(Condition.Kind.Update, exp, c));\n return null;\n }", "@Override\n public void emitTuples() {\n\n Statement query = queryToRetrieveData();\n logger.debug(String.format(\"select statement: %s\", query.toString()));\n RecordSet rs;\n try {\n rs = store.getClient().query(null, query);\n while(rs.next()){\n Record rec = rs.getRecord();\n T tuple = getTuple(rec);\n outputPort.emit(tuple);\n }\n }\n catch (Exception ex) {\n store.disconnect();\n DTThrowable.rethrow(ex);\n }\n }", "Tuple extract(int[] pos) {\n Tuple results = new Tuple();\n\n for (int i : pos)\n results.add(elements.set(i, null));\n\n return results;\n }", "public double update(Tuple x) {\n return update(x.toArray(columns));\n }", "@Override\n\tpublic void execute(Tuple tuple, BasicOutputCollector collector) {\n\t\tString sentence = tuple.getValue(0).toString();\n\t\ttry {\n\t\t\tsentence = new String(sentence.getBytes(),\"utf-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n collector.emit(new Values(sentence));\n List<DBObject> dbList = new ArrayList<DBObject>(); \n BasicDBObject doc1 = new BasicDBObject(); \n doc1.put(\"ywlog\", sentence);\n int left = sentence.indexOf(\"datetime\");\n if(sentence.contains(\"datetime\")){\n \tdoc1.put(\"datetime\", sentence.substring(left+11, left+30));\n }\n dbList.add(doc1); \n myCollection.insert(dbList);\n\t}", "@Test\n public void testExpressionPushdownPreparedStatements() throws Exception {\n String tableName = \"test_update_expr_pushdown\";\n setupSimpleTable(tableName);\n\n PreparedStatement updateStmt = connection.prepareStatement(\n \"update test_update_expr_pushdown SET vi = vi + ?, vs = vs || ? \" +\n \"WHERE h = 2 AND r = 2.5\");\n int expected_vi = 22;\n String expected_vs = \"v22\";\n for (int i = 0; i < 20; i++) {\n // Use float instead of int to check bind param casting.\n float vi_inc = i * 10 + 5.4F;\n String vs_concat = \",\" + i;\n updateStmt.setFloat(1, vi_inc);\n updateStmt.setString(2, vs_concat);\n updateStmt.execute();\n expected_vi += vi_inc;\n expected_vs += vs_concat;\n assertOneRow(\"select vi,vs from test_update_expr_pushdown where h = 2 and r = 2.5\",\n expected_vi, expected_vs);\n }\n }", "public void deleteTuple(TransactionId tid, Tuple t)\n throws DbException, TransactionAbortedException {\n // some code goes here\n // not necessary for lab1\n DbFile dbFile = Database.getCatalog().getDatabaseFile(t.getRecordId().getPageId().getTableId());\n Page affectedPg = dbFile.deleteTuple(tid, t);\n affectedPg.markDirty(true, tid);\n\n // bufferPool.remove(affectedPg.getId());\n bufferPool.put(affectedPg.getId(), affectedPg);\n }", "public abstract Chromosome mutation(Chromosome child);", "public abstract T getTuple(int aPosition);", "private void addKeyToTuple(Tuple tuple, ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException\n {\n if( comparator instanceof AbstractCompositeType )\n {\n StorageHelper.setTupleValue(tuple, 0, composeComposite((AbstractCompositeType) comparator, key));\n }\n else\n {\n StorageHelper.setTupleValue(tuple, 0, StorageHelper.cassandraToObj(getDefaultMarshallers(cfDef).get(MarshallerType.KEY_VALIDATOR), key, nativeProtocolVersion));\n }\n\n }", "protected Tuple composeComposite(AbstractCompositeType comparator, ByteBuffer name) throws IOException\n {\n List<AbstractCompositeType.CompositeComponent> result = comparator.deconstruct(name);\n Tuple t = TupleFactory.getInstance().newTuple(result.size());\n for (int i=0; i<result.size(); i++)\n StorageHelper.setTupleValue(t, i, StorageHelper.cassandraToObj(result.get(i).comparator, result.get(i).value, nativeProtocolVersion));\n\n return t;\n }", "protected abstract List<Integer> doEmit(OUT flinkTuple);", "@Update\n Single<Integer> update(Motivator... motivators);", "com.google.spanner.v1.Mutation.WriteOrBuilder getUpdateOrBuilder();", "public final void transform(Tuple3f t) {\n\t\n \t// alias-safe\n \tthis.transform(t, t);\n }", "public void deleteTuple(TransactionId tid, Tuple t)\n throws DbException, TransactionAbortedException {\n // some code goes here\n // not necessary for proj1\n try {\n Page page = Database.getCatalog().getDbFile(t.getRecordId()\n .getPageId().getTableId()).deleteTuple(tid, t);\n\n page.markDirty(true, tid);\n //updateLruWithNewNode(page.getId(), page);\n } catch (DbException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (TransactionAbortedException e) {\n e.printStackTrace();\n System.exit(0);\n }\n }", "protected String createUpdate(T t) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"UPDATE \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" SET \");\n\t\treturn sb.toString();\n\t}", "public void insertTripleDistributedByObject(Triple triple) {\n\r\n }", "public Tuple(Loyalty... c)\r\n\t\t{\r\n\t\t\tsuper(Arrays.asList(c));\r\n\t\t}", "abstract protected void syncTuples() throws IOException;", "com.google.spanner.v1.Mutation.Write getReplace();", "R commit(C change);", "private Object mutation(Individual child){\n\t\treturn problem.improve(child.getId());\r\n\t}", "@Test\n public void testProcessTuple() throws Exception {\n TestBolt tb = spy(new TestBolt());\n\n // Test input data\n TopologyContext tc = mock(TopologyContext.class);\n OutputCollector oc = mock(OutputCollector.class);\n\n // Create a mock tuple\n Tuple tuple = mock(Tuple.class);\n when(tuple.getSourceComponent())\n .thenReturn(Constants.COORDINATED_STREAM_ID);\n when(tuple.getSourceStreamId())\n .thenReturn(\"default\");\n\n // Prepare the bolt\n tb.prepare(new HashMap<>(), tc, oc);\n tb.execute(tuple);\n\n verify(tb, times(1)).process(tuple);\n verify(oc, times(1)).ack(tuple);\n }", "public void insertTuple(TransactionId tid, int tableId, Tuple t)\n throws DbException, IOException, TransactionAbortedException {\n // some code goes here\n // not necessary for proj1\n try {\n DbFile dbFile = Database.getCatalog().getDbFile(tableId);\n HeapFile heapFile = (HeapFile)dbFile;\n List<Page> pages = heapFile.insertTuple(tid, t);\n //Database.getCatalog().getDbFile(tableId)\n // .insertTuple(tid, t);\n for (Page page : pages) {\n page.markDirty(true, tid);\n // updateLruWithNewNode(page.getId(), page);\n }\n } catch (TransactionAbortedException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (DbException e) {\n e.printStackTrace();\n System.exit(0);\n }\n }", "public org.apache.spark.sql.Column apply (scala.collection.Seq<org.apache.spark.sql.Column> exprs) { throw new RuntimeException(); }", "List<IMutantBytecode> mutate(byte[] bytecode, IMutationPoint mutationPoint);", "public static Object PQupdate(Object... arg) {\nUNSUPPORTED(\"c01vxogao855zs8fe94tpim9g\"); // void\nUNSUPPORTED(\"b1fi3xtkc0mzuq3pimbrumdj3\"); // PQupdate (snode* n, int d)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"byrcaa9kitj1mfe0we79iao5b\"); // (n)->n_val = d;\nUNSUPPORTED(\"az1v3dey64e8mmt571cqcmw5b\"); // PQupheap (n->n_idx);\nUNSUPPORTED(\"a7h72yd6f22ezx8o0izfoyyzl\"); // PQcheck();\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "List<IMutationPoint> getMutationPoints(byte[] bytecode);", "public void execute(Tuple input) {\n String line= input.getStringByField(\"Line\");\r\n //int C= input.getInteger(1);\r\n //logger.info(\"Line is read bolt \"+ line + \" and emitted at time\");\r\n // String [] data= line.split(\",\");\r\n Long count= wordcount.get(line, (long) 0);//data[8]\r\n count++;\r\n wordcount.put(line, count);//data[8]\r\n //System.out.println(data[0]+\" \"+count);\r\n collector.ack(input);\r\n }", "@Insert\n Single<List<Long>> insert(Motivator... motivators);" ]
[ "0.59798354", "0.5738407", "0.5653028", "0.5521302", "0.5490331", "0.5434461", "0.5270924", "0.52706367", "0.51797163", "0.5136693", "0.50882375", "0.4934436", "0.49038962", "0.48821366", "0.48778144", "0.4867835", "0.48589355", "0.48561114", "0.48536047", "0.47933888", "0.47480708", "0.47399977", "0.47381973", "0.47344658", "0.46903804", "0.46712634", "0.46703783", "0.46647808", "0.4657878", "0.46549484", "0.46506315", "0.4647111", "0.46319953", "0.46298847", "0.4616592", "0.4616058", "0.46159497", "0.46048397", "0.46013343", "0.4598466", "0.45931795", "0.4579199", "0.45684284", "0.4557708", "0.45527765", "0.45514828", "0.45429894", "0.45411435", "0.45380208", "0.4535238", "0.45207158", "0.45106462", "0.45069376", "0.4488756", "0.44868335", "0.44867682", "0.4484521", "0.44659126", "0.44556242", "0.4453735", "0.4449276", "0.443741", "0.4426636", "0.44260347", "0.4423246", "0.44205052", "0.4420002", "0.4407027", "0.44058022", "0.44024718", "0.44014943", "0.4396688", "0.43955323", "0.438896", "0.4372896", "0.43680474", "0.43673182", "0.4366161", "0.4365219", "0.436338", "0.4361617", "0.43476218", "0.4347259", "0.43465698", "0.43433088", "0.43253955", "0.43237555", "0.4319083", "0.43189484", "0.43169615", "0.43022847", "0.42909655", "0.42818117", "0.42800528", "0.4277146", "0.42650205", "0.4262488", "0.42616332", "0.42610994", "0.42593887" ]
0.72368586
0
write bag data to Cassandra
private void writeColumnsFromBag(ByteBuffer key, DataBag bag) throws IOException { List<Mutation> mutationList = new ArrayList<Mutation>(); for (Tuple pair : bag) { Mutation mutation = new Mutation(); if (DataType.findType(pair.get(1)) == DataType.BAG) // supercolumn { SuperColumn sc = new SuperColumn(); sc.setName(objToBB(pair.get(0))); List<org.apache.cassandra.thrift.Column> columns = new ArrayList<org.apache.cassandra.thrift.Column>(); for (Tuple subcol : (DataBag) pair.get(1)) { org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column(); column.setName(objToBB(subcol.get(0))); column.setValue(objToBB(subcol.get(1))); column.setTimestamp(FBUtilities.timestampMicros()); columns.add(column); } if (columns.isEmpty()) { if (allow_deletes) { mutation.deletion = new Deletion(); mutation.deletion.super_column = objToBB(pair.get(0)); mutation.deletion.setTimestamp(FBUtilities.timestampMicros()); } else throw new IOException("SuperColumn deletion attempted with empty bag, but deletes are disabled, set " + PIG_ALLOW_DELETES + "=true in environment or allow_deletes=true in URL to enable"); } else { sc.columns = columns; mutation.column_or_supercolumn = new ColumnOrSuperColumn(); mutation.column_or_supercolumn.super_column = sc; } } else mutation = mutationFromTuple(pair); mutationList.add(mutation); // for wide rows, we need to limit the amount of mutations we write at once if (mutationList.size() >= 10) // arbitrary, CFOF will re-batch this up, and BOF won't care { writeMutations(key, mutationList); mutationList.clear(); } } // write the last batch if (mutationList.size() > 0) writeMutations(key, mutationList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> void write(MDSKey id, T value) {\n try {\n table.put(new Put(id.getKey()).add(COLUMN, serialize(value)));\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }", "@Override\n\t\tpublic void write(K key, V value) throws IOException, InterruptedException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t//System.out.println(key.toString()+\":\"+value.toString());\n\t\t\tConfiguration conf = HBaseConfiguration.create();\n\t\t\t//conf.set(\"hbase.zookeeper.quorum\", \"10.105.245.143,10.105.245.144,10.105.245.147\");\n\t\t\tString mess[] = key.toString().split(\":\");\n\t\t\tString time = mess[0];\n\t\t\tString nation = mess[1];\n\t\t\tString nationid = PeopleCountByNation.asmap.get(nation);\n\t\t\tconf.set(\"hbase.zookeeper.quorum\", \"localhost\");\n\t\t\tint sum = Integer.parseInt(value.toString());\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tHTable table = new HTable(conf,\"nation\".getBytes());\n\t\t\tPut put = new Put(Bytes.toBytes(time+nationid));\n\t\t\tput.add(Bytes.toBytes(\"n\"),Bytes.toBytes(\"n\"),Bytes.toBytes(sum));\n\t\t\ttable.put(put);\n\t\t /* String record = value.toString();\n\t\t String mess [] = record.split(\"----\");\n\t\t String recordmess [] = mess[0].split(\"////\");\n\t\t HTable table = new HTable(conf,\"sort\".getBytes());\n\t\t //System.out.println(key.toString());\n\t\t Put put = new Put(Bytes.toBytes(key.toString()));\n\t\t put.add(Bytes.toBytes(\"title\"),Bytes.toBytes(recordmess[0]),Bytes.toBytes(mess[1]));\n\t\t table.put(put);*/\n\t\t \n\t\t //将数据存储在 hbase 中,这次存储的是word与title的集合\n\t\t \n\t\t \n\t\t \n\t\t}", "private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}", "private void commitAll(){\n if(isDiskBufferEnabled && persistenceService != null){\n persistenceService.commit(WIKIDATA_SYNONYMY_BUFFER);\n persistenceService.commit(WIKIDATA_HYPERNYMY_BUFFER);\n persistenceService.commit(WIKIDATA_ASK_BUFFER);\n }\n }", "public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void persist(DataOutputStream dos) throws Exception;", "public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "@Override\n\tpublic void put(String key, String cat, byte[] data) throws RemoteException {\n\t\t\n\t}", "public void write_to_buffer(DataOutputStream out) throws IOException\r\n {\r\n for (int i = 0; i < 2*dimension; ++i)\r\n out.writeFloat(bounces[i]);\r\n out.writeInt(son);\r\n out.writeInt(num_of_data);\r\n }", "@Override\n public void beginDatabaseBatchWrite() throws BlockStoreException {\n if (!autoCommit) {\n return;\n }\n if (instrument)\n beginMethod(\"beginDatabaseBatchWrite\");\n\n batch = db.createWriteBatch();\n uncommited = new HashMap<ByteBuffer, byte[]>();\n uncommitedDeletes = new HashSet<ByteBuffer>();\n utxoUncommittedCache = new HashMap<ByteBuffer, UTXO>();\n utxoUncommittedDeletedCache = new HashSet<ByteBuffer>();\n autoCommit = false;\n if (instrument)\n endMethod(\"beginDatabaseBatchWrite\");\n }", "public abstract void save(IntIntsCol col, DataOutputStream output) throws IOException;", "void writeByteArray(ByteArray array);", "public abstract void save(LongIntsCol col, DataOutputStream output) throws IOException;", "void writeBytes(byte[] value);", "public void store(DBConnection db) throws IOException;", "@Writer\n int insert(LuckyBag record);", "@Override\n public void putAll(byte keys[][], byte values[][]) throws Exception {\n BufferedMutator mutator = getNextConnection().getBufferedMutator(dataTableName);\n for (int i = 0; i < keys.length; i++) {\n byte[] actualKey = transformKey(keys[i]);\n Put put = new Put(actualKey);\n put.addColumn(this.columnFamily, this.columnName, values[i]);\n mutator.mutate(put);\n }\n mutator.close();\n }", "void write(Batch batch) throws InfluxDbApiNotFoundException, InfluxDbApiBadrequestException, InfluxDbTransportException;", "public void insertData(byte[] bytes, String tablename) throws IOException{\n String sql = \"INSERT INTO \" + tablename + \" (tree)\";\n sql += \" VALUES ( \" + bytes + \" )\";\n session.execute(sql);\n }", "public abstract void write(byte[] b);", "private void writeObject(Object object) {\r\n\t\tsession.saveOrUpdate(object);\r\n\r\n\t\t// Since can writing large amount of data should use Hibernate \r\n\t\t// batching to make sure don't run out memory.\r\n\t\tcounter++;\r\n\t\tif (counter % HibernateUtils.BATCH_SIZE == 0) {\r\n\t\t\tsession.flush();\r\n\t\t\tsession.clear();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\t\n\t\tout.writeInt(id);\n\t\tout.writeUTF(date);\n\t\tout.writeUTF(pid);\n\t\tout.writeInt(amount);\n\t\tout.writeUTF(name);\n\t\tout.writeUTF(category_id);\n\t\tout.writeInt(price);\n\t\tout.writeUTF(flag);\n\t\t\n\t}", "private static void writeDataBase() throws IOException{\n \t\n \t// Write variables and class labels\n \tFileSystem fs = FileSystem.get(Mediator.getConfiguration());\n\t ObjectOutputStream objectOutputStream = new ObjectOutputStream(fs.create(new Path(Mediator.getHDFSLocation()+\"/\"+Mediator.getLearnerDatabasePath())));\n\t objectOutputStream.writeObject(Mediator.getVariables());\n\t objectOutputStream.writeObject(Mediator.getClassLabels());\n\t objectOutputStream.close();\n\t fs.close();\n \t\n }", "public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}", "public void write(byte[] buffer);", "private void write(S3CheckpointData data) throws IgniteCheckedException, AmazonClientException {\n assert data != null;\n\n if (log.isDebugEnabled())\n log.debug(\"Writing data to S3 [bucket=\" + bucketName + \", key=\" + data.getKey() + ']');\n\n byte[] buf = data.toBytes();\n\n ObjectMetadata meta = new ObjectMetadata();\n\n meta.setContentLength(buf.length);\n\n if (!F.isEmpty(sseAlg))\n meta.setSSEAlgorithm(sseAlg);\n\n s3.putObject(bucketName, data.getKey(), new ByteArrayInputStream(buf), meta);\n }", "public abstract void save(LongLongsCol col, DataOutputStream output) throws IOException;", "void setBytes(int index, byte[] value) throws SQLException;", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "public void writeDatabase();", "public abstract boolean writeDataItem(BDTuple tuple) throws RollbackException;", "public void writeData(byte b[]) throws IOException {\n\n RandomAccessFile raf;\n int skip_head;\n\n float vox_offset = header.getVox_offset();\n String ds_datname = header.getDs_datname();\n\n skip_head = (int) vox_offset;\n\n\n // can't write random access compressed yet\n if (ds_datname.endsWith(\".gz\")) {\n throw new IOException(\"Sorry, can't write to compressed image data file: \" + ds_datname);\n }\n\n\n // write data blob\n raf = new RandomAccessFile(ds_datname, \"rwd\");\n raf.seek(skip_head);\n raf.write(b, 0, b.length);\n raf.close();\n\n }", "public void flushData (){\n\t\tTransaction tx = this.pm.currentTransaction();\n\t\ttry {\n\t\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\t\tthis.pm.currentTransaction().commit();\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tApplication.getLogger ().error (\"Error flushing data for persistence. \", e);\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t}\n//\t\ttx.begin();\n\t}", "@Override\n public void write() {\n\n }", "@Override\n public void commitTx() {\n \n }", "void setBlob(int index, Blob value) throws SQLException;", "private void persistUserDataIfNeeded() throws IOException {\n int amountdatasets = 0;\n for (Transaction t : buffer) {\n amountdatasets += t.getDatasets().size();\n }\n //more than 5 datasets in write buffer --> write committed transactions\n if (amountdatasets >= 5) {\n Set<Transaction> todelete = new HashSet<>();\n\n //only one thread at a time should enter this block\n synchronized (this) {\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" entered persistUserDataIfNeeded sync block\");\n for (Transaction t : buffer) {\n if (t.isCommitted()) {\n for (UserData data : t.getDatasets()) {\n persistData(data);\n }\n todelete.add(t);\n }\n }\n\n //here the deletion happens. Comment out if Abnahme is n�rgeling... :)\n for (Transaction t : todelete) {\n System.out.println(\"removing transaction \" + t.getId() + \" from buffer\");\n buffer.remove(t);\n }\n// System.out.println(\"thread \" + Thread.currentThread().getId() + \" left persistUserDataIfNeeded sync block\");\n }\n }\n }", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "private void writeData(Cacheable[] data) throws IOException {\n for (Cacheable c : data) {\n for (Serializable s : c.cache()) {\n out.writeObject(s);\n }\n }\n }", "public void write_to_buffer(DataOutputStream out) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n out.writeFloat(this.data[i]);\r\n }\r\n out.writeFloat(this.distanz);\r\n// out.write(this.PlaceId.getBytes());\r\n out.writeInt(this.getPlaceId());\r\n// System.out.println(\"heheheh +::\" + this.PlaceId.length);\r\n out.writeDouble(this.location[0]);\r\n out.writeDouble(this.location[1]);\r\n// System.out.println(\"heheheh +::\" +this.PlaceId.getBytes().length);\r\n }", "public void commit(Transaction t) {\n\t\ttry {\n\t\t\tArrayList<Record> records = new ArrayList<Record>();\n\t\t\tfor (int i = 0; i < t.noOfBundles; i++) {\n\t\t\t\tString record = \"\";\n\t\t\t\tBundle b = t.bundles[i];\n\t\t\t\tbyte[] recd = b.data;\n\t\t\t\trecord = new String(recd);\n\t\t\t\tString rec[] = record.split(\"\\n\");\n\t\t\t\tRecord r = new Record();\n\t\t\t\tr.rowid = Long.parseLong(rec[0]);\n\t\t\t\tr.groupid = rec[1];\n\t\t\t\tr.key = rec[2];\n\t\t\t\tr.value = rec[3];\n\t\t\t\tr.user = rec[4];\n\t\t\t\tr.datatype = rec[5];\n\t\t\t\tr.timestamp = Long.parseLong(rec[6]);\n\t\t\t\tr.synced = \"Y\";\n\t\t\t\tif (r.datatype.equals(\"file\")) {\n\t\t\t\t\tint l = Integer.parseInt(r.value.substring(0,\n\t\t\t\t\t\t\tr.value.indexOf(' ')));\n\t\t\t\t\tString fileName = r.value\n\t\t\t\t\t\t\t.substring(r.value.indexOf(' ') + 1);\n\t\t\t\t\tfileName = deviceId + \"_\" + t.transactionId + \"_\" + i + \"_\"\n\t\t\t\t\t\t\t+ fileName;\n\t\t\t\t\tString path = storagePath + \"/\" + fileName;\n\t\t\t\t\tFile f = new File(path);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(f);\n\t\t\t\t\tfor (int j = 1; j <= l; j++) {\n\t\t\t\t\t\tb = t.bundles[i + j];\n\t\t\t\t\t\tfos.write(b.data);\n\t\t\t\t\t}\n\t\t\t\t\tfos.close();\n\t\t\t\t\ti += l;\n\t\t\t\t\tr.value = path;\n\t\t\t\t}\n\t\t\t\trecords.add(r);\n\t\t\t}\n\t\t\tdh.putToRepository(records);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void save(IntLongsCol col, DataOutputStream output) throws IOException;", "private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }", "public void addWritten(byte[] value) {\n\n writeSetLock.lock();\n writeSet.add(new TimestampValuePair(ets, value));\n writeSetLock.unlock();\n }", "public void writeData(byte[] data){\n if (mWriteCharacteristic!=null &&data!=null){\n mWriteCharacteristic.setValue(data[0],BluetoothGattCharacteristic.FORMAT_UINT8,0);\n mWriteCharacteristic.setValue(data);\n bluetoothGatt.writeCharacteristic(mWriteCharacteristic);\n }\n }", "@Override\r\n\tpublic void write(CEntity entity) {\n\t\tentity.write(writer);\t\t\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void migrateDataByBatch() {\n\t\tpool = new HTablePool(conf, 1024);\n\t\tSQLExporter sqlExporter = \n\t\t\tnew SQLExporter(url, username, password, catalog);\n\t\twhile(sqlExporter.hasNextDataTable()) {\n\t\t\tEntry entry = sqlExporter.next();\n\t\t\tString tableName = REGION + \".\" + (String) entry.getKey();\n\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) entry.getValue();\n\t\t\t/**\n\t\t\t * table to migrate data.\n\t\t\t */\n\t\t\tHTable table = (HTable) pool.getTable(tableName);\n\t\t\t\n\t\t\t/**\n\t\t\t * set write buffer size.\n\t\t\t */\n\t\t\ttry {\n\t\t\t\ttable.setWriteBufferSize(WRITE_BUFFER_SIZE);\n\t\t\t\ttable.setAutoFlush(false);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tList<Put> puts = new ArrayList<Put>();\n\t\t\tint size = list.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\n\t\t\t\tPut put = new Put((new Integer(i)).toString().getBytes());\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = list.get(i);\n\t\t\t\tcounter ++;\n\t\t\t\t/**\n\t\t\t\t * add one row to be put.\n\t\t\t\t */\n\t\t\t\tfor (Map.Entry<String, Object> m : map.entrySet()) {\t\n\t\t\t\t\tput.add(FAMILY.getBytes(), m.getKey().getBytes(), \n\t\t\t\t\t\t\tm.getValue().toString().getBytes());\t\n\t\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * add `put` to list puts. \n\t\t\t\t */\n\t\t\t\tputs.add(put);\n\t\t\t\t\n\t\t\t\tif ((counter % LIST_PUTS_COUNTER == 0) || (i == size - 1)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttable.put(puts);\n\t\t\t\t\t\ttable.flushCommits();\n\t\t\t\t\t\tputs.clear();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else continue;\n\t\t\t}\n\t\t}\n\t}", "private static void writeBLOBData() {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = JDBCUtils.getMySQLConnection();\n\t\t\tString sql = \"INSERT INTO testblob(name, img) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setString(1, \"ke\");\n\t\t\tFile file = new File(\"D:\" + File.separator + \"test.jpg\");\n\t\t\tInputStream in = new FileInputStream(file);\n\t\t\tstmt.setBinaryStream(2, in, (int)file.length());\n\t\t\tstmt.executeUpdate();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tJDBCUtils.release(stmt, conn);\n\t\t}\n\t}", "void commit(String tpcid);", "public void sendDataToDB() throws JSONException, InstantiationException, IllegalAccessException, ClassNotFoundException, UnirestException, ParseException {\r\n\t\t\r\n\t\tArrayList<HashMap<String, String>> dataSet = new ArrayList<>();\r\n\t\t\r\n\t\tfor (int i = 0; i < dataArray.length(); i++) {\r\n\t\t\tHashMap<String, String> jsonObject = new HashMap<String, String>();\r\n\t\t\tjsonObject.put(\"id\" ,dataArray.getJSONObject(i).get(\"id\").toString());\r\n\t\t\tjsonObject.put(\"name\", dataArray.getJSONObject(i).get(\"name\").toString());\r\n\t\t\tjsonObject.put(\"free_bikes\", dataArray.getJSONObject(i).get(\"free_bikes\").toString());\r\n\t\t\tjsonObject.put(\"timestamp\", changeTimeStamptoUnixTimeString(dataArray.getJSONObject(i).get(\"timestamp\").toString()));\r\n\t\t\tjsonObject.put(\"latitude\", dataArray.getJSONObject(i).get(\"latitude\").toString());\r\n\t\t\tjsonObject.put(\"longitude\", dataArray.getJSONObject(i).get(\"longitude\").toString());\r\n\r\n\t\t\tdataSet.add(jsonObject);\r\n\t\t}\r\n\t\t\r\n\t\t// Send whole data to DBService\r\n\t\tUnirest.post(\"http://stadtraddbservice:6000/newData\")\r\n\t\t//Unirest.post(\"http://localhost:6000/newData\") // Fuer lokalen Test\r\n\t\t .body(new Gson().toJson(dataSet))\r\n\t\t .asString();\r\n\t}", "public void setQuorumWrites(byte[] value) {\n\n quorumWrites = new TimestampValuePair(ets, value);\n }", "BlobInfo putBlob(byte[] data);", "@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }", "public static void WriteObject(String tableName, int id, Object obj) {\n try {\n conn = DriverManager.getConnection(connectionURL);\n byte[] testBytes = ConvertObject.getByteArrayObject(obj);\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO \" + tableName + \" (id, obj) VALUES(?,?)\");\n statement.setInt(1, id);\n statement.setBinaryStream(2,new ByteArrayInputStream(testBytes),testBytes.length);\n statement.executeUpdate();\n statement.close();\n conn.close();\n }\n catch(SQLException e) {\n e.printStackTrace();\n }\n }", "public abstract void save(IntFloatsCol col, DataOutputStream output) throws IOException;", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "public static void writeVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"vocab\").child(vocab.Id).setValue(vocab);\n }", "public abstract void write(T dataElement);", "void write(byte b[]) throws IOException;", "public abstract void write(int rowCount) throws IOException;", "public void write(byte b[]) throws IOException;", "public void write(DataOutput out) throws IOException {\n this.count.write(out);\n this.week.write(out);\n out.writeInt(hashTagList.size());\n\n for(int index=0;index<hashTagList.size();index++){\n // Serializing every values in list to send to next machine\n hashTagList.get(index).write(out); //write all the value of list\n }\n }", "void upsert(@NotNull final ByteBuffer key, @NotNull final ByteBuffer value) {\n final ClusterValue prev = storage.put(key, ClusterValue.of(value));\n if (prev == null) {\n tableSize = tableSize + key.remaining() + value.remaining();\n } else if (prev.isTombstone()) {\n tableSize = tableSize + value.remaining();\n } else {\n tableSize = tableSize + value.remaining() - prev.getData().remaining();\n }\n }", "void storeBucketData(long window, long timestamp, Map<Integer, Map<Object, T>> data) throws IOException;", "@Override\n public void run() {\n SparkConf conf = new SparkConf().setAppName(\"yb.wordcount\")\n .setMaster(\"local[\" + appConfig.numWriterThreads + \"]\")\n .set(\"spark.cassandra.connection.host\", getRandomContactPoint().getHost());\n\n // Create the Java Spark context object.\n JavaSparkContext sc = new JavaSparkContext(conf);\n\n // Create the Cassandra connector to Spark.\n CassandraConnector connector = CassandraConnector.apply(conf);\n\n // Create a Cassandra session, and initialize the keyspace.\n Session session = connector.openSession();\n\n //------------------------------------------- Input ------------------------------------------\\\\\n JavaRDD<String> rows;\n if (useCassandraInput) {\n // Read rows from table and convert them to an RDD.\n rows = javaFunctions(sc).cassandraTable(getKeyspace(), inputTableName)\n .select(\"line\").map(row -> row.getString(\"line\"));\n } else {\n // Read the input file and convert it to an RDD.\n rows = sc.textFile(inputFile);\n }\n\n // Perform the word count.\n JavaPairRDD<String, Integer> counts =\n rows.flatMap(line -> Arrays.asList(line.split(\" \")).iterator())\n .mapToPair(word -> new Tuple2<String, Integer>(word, 1))\n .reduceByKey((x, y) -> x + y);\n\n //------------------------------------------- Output -----------------------------------------\\\\\n\n String outTable = getKeyspace() + \".\" + outputTableName;\n\n // Drop the output table if it already exists.\n dropCassandraTable(outTable);\n\n // Create the output table.\n session.execute(\"CREATE TABLE IF NOT EXISTS \" + outTable +\n \" (word VARCHAR PRIMARY KEY, count INT);\");\n\n // Save the output to the CQL table.\n javaFunctions(counts).writerBuilder(getKeyspace(),\n outputTableName,\n mapTupleToRow(String.class, Integer.class))\n .withColumnSelector(someColumns(\"word\", \"count\"))\n .saveToCassandra();\n\n session.close();\n sc.close();\n }", "private void doWrite() throws IOException {\n\t\t\tbb.flip();\n\t\t\tsc.write(bb);\n\t\t\tbb.compact();\n\n\t\t\tupdateInterestOps();\n\t\t}", "public static void writeBig(Vector persistentVector, DataOutputStream dos) throws IOException {\t\r\n\t\tif(persistentVector != null){\r\n\t\t\tdos.writeInt(persistentVector.size());\r\n\t\t\tfor(int i=0; i<persistentVector.size(); i++ ){\r\n\t\t\t\t((Persistent)persistentVector.elementAt(i)).write(dos);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tdos.writeInt(0);\r\n\t}", "BinaryArrayReadWrite set(int index, byte x);", "private void bulkPutHBaseContext(JavaSparkContext javaSparkContext, DataFrame dataFrame) {\n\n Configuration configuration = HBaseConfiguration.create();\n configuration.addResource(new Path(\"/etc/hbase/conf.cloudera.hbase/hbase-site.xml\"));\n JavaHBaseContext javaHBaseContext = new JavaHBaseContext(javaSparkContext, configuration);\n\n // find the indexes of the data frame columns\n final int[] dcolsidx = DataFrameUtil.getColumnIndexes(dataFrame, dfCols);\n\n // find the hbase column names\n final String[] hbaseColsArr = hbaseCols.split(\" \");\n\n JavaRDD rdd = dataFrame.toJavaRDD();\n javaHBaseContext.bulkPut(rdd, hbaseTableName, new Function<Row, Put>() {\n private static final long serialVersionUID = 1L;\n\n public Put call(Row row) throws Exception {\n Put put = new Put(Bytes.toBytes(row.getString(0)));\n\n // add columns to Put\n for (int i=0; i<dcolsidx.length; i++) {\n put.addColumn(Bytes.toBytes(hbaseColumnFamily), Bytes.toBytes(hbaseColsArr[i]),\n Bytes.toBytes(row.getString(dcolsidx[i])));\n }\n\n // put.addColumn(Bytes.toBytes(hbaseColumnFamily), Bytes.toBytes(\"fullname\"), Bytes.toBytes(row.getString(1)));\n // put.addColumn(Bytes.toBytes(hbaseColumnFamily), Bytes.toBytes(\"personage\"), Bytes.toBytes(row.getString(2)));\n // put.addColumn(Bytes.toBytes(hbaseColumnFamily), Bytes.toBytes(\"personcity\"), Bytes.toBytes(row.getString(3)));\n\n return put;\n }\n },\n true);\n }", "public void write(byte[] data, long offset);", "void write(Object... columns) throws IOException;", "private void writeBlob(ObjectOutput out) throws IOException\n\t{\n try {\n int len = getBlobLength();\n InputStream is = _blobValue.getBinaryStream();\n \n writeLength( out, len );\n \n int bytesRead = 0;\n int numOfBytes = 0;\n byte[] buffer = new byte[Math.min(len, LEN_OF_BUFFER_TO_WRITE_BLOB)];\n \n while(bytesRead < len) {\n numOfBytes = is.read(buffer);\n \n if (numOfBytes == -1) {\n throw new DerbyIOException(\n MessageService.getTextMessage(\n SQLState.SET_STREAM_INEXACT_LENGTH_DATA),\n SQLState.SET_STREAM_INEXACT_LENGTH_DATA);\n }\n \n out.write(buffer, 0, numOfBytes);\n bytesRead += numOfBytes; \n }\n }\n catch (StandardException se) { throw new IOException( se.getMessage() ); }\n catch (SQLException se) { throw new IOException( se.getMessage() ); }\n }", "protected void txPut(int n) {}", "public void write(String id);", "@Override\n public void executeQuery() {\n try {\n Put put = new Put(this.userId.getBytes());\n put.add(\"cf\".getBytes(), Bytes.toBytes(this.poi.getTimestamp()), this.poi.getBytes());\n this.table.put(put);\n \n } catch (IOException ex) {\n Logger.getLogger(InsertPOIVisitClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "boolean commitEntryMemTableFlush() throws IOException;", "public abstract void save(LongFloatsCol col, DataOutputStream output) throws IOException;", "public void write(DataOutputStream out) throws IOException;", "public void writeBytes(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}", "public void save(DataOutput stream)\n throws IOException\n {\n stream.write(getBytes());\n }", "public boolean save(T data) throws MIDaaSException;", "public boolean put(byte[] key, byte[] value) throws Exception;", "void commit();", "void commit();", "public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }", "private void writeHeader(Cacheable[] data) throws IOException {\n // the amount of cacheables\n // for example 25 herbs\n out.writeInt(data.length);\n for (Cacheable c : data) {\n final Serializable[] cache = c.cache();\n\n // the inner array amount of each data\n // for example looped 25 times and saves each herb's amount of spawn points\n out.writeInt(cache.length);\n }\n }", "void saveData() throws SerializerException;", "void commit(Session session);", "public void write(DataOutputStream output) throws IOException {\r\n output.writeInt(matrixId);\r\n int size = partMetas.size();\r\n output.writeInt(size);\r\n for (Map.Entry<Integer, MatrixPartitionMeta> partEntry : partMetas.entrySet()) {\r\n partEntry.getValue().write(output);\r\n }\r\n }", "public static void writeArchivedVocab(Vocab vocab) {\n String userId = FirebaseAuth.getInstance().getUid();\n Log.d(\"000\", \"writeVocab: \"+userId);\n mDatabase.child(\"user\").child(userId).child(\"archive\").child(vocab.Id).setValue(vocab);\n }", "private void append(byte[] bts) {\n checkFile();\n try {\n outputStream.write(bts);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void updata(Connection conn, Long id, User user) throws SQLException {\n\t\t\n\t}", "public abstract void write(List<EmitterSystemState> data)\n\t\t\tthrows FailedToWriteToDatastoreException;", "public void write​(byte[] b) throws IOException {\n\t\tbaos.writeBytes(b);\n\t}", "public void commit();", "public void save(Cacheable[] data) throws IOException, NullPointerException {\n validate(data);\n\n // write the header\n writeHeader(data);\n\n // write the data\n writeData(data);\n\n // close the file\n close();\n }", "void save(storage_server_connections connection);", "@Override\n public void write(DataOutput output) throws IOException {\n output.writeUTF(getPartitionKey());\n output.writeUTF(getRowKey());\n output.writeLong(getTimestamp().getTime());\n // Write the rest of the properties.\n HashMap<String, EntityProperty> properties = getProperties();\n output.writeInt(properties.size());\n for (Map.Entry<String, EntityProperty> current : properties.entrySet()) {\n output.writeUTF(current.getKey());\n output.writeUTF(current.getValue().getValueAsString());\n }\n }", "void commit() throws IndexTransactionException;" ]
[ "0.56537104", "0.5638152", "0.5590291", "0.5447406", "0.54381907", "0.5436958", "0.54180324", "0.54008764", "0.533655", "0.53138524", "0.52670807", "0.5263338", "0.5261708", "0.5226049", "0.5186954", "0.5166502", "0.51554585", "0.5152684", "0.5147982", "0.5131343", "0.51006615", "0.5096835", "0.5088372", "0.5072272", "0.5071159", "0.5046938", "0.50416726", "0.503902", "0.5034111", "0.5031734", "0.50119185", "0.49878225", "0.49785182", "0.4967027", "0.49523517", "0.49453095", "0.4939359", "0.4938037", "0.492872", "0.49281824", "0.49240112", "0.4918584", "0.49126163", "0.49018973", "0.49003348", "0.48848608", "0.48697814", "0.48664117", "0.4865138", "0.48583683", "0.48521668", "0.484813", "0.4846229", "0.48417544", "0.48359796", "0.48340234", "0.48313853", "0.4829529", "0.4814103", "0.48061717", "0.48013556", "0.4798324", "0.47939202", "0.4792617", "0.4790321", "0.47836173", "0.47823983", "0.4780358", "0.47737524", "0.4770993", "0.47701794", "0.47645286", "0.47592005", "0.47567925", "0.47556186", "0.4749545", "0.47465327", "0.47427365", "0.47410572", "0.47344616", "0.47337046", "0.4728686", "0.4724662", "0.47201395", "0.47201395", "0.4719144", "0.47158682", "0.47154522", "0.4710463", "0.47060847", "0.4702824", "0.47027975", "0.4702212", "0.4690175", "0.4686743", "0.4685293", "0.46847314", "0.4684438", "0.46823934", "0.4678686" ]
0.6447438
0
write mutation to Cassandra
private void writeMutations(ByteBuffer key, List<Mutation> mutations) throws IOException { try { writer.write(key, mutations); } catch (InterruptedException e) { throw new IOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.spanner.v1.Mutation.Write getUpdate();", "com.google.spanner.v1.Mutation.Write getInsertOrUpdate();", "com.google.spanner.v1.Mutation.Write getReplace();", "com.google.spanner.v1.Mutation.Write getInsert();", "private void addIndexWrite(Object key, Object value, BitSet dirty, IndexMetadata idxMeta, long clock, Mutator<byte[]> mutator, EConsistencyLevel level)\n {\n List<Object> propVals = null;\n DynamicComposite colName = new DynamicComposite();\n boolean propertyNotSet = false;\n int ttl = -1;\n for(SimplePropertyMetadata pm : idxMeta.getIndexedProperties())\n {\n Object pval = invokeGetter(pm, value);\n if(pval != null)\n {\n if(propVals == null)\n propVals = new ArrayList<Object>(idxMeta.getIndexedProperties().size());\n\n if(pm.isTtlSet())\n {\n int colTtl = pm.ttl();\n if(ttl < 0 || colTtl < ttl) //min ttl of the indexed properties\n ttl = colTtl;\n }\n propVals.add(pval);\n colName.add(pval);\n }\n else if(!dirty.get(_entityMeta.getPropertyPosition(pm))) //prop value is null and not set\n propertyNotSet = true;\n }\n\n if(propVals == null) //no index property updated\n return;\n \n if(propertyNotSet) //must update none or all of a multi column index\n throw new IllegalArgumentException(\"cannot write a subset of columns to multi-column index: \" + idxMeta);\n \n if(propVals.size() < idxMeta.getIndexedProperties().size()) //some index properties set to null -> entry is removed from index\n return;\n \n colName.add(key);\n \n HColumn<DynamicComposite, byte[]> column = HFactory.createColumn(colName, IDX_COL_VAL, clock, SER_DYNAMIC_COMPOSITE, SER_BYTES);\n \n DynamicComposite rowKey = new DynamicComposite(idxMeta.id());\n \n List<List<Object>> allPartitions = idxMeta.getIndexPartitioner().partitionValue(propVals);\n if(allPartitions.size() != 1)\n throw new IllegalStateException(\"expected single partition but encountered \" + allPartitions.size());\n \n _logger.trace(\"writing to partition {}\", allPartitions.get(0));\n for(Object partitionVal : allPartitions.get(0))\n rowKey.add(partitionVal);\n \n if(ttl > 0)\n column.setTtl(ttl);\n \n mutator.addInsertion(SER_DYNAMIC_COMPOSITE.toBytes(rowKey), _entityMeta.getIndexFamilyName(), column);\n }", "public static void ExecuteWriteQuery(String query) {\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tst.executeUpdate(query);\n\t\t} catch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void insert(RowMutation rm)\n\t{\n /*\n * Get the N nodes from storage service where the data needs to be\n * replicated\n * Construct a message for write\n * Send them asynchronously to the replicas.\n */\n assert rm.key() != null;\n\n\t\ttry\n\t\t{\n\t\t\tMap<EndPoint, EndPoint> endpointMap = StorageService.instance().getNStorageEndPointMap(rm.key());\n\t\t\t// TODO: throw a thrift exception if we do not have N nodes\n\t\t\tMap<EndPoint, Message> messageMap = createWriteMessages(rm, endpointMap);\n logger_.debug(\"insert writing to [\" + StringUtils.join(messageMap.keySet(), \", \") + \"]\");\n\t\t\tfor (Map.Entry<EndPoint, Message> entry : messageMap.entrySet())\n\t\t\t{\n\t\t\t\tMessagingService.getMessagingInstance().sendOneWay(entry.getValue(), entry.getKey());\n\t\t\t}\n\t\t}\n catch (Exception e)\n {\n logger_.error( LogUtil.throwableToString(e) );\n }\n return;\n }", "public <E extends Writeable> void write(String sql);", "public DocumentMutation append(String path, byte[] value, int offset, int len);", "public <T> void write(MDSKey id, T value) {\n try {\n table.put(new Put(id.getKey()).add(COLUMN, serialize(value)));\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }", "private void introduceMutations() {\n }", "void writeTo(DataOutputStream dout) throws IOException {\r\n throw new Error(\"Method no longer available\");\r\n// dout.writeInt(commit_id);\r\n// dout.writeInt(table_id);\r\n// dout.writeInt(journal_entries);\r\n// dout.write(command_journal, 0, journal_entries);\r\n// int size = command_parameters.size();\r\n// dout.writeInt(size);\r\n// for (int i = 0; i < size; ++i) {\r\n// dout.writeInt(command_parameters.intAt(i));\r\n// }\r\n }", "void commit(String tpcid);", "com.google.spanner.v1.Mutation.WriteOrBuilder getUpdateOrBuilder();", "private boolean write(String sql) {\n if (!checkConnected()) {\n return false;\n }\n\n PreparedStatement statement = null;\n try {\n statement = connection.prepareStatement(sql);\n statement.executeUpdate();\n return true;\n }\n catch (SQLException ex) {\n if (!sql.equalsIgnoreCase(\"ALTER TABLE `\" + tablePrefix + \"users` DROP COLUMN `party` ;\")) {\n printErrors(ex);\n }\n return false;\n }\n finally {\n if (statement != null) {\n try {\n statement.close();\n }\n catch (SQLException e) {\n // Ignore\n }\n }\n }\n }", "DataFrameWrite<R,C> write();", "private Mutation mutationFromTuple(Tuple t) throws IOException\n {\n Mutation mutation = new Mutation();\n if (t.get(1) == null)\n {\n if (allow_deletes)\n {\n mutation.deletion = new Deletion();\n mutation.deletion.predicate = new org.apache.cassandra.thrift.SlicePredicate();\n mutation.deletion.predicate.column_names = Arrays.asList(objToBB(t.get(0)));\n mutation.deletion.setTimestamp(FBUtilities.timestampMicros());\n }\n else\n throw new IOException(\"null found but deletes are disabled, set \" + PIG_ALLOW_DELETES +\n \"=true in environment or allow_deletes=true in URL to enable\");\n }\n else\n {\n org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column();\n column.setName(objToBB(t.get(0)));\n column.setValue(objToBB(t.get(1)));\n column.setTimestamp(FBUtilities.timestampMicros());\n mutation.column_or_supercolumn = new ColumnOrSuperColumn();\n mutation.column_or_supercolumn.column = column;\n }\n return mutation;\n }", "void commit();", "void commit();", "R commit(C change);", "public void commit();", "public void writeDatabase();", "public void commit(){\n \n }", "protected void txPut(int n) {}", "public abstract void commit();", "public DocumentMutation append(String path, String value);", "@Override\n public void beginDatabaseBatchWrite() throws BlockStoreException {\n if (!autoCommit) {\n return;\n }\n if (instrument)\n beginMethod(\"beginDatabaseBatchWrite\");\n\n batch = db.createWriteBatch();\n uncommited = new HashMap<ByteBuffer, byte[]>();\n uncommitedDeletes = new HashSet<ByteBuffer>();\n utxoUncommittedCache = new HashMap<ByteBuffer, UTXO>();\n utxoUncommittedDeletedCache = new HashSet<ByteBuffer>();\n autoCommit = false;\n if (instrument)\n endMethod(\"beginDatabaseBatchWrite\");\n }", "com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrUpdateOrBuilder();", "@Override\n public void commitTx() {\n \n }", "public void writeThrough(Mention mention) {\n Entity mentionEntity = new Entity(\"chat-mentions\", mention.getId().toString());\n mentionEntity.setProperty(\"uuid\", mention.getId().toString());\n mentionEntity.setProperty(\"userWhoWasMentioned\", mention.getUserWhoWasMentioned().toString());\n mentionEntity.setProperty(\n \"userWhoDidTheMentioning\", mention.getUserWhoDidTheMentioning().toString());\n mentionEntity.setProperty(\"start\", Integer.toString(mention.getStart()));\n mentionEntity.setProperty(\"end\", Integer.toString(mention.getEnd()));\n mentionEntity.setProperty(\"creation_time\", mention.getCreationTime().toString());\n mentionEntity.setProperty(\"messageId\", mention.getMessageId().toString());\n datastore.put(mentionEntity);\n }", "@Override\n public void commit() {\n }", "@Override\n public void write() {\n\n }", "@Override\n public void executeQuery() {\n try {\n Put put = new Put(this.userId.getBytes());\n put.add(\"cf\".getBytes(), Bytes.toBytes(this.poi.getTimestamp()), this.poi.getBytes());\n this.table.put(put);\n \n } catch (IOException ex) {\n Logger.getLogger(InsertPOIVisitClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "void write(IdWriter writer) throws IOException {\n cellRevision.write(writer);\n writer.writeBoolean(modified);\n }", "public void commit() {\n }", "@Override\r\n\tpublic void write() {\n\t\t\r\n\t}", "public void write(String id);", "void commit() throws IndexTransactionException;", "void write();", "@Override\n\tpublic int commit() {\n\t\treturn 0;\n\t}", "@API.Public\npublic interface DocumentMutation extends Iterable<MutationOp> {\n\n /**\n * Empties this Mutation object.\n */\n public DocumentMutation empty();\n\n /**\n * Sets the value of given field to the specified value. If the value of\n * given field name doesn't exist in the existing document on the server\n * then new field will be created.\n *\n * If the value for the given field name exists in the existing document\n * on server and its of the same type as the new value then existing value\n * will be replaced by new value.\n *\n * If the value of given field name exists and it is not same type as the\n * type of newly set value then mutation will fail.\n *\n * @param path path of the field that needs to be updated\n * @return this Mutation object\n */\n public DocumentMutation setNull(String path);\n\n public DocumentMutation setNull(FieldPath path);\n\n public DocumentMutation set(String path, Value v);\n\n public DocumentMutation set(FieldPath path, Value v);\n\n public DocumentMutation set(String path, boolean b);\n\n public DocumentMutation set(FieldPath path, boolean b);\n\n public DocumentMutation set(String path, short s);\n\n public DocumentMutation set(FieldPath path, short s);\n\n public DocumentMutation set(String path, byte b);\n\n public DocumentMutation set(FieldPath path, byte b);\n\n public DocumentMutation set(String path, int i);\n\n public DocumentMutation set(FieldPath path, int i);\n\n public DocumentMutation set(String path, long l);\n\n public DocumentMutation set(FieldPath path, long l);\n\n public DocumentMutation set(String path, float f);\n\n public DocumentMutation set(FieldPath path, float f);\n\n public DocumentMutation set(String path, double d);\n\n public DocumentMutation set(FieldPath path, double d);\n\n public DocumentMutation set(String path, String value);\n\n public DocumentMutation set(FieldPath path, String value);\n\n public DocumentMutation set(String path, BigDecimal bd);\n\n public DocumentMutation set(FieldPath path, BigDecimal bd);\n\n public DocumentMutation set(String path, Time t);\n\n public DocumentMutation set(FieldPath path, Time t);\n\n public DocumentMutation set(String path, Timestamp t);\n\n public DocumentMutation set(FieldPath path, Timestamp t);\n\n public DocumentMutation set(String path, Date d);\n\n public DocumentMutation set(FieldPath path, Date d);\n\n public DocumentMutation set(String path, List<? extends Object> value);\n\n public DocumentMutation set(FieldPath path, List<? extends Object> value);\n\n public DocumentMutation set(String path, Interval intv);\n\n public DocumentMutation set(FieldPath path, Interval intv);\n\n public DocumentMutation set(String path, ByteBuffer bb);\n\n public DocumentMutation set(FieldPath path, ByteBuffer bb);\n\n public DocumentMutation set(String path, Map<String, ? extends Object> value);\n\n public DocumentMutation set(FieldPath path, Map<String, ? extends Object> value);\n\n public DocumentMutation set(String path, Document value);\n\n public DocumentMutation set(FieldPath path, Document value);\n\n\n /**\n * Sets or replaces the value of a given field with the new value given in the API.\n * This is a fast API that doesn't require a read on the server to validate\n * the path or type.\n *\n * If any element in the specified field path doesn't exist then that element\n * will be created on the server.\n * Example : Field is \"a.b.c\" and value is int 10.\n * Suppose the server has only the field \"a\" of type map, then a setOrReplace of \"a.b.c\"\n * will create element \"b\" of type map inside \"a\". It will also create an element\n * named \"c\" of type integer inside map \"b\".\n *\n * If any element specified in the field path is of a different type\n * than the existing field element on the server, it will be deleted and replaced by\n * a new element.\n * Example : Field is \"a.b.c\" and value is int 10.\n * Suppose on the server, there is a field \"a\" of type array. This operation\n * will delete \"a\", create new element \"a\" of type map, and insert \"b.c\" in it.\n *\n * @param path path of the field that needs to be updated\n * @return this Mutation object\n */\n public DocumentMutation setOrReplace(String path, Value v);\n\n public DocumentMutation setOrReplace(FieldPath path, Value v);\n\n public DocumentMutation setOrReplaceNull(String path);\n\n public DocumentMutation setOrReplaceNull(FieldPath path);\n\n public DocumentMutation setOrReplace(String path, boolean b);\n\n public DocumentMutation setOrReplace(FieldPath path, boolean b);\n\n public DocumentMutation setOrReplace(String path, short s);\n\n public DocumentMutation setOrReplace(FieldPath path, short s);\n\n public DocumentMutation setOrReplace(String path, byte b);\n\n public DocumentMutation setOrReplace(FieldPath path, byte b);\n\n public DocumentMutation setOrReplace(String path, int i);\n\n public DocumentMutation setOrReplace(FieldPath path, int i);\n\n public DocumentMutation setOrReplace(String path, long l);\n\n public DocumentMutation setOrReplace(FieldPath path, long l);\n\n public DocumentMutation setOrReplace(String path, float f);\n\n public DocumentMutation setOrReplace(FieldPath path, float f);\n\n public DocumentMutation setOrReplace(String path, double d);\n\n public DocumentMutation setOrReplace(FieldPath path, double d);\n\n public DocumentMutation setOrReplace(String path, String value);\n\n public DocumentMutation setOrReplace(FieldPath path, String value);\n\n public DocumentMutation setOrReplace(String path, BigDecimal bd);\n\n public DocumentMutation setOrReplace(FieldPath path, BigDecimal bd);\n\n public DocumentMutation setOrReplace(String path, Time t);\n\n public DocumentMutation setOrReplace(FieldPath path, Time t);\n\n public DocumentMutation setOrReplace(String path, Timestamp t);\n\n public DocumentMutation setOrReplace(FieldPath path, Timestamp t);\n\n public DocumentMutation setOrReplace(String path, Date d);\n\n public DocumentMutation setOrReplace(FieldPath path, Date d);\n\n public DocumentMutation setOrReplace(String path, List<? extends Object> value);\n\n public DocumentMutation setOrReplace(FieldPath path, List<? extends Object> value);\n\n public DocumentMutation setOrReplace(String path, Interval intv);\n\n public DocumentMutation setOrReplace(FieldPath path, Interval intv);\n\n public DocumentMutation setOrReplace(String path, ByteBuffer bb);\n\n public DocumentMutation setOrReplace(FieldPath path, ByteBuffer bb);\n\n public DocumentMutation setOrReplace(String path, Map<String, ? extends Object> value);\n\n public DocumentMutation setOrReplace(FieldPath path,\n Map<String, ? extends Object> value);\n\n public DocumentMutation setOrReplace(String path, Document value);\n\n public DocumentMutation setOrReplace(FieldPath path, Document value);\n\n /**\n * Appends elements to an existing array. If the field doesn't exist on server,\n * it will be created and this operation proceeds. If the field already exists,\n * this operation will validate that the existing field is of the array type.\n * If it is of a different type, then this operation will fail.\n */\n public DocumentMutation append(String path, List<? extends Object> value);\n\n public DocumentMutation append(FieldPath path, List<? extends Object> value);\n\n /**\n * Appends elements to an existing string. This operation will first\n * validate on the server that the field specified by the given path\n * exists and is of the string type. If the field doesn't exist or is\n * of a different type, then the operation will fail.\n */\n public DocumentMutation append(String path, String value);\n\n public DocumentMutation append(FieldPath path, String value);\n\n /**\n * Appends a given byte array to the existing binary data stored on the server\n * on the given path. This operation will fail if the given field on the server is not of the\n * BINARY type. If the field path specified for append doesn't\n * exist on a server record, then this operation will create a new element at the\n * append path. This new element will be of BINARY type and its value will be\n * as specified in the parameter.\n *\n * This operation will fail if any type of the intermediate path elements specified\n * in the append field path doesn't match the type of the corresponding field in the\n * record stored on server. For example, an operation on field \"a.b.c\" will fail if,\n * on the server, the record a itself is an array or integer.\n *\n * This operation will perform read-modify-write on the server.\n *\n * @param path field path\n * @param value byte array value\n * @param offset offset in byte array\n * @param len length in byte array\n * @return this Mutation Object\n */\n public DocumentMutation append(String path, byte[] value, int offset, int len);\n\n public DocumentMutation append(FieldPath path, byte[] value, int offset, int len);\n\n public DocumentMutation append(String path, byte[] value);\n\n public DocumentMutation append(FieldPath path, byte[] value);\n\n public DocumentMutation append(String path, ByteBuffer value);\n\n public DocumentMutation append(FieldPath path, ByteBuffer value);\n\n /**\n * Merges the existing value on the server for the given field path with the new map\n * provided in the input. This operation will first validate that the entry with the\n * given field name exists on the server and is of the MAP type.\n *\n * If the entry is of a type other than MAP, then the operation will fail.\n * If the field path specified for merge doesn't\n * exist in the record on the server, then this operation will create a new element at the\n * given path. This new element will be of the MAP type and its value will be\n * as specified in the parameter.\n *\n * This operation will fail if any type of intermediate path elements specified\n * in the append field path doesn't match the type of the corresponding field in the\n * record stored on the server. For example, an operation on field \"a.b.c\" will fail if,\n * on the server, record a itself is an array or integer.\n *\n * @param path field path\n * @param value the value to be merged with existing value of a field on the server\n * @return this record mutation\n */\n public DocumentMutation merge(String path, Document value);\n\n public DocumentMutation merge(FieldPath path, Document value);\n\n public DocumentMutation merge(String path, Map<String, Object> value);\n\n public DocumentMutation merge(FieldPath path, Map<String, Object> value);\n\n /**\n * Atomically applies an increment to a given field (in dot separated notation)\n * of the given row id.\n *\n * If the field path specified for the incremental change doesn't\n * exist in the server record then this operation will create a new element at the\n * given path. This new element will be of same type as the value specified\n * in the parameter.\n *\n * This operation will fail if the type of any intermediate path elements specified\n * in the append field path doesn't match the type of the corresponding field in the\n * record stored on the server. For example, an operation on field \"a.b.c\" will fail\n * if, on the server, record a itself is an array or integer.\n *\n * If the field doesn't exist on\n * the server then it will be created with the type of given incremental value.\n * An increment operation can be applied on any of the numeric types\n * of a field, such as byte, short, int, long, float, double, or decimal.\n * The operation will fail if the increment is applied to a field\n * that is of a non-numeric type.\n *\n * The increment operation won't change the type of the existing value stored in\n * the given field for the row. The resultant value of the field will be\n * truncated based on the original type of the field.\n *\n * For example, field 'score' is of type int and contains 60. The increment\n * '5.675', a double, is applied. The resultant value of the field\n * will be 65 (65.675 will be truncated to 65).\n *\n * @param path field name in dot separated notation\n * @param inc increment to apply to a field - can be positive or negative\n */\n public DocumentMutation increment(FieldPath path, byte inc);\n\n public DocumentMutation increment(String path, byte inc);\n\n public DocumentMutation increment(FieldPath path, short inc);\n\n public DocumentMutation increment(String path, short inc);\n\n public DocumentMutation increment(String path, int inc);\n\n public DocumentMutation increment(FieldPath path, int inc);\n\n public DocumentMutation increment(FieldPath path, long inc);\n\n public DocumentMutation increment(String path, long inc);\n\n public DocumentMutation increment(String path, float inc);\n\n public DocumentMutation increment(FieldPath path, float inc);\n\n public DocumentMutation increment(String path, double inc);\n\n public DocumentMutation increment(FieldPath path, double inc);\n\n public DocumentMutation increment(String path, BigDecimal inc);\n\n public DocumentMutation increment(FieldPath path, BigDecimal inc);\n\n /**\n * Deletes the field at the given path.\n * If the field does not exist, this method silently returns without doing anything.\n * For example, if a delete operation is attempted on a.b.c, and a.b is an array on the\n * server, then a.b.c will not be deleted.\n */\n public DocumentMutation delete(String path);\n\n public DocumentMutation delete(FieldPath path);\n\n}", "public void persist(DataOutputStream dos) throws Exception;", "public void commit () throws IOException {\n log.info(\"Internal committing index ... \");\n this.writer().commit();\n commitCounter = 0;\n this.closeReader();\n }", "@Override\r\n\t\tpublic void commit() throws SQLException {\n\t\t\t\r\n\t\t}", "public void commit() {\n doCommit();\n }", "@Override\n\tpublic void commit() {\n\n\t}", "void commit() {\n }", "void commit() throws InterruptedException;", "@Override\n public void logMutation(LogMutation logMutation) throws IOException {\n LOG.info(new GsonBuilder().serializeNulls().create().toJson(logMutation));\n oldConf = new Configuration(schedConf);\n Map<String, String> mutations = logMutation.getUpdates();\n for (Map.Entry<String, String> kv : mutations.entrySet()) {\n if (kv.getValue() == null) {\n this.schedConf.unset(kv.getKey());\n } else {\n this.schedConf.set(kv.getKey(), kv.getValue());\n }\n }\n tempConfigPath = writeTmpConfig(schedConf);\n }", "public void writeSQL(SQLOutput stream) throws SQLException{\r\n}", "public GlBuffer commit(final Chunk<E> chunk){\n return commit(chunk, true);\n }", "protected abstract void writeInternal(int index, int value);", "@Override\r\n\tpublic void save(TQssql sql) {\n\r\n\t}", "private void insert(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n LivenessInfo info,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n Row row = BTreeRow.noCellLiveRow(buildIndexClustering(rowKey, clustering, cell), info);\n PartitionUpdate upd = partitionUpdate(valueKey, row);\n indexCfs.getWriteHandler().write(upd, ctx, false);\n logger.debug(\"Inserted entry into index for value {}\", valueKey);\n }", "@Override\n public void onWrite() {\n onChannelPreWrite();\n }", "public void writeSQL(SQLOutput stream) throws SQLException {\n}", "@Override\n\tpublic void applyMutation(int index, double a_percentage) {\n\n\t}", "public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }", "void commit(Session session);", "@Override\n\t\tpublic void write(K key, V value) throws IOException, InterruptedException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t//System.out.println(key.toString()+\":\"+value.toString());\n\t\t\tConfiguration conf = HBaseConfiguration.create();\n\t\t\t//conf.set(\"hbase.zookeeper.quorum\", \"10.105.245.143,10.105.245.144,10.105.245.147\");\n\t\t\tString mess[] = key.toString().split(\":\");\n\t\t\tString time = mess[0];\n\t\t\tString nation = mess[1];\n\t\t\tString nationid = PeopleCountByNation.asmap.get(nation);\n\t\t\tconf.set(\"hbase.zookeeper.quorum\", \"localhost\");\n\t\t\tint sum = Integer.parseInt(value.toString());\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tHTable table = new HTable(conf,\"nation\".getBytes());\n\t\t\tPut put = new Put(Bytes.toBytes(time+nationid));\n\t\t\tput.add(Bytes.toBytes(\"n\"),Bytes.toBytes(\"n\"),Bytes.toBytes(sum));\n\t\t\ttable.put(put);\n\t\t /* String record = value.toString();\n\t\t String mess [] = record.split(\"----\");\n\t\t String recordmess [] = mess[0].split(\"////\");\n\t\t HTable table = new HTable(conf,\"sort\".getBytes());\n\t\t //System.out.println(key.toString());\n\t\t Put put = new Put(Bytes.toBytes(key.toString()));\n\t\t put.add(Bytes.toBytes(\"title\"),Bytes.toBytes(recordmess[0]),Bytes.toBytes(mess[1]));\n\t\t table.put(put);*/\n\t\t \n\t\t //将数据存储在 hbase 中,这次存储的是word与title的集合\n\t\t \n\t\t \n\t\t \n\t\t}", "public abstract void write(int rowCount) throws IOException;", "boolean commitEntryMemTableFlush() throws IOException;", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "Write createWrite();", "public void write(Transaction t, int varIndex, int value) {\n int tid = t.getTranId();\n Lock lc = getLock(tid, varIndex);\n if (hasConflict(tid, varIndex, Lock.Type.WRITE)) {\n return;\n }\n if (lc == null) {\n // if transaction holds no lock, set write lock\n setLock(tid, varIndex, Lock.Type.WRITE);\n } else {\n // if transaction holds read lock before, escalate that lock\n if (lc.getType() == Lock.Type.READ) {\n lc.escalateLock();\n }\n }\n _accessedTransactions.add(tid);\n // put it into uncommitDataMap\n if (_uncommitDataMap.containsKey(varIndex)) {\n Data d = _uncommitDataMap.get(varIndex);\n d.setValue(value);\n } else {\n Data d = new Data(varIndex, value);\n _uncommitDataMap.put(varIndex, d);\n }\n }", "@Override\n public boolean writeWithVersionCheck(ProcessorContext context, DataSet<Row> dataSet, int expireTime) {\n Row row = dataSet.getFirstItem().orElse(new Row());\n String key = row.getFieldValue(AllFieldName.tair_key);\n String value = row.getFieldValue(AllFieldName.tair_value);\n Objects.requireNonNull(key, \"put tair key is required\");\n Objects.requireNonNull(value, \"put tair value is required\");\n// ResultCode code = tairClient.putDataWithVersionCheck(context, key, value, expireTime);\n return true;// code.getCode() == ResultCode.VERERROR.getCode() ? false : true;\n }", "@Test\r\n\tpublic void testCommit()\r\n\t\tthrows Exception\r\n\t{\r\n\t\ttry{\r\n\t\t\ttestAdminCon.begin();\r\n\t\t\ttestAdminCon.add(john, email, johnemail,dirgraph);\r\n\t\r\n\t\t\tassertTrue(\"Uncommitted update should be visible to own connection\",\r\n\t\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertFalse(\"Uncommitted update should only be visible to own connection\",\r\n\t\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertThat(testWriterCon.size(), is(equalTo(0L)));\r\n\t\r\n\t\t\ttestAdminCon.commit();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tlogger.debug(e.getMessage());\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tif(testAdminCon.isActive())\r\n\t\t\t\ttestAdminCon.rollback();\r\n\t\t}\r\n\t\tassertThat(testWriterCon.size(), is(equalTo(1L)));\r\n\t\tassertTrue(\"Repository should contain statement after commit\",\r\n\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\tassertTrue(\"Committed update will be visible to all connection\",\r\n\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t}", "public void commitWriter () {\n try {\n writer.commit();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public long getMutationIndex() {\n return mutationIndex;\n }", "public abstract void Write(WriteOptions options, WriteBatch updates) throws IOException, BadFormatException, DecodeFailedException;", "@Override\r\n\tpublic void write(IByteBuffer target, long offset) {\n\r\n\t}", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "public void commit() {\n tryCommit(true);\n }", "@Override\r\n\tpublic int write(cms_board_vo cms_board_vo) throws Exception {\n\t\treturn sql.insert(\"cms_board.write\", cms_board_vo);\r\n\t}", "void execute(final ReadWriteTransaction readWriteTransaction);", "@Override\n\tpublic void AlterarSenha(EntidadeDominio entidade) throws SQLException {\n\t\t\n\t}", "com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrBuilder();", "public abstract void lockTableForWriting(String table) throws RollbackException;", "@Override\r\n\tpublic int write() throws Exception {\n\t\treturn 0;\r\n\t}", "private void writeColumnsFromBag(ByteBuffer key, DataBag bag) throws IOException\n {\n List<Mutation> mutationList = new ArrayList<Mutation>();\n for (Tuple pair : bag)\n {\n Mutation mutation = new Mutation();\n if (DataType.findType(pair.get(1)) == DataType.BAG) // supercolumn\n {\n SuperColumn sc = new SuperColumn();\n sc.setName(objToBB(pair.get(0)));\n List<org.apache.cassandra.thrift.Column> columns = new ArrayList<org.apache.cassandra.thrift.Column>();\n for (Tuple subcol : (DataBag) pair.get(1))\n {\n org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column();\n column.setName(objToBB(subcol.get(0)));\n column.setValue(objToBB(subcol.get(1)));\n column.setTimestamp(FBUtilities.timestampMicros());\n columns.add(column);\n }\n if (columns.isEmpty())\n {\n if (allow_deletes)\n {\n mutation.deletion = new Deletion();\n mutation.deletion.super_column = objToBB(pair.get(0));\n mutation.deletion.setTimestamp(FBUtilities.timestampMicros());\n }\n else\n throw new IOException(\"SuperColumn deletion attempted with empty bag, but deletes are disabled, set \" +\n PIG_ALLOW_DELETES + \"=true in environment or allow_deletes=true in URL to enable\");\n }\n else\n {\n sc.columns = columns;\n mutation.column_or_supercolumn = new ColumnOrSuperColumn();\n mutation.column_or_supercolumn.super_column = sc;\n }\n }\n else\n mutation = mutationFromTuple(pair);\n mutationList.add(mutation);\n // for wide rows, we need to limit the amount of mutations we write at once\n if (mutationList.size() >= 10) // arbitrary, CFOF will re-batch this up, and BOF won't care\n {\n writeMutations(key, mutationList);\n mutationList.clear();\n }\n }\n // write the last batch\n if (mutationList.size() > 0)\n writeMutations(key, mutationList);\n }", "public abstract Chromosome mutation(Chromosome child);", "@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }", "void commit() throws CommitException;", "void sendTransactionToServer()\n \t{\n \t\t//json + sql magic\n \t}", "public void commitTransactionBlock() throws SQLException {\n masterNodeConnection.commit();\n masterNodeConnection.setAutoCommit(true);\n }", "protected abstract boolean commit(String value);", "public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete, Integer lockId) throws IOException;", "@BeforeAll\n public void deploySchema() {\n client.deploySchema(\n keyspaceId.asInternal(),\n \"type Counters @cql_input {\\n\"\n + \" k: Int! @cql_column(partitionKey: true)\\n\"\n + \" c: Counter\\n\"\n + \" c2: Counter\\n\"\n + \"}\\n\"\n + \"type ListCounters @cql_input {\\n\"\n + \" k: Int! @cql_column(partitionKey: true)\\n\"\n + \" l: [Int]\\n\"\n + \"}\\n\"\n + \"type Query { counters(k: Int!): Counters }\\n\"\n + \"type Mutation {\\n\"\n + \" updateCountersIncrement(\\n\"\n + \" k: Int\\n\"\n + \" cInc: Int @cql_increment(field: \\\"c\\\")\\n\"\n + \" ): Boolean\\n\"\n + \"@cql_update(targetEntity: \\\"Counters\\\")\\n\"\n + \" updateTwoCountersIncrement(\\n\"\n + \" k: Int\\n\"\n + \" cInc: Int @cql_increment(field: \\\"c\\\")\\n\"\n + \" cInc2: Int @cql_increment(field: \\\"c2\\\")\\n\"\n + \" ): Boolean\\n\"\n + \"@cql_update(targetEntity: \\\"Counters\\\")\\n\"\n + \" appendList(\\n\"\n + \" k: Int\\n\"\n + \" l: [Int] @cql_increment\\n\"\n + \" ): Boolean\\n\"\n + \"@cql_update(targetEntity: \\\"ListCounters\\\")\\n\"\n + \" prependList(\\n\"\n + \" k: Int\\n\"\n + \" l: [Int] @cql_increment(prepend: true)\\n\"\n + \" ): Boolean\\n\"\n + \"@cql_update(targetEntity: \\\"ListCounters\\\")\\n\"\n + \"}\");\n }", "void notifyWrite();", "private void flushWrite() throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother\n \n int len = buffer.position();\n buffer.flip();\n int n = descriptor.write(buffer);\n \n if(n != len) {\n // TODO: check the return value here\n }\n buffer.clear();\n }", "@Test\n public void testInjectOnCompact() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n Map<Key, Value> input = new HashMap<>();\n input.put(new Key(\"aTablet1\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"kTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"zTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset, input);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(input);\n expect.putAll(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n List<IteratorSetting> itlist = new ArrayList<>();\n itlist.add(itset);\n itset = new IteratorSetting(16, DebugIterator.class);\n itlist.add(itset);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, itlist, true, true);\n\n// CompactionConfig cc = new CompactionConfig()\n// .setCompactionStrategy(CompactionStrategyConfigUtil.DEFAULT_STRATEGY)\n// .setStartRow(null).setEndRow(null).setIterators(itlist)\n// .setFlush(true).setWait(true);\n// conn.tableOperations().compact(tableName, cc);\n\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k)); // passes because not scan-time iterator\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "public synchronized void writeCommit(Transaction t) {\n\t\tflush();\n\t\tpw.println(t.transactionId() + \" commit\");\t\n\t\tflush();\n\t}", "private void writeObject(Object object) {\r\n\t\tsession.saveOrUpdate(object);\r\n\r\n\t\t// Since can writing large amount of data should use Hibernate \r\n\t\t// batching to make sure don't run out memory.\r\n\t\tcounter++;\r\n\t\tif (counter % HibernateUtils.BATCH_SIZE == 0) {\r\n\t\t\tsession.flush();\r\n\t\t\tsession.clear();\r\n\t\t}\r\n\t}", "public long commit(Map<String, OperationalSets> sets) {\n sets.forEach((table, set) -> {\n this.writesPerTable.putIfAbsent(table, new HashMap<>());\n this.writesPerTable.get(table).put(this.timestamp, set);\n });\n try {\n rwl.writeLock().lock();\n this.timestamp++;\n return this.timestamp;\n }finally {\n rwl.writeLock().unlock();\n }\n }", "public void setQuorumWrites(byte[] value) {\n\n quorumWrites = new TimestampValuePair(ets, value);\n }", "public void write(DataOutputStream out) throws IOException;", "public void commit() {\n\t\tcommitted = true;\n\t}", "public void setMutationMethod(Mutation m){\n mutationType = m;\n }", "@Override\n\tpublic void postWALWrite(ObserverContext<? extends WALCoprocessorEnvironment> ctx, HRegionInfo hRegionInfo, WALKey key,\n\t\t\tWALEdit edit) throws IOException {\n\t\t\n\t}" ]
[ "0.6548927", "0.6006653", "0.59108853", "0.5868185", "0.5766662", "0.57200366", "0.5613993", "0.55400544", "0.54618055", "0.54172117", "0.53348356", "0.5326072", "0.5303245", "0.5289352", "0.5288329", "0.5283504", "0.5268903", "0.5257727", "0.5257727", "0.52432793", "0.52073556", "0.5187907", "0.5182555", "0.5178565", "0.5175882", "0.5171984", "0.51705635", "0.51668614", "0.5162041", "0.5139371", "0.51389724", "0.51372135", "0.5135991", "0.5131723", "0.51244503", "0.5115889", "0.5089011", "0.5082976", "0.50745285", "0.5074342", "0.507428", "0.5071876", "0.50583214", "0.5048132", "0.50353", "0.503221", "0.502169", "0.50165457", "0.50055", "0.5001269", "0.4996561", "0.49898332", "0.49773127", "0.49730697", "0.49682057", "0.49519923", "0.49473688", "0.49434906", "0.49408326", "0.4918678", "0.49155098", "0.4904631", "0.48952106", "0.48952106", "0.4881244", "0.48804775", "0.48693123", "0.48630047", "0.48580196", "0.48559907", "0.48476446", "0.48384717", "0.48373264", "0.48298854", "0.48186243", "0.4816788", "0.48099524", "0.48033464", "0.48015872", "0.47957596", "0.4794133", "0.47923955", "0.47872525", "0.4783844", "0.47802764", "0.47798052", "0.4771183", "0.47588217", "0.47535747", "0.47500676", "0.4748633", "0.47484076", "0.47440693", "0.4742235", "0.4741507", "0.47313613", "0.47306186", "0.47304845", "0.4730477", "0.47278655" ]
0.60953426
1
get a list of columns with defined index
protected List<ColumnDef> getIndexes() throws IOException { CfDef cfdef = getCfDef(loadSignature); List<ColumnDef> indexes = new ArrayList<ColumnDef>(); for (ColumnDef cdef : cfdef.column_metadata) { if (cdef.index_type != null) indexes.add(cdef); } return indexes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Column getColumns(int index);", "@Override\n public Column getColumns(int index) {\n return columns_.get(index);\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "@java.lang.Override\n public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) {\n return columns_.get(index);\n }", "public Column getColumns(int index) {\n if (columnsBuilder_ == null) {\n return columns_.get(index);\n } else {\n return columnsBuilder_.getMessage(index);\n }\n }", "ColumnOrBuilder getColumnsOrBuilder(\n int index);", "public List<Column> getColumns();", "List<String> getColumns();", "@Override\n public ColumnOrBuilder getColumnsOrBuilder(\n int index) {\n return columns_.get(index);\n }", "List<Column> getQueryColumns();", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index);", "String getColumn(int index);", "String getColumn(int index);", "public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) {\n if (columnsBuilder_ == null) {\n return columns_.get(index);\n } else {\n return columnsBuilder_.getMessage(index);\n }\n }", "public List<String> getColumns();", "java.util.List<Column>\n getColumnsList();", "private static List<Integer> getColumn(int colIndex, int[][] m) {\r\n List<Integer> col = new ArrayList<Integer>(m[0].length);\r\n for (int i = 0; i < m.length; ++i) {\r\n col.add(m[i][colIndex]);\r\n }\r\n\r\n return col;\r\n }", "@java.lang.Override\n public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index) {\n return columns_.get(index);\n }", "public Column getColumn(int pos) { return columns[pos]; }", "public ColumnOrBuilder getColumnsOrBuilder(\n int index) {\n if (columnsBuilder_ == null) {\n return columns_.get(index); } else {\n return columnsBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.guidewire.datamodel.ColumnDocument.Column getColumnArray(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ColumnDocument.Column target = null;\r\n target = (com.guidewire.datamodel.ColumnDocument.Column)get_store().find_element_user(COLUMN$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n return target;\r\n }\r\n }", "List<String> headerColumns();", "private int getCol(int index) {\n return index & (chunkSize - 1);\n }", "int getColumnIndex();", "int getColumnIndex();", "int getColumnIndex();", "public com.walgreens.rxit.ch.cda.StrucDocCol getColArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocCol target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocCol)get_store().find_element_user(COL$2, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }", "public Column.Builder getColumnsBuilder(\n int index) {\n return getColumnsFieldBuilder().getBuilder(index);\n }", "public String[] getColumns() {\r\n\t\tlogger.trace(\"Enter getColumns\");\r\n\t\tlogger.trace(\"Exit getColumns\");\r\n\t\treturn columns;\r\n\t}", "public Column[] getColumns() {return columns;}", "List<String> getColumnIdentifiers();", "public Set<String> getColumnIndices() {\n Set<String> columnIndices = new HashSet<>();\n for (String index : indices) {\n columnIndices.add(escapeIndex(index));\n }\n return columnIndices;\n }", "public List getColumns() {\r\n return columns;\r\n }", "public int[] getColumns()\n\t{\n\t\treturn columns;\n\t}", "public String getColumnName(int index)\n {\n return header[index];\n }", "@Override\n public java.util.List<Column> getColumnsList() {\n return columns_;\n }", "Index getIndices(int index);", "Column[] getColumns() { return columns; }", "public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index) {\n if (columnsBuilder_ == null) {\n return columns_.get(index); } else {\n return columnsBuilder_.getMessageOrBuilder(index);\n }\n }", "int getColumns();", "int getColumns();", "int atColumn();", "com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column getColumn(int index);", "public List getColumnKeys() {\n/* 204 */ List result = new ArrayList();\n/* 205 */ int last = lastCategoryIndex();\n/* 206 */ for (int i = this.firstCategoryIndex; i <= last; i++) {\n/* 207 */ result.add(this.underlying.getColumnKey(i));\n/* */ }\n/* 209 */ return Collections.unmodifiableList(result);\n/* */ }", "public ArrayList<ColumnInTable> getAllColumns() {\n Schema schema = Schema.getSchema();\n ArrayList<ColumnInTable> columns = new ArrayList<ColumnInTable>();\n \n for (int i = 0; i < fromTables.size(); i++) {\n Table t = schema.getTable(fromTables.get(i).first());\n for (Entry<String, Column> entry: t.getAllColumns().entrySet()) {\n columns.add(new ColumnInTable(entry.getValue(), i));\n }\n }\n \n return columns;\n }", "public Collection<TapColumn> findAllColumns();", "public ArrayList getColumns() {\n return columns;\n }", "private void addColumns() {\n\n List<Integer> colIds = new ArrayList<>();\n List<String> colNames = new ArrayList<>();\n List<ColumnDescriptor> tupleDescription = context.getTupleDescription();\n for (int i = 0; i < tupleDescription.size(); i++) {\n ColumnDescriptor col = tupleDescription.get(i);\n if (col.isProjected() && hiveIndexes.get(i) != null) {\n colIds.add(hiveIndexes.get(i));\n colNames.add(col.columnName());\n }\n }\n jobConf.set(READ_ALL_COLUMNS, \"false\");\n jobConf.set(READ_COLUMN_IDS_CONF_STR, StringUtils.join(colIds, \",\"));\n jobConf.set(READ_COLUMN_NAMES_CONF_STR, StringUtils.join(colNames, \",\"));\n }", "public ResultViewerColumnInfo getColumnInfo(int index) throws IndexOutOfBoundsException {\n\t\treturn (ResultViewerColumnInfo)columns.get(index);\n\t}", "public static String getColNameFromIndex(int index, ArrayList<ArrayList<String>> datas) {\n\r\n String columnHeaderName = datas.get(0).get(index);\r\n return columnHeaderName;\r\n }", "protected String getColumnHeader(Integer index){\n for (Map.Entry<String, Integer> entry: headerMap.entrySet()){\n if (index.equals(entry.getValue())) return entry.getKey();\n }\n return null;\n }", "int getColumnIndex (String columnName);", "java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> \n getColumnsList();", "public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder getColumnsBuilder(\n int index) {\n return getColumnsFieldBuilder().getBuilder(index);\n }", "private ArrayList<Integer> columns() {\r\n ArrayList<Integer> header = new ArrayList<>();\r\n for (int ii = 0; ii < totalBeats; ii += 4) {\r\n header.add(ii);\r\n }\r\n return header;\r\n }", "public List<IColumn> getColumns() {\r\n\t\treturn Collections.unmodifiableList(columns);\r\n\t}", "public List getColumns(Serializable columnId) {\n\tif(null==columnId){\r\n\t\treturn this.getColumnDao().getColumns();\r\n\t}else{\r\n\t\treturn this.getColumnDao().getColumns(columnId);\r\n\t}\r\n}", "public int getCols();", "int getColumnIndex(String name);", "public int[] getSelectedAccessibleColumns() {\n try {\n return unoAccessibleTable.getSelectedAccessibleColumns();\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }", "public ArrayList<String> getColumnNames();", "public TreeColumn getColumn(int index) throws IndexOutOfBoundsException {\n\t\treturn wrapedViewer.getTree().getColumn(index);\n\t}", "@Override\n\tpublic List<T> getCol(long xIn) throws IndexOutOfBoundsException {\n\t\tMatrixValidator.throwIfBadIndex(this, xIn, Plane.X);\n\t\tLinkedList<T> output = new LinkedList<>();\n\t\t\n\t\tfor(long i = 0; i < this.getNumRows(); i++){\n\t\t\toutput.addLast(this.get(xIn, i));\n\t\t}\n\t\t\n\t\treturn output;\n\t}", "public abstract TableTreeNodeColumn[] getColumns();", "public List<Column> getColumns(){\r\n\t\treturn columns;\r\n\t}", "DataFrameColumns<R,C> cols();", "public static int getColumns() {\n\t\treturn columns;\n\t}", "public SystemColumn[] buildColumnList() {\n \n return new SystemColumn[] {\n SystemColumnImpl.getUUIDColumn(\"TIMING_ID\", false),\n SystemColumnImpl.getColumn(\"CONSTRUCTOR_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"OPEN_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"NEXT_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"CLOSE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"EXECUTE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"AVG_NEXT_TIME_PER_ROW\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"PROJECTION_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"RESTRICTION_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"TEMP_CONG_CREATE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"TEMP_CONG_FETCH_TIME\", Types.BIGINT, true),\n };\n }", "public List<byte[]> getColumns(){\n List<byte[]> list = new ArrayList<byte[]>();\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n if(iter.hasNext()){\n byte[] col = iter.next().getSecond();\n if(null != col)\n list.add(col);\n }\n return list;\n }", "Field getFields(int index);", "public int getAccessibleColumn(int index) {\n try {\n return unoAccessibleTable.getAccessibleColumn(index);\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return -1;\n } catch (com.sun.star.uno.RuntimeException e) {\n return -1;\n }\n }", "public String getColumnName(int index) {\n\t\treturn columnNames[index];\n\t}", "public com.sforce.soap.partner.ListViewColumn[] getColumns() {\r\n return columns;\r\n }", "private List<String> getContentViewColumns(ContentViewElement cv) {\n List<String> headers = new ArrayList<>();\n WebElement dataOutput = cv.findElement(By.className(\"dataOutput\"));\n List<WebElement> cvHeaders = dataOutput.findElements(By.className(\"colHeader\"));\n for (WebElement e : cvHeaders) {\n headers.add(e.getText());\n }\n return headers;\n }", "public java.util.List<Column> getColumnsList() {\n if (columnsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(columns_);\n } else {\n return columnsBuilder_.getMessageList();\n }\n }", "private static ArrayList getColumns (Connection c, String t)\n\t\tthrows Exception\n\t{\n\t\tStatement s = c.createStatement();\n\t\tResultSet r = s.executeQuery(\"show columns from `\" + t + \"`\");\n\t\tArrayList result = new ArrayList();\n\t\twhile (r.next()) {\n\t\t\tColumnInfo info = new ColumnInfo();\n\t\t\tinfo.name = r.getString(1);\n\t\t\tinfo.type = r.getString(2);\n\t\t\tinfo.nullok = r.getString(3);\n\t\t\tinfo.key = r.getString(4);\n\t\t\tinfo.defaultval = r.getString(5);\n\t\t\tinfo.extra = r.getString(6);\n\t\t\tresult.add(info);\n\t\t}\n\t\ts.close();\n\t\tCollections.sort(result);\n\t\treturn result;\n\t}", "public int getColumn();", "java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> \n getColumnList();", "public int getColumns()\n {\n return columns;\n }", "String getColumn();", "private List<String> getColNames() {\r\n\t\t//\r\n\t\tDBManager dbm = new DBManager(this);\r\n\t\t\r\n\t\tSQLiteDatabase wdb = dbm.getWritableDatabase();\r\n\r\n\t\t// REF=> http://stackoverflow.com/questions/947215/how-to-get-a-list-of-column-names-on-sqlite3-iphone\r\n\t\tString sql = \"PRAGMA table_info('\" + DBManager.tableName + \"')\";\r\n\t\t\r\n\t\tCursor c = wdb.rawQuery(sql, null);\r\n\t\t\r\n\t\t// Log\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getCount() => \" + c.getCount());\r\n\t\t\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getColumnCount() => \" + c.getColumnCount());\r\n\r\n\t\tList<String> colNames = new ArrayList<String>();\r\n\t\t\r\n\t\tc.moveToFirst();\r\n\t\t\r\n\t\tfor (int i = 0; i < c.getCount(); i++) {\r\n\t\t\t\r\n\t\t\tcolNames.add(c.getString(0));\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"c.getString(0) => \" + c.getString(0) + \r\n\t\t\t\t\t\" / \" + \"c.getString(1) => \" + c.getString(1));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tc.moveToNext();\r\n\t\t\t\r\n\t\t}//for (int i = 0; i < c.getCount(); i++)\r\n\t\t\r\n\t\twdb.close();\r\n\t\t\r\n\t\tfor (String string : colNames) {\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"colName => \" + string);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\treturn (String[])colNames.toArray();\r\n\t\treturn colNames;\r\n\t\t\r\n\t}", "public int getColumns() {\n return this.columns;\n }", "public String[] getColumnNames();", "public java.lang.String[] getColumns() {\n return columns;\n }", "public IColumn getColumnByIndex(int idx) throws ETLException {\r\n\t\tIColumn col = columnIndexMap.get(idx);\r\n\t\tif (col == null) {\r\n\t\t\tthrow new ETLException(\"A column with the index \" + idx + \" does not exist.\");\r\n\t\t}\r\n\t\treturn col;\r\n\t}", "@Override\n public Set<String> getAllColumnIds() {\n return subFilter.getAllColumnIds();\n }", "public int getColumns()\n {\n return field.getColumns();\n }", "int getColumn();", "private String[] getColumns(String[] properties) {\r\n String[] dst = new String[properties.length];\r\n int i = 0;\r\n for (String string : properties) {\r\n dst[i++] = getProjectionColumn(string);\r\n }\r\n return dst;\r\n }", "public Object[] getColumn(int c) {\n// Object[] dta = new Object[data.rows];\n// for (int i = 0; i < data.rows; i++)\n// dta[i] = data.values[c][c];\n return data.values[c];\n }", "@Override\n\tpublic String getColumnName(int arg0) throws SQLException {\n\t\treturn columns[arg0-1];\n\t}", "public Set<String> getColumns();", "int getCol();", "public ArrayList<Column> getColumnArrayList(){\n\t\t\n\t\treturn clist;\n\t\t\n\t}", "public Map<String, ColumnMetaData> getColumns();", "private int[] processColumnList(Table t,\n boolean acceptAscDesc)\n throws HsqlException {\n\n HashMappedList list = Parser.processColumnList(tokenizer,\n acceptAscDesc);\n int size = list.size();\n int[] col = new int[size];\n\n for (int i = 0; i < size; i++) {\n col[i] = t.getColumnNr((String) list.getKey(i));\n }\n\n return col;\n }", "DataFrameColumn<R,C> colAt(int colIOrdinal);", "public int getColumns() {\n return columns;\n }", "public int mapColumnIndex(int parsedIndex) {\n\t\treturn parsedIndex - getFirstColumnIndex();\n\t}", "public int getColumns() {\n\t\treturn columns;\n\t}" ]
[ "0.844253", "0.7730856", "0.7493082", "0.7026316", "0.7016669", "0.6928064", "0.6831051", "0.68059236", "0.680113", "0.66224", "0.66124725", "0.6603581", "0.6603581", "0.6603502", "0.65915823", "0.6569837", "0.6557038", "0.6293882", "0.62905896", "0.6257748", "0.623333", "0.6226801", "0.62184334", "0.62142354", "0.62142354", "0.62142354", "0.619475", "0.61868745", "0.6155999", "0.61182576", "0.61147594", "0.6114226", "0.6100834", "0.6091851", "0.6080607", "0.6079771", "0.60779124", "0.6074965", "0.6068052", "0.6031742", "0.6031742", "0.6029976", "0.6023674", "0.6019391", "0.6010826", "0.59985846", "0.5978955", "0.5972131", "0.5961241", "0.5960734", "0.5959666", "0.59520775", "0.59083056", "0.58967406", "0.58960545", "0.58905625", "0.58674806", "0.586043", "0.5837786", "0.58145815", "0.58133394", "0.5812247", "0.5809365", "0.5799145", "0.5794876", "0.5773618", "0.5773091", "0.57636404", "0.57358277", "0.57337016", "0.5718016", "0.57137114", "0.5707024", "0.57027835", "0.57021755", "0.5693791", "0.5692284", "0.56852615", "0.5683146", "0.56796104", "0.56778115", "0.56746775", "0.5673559", "0.56684804", "0.5652617", "0.56475663", "0.5631926", "0.5631621", "0.5629519", "0.5628419", "0.5628277", "0.5625448", "0.56145763", "0.56086457", "0.5604095", "0.56037897", "0.5602398", "0.55960697", "0.55915844", "0.5588142" ]
0.62039167
26
get a list of Cassandra IndexExpression from Pig expression
private List<IndexExpression> filterToIndexExpressions(Expression expression) throws IOException { List<IndexExpression> indexExpressions = new ArrayList<IndexExpression>(); Expression.BinaryExpression be = (Expression.BinaryExpression)expression; ByteBuffer name = ByteBuffer.wrap(be.getLhs().toString().getBytes()); ByteBuffer value = ByteBuffer.wrap(be.getRhs().toString().getBytes()); switch (expression.getOpType()) { case OP_EQ: indexExpressions.add(new IndexExpression(name, IndexOperator.EQ, value)); break; case OP_GE: indexExpressions.add(new IndexExpression(name, IndexOperator.GTE, value)); break; case OP_GT: indexExpressions.add(new IndexExpression(name, IndexOperator.GT, value)); break; case OP_LE: indexExpressions.add(new IndexExpression(name, IndexOperator.LTE, value)); break; case OP_LT: indexExpressions.add(new IndexExpression(name, IndexOperator.LT, value)); break; case OP_AND: indexExpressions.addAll(filterToIndexExpressions(be.getLhs())); indexExpressions.addAll(filterToIndexExpressions(be.getRhs())); break; default: throw new IOException("Unsupported expression type: " + expression.getOpType().name()); } return indexExpressions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<IndexExpression> indexExpressionsFromString(String ie) throws IOException\n {\n assert ie != null;\n TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory());\n IndexClause indexClause = new IndexClause();\n try\n {\n deserializer.deserialize(indexClause, Hex.hexToBytes(ie));\n }\n catch (TException e)\n {\n throw new IOException(e);\n }\n return indexClause.getExpressions();\n }", "Expression getIndexExpr();", "private List<IndexExpression> getIndexExpressions() throws IOException\n {\n UDFContext context = UDFContext.getUDFContext();\n Properties property = context.getUDFProperties(CassandraStorage.class);\n if (property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE) != null)\n return indexExpressionsFromString(property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE));\n else\n return null;\n }", "public ATExpression base_indexExpression();", "List getExpressions();", "public List<Index> getIndexes();", "private static ArrayList<Integer> expressionEvaluator(Expression expression, Table tableToApplySelectionOn) throws IOException, ParseException {\n\t\t\n\t\t\n\t\t\n\t\t// this is the actual list of indices that stores the indices of the tuples that satisfy all the conditions\n\t\tArrayList<Integer> listOfIndices = new ArrayList<Integer>();\n\n\t\t// this Table contains the resultant table after applying selection operation\n\t\tTable resultantTable = new Table(tableToApplySelectionOn);\n\t\tresultantTable.tableName = \"resultTable\";\n\n\t\t// the following conditions are to evaluate the EQUAL expression\n\t\tif (expression instanceof EqualsTo) {\n\t\t\t// this extracts the equal to clause in the WHERE clause\n\t\t\tEqualsTo equalsExpression = (EqualsTo) expression;\n\t\t\t\n\t\t\t// this extracts the left and the right expressions in the equal to clause\n\t\t\tExpression leftExpression = ((Expression) equalsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) equalsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(equalsExpression, tableToApplySelectionOn);\n\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\t//System.out.println(tableToApplySelectionOn);\n\t\t\t\t//System.out.println(tableToApplySelectionOn.columnDescriptionList);\n\t\t\t\t//System.out.println(tableToApplySelectionOn.columnIndexMap);\n\t\t\t\t/*System.out.println(leftVal);\n\t\t\t\tSystem.out.println(tableToApplySelectionOn.columnIndexMap.get(leftVal));\n\t\t\t\t*/\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\t\t\t\t\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"string\") || type.equalsIgnoreCase(\"char\") || type.equalsIgnoreCase(\"varchar\")) {\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\tif (array[index].equals(rightArray[rightIndex])) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (array[index].equals(rightArray[rightIndex].substring(1,rightArray[rightIndex].length() - 1))) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) == Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0]) && Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1]) && Integer.parseInt(leftDate[2]) == Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\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} else if (expression instanceof NotEqualsTo) {\n\n\t\t\n\t\t\t\n\t\t\t// this extracts the equal to clause in the WHERE clause\n\t\t\tNotEqualsTo equalsExpression = (NotEqualsTo) expression;\n\t\t\t\n\t\t\t// this extracts the left and the right expressions in the equal to clause\n\t\t\tExpression leftExpression = ((Expression) equalsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) equalsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(equalsExpression, tableToApplySelectionOn);\n\n\t\t\t} else {\n\t\t\n\t\t\t\t\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\t\t\t\t\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"string\") || type.equalsIgnoreCase(\"char\") || type.equalsIgnoreCase(\"varchar\")) {\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\tif (!array[index].equals(rightArray[rightIndex])) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\n\t\t\n\t\t\t\t\t\t\tif (!array[index].equals(rightArray[rightIndex].substring(1,rightArray[rightIndex].length() - 1))) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) != Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) != Integer.parseInt(rightDate[0]) && Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1]) && Integer.parseInt(leftDate[2]) != Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\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}\n\n\t\telse if (expression instanceof GreaterThanEquals) {\n\t\t\t\n\t\t\tGreaterThanEquals greaterThanEqualsExpression = (GreaterThanEquals) expression;\n\t\t\tExpression leftExpression = ((Expression) greaterThanEqualsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) greaterThanEqualsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(greaterThanEqualsExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) >= Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) < Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) < Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) < Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*if(tableToApplySelectionOn.tableName.equalsIgnoreCase(\"lineitem\") && expression.toString().equals(\"lineitem.receiptdate >= date('1994-01-01')\")){\n\t\t\t\t\t//System.out.println(listOfIndices);\n\t\t\t\t\t}*/\n\t\t\t}\n\t\t} else if (expression instanceof GreaterThan) {\n\t\t\t\n\t\t\tGreaterThan greaterThanExpression = (GreaterThan) expression;\n\t\t\tExpression leftExpression = ((Expression) greaterThanExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) greaterThanExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(greaterThanExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) > Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) < Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) < Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) <= Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\telse if (expression instanceof MinorThan) {\n\t\t\tMinorThan minorThanExpression = (MinorThan) expression;\n\n\t\t\tExpression leftExpression = ((Expression) minorThanExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) minorThanExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression|| rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(minorThanExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) < Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) > Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) > Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) >= Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t/*if(tableToApplySelectionOn.tableName.equalsIgnoreCase(\"lineitem\") && expression.toString().equals(\"lineitem.commitdate < lineitem.receiptdate\")){\n\t\t\t\t\tSystem.out.println(listOfIndices);\n\t\t\t\t\t}*/\n\t\t\t}\n\t\t}\n\t\telse if (expression instanceof MinorThanEquals) {\n\t\t\t\n\t\t\tMinorThanEquals minorEqualsThan = (MinorThanEquals) expression;\n\t\t\tExpression leftExpression = ((Expression) minorEqualsThan.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) minorEqualsThan.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(minorEqualsThan,tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) <= Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) > Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) > Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) > Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else if (expression instanceof AndExpression) {\n\t\t\t\n\t\t\tAndExpression andExpression = (AndExpression) expression;\n\t\t\tExpression leftVal = ((Expression) andExpression.getLeftExpression());\n\t\t\tExpression rightVal = ((Expression) andExpression.getRightExpression());\n\n\t\t\tArrayList<Integer> leftArr = expressionEvaluator(leftVal, tableToApplySelectionOn);\n\t\t\tArrayList<Integer> rightArr = expressionEvaluator(rightVal, tableToApplySelectionOn);\n\n\t\t\tArrayList<Integer> set = new ArrayList<Integer>();\n\t\t\tfor (int i : leftArr) {\n\t\t\t\tif (rightArr.contains(i)) {\n\t\t\t\t\tset.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlistOfIndices = set;\n\t\t}\n\n\t\telse if (expression instanceof OrExpression) {\n\t\t\t\n\t\t\t\n\t\t\tOrExpression orExpression = (OrExpression) expression;\n\t\t\tExpression leftVal = ((Expression) orExpression.getLeftExpression());\n\t\t\tExpression rightVal = ((Expression) orExpression.getRightExpression());\n\n\t\t\tArrayList<Integer> leftArr = expressionEvaluator(leftVal, tableToApplySelectionOn);\n\t\t\tArrayList<Integer> rightArr = expressionEvaluator(rightVal, tableToApplySelectionOn);\n\t\t\t\t\t\t\n\t\t\tTreeSet<Integer> set = new TreeSet<Integer>();\n\t\t\t\n\t\t\tfor (int i : leftArr) {\n\t\t\t\tset.add(i);\n\t\t\t}\n\t\t\tfor (int i : rightArr) {\n\t\t\t\tset.add(i);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i : set) {\n\t\t\t\tlistOfIndices.add(i);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse if (expression instanceof Parenthesis){\n\t\t\t\n\t\t\tArrayList<Integer> expArr = expressionEvaluator(((Parenthesis)expression).getExpression(), tableToApplySelectionOn);\n\t\t\t\n\t\t\tfor(int i:expArr){\n\t\t\t\tlistOfIndices.add(i);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\treturn listOfIndices;\n\t}", "public List<String> getExchangeIndexes();", "protected List<ColumnDef> getIndexes() throws IOException\n {\n CfDef cfdef = getCfDef(loadSignature);\n List<ColumnDef> indexes = new ArrayList<ColumnDef>();\n for (ColumnDef cdef : cfdef.column_metadata)\n {\n if (cdef.index_type != null)\n indexes.add(cdef);\n }\n return indexes;\n }", "public Expression getIndex()\n {\n return index;\n }", "ExpressionList getExpressionList();", "private List<String> parseArgsAsIndexParam(String args) throws ParseException {\n Matcher stp1 = CHK_INDEX_FORMAT_STEP_1.matcher(args.trim());\n if (!stp1.matches()) {\n throw new ParseException(\"Couldn't match the index, the index part should only contain integer and '-',\"\n + \" e.g. 1 or 1-1-1\");\n }\n Matcher stp2 = CHK_INDEX_FORMAT_STEP_2.matcher(args.trim());\n if (stp2.find()) {\n throw new ParseException(\"Couldn't match the index, please check your '-' position, \"\n + \"can not have any space at its side, e.g can not type 2- or -1\");\n }\n Matcher matcher = INDEX_FORMAT.matcher(args.trim());\n List<String> matches = matcher.results().map(MatchResult::group).collect(Collectors.toList());\n return matches;\n //return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "Set<String> getExpressionDataElementIds(String expression, ParseType parseType);", "public static List<int[]> childrenOperatorIndex(SqlNode sn){\r\n\t\tint size = sn.getChildren().size();\r\n\t\tList<int[]> idxRange = new ArrayList<>();\r\n\t\tfor(int i = 0; i < size; i++){\r\n\t\t\tint start = i;\r\n\t\t\twhile(start < size && sn.getChildren().get(start) instanceof Operator){\r\n\t\t\t\t++start;\r\n\t\t\t}\r\n\t\t\tif(start > i){\r\n\t\t\t\tidxRange.add(new int[]{i, start - 1});\r\n\t\t\t\ti = start;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn idxRange;\r\n\t}", "Index getIndices(int index);", "java.util.List<Index>\n getIndicesList();", "private IndexOperations getIndexOperations() {\n return elasticsearchOperations.indexOps(itemClazz);\n }", "public abstract void selectAllIndexes();", "public List<Expression> getSubExpressions();", "java.util.List<com.google.firestore.admin.v1beta1.Index> \n getIndexesList();", "private static String indexExpressionsToString(List<IndexExpression> indexExpressions) throws IOException\n {\n assert indexExpressions != null;\n // oh, you thought cfdefToString was awful?\n IndexClause indexClause = new IndexClause();\n indexClause.setExpressions(indexExpressions);\n indexClause.setStart_key(\"\".getBytes());\n TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory());\n try\n {\n return Hex.bytesToHex(serializer.serialize(indexClause));\n }\n catch (TException e)\n {\n throw new IOException(e);\n }\n }", "private void queryIndex() {\n if (predicate == TruePredicate.INSTANCE) {\n return;\n }\n\n // get indexes\n MapService mapService = nodeEngine.getService(SERVICE_NAME);\n MapServiceContext mapServiceContext = mapService.getMapServiceContext();\n Indexes indexes = mapServiceContext.getMapContainer(name).getIndexes();\n // optimize predicate\n QueryOptimizer queryOptimizer = mapServiceContext.getQueryOptimizer();\n predicate = queryOptimizer.optimize(predicate, indexes);\n\n Set<QueryableEntry> querySet = indexes.query(predicate);\n if (querySet == null) {\n return;\n }\n\n List<Data> keys = null;\n for (QueryableEntry e : querySet) {\n if (keys == null) {\n keys = new ArrayList<Data>(querySet.size());\n }\n keys.add(e.getKeyData());\n }\n\n hasIndex = true;\n keySet = keys == null ? Collections.<Data>emptySet() : InflatableSet.newBuilder(keys).build();\n }", "@Test\n public void testQueryUsingIndex() throws Exception\n {\n TestBean testBean1 = new TestBean(\"test1\", \"another1\");\n TestBean testBean2 = new TestBean(\"test2\", \"another2\");\n TestBean testBean3 = new TestBean(\"test3\", \"another3\");\n\n IndexedArrayList<TestBean> testBeans = new IndexedArrayList<TestBean>(Arrays.asList(testBean1, testBean2, testBean3));\n testBeans.addIndex(\"getValue\");\n\n Queryable<TestBean, Predicate> queryable = new CollectionContext<TestBean, Predicate>(testBeans);\n assertEquals(Arrays.asList(testBean2, testBean3), queryable.select(or(eq(\"getValue\", \"test2\"), eq(\"getValue\", \"test3\"))));\n }", "public static MethodCallExpression arrayIndex(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "public static IndexExpression arrayAccess(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "java.util.List<com.google.cloud.aiplatform.v1beta1.IndexEndpoint> \n getIndexEndpointsList();", "@VTID(10)\n int getIndex();", "public List<Expr> getExprs() {\n return getExprList();\n }", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "@Test\n public void fromClausesAndIndexedExpressionsMatchExpectedValues()\n throws IndexNameConflictException, IndexExistsException, RegionNotFoundException {\n Index i1 = qs.createIndex(\"tIndex\", IndexType.FUNCTIONAL, \"vals.secId\",\n SEPARATOR + \"portfolio pf, pf.positions.values vals\");\n Index i2 = qs.createIndex(\"dIndex\", IndexType.FUNCTIONAL, \"pf.getCW(pf.ID)\",\n SEPARATOR + \"portfolio pf\");\n Index i3 = qs.createIndex(\"fIndex\", IndexType.FUNCTIONAL, \"sIter\",\n SEPARATOR + \"portfolio pf, pf.collectionHolderMap[(pf.ID).toString()].arr sIter\");\n Index i4 = qs.createIndex(\"cIndex\", IndexType.FUNCTIONAL,\n \"pf.collectionHolderMap[(pf.ID).toString()].arr[pf.ID]\", SEPARATOR + \"portfolio pf\");\n Index i5 = qs.createIndex(\"inIndex\", IndexType.FUNCTIONAL, \"kIter.secId\",\n SEPARATOR + \"portfolio['0'].positions.values kIter\");\n Index i6 = qs.createIndex(\"sIndex\", IndexType.FUNCTIONAL, \"pos.secId\",\n SEPARATOR + \"portfolio.values val, val.positions.values pos\");\n Index i7 = qs.createIndex(\"p1Index\", IndexType.PRIMARY_KEY, \"pkid\", SEPARATOR + \"portfolio pf\");\n Index i8 = qs.createIndex(\"p2Index\", IndexType.PRIMARY_KEY, \"pk\", SEPARATOR + \"portfolio pf\");\n if (!i1.getCanonicalizedFromClause()\n .equals(SEPARATOR + \"portfolio index_iter1, index_iter1.positions.values index_iter2\")\n || !i1.getCanonicalizedIndexedExpression().equals(\"index_iter2.secId\")\n || !i1.getFromClause().equals(SEPARATOR + \"portfolio pf, pf.positions.values vals\")\n || !i1.getIndexedExpression().equals(\"vals.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i2.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i2.getCanonicalizedIndexedExpression().equals(\"index_iter1.getCW(index_iter1.ID)\")\n || !i2.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i2.getIndexedExpression().equals(\"pf.getCW(pf.ID)\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i3.getCanonicalizedFromClause().equals(\n SEPARATOR\n + \"portfolio index_iter1, index_iter1.collectionHolderMap[index_iter1.ID.toString()].arr index_iter3\")\n || !i3.getCanonicalizedIndexedExpression().equals(\"index_iter3\")\n || !i3.getFromClause()\n .equals(\n SEPARATOR + \"portfolio pf, pf.collectionHolderMap[(pf.ID).toString()].arr sIter\")\n || !i3.getIndexedExpression().equals(\"sIter\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i4.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i4.getCanonicalizedIndexedExpression().equals(\n \"index_iter1.collectionHolderMap[index_iter1.ID.toString()].arr[index_iter1.ID]\")\n || !i4.getFromClause().equals(SEPARATOR + \"portfolio pf\") || !i4.getIndexedExpression()\n .equals(\"pf.collectionHolderMap[(pf.ID).toString()].arr[pf.ID]\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i5.getCanonicalizedFromClause()\n .equals(SEPARATOR + \"portfolio['0'].positions.values index_iter4\")\n || !i5.getCanonicalizedIndexedExpression().equals(\"index_iter4.secId\")\n || !i5.getFromClause().equals(SEPARATOR + \"portfolio['0'].positions.values kIter\")\n || !i5.getIndexedExpression().equals(\"kIter.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i6.getCanonicalizedFromClause()\n .equals(\n SEPARATOR + \"portfolio.values index_iter5, index_iter5.positions.values index_iter6\")\n || !i6.getCanonicalizedIndexedExpression().equals(\"index_iter6.secId\")\n || !i6.getFromClause().equals(SEPARATOR + \"portfolio.values val, val.positions.values pos\")\n || !i6.getIndexedExpression().equals(\"pos.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i7.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i7.getCanonicalizedIndexedExpression().equals(\"index_iter1.pkid\")\n || !i7.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i7.getIndexedExpression().equals(\"pkid\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i8.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i8.getCanonicalizedIndexedExpression().equals(\"index_iter1.pk\")\n || !i8.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i8.getIndexedExpression().equals(\"pk\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n qs.removeIndex(i1);\n qs.removeIndex(i2);\n qs.removeIndex(i3);\n qs.removeIndex(i4);\n qs.removeIndex(i5);\n qs.removeIndex(i6);\n qs.removeIndex(i7);\n qs.removeIndex(i8);\n Index i9 =\n qs.createIndex(\"p3Index\", IndexType.PRIMARY_KEY, \"getPk\", SEPARATOR + \"portfolio pf\");\n if (!i9.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i9.getCanonicalizedIndexedExpression().equals(\"index_iter1.pk\")\n || !i9.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i9.getIndexedExpression().equals(\"getPk\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n qs.removeIndex(i9);\n }", "public static IndexExpression arrayAccess(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "private IiconstraintIndexes() {\n\t\tsuper(\"iiconstraint_indexes\", org.jooq.util.ingres.ingres.$ingres.$INGRES);\n\t}", "public String [] getAnnotationList(String fieldName, int [] indices);", "public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }", "indexSet createindexSet();", "public static BinaryExpression arrayIndex(Expression array, Expression indexExpressions) { throw Extensions.todo(); }", "WorldUps.UQuery getQueries(int index);", "java.util.List<? extends IndexOrBuilder>\n getIndicesOrBuilderList();", "List<QueryKey> listQueryKeys();", "public static MethodCallExpression arrayIndex(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "java.util.List<? extends com.google.firestore.admin.v1beta1.IndexOrBuilder> \n getIndexesOrBuilderList();", "Set<DimensionalItemId> getExpressionDimensionalItemIds(String expression, ParseType parseType);", "public Collection search (String[] likeColumns, Object[] likeParams,\r\n\t\t\tString[] eqColumns, Object[] eqParams, int index, int offset) throws Exception{\r\n\r\n\t\tCriteria c = edcTerminalDao.getCriteria();\r\n\t\tDaoSupportUtil.setLikeParam(likeColumns,likeParams,c);\r\n\t\tDaoSupportUtil.setEqParam(eqColumns,eqParams,c);\r\n\t\tDaoSupportUtil.setLimit(index, offset, c);\r\n\t\tList list = c.list();\r\n\t\treturn list;\r\n\r\n\t}", "String getIndexedCommunities(int index);", "List<Column> getQueryColumns();", "public static IndexExpression property(Expression expression, PropertyInfo property, Iterable<Expression> arguments) { throw Extensions.todo(); }", "@ASTNodeAnnotation.ListChild(name=\"Expr\")\n public List<Expr> getExprList() {\n List<Expr> list = (List<Expr>) getChild(1);\n return list;\n }", "public List<Index> getIndexes() {\n\t\tList<Index> indexes = new ArrayList<>();\n\t\tfor (Registration reg : registrations) {\n\t\t\tindexes.add(reg.getIndex());\n\t\t}\n\t\treturn indexes;\n\t}", "Set<String> getExpressionElementAndOptionComboIds(String expression, ParseType parseType);", "Collection getIndexesInGroup(Object groupID) throws Exception;", "List<IndexFieldStatus> getIndexFieldStatus();", "private List<Expression> expList(List<napParser.ExprContext> exprs){\n List<Expression> arguments = new LinkedList<>();\n for(napParser.ExprContext expr : exprs)\n arguments.add((Expression)visit(expr));\n return arguments;\n }", "public Vector<String> getExpressions(boolean history) {\n Vector<String> expressions = new Vector<>();\n try {\n Statement stat = conn.createStatement();\n ResultSet rs;\n if(history)\n rs = stat.executeQuery(\"SELECT * FROM history ORDER BY id DESC;\");\n else\n rs = stat.executeQuery(\"SELECT * FROM expressions ORDER BY id DESC;\");\n while (rs.next()) {\n expressions.add(rs.getString(\"expression\"));\n }\n return expressions;\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n return null;\n }\n }", "java.util.List<? extends com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> \n getIndexEndpointsOrBuilderList();", "@Test\n public void testQueryWithNoIndex() throws Exception\n {\n TestBean testBean1 = new TestBean(\"test1\", \"another1\");\n TestBean testBean2 = new TestBean(\"test2\", \"another2\");\n TestBean testBean3 = new TestBean(\"test3\", \"another3\");\n\n IndexedArrayList<TestBean> testBeans = new IndexedArrayList<TestBean>(Arrays.asList(testBean1, testBean2, testBean3));\n testBeans.addIndex(\"getValue\");\n\n Queryable<TestBean, Predicate> queryable = new IterableContext<TestBean, Predicate>(testBeans);\n assertEquals(Arrays.asList(testBean2), queryable.select(eq(\"getAnotherValue\", \"another2\")));\n }", "protected void setIndex(Expression expr)\n {\n index = expr;\n }", "private int[] getIndexes() throws DukeException {\n String[] indexes = commands.split(\" \");\n int[] indexesOfTasks = new int[indexes.length];\n for (int i = 0; i < indexes.length; i++) {\n if (indexes[i].matches(\"\\\\d+\")) {\n indexesOfTasks[i] = Integer.parseInt(indexes[i]);\n } else {\n throw new DukeException(\"☹ OOPS!!! Input a valid index\");\n }\n }\n Arrays.sort(indexesOfTasks);\n return indexesOfTasks;\n }", "long getIds(int index);", "public List<String> getIndexedFields() {\n\t\t\tList<String> indexedFields = new ArrayList<>();\n\t\t\t\n\t\t\tindexedFields.add(field);\n\t\t\tindexedFields.add(field + \".folded\");\n\t\t\t\n\t\t\treturn indexedFields;\n\t\t}", "String indexFormat();", "public List<DBObject> getIndexInfo() {\n return new MongoIterableImpl<DBObject>(null, executor, ReadConcern.DEFAULT, primary(), retryReads) {\n @Override\n public ReadOperation<BatchCursor<DBObject>> asReadOperation() {\n return new ListIndexesOperation<>(getNamespace(), getDefaultDBObjectCodec()).retryReads(retryReads);\n }\n }.into(new ArrayList<>());\n }", "public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}", "@Test\n public void fieldIndexFilter() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side\n // and the page containing the XE field on the right.\n // If the XE fields have the same value in their \"Text\" property,\n // the INDEX field will group them into one entry.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n\n // Configure the INDEX field only to display XE fields that are within the bounds\n // of a bookmark named \"MainBookmark\", and whose \"EntryType\" properties have a value of \"A\".\n // For both INDEX and XE fields, the \"EntryType\" property only uses the first character of its string value.\n index.setBookmarkName(\"MainBookmark\");\n index.setEntryType(\"A\");\n\n Assert.assertEquals(\" INDEX \\\\b MainBookmark \\\\f A\", index.getFieldCode());\n\n // On a new page, start the bookmark with a name that matches the value\n // of the INDEX field's \"BookmarkName\" property.\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.startBookmark(\"MainBookmark\");\n\n // The INDEX field will pick up this entry because it is inside the bookmark,\n // and its entry type also matches the INDEX field's entry type.\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 1\");\n indexEntry.setEntryType(\"A\");\n\n Assert.assertEquals(\" XE \\\"Index entry 1\\\" \\\\f A\", indexEntry.getFieldCode());\n\n // Insert an XE field that will not appear in the INDEX because the entry types do not match.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 2\");\n indexEntry.setEntryType(\"B\");\n\n // End the bookmark and insert an XE field afterwards.\n // It is of the same type as the INDEX field, but will not appear\n // since it is outside the bookmark's boundaries.\n builder.endBookmark(\"MainBookmark\");\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 3\");\n indexEntry.setEntryType(\"A\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.Filtering.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.Filtering.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX, \" INDEX \\\\b MainBookmark \\\\f A\", \"Index entry 1, 2\\r\", index);\n Assert.assertEquals(\"MainBookmark\", index.getBookmarkName());\n Assert.assertEquals(\"A\", index.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 1\\\" \\\\f A\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 1\", indexEntry.getText());\n Assert.assertEquals(\"A\", indexEntry.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 2\\\" \\\\f B\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 2\", indexEntry.getText());\n Assert.assertEquals(\"B\", indexEntry.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 3\\\" \\\\f A\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 3\", indexEntry.getText());\n Assert.assertEquals(\"A\", indexEntry.getEntryType());\n }", "@Override\n public java.util.List<Index> getIndicesList() {\n return indices_;\n }", "@GetMapping(value= \"/expression/all\", produces= \"application/vnd.jcg.api.v1+json\")\n\tpublic List<String> getAll() {\n\t\tlog.info(\"Getting expressions from the database.\");\n\t\treturn service.getAllString();\n\t}", "@Test\n public void testIndexMaintenanceWithIndexOnMethodAsList() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asList() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "com.google.firestore.admin.v1beta1.Index getIndexes(int index);", "@Test\n @IncludeIn(POSTGRESQL)\n public void array() {\n Expression<Integer[]> expr = Expressions.template(Integer[].class, \"'{1,2,3}'::int[]\");\n Integer[] result = firstResult(expr);\n Assert.assertEquals(3, result.length);\n Assert.assertEquals(1, result[0].intValue());\n Assert.assertEquals(2, result[1].intValue());\n Assert.assertEquals(3, result[2].intValue());\n }", "int parseIndexField(String text) {\n\t\tif (text.equals(\"*\")) return -1;\n\t\tif (text.equals(\"ANY\")) return -1;\n\t\tif (text.equals(\"?\")) return -2;\n\t\tif (text.equals(\"ALL\")) return -2;\n\t\treturn Gpr.parseIntSafe(text);\n\t}", "public Object getExpression();", "public java.util.List<Index.Builder>\n getIndicesBuilderList() {\n return getIndicesFieldBuilder().getBuilderList();\n }", "public com.triniforce.pk.soap.WhereExpr[] getWhereExprs() {\n return whereExprs;\n }", "private int[] parseArgsAsIndex(String args) throws ParseException {\n\n Matcher matcher = INDEX_ARGS_FORMAT.matcher(args.trim());\n if (!matcher.matches()) {\n throw new ParseException(\"Could not match to the correct index.\");\n }\n return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "public interface IndexDocsInES {\n\n void indexDocs(Client client, String index_name, String type_name, List<Pair> docs);\n}", "protected List<Integer> filterIndexes(String columnId) {\n List<Integer> result = new ArrayList<Integer>();\n List<Interval> selected = columnSelectionMap.get(columnId);\n if (selected == null) return result;\n\n for (Interval interval : selected) {\n result.add(interval.getIndex());\n }\n return result;\n }", "@Override\n public void execute() {\n\n String value=\"\";\n ////System.out.println(expCtx.printBlock().printExtra().arrayCall().getText());\n boolean chh = false;\n try {\n chh = expCtx.printBlock().printExtra().expression().assignmentExpression().assignment().additiveExpression().multiplicativeExpression().unaryExpression().unaryExpressionNotPlusMinus().postfixExpression().primary().arrayCall()!=null;\n }catch (NullPointerException e){\n\n }\n if (expCtx.printBlock().printExtra().arrayCall()!=null\n ||chh){\n //System.out.println(\"FOUND ARRAY\");\n List<Integer> matchList = new ArrayList<Integer>();\n Pattern regex = Pattern.compile(\"\\\\[(.*?)\\\\]\");\n //System.out.println(expCtx.printBlock().getText());\n Matcher regexMatcher = regex.matcher(expCtx.printBlock().getText());\n List<Integer> dummy = null;\n while (regexMatcher.find()) {//Finds Matching Pattern in String\n //System.out.println(\"IN MATCHER\");\n //System.out.println(ClypsCustomVisitor.testingExpression(regexMatcher.group(1).trim(), dummy, expCtx.start.getLine()));\n matchList.add(Integer.parseInt(ClypsCustomVisitor.testingExpression(regexMatcher.group(1).trim(), dummy, expCtx.start.getLine())));//Fetching Group from String\n }\n value = ClypsCustomVisitor.testingExpression(expCtx.printBlock().getText(), matchList, expCtx.start.getLine());\n //System.out.println(value);\n }else {\n //System.out.println(\"NOT ARRAY\");\n List<Integer> dummy = null;\n value = ClypsCustomVisitor.testingExpression(expCtx.printBlock().getText(), dummy, expCtx.start.getLine());\n //System.out.println(value);\n }\n\n if (value.contains(\"\\\"\")&&value.matches(\".*[a-zA-Z]+.*\")&&value.matches(\".*[0-9]+.*\")){\n //System.out.println(\"WE IN\");\n String[] temp = value.split(\"\\\\+\");\n ArrayList<String> store = new ArrayList<>();\n for (int i = 0;i<temp.length;i++){\n try {\n store.add(new Expression(temp[i]).eval().toPlainString());\n }catch (NullPointerException e){\n store.add(temp[i]);\n }\n }\n String send=\"\";\n for (String i:store){\n //System.out.println(i);\n send=send.concat(i);\n }\n //System.out.println(\"WE OUT\");\n //System.out.println(send);\n\n send=send.replaceAll(\"\\\"\",\"\").replaceAll(\"\\\\+\",\"\");\n ////System.out.println(\"ACTUAL PRINT\");\n if (expCtx.printHead().getText().contains(\"ln\"))\n System.out.println(send);\n else\n System.out.print(send);\n }else {\n //System.out.println(\"YEP\");\n //CAUTION: REPLACES ALL + SIGNS\n value=value.replaceAll(\"\\\"\",\"\").replaceAll(\"\\\\+\",\"\");\n ////System.out.println(\"ACTUAL PRINT\");\n if (expCtx.printHead().getText().contains(\"ln\"))\n System.out.println(value);\n else\n System.out.print(value);\n }\n\n\n\n\n\n }", "public Collection search (String[] likeColumns, Object[] likeParams,\r\n\t\t\tString[] eqColumns, Object[] eqParams,\r\n\t\t\tString[] btwnColumns, Object[] btwnParams1,\r\n\t\t\tObject[] btwnParams2,\r\n\t\t\tint index, int offset) throws Exception{\r\n\r\n\t\tCriteria c = edcTerminalDao.getCriteria();\r\n\t\tDaoSupportUtil.setLikeParam(likeColumns,likeParams,c);\r\n\t\tDaoSupportUtil.setEqParam(eqColumns,eqParams,c);\r\n\t\tDaoSupportUtil.setLimit(index, offset, c);\r\n\t\tDaoSupportUtil.setBetweenParam(btwnColumns,btwnParams1, btwnParams2,c);\r\n\t\tList list = c.list();\r\n\t\treturn list;\r\n\t}", "@SuppressWarnings( \"unchecked\" )\n public List<String> getIndexedNames() {\n List<Employment> employments = getQueryService().findAllEmploymentsWithKnownActors();\n if ( indexedOn.equals( ACTORS ) ) {\n return (List<String>) CollectionUtils.collect(\n employments,\n new Transformer() {\n public Object transform( Object obj ) {\n return ( (Employment) obj ).getActor().getLastName();\n }\n } );\n } else if ( indexedOn.equals( ROLES ) ) {\n return (List<String>) CollectionUtils.collect(\n CollectionUtils.select(\n employments,\n new Predicate() {\n public boolean evaluate( Object obj ) {\n return ( (Employment) obj ).getJob() != null;\n }\n } ),\n new Transformer() {\n public Object transform( Object obj ) {\n return ( (Employment) obj ).getJob().getRole().getName();\n }\n\n } );\n } else if ( indexedOn.equals( ORGANIZATIONS ) ) {\n return (List<String>) CollectionUtils.collect(\n CollectionUtils.select(\n employments,\n new Predicate() {\n public boolean evaluate( Object obj ) {\n return ( (Employment) obj ).getOrganization() != null;\n }\n } ),\n new Transformer() {\n public Object transform( Object obj ) {\n return ( (Employment) obj ).getOrganization().getName();\n }\n\n } );\n } else if ( indexedOn.equals( LOCATIONS ) ) {\n return (List<String>) CollectionUtils.collect(\n CollectionUtils.select(\n employments,\n new Predicate() {\n public boolean evaluate( Object obj ) {\n return ( (Employment) obj ).getOrganization() != null\n && ( (Employment) obj ).getOrganization().getLocation() != null;\n }\n } ),\n new Transformer() {\n public Object transform( Object obj ) {\n return ( (Employment) obj ).getOrganization().getLocation().getName();\n }\n\n } );\n } else {\n throw new IllegalStateException( \"Can't index on \" + indexedOn );\n }\n }", "private void buildPKIndex() {\n // index PK\n Collection<DbAttribute> pks = getResolver()\n .getEntity()\n .getDbEntity()\n .getPrimaryKeys();\n this.idIndices = new int[pks.size()];\n\n // this is needed for checking that a valid index is made\n Arrays.fill(idIndices, -1);\n\n Iterator<DbAttribute> it = pks.iterator();\n for (int i = 0; i < idIndices.length; i++) {\n DbAttribute pk = it.next();\n\n for (int j = 0; j < columns.length; j++) {\n if (pk.getName().equals(columns[j].getName())) {\n idIndices[i] = j;\n break;\n }\n }\n\n // sanity check\n if (idIndices[i] == -1) {\n throw new CayenneRuntimeException(\"PK column is not part of result row: %s\", pk.getName());\n }\n }\n }", "private int[] getIndexes(String name) {\n int[] indexes = (int[]) indexMap.get(name);\n if (indexes == null) {\n throw new IllegalArgumentException(\"Parameter not found: \" + name);\n }\n return indexes;\n }", "public ArrayList<Integer> getIndices(String tName) {\n ArrayList<Integer> indices = new ArrayList<>();\n\n for (int i = 0; i < fromTables.size(); i++) {\n Pair<String, String> nameAliasPair = fromTables.get(i);\n if (nameAliasPair.second().equals(tName) || nameAliasPair.first().equals(tName)) {\n indices.add(i);\n }\n }\n\n return indices;\n }", "com.google.type.Expr getCelExpression();", "String getPrimaryKeyNames(int index);", "@Test\n @IncludeIn(POSTGRESQL)\n public void array2() {\n Expression<int[]> expr = Expressions.template(int[].class, \"'{1,2,3}'::int[]\");\n int[] result = firstResult(expr);\n Assert.assertEquals(3, result.length);\n Assert.assertEquals(1, result[0]);\n Assert.assertEquals(2, result[1]);\n Assert.assertEquals(3, result[2]);\n }", "public List<SortExpression<ProductProjection>> getExpressions() {\n return expressions;\n }", "IterateExp createIterateExp();", "Set<String> getExpressionOptionComboIds(String expression, ParseType parseType);", "List<Integer> getSelectedIndexes();", "public List<Index> getIndexes() {\n return indexes;\n }", "private Component evaluateIndexes(final String method) {\n\t\tif(method.equals(\"Shortbow\")) {\n\t\t\tif(CONSTS.fletching.equals(Items.LOGS)) {\n\t\t\t\treturn CONSTS.SECOND_INDEX;\n\t\t\t} else {\n\t\t\t\treturn CONSTS.FIRST_INDEX;\n\t\t\t}\n\t\t} else if(method.equals(\"Stock\")) {\n\t\t\tif(CONSTS.fletching.equals(Items.LOGS)) {\n\t\t\t\treturn CONSTS.THIRD_INDEX;\n\t\t\t} else {\n\t\t\t\treturn CONSTS.SECOND_INDEX;\n\t\t\t}\n\t\t} else if(method.equals(\"Shieldbow\")) {\n\t\t\tif(CONSTS.fletching.equals(Items.LOGS)) {\n\t\t\t\treturn CONSTS.FOURTH_INDEX;\n\t\t\t} else {\n\t\t\t\treturn CONSTS.THIRD_INDEX;\n\t\t\t}\n\t\t} else {\n\t\t\treturn CONSTS.FIRST_INDEX;\n\t\t}\n\t}", "List<E> queryAll(String namedQuery);", "java.lang.String getQueryItems(int index);", "public List<SoupIndex> getIndexes() {\n return indexes;\n }", "public ArrayAccessExpression(Token operator, Expression expr, Expression index, Token tokLast)\n {\n super(operator, expr);\n\n setStartToken(expr.getStartToken());\n setEndToken(tokLast);\n\n this.index = index;\n }", "public Iterator<EqConstraint> lookupEq() {\n\t\treturn $$eqHashIndex_0.iterator();\n\t}", "public IAstPreprocessorMacroExpression[] getMacroExpressions();", "public static void main(String[] args) throws Exception {\n\t\tqueryIndexPattern();\n\t\t\n\t}", "List<Engine> selectByExample(EngineExample example);", "public interface Column extends Expression {\n\n Expression asc();\n\n Expression desc();\n\n Expression isNull();\n\n Expression isNotNull();\n\n Expression lt(Expression expr);\n\n Expression lt(Integer literal);\n\n Expression lt(Float literal);\n\n Expression lt(Double literal);\n\n Expression gt(Expression expr);\n\n Expression gt(Integer literal);\n\n Expression gt(Float literal);\n\n Expression gt(Double literal);\n\n Expression eq(Expression expr);\n\n Expression eq(Integer literal);\n\n Expression eq(Float literal);\n\n Expression eq(Double literal);\n\n Expression eq(String literal);\n\n Expression le(Expression expr);\n\n Expression le(Integer literal);\n\n Expression le(Float literal);\n\n Expression le(Double literal);\n\n Expression ge(Expression expr);\n\n Expression ge(Integer literal);\n\n Expression ge(Float literal);\n\n Expression ge(Double literal);\n\n Expression ne(Expression expr);\n\n Expression ne(Integer literal);\n\n Expression ne(Float literal);\n\n Expression ne(Double literal);\n\n Expression ne(String literal);\n\n Expression ne2(Expression expr);\n\n Expression ne2(Integer literal);\n\n Expression ne2(Float literal);\n\n Expression ne2(Double literal);\n\n Expression ne2(String literal);\n\n Expression in(Expression... expressions);\n\n Expression in(String... strLiterals);\n\n Expression in(Integer... intLiterals);\n\n Expression in(Long... longLiterals);\n\n Expression in(Dataset dataset);\n\n Expression notIn(Expression... expressions);\n\n Expression notIn(String... strLiterals);\n\n Expression notIn(Integer... intLiterals);\n\n Expression notIn(Long... longLiterals);\n\n Expression notIn(Dataset dataset);\n\n Expression between(Expression left, Expression right);\n\n Expression notBetween(Expression left, Expression right);\n\n Expression between(Integer left, Integer right);\n\n Expression notBetween(Integer left, Integer right);\n\n Expression between(Long left, Long right);\n\n Expression notBetween(Long left, Long right);\n\n Expression like(String str);\n}", "public boolean getCreateQueryIndexes() {\n\n\t\tString createQueryIndexes = getSource().getAttribute(CREATE_QUERY_INDEXES);\n\t\treturn StringUtils.hasText(createQueryIndexes) ? Boolean.parseBoolean(createQueryIndexes) : false;\n\t}" ]
[ "0.68170136", "0.679842", "0.6752806", "0.61515236", "0.58727777", "0.57673335", "0.5756821", "0.5687236", "0.5635919", "0.56316817", "0.54991966", "0.54773825", "0.54525954", "0.54022473", "0.5377054", "0.5330347", "0.52369046", "0.5235171", "0.52259046", "0.5157765", "0.51519644", "0.5143557", "0.5141747", "0.5127199", "0.5109275", "0.50517416", "0.50510395", "0.50183344", "0.501745", "0.5003923", "0.49996865", "0.49803776", "0.49781016", "0.4971142", "0.49657184", "0.49537578", "0.4951081", "0.49510694", "0.49456766", "0.49262205", "0.49241036", "0.49221578", "0.4901468", "0.48963717", "0.4895523", "0.48697823", "0.48660538", "0.48652464", "0.48590404", "0.48500746", "0.48048362", "0.4801262", "0.47980332", "0.47950065", "0.47708476", "0.47473866", "0.47414938", "0.473329", "0.47332317", "0.4716954", "0.46851522", "0.467974", "0.46734077", "0.46720156", "0.4671074", "0.46706095", "0.46403116", "0.46265182", "0.46195972", "0.4617057", "0.45974526", "0.45919132", "0.45913202", "0.45897985", "0.45880872", "0.4569042", "0.45647526", "0.4550495", "0.45484444", "0.45475242", "0.45447266", "0.4536554", "0.45344463", "0.45244882", "0.45180002", "0.4517353", "0.45143828", "0.45141184", "0.4505466", "0.45036533", "0.4497733", "0.44966182", "0.44952357", "0.44929388", "0.44909286", "0.44755787", "0.44754854", "0.4473692", "0.44708246", "0.44704404" ]
0.69071984
0
convert a list of index expression to string
private static String indexExpressionsToString(List<IndexExpression> indexExpressions) throws IOException { assert indexExpressions != null; // oh, you thought cfdefToString was awful? IndexClause indexClause = new IndexClause(); indexClause.setExpressions(indexExpressions); indexClause.setStart_key("".getBytes()); TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory()); try { return Hex.bytesToHex(serializer.serialize(indexClause)); } catch (TException e) { throw new IOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String indexFormat();", "Expression getIndexExpr();", "public String indexStr(int index) {\n\t\tif (index == TYPE_ANY) return \"*\";\n\t\tif (index == TYPE_ALL) return \"ALL\";\n\t\treturn Integer.toString(index);\n\t}", "public ATExpression base_indexExpression();", "public static String formatIndexed(String template, Object... params) {\n checkNotNull(template);\n checkNotNull(params);\n String result = template;\n for (int i = 0; i < params.length; i++) {\n if (params[i] == null) continue;\n result = result.replaceAll(\"\\\\{\" + i + \"\\\\}\", params[i].toString());\n }\n return result;\n }", "public static BinaryExpression arrayIndex(Expression array, Expression indexExpressions) { throw Extensions.todo(); }", "public static MethodCallExpression arrayIndex(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "java.lang.String getStrValues(int index);", "public static MethodCallExpression arrayIndex(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "public java.lang.String getInstrumentedOps(int index) {\n return instrumentedOps_.get(index);\n }", "public String toString() {\r\n return TextFormat.getInstance(Index.class).formatToString(this);\r\n }", "public java.lang.String getInstrumentedOps(int index) {\n return instrumentedOps_.get(index);\n }", "private static List<IndexExpression> indexExpressionsFromString(String ie) throws IOException\n {\n assert ie != null;\n TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory());\n IndexClause indexClause = new IndexClause();\n try\n {\n deserializer.deserialize(indexClause, Hex.hexToBytes(ie));\n }\n catch (TException e)\n {\n throw new IOException(e);\n }\n return indexClause.getExpressions();\n }", "private String literal(Array list) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"(\");\n for (int i = 0; i < list.size(); i++) {\n if (i > 0) {\n buffer.append(\",\");\n }\n buffer.append(literal(list.get(i)));\n }\n buffer.append(\")\");\n return buffer.toString();\n }", "public String toString(){\n\t\tStringBuffer r = new StringBuffer();\n\t\tr.append(\"{\");\n\t\tr.append(indexPatternSet+\"(\"+indexPattern+\")\"+type);\n\t\tr.append(\"}\");\n\t\treturn r.toString();\n\t}", "static private String makeExpression(FieldFilter[] fieldFilters) {\n StringBuilder sb = new StringBuilder(200*fieldFilters.length);\n sb.append(fieldFilters[0].filterExpression());\n for (int i=1; i<fieldFilters.length; i++) {\n sb.append(\",\");\n sb.append(fieldFilters[i].filterExpression());\n }\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn index.toString();\n\t}", "public\tString\ttoString()\n {\n // Do not put this under SanityManager.DEBUG - it is needed for\n // error reporting.\n return \"CREATE INDEX \" + indexName;\n }", "public String toString() {\r\n return Integer.toString(index);\r\n }", "private void jetExprStr(){\n\t\texprType = Z3MiscFunctions.v().getExprType(rExpr);\n\t\tswitch(exprType){\n\t\t\tcase BINOP:\n\t\t\t\tjetBinopExprStr();\n\t\t\t\tbreak;\n\t\t\tcase CAST:\n\t\t\t\tjetCastExprStr();\n\t\t\t\tbreak;\n\t\t\tcase INVOKE:\n\t\t\t\tjetInvokeExpr();\n\t\t\t\tbreak;\n\t\t\tcase NEWARRAY:\n\t\t\t\tjetNewArrayExpr();\n\t\t\t\tbreak;\n\t\t\tcase NEWEXPR:\n\t\t\t\tjetNewExpr();\n\t\t\t\tbreak;\n\t\t\tcase UNOP:\n\t\t\t\tjetUnopExpr();\n\t\t\t\tbreak;\n\t\t\tcase INSTANCEOF:\n\t\t\t\t//TODO\n\t\t\t\tassert(false);\n\t\t\t\tbreak;\n\t\t\tcase NEWMULIARRAY:\n\t\t\t\t//TODO\n\t\t\t\tassert(false);\n\t\t\t\tbreak;\n\t\t}\n\t}", "java.lang.String getValues(int index);", "private static String indexToType(int orbit) {\n String value = \"\";\n switch (orbit){\n case ORBIT_6_KNOT: value = \"Trefoil\"; break;\n case ORBIT_4_KNOT: value = \"Trefoil2\"; break;\n case ORBIT_4_SIMPLE: value = \"Simple3\"; break;\n case ORBIT_3_SIMPLE: value = \"Simple4\"; break;\n case ORBIT_5_SIMPLE: value = \"Simple5\"; break;\n case ORBIT_8: value = \"Chasing\"; break;\n }\n return value;\n }", "java.lang.String getExceptions(int index);", "@Override\n public String toString() {\n String output;\n if (hasKeyIndex()) {\n output = key + \"(\" + index + \")\";\n } else if (hasArrayIndex()) {\n output = key + \"[\" + index + \"]\";\n } else {\n output = key;\n }\n return output;\n }", "public String toString() {\n if (mExpression.size() == 1 && mExpression.get(0).startsWith(\"-\")) {\n return mExpression.get(0);\n }\n\n StringBuilder output = new StringBuilder();\n boolean first = true;\n int size = mExpression.size();\n\n for (int i = 0; i < size; i++) {\n String element = mExpression.get(i);\n\n if (first) {\n first = false;\n } else {\n output.append(\"\");\n }\n\n\n if (isOperand(element) && element.startsWith(\"-\")) {\n output.append(\"(\")\n .append(element)\n .append(\")\");\n } else {\n output.append(element);\n }\n }\n\n return output.toString();\n }", "private String calcIndexName(NamePool pool, \n String fingerName,\n List definitions,\n Configuration config) \n {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append(\"key|\" + fingerName);\n for (int k = 0; k < definitions.size(); k++) \n {\n KeyDefinition def = (KeyDefinition)definitions.get(k);\n \n // Capture the match pattern.\n String matchStr = def.getMatch().toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(matchStr), 16));\n \n // Capture the 'use' expression\n if (def.getUse() instanceof Expression) \n {\n // Saxon likes to dump debug stuff to a PrintStream, and we need to\n // capture to a buffer.\n //\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(bytes);\n \n ((Expression)def.getUse()).display(10, ps, config);\n ps.flush();\n String useStr = bytes.toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(useStr), 16));\n }\n else\n sbuf.append(\"|non-exp\");\n } // for k\n \n return sbuf.toString();\n }", "java.lang.String getGeoTargetConstants(int index);", "private String translateExpression(PropertyExpression e) {\n if (e.getObjectExpression() instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression) e.getObjectExpression();\n if (be.getOperation().getText().equals(\"[\")) {\n String left = translateExpression(be.getLeftExpression());\n if (left.equals(inputName)) {\n return withInputSuffix(e.getPropertyAsString()) + \"[\" + translateExpression(be.getRightExpression()) + \"]\";\n }\n }\n }\n\n\n String obj = translateExpression(e.getObjectExpression());\n //TODO fix for \"not in main case\"\n //if (obj.equals(outputName) && shaderType.equals(\"vs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());\n //TODO fix for \"not in main case\"\n //if (obj.equals(inputName) && shaderType.equals(\"fs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());\n //if (obj.equals(outputName)) return e.getPropertyAsString();\n //if (obj.equals(inputName)) return e.getPropertyAsString();\n if (obj.equals(\"\")) return e.getPropertyAsString();\n if ((e.getObjectExpression() instanceof BinaryExpression)) return \"(\" + obj + \").\" + e.getPropertyAsString();\n return obj + \".\" + e.getPropertyAsString();\n }", "public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }", "private String indexHistoryElement(int index, String historyElement) {\n return Integer.toString(index) + \". \" + historyElement;\n }", "public static String generateEsIndex() {\n return new Generex(PatternValidator.ESINDEX_PATTERN).random();\n }", "public String toFormulaString(String[] operands)\n {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(operands[ 0 ]);\n buffer.append(\",\");\n buffer.append(operands[ 1 ]);\n return buffer.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s[%s]\", name.getValue().getSValue(), exprNode.toString());\n\t}", "public static String getString(ArrayList<Integer> poly) {\n String result = \"\";\n \n // step backwards through list from highest to lowest order term\n for (int exp=poly.size()-1; exp>=0; --exp) {\n int coeff = poly.get(exp);\n // include constant term, but don't want 1x or -1x\n if (exp == 0 || Math.abs(coeff) > 1) { \n result += coeff;\n }\n // include non-constant, non-zero terms\n if (exp > 0 && coeff != 0) { \n if (coeff == -1) { \n result += \"-\"; // ... + -x ...\n }\n result += VARIABLE_NAME; \n if (exp > 1) { // don't want x^1 \n result += \"^\" + exp;\n } \n result += \" + \"; // ok because constant always shows at end \n }\n }\n \n return result;\n }", "String getIndexedCommunities(int index);", "public List<String> toNames(List<Object> indices) throws IllegalArgumentException {\n\t\tList<String> result = new ArrayList<String>();\n\t\tfor (Object index: indices) {\n\t\t\tif (index instanceof Integer)\n\t\t\t\tresult.add(this.get((Integer) index).getName());\n\t\t\telse if (index instanceof String)\n\t\t\t\tresult.add((String) index);\n\t\t\telse\n\t\t\t\tthrow new IllegalArgumentException(\"Expecting Integer or String, got \" + index.getClass());\n\t\t}\n\t\t\t\n\t\treturn result;\n\t}", "private String generateString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\twhile (currentIndex < expression.length\r\n\t\t\t\t&& (Character.isLetterOrDigit(expression[currentIndex]) || expression[currentIndex] == '_')) {\r\n\t\t\tsb.append(expression[currentIndex]);\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\r\n\t\treturn sb.toString().toLowerCase();\r\n\t}", "private List<IndexExpression> filterToIndexExpressions(Expression expression) throws IOException\n {\n List<IndexExpression> indexExpressions = new ArrayList<IndexExpression>();\n Expression.BinaryExpression be = (Expression.BinaryExpression)expression;\n ByteBuffer name = ByteBuffer.wrap(be.getLhs().toString().getBytes());\n ByteBuffer value = ByteBuffer.wrap(be.getRhs().toString().getBytes());\n switch (expression.getOpType())\n {\n case OP_EQ:\n indexExpressions.add(new IndexExpression(name, IndexOperator.EQ, value));\n break;\n case OP_GE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GTE, value));\n break;\n case OP_GT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GT, value));\n break;\n case OP_LE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LTE, value));\n break;\n case OP_LT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LT, value));\n break;\n case OP_AND:\n indexExpressions.addAll(filterToIndexExpressions(be.getLhs()));\n indexExpressions.addAll(filterToIndexExpressions(be.getRhs()));\n break;\n default:\n throw new IOException(\"Unsupported expression type: \" + expression.getOpType().name());\n }\n return indexExpressions;\n }", "public String getIndexesInDBFormat() {\n String servicesDBFormat = \"\";\n for(int i = 0; i < indexes.size(); i++) {\n //Add comma if not first:\n if(i != 0) {\n servicesDBFormat += \",\";\n }\n servicesDBFormat += indexes.get(i);\n }\n return servicesDBFormat;\n }", "public String toString() {\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tbuf.append(\"[ Expression \");\r\n\t\tif (text() != null) {\r\n\t\t\tbuf.append(\"[\");\r\n\t\t\tbuf.append(text().toString());\r\n\t\t\tbuf.append(\"]\");\r\n\t\t}\r\n\t\tbuf.append(\": \");\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tbuf.append(elements.get(n));\r\n\t\t\tif (n < elements.size() - 1) {\r\n\t\t\t\tbuf.append(\",\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tbuf.append(\" ]\");\r\n\t\treturn new String(buf);\r\n\t}", "public String toString(){\n String s = \" \";\n for (Map.Entry<String, PostingsList> entry : this.index.entrySet()) {\n s += entry.getKey()+\" - \" + entry.getValue().toString() + \"\\n\";\n }\n return s;//this.indexInMemory.toString();\n }", "public static IndexExpression arrayAccess(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "private void jetStringOperation(InvokeExpr invokeExpr){\n\t\tthis.exprStr = StringModeling.modelMethod(invokeExpr, fileGenerator, stmtIdx);\n\t}", "public Builder setInstrumentedOps(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInstrumentedOpsIsMutable();\n instrumentedOps_.set(index, value);\n onChanged();\n return this;\n }", "String toStringStartValues();", "protected void setIndex(Expression expr)\n {\n index = expr;\n }", "private void jetNewArrayExpr(){\n\t\t//put the length of array into exprStr\n\t\tNewArrayExpr newArrayExpr = (NewArrayExpr) rExpr;\n\t\tValue sizeValue = newArrayExpr.getSize();\n\t\tif(sizeValue instanceof Constant){\n\t\t\tthis.exprStr = sizeValue.toString();\n\t\t}else{\n\t\t\tthis.exprStr = fileGenerator.getRenameOf(sizeValue, false, this.stmtIdx);\n\t\t}\n\t}", "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "public static IndexExpression arrayAccess(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "public static String labelIntegerList(List<Integer> nums) {\t\t\n\t\tList<String> strs = nums.stream()\n\t\t\t\t\t\t\t\t.map(i -> i % 2 == 0 ? \"e\" + i : \"o\" + i)\n\t\t\t\t \t\t\t .collect(toList());\n\t\treturn String.join(\",\", strs);\t\t\n\t}", "public String s(int index) {\n if (get(index) == null) return \"null\";\n return this.adapter.get(index).toString();\n }", "public String toString() {\r\n\treturn expressions.get(0).getCdata();\r\n }", "private List<String> parseArgsAsIndexParam(String args) throws ParseException {\n Matcher stp1 = CHK_INDEX_FORMAT_STEP_1.matcher(args.trim());\n if (!stp1.matches()) {\n throw new ParseException(\"Couldn't match the index, the index part should only contain integer and '-',\"\n + \" e.g. 1 or 1-1-1\");\n }\n Matcher stp2 = CHK_INDEX_FORMAT_STEP_2.matcher(args.trim());\n if (stp2.find()) {\n throw new ParseException(\"Couldn't match the index, please check your '-' position, \"\n + \"can not have any space at its side, e.g can not type 2- or -1\");\n }\n Matcher matcher = INDEX_FORMAT.matcher(args.trim());\n List<String> matches = matcher.results().map(MatchResult::group).collect(Collectors.toList());\n return matches;\n //return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "public void outAIndexingExp(AIndexingExp node) throws TypeException{\n\tPExp exp = node.getArray();\n\tPExp index = node.getIndex();\n\tType exptype = typemap.get(exp);\n\tType indextype = typemap.get(index);\n\tindextype = removeAlias(indextype);\n\texptype = removeAlias(exptype);\n\tif(!(indextype instanceof IntType)){\n\t throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Non-integer index.\");\n\t}\n\tif(exptype instanceof SliceType){\n\t SliceType expslice = (SliceType) exptype;\n\t typemap.put(node,expslice.getType());\n\t}\n\telse if(exptype instanceof ArrayType){\n\t ArrayType exparray = (ArrayType) exptype;\n\t typemap.put(node,exparray.getType());\n\t}\n\telse{\n\t throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Indexing expression on a non-array/slice type.\");\n\t}\n }", "protected void sequence_Index(ISerializationContext context, Index semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.INDEX__EXPRESSION) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.INDEX__EXPRESSION));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getIndexAccess().getExpressionExpressionParserRuleCall_1_0(), semanticObject.getExpression());\r\n\t\tfeeder.finish();\r\n\t}", "static String composeIndexName() {\n\t\treturn TYPE.toLowerCase();\n\t}", "java.lang.String getList(int index);", "public Expression getIndex()\n {\n return index;\n }", "CSSExpression item(int index);", "public String toString() {\n\t\tString s = \"\";\n\t\tfor (Coord x : array)\n\t\t\ts += x;\n\t\treturn s;\n\t}", "@Test(timeout = 4000)\n public void test039() throws Throwable {\n String[] stringArray0 = new String[8];\n String[] stringArray1 = new String[0];\n // Undeclared exception!\n try { \n SQLUtil.join(\"alter index'+j6fg\", \"NCLOB\", stringArray0, \"NCLOB\", \"NCLOB\", stringArray1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "private static String listOfTokensToString(List<Token> tokenList) {\n\n StringBuilder stringBuilder = new StringBuilder();\n for (Token token : tokenList) {\n stringBuilder.append(String.format(\"%s\", token.getPattern()));\n }\n return stringBuilder.toString().trim();\n }", "public String toString() {\n\t \t\treturn \"(\" + i + \", \" + j + \")\";\n\t \t}", "public String getString(int index);", "public static String convertArrayListIntoString (ArrayList inputList){\n\n // convert exercisesList to string\n String resultString = \"(\";\n for (int i = 0; i < inputList.size(); i ++) {\n if (i != inputList.size() - 1) {\n resultString = resultString + inputList.get(i) + \", \";\n } else {\n resultString = resultString + inputList.get(i) + \")\";\n }\n }\n\n return resultString;\n }", "public String makeRange(ArrayList<T> list, String getIdMethod)\r\n throws Exception\r\n {\r\n StringBuffer sb = new StringBuffer();\r\n if (list.size()==0)\r\n return NOTFOUND;\r\n Class c = list.get(0).getClass();\r\n Class[] paramTypes = {};\r\n Method m = c.getMethod(getIdMethod, paramTypes);\r\n HashMap tmp = new HashMap();\r\n\r\n Object[] params = {};\r\n Iterator<T> iter = list.iterator();\r\n while (iter.hasNext()) {\r\n T t = iter.next();\r\n Y i = (Y) m.invoke(t, params);\r\n if (tmp.get(i)!=null)\r\n continue;\r\n if (excludes!=null && excludes.get(i)!=null)\r\n continue;\r\n if (sb.length()>0) sb.append(',');\r\n sb.append(i);\r\n tmp.put(i, i);\r\n }\r\n if (sb.length()==0)\r\n return NOTFOUND;\r\n return sb.toString();\r\n }", "public String toString(){\n\t\treturn String.format(\"%d: %s\", index, name);\n\t}", "public String toString() {\n\t\t// Converts column\n\t\tString columnStr = \"\";\n\t\tfor (int tempColumn = cell.getAddress().getColumn();\n\t\t\t\ttempColumn >= 0; tempColumn = tempColumn\n\t\t\t\t\t/ (Address.HIGHEST_CHAR - Address.LOWEST_CHAR + 1) - 1)\n\t\t\tcolumnStr = ((char)((char)(tempColumn % (Address.HIGHEST_CHAR\n\t\t\t\t- Address.LOWEST_CHAR + 1)) + Address.LOWEST_CHAR)) + columnStr;\n\t\tif (columnAbsolute)\n\t\t\tcolumnStr = ABSOLUTE_OPERATOR + columnStr;\n\n\t\t// Converts row\n\t\tString rowStr = (rowAbsolute ? ABSOLUTE_OPERATOR : \"\")\n\t\t\t+ (cell.getAddress().getRow() + 1);\n\t\treturn columnStr + rowStr;\n\t}", "java.lang.String getArgs(int index);", "java.lang.String getArgs(int index);", "java.lang.String getArgs(int index);", "private String getByAsc(int index) {\n int asc = 0;\n for (int i = 7; i >= 0; i--) {\n int tempInt = this.code[++index] - 48;\n asc += tempInt * Math.pow(2, i);\n }\n char ret = (char) asc;\n return String.valueOf(ret);\n }", "private String translateInfixExpression(InfixExpression e) {\n String left = translateExpression(e.getLeft());\n String right = translateExpression(e.getRight());\n return String.format(\"(%s %s %s)\", left, e.getOp(), right);\n }", "public String encode(List<String> strs) {\n StringBuilder b = new StringBuilder();\n for (String s : strs) {\n b.append(s.replaceAll(\"#\", \"##\")).append(\" # \");\n }\n return b.toString();\n }", "private String collectionToString(Collection<String> terms) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"(\");\n\t\t\t\t\n\t\tint counter = 0;\n\t\tfor (String term : terms) {\n\t\t\tif (term != null) {\n\t\t\t\tif (counter > 0) {\n\t\t\t\t\tbuilder.append(\",\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Escape single quotes\n\t\t\t\tterm = term.replace(\"'\", \"''\");\n\t\t\t\tbuilder.append(\"'\" + term + \"'\");\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tbuilder.append(\")\");\n\t\treturn builder.toString();\n\t}", "public String toString()\n {\n return JSHOP2.getDomain().getConstant(index);\n }", "public String toString() {\n return m_expression;\n }", "static void formatPath(final Appendable out, final CharSequence[] path, int pathOffset, final int[] indices) throws IOException {\n while (pathOffset < path.length) {\n if (pathOffset != 0) {\n out.append(Keywords.PATH_SEPARATOR);\n }\n out.append(path[pathOffset]);\n if (indices != null) {\n final int index = indices[pathOffset];\n if (index != 0) {\n out.append('[').append(Integer.toString(index)).append(']');\n }\n }\n pathOffset++;\n }\n }", "public String toString() {\n Iterator<AlgFieldCollation> it = fieldCollations.iterator();\n if ( !it.hasNext() ) {\n return \"[]\";\n }\n StringBuilder sb = new StringBuilder();\n sb.append( '[' );\n for ( ; ; ) {\n AlgFieldCollation e = it.next();\n sb.append( e.getFieldIndex() );\n if ( e.direction != AlgFieldCollation.Direction.ASCENDING || e.nullDirection != e.direction.defaultNullDirection() ) {\n sb.append( ' ' ).append( e.shortString() );\n }\n if ( !it.hasNext() ) {\n return sb.append( ']' ).toString();\n }\n sb.append( ',' ).append( ' ' );\n }\n }", "private static String getFormat(final ArrayList<String> expressions) {\n int length = MAX_EXCEPTION_LENGTH;\n for (String e : expressions) {\n if (e.length() > length)\n length = e.length();\n }\n return \"%\" + Integer.toString(length + \"\\t\".length()) + \"s\";\n }", "private String collectionToString(Collection<String> terms) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"(\");\n\t\tint counter = 0;\n\t\tfor (String term : terms) {\n\t\t\t// Escape single quotes\n\t\t\tterm = term.replace(\"'\", \"''\");\n\t\t\tbuilder.append(\"'\" + term + \"'\");\n\t\t\tif (counter < terms.size() - 1) {\n\t\t\t\tbuilder.append(\",\");\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t\tbuilder.append(\")\");\n\t\treturn builder.toString();\n\t}", "private String attributeListToString(List<QueryField> queryFields) {\n return queryFields.stream()\n .map(f -> getYahooQueryString(f))\n .collect(Collectors.joining())\n ;\n }", "static String arithmeticExpressions(int[] arr) {\n String result = \"\";\n String[] operation = {\"+\", \"-\", \"*\"};\n boolean done = false;\n Map<Integer, String> outputToExpression = new HashMap<>();\n outputToExpression.put(arr[0], String.valueOf(arr[0]));\n for(int i = 1; i < arr.length; i++) {\n Map<Integer, String> tempOutputToExpression = new HashMap<>();\n int currentInteger = arr[i];\n final Set<Map.Entry<Integer, String>> entry2 = outputToExpression.entrySet();\n for(int entry : outputToExpression.keySet()) {\n for(int k = 0; k < operation.length; k++) {\n int tempOutput = entry;\n if(operation[k].equals(\"+\")) {\n tempOutput = tempOutput + currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"+\" + currentInteger);\n }\n if(operation[k].equals(\"-\")) {\n tempOutput = tempOutput - currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"-\" + currentInteger);\n }\n if(operation[k].equals(\"*\")) {\n tempOutput = (tempOutput * currentInteger) % 101;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"*\" + currentInteger);\n }\n if(tempOutput % 101 == 0) {\n result = tempOutputToExpression.get(tempOutput);\n for(int j = i + 1; j < arr.length; j++) {\n result += \"*\" + arr[j];\n }\n done = true;\n }\n if(done) break;\n }\n if(done) break;\n }\n if(done) break;\n outputToExpression = tempOutputToExpression;\n }\n\n\n return result;\n }", "public static String conocidosToString(List<String> conocidos){\r\n String s = \"\"; \r\n for(int i= 0; i<conocidos.size(); i++){\r\n String c = conocidos.get(i);\r\n s = s + c + \" \";\r\n }\r\n return s;\r\n \r\n}", "private List<IndexExpression> getIndexExpressions() throws IOException\n {\n UDFContext context = UDFContext.getUDFContext();\n Properties property = context.getUDFProperties(CassandraStorage.class);\n if (property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE) != null)\n return indexExpressionsFromString(property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE));\n else\n return null;\n }", "public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }", "java.lang.String getSourcepath(int index);", "java.lang.String getSourcepath(int index);", "java.lang.String getQueryItems(int index);", "public static String convertDateListToString(int[] dateList) {\r\n\t\treturn dateList[0] + \"-\" + dateList[1] + \"-\" + dateList[2];\r\n\t}", "public String toString()\n\t{\n\t\treturn \"[\"+chain+\"|\"+name+\"|\"+idx+\"]\";\n\t}", "private static String buildParamsId(List<String> params){\n return String.join(\"#\", params);\n }", "public String encode(List<String> strs) {\n StringBuilder b = new StringBuilder();\n for (String s : strs) {\n b.append(s.length()).append(\"#\").append(s);\n }\n return b.toString();\n }", "public static IndexExpression property(Expression expression, PropertyInfo property, Iterable<Expression> arguments) { throw Extensions.todo(); }", "java.lang.String getAnnotationFilters(int index);", "public String encode(List<String> strs) {\n StringBuilder sb = new StringBuilder();\n for(String str : strs){\n \tsb.append(str.length());\n \t sb.append(\"[\");\n sb.append(str);\n sb.append(\"]\");\n }\n return sb.toString();\n }", "@Override\n public String toString() {\n\treturn \"\"+rowIndex+colIndex; \n }", "private static void translate2string(InstrCode instr, StringBuilder destStr) throws Exception {\r\n\t\tint idx = instr.instrIdx;\r\n\r\n\t\tif( idx < 10 ) {\r\n\t\t\tdestStr.append(idx);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tidx -= 10;\r\n\r\n\t\tif( idx < 26 ) {\r\n\t\t\tdestStr.append((char)(97 + idx)); // small letter\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tidx -= 26;\r\n\r\n\t\tif( idx < 26 ) {\r\n\t\t\tdestStr.append((char)(65 + idx)); // big letter\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tidx -= 26;\r\n\r\n\t\t// TODO< encode instruction with special signs >\r\n\t\tthrow new Exception(\"NOT IMPLEMENTED - TODO\");\r\n\t}", "public String convert(ArithmeticExpression expression)\n {\n String expressionString = expression.getExpression();\n String convertedExpression = \"\";\n Stack<String> OpStack = new Stack<>();\n\n int startIndex = 0;\n while(startIndex < expressionString.length())\n {\n if(isOperand(nextToken(expressionString,startIndex)))\n {\n convertedExpression += nextToken(expressionString,startIndex);\n convertedExpression += \" \";\n\n }\n if(Brackets.isLeftBracket(nextToken(expressionString,startIndex)))\n {\n OpStack.push(nextToken(expressionString,startIndex));\n }\n if(Brackets.isRightBracket(nextToken(expressionString,startIndex)))\n {\n String topOp = OpStack.pop();\n while(!Brackets.isLeftBracket(topOp))\n {\n convertedExpression += topOp;\n convertedExpression += \" \";\n topOp = OpStack.pop();\n }\n }\n if(Operator.isOperator(nextToken(expressionString,startIndex)))\n {\n Operator temp = Operator.of(nextToken(expressionString,startIndex));\n if(OpStack.isEmpty())\n {\n OpStack.push(nextToken(expressionString, startIndex));\n }\n else\n {\n Operator topOp = Operator.of(OpStack.peek());\n while (topOp.getRank() <= temp.getRank())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n topOp = Operator.of(OpStack.peek());\n }\n OpStack.push(nextToken(expressionString, startIndex));\n\n }\n }\n if(isOperand(nextToken(expressionString,startIndex)))\n startIndex += nextToken(expressionString,startIndex).length();\n else\n startIndex++;\n }\n while(!OpStack.isEmpty())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n }\n return convertedExpression;\n }", "public String removeCharacter(int idx)\r\n\t{\r\n\t\tif(expression.length() == 0)\r\n\t\t\treturn \"\";\r\n\t\tString result = expression.substring(idx, idx + 1);\r\n\t\tif(idx == expression.length() - 1)\r\n\t\t\texpression = expression.substring(0, idx);\r\n\t\telse\r\n\t\t\texpression = expression.substring(0, idx) + expression.substring(idx + 1);\r\n\t\treturn result;\r\n\t}" ]
[ "0.6669052", "0.62580335", "0.6187144", "0.5947889", "0.5934663", "0.5664372", "0.55542284", "0.55207413", "0.5500099", "0.54603153", "0.54494685", "0.54443544", "0.5415316", "0.53841513", "0.53840375", "0.5335962", "0.53285426", "0.5311014", "0.52941495", "0.524872", "0.52379453", "0.5235398", "0.5228413", "0.52261513", "0.5200784", "0.51964134", "0.51875305", "0.5181459", "0.51596093", "0.5138638", "0.51206076", "0.510587", "0.50906533", "0.50539833", "0.5036761", "0.50304645", "0.50294", "0.5020474", "0.50148064", "0.50081277", "0.4994062", "0.49925938", "0.4973628", "0.49687085", "0.49326816", "0.49115306", "0.49105373", "0.49078184", "0.48985383", "0.48875266", "0.48823577", "0.4867786", "0.48663202", "0.4860191", "0.483237", "0.4828863", "0.48202166", "0.48156294", "0.4804409", "0.47904643", "0.47866923", "0.4782753", "0.47771746", "0.4775076", "0.4768565", "0.4767363", "0.47570944", "0.4755521", "0.4753495", "0.4753495", "0.4753495", "0.474686", "0.47418132", "0.47382352", "0.4730866", "0.4725932", "0.47246662", "0.47244877", "0.47238034", "0.47212467", "0.4718422", "0.47173318", "0.47146237", "0.4708344", "0.47029597", "0.4702903", "0.46929365", "0.46929365", "0.46872762", "0.4678044", "0.46743143", "0.46705002", "0.4669308", "0.4663081", "0.46628088", "0.46608883", "0.46593508", "0.46528822", "0.4652542", "0.4629152" ]
0.72252756
0
convert string to a list of index expression
private static List<IndexExpression> indexExpressionsFromString(String ie) throws IOException { assert ie != null; TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory()); IndexClause indexClause = new IndexClause(); try { deserializer.deserialize(indexClause, Hex.hexToBytes(ie)); } catch (TException e) { throw new IOException(e); } return indexClause.getExpressions(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<String> parseArgsAsIndexParam(String args) throws ParseException {\n Matcher stp1 = CHK_INDEX_FORMAT_STEP_1.matcher(args.trim());\n if (!stp1.matches()) {\n throw new ParseException(\"Couldn't match the index, the index part should only contain integer and '-',\"\n + \" e.g. 1 or 1-1-1\");\n }\n Matcher stp2 = CHK_INDEX_FORMAT_STEP_2.matcher(args.trim());\n if (stp2.find()) {\n throw new ParseException(\"Couldn't match the index, please check your '-' position, \"\n + \"can not have any space at its side, e.g can not type 2- or -1\");\n }\n Matcher matcher = INDEX_FORMAT.matcher(args.trim());\n List<String> matches = matcher.results().map(MatchResult::group).collect(Collectors.toList());\n return matches;\n //return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "Expression getIndexExpr();", "private int[] parseArgsAsIndex(String args) throws ParseException {\n\n Matcher matcher = INDEX_ARGS_FORMAT.matcher(args.trim());\n if (!matcher.matches()) {\n throw new ParseException(\"Could not match to the correct index.\");\n }\n return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "private List<IndexExpression> filterToIndexExpressions(Expression expression) throws IOException\n {\n List<IndexExpression> indexExpressions = new ArrayList<IndexExpression>();\n Expression.BinaryExpression be = (Expression.BinaryExpression)expression;\n ByteBuffer name = ByteBuffer.wrap(be.getLhs().toString().getBytes());\n ByteBuffer value = ByteBuffer.wrap(be.getRhs().toString().getBytes());\n switch (expression.getOpType())\n {\n case OP_EQ:\n indexExpressions.add(new IndexExpression(name, IndexOperator.EQ, value));\n break;\n case OP_GE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GTE, value));\n break;\n case OP_GT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GT, value));\n break;\n case OP_LE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LTE, value));\n break;\n case OP_LT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LT, value));\n break;\n case OP_AND:\n indexExpressions.addAll(filterToIndexExpressions(be.getLhs()));\n indexExpressions.addAll(filterToIndexExpressions(be.getRhs()));\n break;\n default:\n throw new IOException(\"Unsupported expression type: \" + expression.getOpType().name());\n }\n return indexExpressions;\n }", "public ATExpression base_indexExpression();", "public String [] getAnnotationList(String fieldName, int [] indices);", "Index getIndex(String symbol);", "java.lang.String getList(int index);", "private static ArrayList<Integer> findAll(String input, String subString) {\n int lastIndex = 0;\n ArrayList<Integer> indices = new ArrayList<Integer>();\n while (lastIndex != -1) {\n\n lastIndex = input.indexOf(subString, lastIndex);\n\n if (lastIndex != -1) {\n indices.add(lastIndex);\n lastIndex += subString.length();\n }\n }\n return indices;\n }", "int parseIndexField(String text) {\n\t\tif (text.equals(\"*\")) return -1;\n\t\tif (text.equals(\"ANY\")) return -1;\n\t\tif (text.equals(\"?\")) return -2;\n\t\tif (text.equals(\"ALL\")) return -2;\n\t\treturn Gpr.parseIntSafe(text);\n\t}", "public static ExprToken[] Tokenize(String expr) throws ParseException {\n ArrayList<ExprToken> res = new ArrayList<>();\n int i = 0;\n\n while (i < expr.length()) {\n char c = expr.charAt(i);\n\n if (Character.isSpaceChar(c)) {\n i++;\n continue;\n }\n\n if (GetOpPrio(c) != -1) {\n res.add(new ExprToken(ExprToken.Type.Operator, new Character(c)));\n i++;\n } else if (Character.isLetterOrDigit(c)) {\n int start = i++;\n\n while (i < expr.length() && Character.isLetterOrDigit(expr.charAt(i)))\n i++;\n\n res.add(new ExprToken(ExprToken.Type.Word, expr.substring(start, i)));\n } else if (c == '(') {\n res.add(new ExprToken(ExprToken.Type.Bracket, '('));\n i++;\n } else if (c == ')') {\n res.add(new ExprToken(ExprToken.Type.Bracket, ')'));\n i++;\n } else {\n throw new ParseException(\"Unexpected character (\" + c + \")\", i);\n }\n }\n\n return res.toArray(new ExprToken[res.size()]);\n }", "String indexFormat();", "Index getIndices(int index);", "private List<IndexExpression> getIndexExpressions() throws IOException\n {\n UDFContext context = UDFContext.getUDFContext();\n Properties property = context.getUDFProperties(CassandraStorage.class);\n if (property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE) != null)\n return indexExpressionsFromString(property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE));\n else\n return null;\n }", "List<Log> mo13160a(String str, int i);", "Set<String> getExpressionDataElementIds(String expression, ParseType parseType);", "private int[] getIndexes() throws DukeException {\n String[] indexes = commands.split(\" \");\n int[] indexesOfTasks = new int[indexes.length];\n for (int i = 0; i < indexes.length; i++) {\n if (indexes[i].matches(\"\\\\d+\")) {\n indexesOfTasks[i] = Integer.parseInt(indexes[i]);\n } else {\n throw new DukeException(\"☹ OOPS!!! Input a valid index\");\n }\n }\n Arrays.sort(indexesOfTasks);\n return indexesOfTasks;\n }", "public List<Index> getIndexes();", "public static List<int[]> childrenOperatorIndex(SqlNode sn){\r\n\t\tint size = sn.getChildren().size();\r\n\t\tList<int[]> idxRange = new ArrayList<>();\r\n\t\tfor(int i = 0; i < size; i++){\r\n\t\t\tint start = i;\r\n\t\t\twhile(start < size && sn.getChildren().get(start) instanceof Operator){\r\n\t\t\t\t++start;\r\n\t\t\t}\r\n\t\t\tif(start > i){\r\n\t\t\t\tidxRange.add(new int[]{i, start - 1});\r\n\t\t\t\ti = start;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn idxRange;\r\n\t}", "public List<String> getExchangeIndexes();", "@Test\n\tpublic void testExpressionList() throws ParseException {\n\t\tList<Expression> list = langParser(\"\").expressionList();\n\t\tassertEquals(list.size(), 0);\n\t\tlist = langParser(\"a\").expressionList();\n\t\tassertEquals(list.size(), 1);\n\t\tlist = langParser(\"a, b\").expressionList();\n\t\tassertEquals(list.size(), 2);\n\t}", "public static BinaryExpression arrayIndex(Expression array, Expression indexExpressions) { throw Extensions.todo(); }", "java.util.List<Index>\n getIndicesList();", "List getExpressions();", "public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }", "public static MethodCallExpression arrayIndex(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "private static List<String> tokenize(String expression) {\r\n\t\tString[] arrayTokens = expression.split(\r\n\t\t\t\t\"((?<=\\\\+)|(?=\\\\+))|((?<=\\\\-)|(?=\\\\-))|((?<=\\\\*)|(?=\\\\*))|((?<=\\\\/)|(?=\\\\/))|((?<=\\\\()|(?=\\\\())|((?<=\\\\))|(?=\\\\)))\");\r\n\r\n\t\t// not all minus sign is an operator. It can be the signal of a negative number.\r\n\t\t// The following loop will \"merge\" the minus sign with the next number when it\r\n\t\t// is only a signal\r\n\t\tList<String> listTokens = new ArrayList<String>(Arrays.asList(arrayTokens));\r\n\t\tfor (int i = 0; i < listTokens.size() - 1; i++) {\r\n\t\t\tif (listTokens.get(i).equals(\"-\")) {\r\n\t\t\t\tif (i == 0 || listTokens.get(i - 1).equals(\"(\")) {\r\n\t\t\t\t\tlistTokens.set(i + 1, \"-\" + listTokens.get(i + 1));\r\n\t\t\t\t\tlistTokens.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listTokens;\r\n\t}", "public Expression getIndex()\n {\n return index;\n }", "java.lang.String getStrValues(int index);", "public static String[] parseParts(String str) {\n return TableIdParser.parse(str).toArray(new String[0]);\n }", "public static MethodCallExpression arrayIndex(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "private static List<Double> getNumbers(String exp) {\n\t\tList<Double> numbers = new ArrayList<Double>();\n\t\t//3-3.4*3/2.5*@3\n\t\texp = getExp(exp);//把表达式中-符号 转成@\n\t\tString[] split = exp.split(\"[\\\\+\\\\-\\\\*/]\");\n\t\tfor (String s : split){\n\t\t\tif (s.charAt(0) == '@') {\n\t\t\t\ts = \"-\" + s.substring(1);\n\t\t\t}\n\t\t\tnumbers.add(Double.parseDouble(s));\n\t\t}\n\t\treturn numbers;\n\t}", "public static String[] AUTOtoCATS(String str){\n return AUTOtoIndex(str, 1);\n }", "public static String[] parseEquation(String equation) {\n\t\tString[] result = equation.split(\"(?<=[-+*/])|(?=[-+*/])\");\n\t\treturn result;\n\t}", "public static Predicate ConvertToPre(String str, int index) {\r\n\t\tPredicate pred;\r\n\t\tString name = \"\";\r\n\t\tArrayList<String> variables = new ArrayList<>();\r\n\t\tboolean negate = false;\r\n\t\tint j;\r\n\t\tif(str.charAt(0) == '~') {\r\n\t\t\tnegate = true;\r\n\t\t\tj = 1;\t\t\t\r\n\t\t} \r\n\t\telse j=0;\r\n\t\t\r\n\t\twhile(str.charAt(j) != '(' && j < str.length()) {\r\n\t\t\tname += str.charAt(j);\r\n\t\t\tj++;\r\n\t\t}\r\n\t\tint varStart = j + 1;\r\n\t\twhile(str.charAt(j) != ')') {\r\n\t\t\tj++;\r\n\t\t}\r\n\t\tint varEnd = j;\r\n\t\tString[] vars = str.substring(varStart, varEnd).split(\"\\\\s*,\\\\s*\");\r\n\t\tfor(String var: vars) {\r\n\t\t\tif(isVariable(var)) {\r\n\t\t\t\t//int num = numVar[var.charAt(0)-'a']++;\r\n\t\t\t\tvar += index+1;\r\n\t\t\t}\r\n\t\t\tvariables.add(var);\r\n\t\t}\r\n\t\tpred = new Predicate(name, variables, negate);\r\n\t\treturn pred;\r\n\t}", "public static int[] makeSequence(String str) {\n\t\tint[] path = new int[str.length()];\n\t\t\n\t\tfor(int i = 0; i < path.length; i++)\n\t\t\tpath[i] = Integer.parseInt(Character.toString(str.charAt(i)));\n\t\treturn path;\n }", "public static IndexExpression arrayAccess(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "public static IndexExpression arrayAccess(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "private static List<String> parseExpression( int prefix, String exp)\n {\n if (exp == null || exp.trim().length() == 0)\n throw new IllegalArgumentException(\n \"JEXL expression may not be null or empty\");\n \n List<String> extNames = new ArrayList<>();\n // search for pattern such as \"$sys.*.*(\"\n Pattern p = Pattern.compile((prefix==SYS_PREFIX?SYS_PATTERN:USER_PATTERN));\n Matcher m = p.matcher(exp.toLowerCase());\n int index = 0;\n while ( m.find(index) )\n {\n String substr = m.group();\n StringTokenizer tok = new StringTokenizer(substr, \".\");\n if (tok.countTokens() > 2) \n {\n tok.nextToken();\n extNames.add(tok.nextToken());\n }\n index = m.end();\n } \n return extNames;\n }", "public static int[] stringArrayToPositionIndexArray(String resultNames[], String[] sourcePosStringArray, boolean warn, boolean exception) {\n\t\treturn stringArrayToPositionIndexArray(resultNames,stringArrayToMap(sourcePosStringArray), warn, exception);\n\t}", "private List<String> splitEquation(String equation) {\n List<String> result = new ArrayList<>();\n StringBuilder sb = new StringBuilder();\n int i = 0;\n while (i < equation.length()) {\n char c = equation.charAt(i);\n if (c == '+' || c == '-') {\n if (sb.length() > 0) {\n result.add(sb.toString());\n sb = new StringBuilder();\n }\n sb.append(c);\n } else {\n sb.append(c);\n }\n ++ i;\n }\n result.add(sb.toString());\n return result;\n }", "public static List<String> splitByLogicOperators(String str){\n Matcher matcher = logicOperatorPattern.matcher(str);\n List<String> result = new ArrayList<>();\n int start = 0;\n while (matcher.find()) {\n result.add(str.substring(start, matcher.start()).trim());\n result.add(str.substring(matcher.start(), matcher.end()).trim());\n start = matcher.end();\n }\n result.add(str.substring(start, str.length()).trim());\n return result;\n }", "protected void setIndex(Expression expr)\n {\n index = expr;\n }", "public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }", "private int[] getIndexes(String name) {\n int[] indexes = (int[]) indexMap.get(name);\n if (indexes == null) {\n throw new IllegalArgumentException(\"Parameter not found: \" + name);\n }\n return indexes;\n }", "public int[] splitCoordinate(String stringCoordinate){\n\t\tint[] intCoordinates = new int[2];\n\t\tString[] splitted = stringCoordinate.split(\"\\\\#\");\n\t\tintCoordinates[0] = Integer.parseInt(splitted[0]);\n\t\tintCoordinates[1] = Integer.parseInt(splitted[1]);\n\t\treturn intCoordinates;\n\t}", "public static List<String> parseStringToList(String str) {\n List<String> list = new LinkedList<>();\n if (StringUtils.isEmpty(str)){\n return list;\n }\n String[] tokens = str.trim().split(\"\\\\s*,\\\\s*\");\n if(tokens != null && tokens.length > 0) {\n for (String column : tokens) {\n list.add(column);\n }\n }\n return list;\n }", "public static int[] everyIndexOf(String str, String searchStr) {\n\t\tif (isEmpty(str) || isEmpty(searchStr)) return new int[0];\n\t\t\n\t\tint[] items = new int[countMatches(str, searchStr)];\n\t\tint loc = -1;\n\t\t\n\t\tfor (int i=0; i < items.length; i++) {\n\t\t\t\n\t\t\tloc = str.indexOf(searchStr, loc + 1);\n\t\t\titems[i] = loc;\n\t\t}\n\n\t\treturn items;\n\t}", "public void buildTokenIdentifierArrayList() {\n\t\t/**\n\t\t * Maintain the order while adding. Give it in a greedy way. The most specific to most common. Eg: DECIMAL Should \n\t\t * be added first then INTEGER else INTEGER will be matched first and '.' will be matched as a TOKEN and then\n\t\t * the succeeding number will be parsed as an INTEGER\n\t\t */\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.DECIMAL), TokenType.DECIMAL_LITERAL));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.IDENTIFIER), TokenType.IDENTIFIER));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.INTEGER), TokenType.INTEGER_LITERAL));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.STRING), TokenType.STRING_LITERAL));\n\n\t\tfor (String t: new String[] {\"=\", \"\\\\(\",\"\\\\)\", \"\\\\.\",\"\\\\,\"}) {\n\t\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(\"^(\" + t + \")\"), TokenType.TOKEN));\t\n\t\t}\n\t}", "public static List<Lexeme> lexicalAnalyzer(String expression) {\n ArrayList<Lexeme> lexemes = new ArrayList<>();\n int pos = 0;\n while (pos < expression.length()) {\n char symbol = expression.charAt(pos);\n switch (symbol) {\n case '(':\n lexemes.add(new Lexeme(LexemeType.OPEN_BRACKET, symbol));\n pos++;\n continue;\n case ')':\n lexemes.add(new Lexeme(LexemeType.CLOSE_BRACKET, symbol));\n pos++;\n continue;\n case '+':\n lexemes.add(new Lexeme(LexemeType.PLUS, symbol));\n pos++;\n continue;\n case '-':\n lexemes.add(new Lexeme(LexemeType.MINUS, symbol));\n pos++;\n continue;\n case '*':\n lexemes.add(new Lexeme(LexemeType.MULTIPLICATION, symbol));\n pos++;\n continue;\n case '/':\n lexemes.add(new Lexeme(LexemeType.DIVISION, symbol));\n pos++;\n continue;\n default:\n if (symbol <= '9' && symbol >= '0') {\n StringBuilder number = new StringBuilder();\n do {\n number.append(symbol);\n pos++;\n if (pos >= expression.length()) {\n break;\n }\n symbol = expression.charAt(pos);\n } while (symbol <= '9' && symbol >= '0');\n lexemes.add(new Lexeme(LexemeType.NUMBER, number.toString()));\n } else {\n if (symbol != ' ') {\n throw new RuntimeException(\"Unexpected character: \" + symbol);\n }\n pos++;\n }\n }\n }\n lexemes.add(new Lexeme(LexemeType.END_OF_LINE, \"\"));\n return lexemes;\n }", "public static String[] convertToPos(String[] string) {\n\n\t\tHashMap<String, Integer> operator = new HashMap<String, Integer>();\n\t\toperator.put(\"*\", 2);\n\t\toperator.put(\"/\", 2);\n\t\toperator.put(\"+\", 1);\n\t\toperator.put(\"-\", 1);\n\t\toperator.put(\"(\", 3);\n\t\toperator.put(\")\", 0);\n\n\t\tStack<String> evaluationStack = new Stack<String>();\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor (int i = 0; i < string.length; i++) {\n\t\t\tif (!(operator.containsKey(string[i]))) {\n\t\t\t\tevaluationStack.push(string[i]);\n\t\t\t} else {\n\t\t\t\tint precedence = operator.get(string[i]);\n\t\t\t\tif (!operatorStack.isEmpty()) {\n\t\t\t\t\tif (operator.get(operatorStack.peek()) >= precedence) {\n\t\t\t\t\t\tif (!(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\") || operatorStack.peek().equals(\"(\")))\n\t\t\t\t\t\t\tevaluationStack.push(operatorStack.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toperatorStack.push(string[i]);\n\t\t\t}\n\t\t}\n\n\t\twhile (!operatorStack.isEmpty()) {\n\t\t\tif (!((operatorStack.peek().equals(\")\") || operatorStack.peek().equals(\"(\")))) {\n\t\t\t\tevaluationStack.push(operatorStack.pop());\n\t\t\t} else {\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t}\n\t\t\n\t\tString str[] = new String[evaluationStack.size()];\n\n\t\tint c = str.length - 1;\n\t\twhile (!evaluationStack.isEmpty()) {\n\t\t\tstr[c] = evaluationStack.pop();\n\t\t\tc--;\n\t\t}\n\n\t\treturn str;\n\n\t}", "private static ArrayList<Integer> patternSearch(String s, String p){\n ArrayList<Integer> indexes = new ArrayList<>(); \n\n for(int i = 0 ; i < s.length() - p.length(); i++){\n\n if(s.substring(i, i + p.length()).equals(p)) indexes.add(i);\n\n\n }\n\n return indexes;\n }", "Expression(String expressionString) throws IllegalArgumentException {\r\n tokenList = new ArrayList<String>();\r\n StringBuilder token = new StringBuilder();\r\n\r\n // ADD YOUR CODE BELOW HERE\r\n // ..\r\n for (int i = 0; i < expressionString.length(); i++) {\r\n Character first = expressionString.charAt(i);\r\n if (first == ' ') {\r\n continue;\r\n }\r\n if (first == '(' || first == ')' || first == '[' || first == ']') {\r\n tokenList.add(expressionString.substring(i, i + 1));\r\n }\r\n if (first == '+' || first == '-' || first == '*' || first == '/') {\r\n if (expressionString.charAt(i + 1) == '+' || expressionString.charAt(i + 1) == '-') {\r\n tokenList.add(expressionString.substring(i, i + 2));\r\n i++;\r\n continue;\r\n }\r\n tokenList.add(expressionString.substring(i, i + 1));\r\n }\r\n if (Character.isDigit(first)) {\r\n int k = i + 1;\r\n while (Character.isDigit(expressionString.charAt(k))) {\r\n k++;\r\n }\r\n tokenList.add(expressionString.substring(i, k));\r\n i = k - 1;\r\n\r\n }\r\n }\r\n }", "protected void sequence_Index(ISerializationContext context, Index semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.INDEX__EXPRESSION) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.INDEX__EXPRESSION));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getIndexAccess().getExpressionExpressionParserRuleCall_1_0(), semanticObject.getExpression());\r\n\t\tfeeder.finish();\r\n\t}", "private int[] getInputIds(String text) {\n\t\tString[] tokens = tokenize(text, Kwargs.empty());\n\t\treturn convertTokensToIds(tokens);\n\t}", "private static String[] getOperations(String input) {\n\t\treturn input.replaceAll(\"[ ]\", \"\").split(\"[;]\");\n\t}", "java.lang.String getValues(int index);", "Set<DimensionalItemId> getExpressionDimensionalItemIds(String expression, ParseType parseType);", "public ArrayAccessExpression(Token operator, Expression expr, Expression index, Token tokLast)\n {\n super(operator, expr);\n\n setStartToken(expr.getStartToken());\n setEndToken(tokLast);\n\n this.index = index;\n }", "public static int[] prefixTable(String str) {\n\n if (str == null) {\n throw new IllegalArgumentException(\"NULL 'str' parameter passed\");\n }\n\n if (str.length() == 0) {\n return new int[]{};\n }\n\n final int strLength = str.length();\n int[] prefixTable = new int[strLength];\n prefixTable[0] = 0;\n\n for (int i = 1; i < str.length(); i++) {\n\n int patternIndex = i;\n int baseIndex = 0;\n\n while (patternIndex < strLength\n && str.charAt(baseIndex) == str.charAt(patternIndex)) {\n ++patternIndex;\n ++baseIndex;\n }\n\n prefixTable[i] = baseIndex;\n }\n\n return prefixTable;\n }", "public static String[] AUTOtoTags(String str){\n return Configuration.auto_type.equals(AUTO_TYPE.CANDC) ? AUTOtoIndex(str, 4) : AUTOtoIndex(str, 2);\n }", "String getIndexBits();", "ExpressionList getExpressionList();", "public int getIndex();", "public int getIndex();", "public int getIndex();", "@Test\n public void testIndexMaintenanceWithIndexOnMethodAsList() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asList() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "@Test\r\n\tpublic void testIndexOf() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\ttestArray.add(\"math\");\r\n\t\ttestArray.add(\"reading\");\r\n\t\ttestArray.add(\"science\");\r\n\t\ttestArray.add(\"social studies\");\r\n\t\tassertEquals(0, testArray.indexOf(\"math\"));\r\n\t\tassertEquals(1, testArray.indexOf(\"reading\"));\r\n\t\tassertEquals(2, testArray.indexOf(\"science\"));\r\n\t\tassertEquals(3, testArray.indexOf(\"social studies\"));\r\n\t\tassertEquals(-1, testArray.indexOf(\"invalid\"));\r\n\t}", "public static int[] stringArrayToPositionIndexArray(String resultNames[], Map<String,Integer> sourcePosStringMap, boolean warn, boolean exception) {\n\t\tint[] sourcePos = new int[resultNames.length];\n\t\tfor(int i=0;i<resultNames.length;i++) {\n\t\t\tInteger pos = sourcePosStringMap.get(resultNames[i]);\n\t\t\tif(pos==null) {\n\t\t\t\tif(warn) {\n\t\t\t\t\tlog.warn(\"stringArrayToPositionIndexArray: \"+resultNames[i]+\" not in \"+sourcePosStringMap);\n\t\t\t\t}\n\t\t\t\tif(exception) {\n\t\t\t\t\tthrow new RuntimeException(\"stringArrayToPositionIndexArray: \"+resultNames[i]+\" not in \"+sourcePosStringMap);\n\t\t\t\t}\n\t\t\t\tsourcePos[i] = -1;\n\t\t\t} else {\n\t\t\t\tsourcePos[i] = pos;\n\t\t\t}\t\t\n\t\t}\n\t\treturn sourcePos;\n\t}", "public static List<Integer> stringToIntList(String string) {\n List<Integer> listInt = new LinkedList<>();\n String charBuffer = \"\";\n char[] charArray = string.toCharArray();\n for ( char c : charArray ) {\n if ( c == ',' ) {\n listInt.add(Integer.parseInt(charBuffer));\n charBuffer = \"\";\n } else if ( InputControl.testInt(c) ) {\n charBuffer += c;\n\n }\n }\n listInt.add(Integer.parseInt(charBuffer));\n return listInt;\n }", "List<Integer> getSelectedIndexes();", "private int[] getLHSIntFromString(String token) {\n\n if (token == null) {\n return null;\n }\n\n if (token.length() < 1) {\n return null;\n }\n\n Vector<String> lhsInt = new Vector<>();\n\n try (Scanner colonScanner = new Scanner(token)) {\n colonScanner.useDelimiter(\";\");\n\n while (colonScanner.hasNext()) {\n String next = colonScanner.next();\n if (next.equals(\"0\")) {\n return null;\n }\n\n lhsInt.add(next);\n }\n }\n\n //Convert to array of int\n int[] lhsIntArr = new int[lhsInt.size()];\n for(int i = 0; i < lhsIntArr.length; ++i) {\n lhsIntArr[i] = Integer.parseInt(lhsInt.get(i));\n }\n\n //If these rules are being reloaded, the LHS int values need to be adjusted\n if (this.ruleIdOffset > 0) {\n for(int i = 0; i < lhsIntArr.length; ++i) {\n lhsIntArr[i] += this.ruleIdOffset;\n }\n }\n\n return lhsIntArr;\n }", "public int index();", "public int nameIndex();", "private int getStartNodeIndex(int validStartIndexOfStr) {\n\t\treturn validStartIndexOfStr / 2;\n\t}", "public String[] getElementAnnotation(int index, String attr);", "public List<ScannedToken> parse() {\n TokenType prev = null;\n TokenType curr = null;\n TokenType next = null;\n\n List<ScannedToken> properlyParsedExpression = new ArrayList<>();\n\n List<TokenType> types = expression.stream().map(ScannedToken::type).collect(Collectors.toList());\n List<Integer> indexes = new ArrayList<>();\n List<ScannedToken> negativeValues = new ArrayList<>();\n\n for (int i = 0; i < types.size() - 1; i++) {\n prev = i == 0 ? null : types.get(i - 1);\n curr = types.get(i);\n next = types.get(i + 1);\n if (prev == null && curr == TokenType.SUB && next == TokenType.VALUE) {\n ScannedToken negativeValue =\n new ScannedToken(\"\" + (-1 * Double.parseDouble(expression.get(i + 1).expression())),\n TokenType.VALUE);\n System.out.println(\"new token at index \" + i);\n indexes.add(i);\n negativeValues.add(negativeValue);\n\n } else if (prev == TokenType.LPAR && curr == TokenType.SUB && next == TokenType.VALUE) {\n ScannedToken negativeValue =\n new ScannedToken(\"\" + (-1 * Double.parseDouble(expression.get(i + 1).expression())),\n TokenType.VALUE);\n System.out.println(\"new token at index \" + i);\n indexes.add(i);\n negativeValues.add(negativeValue);\n }\n }\n\n int maxIterations = expression.size();\n int i = 0;\n int j = 0;\n while (i < maxIterations) {\n if (indexes.contains(i) && j < negativeValues.size()) {\n properlyParsedExpression.add(negativeValues.get(j));\n j++;\n i++;\n }\n else {\n properlyParsedExpression.add(expression.get(i));\n }\n i++;\n }\n System.out.println(properlyParsedExpression);\n return properlyParsedExpression;\n }", "CSSExpression item(int index);", "private static int[] enumerate(String in, int min, int max) {\n List<Integer> result = new ArrayList<Integer>();\n \n // a, b, c\n StringTokenizer tok = new StringTokenizer(in.trim(), \",\");\n while (tok.hasMoreTokens()) {\n \n String str = tok.nextToken().trim();\n int stepsize = 1;\n int start = min;\n int end = max;\n \n // Extract the step size, */2 or 7-10/2\n int stepdivider = str.indexOf('/');\n if (stepdivider > 0) {\n try {\n stepsize = Integer.parseInt(str.substring(stepdivider + 1));\n if (!\"*\".equals(str.substring(0, str.indexOf('/'))))\n throw new IllegalArgumentException(\"Malformed stepsize expression '\" + str + \"', first argument should be *\");\n for (int i = 0; i < max; i++) {\n if (i % stepsize == 0)\n result.add(i);\n }\n return toIntArray(result);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Illegal stepsize in '\" + str + \"'\");\n }\n }\n \n // *, 7-12, 13\n int hyphen = str.indexOf('-');\n if (str.startsWith(\"*\")) {\n return new int[] {};\n } else if (hyphen > 0) {\n try {\n start = Integer.parseInt(toNumber(str.substring(0, hyphen)));\n end = Integer.parseInt(toNumber(str.substring(hyphen + 1)));\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Invalid interval in '\" + str + \"'\");\n }\n } else {\n try {\n start = end = Integer.parseInt(toNumber(str));\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Invalid number: '\" + str + \"'\");\n }\n }\n \n // Check for minimum / maximum\n if (start < min)\n throw new IllegalArgumentException(\"Value \" + start + \" in '\" + in + \"' is smaller than the minimum of \" + min);\n if (end > max)\n throw new IllegalArgumentException(\"Value \" + end + \" in '\" + in + \"' is larger than the maximum of \" + min);\n \n // Return the result\n for (int i = start; i <= end; i += stepsize) {\n result.add(new Integer(i));\n }\n \n }\n return toIntArray(result);\n }", "@Override\n public java.util.List<Index> getIndicesList() {\n return indices_;\n }", "@Test\n\tpublic void testListLiteral() throws ParseException {\n\t\tListLiteral listLiteral = langParser(\"[]\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 0);\n\t\tlistLiteral = langParser(\"[101,a,'b']\").listLiteral();\n\t\tassertEquals(listLiteral.getElements().size(), 3);\n\t\tassertEquals(listLiteral.getElements().get(0).getClass(), LongLiteral.class);\n\t\tassertEquals(((LongLiteral) listLiteral.getElements().get(0)).longValue(), 101L);\n\t\tassertEquals(listLiteral.getElements().get(1).getClass(), Identifier.class);\n\t\tassertEquals(((Identifier) listLiteral.getElements().get(1)).getName(), \"a\");\n\t\tassertEquals(listLiteral.getElements().get(2).getClass(), StringLiteral.class);\n\t\tassertEquals(((StringLiteral) listLiteral.getElements().get(2)).getValue(), \"b\");\n\t}", "public static ArrayList posisjoner(String ord, int index, Node currentNode){\n \treturn new ArrayList();\r\n }", "public long indexFromString(String str) {\n final int MAX_VALUE_LENGTH = 10;\n\n int len = str.length();\n if (len > 0) {\n int i = 0;\n boolean negate = false;\n int c = str.charAt(0);\n if (c == '-') {\n if (len > 1) {\n c = str.charAt(1);\n if (c == '0') return -1L; // \"-0\" is not an index\n i = 1;\n negate = true;\n }\n }\n c -= '0';\n if (0 <= c && c <= 9\n && len <= (negate ? MAX_VALUE_LENGTH + 1 : MAX_VALUE_LENGTH)) {\n // Use negative numbers to accumulate index to handle\n // Integer.MIN_VALUE that is greater by 1 in absolute value\n // then Integer.MAX_VALUE\n int index = -c;\n int oldIndex = 0;\n i++;\n if (index != 0) {\n // Note that 00, 01, 000 etc. are not indexes\n while (i != len && 0 <= (c = str.charAt(i) - '0') && c <= 9) {\n oldIndex = index;\n index = 10 * index - c;\n i++;\n }\n }\n // Make sure all characters were consumed and that it couldn't\n // have overflowed.\n if (i == len &&\n (oldIndex > (Integer.MIN_VALUE / 10) ||\n (oldIndex == (Integer.MIN_VALUE / 10) &&\n c <= (negate ? -(Integer.MIN_VALUE % 10)\n : (Integer.MAX_VALUE % 10))))) {\n return 0xFFFFFFFFL & (negate ? index : -index);\n }\n }\n }\n return -1L;\n }", "public static String formatIndexed(String template, Object... params) {\n checkNotNull(template);\n checkNotNull(params);\n String result = template;\n for (int i = 0; i < params.length; i++) {\n if (params[i] == null) continue;\n result = result.replaceAll(\"\\\\{\" + i + \"\\\\}\", params[i].toString());\n }\n return result;\n }", "@Override\n public int[][] getIntArray(String str) {\n return null;\n }", "java.lang.String getResourcePatterns(int index);", "public static String[] obtainEntityKeyFrom(String s)\n {\n if(StringUtils.isEmpty(s)) return null;\n \n String rdo[]=new String[3];\n \n int sIdx=s.indexOf(\"[\",0);\n int fpipe=s.indexOf(\"|\", 0);\n if(sIdx<0 || fpipe<0) return null;\n \n rdo[0]=s.substring(sIdx+1,fpipe);\n \n int spipe=s.indexOf(\"|\",fpipe+1);\n if(spipe<0) return null;\n rdo[1]=s.substring(fpipe+1, spipe);\n \n rdo[2]=s.substring(spipe+1, s.length()-1);\n \n return rdo;\n }", "private int[] convertToIntArray(String value) {\r\n\t\tString[] items = StringUtils.split(value, \"#\");\r\n\t\tint[] result = new int[items.length];\r\n\t\tfor (int i = 0; i < items.length; i++) {\r\n\t\t\tresult[i] = Integer.parseInt(items[i]);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "public static List<Integer> convertStrToList(String str, String sepator) {\n\t\tif (StringUtils.isEmpty(str)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (StringUtils.isEmpty(sepator)) {\n\t\t\tsepator = \",\";\n\t\t}\n\n\t\tString[] split = str.split(sepator);\n\t\tList<Integer> list = null;\n\t\tif (split != null && split.length > 0) {\n\t\t\tlist = new ArrayList<Integer>();\n\n\t\t\tfor (String s : split) {\n\t\t\t\tlist.add(Integer.parseInt(s));\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "public static int [] parseOperand(String operand) {\r\n \tint wholeNum;\r\n \tint numerator;\r\n \tint denominator; \r\n \tint [] operandArray = new int [3];\r\n \tif (operand.indexOf(\"/\") >= 0 && operand.indexOf(\"_\") >= 0) {\r\n \twholeNum = Integer.parseInt(operand.substring(0, operand.indexOf(\"_\"))); \r\n \t numerator = Integer.parseInt(operand.substring(operand.indexOf(\"_\") + 1, operand.indexOf(\"/\")));\r\n \t denominator = Integer.parseInt(operand.substring(operand.indexOf(\"/\") + 1));\r\n }\r\n else if (operand.indexOf(\"_\") == -1 && operand.indexOf(\"/\") >= 0) {\r\n \twholeNum = 0;\r\n \tnumerator = Integer.parseInt(operand.substring(0, operand.indexOf(\"/\")));\r\n \tdenominator = Integer.parseInt(operand.substring(operand.indexOf(\"/\") + 1));\r\n }\r\n else {\r\n \twholeNum = Integer.parseInt(operand);\r\n \tnumerator = 0;\r\n \tdenominator = 1;\r\n }\r\n \toperandArray[0] = wholeNum;\r\n \toperandArray[1] = numerator;\r\n \toperandArray[2] = denominator;\r\n \treturn operandArray;\r\n \t\r\n \t\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint a [] = {1,0,0,1,1,0,0,1,0,1,0,0,0,1};\r\n\t\t\r\n\t\tboolean start = false;\r\n\t\t//boolean end = false;\r\n\t\tString s = \"\";\r\n\t\tString k = Arrays.toString(a);\r\n\t\tString[] strings = (k.replace(\"[\", \"\").replace(\"]\", \"\").split(\", \"));\r\n\t\tString s1 = (k.replace(\"[\", \"\").replace(\"]\", \"\"));\r\n\t\tString s2 = (s1.replace(\",\", \"\"));\r\n\t\tString s3 = s2.replaceAll(\"\\\\s\", \"\");\r\n\t\t//String stringss = strings.toString();\r\n\t\t//String[] stringss = strings.replaceAll(\"\\\\s\", \"\").split(\"\");\r\n\t\t\r\n\t\tint Startindex = 0;\r\n\t\tint Endindex = 0;\r\n\t\tArrayList<String> ai = new ArrayList<String>();\r\n\t\tfor (int i =0;i<=strings.length-1;i++) {\r\n\t\t\tint result = Integer.parseInt(strings[i]);\r\n\t\t\t\r\n\t\t\tif (result==1 && !start) {\r\n\t\t\t\t\r\n\t\t\t\tstart = true;\r\n\t\t\t\tStartindex = i;\r\n\t\t\t\t\r\n\t\t\t}else if (result==1 && start) {\r\n\t\t\t\tstart = false;\r\n\t\t\t\tEndindex = i;\r\n\t\t\t\ts = s3.substring(Startindex, Endindex+1);\r\n\t\t\t\tai.add(s);\r\n\t\t\t\ti =i-1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\nSystem.out.println(ai);\r\n\t}", "java.util.List<? extends IndexOrBuilder>\n getIndicesOrBuilderList();", "private List<String> nextIdentListParam()\n {\n if (empty())\n return null;\n\n int start = position;\n ArrayList<String> result = null;\n\n if (!consume('('))\n return null;\n skipWhitespace();\n\n do {\n String ident = nextIdentifier();\n if (ident == null) {\n position = start;\n return null;\n }\n if (result == null)\n result = new ArrayList<>();\n result.add(ident);\n skipWhitespace();\n } while (skipCommaWhitespace());\n\n if (consume(')'))\n return result;\n\n position = start;\n return null;\n }", "public static List<Location> parseCellPositions(String cellPositions) {\n if (cellPositions == null) {\n return null;\n }\n\n if (StringUtils.isBlank(cellPositions)) {\n return new ArrayList<>();\n }\n\n String[] cellPositionSplit = cellPositions.split(\"\\\\|\");\n\n if (cellPositionSplit.length == 0) {\n return new ArrayList<>();\n }\n\n List<Location> locationList = new ArrayList<>();\n\n for (String cellPosition : cellPositionSplit) {\n if (cellPosition == null) continue;\n\n String[] loc = cellPosition.split(\",\");\n if (loc.length != 2) continue;\n\n Integer row = parseInteger(loc[1]);\n Integer column = parseInteger(loc[0]);\n\n if (row != null && column != null) {\n // Substract 1 for zero-based indexes\n locationList.add(new Location(row - 1, column - 1));\n }\n }\n\n return locationList;\n }", "List<String> mo5877c(String str);", "public static int[] stringToIntArray(String instr, String delim)\n throws NoSuchElementException, NumberFormatException {\n StringTokenizer toker = new StringTokenizer(instr, delim);\n int intArray[] = new int[toker.countTokens()];\n int i = 0;\n \n while (toker.hasMoreTokens()) {\n String sInt = toker.nextToken();\n int nInt = Integer.parseInt(sInt);\n intArray[i++] = new Integer(nInt).intValue();\n }\n return intArray;\n }", "private int[] parseHours(String str) {\n try {\n return enumerate(str, 0, 23);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing hours: \" + e.getMessage());\n }\n }", "java.lang.String getArgs(int index);", "java.lang.String getArgs(int index);" ]
[ "0.66002667", "0.6311849", "0.6004993", "0.5839112", "0.57950807", "0.5688023", "0.54039335", "0.53603244", "0.53521854", "0.5279057", "0.52665293", "0.521517", "0.519805", "0.5178481", "0.51560795", "0.5117545", "0.51023513", "0.5094219", "0.50893515", "0.507633", "0.50653327", "0.50634915", "0.5042594", "0.50317496", "0.5014556", "0.4998999", "0.49920106", "0.49910963", "0.4987003", "0.49621445", "0.49410424", "0.4935968", "0.49358547", "0.49076223", "0.49003997", "0.4870488", "0.48086143", "0.47633418", "0.47568795", "0.4754582", "0.475305", "0.47432867", "0.4738874", "0.47283107", "0.4721448", "0.47189254", "0.47016665", "0.46999526", "0.46943846", "0.4672092", "0.4662607", "0.4659232", "0.4659186", "0.46507517", "0.46435225", "0.4638741", "0.4632107", "0.4626981", "0.46212047", "0.46176267", "0.46053717", "0.46017522", "0.45799974", "0.4571511", "0.4571511", "0.4571511", "0.45458123", "0.45427915", "0.4526649", "0.45242894", "0.45240408", "0.4521891", "0.4518778", "0.45115283", "0.45073292", "0.45011792", "0.44925994", "0.44888315", "0.44813886", "0.44793135", "0.4478127", "0.44758973", "0.44757015", "0.4462223", "0.4458242", "0.4457868", "0.4455549", "0.4454329", "0.44529417", "0.44520965", "0.44501442", "0.44499782", "0.44491866", "0.4446676", "0.4443834", "0.44401208", "0.4439429", "0.44368646", "0.44347405", "0.44347405" ]
0.72342825
0
get a list of index expression
private List<IndexExpression> getIndexExpressions() throws IOException { UDFContext context = UDFContext.getUDFContext(); Properties property = context.getUDFProperties(CassandraStorage.class); if (property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE) != null) return indexExpressionsFromString(property.getProperty(StorageHelper.PARTITION_FILTER_SIGNATURE)); else return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression getIndexExpr();", "public ATExpression base_indexExpression();", "public Expression getIndex()\n {\n return index;\n }", "Index getIndices(int index);", "public List<Index> getIndexes();", "java.util.List<Index>\n getIndicesList();", "private List<IndexExpression> filterToIndexExpressions(Expression expression) throws IOException\n {\n List<IndexExpression> indexExpressions = new ArrayList<IndexExpression>();\n Expression.BinaryExpression be = (Expression.BinaryExpression)expression;\n ByteBuffer name = ByteBuffer.wrap(be.getLhs().toString().getBytes());\n ByteBuffer value = ByteBuffer.wrap(be.getRhs().toString().getBytes());\n switch (expression.getOpType())\n {\n case OP_EQ:\n indexExpressions.add(new IndexExpression(name, IndexOperator.EQ, value));\n break;\n case OP_GE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GTE, value));\n break;\n case OP_GT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GT, value));\n break;\n case OP_LE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LTE, value));\n break;\n case OP_LT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LT, value));\n break;\n case OP_AND:\n indexExpressions.addAll(filterToIndexExpressions(be.getLhs()));\n indexExpressions.addAll(filterToIndexExpressions(be.getRhs()));\n break;\n default:\n throw new IOException(\"Unsupported expression type: \" + expression.getOpType().name());\n }\n return indexExpressions;\n }", "private static List<IndexExpression> indexExpressionsFromString(String ie) throws IOException\n {\n assert ie != null;\n TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory());\n IndexClause indexClause = new IndexClause();\n try\n {\n deserializer.deserialize(indexClause, Hex.hexToBytes(ie));\n }\n catch (TException e)\n {\n throw new IOException(e);\n }\n return indexClause.getExpressions();\n }", "public static List<int[]> childrenOperatorIndex(SqlNode sn){\r\n\t\tint size = sn.getChildren().size();\r\n\t\tList<int[]> idxRange = new ArrayList<>();\r\n\t\tfor(int i = 0; i < size; i++){\r\n\t\t\tint start = i;\r\n\t\t\twhile(start < size && sn.getChildren().get(start) instanceof Operator){\r\n\t\t\t\t++start;\r\n\t\t\t}\r\n\t\t\tif(start > i){\r\n\t\t\t\tidxRange.add(new int[]{i, start - 1});\r\n\t\t\t\ti = start;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn idxRange;\r\n\t}", "private List<String> parseArgsAsIndexParam(String args) throws ParseException {\n Matcher stp1 = CHK_INDEX_FORMAT_STEP_1.matcher(args.trim());\n if (!stp1.matches()) {\n throw new ParseException(\"Couldn't match the index, the index part should only contain integer and '-',\"\n + \" e.g. 1 or 1-1-1\");\n }\n Matcher stp2 = CHK_INDEX_FORMAT_STEP_2.matcher(args.trim());\n if (stp2.find()) {\n throw new ParseException(\"Couldn't match the index, please check your '-' position, \"\n + \"can not have any space at its side, e.g can not type 2- or -1\");\n }\n Matcher matcher = INDEX_FORMAT.matcher(args.trim());\n List<String> matches = matcher.results().map(MatchResult::group).collect(Collectors.toList());\n return matches;\n //return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "public static MethodCallExpression arrayIndex(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "public List<String> getExchangeIndexes();", "public static BinaryExpression arrayIndex(Expression array, Expression indexExpressions) { throw Extensions.todo(); }", "public static MethodCallExpression arrayIndex(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "List<Integer> getSelectedIndexes();", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public int index();", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "@VTID(10)\n int getIndex();", "public String [] getAnnotationList(String fieldName, int [] indices);", "@Override\n public java.util.List<Index> getIndicesList() {\n return indices_;\n }", "List getExpressions();", "public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "public final List<Integer> getIndexList() {\r\n return this.indices;\r\n }", "public List<Index> getIndexes() {\n\t\tList<Index> indexes = new ArrayList<>();\n\t\tfor (Registration reg : registrations) {\n\t\t\tindexes.add(reg.getIndex());\n\t\t}\n\t\treturn indexes;\n\t}", "public static IndexExpression arrayAccess(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "long getIds(int index);", "public static IndexExpression arrayAccess(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "int index();", "java.lang.String getList(int index);", "java.util.List<? extends IndexOrBuilder>\n getIndicesOrBuilderList();", "String indexFormat();", "private Component evaluateIndexes(final String method) {\n\t\tif(method.equals(\"Shortbow\")) {\n\t\t\tif(CONSTS.fletching.equals(Items.LOGS)) {\n\t\t\t\treturn CONSTS.SECOND_INDEX;\n\t\t\t} else {\n\t\t\t\treturn CONSTS.FIRST_INDEX;\n\t\t\t}\n\t\t} else if(method.equals(\"Stock\")) {\n\t\t\tif(CONSTS.fletching.equals(Items.LOGS)) {\n\t\t\t\treturn CONSTS.THIRD_INDEX;\n\t\t\t} else {\n\t\t\t\treturn CONSTS.SECOND_INDEX;\n\t\t\t}\n\t\t} else if(method.equals(\"Shieldbow\")) {\n\t\t\tif(CONSTS.fletching.equals(Items.LOGS)) {\n\t\t\t\treturn CONSTS.FOURTH_INDEX;\n\t\t\t} else {\n\t\t\t\treturn CONSTS.THIRD_INDEX;\n\t\t\t}\n\t\t} else {\n\t\t\treturn CONSTS.FIRST_INDEX;\n\t\t}\n\t}", "private IndexOperations getIndexOperations() {\n return elasticsearchOperations.indexOps(itemClazz);\n }", "public abstract int getIndex();", "ExpressionList getExpressionList();", "protected List<ColumnDef> getIndexes() throws IOException\n {\n CfDef cfdef = getCfDef(loadSignature);\n List<ColumnDef> indexes = new ArrayList<ColumnDef>();\n for (ColumnDef cdef : cfdef.column_metadata)\n {\n if (cdef.index_type != null)\n indexes.add(cdef);\n }\n return indexes;\n }", "private List<Integer> getSelectedIndexes() {\n\t\tList<Integer> result = new LinkedList<Integer>();\n\t\tfor (int i = 0; i < this.checked.size(); i++) {\n\t\t\tif (this.checked.get(i))\n\t\t\t\tresult.add(i);\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public Index getIndices(int index) {\n return indices_.get(index);\n }", "public abstract int getNumIndexes();", "public int getIndex(\n )\n {return index;}", "java.lang.String getValues(int index);", "public int[] getIndexReference(){\r\n \treturn this.index;\r\n \t}", "public java.util.List<Index.Builder>\n getIndicesBuilderList() {\n return getIndicesFieldBuilder().getBuilderList();\n }", "protected void setIndex(Expression expr)\n {\n index = expr;\n }", "java.util.List<com.google.firestore.admin.v1beta1.Index> \n getIndexesList();", "public int[] getIndices() {\r\n\t\treturn indices;\r\n\t}", "public abstract long getIndex();", "public List<Index> getIndexes() {\n return indexes;\n }", "private int[] parseArgsAsIndex(String args) throws ParseException {\n\n Matcher matcher = INDEX_ARGS_FORMAT.matcher(args.trim());\n if (!matcher.matches()) {\n throw new ParseException(\"Could not match to the correct index.\");\n }\n return Stream.of(matcher.group(\"targetIndex\").split(\"\\\\s+\")).mapToInt(Integer::parseInt).toArray();\n }", "public static IndexExpression property(Expression expression, PropertyInfo property, Iterable<Expression> arguments) { throw Extensions.todo(); }", "int getOtherIds(int index);", "private int[] getIndexes(String name) {\n int[] indexes = (int[]) indexMap.get(name);\n if (indexes == null) {\n throw new IllegalArgumentException(\"Parameter not found: \" + name);\n }\n return indexes;\n }", "private static ArrayList<Integer> expressionEvaluator(Expression expression, Table tableToApplySelectionOn) throws IOException, ParseException {\n\t\t\n\t\t\n\t\t\n\t\t// this is the actual list of indices that stores the indices of the tuples that satisfy all the conditions\n\t\tArrayList<Integer> listOfIndices = new ArrayList<Integer>();\n\n\t\t// this Table contains the resultant table after applying selection operation\n\t\tTable resultantTable = new Table(tableToApplySelectionOn);\n\t\tresultantTable.tableName = \"resultTable\";\n\n\t\t// the following conditions are to evaluate the EQUAL expression\n\t\tif (expression instanceof EqualsTo) {\n\t\t\t// this extracts the equal to clause in the WHERE clause\n\t\t\tEqualsTo equalsExpression = (EqualsTo) expression;\n\t\t\t\n\t\t\t// this extracts the left and the right expressions in the equal to clause\n\t\t\tExpression leftExpression = ((Expression) equalsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) equalsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(equalsExpression, tableToApplySelectionOn);\n\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\t//System.out.println(tableToApplySelectionOn);\n\t\t\t\t//System.out.println(tableToApplySelectionOn.columnDescriptionList);\n\t\t\t\t//System.out.println(tableToApplySelectionOn.columnIndexMap);\n\t\t\t\t/*System.out.println(leftVal);\n\t\t\t\tSystem.out.println(tableToApplySelectionOn.columnIndexMap.get(leftVal));\n\t\t\t\t*/\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\t\t\t\t\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"string\") || type.equalsIgnoreCase(\"char\") || type.equalsIgnoreCase(\"varchar\")) {\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\tif (array[index].equals(rightArray[rightIndex])) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (array[index].equals(rightArray[rightIndex].substring(1,rightArray[rightIndex].length() - 1))) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) == Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0]) && Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1]) && Integer.parseInt(leftDate[2]) == Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\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} else if (expression instanceof NotEqualsTo) {\n\n\t\t\n\t\t\t\n\t\t\t// this extracts the equal to clause in the WHERE clause\n\t\t\tNotEqualsTo equalsExpression = (NotEqualsTo) expression;\n\t\t\t\n\t\t\t// this extracts the left and the right expressions in the equal to clause\n\t\t\tExpression leftExpression = ((Expression) equalsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) equalsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(equalsExpression, tableToApplySelectionOn);\n\n\t\t\t} else {\n\t\t\n\t\t\t\t\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\t\t\t\t\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"string\") || type.equalsIgnoreCase(\"char\") || type.equalsIgnoreCase(\"varchar\")) {\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\tif (!array[index].equals(rightArray[rightIndex])) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\n\t\t\n\t\t\t\t\t\t\tif (!array[index].equals(rightArray[rightIndex].substring(1,rightArray[rightIndex].length() - 1))) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) != Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) != Integer.parseInt(rightDate[0]) && Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1]) && Integer.parseInt(leftDate[2]) != Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\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}\n\n\t\telse if (expression instanceof GreaterThanEquals) {\n\t\t\t\n\t\t\tGreaterThanEquals greaterThanEqualsExpression = (GreaterThanEquals) expression;\n\t\t\tExpression leftExpression = ((Expression) greaterThanEqualsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) greaterThanEqualsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(greaterThanEqualsExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) >= Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) < Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) < Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) < Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*if(tableToApplySelectionOn.tableName.equalsIgnoreCase(\"lineitem\") && expression.toString().equals(\"lineitem.receiptdate >= date('1994-01-01')\")){\n\t\t\t\t\t//System.out.println(listOfIndices);\n\t\t\t\t\t}*/\n\t\t\t}\n\t\t} else if (expression instanceof GreaterThan) {\n\t\t\t\n\t\t\tGreaterThan greaterThanExpression = (GreaterThan) expression;\n\t\t\tExpression leftExpression = ((Expression) greaterThanExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) greaterThanExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(greaterThanExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) > Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) < Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) < Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) <= Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\telse if (expression instanceof MinorThan) {\n\t\t\tMinorThan minorThanExpression = (MinorThan) expression;\n\n\t\t\tExpression leftExpression = ((Expression) minorThanExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) minorThanExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression|| rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(minorThanExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) < Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) > Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) > Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) >= Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t/*if(tableToApplySelectionOn.tableName.equalsIgnoreCase(\"lineitem\") && expression.toString().equals(\"lineitem.commitdate < lineitem.receiptdate\")){\n\t\t\t\t\tSystem.out.println(listOfIndices);\n\t\t\t\t\t}*/\n\t\t\t}\n\t\t}\n\t\telse if (expression instanceof MinorThanEquals) {\n\t\t\t\n\t\t\tMinorThanEquals minorEqualsThan = (MinorThanEquals) expression;\n\t\t\tExpression leftExpression = ((Expression) minorEqualsThan.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) minorEqualsThan.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(minorEqualsThan,tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) <= Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) > Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) > Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) > Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else if (expression instanceof AndExpression) {\n\t\t\t\n\t\t\tAndExpression andExpression = (AndExpression) expression;\n\t\t\tExpression leftVal = ((Expression) andExpression.getLeftExpression());\n\t\t\tExpression rightVal = ((Expression) andExpression.getRightExpression());\n\n\t\t\tArrayList<Integer> leftArr = expressionEvaluator(leftVal, tableToApplySelectionOn);\n\t\t\tArrayList<Integer> rightArr = expressionEvaluator(rightVal, tableToApplySelectionOn);\n\n\t\t\tArrayList<Integer> set = new ArrayList<Integer>();\n\t\t\tfor (int i : leftArr) {\n\t\t\t\tif (rightArr.contains(i)) {\n\t\t\t\t\tset.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlistOfIndices = set;\n\t\t}\n\n\t\telse if (expression instanceof OrExpression) {\n\t\t\t\n\t\t\t\n\t\t\tOrExpression orExpression = (OrExpression) expression;\n\t\t\tExpression leftVal = ((Expression) orExpression.getLeftExpression());\n\t\t\tExpression rightVal = ((Expression) orExpression.getRightExpression());\n\n\t\t\tArrayList<Integer> leftArr = expressionEvaluator(leftVal, tableToApplySelectionOn);\n\t\t\tArrayList<Integer> rightArr = expressionEvaluator(rightVal, tableToApplySelectionOn);\n\t\t\t\t\t\t\n\t\t\tTreeSet<Integer> set = new TreeSet<Integer>();\n\t\t\t\n\t\t\tfor (int i : leftArr) {\n\t\t\t\tset.add(i);\n\t\t\t}\n\t\t\tfor (int i : rightArr) {\n\t\t\t\tset.add(i);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i : set) {\n\t\t\t\tlistOfIndices.add(i);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse if (expression instanceof Parenthesis){\n\t\t\t\n\t\t\tArrayList<Integer> expArr = expressionEvaluator(((Parenthesis)expression).getExpression(), tableToApplySelectionOn);\n\t\t\t\n\t\t\tfor(int i:expArr){\n\t\t\t\tlistOfIndices.add(i);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\treturn listOfIndices;\n\t}", "public java.util.List<Index> getIndicesList() {\n if (indicesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(indices_);\n } else {\n return indicesBuilder_.getMessageList();\n }\n }", "String getIndexedCommunities(int index);", "int getRequestedValues(int index);", "public ArrayAccessExpression(Token operator, Expression expr, Expression index, Token tokLast)\n {\n super(operator, expr);\n\n setStartToken(expr.getStartToken());\n setEndToken(tokLast);\n\n this.index = index;\n }", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "Index getIndex(String symbol);", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public List<SoupIndex> getIndexes() {\n return indexes;\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "public int getIndex() { return this.index; }", "private static int[] createHelper(@Nullable final TupleExpr expr,\n final List<String> commonVars, final List<Value> constants) {\n if (expr == null) {\n return EMPTY_INDEXES;\n }\n\n // Otherwise, extracts all the statement patterns in the expression\n final List<StatementPattern> patterns = Algebra.extractNodes(expr,\n StatementPattern.class, null, null);\n\n // Build an index array with 4 slots for each pattern. Each slot contains either: the\n // index (i + 1) of the variable in commonVars correspon+ding to that quad component,\n // or the index -(i+1) of the constant in 'constants' corresponding to that component,\n // or 0 to denote the default context constant (sesame:nil)\n final int[] indexes = new int[4 * patterns.size()];\n for (int i = 0; i < patterns.size(); ++i) {\n final List<Var> patternVars = patterns.get(i).getVarList();\n for (int j = 0; j < patternVars.size(); ++j) {\n final Var var = patternVars.get(j);\n if (var.getValue() != null) {\n int index = constants.indexOf(var.getValue());\n if (index < 0) {\n index = constants.size();\n constants.add(var.getValue());\n }\n indexes[i * 4 + j] = -index - 1;\n } else {\n final int index = commonVars.indexOf(var.getName());\n if (index < 0) {\n throw new Error(\"Var \" + var.getName() + \" not among common vars \"\n + commonVars);\n }\n indexes[i * 4 + j] = index + 1;\n }\n }\n }\n return indexes;\n }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "protected void sequence_Index(ISerializationContext context, Index semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.INDEX__EXPRESSION) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.INDEX__EXPRESSION));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getIndexAccess().getExpressionExpressionParserRuleCall_1_0(), semanticObject.getExpression());\r\n\t\tfeeder.finish();\r\n\t}", "public int getIndex(int position);", "private int[] getIndexes() throws DukeException {\n String[] indexes = commands.split(\" \");\n int[] indexesOfTasks = new int[indexes.length];\n for (int i = 0; i < indexes.length; i++) {\n if (indexes[i].matches(\"\\\\d+\")) {\n indexesOfTasks[i] = Integer.parseInt(indexes[i]);\n } else {\n throw new DukeException(\"☹ OOPS!!! Input a valid index\");\n }\n }\n Arrays.sort(indexesOfTasks);\n return indexesOfTasks;\n }", "public int nameIndex();", "boolean getIsIndexOnValues();", "public List<Expression> getSubExpressions();", "CSSExpression item(int index);", "@Override\n public java.util.List<? extends IndexOrBuilder>\n getIndicesOrBuilderList() {\n return indices_;\n }", "public int[] getColorIndices();", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "com.google.firestore.admin.v1beta1.Index getIndexes(int index);", "public String getIndex() {\n return index;\n }", "public int[] getExperimentColorIndices();", "public String getIndex() {\n\t\treturn index;\n\t}", "public String getIndex() {\n\t\treturn index;\n\t}", "int getIndex() {\n\t\treturn index;\n\t}" ]
[ "0.78198165", "0.72530633", "0.6980704", "0.69424695", "0.68083423", "0.6677548", "0.66742766", "0.6481662", "0.6363471", "0.6348046", "0.6251286", "0.62123626", "0.6192797", "0.61737525", "0.6173646", "0.617085", "0.617085", "0.617085", "0.61561114", "0.6155153", "0.6104331", "0.60609114", "0.6023175", "0.6001594", "0.60000986", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.60000813", "0.59828156", "0.5968393", "0.59535086", "0.59404254", "0.59082496", "0.5876837", "0.5850103", "0.58329684", "0.5831985", "0.5800111", "0.57908165", "0.57491046", "0.5748626", "0.57484984", "0.5738273", "0.5729197", "0.5674309", "0.5668326", "0.56202734", "0.56057715", "0.56039155", "0.5602014", "0.55976653", "0.55765676", "0.5547105", "0.55399", "0.5527141", "0.5522126", "0.55191576", "0.5515487", "0.55086625", "0.54980904", "0.5497707", "0.5494638", "0.5492893", "0.5454049", "0.54492444", "0.5448339", "0.54316723", "0.54316723", "0.5425032", "0.54175425", "0.5405117", "0.53996867", "0.539098", "0.5385714", "0.53856343", "0.5382836", "0.5376954", "0.5375265", "0.53747916", "0.5370256", "0.53463966", "0.53333986", "0.5332423", "0.53306556", "0.5326766", "0.5323344", "0.5321309", "0.5319866", "0.5319866", "0.53154135" ]
0.64511985
8
get a list of column for the column family
protected List<ColumnDef> getColumnMetadata(Cassandra.Client client) throws TException, CharacterCodingException, InvalidRequestException, ConfigurationException { return getColumnMeta(client, true, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Column> getColumns();", "java.util.List<Column>\n getColumnsList();", "List<String> getColumns();", "public List<String> getColumns();", "java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> \n getColumnsList();", "public List getColumns() {\r\n return columns;\r\n }", "@Override\n public java.util.List<Column> getColumnsList() {\n return columns_;\n }", "java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> \n getColumnList();", "List<Column> getQueryColumns();", "public List<Column> getColumns(){\r\n\t\treturn columns;\r\n\t}", "Column[] getColumns() { return columns; }", "public Column[] getColumns() {return columns;}", "java.util.List<? extends ColumnOrBuilder>\n getColumnsOrBuilderList();", "java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList();", "public Set<String> getColumns();", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> getColumnList() {\n return column_;\n }", "public ArrayList getColumns() {\n return columns;\n }", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> getColumnList() {\n if (columnBuilder_ == null) {\n return java.util.Collections.unmodifiableList(column_);\n } else {\n return columnBuilder_.getMessageList();\n }\n }", "public Collection<TapColumn> findAllColumns();", "public ArrayList<Column> getColumnArrayList(){\n\t\t\n\t\treturn clist;\n\t\t\n\t}", "public String[] getColumns() {\r\n\t\tlogger.trace(\"Enter getColumns\");\r\n\t\tlogger.trace(\"Exit getColumns\");\r\n\t\treturn columns;\r\n\t}", "public java.util.List<Column> getColumnsList() {\n if (columnsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(columns_);\n } else {\n return columnsBuilder_.getMessageList();\n }\n }", "public java.util.List<? extends com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.ColumnOrBuilder> \n getColumnOrBuilderList() {\n if (columnBuilder_ != null) {\n return columnBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(column_);\n }\n }", "public abstract List<ColumnSpecification> metadata();", "@Override\n public java.util.List<? extends ColumnOrBuilder>\n getColumnsOrBuilderList() {\n return columns_;\n }", "public java.lang.String[] getColumns() {\n return columns;\n }", "public java.util.List<? extends ColumnOrBuilder>\n getColumnsOrBuilderList() {\n if (columnsBuilder_ != null) {\n return columnsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(columns_);\n }\n }", "public java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList() {\n if (columnsBuilder_ != null) {\n return columnsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(columns_);\n }\n }", "public abstract TableTreeNodeColumn[] getColumns();", "public List getColumns(Serializable columnId) {\n\tif(null==columnId){\r\n\t\treturn this.getColumnDao().getColumns();\r\n\t}else{\r\n\t\treturn this.getColumnDao().getColumns(columnId);\r\n\t}\r\n}", "public java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> getColumnsList() {\n if (columnsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(columns_);\n } else {\n return columnsBuilder_.getMessageList();\n }\n }", "public List<IColumn> getColumns() {\r\n\t\treturn Collections.unmodifiableList(columns);\r\n\t}", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "public java.util.List<Column.Builder>\n getColumnsBuilderList() {\n return getColumnsFieldBuilder().getBuilderList();\n }", "public List<Column> getQueryDependColumns() {\n return queryDependendCollumns;\n }", "java.util.List<? extends com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.ColumnOrBuilder> \n getColumnOrBuilderList();", "public List<byte[]> getColumns(){\n List<byte[]> list = new ArrayList<byte[]>();\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n if(iter.hasNext()){\n byte[] col = iter.next().getSecond();\n if(null != col)\n list.add(col);\n }\n return list;\n }", "Column getColumns(int index);", "public List<Column> columns() {\n return this.columns;\n }", "public java.util.List<? extends com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.ColumnOrBuilder> \n getColumnOrBuilderList() {\n return column_;\n }", "public Columns getColumns() {\n return columns;\n }", "public List<ColumnSchema> getColumns() {\n return columns;\n }", "@java.lang.Override\n public java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> getColumnsList() {\n return columns_;\n }", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column.Builder> \n getColumnBuilderList() {\n return getColumnFieldBuilder().getBuilderList();\n }", "public SystemColumn[] buildColumnList()\n throws StandardException\n {\n return new SystemColumn[] {\n SystemColumnImpl.getUUIDColumn(\"UUID\", false),\n SystemColumnImpl.getIdentifierColumn(\"ROLEID\", false),\n SystemColumnImpl.getIdentifierColumn(\"GRANTEE\", false),\n SystemColumnImpl.getIdentifierColumn(\"GRANTOR\", false),\n SystemColumnImpl.getIndicatorColumn(\"WITHADMINOPTION\"),\n SystemColumnImpl.getIndicatorColumn(\"ISDEF\"),\n };\n }", "public Map<String, ColumnMetaData> getColumns();", "public int[] getColumns()\n\t{\n\t\treturn columns;\n\t}", "public List<Object[]> select() {\n return selectColumns(metadata.getColumns());\n }", "public com.guidewire.datamodel.ColumnDocument.Column[] getColumnArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(COLUMN$0, targetList);\r\n com.guidewire.datamodel.ColumnDocument.Column[] result = new com.guidewire.datamodel.ColumnDocument.Column[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "List<String> headerColumns();", "@java.lang.Override\n public java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList() {\n return columns_;\n }", "public SystemColumn[] buildColumnList() {\n \n return new SystemColumn[] {\n SystemColumnImpl.getUUIDColumn(\"TIMING_ID\", false),\n SystemColumnImpl.getColumn(\"CONSTRUCTOR_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"OPEN_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"NEXT_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"CLOSE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"EXECUTE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"AVG_NEXT_TIME_PER_ROW\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"PROJECTION_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"RESTRICTION_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"TEMP_CONG_CREATE_TIME\", Types.BIGINT, true),\n SystemColumnImpl.getColumn(\"TEMP_CONG_FETCH_TIME\", Types.BIGINT, true),\n };\n }", "public java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder> \n getColumnsBuilderList() {\n return getColumnsFieldBuilder().getBuilderList();\n }", "private List<String> getColNames() {\r\n\t\t//\r\n\t\tDBManager dbm = new DBManager(this);\r\n\t\t\r\n\t\tSQLiteDatabase wdb = dbm.getWritableDatabase();\r\n\r\n\t\t// REF=> http://stackoverflow.com/questions/947215/how-to-get-a-list-of-column-names-on-sqlite3-iphone\r\n\t\tString sql = \"PRAGMA table_info('\" + DBManager.tableName + \"')\";\r\n\t\t\r\n\t\tCursor c = wdb.rawQuery(sql, null);\r\n\t\t\r\n\t\t// Log\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getCount() => \" + c.getCount());\r\n\t\t\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getColumnCount() => \" + c.getColumnCount());\r\n\r\n\t\tList<String> colNames = new ArrayList<String>();\r\n\t\t\r\n\t\tc.moveToFirst();\r\n\t\t\r\n\t\tfor (int i = 0; i < c.getCount(); i++) {\r\n\t\t\t\r\n\t\t\tcolNames.add(c.getString(0));\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"c.getString(0) => \" + c.getString(0) + \r\n\t\t\t\t\t\" / \" + \"c.getString(1) => \" + c.getString(1));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tc.moveToNext();\r\n\t\t\t\r\n\t\t}//for (int i = 0; i < c.getCount(); i++)\r\n\t\t\r\n\t\twdb.close();\r\n\t\t\r\n\t\tfor (String string : colNames) {\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"colName => \" + string);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\treturn (String[])colNames.toArray();\r\n\t\treturn colNames;\r\n\t\t\r\n\t}", "public com.walgreens.rxit.ch.cda.StrucDocCol[] getColArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COL$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocCol[] result = new com.walgreens.rxit.ch.cda.StrucDocCol[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "List<String> getColumnIdentifiers();", "@Override\n public Set<String> getAllColumnIds() {\n return subFilter.getAllColumnIds();\n }", "public Columns getColumns() {\n\tColumns cs = null;\n\tif (column1 != null && !column1.isVariable()) {\n\t\tcs = new Columns(column1);\n\t\tif (column2 != null && !column2.isVariable()) {\n\t\t\tcs.add(column2);\n\t\t}\n\t}\n\treturn cs;\n}", "public SortedSet<String> getColumns()\n\t\t{\n\t\treturn Collections.unmodifiableSortedSet(columns);\n\t\t}", "public List getReferencedColumns() {\n\t\treturn referencedColumns;\t\t\n\t}", "Iterator<Column> baseColumns();", "@Override\n public Column getColumns(int index) {\n return columns_.get(index);\n }", "public List<AttributeColumn> getAllAttributeColumns() {\n\t\treturn Collections.unmodifiableList(attributeColumns);\n\t}", "public ArrayList<String> getColumnNames();", "public abstract List<V> makeColumnData(C column);", "private List<PgColumn> getColumnsWithStatistics() {\n final List<PgColumn> list = new ArrayList<PgColumn>();\n \n for (PgColumn column : columns) {\n if (column.getStatistics() != null) {\n list.add(column);\n }\n }\n \n return list;\n }", "@Override\n public final Collection<HasCell<T, ?>> getColumns() {\n return idToCellMap.values();\n }", "private Collection getColumn(QueryResultIF queryResult, int column) {\n Collection retVal = new ArrayList();\n\n while (queryResult.next()) {\n retVal.add(queryResult.getValue(column));\n }\n\n return retVal;\n }", "public Vector getColunas(String schema, String name);", "public ArrayList<Column> getColumns(String schema, String table) {\r\n try {\r\n Statement stmt = conexion.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '\" + schema + \"' AND TABLE_NAME = '\" + table + \"'\";\r\n ResultSet rs = stmt.executeQuery(sql);\r\n ArrayList<Column> columns = new ArrayList();\r\n while (rs.next()) {\r\n Column_Base column = new Column_Base();\r\n column.setTitle(rs.getString(4));\r\n column.setStorageFormat(rs.getString(8));\r\n column.setDecimalPositions(\".\");//default standard mysql\r\n column.setRecordNumber(getRecordNumberColumnBD(schema, table, column.getTitle()));\r\n columns.add(column);\r\n }\r\n return columns;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAOBaseDatos.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n\r\n }", "@java.lang.Override\n public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) {\n return columns_.get(index);\n }", "Iterator<Column> referencedColumns();", "public List<ColumnSpec> getColumnSpecs() {\n\t\treturn columnSpecs;\n\t}", "public static Column[] all() {\n return Column.values();\n }", "public List getColumns () {\n\t\tif (this.columns == null) {\n\t\t\tthis.columns = new ArrayList();\n\t\t\tthis.columns.add (new DcsTableColumn (\"Collection\", \"name\", \"name\", Constants.ASCENDING, \"listAllRecords\"));\n\t\t\tthis.columns.add (new DcsTableColumn (\"Create record\", \"create\", null, -1, \"createRecord\"));\n\t\t\tthis.columns.add (new DcsTableColumn (\"Metadata format\", \"format\", \"format\", Constants.ASCENDING, null));\n\t\t\tthis.columns.add (new DcsTableColumn (\"Num Records\", \"numFiles\", \"numFiles\", Constants.DESCENDING, \"listAllRecords\"));\n\t\t\tthis.columns.add (new DcsTableColumn (\"Not Valid\", \"numNotValid\", \"numNotValid\", Constants.DESCENDING, \"listNotValidRecords\"));\n\t\t}\n\t\treturn this.columns;\n\t}", "List<SQLColumn> default_field_as_column(Class clss){\n\n List<SQLColumn> output = new ArrayList<>();\n ColumnHandler handler = Scanner.new_handler(newColumn());\n\n for (Field field: clss.getFields()){\n if (!Scanner.has_ESAnnotation(field))\n output.add(new SQLColumn(handler, field));\n }\n\n return output;\n }", "List<ColumnStrategy> getColumnStrategies();", "public com.sforce.soap.partner.ListViewColumn[] getColumns() {\r\n return columns;\r\n }", "public List getColumnKeys() {\n/* 204 */ List result = new ArrayList();\n/* 205 */ int last = lastCategoryIndex();\n/* 206 */ for (int i = this.firstCategoryIndex; i <= last; i++) {\n/* 207 */ result.add(this.underlying.getColumnKey(i));\n/* */ }\n/* 209 */ return Collections.unmodifiableList(result);\n/* */ }", "public ArrayList<ColumnInTable> getAllColumns() {\n Schema schema = Schema.getSchema();\n ArrayList<ColumnInTable> columns = new ArrayList<ColumnInTable>();\n \n for (int i = 0; i < fromTables.size(); i++) {\n Table t = schema.getTable(fromTables.get(i).first());\n for (Entry<String, Column> entry: t.getAllColumns().entrySet()) {\n columns.add(new ColumnInTable(entry.getValue(), i));\n }\n }\n \n return columns;\n }", "private static ArrayList getColumns (Connection c, String t)\n\t\tthrows Exception\n\t{\n\t\tStatement s = c.createStatement();\n\t\tResultSet r = s.executeQuery(\"show columns from `\" + t + \"`\");\n\t\tArrayList result = new ArrayList();\n\t\twhile (r.next()) {\n\t\t\tColumnInfo info = new ColumnInfo();\n\t\t\tinfo.name = r.getString(1);\n\t\t\tinfo.type = r.getString(2);\n\t\t\tinfo.nullok = r.getString(3);\n\t\t\tinfo.key = r.getString(4);\n\t\t\tinfo.defaultval = r.getString(5);\n\t\t\tinfo.extra = r.getString(6);\n\t\t\tresult.add(info);\n\t\t}\n\t\ts.close();\n\t\tCollections.sort(result);\n\t\treturn result;\n\t}", "Vector<String> getColumns(String table) throws SQLException {\n\t\tVector<String> columns = new Vector<String>();\n\t\tDatabaseMetaData md = con.getMetaData();\n\t\tfor (ResultSet rs = md.getColumns(null, null, table, null); rs.next(); columns\n\t\t\t\t.add(rs.getString(4)))\n\t\t\t;\n\t\treturn columns;\n\t}", "@Override\n public List<PmTableCol> getColumns() {\n if (this.sortOrderSelection == null) {\n List<PmTableCol> cols = PmUtil.getPmChildrenOfType(this, PmTableCol.class);\n for (int i=0; i<cols.size(); ++i) {\n cols.get(i).getColPosAttr().setValue(i);\n }\n this.sortOrderSelection = new SortOrderSelection(cols);\n return cols;\n }\n else {\n return PmUtil.getPmChildrenOfType(this, PmTableCol.class);\n }\n }", "Get<K, C> addColumn(String family, C column);", "public List<Column> getColumns() {\n if (columns != null) return columns;\n columns = new ArrayList<Column>();\n for (Column column : getAdapter().getColumns(getTableName())) {\n if (column.getName().equals(getPrimaryKey())) {\n column.setPrimary(true);\n }\n columns.add(column);\n }\n return columns;\n }", "public List<String> propertyColumns() {\n return this.propertyColumns;\n }", "public String[] getColumnNames();", "public Vector<Class<?>>getTableColumnClasses()\n\t{\n\t\tVector<Class<?>> vec = new Vector<Class<?>>(this.dbColumnNames.size());\n\t\tif( usesPrefix )\n\t\t{\n\t\t\tvec.add(String.class);\n\t\t} else {\n\t\t\tvec.add(Integer.class);\n\t\t}\n\t\treturn vec;\n\t}", "com.google.protobuf.ByteString getColumnBytes();", "public ArrayList<Column> getSchema();", "@Override\n public ColumnOrBuilder getColumnsOrBuilder(\n int index) {\n return columns_.get(index);\n }", "@Override\n public List<ScalarFunctionColumn> getScalarFunctionColumns() {\n return subFilter.getScalarFunctionColumns();\n }", "public int getColumns()\n {\n return field.getColumns();\n }", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, boolean reversed, String... columns);", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, int limit, boolean reversed, String fromColumn, String toColumn);", "public String getColumns() {\n\t\tString[] colStrArr = columns.toArray(new String[columns.size()]); \n\t\tlogInfo(String.join(\", \", colStrArr));\n\t\treturn \"\"+String.join(\", \", colStrArr);\n\t}", "public String[] getReferencedColumnNames();", "@Override\r\n\tpublic String[] getCol(String[] sql) {\n\t\treturn null;\r\n\t}", "public Vector<String> getColumns() throws SQLException {\r\n return this.columns;\r\n }", "@NonNull\n Collection<TObj> getColumnItems(int column) {\n Collection<TObj> result = new LinkedList<>();\n for (int count = mData.size(), i = 0; i < count; i++) {\n int key = mData.keyAt(i);\n TObj columnObj = mData.get(key).get(column);\n if (columnObj != null) {\n result.add(columnObj);\n }\n\n }\n return result;\n }", "public abstract List<ColumnaBrowser> getColumnasBrowser();" ]
[ "0.80494857", "0.77865624", "0.7722452", "0.7623284", "0.74557704", "0.73004586", "0.72875077", "0.72545916", "0.7215828", "0.719709", "0.7159851", "0.7092295", "0.70837766", "0.70658165", "0.7060869", "0.697172", "0.6970743", "0.694947", "0.6900517", "0.68969", "0.6885259", "0.6862205", "0.6826943", "0.6792248", "0.67817307", "0.6780346", "0.67755115", "0.6759637", "0.67582107", "0.67569256", "0.67417556", "0.6726925", "0.6714934", "0.6674772", "0.6668043", "0.666559", "0.66582984", "0.665647", "0.6654302", "0.6634296", "0.6598524", "0.6586478", "0.6584613", "0.65802693", "0.6556517", "0.65497166", "0.65422356", "0.65180314", "0.6507878", "0.65024424", "0.6486419", "0.64391476", "0.64324385", "0.6400262", "0.6379928", "0.6372697", "0.6351555", "0.6330614", "0.63302606", "0.6326118", "0.63252926", "0.63088655", "0.63040864", "0.62908316", "0.6266348", "0.6262177", "0.6258339", "0.6203659", "0.61826634", "0.6175303", "0.61581516", "0.6157373", "0.61555284", "0.61527", "0.6142771", "0.61423266", "0.61341834", "0.6126534", "0.6104984", "0.61015886", "0.61005676", "0.609227", "0.60877067", "0.6063722", "0.6059591", "0.6058366", "0.6051735", "0.604965", "0.60485166", "0.6045153", "0.60383356", "0.60322785", "0.6028621", "0.6017742", "0.6008276", "0.6006323", "0.598236", "0.598025", "0.5976556", "0.59733", "0.59567875" ]
0.0
-1
get column meta data
protected List<ColumnDef> getColumnMeta(Cassandra.Client client, boolean cassandraStorage, boolean includeCompactValueColumn) throws org.apache.cassandra.thrift.InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, TException, CharacterCodingException, org.apache.cassandra.exceptions.InvalidRequestException, ConfigurationException, NotFoundException { String query = String.format("SELECT column_name, validator, index_type, type " + "FROM %s.%s " + "WHERE keyspace_name = '%s' AND columnfamily_name = '%s'", SystemKeyspace.NAME, LegacySchemaTables.COLUMNS, keyspace, column_family); CqlResult result = client.execute_cql3_query(ByteBufferUtil.bytes(query), Compression.NONE, ConsistencyLevel.ONE); List<CqlRow> rows = result.rows; List<ColumnDef> columnDefs = new ArrayList<ColumnDef>(); if (rows == null || rows.isEmpty()) { // if CassandraStorage, just return the empty list if (cassandraStorage) return columnDefs; // otherwise for CqlNativeStorage, check metadata for classic thrift tables CFMetaData cfm = getCFMetaData(keyspace, column_family, client); for (ColumnDefinition def : cfm.regularAndStaticColumns()) { ColumnDef cDef = new ColumnDef(); String columnName = def.name.toString(); String type = def.type.toString(); logger.trace("name: {}, type: {} ", columnName, type); cDef.name = ByteBufferUtil.bytes(columnName); cDef.validation_class = type; columnDefs.add(cDef); } // we may not need to include the value column for compact tables as we // could have already processed it as schema_columnfamilies.value_alias if (columnDefs.size() == 0 && includeCompactValueColumn && cfm.compactValueColumn() != null) { ColumnDefinition def = cfm.compactValueColumn(); if ("value".equals(def.name.toString())) { ColumnDef cDef = new ColumnDef(); cDef.name = def.name.bytes; cDef.validation_class = def.type.toString(); columnDefs.add(cDef); } } return columnDefs; } Iterator<CqlRow> iterator = rows.iterator(); while (iterator.hasNext()) { CqlRow row = iterator.next(); ColumnDef cDef = new ColumnDef(); String type = ByteBufferUtil.string(row.getColumns().get(3).value); if (!type.equals("regular")) continue; cDef.setName(ByteBufferUtil.clone(row.getColumns().get(0).value)); cDef.validation_class = ByteBufferUtil.string(row.getColumns().get(1).value); ByteBuffer indexType = row.getColumns().get(2).value; if (indexType != null) cDef.index_type = getIndexType(ByteBufferUtil.string(indexType)); columnDefs.add(cDef); } return columnDefs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ColumnMeta getColumnMeta() {\n return cmeta_;\n }", "public Map<String, ColumnMetaData> getColumns();", "@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }", "public ColumnMetadata getColumn() {\r\n return m_column;\r\n }", "public abstract List<ColumnSpecification> metadata();", "@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}", "public MetaData getMetaData();", "public List<Column> getColumns();", "Column[] getColumns() { return columns; }", "public interface ColumnMetaData {\n\n\t/**\n\t * The uniqueness level of a column data type.\n\t */\n\tenum Uniqueness {\n\t\t/**\n\t\t * No limitations. Multiple instances of a single column meta data type can be attached to a table or even a\n\t\t * single column.\n\t\t */\n\t\tNONE,\n\n\t\t/**\n\t\t * Multiple instances of a single column meta data type can be attached to a table but at most one per column.\n\t\t */\n\t\tCOLUMN,\n\n\t\t/**\n\t\t * At most one instance of the column meta data type can be attached to a table.\n\t\t */\n\t\tTABLE\n\t}\n\n\t/**\n\t * The unique type id of the column meta data.\n\t *\n\t * @return the type id\n\t */\n\tString type();\n\n\t/**\n\t * The uniqueness level of the meta data. Defaults to {@link Uniqueness#NONE} (no restrictions).\n\t *\n\t * @return the uniqueness level\n\t */\n\tdefault Uniqueness uniqueness() {\n\t\treturn Uniqueness.NONE;\n\t}\n\n}", "Metadata getMetaData();", "public MetaData getMetaData() {\r\n \treturn metaData;\r\n }", "Column getCol();", "private static Map<String, ColumnMetaData> buildColumnMetadataMap(ResultSet rs) {\n\t\t/*\n\t\t * LinkedHashmap to preserve key traversal order.\n\t\t * Important as we output rows as arrays of values where the index position in\n\t\t * the row implicitly corresponds to the entry order of the column map.\n\t\t * Reason for this is performance. \n\t\t */\n\t\tMap<String, ColumnMetaData> columnMap = Maps.newLinkedHashMap();\n\t\ttry {\n\t\t\tResultSetMetaData rmd = rs.getMetaData();\n\t\t\tfor (int i=1; i<= rmd.getColumnCount(); i++) {\n\t\t\t\tColumnMetaData cmd = \n\t\t\t\t\tnew ColumnMetaData(rmd.getColumnName(i), rmd.getColumnTypeName(i));\n\t\t\t\tcolumnMap.put(cmd.columnName, cmd);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tThrowables.propagate(e);\n\t\t}\n\t\treturn columnMap;\n\t}", "public Column[] getColumns() {return columns;}", "com.google.protobuf.ByteString getColumnBytes();", "java.lang.String getColumn();", "ColumnInfoTransformer getColumnInfoTransformer();", "@Override\n\t\t\tpublic ColumnMetaData getColumnMetaData() {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\t\"If you want to use val() to create a real\"\n\t\t\t\t\t\t\t\t+ \" column within a tuple, give it a name (i.e. use val(obj, name))!\");\n\t\t\t}", "public List getColumns() {\r\n return columns;\r\n }", "boolean isNeedColumnInfo();", "List<String> getColumns();", "@Override\r\n\tpublic String[] getCol(String[] sql) {\n\t\treturn null;\r\n\t}", "@Override\n public String getName() {\n return columnInfo.getName();\n }", "protected String getTableColumn()\n\t\t{\n\t\t\treturn Column ;\n\t\t}", "@Override // a2.j.d.c.y3, com.google.common.collect.Table\n public /* bridge */ /* synthetic */ Map column(Object obj) {\n return super.column(obj);\n }", "public List<String> getColumns();", "public int getMetadata(int meta) \n\t{\n\t\treturn meta;\n\t}", "public MetaData getMetaData() {\n return metaData;\n }", "public HashMap getMetaData() ;", "public int getMetadata(int meta)\n\t{\n\t\treturn meta;\n\t}", "public DBMetaDataSet getMetaData()\n\t{\n\t\treturn _MetaData;\n\t}", "public Column getColumn(String columnName);", "public Object[] getColumn(int c) {\n// Object[] dta = new Object[data.rows];\n// for (int i = 0; i < data.rows; i++)\n// dta[i] = data.values[c][c];\n return data.values[c];\n }", "public static ImmutableList<ColumnMetadata> getColumnMetaFromJson(String schemaName, String tableName, String metaDir) {\n long startTime = System.currentTimeMillis();\n ImmutableList.Builder<ColumnMetadata> columnsMetadata = ImmutableList.builder();\n try {\n String jsonStr = readTableJson(schemaName, tableName, metaDir);\n JSONObject obj = new JSONObject(jsonStr);\n JSONArray cols = obj.getJSONArray(JSON_TABLEMETA_COLUMNES);\n for (int i = 0; i < cols.length(); i++) {\n JSONObject temp = new JSONObject(cols.getString(i));\n String family = temp.getString(JSON_TABLEMETA_FAMILY);\n String columnName = temp.getString(JSON_TABLEMETA_COLUMNNAME);\n String type = temp.getString(JSON_TABLEMETA_TYPE);\n columnsMetadata.add(new HBaseColumnMetadata(family, columnName, matchType(type)));\n }\n } catch (Exception e) {\n logger.error(e.getMessage(), e);\n } finally {\n logger.info(String.format(\"Read COLUMN meta info of TABLE %s.%s from json, totally used %d ms.\",\n schemaName, tableName, (System.currentTimeMillis() - startTime)));\n }\n return columnsMetadata.build();\n }", "public int getColumn(){\n return this.column;\n }", "ResultSetMetaData getMetaData() throws SQLException;", "public ArrayList getColumns() {\n return columns;\n }", "@Override\n\tpublic int getMeta() {\n\t\t\n\t\treturn meta;\n\t}", "String getColumnName();", "private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }", "@KeepForSdk\n public abstract String getPrimaryDataMarkerColumn();", "public java.lang.String[] getColumns() {\n return columns;\n }", "@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "public String getColumnName();", "@Override\n public com.google.protobuf.ByteString\n getColumnBytes() {\n Object ref = column_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n column_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private List<PgColumn> getColumnsWithStatistics() {\n final List<PgColumn> list = new ArrayList<PgColumn>();\n \n for (PgColumn column : columns) {\n if (column.getStatistics() != null) {\n list.add(column);\n }\n }\n \n return list;\n }", "public DataSetMetaData getMetaData() {\n return this.metadata;\n }", "public String getCertainColumn(ResultSet rs, String columnName) throws SQLException\n {\n String result=\"\";\n while (rs.next())\n {\n\n String temp = rs.getString(columnName);\n result+=\"<p>\"+temp+\"</p>\";\n }\n return result;\n }", "@Override\r\n public String getColumnName(int col) {\r\n return title[col];\r\n }", "protected List<ColumnDef> getColumnMetadata(Cassandra.Client client)\n throws TException, CharacterCodingException, InvalidRequestException, ConfigurationException\n { \n return getColumnMeta(client, true, true);\n }", "public Columns getColumns() {\n return columns;\n }", "public List<Column> getColumns(){\r\n\t\treturn columns;\r\n\t}", "com.google.protobuf.ByteString\n getColumnBytes();", "public ResultSetMetaData getMetaData() throws SQLException\n {\n return m_rs.getMetaData();\n }", "public MetaDataHolder getMetaOfMeta ()\n\t{\n\t\treturn metaData;\n\t}", "String getColumn();", "@Override\n public String getColumn() {\n Object ref = column_;\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 column_ = s;\n return s;\n }\n }", "public interface Column{\n\t\tpublic abstract String asc();\n\t\tpublic abstract String desc();\n\t}", "public StrColumn getDetails() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"details\", StrColumn::new) :\n getBinaryColumn(\"details\"));\n }", "public StrColumn getDetails() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"details\", StrColumn::new) :\n getBinaryColumn(\"details\"));\n }", "public StrColumn getDetails() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"details\", StrColumn::new) :\n getBinaryColumn(\"details\"));\n }", "public int getColumn() {\n // YOUR CODE HERE\n return this.column;\n }", "@Override\n\tpublic Meta_data get_Meta_data() {\n\t\tMeta_data meta_data = new Meta_data_layer(elements);\n\t\treturn meta_data;\n\t}", "public ColumnInfo[] getColumnInfos() {\n return new ColumnInfo[] {\n new NameInfo(),\n new TypeInfo(),\n new CoverInfo(),\n new LocationInfo()\n };\n }", "Map<String, String> getCustomMetadata();", "public int[] getCol() { return _col; }", "@Override\n\t\tpublic int getValueColumn() {\n\t\t\treturn valueColumn;\n\t\t}", "@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}", "@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}", "com.cmpe275.grpcComm.MetaData getMetaData();", "public Column getColumn(int pos) { return columns[pos]; }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String getColumnName() {\n return columnName; \n }", "public int getCol() { return _col; }", "public ColumnMetadata build() {\n ColumnMetadata colMetadata = new ColumnMetadata();\n colMetadata.setName(name);\n colMetadata.setType(type);\n colMetadata.setPhysicalType(physicalType);\n colMetadata.setNullable(nullable);\n colMetadata.setLogicalType(logicalType);\n colMetadata.setByteLength(byteLength);\n colMetadata.setLength(length);\n colMetadata.setScale(scale);\n colMetadata.setPrecision(precision);\n colMetadata.setCollation(collation);\n colMetadata.setOrdinal(ordinal);\n return colMetadata;\n }", "@Override\n public java.util.List<Column> getColumnsList() {\n return columns_;\n }", "int getMeta();", "public String[] getmDataPropCol() {\r\n\t\treturn mDataPropCol;\r\n\t}", "public String getFieldColumn() {\n return fieldColumn;\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "public Map<String, Object> getMetaData() {\n\t\treturn metaData;\n\t}", "public StrColumn getDetails() {\n return delegate.getColumn(\"details\", DelegatingStrColumn::new);\n }", "public StrColumn getDetails() {\n return delegate.getColumn(\"details\", DelegatingStrColumn::new);\n }", "public StrColumn getDetails() {\n return delegate.getColumn(\"details\", DelegatingStrColumn::new);\n }", "public StrColumn getDetails() {\n return delegate.getColumn(\"details\", DelegatingStrColumn::new);\n }", "public int getCol() {\n return this.col; \n }", "public String getColumn() {\n Object ref = column_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n column_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }" ]
[ "0.7982592", "0.71302867", "0.71195614", "0.69217354", "0.68334806", "0.6697036", "0.6619375", "0.6586441", "0.64122736", "0.64107317", "0.6402945", "0.6364951", "0.63527983", "0.6313676", "0.63092065", "0.630082", "0.6270877", "0.62707037", "0.6268282", "0.62662977", "0.6265656", "0.6261786", "0.62561226", "0.6255804", "0.62381923", "0.6227011", "0.619807", "0.61954165", "0.61947685", "0.6191457", "0.61710346", "0.6170503", "0.61630297", "0.61595345", "0.6135016", "0.61347336", "0.6128783", "0.61259425", "0.6113868", "0.6108699", "0.6095226", "0.60896474", "0.6084752", "0.6070627", "0.6063632", "0.60626507", "0.6062175", "0.605716", "0.605503", "0.6040939", "0.60387677", "0.603256", "0.60273623", "0.60268605", "0.6022203", "0.6017585", "0.60120416", "0.60070634", "0.60027593", "0.5995114", "0.5995114", "0.5995114", "0.59906894", "0.5987991", "0.5984249", "0.59824437", "0.5982002", "0.59817374", "0.59751236", "0.5969584", "0.59665936", "0.59589493", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.59520566", "0.5951481", "0.5942682", "0.5934199", "0.5926069", "0.5924934", "0.591717", "0.5899184", "0.5891807", "0.58892506", "0.58881515", "0.58881515", "0.58881515", "0.58881515", "0.5886385", "0.5879512" ]
0.59558475
72
get CFMetaData of a column family
protected CFMetaData getCFMetaData(String ks, String cf, Cassandra.Client client) throws NotFoundException, org.apache.cassandra.thrift.InvalidRequestException, TException, org.apache.cassandra.exceptions.InvalidRequestException, ConfigurationException { KsDef ksDef = client.describe_keyspace(ks); for (CfDef cfDef : ksDef.cf_defs) { if (cfDef.name.equalsIgnoreCase(cf)) return ThriftConversion.fromThrift(cfDef); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<ColumnSpecification> metadata();", "public Map<String, ColumnMetaData> getColumns();", "public MetaData getMetaData();", "protected CfDef getCfDef(Cassandra.Client client)\n throws org.apache.cassandra.thrift.InvalidRequestException,\n UnavailableException,\n TimedOutException,\n SchemaDisagreementException,\n TException,\n NotFoundException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException,\n IOException\n {\n // get CF meta data\n String query = String.format(\"SELECT type, comparator, subcomparator, default_validator, key_validator \" +\n \"FROM %s.%s \" +\n \"WHERE keyspace_name = '%s' AND columnfamily_name = '%s'\",\n SystemKeyspace.NAME,\n LegacySchemaTables.COLUMNFAMILIES,\n keyspace,\n column_family);\n\n CqlResult result = client.execute_cql3_query(ByteBufferUtil.bytes(query), Compression.NONE, ConsistencyLevel.ONE);\n\n if (result == null || result.rows == null || result.rows.isEmpty())\n return null;\n\n Iterator<CqlRow> iteraRow = result.rows.iterator();\n CfDef cfDef = new CfDef();\n cfDef.keyspace = keyspace;\n cfDef.name = column_family;\n if (iteraRow.hasNext())\n {\n CqlRow cqlRow = iteraRow.next();\n\n cfDef.column_type = ByteBufferUtil.string(cqlRow.columns.get(0).value);\n cfDef.comparator_type = ByteBufferUtil.string(cqlRow.columns.get(1).value);\n ByteBuffer subComparator = cqlRow.columns.get(2).value;\n if (subComparator != null)\n cfDef.subcomparator_type = ByteBufferUtil.string(subComparator);\n cfDef.default_validation_class = ByteBufferUtil.string(cqlRow.columns.get(3).value);\n cfDef.key_validation_class = ByteBufferUtil.string(cqlRow.columns.get(4).value);\n }\n cfDef.column_metadata = getColumnMetadata(client);\n return cfDef;\n }", "Metadata getMetaData();", "com.cmpe275.grpcComm.MetaData getMetaData();", "public DBMetaDataSet getMetaData()\n\t{\n\t\treturn _MetaData;\n\t}", "ColumnMeta getColumnMeta() {\n return cmeta_;\n }", "protected List<ColumnDef> getColumnMeta(Cassandra.Client client, boolean cassandraStorage, boolean includeCompactValueColumn)\n throws org.apache.cassandra.thrift.InvalidRequestException,\n UnavailableException,\n TimedOutException,\n SchemaDisagreementException,\n TException,\n CharacterCodingException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException,\n NotFoundException\n {\n String query = String.format(\"SELECT column_name, validator, index_type, type \" +\n \"FROM %s.%s \" +\n \"WHERE keyspace_name = '%s' AND columnfamily_name = '%s'\",\n SystemKeyspace.NAME,\n LegacySchemaTables.COLUMNS,\n keyspace,\n column_family);\n\n CqlResult result = client.execute_cql3_query(ByteBufferUtil.bytes(query), Compression.NONE, ConsistencyLevel.ONE);\n\n List<CqlRow> rows = result.rows;\n List<ColumnDef> columnDefs = new ArrayList<ColumnDef>();\n if (rows == null || rows.isEmpty())\n {\n // if CassandraStorage, just return the empty list\n if (cassandraStorage)\n return columnDefs;\n\n // otherwise for CqlNativeStorage, check metadata for classic thrift tables\n CFMetaData cfm = getCFMetaData(keyspace, column_family, client);\n for (ColumnDefinition def : cfm.regularAndStaticColumns())\n {\n ColumnDef cDef = new ColumnDef();\n String columnName = def.name.toString();\n String type = def.type.toString();\n logger.trace(\"name: {}, type: {} \", columnName, type);\n cDef.name = ByteBufferUtil.bytes(columnName);\n cDef.validation_class = type;\n columnDefs.add(cDef);\n }\n // we may not need to include the value column for compact tables as we\n // could have already processed it as schema_columnfamilies.value_alias\n if (columnDefs.size() == 0 && includeCompactValueColumn && cfm.compactValueColumn() != null)\n {\n ColumnDefinition def = cfm.compactValueColumn();\n if (\"value\".equals(def.name.toString()))\n {\n ColumnDef cDef = new ColumnDef();\n cDef.name = def.name.bytes;\n cDef.validation_class = def.type.toString();\n columnDefs.add(cDef);\n }\n }\n return columnDefs;\n }\n\n Iterator<CqlRow> iterator = rows.iterator();\n while (iterator.hasNext())\n {\n CqlRow row = iterator.next();\n ColumnDef cDef = new ColumnDef();\n String type = ByteBufferUtil.string(row.getColumns().get(3).value);\n if (!type.equals(\"regular\"))\n continue;\n cDef.setName(ByteBufferUtil.clone(row.getColumns().get(0).value));\n cDef.validation_class = ByteBufferUtil.string(row.getColumns().get(1).value);\n ByteBuffer indexType = row.getColumns().get(2).value;\n if (indexType != null)\n cDef.index_type = getIndexType(ByteBufferUtil.string(indexType));\n columnDefs.add(cDef);\n }\n return columnDefs;\n }", "protected abstract Map<String, Map<String, Object>> getData(String columnFamilyName);", "Map<String, TypeInformation<?>> getFamilyInfo(String family) {\n\t\treturn familyMap.get(family);\n\t}", "Get<K, C> addColumn(String family, C column);", "public HashMap getMetaData() ;", "private static ColumnDefinition getClusteringColumnDefinition(CFMetaData cfMetaData, int index)\n {\n return cfMetaData.clusteringColumns().get(index);\n }", "public MetaData getMetaData() {\r\n \treturn metaData;\r\n }", "protected List<ColumnDef> getColumnMetadata(Cassandra.Client client)\n throws TException, CharacterCodingException, InvalidRequestException, ConfigurationException\n { \n return getColumnMeta(client, true, true);\n }", "DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();", "com.cmpe275.grpcComm.MetaDataOrBuilder getMetaDataOrBuilder();", "public ColumnFamilyStats getColumnFamilyStats(\r\n String keyspace, String cf) throws CassandraServerManagementException {\r\n CassandraManagementUtils.validateKeyspace(keyspace);\r\n CassandraManagementUtils.validateCF(cf);\r\n\r\n String domainQualifiedKSName = this.getDomainQualifiedKSName(keyspace);\r\n ColumnFamilyStoreMBean cfsMBean =\r\n CassandraAdminDataHolder.getInstance().getCassandraMBeanLocator().\r\n locateColumnFamilyStoreMBean(domainQualifiedKSName, cf);\r\n if (cfsMBean == null) {\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Cannot locate a ColumnFamilyStoreMBean for column family : \" + cf);\r\n }\r\n return null;\r\n }\r\n return CassandraManagementUtils.createCFStats(cfsMBean);\r\n }", "public DataSetMetaData getMetaData() {\n return this.metadata;\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "public MetadataDescriptor getMetadataDescriptor() {\n\t\treturn metadataDescriptor;\n\t}", "public MetaData getMetaData() {\n return metaData;\n }", "public interface ColumnMetaData {\n\n\t/**\n\t * The uniqueness level of a column data type.\n\t */\n\tenum Uniqueness {\n\t\t/**\n\t\t * No limitations. Multiple instances of a single column meta data type can be attached to a table or even a\n\t\t * single column.\n\t\t */\n\t\tNONE,\n\n\t\t/**\n\t\t * Multiple instances of a single column meta data type can be attached to a table but at most one per column.\n\t\t */\n\t\tCOLUMN,\n\n\t\t/**\n\t\t * At most one instance of the column meta data type can be attached to a table.\n\t\t */\n\t\tTABLE\n\t}\n\n\t/**\n\t * The unique type id of the column meta data.\n\t *\n\t * @return the type id\n\t */\n\tString type();\n\n\t/**\n\t * The uniqueness level of the meta data. Defaults to {@link Uniqueness#NONE} (no restrictions).\n\t *\n\t * @return the uniqueness level\n\t */\n\tdefault Uniqueness uniqueness() {\n\t\treturn Uniqueness.NONE;\n\t}\n\n}", "ResultSetMetaData getMetaData() throws SQLException;", "private static Map<String, ColumnMetaData> buildColumnMetadataMap(ResultSet rs) {\n\t\t/*\n\t\t * LinkedHashmap to preserve key traversal order.\n\t\t * Important as we output rows as arrays of values where the index position in\n\t\t * the row implicitly corresponds to the entry order of the column map.\n\t\t * Reason for this is performance. \n\t\t */\n\t\tMap<String, ColumnMetaData> columnMap = Maps.newLinkedHashMap();\n\t\ttry {\n\t\t\tResultSetMetaData rmd = rs.getMetaData();\n\t\t\tfor (int i=1; i<= rmd.getColumnCount(); i++) {\n\t\t\t\tColumnMetaData cmd = \n\t\t\t\t\tnew ColumnMetaData(rmd.getColumnName(i), rmd.getColumnTypeName(i));\n\t\t\t\tcolumnMap.put(cmd.columnName, cmd);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tThrowables.propagate(e);\n\t\t}\n\t\treturn columnMap;\n\t}", "com.google.cloud.compute.v1.Metadata getMetadata();", "public String metadataClass() {\n return this.metadataClass;\n }", "public ColumnMetadata build() {\n ColumnMetadata colMetadata = new ColumnMetadata();\n colMetadata.setName(name);\n colMetadata.setType(type);\n colMetadata.setPhysicalType(physicalType);\n colMetadata.setNullable(nullable);\n colMetadata.setLogicalType(logicalType);\n colMetadata.setByteLength(byteLength);\n colMetadata.setLength(length);\n colMetadata.setScale(scale);\n colMetadata.setPrecision(precision);\n colMetadata.setCollation(collation);\n colMetadata.setOrdinal(ordinal);\n return colMetadata;\n }", "java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> \n getColumnsList();", "public ResultSetMetaData getMetaData() throws SQLException\n {\n return m_rs.getMetaData();\n }", "public PDMetadata getMetadata() {\n/* 528 */ PDMetadata retval = null;\n/* 529 */ COSBase mdStream = this.stream.getDictionaryObject(COSName.METADATA);\n/* 530 */ if (mdStream != null)\n/* */ {\n/* 532 */ if (mdStream instanceof COSStream) {\n/* */ \n/* 534 */ retval = new PDMetadata((COSStream)mdStream);\n/* */ }\n/* 536 */ else if (!(mdStream instanceof org.apache.pdfbox.cos.COSNull)) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 542 */ throw new IllegalStateException(\"Expected a COSStream but was a \" + mdStream\n/* */ \n/* 544 */ .getClass().getSimpleName());\n/* */ } \n/* */ }\n/* 547 */ return retval;\n/* */ }", "@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "AbstractClassMetaData getMetaDataForClass(Class cls, PackageMetaData pmd, ClassLoaderResolver clr);", "@Override\r\n \tpublic MetaData getMetaData(HttpHeaders headers) {\n \t\ttry {\r\n \t\t\treturn MetaDataUtil.getMetaData(new TraitSalaire(), new HashMap<String, MetaData>()\r\n \t\t\t\t\t, new ArrayList<String>());\r\n \t\t} catch (InstantiationException e) {\r\n \t\t\t// TODO Auto-generated catch block\r\n \t\t\te.printStackTrace();\r\n \t\t} catch (IllegalAccessException e) {\r\n \t\t\t// TODO Auto-generated catch block\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "public List<Column> getColumns();", "public ColumnInfo[] getColumnInfos() {\n return new ColumnInfo[] {\n new NameInfo(),\n new TypeInfo(),\n new CoverInfo(),\n new LocationInfo()\n };\n }", "public EdmDataServices getMetadata() {\n try {\n final EdmDataServices metadata = super.getMetadata();\n \n // here we decorate the metadata so we can properly get things routed to registered service-operation handlers\n EdmDataServices result = new EdmDataServicesDecorator() {\n protected EdmDataServices getDelegate() { return metadata; } // most is passed thru to the super-class metadata\n public EdmFunctionImport findEdmFunctionImport(String functionImportName) {\n Map.Entry<EdmFunctionImport,ServiceOperationHandler> descriptor = _functionDescriptors.get(functionImportName);\n return descriptor != null ? descriptor.getKey() : null;\n }\n };\n return result;\n } catch (Throwable ex) {\n _log.error(\"failed to getMetadata()\", ex);\n throw new RuntimeException(ex.toString(), ex);\n }\n }", "@Override\n public DatabaseMetaData getMetaData() throws SQLException\n {\n logger.debug(\n \" public DatabaseMetaData getMetaData() throws SQLException\");\n\n return new SnowflakeDatabaseMetaData(this);\n }", "Column createColumn(AbstractMemberMetaData fmd, Table table, JavaTypeMapping mapping, ColumnMetaData colmd, Column referenceCol, ClassLoaderResolver clr);", "public abstract Object getMetadata(String key);", "public Map<String, String> getColumnsMap() {\n\t\treturn columnsVsDataTypeMap;\n\t}", "com.google.protobuf.Struct getMetadataFields();", "public Map<String, Object> getMetaData() {\n\t\treturn metaData;\n\t}", "Map<String, Object> getAllMetadata();", "public GenericMetadata getMetadata()\n {\n // return definition metadata\n GenericMetadata metadata = definition.getMetadata();\n if ((metadata != null) && (metadata.getFields() != null) && !metadata.getFields().isEmpty())\n {\n return metadata;\n }\n\n // return node metadata\n return super.getMetadata();\n }", "@Override\n\tpublic JDBCMetaData getMetaData() throws SQLException {\n\t\treturn null;\n\t}", "java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList();", "Object getMetadata(String key);", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "public FamilyInfo[] getFamilyInfo() {\n return familyInfo;\n }", "@GET\n @Path( \"/databaseMetadata\" )\n @Produces( { APPLICATION_XML, APPLICATION_JSON } )\n public IDatabaseConnection getDatabaseMetadata() {\n return stagingDatabase.getDatbaseMetadata();\n }", "RecordDataSchema getCollectionCustomMetadataSchema();", "public AbstractMetadata getMetadata() {\n\t\treturn metadata;\n\t}", "@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }", "public EntityMetadata[] getMetadata()\r\n/* 30: */ {\r\n/* 31:30 */ return this.metadata;\r\n/* 32: */ }", "public Map getMetadata() {\n return metadata;\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index);", "private static Cursor getFamilyInfo(Context context, String id)\n\t{\n\t\tString whereName = ContactsContract.Data.MIMETYPE + \" = ? AND \" + ContactsContract.CommonDataKinds.StructuredName.LOOKUP_KEY + \" = ?\";\n\t\tString[] whereNameParams = new String[] { ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE, id };\n\t return context.getContentResolver().query(\n\t \t\tContactsContract.Data.CONTENT_URI,\n\t \t\tnew String[] {\tContactsContract.CommonDataKinds.StructuredName.LOOKUP_KEY,\n\t \t\t\t\t\t\tContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME,\n\t \t\t\t\t\t\tContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME\n\t \t\t\t\t\t\t},\n\t\t\t whereName, \n\t \t\twhereNameParams, \n\t \t\tnull);\n\t \n\t}", "public CollectionMetadata metadata() {\n return metadata;\n }", "@java.lang.Override\n public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) {\n return columns_.get(index);\n }", "public io.grafeas.v1.Metadata getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? io.grafeas.v1.Metadata.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "Map<String, String> getCustomMetadata();", "private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "org.apache.calcite.avatica.proto.Responses.RpcMetadata getMetadata();", "public PropertyMetaData[] getPropertyMetaData() \n {\n return METADATA;\n }", "private ConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> getFamilyData(\n\t\t\t\tString family) {\n\t\t\tConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> ret = this.elements\n\t\t\t\t\t.get(family);\n\t\t\tif (ret == null) {\n\t\t\t\tret = new ConcurrentHashMap<String, ConcurrentNavigableMap<Long, Object>>();\n\t\t\t\tConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> put = this.elements\n\t\t\t\t\t\t.putIfAbsent(family, ret);\n\t\t\t\tif (put != null)\n\t\t\t\t\tret = put;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}", "public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getFamily2() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }", "public ManagedConnectionMetaData getMetaData() throws ResourceException {\n checkIfDestroyed();\n return new ManagedConnectionMetaDataImpl(this);\n }", "String getFamily();", "String getFamily();", "public ResultSetMetaData getMetaData() throws SQLException {\n return currentPreparedStatement.getMetaData();\n }", "public Object getMetadata() {\n return this.metadata;\n }", "public ResultSetMetaData getMetaData() throws SQLException {\n\n try {\n int id = getNextId(TraceObject.RESULT_SET_META_DATA);\n if (isDebugEnabled()) {\n debugCodeAssign(\"ResultSetMetaData\", TraceObject.RESULT_SET_META_DATA, id, \"getMetaData()\");\n }\n checkClosed();\n String catalog = conn.getCatalog();\n JdbcResultSetMetaData meta = new JdbcResultSetMetaData(this, null, result, catalog, conn.getSession().getTrace(), id);\n return meta;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public com.google.protobuf.Struct getMetadata() {\n if (metadataBuilder_ == null) {\n return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_;\n } else {\n return metadataBuilder_.getMessage();\n }\n }", "@JsonIgnore\n public Map<String, ColumnSchema> getColumnsById() {\n return columnsById;\n }", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, boolean reversed, String... columns);", "java.lang.String getMetadata(int index);", "java.lang.String getMetadata(int index);", "public String family() {\n return this.family;\n }", "@Override\n\tpublic DBMetadata getMetadata() {\n\t\treturn null;\n\t}", "ColumnInfoTransformer getColumnInfoTransformer();", "public List<String> getColumns();", "@Override\n\tpublic Map<String, String[]> loadColumnMetas(String databaseName) throws SQLException {\n\t\tString sql=\"select utc.*,UCC.comments from user_tab_columns utc\\n\" + \n\t\t\t\t\"left join user_col_comments ucc on UCC.table_name=UTC.table_name and UCC.column_name=UTC.column_name\";\n\t\tMap<String, String[]> ret=new HashMap<>();\n\t\t try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n\t \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\t\twhile(resultSet.next()) {\n\t\t\t\tString tableName=resultSet.getString(\"TABLE_NAME\")\n\t\t\t\t\t\t,columnName=resultSet.getString(\"COLUMN_NAME\")\n\t\t\t\t\t\t,dataLength=resultSet.getString(\"DATA_LENGTH\")\n\t\t ,nullable=resultSet.getString(\"NULLABLE\")\n\t\t ,comments=resultSet.getString(\"COMMENTS\")\n\t\t\t\t\t\t;\n\t\t\t\tString key=tableName+\":\"+columnName;\n\t\t\t\tret.put(key, new String[] {dataLength,nullable,comments});\n\t\t\t\t\n\t\t\t}\n\t }\n\t\t\n\t\treturn ret;\n\t}", "public Set<String> getColumns();", "public List<MetaData> getMetaData(boolean unfold) {\n\t\tList<MetaData> results = new LinkedList<MetaData>();\n\t\tfor (InputPort port : getManagedPorts()) {\n\t\t\tMetaData data = port.getMetaData();\n\t\t\tif (data != null) {\n\t\t\t\tif (unfold && data instanceof CollectionMetaData) {\n\t\t\t\t\tresults.add(((CollectionMetaData) data).getElementMetaDataRecursive());\n\t\t\t\t} else {\n\t\t\t\t\tresults.add(data);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t}" ]
[ "0.6844179", "0.6460133", "0.63943964", "0.6271038", "0.62396294", "0.62317336", "0.60984206", "0.6094993", "0.6071326", "0.60278535", "0.6011575", "0.58727324", "0.58676606", "0.58247036", "0.58029646", "0.578882", "0.5786323", "0.5772686", "0.57606924", "0.57364064", "0.5627813", "0.5625211", "0.5616095", "0.55973935", "0.5594647", "0.5591293", "0.5575716", "0.55625474", "0.5551944", "0.552218", "0.5514477", "0.5514331", "0.5504401", "0.54977775", "0.5479624", "0.5433372", "0.54317546", "0.5418004", "0.54175997", "0.5411629", "0.5411179", "0.53881943", "0.5381634", "0.53733385", "0.53545433", "0.5326978", "0.53255945", "0.53171", "0.53077126", "0.5305549", "0.5305549", "0.5299044", "0.52916574", "0.52880657", "0.5287602", "0.5283769", "0.52759373", "0.525768", "0.5248449", "0.52388984", "0.52238417", "0.5221133", "0.5220889", "0.5218323", "0.52142346", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5211064", "0.5204733", "0.51974046", "0.519699", "0.5196881", "0.51891565", "0.51891565", "0.51787746", "0.515977", "0.5147733", "0.5145263", "0.51444995", "0.51424766", "0.5139915", "0.5139915", "0.51375186", "0.5135992", "0.512821", "0.51181453", "0.51094484", "0.5106634", "0.510467" ]
0.6758139
1
get index type from string
protected IndexType getIndexType(String type) { type = type.toLowerCase(); if ("keys".equals(type)) return IndexType.KEYS; else if("custom".equals(type)) return IndexType.CUSTOM; else if("composites".equals(type)) return IndexType.COMPOSITES; else return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IndexType type();", "public int typeIndex();", "private String mapIndexType(int type) {\n\t\tString indexType = null;\n\t\tswitch (type) {\n\t\tcase 0:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_HEAP;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_CLUSTERED;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_NONCLUSTERED;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_XML;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_SPATIAL;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn indexType;\n\t}", "static String composeIndexName() {\n\t\treturn TYPE.toLowerCase();\n\t}", "public String getIndexType()\n {\n if (this.indexType == null) {\n try {\n this.getMySQLTableStatus();\n } catch (DBException dbe) {\n // continue below\n }\n // \"this.indexType\" should be set (but possibly \"?\" if error)\n if (this.indexType == null) {\n // still null? set to \"?\"\n this._setIndexType(\"?\");\n }\n }\n return this.indexType;\n }", "public Object visitIndexNode(GoIRIndexNode node){\n\t\tString type = (String) node.getIndex().accept(this);\n\t\tif(!(type.equalsIgnoreCase(\"int\"))) {\n\t\t\tthrow new GoException(\"non-integer slice index \\\"\"+type +\"\\\"\" );\n\t\t}\n\t\treturn type;\n\t}", "int parseIndexField(String text) {\n\t\tif (text.equals(\"*\")) return -1;\n\t\tif (text.equals(\"ANY\")) return -1;\n\t\tif (text.equals(\"?\")) return -2;\n\t\tif (text.equals(\"ALL\")) return -2;\n\t\treturn Gpr.parseIntSafe(text);\n\t}", "public int chordTypeIndexForString(String chordType)\n {\n int chordTypeIndex = 0;\n \n if (chordType.equalsIgnoreCase(\"major\"))\n {\n chordTypeIndex = 0;\n }\n else if (chordType.equalsIgnoreCase(\"minor\"))\n {\n chordTypeIndex = 1;\n }\n else if (chordType.equalsIgnoreCase(\"seven\"))\n {\n chordTypeIndex = 2;\n }\n else if (chordType.equalsIgnoreCase(\"7 major\"))\n {\n chordTypeIndex = 3;\n }\n else if (chordType.equalsIgnoreCase(\"7 minor\"))\n {\n chordTypeIndex = 4;\n }\n else if (chordType.equalsIgnoreCase(\"diminished\"))\n {\n chordTypeIndex = 5;\n }\n else if (chordType.equalsIgnoreCase(\"augmented\"))\n {\n chordTypeIndex = 6;\n }\n else if (chordType.equalsIgnoreCase(\"half-diminished\"))\n {\n chordTypeIndex = 7;\n }\n else if (chordType.equalsIgnoreCase(\"minor-major\"))\n {\n chordTypeIndex = 8;\n }\n else\n {\n System.out.println(\"REACTOR FAILURE IN THE PRIMARY ENGINE ROOM! : \" + chordType);\n }\n \n return chordTypeIndex;\n }", "public int getType(int index) {\n\treturn(type[index]);\n }", "private String getTypeName(int idx){\r\n String[] types = {\"C-SVC\",\"nu-SVC\",\"one-class SVM\",\"epsilon-SVR\",\"nu-SVR\"};\r\n return types[idx];\r\n }", "@IndexingType\n public int getIndexingType() {\n return mBundle.getInt(INDEXING_TYPE_FIELD);\n }", "@JsonCreator\n public static RecommendedIndexTypes fromString(String value) {\n RecommendedIndexTypes[] items = RecommendedIndexTypes.values();\n for (RecommendedIndexTypes item : items) {\n if (item.toString().equalsIgnoreCase(value)) {\n return item;\n }\n }\n return null;\n }", "public final static int getRecordType(int dbIdx, String typeStr) {\n\t\tint type = Constants.NULL_INTEGER;\n\n\t \tfor (int i = 0; i < keys.length && keys[i] != Constants.NULL_INTEGER; i++) {\n \t\tif (names[i].equalsIgnoreCase(typeStr)) {\n \t\t\treturn keys[i];\n \t\t}\n \t}\n\n\t\ttry {\n\t\t\ttype = Integer.parseInt(typeStr);\n\t\t} catch (Exception e) {\t}\n\n\t\treturn type;\n\t}", "Index getIndex(String symbol);", "public StringIndexType getStringIndexType() {\n return this.stringIndexType;\n }", "String indexFormat();", "@IndexingType\n public int getIndexingType() {\n return mBundle.getInt(INDEXING_TYPE_FIELD, INDEXING_TYPE_NONE);\n }", "public ObjectType getType(int index) {\n\t\t// checks range\n\t\tcheckRange(index);\n\t\t// gets type of label\n\t\treturn Array.isArray(array.get(index)) ? ObjectType.ARRAY : ObjectType.STRING;\n\t}", "private TYPE getType(final String type) {\n String temp = type.replaceAll(\"-\", \"_\");\n TYPE answer = Arrays.stream(\n TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(TYPE.unknown);\n return answer;\n }", "public static IndexType getType(final byte id) {\n final IndexType indexType = INSTANCEFORID.get(id);\n if (indexType == null) {\n throw new IllegalStateException();\n }\n return indexType;\n }", "public int getType(int index) {\n return typeOffsetList.get(index).type;\n }", "String clientTypeName(final int index);", "private native int getIndexType(long cObject);", "public void setTypeIndex(int index);", "private static int typeToIndex(String orbit) {\n int value = 0;\n switch (orbit){\n case \"Trefoil\": value = ORBIT_6_KNOT; break;\n case \"Trefoil2\": value = ORBIT_4_KNOT; break;\n case \"Simple3\": value = ORBIT_4_SIMPLE; break;\n case \"Simple4\": value = ORBIT_3_SIMPLE; break;\n case \"Simple5\": value = ORBIT_5_SIMPLE; break;\n case \"Chasing\": value = ORBIT_8; break;\n }\n return value;\n }", "@Override\n public int getTypeIndexID() {\n return typeIndexID;\n }", "private static Type matchType(String type) {\n if (type == null) {\n return VarcharType.VARCHAR;\n }\n\n switch (type.toLowerCase()) {\n case \"string\":\n return VarcharType.VARCHAR;\n case \"int\":\n return IntegerType.INTEGER;\n case \"bigint\":\n return BigintType.BIGINT;\n case \"double\":\n return DoubleType.DOUBLE;\n case \"boolean\":\n return BooleanType.BOOLEAN;\n case \"array<string>\":\n return new ArrayType(VarcharType.VARCHAR);\n case \"timestamp\":\n return TimestampType.TIMESTAMP;\n case \"datetime\":\n return TimestampType.TIMESTAMP;\n case \"number\":\n return DecimalType.createDecimalType(DECIMAL_DEFAULT_PRECISION, DECIMAL_DEFAULT_SCALE);\n default:\n return VarcharType.VARCHAR;\n }\n }", "private String findTypeName(byte selectionIndex) {\n\t\tif (selectionIndex == 0) {\n\t\t\tTYPE = WEIGHT_BASED;\n\t\t} else if (selectionIndex == 1) {\n\t\t\tTYPE = ARTICLE_BASED;\n\t\t} else {\n\t\t\tTYPE = MIXED_ARTICLE;\n\t\t}\n\t\treturn TYPE;\n\t}", "private String findTypeName(byte selectionIndex) {\n\t\tif (selectionIndex == 0) {\n\t\t\tTYPE = WEIGHT_BASED;\n\t\t} else if (selectionIndex == 1) {\n\t\t\tTYPE = ARTICLE_BASED;\n\t\t} else {\n\t\t\tTYPE = MIXED_ARTICLE;\n\t\t}\n\t\treturn TYPE;\n\t}", "static int type_of_ori(String passed){\n\t\treturn 1;\n\t}", "static int type_of_inx(String passed){\n\t\treturn 1;\n\t}", "protected AbstractType parseType(String type) throws IOException\n {\n try\n {\n // always treat counters like longs, specifically CCT.compose is not what we need\n if (type != null && type.equals(\"org.apache.cassandra.db.marshal.CounterColumnType\"))\n return LongType.instance;\n return TypeParser.parse(type);\n }\n catch (ConfigurationException e)\n {\n throw new IOException(e);\n }\n catch (SyntaxException e)\n {\n throw new IOException(e);\n }\n }", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "public static String getType() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(App.getAppContext());\n String defaultValue = Strings.getStringByRId(R.string.c_elastic_search_type_name_default_value);\n String value = Strings.getStringByRId(R.string.c_select_elastic_search_type_name);\n String type = sp.getString(value, defaultValue);\n return type;\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "private static String getIndex() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(App.getAppContext());\n String defaultValue = Strings.getStringByRId(R.string.c_elastic_search_index_name_default_value);\n String value = Strings.getStringByRId(R.string.c_select_elastic_search_index_name);\n String index = sp.getString(value, defaultValue);\n return index;\n }", "public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}", "public String getType() {\n return types.get(index);\n }", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public String getType(int fieldIndex)\t// fieldIndex same as column number in file\n\t{\n\t\treturn recordMap.get(fieldIndex).type;\n\t}", "public static int determineSearchType(String searchStr) {\n if (searchStr.matches(\".*\\\\d+.*\")) {\n return SEARCH_TYPE_ZIPCODE;\n } else {\n // else treat it as a city name\n return SEARCH_TYPE_CITY;\n }\n }", "public Type get(int index);", "static DruidType getTypeFromMetric(String type) {\n assert type != null;\n if (type.equals(\"hyperUnique\")) {\n return HYPER_UNIQUE;\n } else if (type.equals(\"thetaSketch\")) {\n return THETA_SKETCH;\n } else if (type.startsWith(\"long\") || type.equals(\"count\")) {\n return LONG;\n } else if (type.startsWith(\"double\")) {\n return DOUBLE;\n } else if (type.startsWith(\"float\")) {\n return FLOAT;\n }\n throw new AssertionError(\"Unknown type: \" + type);\n }", "public int indexOf(Type t);", "public static Type Type(String str) {\n\t\ttry {\n\t\t\tJavaIdentifierInputStream jin = new JavaIdentifierInputStream(str);\n\t\t\tBinaryInputStream bin = new BinaryInputStream(jin);\n\t\t\tBinaryAutomataReader reader = new BinaryAutomataReader(bin,\n\t\t\t\t\tTypes.SCHEMA);\n\t\t\tAutomaton automaton = reader.read();\n\t\t\treader.close();\n\n\t\t\treturn Type.construct(automaton);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"runtime failure constructing type\", e);\n\t\t}\n\t}" ]
[ "0.7174289", "0.7015684", "0.6980689", "0.6769561", "0.6566994", "0.65475184", "0.6360165", "0.6219432", "0.612191", "0.6052042", "0.60410756", "0.60336137", "0.5992216", "0.598999", "0.59889275", "0.597542", "0.5928572", "0.59188795", "0.5907387", "0.58667266", "0.5853588", "0.58237624", "0.5811319", "0.5799658", "0.5791102", "0.57817125", "0.57544434", "0.5750438", "0.5750438", "0.57234675", "0.5722255", "0.56838685", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5675126", "0.5660327", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.56136864", "0.5584668", "0.55636144", "0.55604064", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.5552755", "0.555172", "0.5536016", "0.55016416", "0.55014384", "0.5479749", "0.5462015" ]
0.76248264
0
convert key to a tuple
private Tuple keyToTuple(ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException { Tuple tuple = TupleFactory.getInstance().newTuple(1); addKeyToTuple(tuple, key, cfDef, comparator); return tuple; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tuple get(Key k) throws RelationException;", "private void addKeyToTuple(Tuple tuple, ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException\n {\n if( comparator instanceof AbstractCompositeType )\n {\n StorageHelper.setTupleValue(tuple, 0, composeComposite((AbstractCompositeType) comparator, key));\n }\n else\n {\n StorageHelper.setTupleValue(tuple, 0, StorageHelper.cassandraToObj(getDefaultMarshallers(cfDef).get(MarshallerType.KEY_VALIDATOR), key, nativeProtocolVersion));\n }\n\n }", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "static <K extends Comparable<? super K>, V> KeyValue<K, V> make(K key, V value) {\n return new Tuple<>(key, value);\n }", "private Object[] computeKeyValuePairOfTuple(AttrName asName, Entry<List<Object>, ? extends Aggregator<?>> item, AttrList byNameAttrs){\n List<Object> list = new ArrayList<Object>();\n List<AttrName> attrs = byNameAttrs.toList();\n for(int i = 0; i < attrs.size(); i++){\n list.add(attrs.get(i).getName());\n list.add((item.getKey().get(i)));\n }\n Aggregator<?> value = item.getValue();\n list.add(asName);\n list.add(value.finish());\n return list.stream().toArray();\n }", "BListKey getKey();", "public abstract ArrayList<Key> toArrayList();", "private DataPair getDataPair(String key){\n if (key.isEmpty())\n throw new IllegalArgumentException(\"wrong friends argument\");\n\n String[] friends = key.split(\"&\");\n switch (friends.length){\n case 2:\n DataPair dp = new DataPair(friends[0].trim(), friends[1].trim());\n return dp;\n case 1:\n return new DataPair(key,\"\");\n default:\n throw new IllegalArgumentException(\"wrong friends argument\");\n }\n\n }", "public abstract T getTuple(Record record);", "@VTID(13)\r\n java.lang.String getTuple();", "UnderlayTopologyKey getKey();", "private static <U extends Comparable<? super U>> NodePair<U> split(Node<U> root, U key) {\n if (root == null)\n return new NodePair<U>(null, null);\n if (root.value.compareTo(key) < 0) {\n NodePair<U> spl = split(root.right, key);\n root.right = spl.first;\n root.recalc();\n \n return new NodePair<U>(root, spl.second);\n } else {\n NodePair<U> spl = split(root.left, key);\n root.left = spl.second;\n root.recalc();\n \n return new NodePair<U>(spl.first, root);\n }\n }", "public static Tuple<String, String> generateKey() {\r\n\t\t// Get the KeyGenerator\r\n\t\ttry {\r\n\t\t\tKeyGenerator kgen;\r\n\t\t\tkgen = KeyGenerator.getInstance(\"AES\");\r\n\t\t\tkgen.init(256);\r\n\t\t\t// Generate the secret key specs.\r\n\t\t\tSecretKey skey = kgen.generateKey();\r\n\t\t\tbyte[] raw = skey.getEncoded();\r\n\t\t\tString key = new Base64().encodeAsString(raw);\r\n\r\n\t\t\tSecureRandom randomSecureRandom = SecureRandom\r\n\t\t\t\t\t.getInstance(\"SHA1PRNG\");\r\n\t\t\tCipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n\t\t\tbyte[] iv = new byte[cipher.getBlockSize()];\r\n\t\t\trandomSecureRandom.nextBytes(iv);\r\n\t\t\tString ivStr = new Base64().encodeAsString(iv);\r\n\t\t\treturn new Tuple(key, ivStr);\r\n\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\tLogger.error(\"Error while generating key: %s\",\r\n\t\t\t\t\t\"NoSuchAlgorithmException\");\r\n\t\t} catch (NoSuchPaddingException e) {\r\n\t\t\tLogger.error(\"Error while generating key: %s\",\r\n\t\t\t\t\t\"NoSuchPaddingException\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\r\n\t\tpublic K getKey() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "Object getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "@Override\n public String getKeyFromTuple(ITuple tuple) {\n return tuple.getStringByField(\"top-N\");\n\t\t// End\n }", "@Override\r\n\t\tpublic Pair<S, T> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "public ArrayList<KeyVal> readLocalKeyVal(String key){\n\t\tArrayList<KeyVal> keyValList = new ArrayList<KeyVal>();\n\t\tString querySelection = DBHelper.KEY_FIELD+\"=?\";\n\t\tString selection = key;\n\t\tString []querySelectionArgs = new String[]{selection};\n\t\tif(selection.equals(\"@\")){\t// Fetch all the records\n\t\t\tquerySelection = null;\n\t\t\tquerySelectionArgs = null;\n\t\t}\n\t\tCursor cursor = dbHelper.query(null, querySelection, querySelectionArgs, null);\n\t\tif (cursor.moveToFirst()){\n\t\t\tdo{\n\t\t\t\tKeyVal newKeyVal = new KeyVal();\n\t\t\t\tnewKeyVal.setKey(cursor.getString(0));\n\t\t\t\tnewKeyVal.setVal(cursor.getString(1));\n\t\t\t\tnewKeyVal.setVersion(cursor.getString(2));\n\t\t\t\tkeyValList.add(newKeyVal);\n\t\t\t}while(cursor.moveToNext());\n\t\t}\n\t\tcursor.close();\n\t\treturn keyValList;\n\t}", "@Nullable\r\n List<KeyPair> getKeyPair();", "Astro tuple(AstroArg args);", "@Override\r\n\t\tpublic hust.idc.util.pair.UnorderedPair<E> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "@MethodSource\n\tstatic List<Arguments> keyPairs() {\n\t\t// m/44'/0'/0'/0/0 ~ 5:\n\t\treturn List.of(\n\t\t\t\t// L4c1iSf8e3gW3rEAbKktLhbCFuCWnFfVfsgQW26c6QoaHQGwthCG\n\t\t\t\tArguments.of(\"dc55bc0cbde942349d563b3f845f6fcec7362173442b27b70ae7b20d13325a82\",\n\t\t\t\t\t\t\"L4c1iSf8e3gW3rEAbKktLhbCFuCWnFfVfsgQW26c6QoaHQGwthCG\",\n\t\t\t\t\t\t\"02859a42554b255917b971c6d0e322651db76d8e33b7e6686b345f22e57048c750\",\n\t\t\t\t\t\t\"1KNdhXP6ZVPzEDBXtEfcJM8YcYiR4Ni8Qo\"),\n\t\t\t\t// KwUefgTV5FEmMkHtXteAPzNgmj26ayTTyZ5MuNMCC2mzUW14A7tD\n\t\t\t\tArguments.of(\"07af74bc9c0b73d84c24b2de0f82babcb8c208d142539c0776e5e29d9472cfe8\",\n\t\t\t\t\t\t\"KwUefgTV5FEmMkHtXteAPzNgmj26ayTTyZ5MuNMCC2mzUW14A7tD\",\n\t\t\t\t\t\t\"02bb6ae99eed56005ed7a49dfd0ba540f4592f050d8cb2bb9f6aa1c10d643d5362\",\n\t\t\t\t\t\t\"1CczufdcQFberpwi6umLA4aUShuWRV7BB8\"),\n\t\t\t\t// Ky2PYhNC7qs4SEBTQP6dAVozEQfu153CCn2Bd4BDAAoh1drYxSDQ\n\t\t\t\tArguments.of(\"35d9c595f126e0d3876609f46b274a24400cbbd82a61078178a4926d997d3b1a\",\n\t\t\t\t\t\t\"Ky2PYhNC7qs4SEBTQP6dAVozEQfu153CCn2Bd4BDAAoh1drYxSDQ\",\n\t\t\t\t\t\t\"03b91d0a4de9b893eb6f3693088540807a73467b82b1d370ba7e90b4d8dc675767\",\n\t\t\t\t\t\t\"12udDTnX1EhUa9YuQG3Qhto4VFaj4xD9Xy\"),\n\t\t\t\t// KxtiC1y1Nr1sRcFvyYJA1A3Vx3yzVyLfwf6kZwuNBrqNnY2b1a3W\n\t\t\t\tArguments.of(\"31e6890a53ff64e82ceffac238aa435e488ce552644693def445b80051da634f\",\n\t\t\t\t\t\t\"KxtiC1y1Nr1sRcFvyYJA1A3Vx3yzVyLfwf6kZwuNBrqNnY2b1a3W\",\n\t\t\t\t\t\t\"0254a58625017dd7339b17cd7d2a8468d28cfa0dcf5e3eee9198d776cd0faf0ad7\",\n\t\t\t\t\t\t\"14dMxhd2566hmtB4Q5hcPSiyiKpnCgR4RG\"),\n\t\t\t\t// Kwn2ofhF63ahDEU8LxsWAxP1BTrL9DLRgKY9vgeyMdJCEktwke34\n\t\t\t\tArguments.of(\"10a08e554cff37443a29e659feeb921d966baf4e4c079152f13820e31081e534\",\n\t\t\t\t\t\t\"Kwn2ofhF63ahDEU8LxsWAxP1BTrL9DLRgKY9vgeyMdJCEktwke34\",\n\t\t\t\t\t\t\"03ff345b530f24877f4db5405202497af5a263fe7ba0646444ef56f930eebd07a3\",\n\t\t\t\t\t\t\"1F1A5DFkrPiCZFSZLF6ocTAiarv5gFr4JW\"),\n\t\t\t\t// L26HpKaVXifDTEn11L4pQ7WJ2ZPY7jagyWsdQBrKZZW9cx1jXLTs\n\t\t\t\tArguments.of(\"915eaa2b553d7e4c8dd9823be0d0897cbb819ce5dd9bfc9eaa3142c527ec69a6\",\n\t\t\t\t\t\t\"L26HpKaVXifDTEn11L4pQ7WJ2ZPY7jagyWsdQBrKZZW9cx1jXLTs\",\n\t\t\t\t\t\t\"039ab753a8481d965af517e2c01db595b539398052404bc077ff798b8ddce49c94\",\n\t\t\t\t\t\t\"1CWHy4hSWz4YDjqYKpDMTopRkxuWMy84mp\"));\n\t}", "public Tuple(K newKey, V newValue) {\r\n\t\tkey = newKey;\r\n\t\tvalue = newValue;\r\n\t}", "java.lang.String getSymbolTuple();", "public String getKV(String key) throws Exception;", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "NestedListKey getKey();", "public abstract T getTuple(int aPosition);", "abstract public String getKey();", "private String getString(String key) {\n return key;\r\n }", "public static <T> ArrayList<NameRefPair<T>> queryKeyNamePairs( String table, String keyColumn, String nameColumn, Class<? extends T[]> keyType )\n \t{\n \t\tEnhancedResultSet ers = query(\n \t\t\t\"select \" + keyColumn + \", \" + nameColumn + \" \" +\n \t\t \"from \" + table + \";\"\n \t\t);\n \t\t\n \t\tT[] keys = ers.getColumnAs( keyColumn, keyType );\n \t\tString[] names = ers.getColumnAs( nameColumn, String[].class );\n \t\t\n \t\treturn new NameRefPairList<T>( keys, names );\n \t}", "public T retrieveByKey(S key) throws SQLException;", "private ImmutablePair<byte[], byte[]> getFuzzyKeyFor(MDSKey key) {\n byte[] keyBytes = key.getKey();\n // byte array is automatically initialized to 0, which implies fixed match in fuzzy info\n // the row key after targetId doesn't need to be a match.\n // Workaround for HBASE-15676, need to have at least one 1 in the fuzzy filter\n byte[] infoBytes = new byte[keyBytes.length + 1];\n infoBytes[infoBytes.length - 1] = 1;\n\n // the key array size and mask array size has to be equal so increase the size by 1\n return new ImmutablePair<>(Bytes.concat(keyBytes, new byte[1]), infoBytes);\n }", "static String[] getKey() {\n return key;\n }", "private String splitAndGetField(String line, String key) {\r\n\t\tString[] tmps = line.substring(line.indexOf(key) + key.length()).split(\r\n\t\t\t\t\" \");\r\n\t\treturn (tmps[0]);\r\n\t}", "@Override\n public Map<String, List<PairModel>> getPairValues(String[] keyArr) {\n return null;\n }", "int getInfoOrThrow(\n int key);", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "private long packValues(int key, int next) {\n return ((long)next << 32) | ((long)key & 0xFFFFFFFFL);\n }", "private Key[] splitKey(Key key) throws InvalidKeyException {\n byte[] userkey = key.getEncoded();\n if (userkey == null)\n throw new InvalidKeyException(getAlgorithm() + \": Null user key\");\n\n if (userkey.length != KEY_LENGTH)\n throw new InvalidKeyException(getAlgorithm() + \": Invalid user key length\");\n\n Key[] keys = new RawSecretKey[3];\n for (int i = 0; i < 3; i++)\n keys[i] = new RawSecretKey(\"DES\", userkey, i*DES_KEY_LENGTH,\n DES_KEY_LENGTH);\n\n return keys;\n }", "private static T2<Integer, Boolean> walKeyToGroupIdAndLocalFlag(String key) {\n if (key.startsWith(WAL_LOCAL_KEY_PREFIX))\n return new T2<>(Integer.parseInt(key.substring(WAL_LOCAL_KEY_PREFIX.length())), true);\n else if (key.startsWith(WAL_GLOBAL_KEY_PREFIX))\n return new T2<>(Integer.parseInt(key.substring(WAL_GLOBAL_KEY_PREFIX.length())), false);\n else\n return null;\n }", "KeyIdPair createKeyIdPair();", "public Key insert(Transaction tx,Tuple t) throws RelationException;", "K getKey();", "K getKey();", "K getKey();", "K getKey();", "public String getString(String key);", "String getString(String key) throws KeyValueStoreException;", "public Friend getFriendByRefKey(String key);", "private <Key, Value> Value get(Node x, Key key) {\n return null;\n }", "int getKey();", "int getKey();", "protected Tuple columnToTuple(ColumnFamilyRecordReader.Column column, CfDef cfDef, AbstractType comparator) throws IOException\n {\n Tuple pair = TupleFactory.getInstance().newTuple(2);\n\n // name\n if(comparator instanceof AbstractCompositeType)\n StorageHelper.setTupleValue(pair, 0, composeComposite((AbstractCompositeType) comparator, column.name));\n else\n StorageHelper.setTupleValue(pair, 0, StorageHelper.cassandraToObj(comparator, column.name, nativeProtocolVersion));\n\n // value\n Map<ByteBuffer,AbstractType> validators = getValidatorMap(cfDef);\n if (validators.get(column.name) == null)\n {\n Map<MarshallerType, AbstractType> marshallers = getDefaultMarshallers(cfDef);\n StorageHelper.setTupleValue(pair, 1, StorageHelper.cassandraToObj(marshallers.get(MarshallerType.DEFAULT_VALIDATOR), column.value, nativeProtocolVersion));\n }\n else\n StorageHelper.setTupleValue(pair, 1, StorageHelper.cassandraToObj(validators.get(column.name), column.value, nativeProtocolVersion));\n return pair;\n }", "private static Pair<String, String> getParameterKeyValue(String parameter) {\n String alias;\n String value;\n if (parameter.contains(\":\")) {\n // Split the parameter: values\n String[] split = parameter.split( \":\", 2 );\n alias = split[0];\n value = split[1];\n } else {\n // Any value with a defined parameter is assumed to be a player username.\n alias = \"p\";\n value = parameter;\n }\n\n return Pair.of(alias, value);\n }", "T key();", "public interface Pair<K,V> {\n public K getKey();\n public V getValue();\n}", "Set<Pairof<K, V>> keyVals();", "private Pair<List<KeySchemaElement>, List<AttributeDefinition>> getKeySchema(DynamoTableConfig table) {\n\n\t\tassert table != null;\n\n\t\tDynamoKeySchema kSchema = table.getKeySchema();\n\t\tDynamoKey hKey = kSchema.getHashKey();\n\t\tKeySchemaElement hashKey = new KeySchemaElement().withAttributeName(hKey.getKeyName()).withKeyType(hKey.getKeyType());\n\t\tAttributeDefinition hashKeyAttributeDefinition = new AttributeDefinition(hKey.getKeyName(), hKey.getAttributeType());\n\n\t\tList<KeySchemaElement> keySchema = Lists.newArrayList(hashKey);\n\t\tList<AttributeDefinition> attributes = Lists.newArrayList(hashKeyAttributeDefinition);\n\n\t\tDynamoKey rKey = kSchema.getRangeKey();\n\t\tif (rKey != null) {\n\t\t\tKeySchemaElement rangeKey = new KeySchemaElement().withAttributeName(rKey.getKeyName()).withKeyType(rKey.getKeyType());\n\t\t\tkeySchema.add(rangeKey);\n\t\t\tAttributeDefinition rangeKeyAttributeDefinition = new AttributeDefinition(rKey.getKeyName(), rKey.getAttributeType());\n\t\t\tattributes.add(rangeKeyAttributeDefinition);\n\t\t}\n\n\t\treturn Pair.create(keySchema, attributes);\n\t}", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "com.google.protobuf.ByteString\n getKeyBytes();", "TupleExpr createTupleExpr();", "String getString(String key);", "TupleLiteralPart createTupleLiteralPart();", "public Integer getInt(K key) throws ClassCastException;", "String getValue(String type, String key);", "EdgeIteratorState setKeyValues(List<KVStorage.KeyValue> map);", "KeyValuePair getInfo(int index);", "private byte[] getKey(KeyType keytype) {\n byte[] key = new byte[1];\n key[0] = (byte) keytype.ordinal();\n return key;\n }", "V getEntry(K key);", "MemberVdusKey getKey();", "CommonQuestionStrategyType selectByPrimaryKey(CommonQuestionStrategyTypeKey key);", "public PrivatePublicTuple generateKeyPair() {\n try {\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n SecureRandom secureRandom = generateNewSecureRandom();\n keyPairGenerator.initialize(PRIVATE_KEY_LENGTH, secureRandom);\n KeyPair pair = keyPairGenerator.generateKeyPair();\n PrivateKey privateKey = pair.getPrivate();\n PublicKey publicKey = pair.getPublic();\n return new PrivatePublicTuple(getDEREncodingFromPrivateKey(privateKey), getDEREncodingFromPublicKey(publicKey));\n } catch (Exception e) {\n LOG.error(\"There was an error generating key pair: \", e);\n }\n return null;\n }", "StringList keys();", "object_detection.protos.Calibration.XYPairs getClassIdXyPairsMapOrThrow(\n int key);", "@Override\n\tprotected String getAdjacentKeys(char key) {\n\t\tif((key >= 'a' && key <= 'z') || (key >= 'A' && key <= 'Z')) {\n\t\t\tif(Character.isLowerCase(key))\n\t\t\t\treturn adjacentKeys[key - 'a'];\n\t\t\telse\n\t\t\t\treturn adjacentKeys[Character.toLowerCase(key) - 'a'];\n\t\t}\n\t\t\n\t\treturn String.valueOf(key);\n\t}" ]
[ "0.66620976", "0.62839955", "0.59047025", "0.57495874", "0.57074326", "0.5612703", "0.55814356", "0.55432403", "0.5534108", "0.543542", "0.5400171", "0.5380315", "0.53311276", "0.5301507", "0.52723557", "0.52679455", "0.52679455", "0.52679455", "0.52679455", "0.52679455", "0.52679455", "0.5257973", "0.5253662", "0.5242389", "0.521669", "0.5209836", "0.51956886", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.51601166", "0.5154717", "0.5146955", "0.51037437", "0.50614804", "0.5058477", "0.5058477", "0.50512016", "0.5047742", "0.50472516", "0.5025654", "0.5010301", "0.49980712", "0.4996315", "0.49869323", "0.4982821", "0.49752134", "0.49398717", "0.4933239", "0.4933239", "0.4933239", "0.4933239", "0.493123", "0.49045032", "0.48960638", "0.4870465", "0.48674893", "0.4860152", "0.4860152", "0.4860152", "0.4860152", "0.4855772", "0.4854283", "0.4848166", "0.48397565", "0.48383832", "0.48383832", "0.48298976", "0.47951353", "0.47924298", "0.47884294", "0.4788415", "0.4781324", "0.47799003", "0.47799003", "0.47799003", "0.47693843", "0.4765654", "0.47476697", "0.47383642", "0.47376466", "0.4734614", "0.47235522", "0.47226176", "0.47193328", "0.4693673", "0.46863285", "0.4680956", "0.4679598", "0.46773726", "0.4676234" ]
0.6901293
0
add key to a tuple
private void addKeyToTuple(Tuple tuple, ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException { if( comparator instanceof AbstractCompositeType ) { StorageHelper.setTupleValue(tuple, 0, composeComposite((AbstractCompositeType) comparator, key)); } else { StorageHelper.setTupleValue(tuple, 0, StorageHelper.cassandraToObj(getDefaultMarshallers(cfDef).get(MarshallerType.KEY_VALIDATOR), key, nativeProtocolVersion)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Key insert(Transaction tx,Tuple t) throws RelationException;", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "void add(String key);", "public void addTuple(Tuple tup) {\n table.add(tup);\n }", "public void add(Tuple t) {\n\t\tgetTuples().add(t);\n\t}", "public Tuple(K newKey, V newValue) {\r\n\t\tkey = newKey;\r\n\t\tvalue = newValue;\r\n\t}", "public void add(String key,String value){\n int index=hash(key);\n if (arr[index] == null)\n {\n arr[index] = new Llist();\n }\n arr[index].add(key, value);\n\n\n }", "void add(KeyType key, ValueType value);", "@Override\n public void put(PairNode<K, V> node) {\n super.put(node);\n keySet.add(node.getKey());\n }", "void insert(EntryPair entry);", "public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }", "private void add(String key) {\n dict = add(dict, key, 0);\n }", "public void insert(String key){\n DataPair dp = getDataPair(key);\n insert(dp);\n }", "static <K extends Comparable<? super K>, V> KeyValue<K, V> make(K key, V value) {\n return new Tuple<>(key, value);\n }", "public Tuple get(Key k) throws RelationException;", "Object insert(String key, Object param);", "private void addToHashmap(String key, Long timestamp){\r\n\t\tkeyHashMap.putIfAbsent(key, new PriorityQueue<Long>());\r\n\t\tsynchronized(keyHashMap.get(key)){\r\n\t\t\tSystem.out.println(\"Added Key: \" + key + \" Time: \" + timestamp);\r\n\t\t\tkeyHashMap.get(key).add(timestamp);\r\n\t\t}\r\n\t}", "boolean add(Object key, Object value);", "public void addKey(String key){\n itemMap.put(key, new ArrayList<>());\n }", "void add(K key, V value);", "public abstract boolean insert(Key key);", "private Object[] computeKeyValuePairOfTuple(AttrName asName, Entry<List<Object>, ? extends Aggregator<?>> item, AttrList byNameAttrs){\n List<Object> list = new ArrayList<Object>();\n List<AttrName> attrs = byNameAttrs.toList();\n for(int i = 0; i < attrs.size(); i++){\n list.add(attrs.get(i).getName());\n list.add((item.getKey().get(i)));\n }\n Aggregator<?> value = item.getValue();\n list.add(asName);\n list.add(value.finish());\n return list.stream().toArray();\n }", "public void insert(VertexRecord key) {\n throw new UnsupportedOperationException();\n }", "void add(ThreadLocal<?> key, Object value) {\n for (int index = key.hash & mask;; index = next(index)) {\n Object k = table[index];\n if (k == null) {\n table[index] = key.reference;\n table[index + 1] = value;\n return;\n }\n }\n }", "Integer get_add(Key key, int mod);", "public Value put(Key key, Value thing) ;", "ValueType put(long key, ValueType entry);", "public void inc(String key);", "@Override\n public void insert(Comparable k, Object v) {\n\n if (k == null) { // Check for null key\n throw new IllegalArgumentException(\"null key\");\n }\n\n // If size 0, just add pair\n else if (this.size == 0) {\n ls[this.size] = new Pair(k, v);\n this.size++;\n return;\n }\n // If # of items reached capacity\n else if (this.CAPACITY == this.size) {\n Pair[] newLs = new Pair[this.CAPACITY + 100];\n\n // Deep copy of previous Pair[]\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n throw new RuntimeException(\"duplicate key\");\n }\n newLs[i] = this.ls[i]; // Change this.ls value\n }\n this.ls = newLs; // Change field to new Pair[]\n this.ls[size] = new Pair(k, v); // Add the Pair\n this.CAPACITY += 100; // Increase capacity\n size++;\n return;\n\n } else {\n // Loop to check for duplicate exception\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n throw new RuntimeException(\"duplicate key\");\n }\n }\n\n // Add pair to array\n ls[this.size] = new Pair(k, v);\n this.size++;\n }\n\n }", "private Tuple keyToTuple(ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException\n {\n Tuple tuple = TupleFactory.getInstance().newTuple(1);\n addKeyToTuple(tuple, key, cfDef, comparator);\n return tuple;\n }", "public V add(K key, V value);", "public void insert(KeyedItem newItem);", "public void add(long key, C value) {\n if(Long.toString(key).length() != 8) {\n \t//System.out.println(\"Sequence Error: Length is not 8.\\n\");\n return;\n }\n\n //clear the old key\n try {\n this.remove(key); \n } catch(Exception e) {\n sequence.add(new Entry<C>(key, value));\n size++;\n return;\n }\n //System.out.println(\"Found duplicate for key \" + key + \".\\n\"); \n sequence.add(new Entry<C>(key, value));\n size++;\n }", "public void merge(Tuple tup) {\n\t\t\n\t}", "public void addKey(int par1, Object par2Obj)\n {\n this.keySet.add(Integer.valueOf(par1));\n int j = computeHash(par1);\n int k = getSlotIndex(j, this.slots.length);\n\n for (IntHashMapEntry inthashmapentry = this.slots[k]; inthashmapentry != null; inthashmapentry = inthashmapentry.nextEntry)\n {\n if (inthashmapentry.hashEntry == par1)\n {\n inthashmapentry.valueEntry = par2Obj;\n return;\n }\n }\n\n ++this.versionStamp;\n this.insert(j, par1, par2Obj, k);\n }", "@SuppressWarnings(\"rawtypes\")\n void\n addToObject(Pair<HashMap<String, Object>> obj, Pair<String> key, Pair add)\n {\n if (!obj.parsed.containsKey(key.parsed))\n {\n obj.parsed.put(key.parsed, add.parsed);\n obj.unparsed = obj.unparsed.substring(0, obj.unparsed.length() - 1);\n if (obj.unparsed.length() > 1)\n obj.unparsed += \",\";\n obj.unparsed += (key.unparsed + \":\" + add.unparsed + \"}\");\n } // if\n }", "public void addVertex( VKeyT key, VDataT data );", "public void add(G item,String key){\n int chain=hashFunction(key);\r\n if (electionTable[chain] != null) {\r\n System.out.println(\"input repeated key!!!\");\r\n return;\r\n }\r\n ElectionNode x=new ElectionNode(item);\r\n System.out.println(\"-----------add-------------- \" + chain);\r\n x.next=electionTable[chain];\r\n electionTable[chain]=x;\r\n }", "abstract void insert(K key, V value);", "abstract void insert(K key, V value);", "T put(CharSequence key, int pos, T addValue)\n\t\t{\n\t\t\tNode<T> nextNode;\n\t\t\tCharacter ch;\n\t\t\tT old;\n\n\t\t\tif(key.length() == pos)\n\t\t\t{\t// at terminating node\n\t\t\t\told = value;\n\t\t\t\tsetValue(addValue);\n\t\t\t\treturn old;\n\t\t\t}\n\t\t\tch = key.charAt(pos);\n\t\t\tif(nextMap == null)\n\t\t\t{\n\t\t\t\tnextMap = newNodeMap();\n\t\t\t\tnextNode = new Node();\n\t\t\t\tnextMap.put(ch, nextNode);\n\t\t\t}\n\t\t\telse if((nextNode = nextMap.get(ch))==null)\n\t\t\t{\n\t\t\t\tnextNode = new Node();\n\t\t\t\tnextMap.put(ch,nextNode);\n\t\t\t}\n\t\t\treturn nextNode.put(key,pos+1,addValue);\n\t\t}", "void addEntry(K key, V value);", "public void add(String key, String def, boolean isnew){\n if(!this.containsKey(key)){\n this.put(key, new ArrayList<>());\n }\n // always add to the front of the list.\n this.get(key).add(0, def);\n\n if(isnew) {\n this.newpairs.add(new Pair<>(key, def));\n }\n\n }", "@Override\n public Tuple3<Long, Double, Double> add(Tuple3<Long, Double, Double> tuple, Tuple3<Long, Double, Double> acc) {\n acc.f0 = tuple.f0;\n acc.f1 += tuple.f1;\n acc.f2 += tuple.f2;\n return acc;\n }", "public void add(String k, String v) throws RemoteException, Error;", "public void add(G item, int key){ //it adds methods using the int key\r\n int chain=hashFunction(key);\r\n ElectionNode x=new ElectionNode(item);\r\n x.next=electionTable[chain];\r\n electionTable[chain]=x;\r\n }", "public int add(String key, E value) {\r\n int index = items.size();\r\n keys.put(key, index);\r\n items.add(value);\r\n return index;\r\n }", "public void addHint(String key, Object value) {\n if (_hintKeys == null) {\n _hintKeys = new LinkedList();\n _hintVals = new LinkedList();\n }\n _hintKeys.add(key);\n _hintVals.add(value);\n }", "@Override\r\n\tpublic void addKeyValuePair(String key, String value) {\r\n\t\t\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \") || value == null || value.equals(\" \")) {\r\n System.out.println(\"Key cannot be Empty\");\r\n return;\r\n }\r\n // create new Node to be inserted\r\n Node newNode = new Node(new Data(key, value));\r\n // call recursive function traverse from root to correct Position to add newNode\r\n this.root = insertRecursively(this.root, newNode);\r\n return;\r\n\t\t\r\n\t}", "public static void addTupleAsOneCell(List<Cell> result,\n Tuple tuple,\n TupleProjector tupleProjector,\n ImmutableBytesWritable ptr) {\n byte[] value =\n tupleProjector.getSchema().toBytes(tuple, tupleProjector.getExpressions(),\n tupleProjector.getValueBitSet(), ptr);\n Cell firstCell = result.get(0);\n Cell keyValue =\n PhoenixKeyValueUtil.newKeyValue(firstCell.getRowArray(),\n firstCell.getRowOffset(),firstCell.getRowLength(), VALUE_COLUMN_FAMILY,\n VALUE_COLUMN_QUALIFIER, firstCell.getTimestamp(), value, 0, value.length);\n result.add(keyValue);\n }", "public void insert(int key, Object record) {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "public void addKey() {\n setBonusKeys(getBonusKeys() + 1);\n }", "public void mergeTupleIntoGroup(Tuple tup) {\n // some code goes here\n int bucket = -1;\n if (gbfield != NO_GROUPING) {\n if (gbfieldtype == Type.STRING_TYPE) {\n bucket = ((StringField)tup.getField(gbfield)).hashCode();\n hashstr.put(((StringField)tup.getField(gbfield)).hashCode(), ((StringField)tup.getField(gbfield)));\n\n }\n else {\n bucket = ((IntField)tup.getField(gbfield)).getValue();\n }\n }\n int aggval = 0;\n int gkey = 0;\n if (gbfieldtype == Type.STRING_TYPE) {\n gkey = ((StringField)tup.getField(gbfield)).hashCode();\n }\n else {\n gkey = ((IntField)tup.getField(gbfield)).getValue();\n }\n\n if (groups.containsKey(gkey)) {\n groups.put(bucket, groups.get(bucket) + 1);\n }\n else {\n groups.put(bucket, 1);\n }\n }", "private void addToGeoLocationContext(String key, Object value) {\n if (key != null && value != null && !key.isEmpty() ||\n (value instanceof String) && !((String) value).isEmpty()) {\n this.geoLocationPairs.put(key, value);\n }\n }", "private HashEntry(K insertKey, V insertValue)\r\n\t\t{\r\n\t\t\tkey = insertKey;\r\n\t\t\tvalue.add(insertValue);\r\n\t\t}", "@Override public void setKey(IndexKey key) {\n listOfKeys.add(key);\n\n }", "private Key addKey(Key key) {\r\n\t _listAllKeys.add(key);\r\n\t _allKeys[key._glfwCode] = key;\r\n\t return key;\r\n\t}", "public void addKeySecretPair(String key, String secret) throws ClassicDatabaseException;", "String put(Integer key, String value);", "@Override\n public boolean put(int key, int firstValue, int secondValue) {\n int position = key << 1;\n array.addEntry(firstValue, position);\n array.addEntry(secondValue, position + 1);\n numStoredKeysCounter.incr();\n return false;\n }", "private void addPair(int word1, int word2) {\n\t\trelatedPairs[word1].add(word2);\n\t}", "public abstract void addParameter(String key, Object value);", "MapComp<K, V> add(K k, V v);", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "int insert(GrpTagKey record);", "@Override\n public void write(WritableComparable key, Tuple value)\n throws IOException, InterruptedException {\n if(mode == Mode.SINGLE_STORE) {\n if (!(value instanceof NonWritableTuple)) {\n storeDecorator.putNext(value);\n }\n } else {\n throw new IOException(\"Internal Error: Unexpected code path\");\n }\n }", "void addCorrect8(String key, String val) {\n List<String> list = map.computeIfAbsent(key,\n k -> Collections.synchronizedList(new ArrayList<>()));\n list.add(val);\n }", "public void mergeTupleIntoGroup(Tuple tup) {\n // some code goes here\n if(gbfield == NO_GROUPING) {\n // ArrayList<Integer> arr = (ArrayList<Integer>) group;\n // IntField f = (IntField) tup.getField(afield);\n ((ArrayList<Integer>) group).add(((IntField) tup.getField(afield)).getValue());\n } else {\n if(gbfieldtype == Type.INT_TYPE) {\n HashMap<Integer, ArrayList<Integer>> hmap = (HashMap<Integer, ArrayList<Integer>>) group;\n int key =((IntField) tup.getField(gbfield)).getValue();\n int value = ((IntField) tup.getField(afield)).getValue();\n boolean isContained = hmap.containsKey(key);\n if(isContained) {\n ArrayList<Integer> arr = hmap.get(key);\n arr.add(value);\n } else {\n ArrayList<Integer> arr = new ArrayList<>();\n arr.add(value);\n hmap.put(key, arr);\n }\n } else {\n assert (gbfieldtype == Type.STRING_TYPE);\n HashMap<String, ArrayList<Integer>> hmap = (HashMap<String, ArrayList<Integer>>) group;\n String key = ((StringField) tup.getField(gbfield)).getValue();\n int value = ((IntField) tup.getField(afield)).getValue();\n boolean isContained = hmap.containsKey(key);\n if(isContained) {\n ArrayList<Integer> arr = hmap.get(key);\n arr.add(value);\n } else {\n ArrayList<Integer> arr = new ArrayList<>();\n arr.add(value);\n hmap.put(key, arr);\n }\n }\n }\n }", "void addCorrect(String key, String val) {\n List<String> list = map.get(key);\n if (list == null) {\n list = Collections.synchronizedList(new ArrayList<>());\n List<String> exist = map.putIfAbsent(key, list);\n if (exist != null) {\n list = exist;\n }\n }\n list.add(val);\n }", "public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}", "int insert(Lbt72TesuryoSumDPkey record);", "public void add(String key) {\n if (key == null || key.length() < 1) {\n return;\n }\n Node curr = root;\n for (int i = 0; i < key.length(); i++) {\n char c = key.charAt(i);\n if (!curr.next.items.containsKey(c)) {\n curr.next.items.put(c, new Node(c, false, 256));\n }\n curr = (Node)curr.next.items.get(c);\n }\n curr.isKey = true;\n }", "Astro tuple(AstroArg args);", "public boolean add(K key, V value);", "public void add(K key, E e){\n\t\tremove(key);\n\t\tnewestIndex = (newestIndex+1)%keys.length;\n\t\tif(keys[newestIndex] == null)\n\t\t\thowMany = howMany + 1;\n\t\tkeys[newestIndex] = key;\n\t\telem[newestIndex] = e;\n\t}", "void insert(int key, String data)\n\t\tthrows IllegalArgumentException;", "@Override\n public Symbol put(String key, Symbol value) {\n value.setIndex(this.local++);\n return super.put(key, value);\n }", "@Override\n public String getKeyFromTuple(ITuple tuple) {\n return tuple.getStringByField(\"top-N\");\n\t\t// End\n }", "void put(Object indexedKey, Object key);", "public long addFavPair(Pair pair) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues cv = new ContentValues();\n cv.put(FavoriteEntry.SHIRT_ID, pair.getShirt().getId());\n cv.put(FavoriteEntry.TROUSER_ID, pair.getTrouser().getId());\n\n try {\n return db.insertOrThrow(FavoriteEntry.TABLE_NAME, null, cv);\n } catch (SQLException e) {\n Log.d(TAG, \"Could not insert to database! \" + e);\n return -1;\n }\n }", "public void put(Object key, Object value) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key)) {\n\t\t\t\tp.value = value; // overwrite value if key already present.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// if not present, add key-value pair in that slot/bucket.\n\t\tPair pair = new Pair(key, value);\n\t\ttable[index].add(pair);\n\t}", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key insertNewKey(int i);", "BListKey getKey();", "public void put(K key, T elem);", "protected void addTupleAction(Action a) {\r\n\t\tif (this.tupleActions == null)\r\n\t\t\tthis.tupleActions = new Vector<Action>(4);\r\n\t\tthis.tupleActions.addElement(a);\r\n\t}", "public void put(R key, S ...values) {\n if (!map.containsKey(key)){\n if (listType == ARRAY_LIST){\n map.put(key, Collections.synchronizedList(new ArrayList<S>()));\n } else if (listType == LINKED_LIST){\n map.put(key, Collections.synchronizedList(new LinkedList<S>()));\n }\n }\n List<S> list = map.get(key);\n for (S value : values) {\n list.add(value);\n }\n }", "@SuppressWarnings(\"unchecked\")\n public void insertAfter(String key, Object value) {\n iterator.add(new CaseInsensitiveElement<V>(key, (V)value));\n }", "public void addEventTuple(TextView calendarName, LinearLayout eventInfo) {\r\n\t\tcalendarNameList.add(calendarName);\r\n\t\teventInfoList.add(eventInfo);\r\n\t}", "public void put(Comparable key, Stroke stroke) {\n/* 120 */ ParamChecks.nullNotPermitted(key, \"key\");\n/* 121 */ this.store.put(key, stroke);\n/* */ }", "public Object putItem (String key, Object item);", "public void insert (k key, v val) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\t\n\t\twhile (curr != null) {\t\n\t\t\tif (key.equals(curr.getKey()) && val.equals(curr.getValue())) { \n\t\t\t\t\n\t\t\t\tSystem.err.println(\"Pair \" + key + \" \" + val + \" already exists\");\n\t\t\t\treturn;\t\t\t\t\t\t\t\t// if both key and value already exist, terminate\n\t\t\t}\n\t\t\telse if (curr.getNext() == null) {\t\t// if reached last element, append the new node to the end\n\t\t\t\tcurr.setNext(key, val);\n\t\t\t\treturn; \n\t\t\t}\n\t\t\tcurr = curr.getNext();\t\t\t\t\t// propagate on the SLL until key and value matched or end of SLL reached\n\t\t}\n\t\tbuckets[b] = new Node<k,v>(key, val, null);\t// if there are no nodes at the hashed index, place the new node there\n\t}", "private void addParameter(String key, String value) {\n urlParameters.put(key, new BasicNameValuePair(key, value));\n }", "public boolean add( String key, T value )\r\n {\r\n HashMap<String,T> top = tables.peekFirst();\r\n T result = top.get( key );\r\n top.put( key, value );\r\n return result==null;\r\n }", "public int insert(String lfn, ReplicaCatalogEntry tuple) {\n throw new UnsupportedOperationException(\n \"Method insert( String, ReplicaCatalogEntry ) not supported in MRC\" );\n }", "Tuple (L left, R right){\n\t\tthis.left=left;\n\t\tthis.right=right;\n\t}", "void put(@NonNull String key, @NonNull T value);", "public void addData(Key key, Value value) {\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\t//if no data or should be placed first\r\n\t\t\tif (data.size() == 0 || data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\telse {\r\n\t\t\t\t//find insert position\r\n\t\t\t\twhile (data.hasNext()) {\r\n\t\t\t\t\tif (data.next().getKey().compareTo(key) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//if before last\r\n\t\t\t\tif (data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t\t//if after last\r\n\t\t\t\telse\r\n\t\t\t\t\tdata.add(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t}\r\n\t\t}", "DictionaryPair (K someKey , V someValue) {\n this.key = someKey;\n this.value = someValue;\n }", "Object put(Object key, Object value);", "int insert(Lbm83ChohyokanriPkey record);" ]
[ "0.66012377", "0.6464579", "0.6432921", "0.63795066", "0.6257634", "0.61763906", "0.59320706", "0.5894303", "0.58836794", "0.58250165", "0.57744044", "0.57294166", "0.5704326", "0.5702622", "0.5679857", "0.5653132", "0.5615306", "0.5592336", "0.5591259", "0.5584772", "0.55807143", "0.5576428", "0.5551504", "0.5538279", "0.5524203", "0.550593", "0.5498723", "0.5486636", "0.54842824", "0.5472204", "0.54676443", "0.5454682", "0.5446021", "0.54401195", "0.5439248", "0.5426323", "0.5415191", "0.5411941", "0.5393538", "0.5393538", "0.5386186", "0.5385892", "0.53848475", "0.5384346", "0.53831756", "0.53492844", "0.5326583", "0.53246516", "0.53230166", "0.53159976", "0.5308311", "0.5306205", "0.5305459", "0.5298579", "0.528509", "0.5284579", "0.52634007", "0.52621824", "0.52287817", "0.5223474", "0.5205118", "0.5201599", "0.5195797", "0.5186514", "0.51750475", "0.5172478", "0.5166877", "0.5142153", "0.5127697", "0.51220006", "0.51170295", "0.51151323", "0.5092185", "0.50836897", "0.50760597", "0.5073648", "0.5071142", "0.5067674", "0.50644886", "0.5059332", "0.50563776", "0.50537074", "0.5051072", "0.50418514", "0.5038253", "0.5034965", "0.50223726", "0.50208265", "0.5004901", "0.49940917", "0.49937946", "0.49830884", "0.4982863", "0.4980303", "0.49798948", "0.49778402", "0.4977229", "0.4974776", "0.4972786", "0.49686474" ]
0.7418138
0
Deconstructs a composite type to a Tuple.
protected Tuple composeComposite(AbstractCompositeType comparator, ByteBuffer name) throws IOException { List<AbstractCompositeType.CompositeComponent> result = comparator.deconstruct(name); Tuple t = TupleFactory.getInstance().newTuple(result.size()); for (int i=0; i<result.size(); i++) StorageHelper.setTupleValue(t, i, StorageHelper.cassandraToObj(result.get(i).comparator, result.get(i).value, nativeProtocolVersion)); return t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "TupleTypeRule createTupleTypeRule();", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "public static Tuple toTuple(Object o) throws ExecException {\n if (o == null) {\n return null;\n }\n\n if (o instanceof Tuple) {\n try {\n return (Tuple)o;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Tuple.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n } else {\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a Tuple\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n }", "Astro tuple(AstroArg args);", "TupleLiteralPart createTupleLiteralPart();", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "TupleLiteralExp createTupleLiteralExp();", "public abstract T getTuple(Record record);", "public TupleDesc getTupleDesc();", "TupleExpr createTupleExpr();", "public final EObject ruleTupleTypeCS() throws RecognitionException {\n EObject current = null;\n\n Token lv_name_0_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n EObject lv_ownedParts_2_0 = null;\n\n EObject lv_ownedParts_4_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:5956:2: ( ( ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? ) )\n // InternalMyDsl.g:5957:2: ( ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? )\n {\n // InternalMyDsl.g:5957:2: ( ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )? )\n // InternalMyDsl.g:5958:3: ( (lv_name_0_0= 'Tuple' ) ) (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )?\n {\n // InternalMyDsl.g:5958:3: ( (lv_name_0_0= 'Tuple' ) )\n // InternalMyDsl.g:5959:4: (lv_name_0_0= 'Tuple' )\n {\n // InternalMyDsl.g:5959:4: (lv_name_0_0= 'Tuple' )\n // InternalMyDsl.g:5960:5: lv_name_0_0= 'Tuple'\n {\n lv_name_0_0=(Token)match(input,94,FOLLOW_62); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewLeafNode(lv_name_0_0, grammarAccess.getTupleTypeCSAccess().getNameTupleKeyword_0_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.getTupleTypeCSRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(current, \"name\", lv_name_0_0, \"Tuple\");\n \t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMyDsl.g:5972:3: (otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')' )?\n int alt81=2;\n int LA81_0 = input.LA(1);\n\n if ( (LA81_0==20) ) {\n alt81=1;\n }\n switch (alt81) {\n case 1 :\n // InternalMyDsl.g:5973:4: otherlv_1= '(' ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )? otherlv_5= ')'\n {\n otherlv_1=(Token)match(input,20,FOLLOW_47); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_1, grammarAccess.getTupleTypeCSAccess().getLeftParenthesisKeyword_1_0());\n \t\t\t\n }\n // InternalMyDsl.g:5977:4: ( ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )* )?\n int alt80=2;\n int LA80_0 = input.LA(1);\n\n if ( ((LA80_0>=RULE_SIMPLE_ID && LA80_0<=RULE_ESCAPED_ID)||LA80_0==19||(LA80_0>=60 && LA80_0<=61)) ) {\n alt80=1;\n }\n switch (alt80) {\n case 1 :\n // InternalMyDsl.g:5978:5: ( (lv_ownedParts_2_0= ruleTuplePartCS ) ) (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )*\n {\n // InternalMyDsl.g:5978:5: ( (lv_ownedParts_2_0= ruleTuplePartCS ) )\n // InternalMyDsl.g:5979:6: (lv_ownedParts_2_0= ruleTuplePartCS )\n {\n // InternalMyDsl.g:5979:6: (lv_ownedParts_2_0= ruleTuplePartCS )\n // InternalMyDsl.g:5980:7: lv_ownedParts_2_0= ruleTuplePartCS\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getTupleTypeCSAccess().getOwnedPartsTuplePartCSParserRuleCall_1_1_0_0());\n \t\t\t\t\t\t\n }\n pushFollow(FOLLOW_48);\n lv_ownedParts_2_0=ruleTuplePartCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getTupleTypeCSRule());\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tadd(\n \t\t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\t\"ownedParts\",\n \t\t\t\t\t\t\t\tlv_ownedParts_2_0,\n \t\t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TuplePartCS\");\n \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMyDsl.g:5997:5: (otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) ) )*\n loop79:\n do {\n int alt79=2;\n int LA79_0 = input.LA(1);\n\n if ( (LA79_0==59) ) {\n alt79=1;\n }\n\n\n switch (alt79) {\n \tcase 1 :\n \t // InternalMyDsl.g:5998:6: otherlv_3= ',' ( (lv_ownedParts_4_0= ruleTuplePartCS ) )\n \t {\n \t otherlv_3=(Token)match(input,59,FOLLOW_46); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getTupleTypeCSAccess().getCommaKeyword_1_1_1_0());\n \t \t\t\t\t\t\n \t }\n \t // InternalMyDsl.g:6002:6: ( (lv_ownedParts_4_0= ruleTuplePartCS ) )\n \t // InternalMyDsl.g:6003:7: (lv_ownedParts_4_0= ruleTuplePartCS )\n \t {\n \t // InternalMyDsl.g:6003:7: (lv_ownedParts_4_0= ruleTuplePartCS )\n \t // InternalMyDsl.g:6004:8: lv_ownedParts_4_0= ruleTuplePartCS\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getTupleTypeCSAccess().getOwnedPartsTuplePartCSParserRuleCall_1_1_1_1_0());\n \t \t\t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_48);\n \t lv_ownedParts_4_0=ruleTuplePartCS();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getTupleTypeCSRule());\n \t \t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\t\"ownedParts\",\n \t \t\t\t\t\t\t\t\t\tlv_ownedParts_4_0,\n \t \t\t\t\t\t\t\t\t\t\"org.eclipse.ocl.xtext.essentialocl.EssentialOCL.TuplePartCS\");\n \t \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop79;\n }\n } while (true);\n\n\n }\n break;\n\n }\n\n otherlv_5=(Token)match(input,21,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getTupleTypeCSAccess().getRightParenthesisKeyword_1_2());\n \t\t\t\n }\n\n }\n break;\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 }", "protected Tuple cleanTuple(Tuple result)\n {\n return result;\n }", "public static Tuple read(DataInput in) throws IOException {\n // nuke the old contents of the tuple\n Tuple ret = new Tuple();\n ret.fields = new ArrayList<Datum>();\n\n int size = decodeInt(in);\n \n for (int i = 0; i < size; i++) {\n ret.appendField(readDatum(in));\n }\n \n return ret;\n\n }", "public T caseTupleTypeCS(TupleTypeCS object) {\r\n return null;\r\n }", "private Tuples() {}", "public final EObject entryRuleTupleTypeCS() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTupleTypeCS = null;\n\n\n try {\n // InternalMyDsl.g:5943:52: (iv_ruleTupleTypeCS= ruleTupleTypeCS EOF )\n // InternalMyDsl.g:5944:2: iv_ruleTupleTypeCS= ruleTupleTypeCS EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTupleTypeCSRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleTupleTypeCS=ruleTupleTypeCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleTupleTypeCS; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final AstValidator.tuple_type_return tuple_type() throws RecognitionException {\n AstValidator.tuple_type_return retval = new AstValidator.tuple_type_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree TUPLE_TYPE102=null;\n AstValidator.field_def_list_return field_def_list103 =null;\n\n\n CommonTree TUPLE_TYPE102_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:273:12: ( ^( TUPLE_TYPE ( field_def_list )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:273:14: ^( TUPLE_TYPE ( field_def_list )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n TUPLE_TYPE102=(CommonTree)match(input,TUPLE_TYPE,FOLLOW_TUPLE_TYPE_in_tuple_type1141); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n TUPLE_TYPE102_tree = (CommonTree)adaptor.dupNode(TUPLE_TYPE102);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(TUPLE_TYPE102_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:273:28: ( field_def_list )?\n int alt26=2;\n int LA26_0 = input.LA(1);\n\n if ( ((LA26_0 >= FIELD_DEF && LA26_0 <= FIELD_DEF_WITHOUT_IDENTIFIER)) ) {\n alt26=1;\n }\n switch (alt26) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:273:28: field_def_list\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_field_def_list_in_tuple_type1143);\n field_def_list103=field_def_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, field_def_list103.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "protected Tuple columnToTuple(ColumnFamilyRecordReader.Column column, CfDef cfDef, AbstractType comparator) throws IOException\n {\n Tuple pair = TupleFactory.getInstance().newTuple(2);\n\n // name\n if(comparator instanceof AbstractCompositeType)\n StorageHelper.setTupleValue(pair, 0, composeComposite((AbstractCompositeType) comparator, column.name));\n else\n StorageHelper.setTupleValue(pair, 0, StorageHelper.cassandraToObj(comparator, column.name, nativeProtocolVersion));\n\n // value\n Map<ByteBuffer,AbstractType> validators = getValidatorMap(cfDef);\n if (validators.get(column.name) == null)\n {\n Map<MarshallerType, AbstractType> marshallers = getDefaultMarshallers(cfDef);\n StorageHelper.setTupleValue(pair, 1, StorageHelper.cassandraToObj(marshallers.get(MarshallerType.DEFAULT_VALIDATOR), column.value, nativeProtocolVersion));\n }\n else\n StorageHelper.setTupleValue(pair, 1, StorageHelper.cassandraToObj(validators.get(column.name), column.value, nativeProtocolVersion));\n return pair;\n }", "public T caseTupleTypeLiteralExpCS(TupleTypeLiteralExpCS object) {\r\n return null;\r\n }", "public abstract T getTuple(int aPosition);", "public T caseTuple(Tuple object)\n {\n return null;\n }", "private TupleDesc generalTupleDesc(){\n \tType[] typeArr;\n \tString[] nameArr;\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{\"aggregateValue\"};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tnameArr = new String[]{\"groupValue\", \"aggregateValue\"};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n }", "public UnmodifiableTuple(Tuple<F, L> tuple) {\r\n this.first = tuple.getFirst();\r\n this.last = tuple.getLast();\r\n size = tuple.size();\r\n hashCode = tuple.hashCode();\r\n }", "private TupleDesc generateTupleDesc(){\n \tif(this.childTD == null){ //no tuples merged yet\n \t\t//return a general tupleDesc\n \t\treturn generalTupleDesc();\n \t} else {\n \t\t//generate a helpful, well-named TupleDesc\n \t\tType[] typeArr;\n \tString[] nameArr;\n \tString aggName = operator.toString() + \"(\" + childTD.getFieldName(aggField) + \")\";\n \tif(gbField == NO_GROUPING && gbFieldType == Type.INT_TYPE){\n \t\ttypeArr = new Type[]{Type.INT_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t}else if(gbField == NO_GROUPING){ //gbFieldType == Type.STRING_TYPE\n \t\ttypeArr = new Type[]{Type.STRING_TYPE};\n \t\tnameArr = new String[]{aggName};\n \t} else {\n \t\ttypeArr = new Type[]{gbFieldType, Type.INT_TYPE};\n \t\tString groupName = \"group by(\" + childTD.getFieldName(gbField) + \")\";\n \t\tnameArr = new String[]{groupName, aggName};\n \t}\n \treturn new TupleDesc(typeArr, nameArr);\n \t}\n }", "@Specialization\n\t\tString type(OzBacktrace backtrace) {\n\t\t\treturn \"tuple\";\n\t\t}", "public Tuple2() {\n }", "public final AstValidator.tuple_type_cast_return tuple_type_cast() throws RecognitionException {\n AstValidator.tuple_type_cast_return retval = new AstValidator.tuple_type_cast_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree TUPLE_TYPE_CAST244=null;\n AstValidator.type_cast_return type_cast245 =null;\n\n\n CommonTree TUPLE_TYPE_CAST244_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:427:17: ( ^( TUPLE_TYPE_CAST ( type_cast )* ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:427:19: ^( TUPLE_TYPE_CAST ( type_cast )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n TUPLE_TYPE_CAST244=(CommonTree)match(input,TUPLE_TYPE_CAST,FOLLOW_TUPLE_TYPE_CAST_in_tuple_type_cast2120); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n TUPLE_TYPE_CAST244_tree = (CommonTree)adaptor.dupNode(TUPLE_TYPE_CAST244);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(TUPLE_TYPE_CAST244_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:427:38: ( type_cast )*\n loop60:\n do {\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( (LA60_0==BIGDECIMAL||LA60_0==BIGINTEGER||LA60_0==BOOLEAN||LA60_0==BYTEARRAY||LA60_0==CHARARRAY||LA60_0==DATETIME||LA60_0==DOUBLE||LA60_0==FLOAT||LA60_0==INT||LA60_0==LONG||LA60_0==BAG_TYPE_CAST||LA60_0==MAP_TYPE||LA60_0==TUPLE_TYPE_CAST) ) {\n alt60=1;\n }\n\n\n switch (alt60) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:427:38: type_cast\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_type_cast_in_tuple_type_cast2122);\n \t type_cast245=type_cast();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, type_cast245.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop60;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public T getMetadataEntityFromTuple(ITupleReference tuple) throws MetadataException, IOException;", "public TupleDesc(Type[] typeAr) {\n assert typeAr.length > 0;\n this.numfields = typeAr.length;\n this.types = typeAr;\n }", "@SafeVarargs\n\tpublic static <R> Tuple<R> construct(R... data) {\n\t\tLinkedList<R> list = new LinkedList<>();\n\t\tfor (R element : data) {\n\t\t\tlist.add(element);\n\t\t}\n\n\t\treturn new Tuple<>(list);\n\t}", "Tuple extract(int[] pos) {\n Tuple results = new Tuple();\n\n for (int i : pos)\n results.add(elements.set(i, null));\n\n return results;\n }", "public final AstValidator.bag_type_cast_return bag_type_cast() throws RecognitionException {\n AstValidator.bag_type_cast_return retval = new AstValidator.bag_type_cast_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree BAG_TYPE_CAST246=null;\n AstValidator.tuple_type_cast_return tuple_type_cast247 =null;\n\n\n CommonTree BAG_TYPE_CAST246_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:430:15: ( ^( BAG_TYPE_CAST ( tuple_type_cast )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:430:17: ^( BAG_TYPE_CAST ( tuple_type_cast )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n BAG_TYPE_CAST246=(CommonTree)match(input,BAG_TYPE_CAST,FOLLOW_BAG_TYPE_CAST_in_bag_type_cast2136); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n BAG_TYPE_CAST246_tree = (CommonTree)adaptor.dupNode(BAG_TYPE_CAST246);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(BAG_TYPE_CAST246_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:430:34: ( tuple_type_cast )?\n int alt61=2;\n int LA61_0 = input.LA(1);\n\n if ( (LA61_0==TUPLE_TYPE_CAST) ) {\n alt61=1;\n }\n switch (alt61) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:430:34: tuple_type_cast\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_tuple_type_cast_in_bag_type_cast2138);\n tuple_type_cast247=tuple_type_cast();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, tuple_type_cast247.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public Tuple(String attrib_names [], String attrib_types [], String attrib_values []) {\n\n\ttuple_counter++;\n\tnum_attribs = attrib_types.length;\n\tmy_data = new HashMap();\n\t\n\tfor (int i = 0; i < num_attribs; i++) {\n\ttry {\n\t Class cl = Class.forName(attrib_types[i]);\n\t Constructor constructor =\n\t\tcl.getConstructor(new Class[] { String.class });\n\t my_data.put ( attrib_names[i],\n\t\t(ColumnValue) constructor.newInstance\n\t\t(new Object[] { attrib_values[i] }));\n\t}\n\tcatch (java.lang.ClassNotFoundException e)\n\t { System.out.println(e.toString()); } \n\tcatch (java.lang.NoSuchMethodException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.reflect.InvocationTargetException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.InstantiationException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.IllegalAccessException e)\n\t { System.out.println(e.toString()); }\n\n\t}\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tpairdiff<String, String> p=new pairdiff<String,String>(\"ab\",\"cd\");\r\n\t\tp.setFirst(\"def\");\r\n\t\tString s=p.getFirst();\r\n\t\t//pair<int> p1=new pair<int>(1,2);//this is prrematative datatype so not allowed\r\n\t\tpairdiff<Integer,String> p1=new pairdiff<Integer,String>(1,\"temp\");\r\n\t\tpairdiff<Character,Character> p2=new pairdiff<>('a','b');\r\n\t\r\n\t\tint a=10;\r\n\t\tint b=12;\r\n\t\tint c=23;\r\n\t\tpairdiff<Integer,Integer> ip=new pairdiff<>(a,b);\r\n\t\t\r\n\t\t\r\n\tpairdiff<pairdiff<Integer,Integer>,Integer> p3=new pairdiff<>(ip,c);\t\r\n\t\r\n\tSystem.out.println(p3.getSecond());\r\n\tSystem.out.println(p3.getFirst().getFirst());\r\n\tSystem.out.println(p3.getFirst().getFirst());\r\n\t}", "public final AstValidator.tuple_return tuple() throws RecognitionException {\n AstValidator.tuple_return retval = new AstValidator.tuple_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree TUPLE_VAL436=null;\n AstValidator.literal_return literal437 =null;\n\n\n CommonTree TUPLE_VAL436_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:7: ( ^( TUPLE_VAL ( literal )* ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:9: ^( TUPLE_VAL ( literal )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n TUPLE_VAL436=(CommonTree)match(input,TUPLE_VAL,FOLLOW_TUPLE_VAL_in_tuple3574); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n TUPLE_VAL436_tree = (CommonTree)adaptor.dupNode(TUPLE_VAL436);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(TUPLE_VAL436_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:22: ( literal )*\n loop121:\n do {\n int alt121=2;\n int LA121_0 = input.LA(1);\n\n if ( (LA121_0==BIGDECIMALNUMBER||LA121_0==BIGINTEGERNUMBER||LA121_0==DOUBLENUMBER||LA121_0==FALSE||LA121_0==FLOATNUMBER||LA121_0==INTEGER||LA121_0==LONGINTEGER||LA121_0==MINUS||LA121_0==NULL||LA121_0==QUOTEDSTRING||LA121_0==TRUE||LA121_0==BAG_VAL||LA121_0==MAP_VAL||LA121_0==TUPLE_VAL) ) {\n alt121=1;\n }\n\n\n switch (alt121) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:22: literal\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_literal_in_tuple3576);\n \t literal437=literal();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, literal437.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop121;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private Tuple keyToTuple(ByteBuffer key, CfDef cfDef, AbstractType comparator) throws IOException\n {\n Tuple tuple = TupleFactory.getInstance().newTuple(1);\n addKeyToTuple(tuple, key, cfDef, comparator);\n return tuple;\n }", "@VTID(13)\r\n java.lang.String getTuple();", "public Tuple unify(Tuple other) {\n\t\tSubstitution subst = UnionFindBasedUnifier.fromTerms(this.elts, other.elts);\n\t\tif (subst != null) {\n\t\t\treturn new Tuple(subst.apply(this.elts));\n\t\t}\n\t\treturn null;\n\t}", "public final void entryRuleAstTypeTuple() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2173:1: ( ruleAstTypeTuple EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2174:1: ruleAstTypeTuple EOF\n {\n before(grammarAccess.getAstTypeTupleRule()); \n pushFollow(FOLLOW_ruleAstTypeTuple_in_entryRuleAstTypeTuple4574);\n ruleAstTypeTuple();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeTupleRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstTypeTuple4581); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public T caseTupleLiteralExpCS(TupleLiteralExpCS object) {\r\n return null;\r\n }", "public static ScoredTuple fromIntermediateTuple(Tuple intermediateTuple) throws ExecException\n {\n try {\n Double score = (Double)intermediateTuple.get(0);\n Tuple originalTuple = (Tuple)intermediateTuple.get(1);\n return new ScoredTuple(score, originalTuple);\n } catch (Exception e) {\n throw new RuntimeException(\"Cannot deserialize intermediate tuple: \"+intermediateTuple.toString(), e);\n }\n }", "public Tuple nextTuple() {\n\t\ttry {\n\t\t\treturn tr.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "AstroArg unpack(Astro litChars);", "public ITupleReference getTupleFromMetadataEntity(T metadataEntity) throws MetadataException, IOException;", "public static interface Tuple {\n\n\t}", "public Tuple()\n {\n // Creat a new tuple\n data = new byte[max_size];\n tuple_offset = 0;\n tuple_length = max_size;\n }", "private static Tuple tupleBuilder(String s) throws Exception {\n\n if (s.length() < 3 || s.charAt(0) != '(' || s.charAt(s.length() - 1) != ')') {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n\n s = s.substring(1, s.length() - 1); // \"abc\", +3, -7.5, -7.5f, 2e3\n String[] ss = s.split(\",\"); // [\"abc\" , +3, -7.5, -7.5f, 2e3]\n List<Object> list = new ArrayList<>();\n for (int i = 0; i < ss.length; i++) {\n String temp = ss[i].trim(); // ?i:int || \"abc\" || +3 || -7.5f || 2e3\n Object o = null;\n // type match\n if (temp.charAt(0) == '?') {\n int index = temp.indexOf(':');\n String name = temp.substring(1, index);\n String type = temp.substring(index + 1);\n if (type.equalsIgnoreCase(\"int\")) {\n type = TYPEMATCH_INTEGER_NAME;\n } else if (type.equalsIgnoreCase(\"float\")) {\n type = TYPEMATCH_FLOAT_NAME;\n } else if (type.equalsIgnoreCase(\"string\")) {\n type = TYPEMATCH_STRING_NAME;\n } else {\n System.out.print(\"Type match format is wrong. \");\n throw new Exception();\n }\n o = new ArrayList<String>(Arrays.asList(name, type));\n // type is string\n } else if (temp.charAt(0) == '\"' && temp.charAt(temp.length() - 1) == '\"') {\n o = new String(temp.substring(1, temp.length() - 1));\n // type is float\n } else if (temp.indexOf('.') != -1 || temp.indexOf('e') != -1 || temp.indexOf('E') != -1) {\n try {\n o = Float.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Float format is wrong. \");\n throw new Exception();\n }\n\n if ((Float) o == Float.POSITIVE_INFINITY) {\n System.out.print(\"Float is overflow. \");\n throw new Exception();\n }\n // type is int\n } else {\n try {\n o = Integer.valueOf(temp);\n } catch (Exception e) {\n System.out.print(\"Tuple format is wrong. \");\n throw new Exception();\n }\n }\n list.add(o);\n }\n Tuple t = new Tuple(list);\n return t;\n }", "public StructType unboxed() {\n return new StructType(IntStream.range(0, length()).mapToObj(i -> {\n StructField field = fields[i];\n if (field.type.isObject()) {\n field = new StructField(field.name, field.type.unboxed(), field.measure);\n }\n return field;\n }).toArray(StructField[]::new));\n }", "public Tuple getTupleField(int i) {\n Datum field = getField(i); // throws exception if field doesn't exist\n\n if (field instanceof Tuple) {\n return (Tuple) field;\n } else if (field instanceof DataBag) {\n DataBag b = (DataBag) field;\n if (b.size() == 1) {\n return b.iterator().next();\n }\n }\n\n throw newTupleAccessException(field, \"tuple\", i);\n }", "public static final PType<TupleN> tuples(PType... ptypes) {\n TypeInfo tupleInfo = createTupleTypeInfo(ptypes);\n return derived(TupleN.class, new TupleInFn<TupleN>(TupleFactory.TUPLEN, ptypes),\n new TupleOutFn<TupleN>(ptypes), orcs(tupleInfo), ptypes);\n }", "static ProjectedTuple castNumbers(ProjectedTuple tuple) {\n List<Object> newVaues = new ArrayList<>();\n for (int i = 0; i < tuple.values().size(); i++) {\n newVaues.add(convert(tuple.values().get(i), tuple.paths().get(i).returnType()));\n }\n\n return ProjectedTuple.of(tuple.paths(), newVaues);\n }", "private Mutation mutationFromTuple(Tuple t) throws IOException\n {\n Mutation mutation = new Mutation();\n if (t.get(1) == null)\n {\n if (allow_deletes)\n {\n mutation.deletion = new Deletion();\n mutation.deletion.predicate = new org.apache.cassandra.thrift.SlicePredicate();\n mutation.deletion.predicate.column_names = Arrays.asList(objToBB(t.get(0)));\n mutation.deletion.setTimestamp(FBUtilities.timestampMicros());\n }\n else\n throw new IOException(\"null found but deletes are disabled, set \" + PIG_ALLOW_DELETES +\n \"=true in environment or allow_deletes=true in URL to enable\");\n }\n else\n {\n org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column();\n column.setName(objToBB(t.get(0)));\n column.setValue(objToBB(t.get(1)));\n column.setTimestamp(FBUtilities.timestampMicros());\n mutation.column_or_supercolumn = new ColumnOrSuperColumn();\n mutation.column_or_supercolumn.column = column;\n }\n return mutation;\n }", "public Tuple(Datum fieldIn) {\n fields = new ArrayList<Datum>(1);\n fields.add(fieldIn);\n }", "public T caseTuple1(Tuple1 object)\n {\n return null;\n }", "private C_Decompose(Builder builder) {\n super(builder);\n }", "public T caseTuple2(Tuple2 object)\n {\n return null;\n }", "public TupleTypeLiteralElements getTupleTypeLiteralAccess() {\r\n\t\treturn pTupleTypeLiteral;\r\n\t}", "public T caseTuple3(Tuple3 object)\n {\n return null;\n }", "Hashtable<String, String> unpack_cursor(Cursor cursor,Hashtable<String, String> result)\n {\n \tif(cursor == null) return null;\n \tcursor.moveToFirst(); \n \tif(result == null)\n \tresult = new Hashtable<String, String>();\n \t\n \tint keyIndex = cursor.getColumnIndex(KEY_FIELD);\n\t\tint valueIndex = cursor.getColumnIndex(VALUE_FIELD);\n\t\twhile (cursor.moveToNext()) \n \t{\n \t\tresult.put(cursor.getString(keyIndex), cursor.getString(valueIndex));\n \t}\n \treturn result;\n }", "private S_Decompose(Builder builder) {\n super(builder);\n }", "public final EObject entryRuleTuplePartCS() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTuplePartCS = null;\n\n\n try {\n // InternalMyDsl.g:6032:52: (iv_ruleTuplePartCS= ruleTuplePartCS EOF )\n // InternalMyDsl.g:6033:2: iv_ruleTuplePartCS= ruleTuplePartCS EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTuplePartCSRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleTuplePartCS=ruleTuplePartCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleTuplePartCS; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public boolean isGeneralTuple();", "public TupleDesc(Type[] typeAr, String[] fieldAr) {\n assert typeAr.length > 0;\n this.types = typeAr;\n this.attrNames = fieldAr;\n this.numfields = typeAr.length;\n }", "public Tuple1(T value) {\n super(value);\n }", "public Object entryToObject(TupleInput ti) {\n BaseTuple bt = new BaseTuple(r);\n\n for(int i = 0; i < r.getNumberOfAttributes(); i++) {\n if(r.getAttributeType(i) == Globals.INTEGER) {\n bt.setAttributeValueByPosition(i, new Integer(ti.readInt()));\n } else {\n assert r.getAttributeType(i) == Globals.STRING;\n bt.setAttributeValueByPosition(i, ti.readString());\n }\n }\n\n return bt;\n }", "public TupleDesc() {\n columns = new ArrayList<>();\n }", "private static MultiItemTerminal toMultiItemTerminal(ByteBuffer... values)\n {\n return new Tuples.Value(values);\n }", "private static TsType extractOriginalTsType(TsType type) {\n if (type instanceof TsType.OptionalType) {\n return extractOriginalTsType(((TsType.OptionalType)type).type);\n }\n if (type instanceof TsType.UnionType) {\n TsType.UnionType union = (TsType.UnionType)type;\n List<TsType> originalTypes = new ArrayList<>();\n for (TsType curType : union.types) {\n if (isOriginalTsType(curType)) {\n originalTypes.add(curType);\n }\n }\n return originalTypes.size() == 1\n ? extractOriginalTsType(originalTypes.get(0))\n : type;\n }\n if (type instanceof TsType.BasicArrayType) {\n return extractOriginalTsType(((TsType.BasicArrayType)type).elementType);\n }\n return type;\n }", "public static List<Tuple> parseEverything(byte[] data) throws NullPointerException, ABICodecException {\n if (null == data) {\n throw new NullPointerException();\n }\n try {\n List<Tuple> processedTuples = new ArrayList<>();\n ByteBuffer buffer = ByteBuffer.wrap(data);\n \n // This loop is the top-level, so it can see leaf types, array modifiers, and null modifiers.\n while (buffer.hasRemaining()) {\n ABIToken token = TOKEN_MAP.get(buffer.get());\n RuntimeAssertionError.assertTrue(null != token);\n \n if (ABIToken.ARRAY == token) {\n // Pull out the type and length, since they are \"part\" of this token.\n ABIToken leafType = TOKEN_MAP.get(buffer.get());\n RuntimeAssertionError.assertTrue(leafType.isLeafType);\n int arrayLength = parseLength(buffer);\n Tuple array = parseArray(leafType, arrayLength, buffer);\n processedTuples.add(array);\n } else {\n Tuple object = parseNonArray(token, buffer);\n processedTuples.add(object);\n }\n }\n return processedTuples;\n } catch (Throwable t) {\n // If we fail to interpret this data, it is a codec exception.\n throw new ABICodecException(\"Failed to parse serialized data\", t);\n }\n }", "public Tuple(TupleDesc td) {\n\t\t\tfields = new ArrayList<Field>();\n\t\t\ttupleDesc = td;\n\t\t\n\t\t// some code goes here\n\t\t// 2- assign td and initialize the array of fields\n\n\t}", "public static RBTerm makeCompound(ConstructorType cons, RBTerm[] args) throws TypeModeError {\n\t\treturn cons.apply(makeTuple(args));\n\t}", "public interface IGeneralTuple {\r\n /**\r\n * Sets the values for a tuple.\r\n * @param values the tuple values\r\n */\r\n public void setValues(List<Object> values);\r\n /**\r\n * Returns the list of values in a tuple.\r\n * @return the list of values\r\n */\r\n public List<Object> getValues();\r\n /**\r\n * Returns the value located in a specific index of the list of values. \r\n * @param index the index in which the value is located\r\n * @return the value \r\n */\r\n public Object getValue(int index);\r\n /**\r\n * Returns whether it is a general tuple.\r\n * @return a boolean value indicating whether it is a general tuple\r\n */\r\n public boolean isGeneralTuple();\r\n}", "public final EObject entryRuleTupleLiteralPartCS() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTupleLiteralPartCS = null;\n\n\n try {\n // InternalMyDsl.g:6895:59: (iv_ruleTupleLiteralPartCS= ruleTupleLiteralPartCS EOF )\n // InternalMyDsl.g:6896:2: iv_ruleTupleLiteralPartCS= ruleTupleLiteralPartCS EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTupleLiteralPartCSRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleTupleLiteralPartCS=ruleTupleLiteralPartCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleTupleLiteralPartCS; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public Tuple(List<? extends Loyalty> c)\r\n\t\t{\r\n\t\t\tsuper(c);\r\n\t\t}", "@Override\n public BavetScoringTriTuple<A, B, C> createTuple(BavetAbstractTriTuple<A, B, C> parentTuple) {\n return new BavetScoringTriTuple<>(this, parentTuple);\n }", "static Tuple wrap(Tuple init, long sign) throws ExecException {\n\t\tTuple tup = tf.newTuple(2);\n\t\ttup.set(0, init.get(0));\n\t\ttup.set(1, sign);\n\t\t\n\t\tDataBag bag = bf.newDefaultBag();\n\t\tbag.add(tup);\n\t\t\n\t\treturn tf.newTuple(bag);\n\t}", "public Tuple() {\n this(new ArrayList<Object>());\n }", "public DataType decodeDataType(Decoder decoder) throws DecoderException {\n\t\tint el = decoder.openElement();\n\t\tif (el == ELEM_VOID.id()) {\n\t\t\tdecoder.closeElement(el);\n\t\t\treturn voidDt;\n\t\t}\n\t\tString name = \"\";\n\t\tlong id = 0;\n\t\tfor (;;) {\n\t\t\tint attribId = decoder.getNextAttributeId();\n\t\t\tif (attribId == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (attribId == ATTRIB_NAME.id()) {\n\t\t\t\tname = decoder.readString();\n\t\t\t}\n\t\t\telse if (attribId == ATTRIB_ID.id()) {\n\t\t\t\tid = decoder.readUnsignedInteger();\n\t\t\t}\n\t\t}\n\t\tif (el == ELEM_TYPEREF.id()) {\n\t\t\tdecoder.closeElement(el);\n\t\t\treturn findBaseType(name, id);\n\t\t}\n\t\tif (el == ELEM_DEF.id()) {\n\t\t\tdecoder.closeElementSkipping(el);\n\t\t\treturn findBaseType(name, id);\n\t\t}\n\t\tif (el != ELEM_TYPE.id()) {\n\t\t\tthrow new DecoderException(\"Expecting <type> element\");\n\t\t}\n\n\t\tif (name.length() != 0) {\n\t\t\tdecoder.closeElementSkipping(el);\n\t\t\treturn findBaseType(name, id);\n\t\t}\n\t\tString meta = decoder.readString(ATTRIB_METATYPE);\n\t\tDataType restype = null;\n\t\tif (meta.equals(\"ptr\")) {\n\t\t\tint size = (int) decoder.readSignedInteger(ATTRIB_SIZE);\n\t\t\tif (decoder.peekElement() != 0) {\n\t\t\t\tDataType dt = decodeDataType(decoder);\n\t\t\t\tboolean useDefaultSize = (size == dataOrganization.getPointerSize() ||\n\t\t\t\t\tsize > PointerDataType.MAX_POINTER_SIZE_BYTES);\n\t\t\t\trestype = new PointerDataType(dt, useDefaultSize ? -1 : size, progDataTypes);\n\t\t\t}\n\t\t}\n\t\telse if (meta.equals(\"array\")) {\n\t\t\tint arrsize = (int) decoder.readSignedInteger(ATTRIB_ARRAYSIZE);\n\t\t\tif (decoder.peekElement() != 0) {\n\t\t\t\tDataType dt = decodeDataType(decoder);\n\t\t\t\tif (dt == null || dt.getLength() == 0) {\n\t\t\t\t\tdt = DataType.DEFAULT;\n\t\t\t\t}\n\t\t\t\trestype = new ArrayDataType(dt, arrsize, dt.getLength(), progDataTypes);\n\t\t\t}\n\t\t}\n\t\telse if (meta.equals(\"spacebase\")) {\t\t// Typically the type of \"the whole stack\"\n\t\t\tdecoder.closeElementSkipping(el); \t\t// get rid of unused \"addr\" element\n\t\t\treturn voidDt;\n\t\t}\n\t\telse if (meta.equals(\"struct\")) {\n\t\t\t// We reach here if the decompiler invents a structure, apparently\n\t\t\t// this is a band-aid so that we don't blow up\n\t\t\t// just make an undefined data type of the appropriate size\n\t\t\tint size = (int) decoder.readSignedInteger(ATTRIB_SIZE);\n\t\t\tdecoder.closeElementSkipping(el);\n\t\t\treturn Undefined.getUndefinedDataType(size);\n\t\t}\n\t\telse if (meta.equals(\"int\")) {\n\t\t\tint size = (int) decoder.readSignedInteger(ATTRIB_SIZE);\n\t\t\tdecoder.closeElement(el);\n\t\t\treturn AbstractIntegerDataType.getSignedDataType(size, progDataTypes);\n\t\t}\n\t\telse if (meta.equals(\"uint\")) {\n\t\t\tint size = (int) decoder.readSignedInteger(ATTRIB_SIZE);\n\t\t\tdecoder.closeElement(el);\n\t\t\treturn AbstractIntegerDataType.getUnsignedDataType(size, progDataTypes);\n\t\t}\n\t\telse if (meta.equals(\"float\")) {\n\t\t\tint size = (int) decoder.readSignedInteger(ATTRIB_SIZE);\n\t\t\tdecoder.closeElement(el);\n\t\t\treturn AbstractFloatDataType.getFloatDataType(size, progDataTypes);\n\t\t}\n\t\telse if (meta.equals(\"partunion\")) {\n\t\t\tint size = (int) decoder.readSignedInteger(ATTRIB_SIZE);\n\t\t\tint offset = (int) decoder.readSignedInteger(ATTRIB_OFFSET);\n\t\t\tDataType dt = decodeDataType(decoder);\n\t\t\tdecoder.closeElement(el);\n\t\t\treturn new PartialUnion(progDataTypes, dt, offset, size);\n\t\t}\n\t\telse {\t// We typically reach here if the decompiler invents a new type\n\t\t\t\t// probably an unknown with a non-standard size\n\t\t\tint size = (int) decoder.readSignedInteger(ATTRIB_SIZE);\n\t\t\tdecoder.closeElementSkipping(el);\n\t\t\treturn Undefined.getUndefinedDataType(size).clone(progDataTypes);\n\t\t}\n\t\tif (restype == null) {\n\t\t\tthrow new DecoderException(\"Unable to resolve DataType\");\n\t\t}\n\t\tdecoder.closeElementSkipping(el);\n\t\treturn restype;\n\t}", "ComponentsType createComponentsType();", "PrimitiveIterator.OfLong bitTupleIterator(int tupleSize, int startIndex, BitOrder order);", "private static int decompose(long paramLong, DecomposeArgs paramDecomposeArgs)\n/* */ {\n/* 456 */ int i = getExtraDataIndex(paramLong);\n/* 457 */ paramDecomposeArgs.length = extraData[(i++)];\n/* */ \n/* 459 */ if ((paramDecomposeArgs.length & 0x80) > 0)\n/* */ {\n/* 461 */ int j = extraData[(i++)];\n/* 462 */ paramDecomposeArgs.cc = (0xFF & j >> 8);\n/* 463 */ paramDecomposeArgs.trailCC = (0xFF & j);\n/* */ }\n/* */ else {\n/* 466 */ paramDecomposeArgs.cc = (paramDecomposeArgs.trailCC = 0);\n/* */ }\n/* */ \n/* 469 */ paramDecomposeArgs.length &= 0x7F;\n/* 470 */ return i;\n/* */ }", "public interface CoordTupleString {\n\n /**\n * Accessor for the max tuple index\n * \n * @return the max tuple index\n */\n public abstract int maxIndex();\n\n /**\n * Accessor to determine the actual type managed.\n * \n * @return a Number the most directly corresponds to the\n * underlying managed type (Float for a float tuplestring,\n * Double for a double tuplestring, etc)\n */\n public abstract Number getPrimitiveType();\n\n /**\n * Accessor to retrieve a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a float[]\n */\n public abstract float[] getasFloat(int tuple);\n\n /**\n * Accessor to retrieve a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a double[]\n */\n public abstract double[] getasDouble(int tuple);\n\n /**\n * Accessor to retrieve a single value in a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @param val the index of the value in the tuple (the first val\n * is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a float\n */\n public abstract float getasFloat(int tuple, int val);\n\n /**\n * Accessor to retrieve a single value in a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @param val the index of the value in the tuple (the first val\n * is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a double\n */\n public abstract double getasDouble(int tuple, int val);\n}", "@Override\r\n\t\tpublic Pair<S, T> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "public static StructType STRUCT() {\n return new StructType();\n }", "public PremonPatTuple (PremonPat[] Ps) {\n this.Ps = Ps;\n PremonType[] Ts = new PremonType[Ps.length];\n bind = PremonCon.empty;\n for (int i=0; i<Ps.length; i++) {\n Ts[i] = Ps[i].type;\n bind = bind.comp (Ps[i].bind);\n }\n type = new PremonTypeTuple (Ts);\n }", "<C, PM> Variable<C, PM> createVariable();", "protected Object getSplValue(Attribute attribute, Tuple tuple) {\r\n\r\n\t\tType splType = attribute.getType();\r\n\t\tint index = attribute.getIndex();\r\n\t\t\r\n\t\tif (splType.getMetaType() == MetaType.INT8)\r\n\t\t\treturn tuple.getByte(index);\r\n\t\tif (splType.getMetaType() == MetaType.INT16)\r\n\t\t\treturn tuple.getShort(index);\r\n\t\tif (splType.getMetaType() == MetaType.INT32)\r\n\t\t\treturn tuple.getInt(index);\r\n\t\tif (splType.getMetaType() == MetaType.INT64)\r\n\t\t\treturn tuple.getLong(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.UINT8)\r\n\t\t\treturn tuple.getByte(index);\r\n\t\tif (splType.getMetaType() == MetaType.UINT16)\r\n\t\t\treturn tuple.getShort(index);\r\n\t\tif (splType.getMetaType() == MetaType.UINT32)\r\n\t\t\treturn tuple.getInt(index);\r\n\t\tif (splType.getMetaType() == MetaType.UINT64)\r\n\t\t\treturn tuple.getLong(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.BLOB)\r\n\t\t\treturn tuple.getBlob(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.BOOLEAN)\r\n\t\t\treturn tuple.getBoolean(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.DECIMAL32)\r\n\t\t\treturn tuple.getBigDecimal(index);\r\n\t\tif (splType.getMetaType() == MetaType.DECIMAL64)\r\n\t\t\treturn tuple.getBigDecimal(index);\r\n\t\tif (splType.getMetaType() == MetaType.DECIMAL128)\r\n\t\t\treturn tuple.getBigDecimal(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.FLOAT32)\r\n\t\t\treturn tuple.getFloat(index);\r\n\t\tif (splType.getMetaType() == MetaType.FLOAT64)\r\n\t\t\treturn tuple.getDouble(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.RSTRING)\r\n\t\t\treturn tuple.getString(index);\r\n\t\tif (splType.getMetaType() == MetaType.USTRING)\r\n\t\t\treturn tuple.getString(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.TIMESTAMP)\r\n\t\t\treturn tuple.getTimestamp(index).getSQLTimestamp();\r\n\r\n\t\tif (splType.getMetaType() == MetaType.XML)\r\n\t\t\treturn tuple.getXML(index);\r\n\r\n\t\t// Task 39870 Update JDBC toolkit with respect to optional data type support\r\n\t\t// it compares the contain of SPL type delivers by SPL application with data types \r\n\t\t// The \"MetaType.OPTIONAL)\" and \"tuple.getOptional\" was not used due of \r\n\t\t// compatibility with older Streams Version without optional type\r\n\t\tif(splType.getLanguageType().toUpperCase().contains(\"OPTIONAL\"))\r\n\t\t\treturn tuple.getObject(index);\r\n/*\r\n\t\tif (splType.getMetaType() == MetaType.OPTIONAL)\r\n\t\t{\r\n\t\t\tif ((tuple.getOptional(index, attribute.getType().getAsCompositeElementType()).isPresent()))\r\n\t\t {\r\n\t\t \treturn tuple.getOptional(index, attribute.getType().getAsCompositeElementType()).get();\r\n\t\t }\r\n\t\t else\r\n\t\t \treturn null;\r\n\t\t}\r\n*/\t\t\t\t\t\r\n\t\tLOGGER.log(LogLevel.ERROR, Messages.getString(\"JDBC_SPL_TYPE_NOT_SUPPORT\"), splType.getMetaType()); \r\n\t\treturn null;\r\n\r\n\t}", "private Struct parseType() {\n check(Token.IDENT);\n\n String identName = token.string;\n SymObject object = find(identName);\n assertIsType(object);\n Struct type = object.type;\n\n if (nextToken.kind == Token.LBRACK) {\n check(Token.LBRACK);\n check(Token.RBRACK);\n\n type = new Struct(Struct.KIND_ARRAY, type);\n }\n\n return type;\n }", "public TupleDesc getTupleDesc() {\n return td;\n }", "public Tuple getModel();", "public AvroTupleWrapper(final T o) {\n avroObject = o;\n }", "public final AstValidator.bag_type_return bag_type() throws RecognitionException {\n AstValidator.bag_type_return retval = new AstValidator.bag_type_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree BAG_TYPE104=null;\n CommonTree IDENTIFIER105=null;\n AstValidator.tuple_type_return tuple_type106 =null;\n\n\n CommonTree BAG_TYPE104_tree=null;\n CommonTree IDENTIFIER105_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:10: ( ^( BAG_TYPE ( IDENTIFIER )? ( tuple_type )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:12: ^( BAG_TYPE ( IDENTIFIER )? ( tuple_type )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n BAG_TYPE104=(CommonTree)match(input,BAG_TYPE,FOLLOW_BAG_TYPE_in_bag_type1157); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n BAG_TYPE104_tree = (CommonTree)adaptor.dupNode(BAG_TYPE104);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(BAG_TYPE104_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:24: ( IDENTIFIER )?\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0==IDENTIFIER) ) {\n alt27=1;\n }\n switch (alt27) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:24: IDENTIFIER\n {\n _last = (CommonTree)input.LT(1);\n IDENTIFIER105=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_bag_type1159); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IDENTIFIER105_tree = (CommonTree)adaptor.dupNode(IDENTIFIER105);\n\n\n adaptor.addChild(root_1, IDENTIFIER105_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:36: ( tuple_type )?\n int alt28=2;\n int LA28_0 = input.LA(1);\n\n if ( (LA28_0==TUPLE_TYPE) ) {\n alt28=1;\n }\n switch (alt28) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:36: tuple_type\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_tuple_type_in_bag_type1162);\n tuple_type106=tuple_type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, tuple_type106.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private Object deserializeStruct(GenericData.Record datum, Schema fileSchema, StructTypeInfo columnType)\n throws AvroSerdeException {\n List<TypeInfo> innerFieldTypes = columnType.getAllStructFieldTypeInfos();\n List<String> innerFieldNames = columnType.getAllStructFieldNames();\n List<Object> innerObjectRow = new ArrayList<Object>(innerFieldTypes.size());\n\n return workerBase(innerObjectRow, fileSchema, innerFieldNames, innerFieldTypes, datum);\n }", "@Override\r\n\t\tpublic hust.idc.util.pair.UnorderedPair<E> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public TupleDesc getTupleDesc() {\n \treturn tupleDesc;\n }", "public TupleDesc getTupleDesc() {\n // some code goes here\n return td;\n }", "public final EObject entryRuleTupleLiteralExpCS() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTupleLiteralExpCS = null;\n\n\n try {\n // InternalMyDsl.g:6820:58: (iv_ruleTupleLiteralExpCS= ruleTupleLiteralExpCS EOF )\n // InternalMyDsl.g:6821:2: iv_ruleTupleLiteralExpCS= ruleTupleLiteralExpCS EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTupleLiteralExpCSRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleTupleLiteralExpCS=ruleTupleLiteralExpCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleTupleLiteralExpCS; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }" ]
[ "0.58867824", "0.56663376", "0.5625366", "0.5613145", "0.55868894", "0.556699", "0.5541185", "0.5486098", "0.53649443", "0.53571945", "0.53211653", "0.52642936", "0.5235354", "0.5226492", "0.5221703", "0.51980543", "0.5193301", "0.51782554", "0.51727045", "0.5087873", "0.5063825", "0.5001183", "0.48938683", "0.48651198", "0.4840252", "0.48319492", "0.48151436", "0.4787679", "0.47846657", "0.47820288", "0.47459522", "0.47296888", "0.46761551", "0.46586353", "0.46350813", "0.46238118", "0.4618388", "0.45980483", "0.45976126", "0.45857626", "0.4572927", "0.45238143", "0.4516916", "0.44863087", "0.44847602", "0.44835576", "0.4481868", "0.44710928", "0.44685692", "0.44606328", "0.44491544", "0.44406325", "0.44080725", "0.4397286", "0.43883598", "0.43873426", "0.43824154", "0.43673423", "0.4360805", "0.43586597", "0.4352734", "0.4339656", "0.4333584", "0.4332917", "0.4328071", "0.4322704", "0.43213254", "0.43017483", "0.42978176", "0.4294574", "0.42881405", "0.42688942", "0.42663506", "0.4259124", "0.42571485", "0.4247899", "0.42278045", "0.42140242", "0.4213424", "0.4209947", "0.4208284", "0.4202455", "0.4202358", "0.41998187", "0.4182415", "0.41817558", "0.41753846", "0.41709217", "0.4167886", "0.41657525", "0.4156942", "0.4155921", "0.41542658", "0.41540772", "0.4151953", "0.4149821", "0.41482818", "0.41453537", "0.41435707", "0.41293097" ]
0.590007
0
decompose the query to store the parameters in a map
public static Map<String, String> getQueryMap(String query) throws UnsupportedEncodingException { String[] params = query.split("&"); Map<String, String> map = new HashMap<String, String>(params.length); for (String param : params) { String[] keyValue = param.split("="); map.put(keyValue[0], URLDecoder.decode(keyValue[1], "UTF-8")); } return map; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<String, String> queryToMap(String query){\n Map<String, String> result = new HashMap<String, String>();\n for (String param : query.split(\"&\")) {\n String pair[] = param.split(\"=\");\n if (pair.length>1) {\n result.put(pair[0], pair[1]);\n }else{\n result.put(pair[0], \"\");\n }\n }\n return result;\n }", "public static Map<String, String> queryToMap(String query) {\n\t\tMap<String, String> result = new HashMap<String, String>();\n\t\tfor (String param : query.split(\"&\")) {\n\t\t\tString pair[] = param.split(\"=\");\n\t\t\tif (pair.length > 1) {\n\t\t\t\tresult.put(pair[0], pair[1]);\n\t\t\t} else {\n\t\t\t\tresult.put(pair[0], \"\");\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static Map<String, String> queryToMap(String query) {\n\t\tMap<String, String> result = new HashMap<String, String>();\n\t\tfor (String param : query.split(\"&\")) {\n\t\t\tString pair[] = param.split(\"=\");\n\t\t\tif (pair.length > 1) {\n\t\t\t\tresult.put(pair[0], pair[1]);\n\t\t\t} else {\n\t\t\t\tresult.put(pair[0], \"\");\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "protected static Map<String, List<String>> decodeParameters(String queryString) {\n\t\tMap<String, List<String>> parms = new HashMap<String, List<String>>();\n\t\tif (queryString != null) {\n\t\t\tStringTokenizer st = new StringTokenizer(queryString, \"&\");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString e = st.nextToken();\n\t\t\t\tint sep = e.indexOf('=');\n\t\t\t\tString propertyName = sep >= 0 ? decodePercent(e.substring(0, sep)).trim()\n\t\t\t\t\t\t: decodePercent(e).trim();\n\t\t\t\tif (!parms.containsKey(propertyName)) {\n\t\t\t\t\tparms.put(propertyName, new ArrayList<String>());\n\t\t\t\t}\n\t\t\t\tString propertyValue = sep >= 0 ? decodePercent(e.substring(sep + 1)) : null;\n\t\t\t\tif (propertyValue != null) {\n\t\t\t\t\tparms.get(propertyName).add(propertyValue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn parms;\n\t}", "public static Map<String, String> getQueryMap(String query) { \n Map<String, String> qmap = new HashMap<String, String>(); \n if (StringUtils.isEmpty(query)) {\n return qmap;\n }\n String[] params = query.split(\"&\"); \n for (String param : params) {\n String[] pair = param.split(\"=\");\n String name = pair[0];\n String value = \"\";\n if (pair.length > 1) {\n value = StringUtil.urlDecode(pair[1]);\n }\n qmap.put(name, value); \n } \n return qmap; \n }", "@SuppressWarnings(\"null\")\n\tpublic QueryParameter parseQuery(String queryString) {\n\t\t\n/*\n\t\t * extract the name of the file from the query. File name can be found after the\n\t\t * \"from\" clause.\n\t\t */\n\n\t\t/*\n\t\t * extract the order by fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"order by\" clause in the query, if at all\n\t\t * the order by clause exists. For eg: select city,winner,team1,team2 from\n\t\t * data/ipl.csv order by city from the query mentioned above, we need to extract\n\t\t * \"city\". Please note that we can have more than one order by fields.\n\t\t */\n\n\t\t/*\n\t\t * extract the group by fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"group by\" clause in the query, if at all\n\t\t * the group by clause exists. For eg: select city,max(win_by_runs) from\n\t\t * data/ipl.csv group by city from the query mentioned above, we need to extract\n\t\t * \"city\". Please note that we can have more than one group by fields.\n\t\t */\n\n\t\t /*\n\t\t * extract the selected fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"select\" clause followed by a space from\n\t\t * the query string. For eg: select city,win_by_runs from data/ipl.csv from the\n\t\t * query mentioned above, we need to extract \"city\" and \"win_by_runs\". Please\n\t\t * note that we might have a field containing name \"from_date\" or \"from_hrs\".\n\t\t * Hence, consider this while parsing.\n\t\t */\n\n\t\t/*\n\t\t * extract the conditions from the query string(if exists). for each condition,\n\t\t * we need to capture the following: 1. Name of field 2. condition 3. value\n\t\t * \n\t\t * For eg: select city,winner,team1,team2,player_of_match from data/ipl.csv\n\t\t * where season >= 2008 or toss_decision != bat\n\t\t * \n\t\t * here, for the first condition, \"season>=2008\" we need to capture: 1. Name of\n\t\t * field: season 2. condition: >= 3. value: 2008\n\t\t * \n\t\t * the query might contain multiple conditions separated by OR/AND operators.\n\t\t * Please consider this while parsing the conditions.\n\t\t * \n\t\t */\n\n\t\t /*\n\t\t * extract the logical operators(AND/OR) from the query, if at all it is\n\t\t * present. For eg: select city,winner,team1,team2,player_of_match from\n\t\t * data/ipl.csv where season >= 2008 or toss_decision != bat and city =\n\t\t * bangalore\n\t\t * \n\t\t * the query mentioned above in the example should return a List of Strings\n\t\t * containing [or,and]\n\t\t */\n\n\t\t/*\n\t\t * extract the aggregate functions from the query. The presence of the aggregate\n\t\t * functions can determined if we have either \"min\" or \"max\" or \"sum\" or \"count\"\n\t\t * or \"avg\" followed by opening braces\"(\" after \"select\" clause in the query\n\t\t * string. in case it is present, then we will have to extract the same. For\n\t\t * each aggregate functions, we need to know the following: 1. type of aggregate\n\t\t * function(min/max/count/sum/avg) 2. field on which the aggregate function is\n\t\t * being applied\n\t\t * \n\t\t * Please note that more than one aggregate function can be present in a query\n\t\t * \n\t\t * \n\t\t */\n\n\t\tString file = null;\n\t\tList<Restriction> restrictions = new ArrayList<Restriction>();\n\t\tList<String> logicalOperators = new ArrayList<String>();\n\t\tList<String> fields = new ArrayList<String>();;\n\t\tList<AggregateFunction> aggregateFunction = new ArrayList<AggregateFunction>();\n\t\tList<String> groupByFields = new ArrayList<String>();;\n\t\tList<String> orderByFields = new ArrayList<String>();;\n\t\tString baseQuery=null;\n\t\n\t\tfile = getFile(queryString);\n\n\t\t\n\t\tString[] conditions = getConditions(queryString);\n\t\tif(conditions!=null) {\n\t\tRestriction[] restriction = new Restriction[conditions.length];\n\t\t\n\t\tfor (int i = 0; i < conditions.length; i++) {\n\t\t\trestriction[i] = new Restriction();\n\t\t\t\n\t\t\tString operator=null;\n\t\t\tString value=null;\n\t\t\tString property=null;\n\t\t\t if(conditions[i].contains(\"<=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"<=\");\n\t\t\t\toperator=\"<=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\">=\")) {\n\t\t\t\tString[] split = conditions[i].split(\">=\");\n\t\t\t\toperator=\">=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\">\")) {\n\t\t\t\tString[] split = conditions[i].split(\">\");\n\t\t\t\toperator=\">\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"!=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"!=\");\n\t\t\t\toperator=\"!=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"=\");\n\t\t\t\toperator=\"=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t if(value.contains(\"'\")) {\n\t\t\t\t\t value= value.replaceAll(\"'\",\"\").trim();\n\t\t\t\t }\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"<\")) {\n\t\t\t\tString[] split = conditions[i].split(\"<\");\n\t\t\t\toperator=\"<\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\t \n\t\t\t\n\t\t\trestriction[i].setCondition(operator);\n\t\t\trestriction[i].setPropertyName(property);\n\t\t\trestriction[i].setPropertyValue(value);\n\t\t\trestrictions.add(restriction[i]);\n\n\t\t}\n\t\t}\n\t\n\t\tString[] operators = getLogicalOperators(queryString);\n\t\tif(operators!=null) {\n\t\tfor (String op : operators) {\n\t\t\tlogicalOperators.add(op);\n\t\t}\n\t\t}\n\t\t\n\t\tString[] filds = getFields(queryString);\n\t\tif(filds!=null) {\n\t\tfor (String field : filds) {\n\t\t\tfields.add(field);\n\t\t}\n\t\t}\n\t\t\n\t\tString[] aggregationVal = getAggregateFunctions(queryString);\n\t\tif(aggregationVal!=null) {\n\t\tAggregateFunction[] aggregation = new AggregateFunction[aggregationVal.length];\n\t\tfor (int i = 0; i < aggregationVal.length; i++) {\n\t\t\taggregation[i] = new AggregateFunction();\n\t\t\tString[] split = (aggregationVal[i].replace(\"(\", \" \")).split(\" \");\n\t\t\tSystem.out.println(split[0]);\n\t\t\tSystem.out.println(split[1].replace(\")\", \"\").trim());\n\t\t\t\n\t\t\taggregation[i].setFunction(split[0]);\n\t\t\taggregation[i].setField(split[1].replace(\")\", \"\").trim());\n\t\t\taggregateFunction.add(aggregation[i]);\n\n\t\t}\n\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\tString[] groupBy = getGroupByFields(queryString);\n\t\tif(groupBy!=null) {\n\t\tfor (String group : groupBy) {\n\t\t\tgroupByFields.add(group);\n\t\t}\n\t\t}\n\t\n\t\tString[] orderBy = getOrderByFields(queryString);\n\t\tif(orderBy!=null) {\n\t\tfor (String order : orderBy) {\n\t\t\torderByFields.add(order);\n\t\t}\n\t\t}\n\t\tqueryParameter.setFile(file);\n\t\tif(restrictions.size()!=0) {\n\t\t\tqueryParameter.setRestrictions(restrictions);\n\t\t}\n\t\telse {\n\t\t\tqueryParameter.setRestrictions(null);\n\t\t}\n\t\tif(logicalOperators.size()!=0) {\n\t\tqueryParameter.setLogicalOperators(logicalOperators);\n\t\t}\n\t\telse {\n\t\t\tqueryParameter.setLogicalOperators(null);\n\t\t}\n\t\tbaseQuery=getBaseQuery(queryString);\n\t\t\n\t\tqueryParameter.setFields(fields);\n\t\tqueryParameter.setAggregateFunctions(aggregateFunction);\n\t\tqueryParameter.setGroupByFields(groupByFields);\n\t\tqueryParameter.setOrderByFields(orderByFields);\n\t\tqueryParameter.setBaseQuery(baseQuery.trim());\n\t\treturn queryParameter;\n\n\t}", "static String parse(String query, Map paramMap) {\n int length = query.length();\n StringBuilder parsedQuery = new StringBuilder(length);\n boolean inSingleQuote = false;\n boolean inDoubleQuote = false;\n int index = 1;\n\n for (int i = 0; i < length; i++) {\n char c = query.charAt(i);\n if (inSingleQuote) {\n if (c == '\\'') {\n inSingleQuote = false;\n }\n } else if (inDoubleQuote) {\n if (c == '\"') {\n inDoubleQuote = false;\n }\n } else {\n if (c == '\\'') {\n inSingleQuote = true;\n } else if (c == '\"') {\n inDoubleQuote = true;\n } else if (c == ':' && i + 1 < length && Character.isJavaIdentifierStart(query.charAt(i + 1))) {\n int j = i + 2;\n while (j < length && Character.isJavaIdentifierPart(query.charAt(j))) {\n j++;\n }\n String name = query.substring(i + 1, j);\n c = '?'; // replace the parameter with a question mark\n i += name.length(); // skip past the end if the parameter\n\n List indexList = (List) paramMap.get(name);\n if (indexList == null) {\n indexList = new LinkedList();\n paramMap.put(name, indexList);\n }\n indexList.add(index);\n\n index++;\n }\n }\n parsedQuery.append(c);\n }\n\n // replace the lists of Integer objects with arrays of ints\n for (Object o : paramMap.entrySet()) {\n Map.Entry entry = (Map.Entry) o;\n List list = (List) entry.getValue();\n int[] indexes = new int[list.size()];\n int i = 0;\n for (Object o1 : list) {\n Integer x = (Integer) o1;\n indexes[i++] = x;\n }\n entry.setValue(indexes);\n }\n\n return parsedQuery.toString();\n }", "protected static Map<String, Object> prepareQueryForSelection(JsonObject parameters) {\n Map<String, Object> queryFilters = new HashMap<String, Object>();\n\n // Date fields\n processDateFilter(Entity.CREATION_DATE, parameters, queryFilters);\n processDateFilter(Entity.MODIFICATION_DATE, parameters, queryFilters);\n\n // String fields\n processStringFilter(Consumer.EMAIL, parameters, queryFilters);\n processStringFilter(Consumer.JABBER_ID, parameters, queryFilters);\n processStringFilter(Consumer.NAME, parameters, queryFilters);\n processStringFilter(Consumer.TWITTER_ID, parameters, queryFilters);\n\n // Long fields\n processLongFilter(Consumer.FACEBOOK_ID, parameters, queryFilters);\n\n return queryFilters;\n }", "Map<String, String[]> getParameterMap();", "private static Map<String, String> parseQueryString(String queryString) throws UnsupportedEncodingException {\n if (queryString == null || queryString.isEmpty()) {\n return Collections.EMPTY_MAP;\n }\n\n String[] queryParams = queryString.split(\"&\");\n Map<String, String> map = new HashMap<>();\n\n for (String queryParam : queryParams) {\n int index = queryParam.indexOf('=');\n String key = queryParam.substring(0, index);\n key = URLDecoder.decode(key, \"UTF-8\");\n\n String value = null;\n\n if (index > 0) {\n value = queryParam.substring(index + 1);\n value = URLDecoder.decode(value, \"UTF-8\");\n }\n\n map.put(key, value);\n }\n\n return map;\n }", "private Map<String, List<String>> parseQueryString(String queryString) {\n\n // Create the appended parameters map:\n // key is the parameter name as a string,\n // value is a List of parameter values (List of String).\n Map<String, List<String>> appendedParameters = new HashMap<String, List<String>>();\n\n // Parse the appended query string.\n if (log.isDebugEnabled()) {\n log.debug(\"Parsing appended query string: \" + queryString);\n }\n try {\n StringTokenizer st = new StringTokenizer(queryString, \"&\", false);\n while (st.hasMoreTokens()) {\n String token = st.nextToken();\n int equalIndex = token.indexOf(\"=\");\n if (equalIndex > 0) {\n String value;\n String key = URLDecoder.decode( token.substring(0, equalIndex), \"utf-8\" );\n if (equalIndex < token.length() - 1) {\n value = URLDecoder.decode( token.substring(equalIndex + 1), \"utf-8\" );\n }\n else {\n value = \"\";\n }\n List<String> values = appendedParameters.get(key);\n if (values == null) {\n values = new ArrayList<String>();\n }\n values.add(value);\n appendedParameters.put(key, values);\n }\n }\n } catch (UnsupportedEncodingException e) {\n String es = \"Error decode parameter string\";\n log.error(es, e);\n throw new IllegalStateException(es, e);\n }\n if (log.isDebugEnabled()) {\n log.debug(appendedParameters.size() + \" parameters appended.\");\n }\n return appendedParameters;\n }", "private void decodeParms(String parms, Map<String, String> p) {\n\t\t\tif (parms == null) {\n\t\t\t\tthis.queryParameterString = \"\";\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis.queryParameterString = parms;\n\t\t\tStringTokenizer st = new StringTokenizer(parms, \"&\");\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString e = st.nextToken();\n\t\t\t\tint sep = e.indexOf('=');\n\t\t\t\tif (sep >= 0) {\n\t\t\t\t\tp.put(decodePercent(e.substring(0, sep)).trim(),\n\t\t\t\t\t\t\tdecodePercent(e.substring(sep + 1)));\n\t\t\t\t} else {\n\t\t\t\t\tp.put(decodePercent(e).trim(), \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void fillMap(String[] querys) {\r\n\r\n\t\tLOG.info(\"fillMap\");\r\n\r\n\t\tquerysMap = new HashMap<String, String>();\r\n\t\t\r\n\t\tfor (String query : querys) {\r\n\t\t\t\r\n\t\t\tString[] temp = getStringArray(query, START_QUERY_PATTERN);\r\n\t\t\t\r\n\t\t\tif (temp != null && temp.length == 2) {\r\n\t\t\t\t\r\n\t\t\t\ttemp[0] = temp[0].replaceAll(\"\\\\P{Alnum}\", \"\");\r\n\t\t\t\tquerysMap.put(temp[0], temp[1].trim());\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOG.error(\"El array es nulo o la longitud no es la esperada\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tLOG.info(\"END fillMap\");\r\n\r\n\t}", "protected ListMap<Integer, CD4Details> makeResultsMapFromSQL(String sql, Map<String, Object> substitutions) {\n\t\tList<Object> data = Context.getService(MohCoreService.class).executeSqlQuery(sql, substitutions);\n\t\treturn makeResultsMap(data);\n\t}", "public Map<String, String> getQueryParams(QueryInfo queryInfo) {\n Map<String, String> queryParams = super.getQueryParams(queryInfo);\n String str = queryParams.get(\"query\");\n if (!TextUtils.isEmpty(str)) {\n String queryExtras = SearchConfig.get().getSuggestionConfig().getQueryExtras(str);\n if (!TextUtils.isEmpty(queryExtras)) {\n queryParams.put(\"extraInfo\", queryExtras);\n Log.d(\"SearchSource\", \"On append extra [%s] to query [%s]\", queryExtras, str);\n }\n }\n queryParams.remove(\"enableShortcut\");\n return queryParams;\n }", "public Map<String, String> getQuery() {\n\t\treturn Collections.unmodifiableMap(query);\n\t}", "private Map<String, String> getParameters(HttpServletRequest request) {\n Map<String, String> params = new HashMap<>();\n for (Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n String paramName = entry.getKey();\n if (!Arrays.asList(NOT_PARAM_FIELDS).contains(paramName)) {\n String paramValue = null != entry.getValue() ? String.join(Constants.COMMA, entry.getValue()) : Constants.EMPTY_STRING;\n params.put(paramName, paramValue);\n }\n }\n return params;\n }", "protected abstract String createSnpSearchQueryStr(HashMap<String,String> paramMap);", "String processQuery(String query);", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "private HashMap<String,String> createQueryMap() {\n\t\t\n\t\tHashMap<String, String> map = new HashMap<String, String>();\n\t\t\n\t\t// Only include Pages with the CenterNet Event template\n\t\tmap.put(\"type\",\"cq:Page\");\n\t\tmap.put(\"path\", Constants.EVENTS);\n\t\tmap.put(\"property\",\"jcr:content/cq:template\");\n\t map.put(\"property.value\", Constants.EVENT_TEMPLATE);\n\n\t if (tags != null) {\n\t \tmap = addTagFilter(map);\n\t }\n\n\t // Only include Events whose start time is in the future\n\t map.put(\"relativedaterange.property\", PN_QUERY_START_TIME);\n\t map.put(\"relativedaterange.lowerBound\", \"-0d\");\n\t \n\t // Include all hits\n\t //map.put(\"p.limit\", maxNum.toString());\n\t map.put(\"p.limit\", maxNum);\n\t map.put(\"p.guessTotal\", \"true\");\n\t \n\t // Order by Start Time\n\t map.put(\"orderby\", PN_QUERY_START_TIME);\n\t map.put(\"orderby.sort\", \"asc\");\n\t \n\t\treturn map;\n\t\t\n\t}", "private static Map<String, String> getQueryParams(final URI uri) {\n final String[] params = uri.getQuery().split(\"&\");\n return new HashMap<String, String>(params.length) {{\n for (String param : params) {\n final String[] kv = param.split(\"=\");\n final String name = kv[0];\n final String value;\n if (kv.length == 2) {\n value = kv[1];\n } else {\n value = \"\";\n }\n\n put(name,\n value);\n }\n }};\n }", "private DirectDbQuery(String query, String database,\n QueryLanguage language, Map<String, Object> paramMap) {\n this.query = query;\n this.database = database;\n this.queryLanguage = language;\n this.paramMap = paramMap;\n }", "private static Map buildQueryMap(List<Map> listParam, int size) {\n Map filterMap = putMap(null, \"script\", putMap(null, \"script\", putMap(null, \"source\", \"doc['message'].values.length==0\")));\n Map boolMap = new HashMap();\n putMap(boolMap, \"must\", listParam);\n putMap(boolMap, \"filter\", filterMap);\n\n Map root = new HashMap();\n putMap(root, \"query\", putMap(null, \"bool\", boolMap));\n putMap(root, \"from\", 0);\n putMap(root, \"size\", size);\n\n return root;\n }", "private Map<String, Object> parseParameters(String parameters) {\n Map<String, Object> parameterMap = new HashMap<>();\n\n String[] details = parameters.split(\",\");\n for (String detail : details) {\n String key = \"\";\n String value = \"\";\n try {\n String[] d = detail.split(\"=\");\n key = d[0].trim();\n value = d[1].trim();\n }\n catch (Exception ignored) {\n }\n\n if (StringUtils.isAnyBlank(key, value)) {\n continue;\n }\n\n switch (key.toLowerCase(Locale.ROOT)) {\n case \"escape\":\n parameterMap.put(key, Boolean.parseBoolean(value));\n break;\n\n default:\n break;\n }\n }\n\n return parameterMap;\n }", "Map<String, String> getParameters();", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }", "ZZW queryByHql(String hql,Map<String,Object> param);", "private Map<String,Object> getParams(String nombre , int id){\n\t\t\tMap <String,Object> mapa;\n\t\t\tmapa = new HashMap<String,Object>();\n\t\t\t//Pasar parametros en de JasperReport\n\t\t\tmapa.put(\"alumnoNombre\", nombre);\n\t\t\tmapa.put(\"alumnoId\", id);\n\t\t\t\n\t\t\treturn mapa;\n\t\t\t\n\t\t}", "protected abstract List<Object> getParamValues(SqlKeyWord sqlKeyWord, Object dbEntity, TableInfo tableInfo, Map<String, Object> params) throws Exception;", "protected Map<String, Object> paserRequetToHashMap(HttpServletRequest req){\n\t\t\n\t\tMap<String,Object> params = new HashMap<>();\n\t\t\n\t\tEnumeration<?> enumber = req.getParameterNames();\n\n\t\twhile (enumber.hasMoreElements()) {\n\t\t\tString key = enumber.nextElement().toString();\n\t\t\tObject value = req.getParameter(key);\n\t\t\tparams.put(key, value); \n\t\t}\n\t\t\n\t\t\n\t\treturn params;\n\t}", "private Tuple<String,String> extractQueryAndQueryExecution(String query){\n\t\tString[] elements = query.split(\"--\");\n\t\treturn new Tuple<String,String>(elements[0].trim(), elements[1].trim());\n\t}", "private static HashMap resolveParameters(String type,String parametersXML, Map parameters)throws Exception{\n\t\tlogger.debug(\"IN\");\n\t\tDataSetParametersList dsList=new DataSetParametersList(parametersXML);\n\n\t\tHashMap usedParameters=null;\n\t\t// if in query case\n\t\tif(type.equals(\"1\")){\n\n\t\t\tusedParameters=new HashMap();\n\t\t\t// if in query case I must do conversion of parameter value conforming to their type\n\t\t\tfor (Iterator iterator = dsList.getItems().iterator(); iterator.hasNext();) {\n\t\t\t\tDataSetParameterItem item= (DataSetParameterItem) iterator.next();\n\t\t\t\tString name=item.getName();\n\t\t\t\tString typePar=item.getType();\n\n\t\t\t\tString value=(String)parameters.get(name);\n\t\t\t\tboolean singleValue=true;\n\t\t\t\tif(value==null){\n\t\t\t\t\tthrow new Exception();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(typePar.equalsIgnoreCase(\"String\")&& !value.startsWith(\"'\")){\n\t\t\t\t\t\tvalue=\"'\"+value+\"'\";\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(typePar.equalsIgnoreCase(\"Number\")){\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t StringTokenizer st = new StringTokenizer(value);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t String numTemp = \"\";\n\t\t\t\t\t\t\t Double doubleValue = null;\n\t\t\t\t\t\t\t value = \"\";\n\t\t\t\t\t\t\t while(st.hasMoreTokens()){\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t numTemp = st.nextToken(\"'\");\n\t\t\t\t\t\t\t\t if(numTemp.equals(\",\")){\n\t\t\t\t\t\t\t\t\t continue;\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t doubleValue=new Double(Double.parseDouble(numTemp));\n\t\t\t\t\t\t\t\t value = value + doubleValue.toString();\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t if(st.hasMoreTokens()){\n\t\t\t\t\t\t\t\t\t value = value + \",\";\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t \n\t\t\t \t\t } catch (NumberFormatException e) {\n\t\t\t \t\t \t throw new Exception();\n\t\t\t \t\t }\n\t\t\t\t\t}\n\t\t\t\t\telse if(typePar.equalsIgnoreCase(\"Date\")){\n\t\t\t\t\t\tvalue=value;\n\t\t\t\t\t}\n\t\t\t\t\tusedParameters.put(name, value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\tlogger.debug(\"OUT\");\n\t\treturn usedParameters;\n\t}", "public Map<String, Object> getParameterMap() {\n\t\treturn queryParameters;\n\t}", "public Map getQueryParameterMap(PortletWindow window) {\n return queryParams;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"complex_id\",complex_id);\n Log.d(TAG, \"complex_id: \"+params);\n\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n params.put(\"resortName\", resortName);\n params.put(\"latitude\", String.valueOf(lat));\n params.put(\"longitude\", String.valueOf(lon));\n\n\n return params;\n }", "public Map getQueryParameterMap() {\n return queryParams;\n }", "@Override\r\n public MultivaluedMap<String, String> getQueryParameters(boolean arg0) {\n return queryParameters;\r\n }", "@Override\r\n public MultivaluedMap<String, String> getQueryParameters() {\n return queryParameters;\r\n }", "private Map<String, ?> parsePropertyValues(ServletRequest request, ServletRequestDataBinder binder) {\n Map<String, Object> params = new TreeMap<>();\n Assert.notNull(request, \"Request must not be null\");\n Enumeration<?> paramNames = request.getParameterNames();\n Map<String, String> parameterMappings = getParameterMappings(binder);\n while (paramNames != null && paramNames.hasMoreElements()) {\n String paramName = (String) paramNames.nextElement();\n String[] values = request.getParameterValues(paramName);\n\n String fieldName = parameterMappings.get(paramName);\n // no annotation exists, use the default - the param name=field name\n if (fieldName == null) {\n fieldName = paramName;\n }\n\n if (values == null || values.length == 0) {\n // Do nothing, no values found at all.\n } else if (values.length > 1) {\n params.put(fieldName, values);\n } else {\n params.put(fieldName, values[0]);\n }\n }\n\n return params;\n }", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"fecha\", fecha);\n params.put(\"hInicio\", inicio);\n params.put(\"hFin\", fin);\n params.put(\"cantCompas\", cantidad);\n params.put(\"id\", id);\n params.put(\"correo\", correo);\n params.put(\"min\",m);\n return params;\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "Object callQuery(String name, Map<String, String> params);", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", idb);\n params.put(\"correo\", correob);\n return params;\n }", "public Map<String, String> splitQuery(URI uri) throws UnsupportedEncodingException {\r\n\t\tfinal Map<String, String> query_pairs = new LinkedHashMap<String, String>();\r\n\r\n\t\ttry {\r\n\t\t\tif (uri.getRawQuery() != null) {\r\n\t\t\t\tfinal String[] pairs = uri.getRawQuery().split(\"&\");\r\n\r\n\t\t\t\tfor (String pair : pairs) {\r\n\t\t\t\t\tfinal int idx = pair.indexOf(\"=\");\r\n\t\t\t\t\tfinal String key = idx > 0 ? URLDecoder.decode(pair.substring(0, idx), \"UTF-8\") : pair;\r\n\t\t\t\t\tfinal String value = idx > 0 && pair.length() > idx + 1 ? URLDecoder.decode(pair.substring(idx + 1), \"UTF-8\") : null;\r\n\t\t\t\t\tquery_pairs.put(key, value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception exc) {\r\n\t\t\tLOGGER.log(Level.SEVERE, \"Expand URI Query failed\", exc);\r\n\t\t}\r\n\r\n\t\treturn query_pairs;\r\n\t}", "private Map<String,Object> buildParamsMap(Map<String, Object> map, HostelDTO hostelDTO){\r\n\t\tmap.put(\"hostelName\", hostelDTO.getHostelName());\r\n\t\tmap.put(\"adrStreet\", hostelDTO.getAdrStreet());\r\n\t\tmap.put(\"adrCity\", hostelDTO.getAdrCity());\r\n\t\tmap.put(\"adrState\", hostelDTO.getAdrState());\r\n\t\tmap.put(\"adrPostalCode\", hostelDTO.getAdrPostalCode());\r\n\t\tmap.put(\"adrCountry\", hostelDTO.getAdrCountry());\r\n\t\tmap.put(\"phone\", hostelDTO.getPhone());\r\n\t\tmap.put(\"email\", hostelDTO.getEmail());\r\n\t\tmap.put(\"facebook\", hostelDTO.getFacebook());\r\n\t\tmap.put(\"web\", hostelDTO.getWeb());\r\n\t\tmap.put(\"checkInTime\", hostelDTO.getCheckInTime());\r\n\t\tmap.put(\"checkOutTime\", hostelDTO.getCheckOutTime());\r\n\t\tmap.put(\"smoking\", hostelDTO.getSmoking());\r\n\t\tmap.put(\"alcohol\", hostelDTO.getAlcohol());\r\n\t\tmap.put(\"orderCancellationHoursLimit\", hostelDTO.getOrderCancellationHoursLimit());\r\n\t\tmap.put(\"cancellationFeePercant\", hostelDTO.getCancellationFeePercant());\t\r\n\t\treturn map;\r\n\t}", "protected Map<String,String> getParametersMap(HttpServletRequest request) {\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\t\n\t\tEnumeration<String> paramNames = request.getParameterNames() ;\n\t\t\n\t\twhile ( paramNames.hasMoreElements() ) {\n\t\t\tString name = paramNames.nextElement() ;\n\t\t\tString value = request.getParameter(name) ;\n\t\t\tmap.put(name, value);\n\t\t}\n\t\treturn map ;\n\t}", "public HashMap<String,LinkedList<String>> splitWhere() {\n\n LinkedList<String> where = new LinkedList<>(whereClause);\n LinkedList<String> referencingRelations;\n LinkedList<MyRelation> relations;\n String temp;\n optimizedWhere = new HashMap<>();\n\n String whereString = new String(myHelper.getWhereFields(where));\n String[] whereParts = whereString.split(\"(?i)and\");\n\n //Iterates through all the parts divided by \"AND\"\n for (int i=0; i<whereParts.length; i++) {\n\n referencingRelations = new LinkedList<>();\n String symbol = myHelper.getSymbol(whereParts[i]);\n\n if(symbol != null) {\n String[] equationParts = whereParts[i].split(symbol);\n String condition = null;\n\n //For every side of the \"=\" sing.\n for(int j=0; j<equationParts.length; j++) {\n //Removes white spaces if any.\n equationParts[j] = equationParts[j].replaceAll(\"\\\\s\",\"\");\n\n //if there is a referencing table stores the table and and the field used is temporarily stored.\n if(equationParts[j].contains(\".\")) {\n referencingRelations.addLast(equationParts[j].substring(0, equationParts[j].indexOf(\".\")));\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n\n }else {\n //if no \".\" p simeni en ksero se pio relation kamni reference enna to psaxo p to schema !!\n relations = schema.getRelations();\n String name = myHelper.getRelationNameOnField(equationParts[j],relations,newTablesFromCanonical);\n\n //if name is a field name add the table name to the referencing\n if(name != null) {\n referencingRelations.addLast(name);\n temp = equationParts[j];\n }\n else\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n }\n if(j!= equationParts.length-1)\n condition = temp + symbol;\n else condition = condition + temp;\n }\n optimizedWhere.put(condition,referencingRelations);\n }\n }\n return optimizedWhere;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"is_like\", is_like);\n params.put(\"p_name\", p_name);\n return params;\n }", "public void parseQuery(String queryString) {\r\n\t\t// call the methods\r\n\t\tgetSplitStrings(queryString);\r\n\t\tgetFile(queryString);\r\n\t\tgetBaseQuery(queryString);\r\n\t\tgetConditionsPartQuery(queryString);\r\n\t\tgetConditions(queryString);\r\n\t\tgetLogicalOperators(queryString);\r\n\t\tgetFields(queryString);\r\n\t\tgetOrderByFields(queryString);\r\n\t\tgetGroupByFields(queryString);\r\n\t\tgetAggregateFunctions(queryString);\r\n\t}", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\tMap<String, String[]> paramMap = super.getParameterMap();\n\t Set<String> keySet = paramMap.keySet();\n\t for (Iterator<String> iterator = keySet.iterator(); iterator.hasNext();) {\n\t String key = (String) iterator.next();\n\t String[] str = paramMap.get(key);\n\t\t\t\tfor(int i=0; i<str.length; i++) {\n\t\t\t\t\tstr[i] = encodeXSS(str[i]);\n\t//这里可以对页面传入的所有值进行过滤了,你想怎么处理就怎么处理。比如对出入的值进行html危险字符过滤\n\t }\n\t }\n\t return paramMap ;\n\t}", "public HashMap<Integer, String> executeToMap(String query) {\n \t// Create a connection which is used to store info about our connection\n Connection con = null;\n \n //create a local map will be returned later\n HashMap<Integer, String> map = new HashMap<>();\n \n // Statement is used to execute a SQL query\n Statement stmt = null;\n \n // Resultset is the set of info we get back from running our query\n ResultSet rs = null;\n String SQL = query; \n \n\n try {\n // try to import the external driver\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n // try to establish a connection using the connectionUrl variable\n con = DriverManager.getConnection(connectionUrl);\n\n //prepare a new statement\n stmt = con.createStatement();\n //Provide the statement with a query and execute this\n //this will return a resultSet which we will save to rs\n rs = stmt.executeQuery(SQL);\n \n //As long as there are rows in our ResultSet we want to step through them\n //adding each row their id and string to our map;\n while (rs.next()) {\n \tmap.put(rs.getInt(1), rs.getString(2));\n }\n\n }\n\n // Handle any errors that may have occurred.\n catch (Exception e) {\n e.printStackTrace();\n }\n //when we are done with our actions we should close the connection\n finally {\n if (rs != null) try {\n \trs.close();\n \t} catch(Exception e) {}\n if (stmt != null) try { stmt.close(); } catch(Exception e) {}\n if (con != null) try { con.close(); } catch(Exception e) {}\n }\n //return the map\n return map;\n }", "public abstract ImmutableMap<String, ParamInfo> getParamInfos();", "public Map<String, String> paramap(String...params) {\n\t\t\tMap<String, String> map = new HashMap<String, String>();\n\t\n\t\t\tfor(String p : params) {\n\t\t\t\tmap.put(p, parameters.get(p));\n\t\t\t}\n\n\t\t\treturn map;\n\t}", "@Override\n\tpublic JSONObject query(HashMap<String,Object> map) {\n\t\treturn queryExpress(map);\n\t}", "Query invertQuery(Map<String, Object> input, Query targetQuery, GridGeometry gridGeometry) throws ProcessException;", "private Map<String, String> getReportMap(final Map<String, String> request) {\r\n\t\tMap<String, String> reportMap;\r\n\t\treportMap = new LinkedHashMap<String, String>();\r\n\t\treportMap.put(CommonConstants.KEYWORD,\r\n\t\t\t\trequest.get(RequestAttributeConstant.QUERY_SEARCH));\r\n\t\treportMap.put(DomainConstants.REFINEMENT_ID,\r\n\t\t\t\trequest.get(RequestAttributeConstant.REFINEMENT_ID));\r\n\t\treportMap.put(DomainConstants.LIMIT,\r\n\t\t\t\trequest.get(RequestAttributeConstant.LIMIT));\r\n\t\treportMap.put(DomainConstants.OFFSET,\r\n\t\t\t\trequest.get(RequestAttributeConstant.OFFSET));\r\n\t\treturn reportMap;\r\n\t}", "HashMap<String,Object> processQueryResultRow(Map<String,Object> rawRow, String collectionName) {\n HashMap<String,Object> resultRow = new HashMap<>();\n for (String key: rawRow.keySet()) {\n Object value = rawRow.get(key);\n if (collectionName != null)\n value = formatFieldValue(collectionName,key,value);\n if (value != null) resultRow.put(key,value);\n }\n return resultRow;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Eid\", id + \"\");\n\n\n return params;\n }", "String extractParameters ();", "public Map getParameters();", "public void setParameters(Query query) {\r\n\t\tfor (String name : parameters.keySet()) {\r\n\t\t\tthis.setParameter(name, parameters.get(name), query);\r\n\t\t}\r\n\t}", "protected void preprocessQueryModel( SQLQueryModel query, List<Selection> selections,\n Map<LogicalTable, String> tableAliases, DatabaseMeta databaseMeta ) {\n }", "@Override\n\t\tpublic Map getParameterMap() {\n\t\t\treturn null;\n\t\t}", "private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeToIndex.keySet().toString(), \" Types\");\n\n VariableMap preInversedMap = new VariableMap(paramValueEncodings);\n ImmutableMap<String, String> inversedMap = preInversedMap.getNewNameToOriginalNameMap();\n return new VariableMap(inversedMap);\n }", "protected static Map<String, List<String>> decodeParameters(Map<String, String> parms) {\n\t\treturn decodeParameters(parms.get(NanoHTTPDSingleFile.QUERY_STRING_PARAMETER));\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t\t\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (para[i].getParameter() == null);\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Client_ID\"))\n\t\t\t\tp_AD_Client_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_Org_ID\"))\n\t\t\t\tp_AD_Org_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param01\"))\n\t\t\t\tparam_01 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param02\"))\n\t\t\t\tparam_02 = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param03\"))\n\t\t\t\tparam_03 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param04\"))\n\t\t\t\tparam_04 = (String)para[i].getParameterAsString();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param05\"))\n\t\t\t\tparam_05 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"n_param06\"))\n\t\t\t\tparam_06 = (Timestamp)para[i].getParameterAsTimestamp();\n\t\t\t\n\t\t\telse if(name.equals(\"AD_User_ID\"))\n\t\t\t\tp_AD_User_ID = (int)para[i].getParameterAsInt();\n\t\t\t\n\t\t\telse if(name.equals(\"Report\"))\n\t\t\t\tp_Report = (int)para[i].getParameterAsInt();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\t\n\t\t\n\t}", "public static Map<String, String> getParams(String resource) throws UnsupportedEncodingException {\n\t\t final Map<String, String> queryPairs = new LinkedHashMap<String,String>();\n\t\t // nadji ?\n\t\t int queryStartIndex = resource.indexOf(\"?\");\n\t\t // ako nema ? , vrati praznu mapu\n\t\t if(queryStartIndex == -1) {\n\t\t\t return queryPairs;\n\t\t }\n\t\t \n\t\t // u suprotnom parsiraj resource nakon ?\n\t\t // odseci nakon ? ceo stalo\n\t\t String query = resource.substring(queryStartIndex + 1);\n\t\t \n\t\t // cepaj po &\n\t\t final String[] pairs = query.split(\"&\");\n\t\t \n\t\t // napravi parove gde ce kljuc biti naziv parama, a vrednost pod tim kljucem ce biti vrednost parametra iz URL-a\n\t\t for (String pair : pairs) {\n\t\t final int idx = pair.indexOf(\"=\");\n\t\t final String key = idx > 0 ? URLDecoder.decode(pair.substring(0, idx), \"UTF-8\") : pair;\n\t\t final String value = idx > 0 && pair.length() > idx + 1 ? URLDecoder.decode(pair.substring(idx + 1), \"UTF-8\") : null;\n\t\t queryPairs.put(key, value);\n\t\t }\n\t\t return queryPairs;\n\t\t}", "public HashMap<String, Object> convert() {\n HashMap<String, Object> condMap = new HashMap<String, Object>();\n condMap.put(CommonSpecification.PARAMETERS, paramList);\n condMap.put(CommonSpecification.FETCH_TABLES, fetchTables);\n condMap.put(CommonSpecification.JOIN_TABLES, joinTables);\n condMap.put(CommonSpecification.SORT, sort);\n return condMap;\n }", "List<ReportPair> getParameterValues(String hsql);", "public void filterBy(Map<String, List<String>> queryMap) {\n }", "private Map<String, String> paramHandler(Map<String, String> params){\n\t\t\n\t\treturn params;\n\t}", "private void getCanonicalFormForParameters() {\n\t\tnotification.setParametersCanonicalForm(new HashMap<String, String>());\n\n\t\t// We loop over the parameters map contained into the notification\n\t\t// object\n\t\tfor (Map.Entry<String, String> entry : notification.getParameters()\n\t\t\t\t.entrySet()) {\n\t\t\t// if the name of the parameter is \"query\", we put the query into\n\t\t\t// its canonical form\n\t\t\tif (entry.getKey().equalsIgnoreCase(\"query\")) {\n\t\t\t\tString queryCanonicalForm = \"\";\n\t\t\t\ttry {\n\t\t\t\t\tqueryCanonicalForm = VamdcSqlRequestComparator\n\t\t\t\t\t\t\t.canonicalForm(notification.getParameters().get(\n\t\t\t\t\t\t\t\t\t\"query\"));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// Cannot convert query to canonical form. We keep the\n\t\t\t\t\t// original one\n\t\t\t\t\tqueryCanonicalForm = notification.getParameters().get(\n\t\t\t\t\t\t\t\"query\");\n\t\t\t\t}\n\t\t\t\tnotification.getParametersCanonicalForm().put(entry.getKey(),\n\t\t\t\t\t\tqueryCanonicalForm);\n\t\t\t} else {\n\t\t\t\t// the parameters other than query are kept unchanged\n\t\t\t\tnotification.getParametersCanonicalForm().put(entry.getKey(),\n\t\t\t\t\t\tentry.getValue());\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id\", id);\n\n\n\n\n return params;\n }", "@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}", "Map<String, String> journeyRequestLocationsToParameters(Trip trip){\n Map<String, String> parameters = new HashMap<>();\n parameters.put(\"pickup\", trip.getPickupLat() + \",\" + trip.getPickupLong());\n parameters.put(\"dropoff\", trip.getDropoffLat() + \",\" + trip.getDropoffLong());\n return parameters;\n }", "public static void parseQueryString(String queryString) {\n\n System.out.println(\"STUB: Calling parseQueryString(String s) to process queries\");\n System.out.println(\"Parsing the string:\\\"\" + queryString + \"\\\"\");\n queryString = queryString.toLowerCase();\n String colName = queryString.substring(0,queryString.indexOf(\"from\")+5).trim();\n String colNames[] = removeWhiteSpacesInArray(colName.split(\" \"));\n ArrayList<String> queryStringList = new ArrayList<String>(Arrays.asList(colNames));\n queryStringList.remove(\"select\");\n queryStringList.remove(\"from\");\n String condition = \"\";\n String keyValueCond[] = new String[]{};\n String tableName = \"\";\n if(queryString.contains(\"where\")) {\n tableName = queryString.substring(queryString.indexOf(\"from\") + 5, queryString.indexOf(\"where\")).trim();\n condition = queryString.substring(queryString.indexOf(\"where\")+6, queryString.length()).trim();\n keyValueCond = removeWhiteSpacesInArray(condition.split(\" \"));\n }else\n tableName = queryString.substring(queryString.indexOf(\"from\")+5).trim();\n try {\n Table table = new Table(tableName.concat(\".tbl\"));\n int noOfRecords = table.page.getNoOfRecords();\n long pos = table.page.getStartofContent();\n TreeMap<String, String> colOrder = columnOrdinalHelper.getColumnsInOrdinalPositionOrder(tableName);\n int recordLength = Integer.parseInt(recordLengthHelper.getProperties(tableName.concat(\".\").concat(Constant.recordLength)));\n if(keyValueCond.length>0){\n\n }else{\n Iterator it = colOrder.entrySet().iterator();\n while (it.hasNext()){\n Map.Entry<String, String> entryPair = (Map.Entry<String, String>) it.next();\n// ReadResult<Object> readResult = table.page.readIntasByte(pos);\n// System.out.println(readResult.getT());\n ReadResult<Object> readResult = RecordFormat.readRecordFormat(columnTypeHelper.getProperties(entryPair.getValue()),table,pos);\n System.out.println(\"RESULT COLUMN NAME : \"+entryPair.getValue()+\" Value : \"+readResult.getT());\n\n }\n\n }\n\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public query convertNewQueryComposition() {\n int index = listDocumentRetrievedForThisQuery.getQuery().getIndex();\n StringBuffer queryContent = new StringBuffer();\n for (Map.Entry m : newQueryComposition.entrySet()) {\n String keyTerm = (String) m.getKey();\n queryContent.append(keyTerm + \" \");\n }\n query Query = new query(index,queryContent.toString());\n return Query;\n }", "private Map<String, String> getParams(final HttpServletRequest request) {\n final Map<String, String> params = new HashMap<>();\n for (final Map.Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\n params.put(entry.getKey(), entry.getValue()[0]);\n }\n return params;\n }", "private List<Map<String, Object>> prepareQueryResult(final ResultSet resultSet) throws SQLException {\n\n List<Map<String, Object>> result = new ArrayList<>();\n\n ResultSetMetaData metaData = resultSet.getMetaData();\n int count = metaData.getColumnCount();\n List<String> cols = new ArrayList<>(count);\n for (int i = 1; i <= count; i++) {\n cols.add(metaData.getColumnName(i));\n }\n\n boolean hasNext = resultSet.next();\n\n while (hasNext) {\n\n Map<String, Object> map = new LinkedHashMap<>();\n for (String col : cols) {\n Object value = resultSet.getObject(col);\n map.put(col, value);\n\n logger.debug(\"col:\" + col + \" value:\" + value);\n }\n result.add(map);\n\n hasNext = resultSet.next();\n }\n\n return result;\n\n }", "public abstract List createQuery(String query);", "@Override\n protected Map<String, String> getParams() {\n int noofstudent = 2*Integer.parseInt(noOfStudents);\n String creatre = \"jbscjas\";//send anything part\n String uid = AppController.getString(WingForm.this,\"Student_id\");\n Map<String, String> params = new LinkedHashMap<String, String>();\n //using LinkedHashmap because backend does not check key value and sees order of variables\n params.put(\"createsubmittedform\", creatre);\n params.put(\"uid\",uid);\n params.put(\"noofstudent\", String.valueOf(noofstudent));\n for(int m=1;m<3;m++){\n String z= String.valueOf(m);\n params.put(\"pfid[\"+m+\"]\",z);\n params.put(\"hostelid[\"+m+\"]\",hostelid[m-1]);\n params.put(\"floorno[\"+m+\"]\",floorno[m-1]);\n }\n for (int k = 0; k < noofstudent; k++) {\n int m = k/2 +1;\n String z= String.valueOf(m);\n params.put(\"sid[\"+k+\"]\", sid[k]);\n params.put(\"roominwing[\"+k+\"]\",z );\n }\n return params;\n }", "private Map<String, Object> dealWithMap(Map<String, Object> paramMap) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tfor (String colName : defaultValColArr) {\n\t\t\tset.add(colName);\n\t\t}\n\t\tfor (String colName : pkColArr) {\n\t\t\tset.add(colName);\n\t\t}\n\t\tIterator<String> iterator = set.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tString colName = iterator.next();\n\t\t\tif(paramMap.get(colName) == null) {\n\t\t\t\tparamMap.remove(colName);\n\t\t\t}\n\t\t}\n\t\treturn paramMap;\n\t}", "@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}", "@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n\n\n params.put(\"city_id\",city_id);\n Log.d(TAG, \"city_id: \"+params);\n\n return params;\n }", "private JSONObject getQueryParams(ISmService smService, HttpServletRequest request) throws JSONException {\n\t\tString distinct = smService.getParam(request, \"distinct\");\n\t\tString reduced = smService.getParam(request, \"reduced\");\n\t\tString offset = smService.getParam(request, \"offset\");\n\t\tString limit = smService.getParam(request, \"limit\");\n\t\tString offsetVal_ = smService.getParam(request, \"offsetVal\");\n\t\tString limitVal_ = smService.getParam(request, \"limitVal\");\n\t\tint offsetVal = 0;\n\t\tif (null != offsetVal_) try {\n\t\t\toffsetVal = Integer.parseInt(offsetVal_);\n\t\t} catch (Exception e){}\n\t\tint limitVal = 0;\n\t\tif (null != limitVal_) try {\n\t\t\tlimitVal = Integer.parseInt(limitVal_);\n\t\t} catch (Exception e){}\n\t\tJSONObject result = new JSONObject();\n\t\tresult.put(\"distinctChecked\", (null != distinct && distinct.equals(\"on\"))?\"checked\":\"\");\n\t\tresult.put(\"reducedChecked\", (null != reduced && reduced.equals(\"on\"))?\"checked\":\"\");\n\t\tresult.put(\"offsetChecked\", (null != offset && offset.equals(\"on\") && offsetVal > 0)?\"checked\":\"\");\n\t\tresult.put(\"limitChecked\", (null != limit && limit.equals(\"on\") && limitVal > 0)?\"checked\":\"\");\n\t\tresult.put(\"offsetVal\", Integer.toString(offsetVal));\n\t\tresult.put(\"limitVal\", Integer.toString(limitVal));\n\t\treturn result;\n\t}", "TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"Dname\", DegreeName);\n params.put(\"iName\", InsName);\n params.put(\"UserId\", uId);\n\n return params;\n }", "private Map<String, Object> dealWithMap(Map<String, Object> paramMap)\n {\n Set<String> set = new HashSet<String>();\n for (String colName : defaultValColArr)\n {\n set.add(colName);\n }\n for (String colName : pkColArr)\n {\n set.add(colName);\n }\n Iterator<String> iterator = set.iterator();\n while (iterator.hasNext())\n {\n String colName = iterator.next();\n if (paramMap.get(colName) == null)\n {\n paramMap.remove(colName);\n }\n }\n return paramMap;\n }", "private Map<String, Object> getReportParameterMap(\r\n\t\t\tHttpServletRequest request,\r\n\t\t\tVeteranSearchFormBean veteranSearchFormBean, EscreenUser escreenUser) {\n\t\tString veteranId = request.getParameter(\"veteranSearchFormBean.veteranId\");\r\n\t\tString lastName = request.getParameter(\"veteranSearchFormBean.lastName\");\r\n\t\tString ssnLastFour = request.getParameter(\"veteranSearchFormBean.ssnLastFour\");\r\n\r\n\t\tif (StringUtils.isNotBlank(veteranId) && StringUtils.isNumeric(veteranId)) {\r\n\t\t\tveteranSearchFormBean.setVeteranId(Integer.valueOf(veteranId));\r\n\t\t}\r\n\r\n\t\tveteranSearchFormBean.setLastName(lastName);\r\n\t\tveteranSearchFormBean.setSsnLastFour(ssnLastFour);\r\n\r\n\t\tdisplaySearchParms(request);\r\n\r\n\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\r\n\r\n\t\tSearchAttributes searchAttributes = createSearchAttributes(request);\r\n\r\n\t\t// Override to get up to max.\r\n\t\tsearchAttributes.setPageSize(MAX_PAGE_SIZE);\r\n\r\n\t\tSearchResult<VeteranSearchResult> searchResult = getVeteranSearchResultsFromForm(veteranSearchFormBean, searchAttributes, escreenUser);\r\n\r\n\t\tJRDataSource JRdataSource = new JRBeanCollectionDataSource(searchResult.getResultList());\r\n\t\tparameterMap.put(\"datasource\", JRdataSource);\r\n\r\n\t\treturn parameterMap;\r\n\t}", "private ParsedQuery parseQuery(Layer layer, Query query) {\n PlainSelect plainSelect;\n try {\n Select select = (Select) CCJSqlParserUtil.parse(query.getSql());\n plainSelect = (PlainSelect) select.getSelectBody();\n } catch (JSQLParserException e) {\n String message =\n String.format(\n \"The layer '%s' contains a malformed query.\\n\" + \"\\tQuery:\\n\\t\\t%s\",\n layer.getId(), query.getSql());\n throw new IllegalArgumentException(message, e);\n }\n\n // Check the number of columns\n if (plainSelect.getSelectItems().size() != 3) {\n String message =\n String.format(\n \"The layer '%s' contains a malformed query.\\n\"\n + \"\\tExpected format:\\n\\t\\tSELECT c1::bigint, c2::hstore, c3::geometry FROM t WHERE c\\n\"\n + \"\\tActual query:\\n\\t\\t%s\",\n layer.getId(), query.getSql());\n throw new IllegalArgumentException(message);\n }\n\n // Remove all the aliases\n for (SelectItem selectItem : plainSelect.getSelectItems()) {\n selectItem.accept(\n new SelectItemVisitorAdapter() {\n @Override\n public void visit(SelectExpressionItem selectExpressionItem) {\n selectExpressionItem.setAlias(null);\n }\n });\n }\n return new ParsedQuery(layer, query, plainSelect);\n }", "private static void expandQueryParameters(RequestTemplate requestFacade) {\n Map<String, Collection<String>> queries = requestFacade.queries();\n Collection<String> internalView = queries.get(EXPAND);\n if (internalView != null) {\n PropertyNamingStrategy.PropertyNamingStrategyBase strategy = (PropertyNamingStrategy.PropertyNamingStrategyBase)\n PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES;\n\n String value = internalView.iterator().next();\n if (value.length() > 0) {\n Map<String, String> map = QueryParamsJsonSerializer.of(value);\n requestFacade.query(EXPAND);\n for (String paramName : map.keySet()) {\n requestFacade.query(strategy.translate(paramName), map.get(paramName));\n }\n }\n }\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"id_pelanggan\", id_pelanggan);\n params.put(\"isi_pengaduan\", isi);\n return params;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"pasien\", pasien);\n\n return params;\n }", "@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }" ]
[ "0.699404", "0.6668359", "0.6668359", "0.64421964", "0.6412091", "0.63452774", "0.621926", "0.6204302", "0.5844701", "0.58135265", "0.57985467", "0.5774542", "0.57499266", "0.5737957", "0.57125586", "0.5695749", "0.5674182", "0.5621249", "0.5572464", "0.55521584", "0.55521584", "0.55339605", "0.55275303", "0.55182564", "0.55170846", "0.5513832", "0.55038476", "0.5492614", "0.54909587", "0.54885215", "0.54822963", "0.5476267", "0.5472946", "0.5471393", "0.54585266", "0.54534054", "0.5449871", "0.5431965", "0.54303813", "0.54231155", "0.54151475", "0.541339", "0.5405597", "0.5387429", "0.53700125", "0.53675586", "0.5366719", "0.53501964", "0.5343618", "0.5341908", "0.53418255", "0.5332658", "0.5325546", "0.53236514", "0.53236485", "0.5307626", "0.5299475", "0.5287433", "0.528173", "0.52705795", "0.52679557", "0.52486604", "0.5245302", "0.52443165", "0.5241879", "0.5240961", "0.5239864", "0.5237919", "0.5237124", "0.5232591", "0.5227687", "0.5217092", "0.52157885", "0.52153516", "0.52075696", "0.5207527", "0.51972723", "0.5194532", "0.5177738", "0.51775247", "0.5175638", "0.5170437", "0.51679945", "0.5165632", "0.51566684", "0.5148095", "0.5143907", "0.51400536", "0.5136784", "0.5136706", "0.51323974", "0.51313776", "0.51286393", "0.51283014", "0.511918", "0.5117568", "0.511145", "0.50987047", "0.50921226", "0.5090783" ]
0.5843489
9
return the CfInfo for the column family
protected CfDef getCfDef(Cassandra.Client client) throws org.apache.cassandra.thrift.InvalidRequestException, UnavailableException, TimedOutException, SchemaDisagreementException, TException, NotFoundException, org.apache.cassandra.exceptions.InvalidRequestException, ConfigurationException, IOException { // get CF meta data String query = String.format("SELECT type, comparator, subcomparator, default_validator, key_validator " + "FROM %s.%s " + "WHERE keyspace_name = '%s' AND columnfamily_name = '%s'", SystemKeyspace.NAME, LegacySchemaTables.COLUMNFAMILIES, keyspace, column_family); CqlResult result = client.execute_cql3_query(ByteBufferUtil.bytes(query), Compression.NONE, ConsistencyLevel.ONE); if (result == null || result.rows == null || result.rows.isEmpty()) return null; Iterator<CqlRow> iteraRow = result.rows.iterator(); CfDef cfDef = new CfDef(); cfDef.keyspace = keyspace; cfDef.name = column_family; if (iteraRow.hasNext()) { CqlRow cqlRow = iteraRow.next(); cfDef.column_type = ByteBufferUtil.string(cqlRow.columns.get(0).value); cfDef.comparator_type = ByteBufferUtil.string(cqlRow.columns.get(1).value); ByteBuffer subComparator = cqlRow.columns.get(2).value; if (subComparator != null) cfDef.subcomparator_type = ByteBufferUtil.string(subComparator); cfDef.default_validation_class = ByteBufferUtil.string(cqlRow.columns.get(3).value); cfDef.key_validation_class = ByteBufferUtil.string(cqlRow.columns.get(4).value); } cfDef.column_metadata = getColumnMetadata(client); return cfDef; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CFMetaData getCFMetaData(String ks, String cf, Cassandra.Client client)\n throws NotFoundException,\n org.apache.cassandra.thrift.InvalidRequestException,\n TException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException\n {\n KsDef ksDef = client.describe_keyspace(ks);\n for (CfDef cfDef : ksDef.cf_defs)\n {\n if (cfDef.name.equalsIgnoreCase(cf))\n return ThriftConversion.fromThrift(cfDef);\n }\n return null;\n }", "public String getCfNo() {\n\t\treturn cfNo;\n\t}", "Map<String, TypeInformation<?>> getFamilyInfo(String family) {\n\t\treturn familyMap.get(family);\n\t}", "public String getCpf() {\n return cpf;\n }", "private static ColumnDefinition getClusteringColumnDefinition(CFMetaData cfMetaData, int index)\n {\n return cfMetaData.clusteringColumns().get(index);\n }", "@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }", "public FamilyInfo[] getFamilyInfo() {\n return familyInfo;\n }", "Collection<? extends CFD> getHasCFD();", "public BigDecimal getCIF_NO() {\r\n return CIF_NO;\r\n }", "public ColumnInfo[] getColumnInfos() {\n return new ColumnInfo[] {\n new NameInfo(),\n new TypeInfo(),\n new CoverInfo(),\n new LocationInfo()\n };\n }", "public ColumnInfo() {\n\n\t}", "public long getCpf() {\n return this.CPF;\n }", "ColumnInfoFilter getColumnInfoFilter();", "public String getCcbh() {\n return ccbh;\n }", "private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }", "public String getCPF() {\n return this.CPF;\n }", "public BigDecimal getCOVERING_ACC_CIF() {\r\n return COVERING_ACC_CIF;\r\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.yangtian.matrix.Matrix, com.yangtian.matrix.Matrix.Builder, com.yangtian.matrix.MatrixOrBuilder> \n getCFieldBuilder() {\n if (cBuilder_ == null) {\n cBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.yangtian.matrix.Matrix, com.yangtian.matrix.Matrix.Builder, com.yangtian.matrix.MatrixOrBuilder>(\n getC(),\n getParentForChildren(),\n isClean());\n c_ = null;\n }\n return cBuilder_;\n }", "public int getColumn() { return cc; }", "ColumnMeta getColumnMeta() {\n return cmeta_;\n }", "FeatureCall getFec();", "public FloatColumn getCovalentGeomBondTerm() {\n return delegate.getColumn(\"covalent_geom_bond_term\", DelegatingFloatColumn::new);\n }", "public String getCif() {\n return cif;\n }", "boolean hasHasCFD();", "private static Cursor getFamilyInfo(Context context, String id)\n\t{\n\t\tString whereName = ContactsContract.Data.MIMETYPE + \" = ? AND \" + ContactsContract.CommonDataKinds.StructuredName.LOOKUP_KEY + \" = ?\";\n\t\tString[] whereNameParams = new String[] { ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE, id };\n\t return context.getContentResolver().query(\n\t \t\tContactsContract.Data.CONTENT_URI,\n\t \t\tnew String[] {\tContactsContract.CommonDataKinds.StructuredName.LOOKUP_KEY,\n\t \t\t\t\t\t\tContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME,\n\t \t\t\t\t\t\tContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME\n\t \t\t\t\t\t\t},\n\t\t\t whereName, \n\t \t\twhereNameParams, \n\t \t\tnull);\n\t \n\t}", "boolean isNeedColumnInfo();", "public ColumnFamilyStats getColumnFamilyStats(\r\n String keyspace, String cf) throws CassandraServerManagementException {\r\n CassandraManagementUtils.validateKeyspace(keyspace);\r\n CassandraManagementUtils.validateCF(cf);\r\n\r\n String domainQualifiedKSName = this.getDomainQualifiedKSName(keyspace);\r\n ColumnFamilyStoreMBean cfsMBean =\r\n CassandraAdminDataHolder.getInstance().getCassandraMBeanLocator().\r\n locateColumnFamilyStoreMBean(domainQualifiedKSName, cf);\r\n if (cfsMBean == null) {\r\n if (log.isDebugEnabled()) {\r\n log.debug(\"Cannot locate a ColumnFamilyStoreMBean for column family : \" + cf);\r\n }\r\n return null;\r\n }\r\n return CassandraManagementUtils.createCFStats(cfsMBean);\r\n }", "Get<K, C> addColumn(String family, C column);", "public abstract List<ColumnSpecification> metadata();", "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String getCtype() {\n return ctype;\n }", "public BigDecimal getACC_CIF() {\r\n return ACC_CIF;\r\n }", "public boolean isCFF() throws PDFNetException {\n/* 922 */ return IsCFF(this.a);\n/* */ }", "ColumnInfoTransformer getColumnInfoTransformer();", "public String getCfdaNumber() {\n return cfdaNumber;\n }", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}", "DataCollectionInfo getInfo();", "public Map<String, ColumnMetaData> getColumns();", "private ColumnInfoV2 getColumnInfo(String tableInfoId,String columnInfoId,String columnInfoName,String columnType,String columnLength,byte isPartitionKey){\n ColumnInfoV2 columnInfo = new ColumnInfoV2();\n columnInfo.setTableInfoId(tableInfoId);\n columnInfo.setColumnInfoId(columnInfoId);\n columnInfo.setColumnName(columnInfoName);\n columnInfo.setColumnDesc(columnInfoName);\n columnInfo.setColumnType(columnType);\n columnInfo.setColumnLength(columnLength);\n columnInfo.setColumnPrecision(null);\n columnInfo.setSecurityLevel(\"A\");\n columnInfo.setIsKey((byte) 0);\n columnInfo.setIsRefKey((byte) 0);\n columnInfo.setIsIndex((byte) 0);\n columnInfo.setIsNull((byte) 0);\n columnInfo.setIsPartitionKey(isPartitionKey);\n columnInfo.setCreateTime(new Date());\n columnInfo.setUpdateTime(null);\n columnInfo.setStatusCode(\"1311\");\n return columnInfo;\n }", "public TableColumnInfoDTO getSelectedTableColumnInfoField() {\n\t\treturn selectedTableColumnInfoField;\n\t}", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column.Builder> \n getColumnBuilderList() {\n return getColumnFieldBuilder().getBuilderList();\n }", "public FloatColumn getChemShift13CErr() {\n return (FloatColumn) (isText ? textFields.computeIfAbsent(\"chem_shift_13C_err\", FloatColumn::new) :\n getBinaryColumn(\"chem_shift_13C_err\"));\n }", "protected List<ColumnDef> getColumnMeta(Cassandra.Client client, boolean cassandraStorage, boolean includeCompactValueColumn)\n throws org.apache.cassandra.thrift.InvalidRequestException,\n UnavailableException,\n TimedOutException,\n SchemaDisagreementException,\n TException,\n CharacterCodingException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException,\n NotFoundException\n {\n String query = String.format(\"SELECT column_name, validator, index_type, type \" +\n \"FROM %s.%s \" +\n \"WHERE keyspace_name = '%s' AND columnfamily_name = '%s'\",\n SystemKeyspace.NAME,\n LegacySchemaTables.COLUMNS,\n keyspace,\n column_family);\n\n CqlResult result = client.execute_cql3_query(ByteBufferUtil.bytes(query), Compression.NONE, ConsistencyLevel.ONE);\n\n List<CqlRow> rows = result.rows;\n List<ColumnDef> columnDefs = new ArrayList<ColumnDef>();\n if (rows == null || rows.isEmpty())\n {\n // if CassandraStorage, just return the empty list\n if (cassandraStorage)\n return columnDefs;\n\n // otherwise for CqlNativeStorage, check metadata for classic thrift tables\n CFMetaData cfm = getCFMetaData(keyspace, column_family, client);\n for (ColumnDefinition def : cfm.regularAndStaticColumns())\n {\n ColumnDef cDef = new ColumnDef();\n String columnName = def.name.toString();\n String type = def.type.toString();\n logger.trace(\"name: {}, type: {} \", columnName, type);\n cDef.name = ByteBufferUtil.bytes(columnName);\n cDef.validation_class = type;\n columnDefs.add(cDef);\n }\n // we may not need to include the value column for compact tables as we\n // could have already processed it as schema_columnfamilies.value_alias\n if (columnDefs.size() == 0 && includeCompactValueColumn && cfm.compactValueColumn() != null)\n {\n ColumnDefinition def = cfm.compactValueColumn();\n if (\"value\".equals(def.name.toString()))\n {\n ColumnDef cDef = new ColumnDef();\n cDef.name = def.name.bytes;\n cDef.validation_class = def.type.toString();\n columnDefs.add(cDef);\n }\n }\n return columnDefs;\n }\n\n Iterator<CqlRow> iterator = rows.iterator();\n while (iterator.hasNext())\n {\n CqlRow row = iterator.next();\n ColumnDef cDef = new ColumnDef();\n String type = ByteBufferUtil.string(row.getColumns().get(3).value);\n if (!type.equals(\"regular\"))\n continue;\n cDef.setName(ByteBufferUtil.clone(row.getColumns().get(0).value));\n cDef.validation_class = ByteBufferUtil.string(row.getColumns().get(1).value);\n ByteBuffer indexType = row.getColumns().get(2).value;\n if (indexType != null)\n cDef.index_type = getIndexType(ByteBufferUtil.string(indexType));\n columnDefs.add(cDef);\n }\n return columnDefs;\n }", "protected CfDef getCfDef(String signature) throws IOException\n {\n UDFContext context = UDFContext.getUDFContext();\n Properties property = context.getUDFProperties(CassandraStorage.class);\n String prop = property.getProperty(signature);\n return cfdefFromString(prop);\n }", "public Map<ColumnInfo, ColumnInfo> getForeignLocalColumnInfoMap() {\n return _foreignLocalColumnInfoMap;\n }", "public ColumnContext context();", "public Map<ColumnInfo, ColumnInfo> getLocalForeignColumnInfoMap() {\n return _localForeignColumnInfoMap;\n }", "public String getFinancialDocumentColumnTypeCode() {\r\n return financialDocumentColumnTypeCode;\r\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo,\n com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder>\n getCloudFunctionFieldBuilder() {\n if (cloudFunctionBuilder_ == null) {\n if (!(stepInfoCase_ == 20)) {\n stepInfo_ =\n com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance();\n }\n cloudFunctionBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo,\n com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.Builder,\n com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfoOrBuilder>(\n (com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo) stepInfo_,\n getParentForChildren(),\n isClean());\n stepInfo_ = null;\n }\n stepInfoCase_ = 20;\n onChanged();\n return cloudFunctionBuilder_;\n }", "public String getFabCons() {\n return (String)getAttributeInternal(FABCONS);\n }", "public ClassInfo getClassInfo() {\n\t\treturn clsInfo;\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic String getCPF() {\n\t\treturn null;\n\t}", "public com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column.Builder getColumnBuilder(\n int index) {\n return getColumnFieldBuilder().getBuilder(index);\n }", "public final String getFci() {\n return String.valueOf(fci);\n }", "public FloatColumn getChemShift19FErr() {\n return (FloatColumn) (isText ? textFields.computeIfAbsent(\"chem_shift_19F_err\", FloatColumn::new) :\n getBinaryColumn(\"chem_shift_19F_err\"));\n }", "public BigDecimal getFpCb() {\r\n return fpCb;\r\n }", "public ResultViewerColumnInfo getColumnInfo(int index) throws IndexOutOfBoundsException {\n\t\treturn (ResultViewerColumnInfo)columns.get(index);\n\t}", "public String getCname() {\n return cname;\n }", "public String getCname() {\r\n return cname;\r\n }", "public interface ConsInfo\textends\tFormatable\n{\n\t/**\n\t *\tThis ConsInfo describes columns in a referenced table. What is\n\t *\tthe schema that the referenced table lives in?\n\t *\n\t *\t@param\tdd\tdata dictionary to search for schema\n\t *\n\t *\t@return\tschema that referenced table lives in\n\t *\t@exception\tStandardException thrown on oops\n\t */\n\tpublic SchemaDescriptor getReferencedTableSchemaDescriptor(DataDictionary dd)\n\t\tthrows StandardException;\n\n\t/**\n\t *\tThis ConsInfo describes columns in a referenced table. What is\n\t *\tthat table?\n\t *\n\t *\t@param\tdd\tdata dictionary to search for table\n\t *\n\t *\t@return\treferenced table\n\t *\t@exception\tStandardException thrown on oops\n\t */\n\tpublic TableDescriptor getReferencedTableDescriptor(DataDictionary dd)\n\t\tthrows StandardException;\n\n\t/**\n\t *\tThis ConsInfo describes columns in a referenced table. What are\n\t *\ttheir names?\n\t *\n\t *\t@return\tarray of referenced column names\n\t */\n\tpublic String[] getReferencedColumnNames();\n\n\t/**\n\t *\tGet the name of the table that these column live in.\n\t *\n\t *\t@return\treferenced table name\n\t */\n\tpublic String getReferencedTableName();\n\n\n\t/**\n\t *\tGet the referential Action for an Update.\n\t *\n\t *\t@return\treferential Action for update\n\t */\n\n\tpublic int getReferentialActionUpdateRule();\n\t\n\t/**\n\t *\tGet the referential Action for a Delete.\n\t *\n\t *\t@return\treferential Action Delete rule\n\t */\n\tpublic int getReferentialActionDeleteRule();\n\n}", "public Integer getCcn()\r\n {\r\n return (Integer) ( (IntegerMetricBO) getMetrics().get( CCN ) ).getValue();\r\n }", "BigInteger getCPF();", "public interface JCFColumn {\n\n\t/**\n * Returns the column's label.\n *\n * @return label of the column.\n */\n public String getLabel();\n \n /**\n * Returns the column's data format. Valid formats are:\n *\n * <ul>\n * <li>text-single -> single line or word of text\n * <li>text-private -> instead of showing the user what they typed, you show ***** to\n * protect it\n * <li>text-multi -> multiple lines of text entry\n * <li>list-single -> given a list of choices, pick one\n * <li>list-multi -> given a list of choices, pick one or more\n * <li>boolean -> 0 or 1, true or false, yes or no. Default value is 0\n * <li>fixed -> fixed for putting in text to show sections, or just advertise your web\n * site in the middle of the form\n * <li>hidden -> is not given to the user at all, but returned with the questionnaire\n * <li>jid-single -> Jabber ID - choosing a JID from your roster, and entering one based\n * on the rules for a JID.\n * <li>jid-multi -> multiple entries for JIDs\n * </ul>\n *\n * @return format for the returned data.\n */\n public String getType();\n \n /**\n * Returns the variable name that the column is showing.\n *\n * @return the variable name of the column.\n */\n public String getVariable();\n}", "ComponentBodyType getComponentInfo();", "private com.google.protobuf.SingleFieldBuilderV3<\n io.emqx.exhook.ClientInfo, io.emqx.exhook.ClientInfo.Builder, io.emqx.exhook.ClientInfoOrBuilder> \n getClientinfoFieldBuilder() {\n if (clientinfoBuilder_ == null) {\n clientinfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.emqx.exhook.ClientInfo, io.emqx.exhook.ClientInfo.Builder, io.emqx.exhook.ClientInfoOrBuilder>(\n getClientinfo(),\n getParentForChildren(),\n isClean());\n clientinfo_ = null;\n }\n return clientinfoBuilder_;\n }", "@Override\n public String getName() {\n return columnInfo.getName();\n }", "public CellFactory getCellFactory() {\r\n \t\treturn cellFactory;\r\n \t}", "Integer getChnlCde();", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.Block.BlockInfoEntry, alluxio.proto.journal.Block.BlockInfoEntry.Builder, alluxio.proto.journal.Block.BlockInfoEntryOrBuilder>(\n blockInfo_,\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> \n getColumnsList();", "public String getFamily()\n {\n return _family;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getBlockInfoFieldBuilder() {\n if (blockInfoBuilder_ == null) {\n blockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getBlockInfo(),\n getParentForChildren(),\n isClean());\n blockInfo_ = null;\n }\n return blockInfoBuilder_;\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "private ConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> getFamilyData(\n\t\t\t\tString family) {\n\t\t\tConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> ret = this.elements\n\t\t\t\t\t.get(family);\n\t\t\tif (ret == null) {\n\t\t\t\tret = new ConcurrentHashMap<String, ConcurrentNavigableMap<Long, Object>>();\n\t\t\t\tConcurrentMap<String, ConcurrentNavigableMap<Long, Object>> put = this.elements\n\t\t\t\t\t\t.putIfAbsent(family, ret);\n\t\t\t\tif (put != null)\n\t\t\t\t\tret = put;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}", "public java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition.Builder> \n getColumnsBuilderList() {\n return getColumnsFieldBuilder().getBuilderList();\n }", "public PairVector getCCs(){\r\n\t\treturn mccabe.getCCs(javaclass);\r\n\t}", "public com.huazhu.hvip.thirdparty.entity.axis.reservation.CustomerCategory getCategoryInfo() {\n return categoryInfo;\n }", "public Family getFamily() {\r\n return pic_.getFamily();\r\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index);", "public String family() {\n return this.family;\n }", "public com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column.Builder addColumnBuilder() {\n return getColumnFieldBuilder().addBuilder(\n com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column.getDefaultInstance());\n }", "protected abstract Map<String, Map<String, Object>> getData(String columnFamilyName);", "public java.util.List<? extends com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.ColumnOrBuilder> \n getColumnOrBuilderList() {\n return column_;\n }", "public final void mK_COLUMNFAMILY() throws RecognitionException {\n try {\n int _type = K_COLUMNFAMILY;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:15: ( ( C O L U M N F A M I L Y | T A B L E ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:16: ( C O L U M N F A M I L Y | T A B L E )\n {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:16: ( C O L U M N F A M I L Y | T A B L E )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0=='C'||LA3_0=='c') ) {\n alt3=1;\n }\n else if ( (LA3_0=='T'||LA3_0=='t') ) {\n alt3=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:18: C O L U M N F A M I L Y\n {\n mC(); \n mO(); \n mL(); \n mU(); \n mM(); \n mN(); \n mF(); \n mA(); \n mM(); \n mI(); \n mL(); \n mY(); \n\n }\n break;\n case 2 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:513:20: T A B L E\n {\n mT(); \n mA(); \n mB(); \n mL(); \n mE(); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\r\n\tpublic ContactInfo getContactInfo(int index) {\r\n\t\tContactInfo cInfo = new ContactInfo();\r\n\t\tmCursor.moveToPosition(index);\r\n\t\tcInfo.setDisplayName(mCursor.getString(NAME));\r\n\t\tcInfo.setPhoneNumber(mCursor.getString(NUMBER));\r\n\t\tcInfo.setPhone_ID(mCursor.getString(PHONE_ID));\r\n\t\tcInfo.set_ID(mCursor.getString(_ID));\r\n\t\t\r\n\t\tcInfo.setIndex(index);\r\n\t\t\r\n\t\tString type;\r\n\t\tint phoneType = Integer.parseInt(mCursor.getString(TYPE));\r\n\t\tswitch(phoneType) {\r\n\t\tcase PhonesColumns.TYPE_HOME:\r\n\t\t\ttype = \"home\";\r\n\t\t\tbreak;\r\n\t\tcase PhonesColumns.TYPE_MOBILE:\r\n\t\t\ttype = \"mobile\";\r\n\t\t\tbreak;\r\n\t\tcase PhonesColumns.TYPE_WORK:\r\n\t\t\ttype = \"work\";\r\n\t\t\tbreak;\r\n\t\tcase PhonesColumns.TYPE_OTHER:\r\n\t\t\ttype = \"other\";\r\n\t\t\tbreak;\r\n\t\tcase PhonesColumns.TYPE_CUSTOM:\r\n\t\t\ttype = \"custom\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\ttype = \"\";\r\n\t\t\tbreak;\t\t\t\t\r\n\t\t}\r\n\t\tcInfo.setPhoneType(type);\r\n\t\t\r\n\t\treturn cInfo;\r\n\t}", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> getColumnList() {\n return column_;\n }", "public java.util.List<Column.Builder>\n getColumnsBuilderList() {\n return getColumnsFieldBuilder().getBuilderList();\n }", "protected static SnacFamilyInfo readSnacFamilyInfo(ByteBlock block) {\n DefensiveTools.checkNull(block, \"block\");\n\n int family = BinaryTools.getUShort(block, 0);\n int version = BinaryTools.getUShort(block, 2);\n int toolid = BinaryTools.getUShort(block, 4);\n int toolver = BinaryTools.getUShort(block, 6);\n\n return new SnacFamilyInfo(family, version, toolid, toolver);\n }", "public final int getFamily() {\n return family;\n }", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList();", "public com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.ColumnOrBuilder getColumnOrBuilder(\n int index) {\n return column_.get(index);\n }", "public byte[] getOcf() {\n return ocf;\n }", "public CX getCostCenter() { \r\n\t\tCX retVal = this.getTypedField(25, 0);\r\n\t\treturn retVal;\r\n }", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo getCloudFunction() {\n if (cloudFunctionBuilder_ == null) {\n if (stepInfoCase_ == 20) {\n return (com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 20) {\n return cloudFunctionBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.CloudFunctionInfo.getDefaultInstance();\n }\n }", "public Family getFamily() {\n return family;\n }", "private String[] getHeaderColumns() {\n int length = CallLogQuery._PROJECTION.length;\n String[] columns = new String[length + 1];\n System.arraycopy(CallLogQuery._PROJECTION, 0, columns, 0, length);\n columns[length] = CallLogQuery.SECTION_NAME;\n return columns;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getCdcs() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(CDCS_PROP.get());\n }" ]
[ "0.5958459", "0.59284073", "0.55948126", "0.55498207", "0.552016", "0.5493376", "0.54807806", "0.5363934", "0.53530383", "0.53489786", "0.53466666", "0.5335848", "0.5289768", "0.52827597", "0.52807224", "0.5240601", "0.5237857", "0.5230128", "0.521224", "0.5203389", "0.51960903", "0.51934284", "0.5152483", "0.5131771", "0.5113988", "0.51019317", "0.5101471", "0.50965655", "0.50813526", "0.5064835", "0.5064835", "0.5054357", "0.5048924", "0.503595", "0.50310344", "0.50249684", "0.50243294", "0.50243294", "0.50231534", "0.5021275", "0.5006411", "0.4983215", "0.4965633", "0.49581826", "0.4954777", "0.49545902", "0.49382904", "0.49372783", "0.49264067", "0.49021375", "0.48961267", "0.48945045", "0.48886517", "0.4886814", "0.4879019", "0.48749137", "0.48711392", "0.48698908", "0.48622337", "0.4850893", "0.4850766", "0.4848539", "0.4848426", "0.48424804", "0.4823103", "0.4822606", "0.4821246", "0.48157954", "0.48090786", "0.4795457", "0.47941285", "0.47928834", "0.4789159", "0.4786325", "0.47825387", "0.47740737", "0.47662184", "0.47650227", "0.4761579", "0.4761275", "0.47562546", "0.47539634", "0.47494718", "0.4749008", "0.47433725", "0.47414473", "0.4732452", "0.4731344", "0.47282833", "0.47250232", "0.47244248", "0.47243515", "0.47238967", "0.47215065", "0.47214636", "0.4717621", "0.47130963", "0.4711631", "0.47053704", "0.46988267" ]
0.64303637
0
get the columnfamily definition for the signature
protected CfDef getCfDef(String signature) throws IOException { UDFContext context = UDFContext.getUDFContext(); Properties property = context.getUDFProperties(CassandraStorage.class); String prop = property.getProperty(signature); return cfdefFromString(prop); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<ColumnSpecification> metadata();", "protected void initSchema(String signature) throws IOException\n {\n Properties properties = UDFContext.getUDFContext().getUDFProperties(CassandraStorage.class);\n\n // Only get the schema if we haven't already gotten it\n if (!properties.containsKey(signature))\n {\n try\n {\n Cassandra.Client client = ConfigHelper.getClientFromInputAddressList(conf);\n client.set_keyspace(keyspace);\n\n if (username != null && password != null)\n {\n Map<String, String> credentials = new HashMap<String, String>(2);\n credentials.put(PasswordAuthenticator.USERNAME_KEY, username);\n credentials.put(PasswordAuthenticator.PASSWORD_KEY, password);\n\n try\n {\n client.login(new AuthenticationRequest(credentials));\n }\n catch (AuthenticationException e)\n {\n logger.error(\"Authentication exception: invalid username and/or password\");\n throw new IOException(e);\n }\n }\n\n // compose the CfDef for the columfamily\n CfDef cfDef = getCfDef(client);\n\n if (cfDef != null)\n {\n StringBuilder sb = new StringBuilder();\n sb.append(cfdefToString(cfDef));\n properties.setProperty(signature, sb.toString());\n }\n else\n throw new IOException(String.format(\"Table '%s' not found in keyspace '%s'\",\n column_family,\n keyspace));\n }\n catch (Exception e)\n {\n throw new IOException(e);\n }\n }\n }", "private static ColumnDefinition getClusteringColumnDefinition(CFMetaData cfMetaData, int index)\n {\n return cfMetaData.clusteringColumns().get(index);\n }", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index);", "Get<K, C> addColumn(String family, C column);", "protected CfDef getCfDef(Cassandra.Client client)\n throws org.apache.cassandra.thrift.InvalidRequestException,\n UnavailableException,\n TimedOutException,\n SchemaDisagreementException,\n TException,\n NotFoundException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException,\n IOException\n {\n // get CF meta data\n String query = String.format(\"SELECT type, comparator, subcomparator, default_validator, key_validator \" +\n \"FROM %s.%s \" +\n \"WHERE keyspace_name = '%s' AND columnfamily_name = '%s'\",\n SystemKeyspace.NAME,\n LegacySchemaTables.COLUMNFAMILIES,\n keyspace,\n column_family);\n\n CqlResult result = client.execute_cql3_query(ByteBufferUtil.bytes(query), Compression.NONE, ConsistencyLevel.ONE);\n\n if (result == null || result.rows == null || result.rows.isEmpty())\n return null;\n\n Iterator<CqlRow> iteraRow = result.rows.iterator();\n CfDef cfDef = new CfDef();\n cfDef.keyspace = keyspace;\n cfDef.name = column_family;\n if (iteraRow.hasNext())\n {\n CqlRow cqlRow = iteraRow.next();\n\n cfDef.column_type = ByteBufferUtil.string(cqlRow.columns.get(0).value);\n cfDef.comparator_type = ByteBufferUtil.string(cqlRow.columns.get(1).value);\n ByteBuffer subComparator = cqlRow.columns.get(2).value;\n if (subComparator != null)\n cfDef.subcomparator_type = ByteBufferUtil.string(subComparator);\n cfDef.default_validation_class = ByteBufferUtil.string(cqlRow.columns.get(3).value);\n cfDef.key_validation_class = ByteBufferUtil.string(cqlRow.columns.get(4).value);\n }\n cfDef.column_metadata = getColumnMetadata(client);\n return cfDef;\n }", "org.apache.calcite.avatica.proto.Common.Signature getSignature();", "java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> \n getColumnsList();", "private String[] getHeaderColumns() {\n int length = CallLogQuery._PROJECTION.length;\n String[] columns = new String[length + 1];\n System.arraycopy(CallLogQuery._PROJECTION, 0, columns, 0, length);\n columns[length] = CallLogQuery.SECTION_NAME;\n return columns;\n }", "final public ColumnDefinition ColumnDefinition() throws ParseException {ColumnName columnName;\n ColumnType columnType;\n Token tk = null, tk2 = null, tk3 = null, tk4 = null, tk5 = null;\n Value defaultValue = null;\n Value updateValue = null;\n StringValue comment = null;\n ColumnReference columnReference = null;\n columnName = ColumnName();\n columnType = ColumnType();\n label_4:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case NOT:\n case NULL:\n case K_DEFAULT:\n case AUTO_INCREMENT:\n case PRIMARY:\n case KEY:\n case COMMENT:\n case REFERENCES:\n case ON:{\n ;\n break;\n }\n default:\n jj_la1[27] = jj_gen;\n break label_4;\n }\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case NOT:{\n tk = jj_consume_token(NOT);\n jj_consume_token(NULL);\n break;\n }\n case NULL:{\n tk2 = jj_consume_token(NULL);\n break;\n }\n case K_DEFAULT:{\n jj_consume_token(K_DEFAULT);\n defaultValue = Value();\n break;\n }\n case ON:{\n jj_consume_token(ON);\n jj_consume_token(UPDATE);\n updateValue = Value();\n break;\n }\n case AUTO_INCREMENT:{\n tk3 = jj_consume_token(AUTO_INCREMENT);\n break;\n }\n case PRIMARY:\n case KEY:{\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case PRIMARY:{\n tk4 = jj_consume_token(PRIMARY);\n break;\n }\n default:\n jj_la1[28] = jj_gen;\n ;\n }\n tk5 = jj_consume_token(KEY);\n break;\n }\n case COMMENT:{\n jj_consume_token(COMMENT);\n comment = StringValue();\n break;\n }\n case REFERENCES:{\n columnReference = ColumnReference();\n break;\n }\n default:\n jj_la1[29] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\nreturn new ColumnDefinition(columnName, columnType, tk2 != null, tk != null, tk3 != null, tk4 != null, tk5 != null,\n defaultValue, updateValue, comment, columnReference);\n}", "String family();", "Column createColumn();", "Column createColumn(AbstractMemberMetaData fmd, Table table, JavaTypeMapping mapping, ColumnMetaData colmd, Column referenceCol, ClassLoaderResolver clr);", "public ArrayList<Column> getSchema();", "String getColumnName();", "public String getColumnName();", "String getColumn();", "java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList();", "public SchemaDef getSourceSchema();", "com.google.protobuf.ByteString getColumnBytes();", "S getSchema();", "public ColumnMetadata build() {\n ColumnMetadata colMetadata = new ColumnMetadata();\n colMetadata.setName(name);\n colMetadata.setType(type);\n colMetadata.setPhysicalType(physicalType);\n colMetadata.setNullable(nullable);\n colMetadata.setLogicalType(logicalType);\n colMetadata.setByteLength(byteLength);\n colMetadata.setLength(length);\n colMetadata.setScale(scale);\n colMetadata.setPrecision(precision);\n colMetadata.setCollation(collation);\n colMetadata.setOrdinal(ordinal);\n return colMetadata;\n }", "public List<Column> getColumns();", "public Map<String, ColumnMetaData> getColumns();", "protected abstract String getFavoriteColumnName();", "private String ColumnDefinition(SimpleNode treeRoot) {\n String statement;\n SimpleNode node;\n String nodeType;\n\n String columnName = \"\";\n String columnType = \"\";\n String columnParams = \"\";\n\n for (int i = 0; i < treeRoot.jjtGetNumChildren(); i++) {\n node = ((SimpleNode) treeRoot.jjtGetChild(i));\n nodeType = node.toString();\n if (\"ColumnName\".equals(nodeType)) {\n columnName = node.jjtGetFirstToken().image;\n } else if (\"ColumnDataType\".equals(nodeType)) {\n // check if column is surrogate and if it is, add it to table surrogate columns\n if (node.jjtGetChild(0).toString().equals(\"SurrogateDataType\")) {\n columnType = Settings.SurrogateColumnType;\n _tableInfo.addSurrogate(columnName, 1); // first value will be 1\n } else {\n /*\n\t\t\t\t\t * Data type can consist of more than one token.\n\t\t\t\t\t * Example: NUMBER(6)\n */\n columnType = SimpleNodeCompatibility.getSourceString(node);\n }\n } else if (\"PrimaryKeyInlineConstraint\".equals(nodeType)) {\n // add column to primary key list\n _keys.add(columnName);\n } else {\n /*\n\t\t\t\t * Parameter can consist of more than one token.\n\t\t\t\t * Example: NOT NULL\n */\n columnParams = SimpleNodeCompatibility.getSourceString(node);\n }\n }\n\n statement = columnName + \" \" + columnType + \" \" + columnParams;\n\n return statement;\n }", "public int getAD_Column_ID();", "List<String> headerColumns();", "protected String getTableColumn()\n\t\t{\n\t\t\treturn Column ;\n\t\t}", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, boolean reversed, String... columns);", "String getDefinition();", "String getFamily();", "String getFamily();", "public StrColumn getPdbxAnnotator() {\n return delegate.getColumn(\"pdbx_annotator\", DelegatingStrColumn::new);\n }", "@Override\r\n\tprotected String defineColumn(ColumnDefinition columnDefinition) {\n\t\treturn null;\r\n\t}", "public SchemaType getHeaderSchemaType()\n {\n return headerSchemaType;\n }", "java.lang.String getColumn();", "@Override\r\n\tpublic String getType() {\n\t\treturn \"column\";\r\n\t}", "@Override\n\tpublic ColumnSchema<?> getSchema() {\n\t\treturn aspect;\n\t}", "org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();", "Column baseColumn();", "ColumnFull createColumnFull();", "com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder getColumnsOrBuilder(\n int index);", "default String getQualifiedSignature() {\n return declaringType().getId() + \".\" + this.getSignature();\n }", "public interface ColumnMetaData {\n\n\t/**\n\t * The uniqueness level of a column data type.\n\t */\n\tenum Uniqueness {\n\t\t/**\n\t\t * No limitations. Multiple instances of a single column meta data type can be attached to a table or even a\n\t\t * single column.\n\t\t */\n\t\tNONE,\n\n\t\t/**\n\t\t * Multiple instances of a single column meta data type can be attached to a table but at most one per column.\n\t\t */\n\t\tCOLUMN,\n\n\t\t/**\n\t\t * At most one instance of the column meta data type can be attached to a table.\n\t\t */\n\t\tTABLE\n\t}\n\n\t/**\n\t * The unique type id of the column meta data.\n\t *\n\t * @return the type id\n\t */\n\tString type();\n\n\t/**\n\t * The uniqueness level of the meta data. Defaults to {@link Uniqueness#NONE} (no restrictions).\n\t *\n\t * @return the uniqueness level\n\t */\n\tdefault Uniqueness uniqueness() {\n\t\treturn Uniqueness.NONE;\n\t}\n\n}", "java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> \n getColumnList();", "public int getDecoratedColumn (Node node);", "public StrColumn getDepReleaseCodeStructFact() {\n return delegate.getColumn(\"dep_release_code_struct_fact\", DelegatingStrColumn::new);\n }", "protected abstract Map<String, Map<String, Object>> getData(String columnFamilyName);", "public final void mK_COLUMNFAMILY() throws RecognitionException {\n try {\n int _type = K_COLUMNFAMILY;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:15: ( ( C O L U M N F A M I L Y | T A B L E ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:16: ( C O L U M N F A M I L Y | T A B L E )\n {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:16: ( C O L U M N F A M I L Y | T A B L E )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0=='C'||LA3_0=='c') ) {\n alt3=1;\n }\n else if ( (LA3_0=='T'||LA3_0=='t') ) {\n alt3=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:512:18: C O L U M N F A M I L Y\n {\n mC(); \n mO(); \n mL(); \n mU(); \n mM(); \n mN(); \n mF(); \n mA(); \n mM(); \n mI(); \n mL(); \n mY(); \n\n }\n break;\n case 2 :\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:513:20: T A B L E\n {\n mT(); \n mA(); \n mB(); \n mL(); \n mE(); \n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public abstract int getColumn();", "String getMetadataSelectClause();", "public abstract String getDefinition();", "Integer getDomainTemplateColumn();", "List<String> getColumns();", "public List<String> getColumns();", "public SemanticType[] family() {\n return values();\n }", "com.google.protobuf.ByteString\n getColumnBytes();", "public String getDefinition() {\n\t\ttry {\n\t\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/definition\").getText();\n\t\t} catch (Throwable t) {\n\t\t}\n\t\treturn \"\";\n\t}", "com.google.protobuf.ByteString\n getField1433Bytes();", "IColumnBinding addColumn(EStructuralFeature feature, int width);", "public List getColumns() {\r\n return columns;\r\n }", "@Override\r\n\t\tpublic String getSchema() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "java.lang.String getField1126();", "public List<ColumnSchema> getColumns() {\n return columns;\n }", "List<SQLColumn> default_field_as_column(Class clss){\n\n List<SQLColumn> output = new ArrayList<>();\n ColumnHandler handler = Scanner.new_handler(newColumn());\n\n for (Field field: clss.getFields()){\n if (!Scanner.has_ESAnnotation(field))\n output.add(new SQLColumn(handler, field));\n }\n\n return output;\n }", "int atColumn();", "@java.lang.Override\n public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) {\n return columns_.get(index);\n }", "DataFrameColumns<R,C> cols();", "com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column getColumn(int index);", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, int limit, boolean reversed, String fromColumn, String toColumn);", "public ResultSet getFactory(){\n ResultSet rs = null;\r\n try {\r\n rs = conn.getResultSetF();\r\n ResultSetMetaData rsmetadata = rs.getMetaData();\r\n int column = rsmetadata.getColumnCount();\r\n // String[] factoryString = null;\r\n\r\n for(int i=1; i<=column; i++){\r\n data_raws.add(rsmetadata.getColumnName(i));\r\n }\r\n //dtm.setColumnIdentifiers(columns_name);\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ApplicationData.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return rs;\r\n }", "String handlerSchema();", "com.google.protobuf.ByteString\n getSourceColumnNameBytes();", "public static ColumnMetadataBuilder newBuilder() {\n ColumnMetadataBuilder mb = new ColumnMetadataBuilder();\n mb.name = \"testCol\";\n mb.byteLength = 14;\n mb.length = 11;\n mb.scale = 0;\n mb.precision = 4;\n return mb;\n }", "IColumnBinding addColumn(IColumnBinding baseColumn, EStructuralFeature feature, int width);", "public java.util.List<? extends com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinitionOrBuilder> \n getColumnsOrBuilderList() {\n if (columnsBuilder_ != null) {\n return columnsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(columns_);\n }\n }", "ColumnPair columnPair();", "public com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition getColumns(int index) {\n if (columnsBuilder_ == null) {\n return columns_.get(index);\n } else {\n return columnsBuilder_.getMessage(index);\n }\n }", "protected CFMetaData getCFMetaData(String ks, String cf, Cassandra.Client client)\n throws NotFoundException,\n org.apache.cassandra.thrift.InvalidRequestException,\n TException,\n org.apache.cassandra.exceptions.InvalidRequestException,\n ConfigurationException\n {\n KsDef ksDef = client.describe_keyspace(ks);\n for (CfDef cfDef : ksDef.cf_defs)\n {\n if (cfDef.name.equalsIgnoreCase(cf))\n return ThriftConversion.fromThrift(cfDef);\n }\n return null;\n }", "public int getColumn();", "public ColumnContext context();", "AttributeDefinition getDefinition();", "public SchemaInfo getSchema () throws Exception;", "Column[] getColumns() { return columns; }", "SchemaDefinition createSchemaDefinition();", "public interface JCFColumn {\n\n\t/**\n * Returns the column's label.\n *\n * @return label of the column.\n */\n public String getLabel();\n \n /**\n * Returns the column's data format. Valid formats are:\n *\n * <ul>\n * <li>text-single -> single line or word of text\n * <li>text-private -> instead of showing the user what they typed, you show ***** to\n * protect it\n * <li>text-multi -> multiple lines of text entry\n * <li>list-single -> given a list of choices, pick one\n * <li>list-multi -> given a list of choices, pick one or more\n * <li>boolean -> 0 or 1, true or false, yes or no. Default value is 0\n * <li>fixed -> fixed for putting in text to show sections, or just advertise your web\n * site in the middle of the form\n * <li>hidden -> is not given to the user at all, but returned with the questionnaire\n * <li>jid-single -> Jabber ID - choosing a JID from your roster, and entering one based\n * on the rules for a JID.\n * <li>jid-multi -> multiple entries for JIDs\n * </ul>\n *\n * @return format for the returned data.\n */\n public String getType();\n \n /**\n * Returns the variable name that the column is showing.\n *\n * @return the variable name of the column.\n */\n public String getVariable();\n}", "@JsonIgnore\n public Map<String, ColumnSchema> getColumnsById() {\n return columnsById;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.apache.calcite.avatica.proto.Common.Signature, org.apache.calcite.avatica.proto.Common.Signature.Builder, org.apache.calcite.avatica.proto.Common.SignatureOrBuilder> \n getSignatureFieldBuilder() {\n if (signatureBuilder_ == null) {\n signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.apache.calcite.avatica.proto.Common.Signature, org.apache.calcite.avatica.proto.Common.Signature.Builder, org.apache.calcite.avatica.proto.Common.SignatureOrBuilder>(\n getSignature(),\n getParentForChildren(),\n isClean());\n signature_ = null;\n }\n return signatureBuilder_;\n }", "byte[][] getQualifierKeys(String family) {\n\t\tMap<String, TypeInformation<?>> qualifierMap = familyMap.get(family);\n\n\t\tif (qualifierMap == null) {\n\t\t\tthrow new IllegalArgumentException(\"Family \" + family + \" does not exist in schema.\");\n\t\t}\n\t\tCharset c = Charset.forName(charset);\n\n\t\tbyte[][] qualifierKeys = new byte[qualifierMap.size()][];\n\t\tint i = 0;\n\t\tfor (String name : qualifierMap.keySet()) {\n\t\t\tqualifierKeys[i++] = name.getBytes(c);\n\t\t}\n\t\treturn qualifierKeys;\n\t}", "public StrColumn getRecvdStructFact() {\n return delegate.getColumn(\"recvd_struct_fact\", DelegatingStrColumn::new);\n }", "int getColumn();", "protected static EncodingDefinition getEncodingDefinition(FieldDescriptor fieldDescriptor) throws SQLException {\n final int characterSetId;\n switch (fieldDescriptor.getType() & ~1) {\n case ISCConstants.SQL_TEXT:\n case ISCConstants.SQL_VARYING:\n characterSetId = fieldDescriptor.getSubType();\n break;\n case ISCConstants.SQL_BLOB:\n if (fieldDescriptor.getSubType() == 1) {\n characterSetId = fieldDescriptor.getScale();\n } else {\n characterSetId = ISCConstants.CS_NONE;\n }\n break;\n default:\n throw new SQLException(\"Unexpected Firebird data type: \" + fieldDescriptor);\n }\n return fieldDescriptor.getDatatypeCoder().getEncodingFactory()\n .getEncodingDefinitionByCharacterSetId(characterSetId);\n }", "public Column[] getColumns() {return columns;}", "KijiColumnName getAttachedColumn();", "Column getCol();", "List<Column> getQueryColumns();", "public ExecSignature getDeclaredSignature() {\n\t\t\treturn (ExecSignature)this.Datas[Index_ExecSignature];\n\t\t}", "public Schema getKeySchema() {\n\n\t\tint num_keys = pkColumnNames.size();\n\t\tif (num_keys == 0){\n\t\t\tthrow new DataException(\"Empty primary key\");\n\t\t}\n\t\t//TODO: we always create Struct for the pKey - is there a point to just have a field if it's a single pKey?\n\t SchemaBuilder pkBuilder = SchemaBuilder.struct().name(this.pkSchemaName());\n\n\t for (String pk : this.pkColumnNames) {\n\t \t Field field = schema.field(pk);\n\t \t pkBuilder.field(field.name(), field.schema());\n\t }\n\t return pkBuilder.build();\n\t}", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column.Builder> \n getColumnBuilderList() {\n return getColumnFieldBuilder().getBuilderList();\n }" ]
[ "0.6163313", "0.59198797", "0.5672286", "0.5669904", "0.5660651", "0.5607494", "0.55679077", "0.553131", "0.53917885", "0.53777206", "0.5359548", "0.53582", "0.5352197", "0.5342324", "0.5341032", "0.5330743", "0.5318132", "0.5313399", "0.5305974", "0.52813977", "0.5279122", "0.52759373", "0.5262971", "0.52390766", "0.52378595", "0.5233308", "0.52188766", "0.5216231", "0.5206513", "0.5170506", "0.5165412", "0.51613843", "0.51613843", "0.5157279", "0.51524806", "0.51522666", "0.51440334", "0.5135728", "0.5135301", "0.5126761", "0.5122961", "0.51119775", "0.5102098", "0.5094717", "0.5093859", "0.50882727", "0.50799894", "0.5075393", "0.50752014", "0.5073951", "0.50712454", "0.50614554", "0.5061034", "0.5059041", "0.50509685", "0.5046856", "0.5042599", "0.5039582", "0.5039428", "0.5038145", "0.50345206", "0.50320035", "0.5030184", "0.50194186", "0.500841", "0.5001658", "0.5001519", "0.49949774", "0.49925333", "0.49910116", "0.49906904", "0.49897018", "0.49878097", "0.49858564", "0.49785143", "0.4965092", "0.49646816", "0.4962598", "0.4961337", "0.49610612", "0.49549228", "0.49496856", "0.49492705", "0.4949144", "0.4947306", "0.4946167", "0.4944086", "0.49434996", "0.4940037", "0.49379852", "0.4932892", "0.49283776", "0.49221778", "0.49189264", "0.49177834", "0.49159253", "0.4910833", "0.49085099", "0.49038044", "0.4901017" ]
0.6684656
0
convert string back to CfDef
protected static CfDef cfdefFromString(String st) throws IOException { assert st != null; TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory()); CfDef cfDef = new CfDef(); try { deserializer.deserialize(cfDef, Hex.hexToBytes(st)); } catch (TException e) { throw new IOException(e); } return cfDef; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "C12000e mo41091f(String str);", "public C6987b mo21798a(String str, float f, boolean z, char[] cArr) {\n Typeface typeface;\n String lowerCase = str.toLowerCase();\n if (lowerCase.endsWith(\".otf\") || lowerCase.endsWith(\".ttf\")) {\n typeface = Typeface.createFromAsset(this.f24530b.mo22068i(), str);\n } else {\n typeface = (Typeface) C6987b.m36542a(str);\n }\n return new C6987b(typeface, m36425g(f), z, cArr);\n }", "public String makeConversion(String value);", "C12000e mo41087c(String str);", "void mo1582a(String str, C1329do c1329do);", "private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }", "public abstract C24343db mo70723f(String str);", "@Test\r\n public void testToCIFString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n // strings\r\n comment = new CIFComment(COMMENTS);\r\n s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \r\n \"#\"+COMMENTS[0]+\"\\n\" +\r\n \"#\"+COMMENTS[1]+\"\\n\" +\r\n \"#\"+COMMENTS[2]+\"\\n\" +\r\n \"\", s);\r\n }", "protected static String cfdefToString(CfDef cfDef) throws IOException\n {\n assert cfDef != null;\n // this is so awful it's kind of cool!\n TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory());\n try\n {\n return Hex.bytesToHex(serializer.serialize(cfDef));\n }\n catch (TException e)\n {\n throw new IOException(e);\n }\n }", "public Object stringToObject(String s, Class c){\n Gson gson = new Gson();\n Object o = gson.fromJson(s, c);\n return o;\n }", "C8325a mo21498a(String str);", "C1111j mo5881f(String str);", "public abstract void mo70709a(String str, C41018cm c41018cm);", "@Test\r\n public void testCIFCommentString() {\r\n CIFComment comment = new CIFComment(COMMENT);\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\"+COMMENT+\"\\n\", s);\r\n }", "private static void decompileFields(ClassFile cf, PrintWriter out) {\n FieldInfo[] fields = cf.fields;\n for (FieldInfo field : fields) {\n out.print(getFieldAccessText(field.accessFlags));\n String fieldName = getUtf8(cf, field.nameIndex);\n String fieldTypeText = getFieldTypeText(cf, field.descriptorIndex);\n out.print(fieldTypeText);\n out.print(' ');\n out.print(fieldName);\n\n if (field.attributes != null) {\n String descriptor = getUtf8(cf, field.descriptorIndex);\n for (AttributeInfo ai : field.attributes) {\n if (ai instanceof ConstantValueAttribute) {\n out.print(\" = \");\n ConstantValueAttribute cva = (ConstantValueAttribute) ai;\n //\\[?[BCDFIJSZ]|L[^;]+;\n if (\"B\".equals(descriptor)) {\n byte b = getByte(cf, cva.constantValueIndex);\n out.print(Byte.MAX_VALUE==b ? \"Byte.MAX_VALUE\" : Byte.MIN_VALUE==b ? \"Byte.MIN_VALUE\" : b);//TODO: allow whether encode min max or not\n } else if (\"C\".equals(descriptor)) {\n char c = getChar(cf, cva.constantValueIndex);\n out.print(Character.MAX_VALUE==c ? \"Character.MAX_VALUE\" : Character.MIN_VALUE==c ? \"Character.MIN_VALUE\" : \"'\"+Character.toString(c)+\"'\");\n } else if (\"D\".equals(descriptor)) {\n double d = getDouble(cf, cva.constantValueIndex);\n out.print(Double.isInfinite(d) ? (d > 0 ? \"Double.POSITIVE_INFINITY\" : \"Double.NEGATIVE_INFINITY\") : Double.isNaN(d) ? \"Double.NaN\" : Double.toString(d));//TODO: allow whether encode infinities and NaN, and other constants or not\n } else if (\"F\".equals(descriptor)) {\n //TODO: allow without \"F\" if value within float range; encode NaN\n //TODO: allow whether encode infinities and NaN, and other constants or not\n float f = getFloat(cf, cva.constantValueIndex);\n out.print(Float.isInfinite(f) ? f > 0 ? \"Float.POSITIVE_INFINITY\" : \"Float.NEGATIVE_INFINITY\" : Float.isNaN(f) ? \"Float.NaN\" : Float.toString(f)+\"F\");\n } else if (\"I\".equals(descriptor)) {\n int i = getInt(cf, cva.constantValueIndex);\n out.print(Integer.MAX_VALUE==i ? \"Integer.MAX_VALUE\" : Integer.MIN_VALUE==i ? \"Integer.MIN_VALUE\" : Integer.toString(i));//TODO: allow whether encode min max or not\n } else if (\"J\".equals(descriptor)) {\n //TODO: allow without \"L\" if value within int range\n //TODO: allow whether encode min max or not\n long j = getLong(cf, cva.constantValueIndex);\n out.print(Long.MAX_VALUE==j ? \"Long.MAX_VALUE\" : Long.MIN_VALUE==j ? \"Long.MIN_VALUE\" : Long.toString(j)+\"L\");\n } else if (\"S\".equals(descriptor)) {\n //TODO: allow whether encode min max or not\n short s = getShort(cf, cva.constantValueIndex);\n out.print(Short.MAX_VALUE==s ? \"Short.MAX_VALUE\" : Short.MIN_VALUE==s ? \"Short.MIN_VALUE\" : Long.toString(s));\n } else if (\"Z\".equals(descriptor)) {\n out.print(getBoolean(cf, cva.constantValueIndex));\n } else if (descriptor.charAt(0) == 'L') {\n //TODO: Maight not be String; encode unprintable characters\n out.print('\"');\n out.print(getString(cf, cva.constantValueIndex));\n out.print('\"');\n } else {\n //TODO: ?\n out.print(\"TODO:decompileFields\");\n }\n }\n }\n }\n\n out.println(';');\n }\n }", "private void m29110f(String str) {\n if (m29108b(str)) {\n if (str.endsWith(\"\\n\")) {\n str = str.substring(0, str.length() - 1);\n }\n if (str.length() == 24) {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n cVar.putString(\"UTDID2\", str);\n this.f22554b.commit();\n }\n }\n }\n }", "String convertStringForStorage(String value);", "private void convertString(AssignStatContext c, List<String> ssa) {\n\t\tString content = c.StringLiteral().getText();\n\t\tcontent = content.substring(1, content.length() - 1);\n\t\tString id = c.ID().getText();\n\t\tString newId = this.generateNewName(id);\n\t\tStringRepresentation rep = new StringRepresentation(newId, content);\n\t\tssa.addAll(rep.getConstraints());\n\t\t\n\t}", "protected CfDef getCfDef(String signature) throws IOException\n {\n UDFContext context = UDFContext.getUDFContext();\n Properties property = context.getUDFProperties(CassandraStorage.class);\n String prop = property.getProperty(signature);\n return cfdefFromString(prop);\n }", "String convert(List<RawField> fields, String copybookName);", "public abstract void fromString(String s, String context);", "public abstract void mo70710a(String str, C24343db c24343db);", "C11996a mo41085b(String str);", "public Object convertTo(String value) {\r\n return toFont(value);\r\n }", "C11998c mo41092g(String str);", "public abstract void mo70718c(String str, float f);", "public String mo27182fR(String str) {\n String str2;\n if (TextUtils.isEmpty(str) || !str.contains(\".\")) {\n StringBuilder sb = new StringBuilder();\n sb.append(cmE);\n sb.append(str);\n sb.append(cmF);\n str2 = sb.toString();\n } else {\n String fM = C5485c.m14892fM(str);\n StringBuilder sb2 = new StringBuilder();\n sb2.append(cmE);\n sb2.append(fM);\n sb2.append(cmF);\n str2 = sb2.toString();\n }\n if (TextUtils.isEmpty(str2) || !C5488f.m14899fN(str2)) {\n return null;\n }\n return str2;\n }", "public String getType(String name) {\n/* 164 */ return \"CDATA\";\n/* */ }", "public Object decodeEMF(String value) {\n\t\treturn decodeEMF(value, null);\n\t}", "@Override\r\n\tprotected void convertStringConst(String str) {\r\n\t\tappend(\"\\'\\\"\", str.replace(\"\\'\",\"\\'\\'\"), \"\\\"\\'\");\r\n\t}", "public IMessageFieldValue createFromString( String text) throws Exception;", "public Object parse(String s) throws JDBFException {\r\n s = s.trim();\r\n if (type == 'N' || type == 'F') {\r\n if (s.equals(\"\")) {\r\n s = \"0\";\r\n }\r\n try {\r\n if (getDecimalCount() == 0) {\r\n return new Long(s);\r\n } else {\r\n return new Double(s);\r\n }\r\n } catch (NumberFormatException numberformatexception) {\r\n throw new JDBFException(numberformatexception);\r\n }\r\n }\r\n if (type == 'C') {\r\n return s;\r\n }\r\n if (type == 'L') {\r\n if (s.equals(\"Y\") || s.equals(\"y\") || s.equals(\"T\") || s.equals(\"t\")) {\r\n return new Boolean(true);\r\n }\r\n if (s.equals(\"N\") || s.equals(\"n\") || s.equals(\"F\") || s.equals(\"f\")) {\r\n return new Boolean(false);\r\n } else {\r\n throw new JDBFException(\"Unrecognized value for logical field: \" + s);\r\n }\r\n }\r\n if (type == 'D') {\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n try {\r\n if (\"\".equals(s)) {\r\n return null;\r\n } else {\r\n return simpledateformat.parse(s);\r\n }\r\n } catch (ParseException parseexception) {\r\n //throw new JDBFException(parseexception);\r\n return null;\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }", "public abstract C14407a mo11606a(String str);", "<S> S fromStr(String s, Class<S> clazz);", "C11996a mo41079a(String str);", "SAPL parse(String saplDefinition);", "static String changeStr(StringFunc sf, String s){\n return sf.func(s);\n }", "public abstract void mo70714b(String str, float f);", "public TypeDescriptor(String str) {\n handle = str;\n arrayDimensions = str.length() - str.replaceAll(\"\\\\[\", \"\").length();\n str = str.replaceAll(\"\\\\[\", \"\");\n if (primTypes.containsKey(str)) {\n canonicalName = primTypes.get(str);\n } else if (str.startsWith(\"L\") && str.endsWith(\";\")) {\n String className = str.substring(1, str.length() - 1);\n if (className.length() - className.replace(\"/\", \"\").length() == 2\n && className.startsWith(\"java/lang/\")) {\n canonicalName = className.substring(\"java/lang/\".length());\n } else {\n canonicalName = className.substring(className.lastIndexOf(\"/\") + 1);\n reqImport = className.replaceAll(\"/\", \".\");\n }\n } else {\n throw new IllegalArgumentException(\"Invalid descriptor: \" + str);\n }\n }", "String getCmt();", "java.lang.String getField1818();", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "C1114c mo5879d(String str);", "public final String zzfo(String str) {\n String valueOf = String.valueOf(super.zzfo(str));\n return valueOf.length() != 0 ? \"cache:\".concat(valueOf) : new String(\"cache:\");\n }", "public abstract C47151g mo118417a(String str);", "void mo1935c(String str);", "static public GCode fromString(String str) {\n int c = str.indexOf('(');\n if(c != -1) {\n str = str.substring(0,c-1);\n } \n String[] parts = str.split(\" \");\n GCode g = new GCode(parts[0]);\n // parse args\n for(int i=1; i < parts.length; i++) {\n String arg = parts[i].substring(0,1);\n if(parts[i].length() == 1) {\n g.arg(arg);\n } else {\n String value = parts[i].substring(1);\n g.arg(arg, value); \n }\n }\n return g;\n }", "public static ColumnDefinition fromString(String columnInfo) {\n String name = DEFAULT_NAME;\n DataType type = DEFAULT_TYPE;\n boolean nullable = DEFAULT_NULLABLE;\n int length = DEFAULT_LENGTH;\n int precision = -1;\n int scale = -1;\n String timezone = null;\n String value = null;\n Map<String, Integer> options = new LinkedHashMap<>();\n\n if (columnInfo != null && (columnInfo = columnInfo.trim()).length() > 0) {\n char quote = columnInfo.charAt(0);\n boolean hasQuote = quote == '`' || quote == '\"';\n boolean escaped = false;\n int lastIndex = columnInfo.length() - 1;\n int nameEndIndex = hasQuote ? Math.min(columnInfo.lastIndexOf(quote), lastIndex) : lastIndex;\n StringBuilder sb = new StringBuilder(lastIndex + 1);\n for (int i = hasQuote ? 1 : 0; i <= lastIndex; i++) {\n char ch = columnInfo.charAt(i);\n escaped = !escaped && (ch == '\\\\'\n || (hasQuote && ch == quote && columnInfo.charAt(Math.min(i + 1, lastIndex)) == quote));\n\n if ((hasQuote && !escaped && i == nameEndIndex) || (!hasQuote && Character.isWhitespace(ch))) {\n name = sb.toString();\n sb.setLength(0);\n\n // type declaration is case-sensitive\n String declaredType = columnInfo.substring(Math.min(i + 1, lastIndex)).trim();\n String defaultValue = null;\n\n i = columnInfo.length() - 1;\n\n // default value. unlike Nullable etc. default is case-insensitive...\n int defaultIndex = Utils.indexOfKeywordIgnoreCase(declaredType, TOKEN_DEFAULT);\n if (defaultIndex > 0) {\n defaultValue = declaredType.substring(defaultIndex + TOKEN_DEFAULT.length()).trim();\n declaredType = declaredType.substring(0, defaultIndex).trim();\n\n if (!defaultValue.isEmpty()) {\n value = defaultValue.charAt(0) == '\\''\n && defaultValue.charAt(defaultValue.length() - 1) == '\\''\n ? defaultValue.substring(1, defaultValue.length() - 1)\n : defaultValue;\n\n if (NULL_VALUE.equalsIgnoreCase(value)) {\n value = null;\n }\n }\n }\n\n // nullable\n if (declaredType.startsWith(NULLABLE_BEGIN)) {\n int suffixIndex = declaredType.lastIndexOf(NULLABLE_END);\n if (suffixIndex != -1) {\n nullable = true;\n declaredType = declaredType.substring(NULLABLE_BEGIN.length(), suffixIndex);\n } else {\n log.warn(\"Discard invalid Nullable declaration [{}]\", declaredType);\n }\n } else {\n nullable = false;\n }\n\n // enum*, datetime* and decimal*\n int index = declaredType.indexOf('(');\n if (index > 0 && declaredType.charAt(declaredType.length() - 1) == ')') {\n String innerExpr = declaredType.substring(index + 1, declaredType.length() - 1);\n List<String> arguments = Utils.splitByChar(innerExpr, ',');\n type = DataType.from(declaredType.substring(0, index));\n\n int size = arguments.size();\n if (size > 0) {\n switch (type) {\n case Enum:\n case Enum8:\n case Enum16:\n arguments.clear();\n options.putAll(parseOptions(innerExpr));\n break;\n case FixedStr:\n length = Integer.parseInt(arguments.remove(0));\n break;\n case DateTime64:\n scale = Integer.parseInt(arguments.remove(0));\n case DateTime:\n if (arguments.size() > 0) {\n String tz = arguments.remove(0).trim();\n if (tz.length() > 2 && tz.charAt(0) == '\\''\n && tz.charAt(tz.length() - 1) == '\\'') {\n timezone = tz.substring(1, tz.length() - 1);\n }\n }\n break;\n case Decimal:\n precision = Integer.parseInt(arguments.remove(0));\n case Decimal32:\n case Decimal64:\n case Decimal128:\n case Decimal256:\n if (arguments.size() > 0) {\n scale = Integer.parseInt(arguments.remove(0));\n }\n break;\n default:\n log.warn(\"Discard unsupported arguments for [{}]: {}\", declaredType, arguments);\n break;\n }\n\n if (arguments.size() > 0) {\n log.warn(\"Discard unsupported arguments for [{}]: {}\", declaredType, arguments);\n }\n } else {\n log.warn(\"Discard empty argument for [{}]\", declaredType);\n }\n } else {\n type = DataType.from(declaredType);\n }\n } else if (name == DEFAULT_NAME) {\n if (!hasQuote || (hasQuote && !escaped)) {\n sb.append(ch);\n }\n }\n }\n\n if (sb.length() > 0) {\n name = sb.toString();\n }\n }\n\n return new ColumnDefinition(name, type, nullable, length, precision, scale, timezone, value, options);\n }", "public void mo13879c(String str) {\n this.f5080f = str;\n }", "@Override\n\t\t\tprotected Type convert(String text) {\n\t\t\t\tType t = null;\n\t\t\t\ttry {\n\t\t\t\t\t// return null if the types do not match the\n\t\t\t\t\t// original\n\t\t\t\t\tt = Type.getType(text);\n\t\t\t\t\tif (t == null || !match(t, original)) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {}\n\t\t\t\treturn t;\n\t\t\t}", "@Override\n\tpublic String fieldConvert(String field) {\n\t\tif (!StringUtils.isEmpty(field)) {\n\t\t\tswitch (field) {\n\t\t\tcase \"code\":\n\t\t\t\treturn \"CODE\";\n\t\t\tcase \"name\":\n\t\t\t\treturn \"NAME\";\n\t\t\tcase \"createTime\":\n\t\t\t\treturn \"CREATE_TIME\";\n\t\t\tcase \"updateTime\":\n\t\t\t\treturn \"UPDATE_TIME\";\n\t\t\tdefault:\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public static Formula parse_string(String sf)\n\t{\n\t\tFormula f = new Formula(sf, Formula.formula_type(sf.substring(1, sf.length()-1)), new MetaFormula());\n\t\treturn f;\n\t}", "T convert(String value);", "C11998c mo41090e(String str);", "private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}", "public cf createFromParcel(Parcel parcel) {\n int b = b.b(parcel);\n int i = 0;\n String str = null;\n int i2 = 0;\n short s = (short) 0;\n double d = 0.0d;\n double d2 = 0.0d;\n float f = 0.0f;\n long j = 0;\n int i3 = 0;\n int i4 = -1;\n while (parcel.dataPosition() < b) {\n int a = b.a(parcel);\n switch (b.a(a)) {\n case 1:\n str = b.j(parcel, a);\n break;\n case 2:\n j = b.g(parcel, a);\n break;\n case 3:\n s = b.d(parcel, a);\n break;\n case 4:\n d = b.i(parcel, a);\n break;\n case 5:\n d2 = b.i(parcel, a);\n break;\n case 6:\n f = b.h(parcel, a);\n break;\n case 7:\n i2 = b.e(parcel, a);\n break;\n case 8:\n i3 = b.e(parcel, a);\n break;\n case 9:\n i4 = b.e(parcel, a);\n break;\n case 1000:\n i = b.e(parcel, a);\n break;\n default:\n b.b(parcel, a);\n break;\n }\n }\n if (parcel.dataPosition() == b) {\n return new cf(i, str, i2, s, d, d2, f, j, i3, i4);\n }\n throw new a(\"Overread allowed size end=\" + b, parcel);\n }", "cdfgFactory getcdfgFactory();", "public static String convert(String paramString)\n/* */ {\n/* 2703 */ if (paramString == null) {\n/* 2704 */ return null;\n/* */ }\n/* */ \n/* 2707 */ int i = -1;\n/* 2708 */ StringBuffer localStringBuffer = new StringBuffer();\n/* 2709 */ UCharacterIterator localUCharacterIterator = UCharacterIterator.getInstance(paramString);\n/* */ \n/* 2711 */ while ((i = localUCharacterIterator.nextCodePoint()) != -1) {\n/* 2712 */ switch (i) {\n/* */ case 194664: \n/* 2714 */ localStringBuffer.append(corrigendum4MappingTable[0]);\n/* 2715 */ break;\n/* */ case 194676: \n/* 2717 */ localStringBuffer.append(corrigendum4MappingTable[1]);\n/* 2718 */ break;\n/* */ case 194847: \n/* 2720 */ localStringBuffer.append(corrigendum4MappingTable[2]);\n/* 2721 */ break;\n/* */ case 194911: \n/* 2723 */ localStringBuffer.append(corrigendum4MappingTable[3]);\n/* 2724 */ break;\n/* */ case 195007: \n/* 2726 */ localStringBuffer.append(corrigendum4MappingTable[4]);\n/* 2727 */ break;\n/* */ default: \n/* 2729 */ UTF16.append(localStringBuffer, i);\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 2734 */ return localStringBuffer.toString();\n/* */ }", "@JsonCreator\n public static CreateMode fromString(String name) {\n return fromString(name, CreateMode.class);\n }", "java.lang.String getField1883();", "public C0571a mo7880b(String str) {\n if (str != null) {\n this.f715f = str.replaceAll(\" \", \"%20\");\n } else {\n this.f715f = null;\n }\n return this;\n }", "public final void m46a(String str) {\r\n this.f16a = str;\r\n }", "public String toCLang() {\n StringBuilder result = new StringBuilder();\n String tipo = \"\";\n\n if (type.equals(\"string\"))\n tipo = \"char* \";\n else {\n if (type.equals(\"bool\"))\n tipo = \"int \";\n else\n tipo = type;\n }\n for (Id id : identifierList) {\n result.append(tipo + \" \" + id.getName() + \", \");\n }\n\n int lastIndexComma = result.lastIndexOf(\",\");\n result.deleteCharAt(lastIndexComma);\n\n return result.toString();\n }", "public String toAsmCode(){\n\t\tif(value<0) //for drive label with value<0, we add _n if value is <0\n\t\t\treturn \".FloatLiteral_n\"+ getStringValue().substring(1,getStringValue().length());\n\t\telse\n\t\t\treturn \".FloatLiteral_\"+ getStringValue();\n\t}", "java.lang.String getField1606();", "public abstract float mo70722e(String str);", "java.lang.String getField1806();", "CamembertdeNormandie(Machecoulais machecoulais, Context context, String str) {\n super(0);\n this.f16562a = machecoulais;\n this.f16563b = context;\n this.f16564c = str;\n }", "@Override\n\tpublic Definitions convertToXmlBean(String xmlstring) {\n\t\tfinal InputStream stream = string2InputStream(xmlstring);\n\t\ttry {\n\t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(Definitions.class);\n\n\t\t\tfinal Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\tjaxbUnmarshaller.setSchema(getToscaSchema());\n\n\t\t\treturn (Definitions) jaxbUnmarshaller.unmarshal(stream);\n\t\t} catch (final JAXBException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "java.lang.String getField1026();", "java.lang.String getField1307();", "java.lang.String getField1665();", "public static BSimFromFileChemicalField parse (String paramString, BSim sim) {\n\t\tHashMap<String, String> params = BSimParser.parseAttributeValuePairs(paramString);\n\n\t\t// set the default chemical field values for discretisation, diffusivity, and chemical decay rate\n\t\tint[] \t\tnumBoxes = {10,10,10};\n\t\tdouble \t\tdiffusivity = 0;\n\t\tdouble \t\tdecayRate = 0;\n\t\t\n\t\tColor \t\tchemFieldCol = new Color(128, 128, 255);\n\t\tdouble \t\talphaPerUnit = 1.0;\n\t\tdouble\t\talphaMax = 200.0;\n\t\t\n\t\t\n\t\t// set the chemical field discretisation (number of boxes)\n\t\t// Boxes=nBoxesInXDirection;nBoxesInYDirection;nBoxesInZDirection\n\t\tif (params.containsKey(\"Boxes\")) {\n\t\t\t// Split the positions on ';' character\n\t\t\tString[] paramArray = params.get(\"Boxes\").split(\";\");\n\t\t\t\n\t\t\tint dimension = numBoxes.length;\n\t\t\t\n\t\t\tif (paramArray.length != dimension) {\n\t\t\t\tSystem.err.println(\"Problem extracting \" + \"Boxes\" + \" for chemical field\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor (int i = 0; i < dimension; i++) {\n\t\t\t\t\tnumBoxes[i] = BSimParser.parseToInt(paramArray[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Update the diffusivity\n\t\tif (params.containsKey(\"Diffusivity\")) {\n\t\t\tdiffusivity = BSimParser.parseToDouble(params.get(\"Diffusivity\"));\n\t\t}\n\n\t\t// Update the decay rate\n\t\tif (params.containsKey(\"DecayRate\")) {\n\t\t\tdecayRate = BSimParser.parseToDouble(params.get(\"DecayRate\"));\n\t\t}\n\t\t\n\t\t// Update the alpha per unit\n\t\tif (params.containsKey(\"AlphaPerUnit\")) {\n\t\t\talphaPerUnit = BSimParser.parseToDouble(params.get(\"AlphaPerUnit\"));\n\t\t}\n\n\t\t// Update the max alpha\n\t\tif (params.containsKey(\"AlphaMax\")) {\n\t\t\talphaMax = BSimParser.parseToDouble(params.get(\"AlphaMax\"));\n\t\t}\n\t\t\t\t\n\t\tColor tempCol = BSimParser.getColorFromParam(params, \"Color\");\n\t\tif (tempCol != null) { chemFieldCol = tempCol; }\n\t\t\n\t\t// generate the chemical field\n\t\tBSimFromFileChemicalField theField = new BSimFromFileChemicalField(sim, numBoxes, diffusivity, decayRate, chemFieldCol, alphaPerUnit, alphaMax);\n\t\t\t\t\n\t\t// set up chemical field gradient if one is defined\n\t\tif (params.containsKey(\"GradientDirection\")) {\n\t\t\tif (params.containsKey(\"GradientLimits\")) {\n\t\t\t\t// Split the minimum and maximum values on ';'\n\t\t\t\tString[] gradientMinMax = params.get(\"GradientLimits\").split(\";\");\n\t\t\t\t\n\t\t\t\tif (gradientMinMax.length != 2) {\n\t\t\t\t\tSystem.err.println(\"Problem extracting the chemical field gradient limits\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString gradientDirection = params.get(\"GradientDirection\");\n\t\t\t\t\t\n\t\t\t\t\t// Setup the gradient direction \n\t\t\t\t\tint axis = -1;\n\t\t\t\t\tif (gradientDirection.equals(\"x\") || gradientDirection.equals(\"X\")) axis = 0;\n\t\t\t\t\telse if (gradientDirection.equals(\"y\") || gradientDirection.equals(\"Y\")) axis = 1;\n\t\t\t\t\telse if (gradientDirection.equals(\"z\") || gradientDirection.equals(\"Z\")) axis = 2;\n\t\t\t\t\telse System.err.println(\"Invalid chemical gradient direction\");\n\t\t\t\t\t\n\t\t\t\t\ttheField.linearGradient(axis, BSimParser.parseToDouble(gradientMinMax[0]), BSimParser.parseToDouble(gradientMinMax[1]));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Need to specify 'GradientDirection' *and* 'Gradient'\");\n\t\t\t}\n\t\t}\n\n\t\treturn theField;\n\t}", "C12000e mo41082a(String str, C12001f fVar, String... strArr);", "@Override\n public NdefMessage createNdefMessage(NfcEvent nfcEvent) {\n\n String packageName = getApplicationInfo().packageName;\n\n // get the edit text string\n str = mInput.getText().toString();\n //Log.d(TAG, getString(R.string.debug_key) + \" \" + str);\n\n String mimeType = \"application/\" + packageName;\n Log.d(TAG, getString(R.string.debug_key) + \"mimetype\" + mimeType);\n byte[] mimeByte = mimeType.getBytes(Charset.forName(\"US-ASCII\"));\n\n // encapsulate data in array of ndefrecord\n NdefRecord[] ndefRecord = new NdefRecord[]{\n NdefRecord.createMime(mimeType, str.getBytes(Charset.forName(\"US-ASCII\"))),\n NdefRecord.createApplicationRecord(packageName)\n };\n\n return new NdefMessage(ndefRecord);\n }", "public void setCfgAsString(String cfg) {\n\t\tthis.cfg = new Cfg(cfg);\n\t}", "void mo9698a(String str, float f);", "public String relationshipFromHeader(String rel_str) {\n StringTokenizer st = new StringTokenizer(rel_str, BundlesDT.DELIM);\n String fm_hdr = Utils.decFmURL(st.nextToken()), fm_ico = Utils.decFmURL(st.nextToken()); boolean fm_typed = st.nextToken().toLowerCase().equals(\"true\");\n String to_hdr = Utils.decFmURL(st.nextToken()), to_ico = Utils.decFmURL(st.nextToken()); boolean to_typed = st.nextToken().toLowerCase().equals(\"true\");\n String style = Utils.decFmURL(st.nextToken()); return fm_hdr; }", "java.lang.String getField1882();", "private static int convertLegacyAfMode(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAfMode(java.lang.String):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.convertLegacyAfMode(java.lang.String):int\");\n }", "@Test\r\n public void testCIFComment() {\r\n CIFComment comment = new CIFComment();\r\n String s = comment.toCIFString();\r\n Assert.assertEquals(\"cif comment\", \"#\\n\", s);\r\n }", "java.lang.String getField1032();", "public void mo3901c(String str) {\n this.f773e = str;\n }", "public String decompile() {\r\n\t\t\r\n\t\treturn \"\\\"\" + symbol + \"\\\"\";\r\n\t}", "public void mo5697b(String str) {\n List<String> list = this.f5176c;\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(\".DataBinderMapperImpl\");\n list.add(sb.toString());\n }", "java.lang.String getField1603();", "java.lang.String getField1633();", "java.lang.String getField1710();", "java.lang.String getField1692();", "java.lang.String getField1202();", "public Builder setField1603(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1603_ = value;\n onChanged();\n return this;\n }", "java.lang.String getField1106();", "java.lang.String getField1682();", "java.lang.String getCsStr();", "public FloatLiteral(String val,int my_line, int my_column){\n\t\trawValue = val; // Will convert to int value in semantic check\n\t\tvalue = Float.parseFloat(val);//Returns a new float with value represented by the String val\n\t\tlineNumber= my_line;\n\t\tcolNumber=my_column;\n\t}", "java.lang.String getField1706();", "java.lang.String getField1865();", "java.lang.String getField1683();", "java.lang.String getField1666();", "private void m6635c(String str) {\n this.f5456za = new C1289c(this, (C1296Ua) null);\n this.f5456za.execute(new String[]{str});\n }" ]
[ "0.5875143", "0.55192506", "0.54222405", "0.5422026", "0.52650017", "0.5259987", "0.5240363", "0.51543784", "0.51534677", "0.51522595", "0.5130554", "0.5073374", "0.5070447", "0.50658864", "0.50471395", "0.50334924", "0.50190306", "0.500766", "0.50076425", "0.5005797", "0.49858037", "0.49783564", "0.4953623", "0.49432644", "0.49307543", "0.49292797", "0.49218348", "0.49026203", "0.4892935", "0.4884216", "0.4854256", "0.48385954", "0.4791741", "0.47861138", "0.47836715", "0.4779645", "0.47740576", "0.47634432", "0.47630242", "0.47586152", "0.47583538", "0.47554514", "0.47540388", "0.47527713", "0.4746304", "0.47405112", "0.4738469", "0.4730946", "0.4730895", "0.47278354", "0.47267956", "0.47177252", "0.47112778", "0.47066376", "0.4699522", "0.46798146", "0.46795598", "0.4676171", "0.46719173", "0.46671805", "0.46590742", "0.46573693", "0.464859", "0.46484402", "0.46482942", "0.46392754", "0.46370873", "0.4631574", "0.4629863", "0.4628499", "0.46243885", "0.46186706", "0.4617872", "0.46126086", "0.46100536", "0.4607749", "0.460767", "0.45994145", "0.45965037", "0.45935553", "0.45915267", "0.45906797", "0.4589339", "0.45837063", "0.45836115", "0.4580759", "0.45805672", "0.45791695", "0.45767272", "0.45749426", "0.45733893", "0.45709237", "0.456294", "0.4561644", "0.45603988", "0.45571232", "0.4554062", "0.45474663", "0.45432243", "0.4536655" ]
0.7076596
0
convert CfDef to string
protected static String cfdefToString(CfDef cfDef) throws IOException { assert cfDef != null; // this is so awful it's kind of cool! TSerializer serializer = new TSerializer(new TBinaryProtocol.Factory()); try { return Hex.bytesToHex(serializer.serialize(cfDef)); } catch (TException e) { throw new IOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String getFabComp() {\n return (String)getAttributeInternal(FABCOMP);\n }", "public String toFactString() {\n\t\tStringBuffer buf = new StringBuffer();\n\t\tbuf.append(\"f-\" + id + \" (\" + this.template.getName());\n\t\tif (this.slots.length > 0) {\n\t\t\tbuf.append(\" \");\n\t\t}\n\t\tfor (int idx = 0; idx < this.slots.length; idx++) {\n\t\t\tbuf.append(\"(\" + this.slots[idx].getName() + \" \");\n\t\t\tif (slots[idx] instanceof DimensionSlot) {\n\t\t\t\tbuf.append(\"Dimension\");\n\t\t\t} else if (slots[idx] instanceof MeasureSlot) {\n\t\t\t\tbuf.append(\"Measure\");\n\t\t\t}\n\t\t\tbuf.append(\") \");\n\t\t}\n\t\tbuf.append(\")\");\n\t\treturn buf.toString();\n\t}", "public String toString() {\r\n \treturn \"(\"+f.toString()+\")'\";\r\n }", "java.lang.String getField1106();", "java.lang.String getField1032();", "java.lang.String getField1818();", "public String getCpf() {\n return cpf;\n }", "java.lang.String getField1152();", "java.lang.String getField1108();", "java.lang.String getField1606();", "java.lang.String getField1806();", "java.lang.String getField1706();", "private static String generateCRString (CRType<?> cr) {\r\n\t\tString res = \"\";\r\n\t\tif (cr.getAU_A() == null) {\r\n\t\t\tif (cr.getAU_L() != null) res += cr.getAU_L() + \", \" + cr.getAU_F().replaceAll(\"([A-Z])\", \"$1.\"); \r\n\t\t} else {\r\n\t\t\tres += cr.getAU_A().replaceAll(\";\", \",\");\r\n\t\t}\r\n\t\tres += \",\";\r\n\t\tif (cr.getTI() != null)\tres += cr.getTI();\r\n\t\tif (cr.getRPY() != null) res += \" (\" + cr.getRPY() + \") \";\r\n\t\tif (cr.getJ_N() != null) res += cr.getJ_N();\r\n\t\tif (cr.getVOL() != null) res += \", \" + cr.getVOL();\r\n\t\tif (cr.getPAG() != null) res += \", pp.\" + cr.getPAG();\r\n\t\tif (cr.getDOI() != null) res += \", DOI \" + cr.getDOI();\r\n\r\n\t\treturn res;\r\n\t}", "java.lang.String getField1666();", "public final String getFci() {\n return String.valueOf(fci);\n }", "java.lang.String getField1650();", "String getFieldString(VcfEntry vcfEntry) {\n\t\t// Field from first 10 columns\n\t\t// if (name.equals(\"CHROM\")) return vcfEntry.getChromosomeName();\n\t\tif (name.equals(\"CHROM\")) return vcfEntry.getChromosomeNameOri();\n\t\tif (name.equals(\"ID\")) return vcfEntry.getId();\n\t\tif (name.equals(\"REF\")) return vcfEntry.getRef();\n\t\tif (name.equals(\"ALT\")) return vcfEntry.getAltsStr();\n\t\tif (name.equals(\"FILTER\")) return vcfEntry.getFilter();\n\t\tif (name.equals(\"FORMAT\")) return vcfEntry.getFormat();\n\t\tif (name.equals(\"POS\")) return \"\" + (vcfEntry.getStart() + 1);\n\t\tif (name.equals(\"QUAL\")) return \"\" + vcfEntry.getQuality();\n\n\t\t// Is there a filed 'name'\n\t\tif (vcfInfo == null) {\n\t\t\tvcfInfo = vcfEntry.getVcfFileIterator().getVcfHeader().getVcfHeaderInfo(name);\n\t\t\tif (vcfInfo == null) return (String) fieldHeaderNotFound(vcfEntry);\n\t\t}\n\n\t\t// Get field value\n\t\tString value = vcfEntry.getInfo(name);\n\t\tif (value == null) return (String) fieldNotFound(vcfEntry);\n\n\t\treturn value;\n\t}", "java.lang.String getField1406();", "java.lang.String getField1690();", "java.lang.String getField1870();", "java.lang.String getField1710();", "java.lang.String getField1866();", "java.lang.String getField1630();", "java.lang.String getField1843();", "java.lang.String getField1670();", "java.lang.String getField1603();", "java.lang.String getField1692();", "java.lang.String getField1621();", "java.lang.String getField1103();", "public String toAsmCode(){\n\t\tif(value<0) //for drive label with value<0, we add _n if value is <0\n\t\t\treturn \".FloatLiteral_n\"+ getStringValue().substring(1,getStringValue().length());\n\t\telse\n\t\t\treturn \".FloatLiteral_\"+ getStringValue();\n\t}", "java.lang.String getField1807();", "java.lang.String getField1665();", "java.lang.String getField1107();", "private static void decompileFields(ClassFile cf, PrintWriter out) {\n FieldInfo[] fields = cf.fields;\n for (FieldInfo field : fields) {\n out.print(getFieldAccessText(field.accessFlags));\n String fieldName = getUtf8(cf, field.nameIndex);\n String fieldTypeText = getFieldTypeText(cf, field.descriptorIndex);\n out.print(fieldTypeText);\n out.print(' ');\n out.print(fieldName);\n\n if (field.attributes != null) {\n String descriptor = getUtf8(cf, field.descriptorIndex);\n for (AttributeInfo ai : field.attributes) {\n if (ai instanceof ConstantValueAttribute) {\n out.print(\" = \");\n ConstantValueAttribute cva = (ConstantValueAttribute) ai;\n //\\[?[BCDFIJSZ]|L[^;]+;\n if (\"B\".equals(descriptor)) {\n byte b = getByte(cf, cva.constantValueIndex);\n out.print(Byte.MAX_VALUE==b ? \"Byte.MAX_VALUE\" : Byte.MIN_VALUE==b ? \"Byte.MIN_VALUE\" : b);//TODO: allow whether encode min max or not\n } else if (\"C\".equals(descriptor)) {\n char c = getChar(cf, cva.constantValueIndex);\n out.print(Character.MAX_VALUE==c ? \"Character.MAX_VALUE\" : Character.MIN_VALUE==c ? \"Character.MIN_VALUE\" : \"'\"+Character.toString(c)+\"'\");\n } else if (\"D\".equals(descriptor)) {\n double d = getDouble(cf, cva.constantValueIndex);\n out.print(Double.isInfinite(d) ? (d > 0 ? \"Double.POSITIVE_INFINITY\" : \"Double.NEGATIVE_INFINITY\") : Double.isNaN(d) ? \"Double.NaN\" : Double.toString(d));//TODO: allow whether encode infinities and NaN, and other constants or not\n } else if (\"F\".equals(descriptor)) {\n //TODO: allow without \"F\" if value within float range; encode NaN\n //TODO: allow whether encode infinities and NaN, and other constants or not\n float f = getFloat(cf, cva.constantValueIndex);\n out.print(Float.isInfinite(f) ? f > 0 ? \"Float.POSITIVE_INFINITY\" : \"Float.NEGATIVE_INFINITY\" : Float.isNaN(f) ? \"Float.NaN\" : Float.toString(f)+\"F\");\n } else if (\"I\".equals(descriptor)) {\n int i = getInt(cf, cva.constantValueIndex);\n out.print(Integer.MAX_VALUE==i ? \"Integer.MAX_VALUE\" : Integer.MIN_VALUE==i ? \"Integer.MIN_VALUE\" : Integer.toString(i));//TODO: allow whether encode min max or not\n } else if (\"J\".equals(descriptor)) {\n //TODO: allow without \"L\" if value within int range\n //TODO: allow whether encode min max or not\n long j = getLong(cf, cva.constantValueIndex);\n out.print(Long.MAX_VALUE==j ? \"Long.MAX_VALUE\" : Long.MIN_VALUE==j ? \"Long.MIN_VALUE\" : Long.toString(j)+\"L\");\n } else if (\"S\".equals(descriptor)) {\n //TODO: allow whether encode min max or not\n short s = getShort(cf, cva.constantValueIndex);\n out.print(Short.MAX_VALUE==s ? \"Short.MAX_VALUE\" : Short.MIN_VALUE==s ? \"Short.MIN_VALUE\" : Long.toString(s));\n } else if (\"Z\".equals(descriptor)) {\n out.print(getBoolean(cf, cva.constantValueIndex));\n } else if (descriptor.charAt(0) == 'L') {\n //TODO: Maight not be String; encode unprintable characters\n out.print('\"');\n out.print(getString(cf, cva.constantValueIndex));\n out.print('\"');\n } else {\n //TODO: ?\n out.print(\"TODO:decompileFields\");\n }\n }\n }\n }\n\n out.println(';');\n }\n }", "java.lang.String getField1166();", "java.lang.String getField1646();", "java.lang.String getField1703();", "java.lang.String getField1803();", "java.lang.String getField1326();", "java.lang.String getField1633();", "java.lang.String getField1028();", "java.lang.String getField1655();", "java.lang.String getField1850();", "java.lang.String getField1698();", "java.lang.String getField1104();", "java.lang.String getField1890();", "java.lang.String getField1611();", "String getFpDescription();", "java.lang.String getField1683();", "java.lang.String getField1031();", "java.lang.String getField1607();", "java.lang.String getField1202();", "java.lang.String getField1660();", "java.lang.String getField1645();", "java.lang.String getField1109();", "java.lang.String getField1170();", "java.lang.String getField1680();", "java.lang.String getField1644();", "java.lang.String getField1102();", "java.lang.String getField1860();", "protected static CfDef cfdefFromString(String st) throws IOException\n {\n assert st != null;\n TDeserializer deserializer = new TDeserializer(new TBinaryProtocol.Factory());\n CfDef cfDef = new CfDef();\n try\n {\n deserializer.deserialize(cfDef, Hex.hexToBytes(st));\n }\n catch (TException e)\n {\n throw new IOException(e);\n }\n return cfDef;\n }", "java.lang.String getField1671();", "java.lang.String getField1708();", "java.lang.String getField1840();", "java.lang.String getField1892();", "java.lang.String getField1716();", "java.lang.String getField1275();", "java.lang.String getField1654();", "java.lang.String getField1640();", "java.lang.String getField1506();", "java.lang.String getField1652();", "String getFormattedString(IRenamable f);", "java.lang.String getField1808();", "java.lang.String getField1732();", "java.lang.String getField1707();", "java.lang.String getField1682();", "java.lang.String getField1688();", "java.lang.String getField1721();", "java.lang.String getField1811();", "java.lang.String getField1865();", "public String getFabConst() {\n return (String)getAttributeInternal(FABCONST);\n }", "java.lang.String getField1026();", "java.lang.String getField1651();", "java.lang.String getField1845();", "java.lang.String getField1821();", "java.lang.String getField1620();", "static String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}", "java.lang.String getField1814();", "java.lang.String getField1711();", "java.lang.String getField1844();", "java.lang.String getField1805();", "java.lang.String getField1765();", "java.lang.String getField1201();", "java.lang.String getField1020();", "java.lang.String getField1720();", "java.lang.String getField1641();", "java.lang.String getField1820();", "java.lang.String getField1846();", "java.lang.String getField1105();" ]
[ "0.5891149", "0.5891149", "0.5868893", "0.58054036", "0.5782299", "0.576485", "0.5736215", "0.5723345", "0.572315", "0.5717281", "0.5709088", "0.5708661", "0.56967086", "0.5692102", "0.5691833", "0.5671641", "0.5669247", "0.56570894", "0.56523967", "0.5649179", "0.5644245", "0.56436664", "0.5637896", "0.5633844", "0.5630628", "0.5626256", "0.5625679", "0.5624039", "0.56227213", "0.5619844", "0.56157243", "0.5612526", "0.5610664", "0.5608816", "0.56080353", "0.56011355", "0.55974", "0.5593266", "0.5591546", "0.5589089", "0.55889785", "0.558716", "0.5586528", "0.5583111", "0.5574209", "0.5571621", "0.5570076", "0.5566675", "0.5564962", "0.55610603", "0.55605125", "0.5560455", "0.55595756", "0.5557113", "0.5555979", "0.5554048", "0.55536896", "0.5551753", "0.55495024", "0.55462486", "0.55453587", "0.5544131", "0.5542917", "0.55375016", "0.55370736", "0.5534513", "0.5533601", "0.5533273", "0.55323094", "0.5532046", "0.5531054", "0.553023", "0.55287325", "0.5527882", "0.5527106", "0.55264026", "0.5525807", "0.55257", "0.5524698", "0.55240035", "0.552289", "0.55227304", "0.55219865", "0.55205137", "0.55203074", "0.5519307", "0.5518477", "0.55175686", "0.551703", "0.5515451", "0.5514537", "0.55139923", "0.5513745", "0.5508766", "0.55076015", "0.5507431", "0.55072105", "0.5505884", "0.5505694", "0.5504788" ]
0.73371255
0
parse the string to a cassandra data type
protected AbstractType parseType(String type) throws IOException { try { // always treat counters like longs, specifically CCT.compose is not what we need if (type != null && type.equals("org.apache.cassandra.db.marshal.CounterColumnType")) return LongType.instance; return TypeParser.parse(type); } catch (ConfigurationException e) { throw new IOException(e); } catch (SyntaxException e) { throw new IOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.apache.spark.sql.catalyst.types.DataType parseDataType (java.lang.String dataTypeString) { throw new RuntimeException(); }", "public static JavaDataType fromString(String type) {\r\n switch (type) {\r\n case \"String\":\r\n return STRING;\r\n case \"Integer\":\r\n return INTEGER;\r\n case \"Boolean\":\r\n return BOOLEAN;\r\n case \"Double\":\r\n return DOUBLE;\r\n case \"Float\":\r\n return FLOAT;\r\n case \"Long\":\r\n return LONG;\r\n }\r\n return null;\r\n }", "private DataTypes getDataType(String token){\n token = token.trim();\n if (token.endsWith(\"]\"))\n return DataTypes.List;\n else if (token.endsWith(\"}\"))\n return DataTypes.Map;\n else if (token.startsWith(\"\\\"\"))\n return DataTypes.String;\n else if (token.toLowerCase().equals(\"null\"))\n return DataTypes.Null;\n else {\n if (token.toLowerCase().equals(\"true\") || token.toLowerCase().equals(\"false\"))\n return DataTypes.Boolean;\n else {\n if (token.contains(\".\"))\n return DataTypes.Float;\n else\n return DataTypes.Integer;\n }\n }\n }", "public Object parse(String s) throws JDBFException {\r\n s = s.trim();\r\n if (type == 'N' || type == 'F') {\r\n if (s.equals(\"\")) {\r\n s = \"0\";\r\n }\r\n try {\r\n if (getDecimalCount() == 0) {\r\n return new Long(s);\r\n } else {\r\n return new Double(s);\r\n }\r\n } catch (NumberFormatException numberformatexception) {\r\n throw new JDBFException(numberformatexception);\r\n }\r\n }\r\n if (type == 'C') {\r\n return s;\r\n }\r\n if (type == 'L') {\r\n if (s.equals(\"Y\") || s.equals(\"y\") || s.equals(\"T\") || s.equals(\"t\")) {\r\n return new Boolean(true);\r\n }\r\n if (s.equals(\"N\") || s.equals(\"n\") || s.equals(\"F\") || s.equals(\"f\")) {\r\n return new Boolean(false);\r\n } else {\r\n throw new JDBFException(\"Unrecognized value for logical field: \" + s);\r\n }\r\n }\r\n if (type == 'D') {\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n try {\r\n if (\"\".equals(s)) {\r\n return null;\r\n } else {\r\n return simpledateformat.parse(s);\r\n }\r\n } catch (ParseException parseexception) {\r\n //throw new JDBFException(parseexception);\r\n return null;\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }", "public static Object parseStringObject(String value, Schema.Type dataType) throws TimeSeriesException {\r\n\t\tswitch(dataType) {\r\n\t\t\tcase DOUBLE: \r\n\t\t\t\treturn new Double(Double.parseDouble(value));\r\n\t\t\tcase BOOLEAN: \r\n\t\t\t\treturn new Boolean(Boolean.parseBoolean(value));\r\n\t\t\tcase FLOAT: \r\n\t\t\t\treturn new Float(Float.parseFloat(value));\r\n\t\t\tcase INT: \r\n\t\t\t\treturn new Integer(Integer.parseInt(value));\r\n\t\t\tcase LONG: \r\n\t\t\t\treturn new Long(Long.parseLong(value));\r\n\t\t\tcase STRING: \r\n\t\t\t\treturn value;\r\n\t\t\tcase BYTES: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t\tdefault: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t}\r\n\t}", "protected abstract MAJOR_JAVA_TYPE parseValue(@Nonnull String value) throws ParsingException;", "private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n case INT_32:\n return new CData(type, Integer.valueOf(str));\n case INT_64:\n return new CData(type, Long.valueOf(str));\n case INT_8:\n return new CData(type, str.charAt(0));\n case UINT_64:\n return new CData(type, Long.valueOf(str));\n case UINT_32:\n return new CData(type, Long.valueOf(str));\n case UINT_16:\n return new CData(type, Character.valueOf(str.charAt(0)));\n case UINT_8:\n return new CData(type, str.charAt(0));\n case VOID:\n default:\n return CData.VOID;\n }\n }", "public T parse(String value);", "private Object parse(\n String value\n ){\n return \n value.startsWith(\"P\") || value.startsWith(\"-P\") ? Datatypes.create(Duration.class, value) : \n value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) : \n Datatypes.create(java.util.Date.class, value);\n }", "public IValuable parse(String value);", "private static Object parseData(String source, Class<?> expectedType){\n\t\tif(expectedType.equals(Integer.class)) return new Integer(source);\n\t\tif(expectedType.equals(Boolean.class)) return new Boolean(source);\n\t\tif(expectedType.equals(Double.class)) return new Double(source);\n\t\treturn source;\n\t}", "public DataValue parse(String value) {\r\n \tthrow new RuntimeException(\"no implementation\");\r\n }", "protected abstract SimpleType doParseString(String s);", "protected final Object fromStringImpl(String string)\n throws TypeValueException {\n int y, m, d;\n try {\n y = Integer.parseInt(string.substring(0, 4));\n m = Integer.parseInt(string.substring(4, 6));\n d = Integer.parseInt(string.substring(6, 8));\n } catch (NumberFormatException nfe) {\n\n // Should never happen, since isValidValueImpl(String) will have been\n // called\n throw new TypeValueException(this, string);\n }\n\n // Check that the values are in the correct range\n return new Value(y, m, d);\n }", "public static Column convertString2Column(String name, String data) {\n if (data == null || data.length() == 0) return null;\n char type = data.charAt(0);\n\n switch (type) {\n case 's':\n return new Column(name, data.substring(1));\n case 'i':\n Column ret = new Column();\n ret.name = name;\n ret.type = ColumnType.INT;\n ret.value = new Integer(Integer.parseInt(data.substring(1)) - INT_OFFSET);\n return ret;\n case 'd':\n Column ret2 = new Column();\n ret2.name = name;\n ret2.type = ColumnType.DOUBLE;\n ret2.value = new Double(Double.parseDouble(data.substring(1)) - INT_OFFSET);\n return ret2;\n }\n\n // unrecognized type char\n return null;\n }", "public abstract Object parseRecord(String input);", "@JsonCreator\n public static DataType fromString(String name) {\n return fromString(name, DataType.class);\n }", "public static DsoType parse(String text) {\n DsoType result = map.get(text);\n if (result == null) {\n throw new IllegalArgumentException(\"Unknown type: '\" + text + \"'\");\n }\n return result;\n }", "public abstract T parse(String s);", "public abstract T parse(String str);", "protected abstract Scalar parseScalar(Scalar s);", "public static TableId parse(String str) {\n return parse(str, true);\n }", "public static Object parseStringObject(String value, String dataType) throws TimeSeriesException {\r\n\t\treturn parseStringObject(value, getSchemaType(dataType));\r\n\t}", "public static DataValue parseValue(String value) {\r\n \tif(value == null) {\r\n \t\tthrow new IllegalArgumentException(\"null value\");\r\n \t}\r\n \t\r\n \tint i = value.indexOf(\",\");\r\n \tif(i < 0 || i == value.length()) {\r\n \t\tthrow new IllegalArgumentException(\"wrong string format\");\r\n \t}\r\n \t\r\n \tString rmName = value.substring(0, i);\r\n \tDataValue dv = dataValueMap.get(rmName);\r\n \t\r\n \tif(dv == null) {\r\n \t\tthrow new IllegalArgumentException(\"unsupported RM class[\" + rmName + \"]\");\r\n \t}\r\n \t\r\n \tString v = value.substring(i + 1).trim(); \t\r\n \treturn dv.parse(v);\r\n }", "public static Type Type(String str) {\n\t\ttry {\n\t\t\tJavaIdentifierInputStream jin = new JavaIdentifierInputStream(str);\n\t\t\tBinaryInputStream bin = new BinaryInputStream(jin);\n\t\t\tBinaryAutomataReader reader = new BinaryAutomataReader(bin,\n\t\t\t\t\tTypes.SCHEMA);\n\t\t\tAutomaton automaton = reader.read();\n\t\t\treader.close();\n\n\t\t\treturn Type.construct(automaton);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"runtime failure constructing type\", e);\n\t\t}\n\t}", "java.lang.String getDataType();", "public static ColumnDefinition fromString(String columnInfo) {\n String name = DEFAULT_NAME;\n DataType type = DEFAULT_TYPE;\n boolean nullable = DEFAULT_NULLABLE;\n int length = DEFAULT_LENGTH;\n int precision = -1;\n int scale = -1;\n String timezone = null;\n String value = null;\n Map<String, Integer> options = new LinkedHashMap<>();\n\n if (columnInfo != null && (columnInfo = columnInfo.trim()).length() > 0) {\n char quote = columnInfo.charAt(0);\n boolean hasQuote = quote == '`' || quote == '\"';\n boolean escaped = false;\n int lastIndex = columnInfo.length() - 1;\n int nameEndIndex = hasQuote ? Math.min(columnInfo.lastIndexOf(quote), lastIndex) : lastIndex;\n StringBuilder sb = new StringBuilder(lastIndex + 1);\n for (int i = hasQuote ? 1 : 0; i <= lastIndex; i++) {\n char ch = columnInfo.charAt(i);\n escaped = !escaped && (ch == '\\\\'\n || (hasQuote && ch == quote && columnInfo.charAt(Math.min(i + 1, lastIndex)) == quote));\n\n if ((hasQuote && !escaped && i == nameEndIndex) || (!hasQuote && Character.isWhitespace(ch))) {\n name = sb.toString();\n sb.setLength(0);\n\n // type declaration is case-sensitive\n String declaredType = columnInfo.substring(Math.min(i + 1, lastIndex)).trim();\n String defaultValue = null;\n\n i = columnInfo.length() - 1;\n\n // default value. unlike Nullable etc. default is case-insensitive...\n int defaultIndex = Utils.indexOfKeywordIgnoreCase(declaredType, TOKEN_DEFAULT);\n if (defaultIndex > 0) {\n defaultValue = declaredType.substring(defaultIndex + TOKEN_DEFAULT.length()).trim();\n declaredType = declaredType.substring(0, defaultIndex).trim();\n\n if (!defaultValue.isEmpty()) {\n value = defaultValue.charAt(0) == '\\''\n && defaultValue.charAt(defaultValue.length() - 1) == '\\''\n ? defaultValue.substring(1, defaultValue.length() - 1)\n : defaultValue;\n\n if (NULL_VALUE.equalsIgnoreCase(value)) {\n value = null;\n }\n }\n }\n\n // nullable\n if (declaredType.startsWith(NULLABLE_BEGIN)) {\n int suffixIndex = declaredType.lastIndexOf(NULLABLE_END);\n if (suffixIndex != -1) {\n nullable = true;\n declaredType = declaredType.substring(NULLABLE_BEGIN.length(), suffixIndex);\n } else {\n log.warn(\"Discard invalid Nullable declaration [{}]\", declaredType);\n }\n } else {\n nullable = false;\n }\n\n // enum*, datetime* and decimal*\n int index = declaredType.indexOf('(');\n if (index > 0 && declaredType.charAt(declaredType.length() - 1) == ')') {\n String innerExpr = declaredType.substring(index + 1, declaredType.length() - 1);\n List<String> arguments = Utils.splitByChar(innerExpr, ',');\n type = DataType.from(declaredType.substring(0, index));\n\n int size = arguments.size();\n if (size > 0) {\n switch (type) {\n case Enum:\n case Enum8:\n case Enum16:\n arguments.clear();\n options.putAll(parseOptions(innerExpr));\n break;\n case FixedStr:\n length = Integer.parseInt(arguments.remove(0));\n break;\n case DateTime64:\n scale = Integer.parseInt(arguments.remove(0));\n case DateTime:\n if (arguments.size() > 0) {\n String tz = arguments.remove(0).trim();\n if (tz.length() > 2 && tz.charAt(0) == '\\''\n && tz.charAt(tz.length() - 1) == '\\'') {\n timezone = tz.substring(1, tz.length() - 1);\n }\n }\n break;\n case Decimal:\n precision = Integer.parseInt(arguments.remove(0));\n case Decimal32:\n case Decimal64:\n case Decimal128:\n case Decimal256:\n if (arguments.size() > 0) {\n scale = Integer.parseInt(arguments.remove(0));\n }\n break;\n default:\n log.warn(\"Discard unsupported arguments for [{}]: {}\", declaredType, arguments);\n break;\n }\n\n if (arguments.size() > 0) {\n log.warn(\"Discard unsupported arguments for [{}]: {}\", declaredType, arguments);\n }\n } else {\n log.warn(\"Discard empty argument for [{}]\", declaredType);\n }\n } else {\n type = DataType.from(declaredType);\n }\n } else if (name == DEFAULT_NAME) {\n if (!hasQuote || (hasQuote && !escaped)) {\n sb.append(ch);\n }\n }\n }\n\n if (sb.length() > 0) {\n name = sb.toString();\n }\n }\n\n return new ColumnDefinition(name, type, nullable, length, precision, scale, timezone, value, options);\n }", "private Object parse(String literalValue, Class<?> returnType) throws ClassNotFoundException\r\n {\r\n // Primitives\r\n \r\n if (byte.class.equals(returnType))\r\n {\r\n return Byte.valueOf(literalValue);\r\n }\r\n if (short.class.equals(returnType))\r\n {\r\n return Short.valueOf(literalValue);\r\n }\r\n if (int.class.equals(returnType))\r\n {\r\n return Integer.valueOf(literalValue);\r\n }\r\n if (long.class.equals(returnType))\r\n {\r\n String valueToUse = literalValue;\r\n if (valueToUse.endsWith(\"l\") || valueToUse.endsWith(\"L\"))\r\n {\r\n valueToUse = valueToUse.substring(0, valueToUse.length() - 1);\r\n }\r\n return Long.valueOf(valueToUse);\r\n }\r\n if (float.class.equals(returnType))\r\n {\r\n String valueToUse = literalValue;\r\n if (valueToUse.endsWith(\"f\") || valueToUse.endsWith(\"F\"))\r\n {\r\n valueToUse = valueToUse.substring(0, valueToUse.length() - 1);\r\n }\r\n return Float.valueOf(valueToUse);\r\n }\r\n if (double.class.equals(returnType))\r\n {\r\n String valueToUse = literalValue;\r\n if (valueToUse.endsWith(\"d\") || valueToUse.endsWith(\"D\"))\r\n {\r\n valueToUse = literalValue.substring(0, valueToUse.length() - 1);\r\n }\r\n return Double.valueOf(valueToUse);\r\n }\r\n if (boolean.class.equals(returnType))\r\n {\r\n return Boolean.valueOf(literalValue);\r\n }\r\n if (char.class.equals(returnType))\r\n {\r\n return Character.valueOf(literalValue.charAt(1));\r\n }\r\n \r\n // Arrays\r\n \r\n if (returnType.isArray())\r\n {\r\n String[] values = literalValue.substring(1, literalValue.length() - 1).split(\",\");\r\n int length = values.length;\r\n Class<?> componentType = returnType.getComponentType();\r\n Object array = Array.newInstance(componentType, length);\r\n \r\n for (int loop = 0; loop < length; loop++)\r\n {\r\n Array.set(array, loop, parse(values[loop], componentType));\r\n }\r\n \r\n return array;\r\n }\r\n \r\n // Enums\r\n \r\n if (returnType.isEnum())\r\n {\r\n Enum<?>[] constants = (Enum<?>[]) returnType.getEnumConstants();\r\n \r\n String valueToUse = StringUtils.substringAfterLast(literalValue, '.');\r\n \r\n for (Enum<?> inst : constants)\r\n {\r\n if (inst.name().equals(valueToUse))\r\n {\r\n return inst;\r\n }\r\n }\r\n \r\n return null;\r\n }\r\n \r\n // Strings\r\n \r\n if (String.class.equals(returnType))\r\n {\r\n return literalValue.substring(1, literalValue.length() - 1);\r\n }\r\n \r\n // Classes\r\n \r\n if (Class.class.equals(returnType))\r\n {\r\n String resolvedType = StringUtils.substringBefore(literalValue, \".class\");\r\n resolvedType = ((JavaSource<?>) this.annotationSource.getOrigin()).resolveType(resolvedType);\r\n return Class.forName(resolvedType);\r\n }\r\n \r\n // Annotations\r\n \r\n if (Annotation.class.isAssignableFrom(returnType))\r\n {\r\n String resolvedType = StringUtils.substringAfter(literalValue, \"@\");\r\n resolvedType = ((JavaSource<?>) this.annotationSource.getOrigin()).resolveType(resolvedType);\r\n \r\n return AnnotationProxy.newInstance(this.annotationSource);\r\n }\r\n \r\n // Unknown\r\n \r\n throw new UnsupportedOperationException(returnType.getSimpleName());\r\n }", "public abstract T parse(Object valueToParse, Type type);", "public static Result<MessageType, JSONException> fromString(String str) {\r\n return Result.ofRuntime(() -> valueOf(str))\r\n .mapError(ignored -> new JSONException(\"command not recognised\"));\r\n }", "public static RecordSchema buildDatahubSchema(String str) {\n if (str == null || str.isEmpty()) {\n return new RecordSchema();\n }\n String remain = str;\n ArrayList<Field> cols = new ArrayList<Field>();\n int pos;\n while (remain.length() > 0) {\n pos = remain.indexOf(SEPERATOR);\n if (pos < 0) {\n // Last one\n pos = remain.length();\n }\n String tok = remain.substring(0, pos);\n String[] knv = tok.split(DELIMITER, 2);\n if (knv.length != 2) {\n throw new IllegalArgumentException(\n \"Malformed schema definition, expecting \\\"name:type\\\" but was \\\"\" + tok + \"\\\"\");\n }\n if (pos == remain.length()) {\n remain = \"\";\n } else {\n remain = remain.substring(pos + 1);\n }\n cols.add(new Field(knv[0], FieldType.valueOf(knv[1].toUpperCase())));\n }\n RecordSchema schema = new RecordSchema();\n schema.setFields(cols);\n return schema;\n }", "public T getFromString(String str) throws NumberFormatException;", "public static String convertString(String sType , String sValue) throws Exception{\n\t\tObject o = new Object[1];\r\n\t\tboolean emptyToNull = true;//DBProps.isEmptyNullNumbers();\r\n\t\tboolean Empty = false;\r\n\t\tif(null ==sValue || sValue.trim().length()<1) {\r\n\t\t\tEmpty = true;\r\n\t\t\to = \"\";\r\n\t\t}else {\r\n\t\t\ttry{\r\n\t\t\t\tif(\tsType.equalsIgnoreCase(\"BIT\") || sType.equalsIgnoreCase(\"BOOL\") || sType.equalsIgnoreCase(\"BOOLEAN\"))\r\n\t\t\t\t\tif(Empty || null == sValue || sValue.equals(\"0\") || sValue.equalsIgnoreCase(\"false\")){\r\n\t\t\t\t\t\to \t\t\t= new Boolean(false);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\to\t\t\t= new Boolean(true);\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"INTEGER\") || sType.equalsIgnoreCase(\"SMALLINT\") || sType.equalsIgnoreCase(\"INT\") || sType.equalsIgnoreCase(\"MEDIUMINT\") || sType.equalsIgnoreCase(\"TINYINT\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Integer(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new Integer(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"REAL\") || sType.equalsIgnoreCase(\"FLOAT\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Float(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new Float(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"BIGINT\")||sType.equalsIgnoreCase(\"LONG\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Long(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new Long(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"NUMBER\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new BigDecimal(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new BigDecimal(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"BIGDECIMAL\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new BigDecimal(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\to\t\t\t= new BigDecimal(sValue);\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"SHORT\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Short((short)0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\to\t\t\t= new Short(sValue);\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"DOUBLE\"))\r\n\t\t\t\t\tif(Empty){\r\n\t\t\t\t\t\tif(emptyToNull){\r\n\t\t\t\t\t\t\to = null;\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\to \t\t\t= new Double(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\to\t\t\t= new Double(sValue);\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"BYTE\"))\r\n\t\t\t\t\tif(Empty) {\r\n\t\t\t\t\t\to\t\t\t= new Byte((byte)0);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\to\t\t\t= new Byte(sValue);\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(sType.equalsIgnoreCase(\"DATE\") && (null != sValue) && (sValue.trim().length()>6)) {\r\n\t\t\t\t\tif(Empty) {\r\n\t\t\t\t\t\to \t\t\t= null;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t//if(sTypeLong.trim().equalsIgnoreCase(\"java.sql.Date\")){\r\n\t\t\t\t\t\t\tif(sValue.trim().length()>10){\r\n\t\t\t\t\t\t\t\tsValue \t\t= sValue.substring(0,11).trim();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\to\t= java.sql.Date.valueOf(sValue);\r\n\t\t\t\t\t\t\t//}else{\r\n\t\t\t\t\t\t\t//\to\t= java.sql.Date.valueOf(sValue);\r\n\t\t\t\t\t\t\t//}\r\n\t\t\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\t\t\to\t\t= (sValue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(sType.equalsIgnoreCase(\"DATETIME\") && (null != sValue) && (sValue.trim().length()>6)) {\r\n\t\t\t\t\tif(Empty)\r\n\t\t\t\t\t\to \t\t\t= null;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t//if(sTypeLong.trim().equalsIgnoreCase(\"java.sql.Timestamp\") || sTypeLong.trim().equalsIgnoreCase(\"java.sql.Date\")){\r\n\t\t\t\t\t\t\tif(sValue.trim().length()>10){\r\n\t\t\t\t\t\t\t\tsValue \t= sValue.substring(0,11).trim();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\to\t= java.sql.Timestamp.valueOf(sValue);//java.sql.Date.valueOf(sValue);\r\n\t\t\t\t\t\t\t//}else{\r\n\t\t\t\t\t\t\t//\to\t= java.sql.Timestamp.valueOf(sValue);// java.sql.Date.valueOf(sValue);\r\n\t\t\t\t\t\t\t//}\r\n\t\t\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\t\t\to\t\t= (sValue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}else if(sType.equalsIgnoreCase(\"TIME\") && (null != sValue) && (sValue.trim().length()>6) ) {\r\n\t\t\t\t\tif(Empty)\r\n\t\t\t\t\t\to \t\t\t= null;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\to\t\t\t= java.sql.Time.valueOf(sValue);\r\n\t\t\t\t}else if(sType.equalsIgnoreCase(\"TIMESTAMP\") && (null != sValue)) {\r\n\t\t\t\t\tif(Empty) {\r\n\t\t\t\t\t\to \t\t\t= null;\r\n\t\t\t\t\t}else if((sValue.trim().length()>8)) {\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\to\t= java.sql.Timestamp.valueOf(sValue);\r\n\t\t\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\t\t\t//System.out.println(sValue);\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tString[] dParts = sValue.split(\" \");\r\n\t\t\t\t\t\t\t\tif(dParts.length > 2){\r\n\t\t\t\t\t\t\t\t\to\t= java.sql.Timestamp.valueOf(dParts[0]+\" \"+dParts[1]);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}catch(Exception er){\r\n\t\t\t\t\t\t\t\tthrow er;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//e.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\to = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\to\t\t\t\t= \"'\"+sValue+\"'\";\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception err){\r\n\t\t\t\tthrow err;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn o.toString();\r\n\t}", "@Override\n\tpublic Object parseValue(String value) throws IllegalArgumentException\n\t{\n\t\treturn derivedColumn.parseValue(value);\n\t}", "public Object parseValue(String expr);", "private TypeInfo convertToOdpsType(String type) {\n String hiveType = type.toUpperCase();\n\n // hiveType = hiveType.replaceAll(\"(?<=DECIMAL[^(]{0,10}\\\\()[^)]*\", \"36,18\");\n hiveType = hiveType.replaceAll(\"(?<!VAR)CHAR.*\\\\)\", \"STRING\");\n\n return TypeInfoParser.getTypeInfoFromTypeString(hiveType);\n }", "static DruidType getTypeFromMetaData(String type) {\n assert type != null;\n switch (type) {\n case \"LONG\":\n return LONG;\n case \"FLOAT\":\n return FLOAT;\n case \"DOUBLE\":\n return DOUBLE;\n case \"STRING\":\n return STRING;\n default:\n // Likely a sketch, or a type String from the aggregations field.\n return getTypeFromMetric(type);\n }\n }", "private static Object makeValue(String string, Schema schema) {\n if (string == null) {\n return null;\n }\n\n try {\n switch (schema.getType()) {\n case BOOLEAN:\n return Boolean.valueOf(string);\n case STRING:\n return string;\n case FLOAT:\n return Float.valueOf(string);\n case DOUBLE:\n return Double.valueOf(string);\n case INT:\n return Integer.valueOf(string);\n case LONG:\n return Long.valueOf(string);\n case ENUM:\n // TODO: translate to enum class\n if (schema.hasEnumSymbol(string)) {\n return string;\n } else {\n try {\n return schema.getEnumSymbols().get(Integer.valueOf(string));\n } catch (IndexOutOfBoundsException ex) {\n return null;\n }\n }\n case UNION:\n Object value = null;\n for (Schema possible : schema.getTypes()) {\n value = makeValue(string, possible);\n if (value != null) {\n return value;\n }\n }\n return null;\n case NULL:\n return null;\n default:\n // FIXED, BYTES, MAP, ARRAY, RECORD are not supported\n throw new RuntimeException(\n \"Unsupported field type:\" + schema.getType());\n }\n } catch (NumberFormatException ex) {\n return null;\n }\n }", "public abstract void validate(String value) throws DatatypeException;", "private T parse(String value)\n\t\t{\n\t\t\treturn null;\n\t\t}", "boolean deserialize(String inputString);", "@Test\n public void testParseDataType() {\n IntegerSpec integerSpec = new IntegerSpec();\n dataTypeParser.setDataTypeSpec(integerSpec);\n dataTypeParser.parse();\n IntegerSpec parsedIntegerSpec = (IntegerSpec) dataTypeParser.getDataTypeSpec();\n\n dataTypeParser = new DataTypeParser(new IntegerSpec(), new RandomGenerator(randomSeed));\n\n IntegerSpec integerSpec1 = new IntegerSpec();\n integerSpec1.setDefaultValue(0);\n dataTypeParser.setDataTypeSpec(integerSpec1);\n dataTypeParser.parse();\n IntegerSpec parsedIntegerSpec1 = (IntegerSpec) dataTypeParser.getDataTypeSpec();\n\n assertNotNull(parsedIntegerSpec.getRandomSeed());\n assertEquals(parsedIntegerSpec.getRandomSeed(), parsedIntegerSpec1.getRandomSeed());\n }", "@Test\n public void shouldParseCHAR() {\n printTest(\"shouldParseCHAR()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_CHAR);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n\n content = typeString + \" (255)\";\n tokens = getTokens(content);\n\n dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n Assert.assertEquals(\"DataType length is not correct\", 255, dType.getLength());\n }", "public abstract void parseValue(String value);", "public void setDataType(String v)\n {\n this.setFieldValue(FLD_dataType, StringTools.trim(v));\n }", "private static Object parseStringValue(String value) {\n // Boolean (Boolean.parseBoolean() only detects 'true' properly).\n if (value.equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n }\n if (value.equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n }\n\n // Long.\n try {\n return Long.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Double.\n try {\n return Double.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Fallback to String.\n return value;\n }", "DataType createDataType();", "public abstract String toHiveType(int sqlType);", "protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "public Object stringToObject(String s, Class c){\n Gson gson = new Gson();\n Object o = gson.fromJson(s, c);\n return o;\n }", "public Variable castOidType(OIDType type, String value) {\n Variable oidValue = null;\n switch (type) {\n case INTEGER32:\n oidValue = new Integer32(Integer.parseInt(value));\n break;\n case UNSIGNED32:\n oidValue = new UnsignedInteger32(Integer.parseInt(value));\n break;\n case COUNTER32:\n oidValue = new Counter32(Long.parseLong(value));\n break;\n case GAUGE32:\n oidValue = new Gauge32(Long.parseLong(value));\n break;\n case OCTETSTRING:\n oidValue = new OctetString(value);\n break;\n case BITSTRING:\n int val = Integer.parseInt(value);\n int arrayIndex = val / 8;\n byte[] buf = new byte[] { 0x00, 0x00, 0x00, 0x00 };\n buf[arrayIndex] |= 1 << (8 - (val % 8));\n OctetString oct = new OctetString();\n oct.append(buf);\n oidValue = new OctetString(oct);\n break;\n default:\n break;\n }\n return oidValue;\n }", "private static Object parseStringToObject(String text, Class ObjectType) {\n if (ObjectType == Integer.class) return Integer.parseInt(text);\n else if (ObjectType == Float.class) return Float.parseFloat(text);\n else if (ObjectType == Double.class) return Double.parseDouble(text);\n return null;\n }", "@Test\n public void shouldParseFLOAT() {\n printTest(\"shouldParseFLOAT()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_FLOAT);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n\n content = typeString + \" (5)\";\n tokens = getTokens(content);\n dType = parser.parse(tokens);\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n Assert.assertEquals(\"DataType length is not correct\", 5, dType.getPrecision()); // PRECISION\n\n // ADDED SCALE\n content = typeString + \" (5, 2)\";\n tokens = getTokens(content);\n dType = null;\n try {\n dType = parser.parse(tokens);\n } catch (ParsingException e) {\n // Expect exception\n }\n Assert.assertNull(\"DataType should NOT have been found for Type = \" + content, dType);\n\n }", "private String parseRDataAType(ByteBuffer response) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 3; i++) {\n sb.append(Byte.toUnsignedInt(response.get()));\n sb.append('.');\n }\n sb.append(Byte.toUnsignedInt(response.get()));\n return sb.toString();\n }", "<S> S fromStr(String s, Class<S> clazz);", "@Test\n public void shouldNotParseXXXXXXTYPE() {\n printTest(\"shouldNotParseXXXXXXTYPE()\");\n String typeString = \"XXXXXXTYPE\";\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = null;\n try {\n dType = parser.parse(tokens);\n } catch (ParsingException e) {\n // Expect exception\n }\n\n Assert.assertNull(\"DataType should NOT have been found for Type = \" + typeString, dType);\n }", "public static String toJavaType( String type ) {\n StringBuffer nat = new StringBuffer( 30 );\n int arraydim = 0;\n while ( type.charAt( arraydim ) == '[' ) arraydim++;\n type = type.substring( arraydim );\n switch ( type.charAt( 0 ) ) {\n default:\n throw new IllegalArgumentException( \"unknown native type:\" + type );\n case 'B':\n nat.append( \"byte\" );\n break;\n case 'C':\n nat.append( \"char\" );\n break;\n case 'D':\n nat.append( \"double\" );\n break;\n case 'F':\n nat.append( \"float\" );\n break;\n case 'I':\n nat.append( \"int\" );\n break;\n case 'J':\n nat.append( \"long\" );\n break;\n case 'S':\n nat.append( \"short\" );\n break;\n case 'Z':\n nat.append( \"boolean\" );\n break;\n case 'V':\n nat.append( \"void\" );\n break;\n case 'L':\n String className = type.substring( 1, type.length() - 1 );\n if ( className.indexOf( '<' ) >= 0 ) {\n String parameters = type.substring( className.indexOf( '<' ) + 2, className.lastIndexOf( '>' ) - 1 );\n className = className.substring( 0, className.indexOf( '<' ) );\n nat.append( className.replace( '/', '.' ) );\n nat.append( '<' );\n nat.append( toJavaParameters( parameters ) );\n nat.append( '>' );\n } else {\n nat.append( className.replace( '/', '.' ) );\n }\n break;\n }\n for ( int i = 0; i < arraydim; i++ ) {\n nat.append( \"[]\" );\n }\n return nat.toString();\n }", "public final IValue parseString(String s) {\r\n SimpleType v = doParseString(s);\r\n if (v != null) {\r\n v.blueprint = false;\r\n }\r\n return (IValue) v;\r\n }", "public static Type stringToType(final String newType) {\r\n\t\t\r\n\t\tType returnType = Type.Undeclared;\r\n\t\t\r\n\t\tif (newType.toLowerCase().equalsIgnoreCase(\"int\")) {\r\n\t\t\treturnType = Attribute.Type.Int;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"long\")) {\r\n\t\t\treturnType = Attribute.Type.Long;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"boolean\") \r\n\t\t\t\t|| newType.toLowerCase().equalsIgnoreCase(\"bool\")) {\r\n\t\t\treturnType = Attribute.Type.Boolean;\r\n\t\t} else if (newType.toLowerCase().toLowerCase().startsWith(\"char\") \r\n\t\t\t\t|| newType.toLowerCase().toLowerCase().startsWith(\"character\")) {\r\n\t\t\treturnType = Attribute.Type.Char;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"float\")) {\r\n\t\t\treturnType = Attribute.Type.Float;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"double\")) {\r\n\t\t\treturnType = Attribute.Type.Double;\r\n\t\t} else if (newType.toLowerCase().equalsIgnoreCase(\"datetime\")) {\r\n\t\t\treturnType = Attribute.Type.DateTime;\r\n\t\t} else {\r\n\t\t\treturnType = Attribute.Type.Undeclared;\r\n\t\t}\t\r\n\t\treturn returnType;\r\n\t}", "<T> T fromJson(String source, JavaType type);", "public String parseQueryType(String queryType){\n\t\t \tif(\"online\".equals(queryType)){\n\t\t \t\tqueryType=\"1\";\n\t\t \t}else if(\"batch\".equals(queryType)){\n\t\t \t\tqueryType=\"2\";\n\t\t \t}\n\t\t\t\treturn queryType;\n\t\t }", "Data mo12944a(String str) throws IllegalArgumentException;", "abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;", "public static <T> T parse(String value, Class<T> clz){\r\n\r\n if (StringUtils.isEmpty(value)) {\r\n return null;\r\n }\r\n try {\r\n return mapper.readValue(value, clz);\r\n }\r\n catch (Exception e) {\r\n throw new IllegalStateException(e);\r\n }\r\n }", "public String getDataType() ;", "private static Object valueFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tbyte type = bytes.get();\n\t\t//System.out.println(\"From value: \" + new Integer(type).toString());\n\t\tswitch(type){\n\t\tcase MAP_INDICATOR:\n\t\t\t//System.out.println(\"MAP!\");\n\t\t\treturn mapFromBytes(bytes);\n\t\tcase ARRAY_INDICATOR:\n\t\t\treturn arrayFromBytes(bytes);\n\t\tcase STRING_INDICATOR:\n\t\t\t//System.out.println(\"STRING!\");\n\t\t\tint length = bytes.getInt();\n\t\t\tbyte[] stringBytes = new byte[length];\n\t\t\tbytes.get(stringBytes, 0, length);\n\t\t\treturn new String(stringBytes);\n\t\tcase INTEGER_INDICATOR:\n\t\t\treturn bytes.getInt();\n\t\tcase LONG_INDICATOR:\n\t\t\treturn bytes.getLong();\n\t\tcase DOUBLE_INDICATOR:\n\t\t\treturn bytes.getDouble();\n\t\tcase FLOAT_INDICATOR:\n\t\t\treturn bytes.getFloat();\n\t\tcase BOOLEAN_INDICATOR:\n\t\t\treturn bytes.get() == 1 ? 1: 0;\n\t\tdefault:\n\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t}\n\t\t\n\t\t\t\n\t\t\t\n\t}", "public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}", "protected abstract DBObject parse(InputStream is) throws DeserializationException;", "T deserializeData(R r) throws SQLException;", "static DruidType getTypeFromMetric(String type) {\n assert type != null;\n if (type.equals(\"hyperUnique\")) {\n return HYPER_UNIQUE;\n } else if (type.equals(\"thetaSketch\")) {\n return THETA_SKETCH;\n } else if (type.startsWith(\"long\") || type.equals(\"count\")) {\n return LONG;\n } else if (type.startsWith(\"double\")) {\n return DOUBLE;\n } else if (type.startsWith(\"float\")) {\n return FLOAT;\n }\n throw new AssertionError(\"Unknown type: \" + type);\n }", "private T convert(String value)\n {\n if (value == null)\n {\n return null;\n }\n\n Object result = null;\n\n if (this.converter != null)\n {\n try\n {\n result = converter.convert(value);\n }\n catch (Exception e)\n {\n throw ExceptionUtils.throwAsRuntimeException(e);\n }\n }\n else if (String.class.equals(configEntryType))\n {\n result = value;\n }\n else if (Class.class.equals(configEntryType))\n {\n result = ClassUtils.tryToLoadClassForName(value);\n }\n else if (Boolean.class.equals(configEntryType))\n {\n Boolean isTrue = \"TRUE\".equalsIgnoreCase(value);\n isTrue |= \"1\".equalsIgnoreCase(value);\n isTrue |= \"YES\".equalsIgnoreCase(value);\n isTrue |= \"Y\".equalsIgnoreCase(value);\n isTrue |= \"JA\".equalsIgnoreCase(value);\n isTrue |= \"J\".equalsIgnoreCase(value);\n isTrue |= \"OUI\".equalsIgnoreCase(value);\n\n result = isTrue;\n }\n else if (Integer.class.equals(configEntryType))\n {\n result = Integer.parseInt(value);\n }\n else if (Long.class.equals(configEntryType))\n {\n result = Long.parseLong(value);\n }\n else if (Float.class.equals(configEntryType))\n {\n result = Float.parseFloat(value);\n }\n else if (Double.class.equals(configEntryType))\n {\n result = Double.parseDouble(value);\n }\n\n return (T) result;\n }", "DatatypeType createDatatypeType();", "public static String getCQLDataType(Schema.Type dataType) throws TimeSeriesException {\r\n\t\tswitch(dataType) {\r\n\t\t\tcase DOUBLE: \r\n\t\t\t\treturn \"double\";\r\n\t\t\tcase BOOLEAN: \r\n\t\t\t\treturn \"boolean\";\r\n\t\t\tcase FLOAT: \r\n\t\t\t\treturn \"float\";\r\n\t\t\tcase INT: \r\n\t\t\t\treturn \"int\";\r\n\t\t\tcase LONG: \r\n\t\t\t\treturn \"bigint\";\t\t\t\t\r\n\t\t\tcase STRING: \r\n\t\t\t\treturn \"varchar\";\r\n\t\t\tcase BYTES: \r\n\t\t\t\treturn \"blob\";\r\n\t\t\tdefault: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t}\r\n\t}", "public void setDataType(String dataType) {\r\n this.dataType = dataType;\r\n }", "public void setDataType(String dataType) {\n this.dataType = dataType;\n }", "@Test\n public void test_column_type_detection_strings_03() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"simple\", XSDDatatype.XSDstring), true, Types.NVARCHAR, String.class.getCanonicalName());\n }", "@Test\n public void testParseString() {\n StringSpec stringSpec = new StringSpec();\n stringSpec.setDefaultValue(\"hello world!\");\n dataTypeParser.setDataTypeSpec(stringSpec);\n dataTypeParser.parse();\n StringSpec parsedStringSpec = (StringSpec) dataTypeParser.getDataTypeSpec();\n\n assertNull(parsedStringSpec.getMaxLength());\n assertNull(parsedStringSpec.getMinLength());\n assertNull(parsedStringSpec.getRegexPattern());\n\n // Checking that max and min values are null\n stringSpec = new StringSpec();\n stringSpec.setRegexPattern(\"[a-z]{2}\");\n dataTypeParser.setDataTypeSpec(stringSpec);\n dataTypeParser.parse();\n parsedStringSpec = (StringSpec) dataTypeParser.getDataTypeSpec();\n\n assertNull(parsedStringSpec.getMaxLength());\n assertNull(parsedStringSpec.getMinLength());\n }", "@Test\n public void shouldParseDATE() {\n printTest(\"shouldParseDATE()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_DATE);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "public static CollectionType parse( String value ) {\n\t\tvalue = value.trim();\n\t\t\n\t\tif(value.equalsIgnoreCase(\"set\"))\t\treturn set;\n\t\tif(value.equalsIgnoreCase(\"list\"))\t\treturn list;\n\t\tif(value.equalsIgnoreCase(\"vector\"))\treturn vector;\n\t\treturn null;\t// unrecognized\n\t}", "T convert(String value);", "public abstract byte[] parse(String input);", "protected abstract DTDataTypes52 getDataType(C column);", "@Test\n public void test_column_type_detection_strings_04() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"simple\", TypeMapper.getInstance().getSafeTypeByName(\"http://datatypes/custom\")), true, Types.NVARCHAR, String.class.getCanonicalName());\n }", "public void parse(String string) {\n\t\t\n\t}", "public static CDOffering readFromString(String accountData) throws NumberFormatException {\n\t\t\tString termString = \"\";\n\t\t\tString rateString = \"\";\n\t\t\tint position = 1;\n\t\t\n\t\t\tfor (char c: accountData.toCharArray()) {\n\t\t\t\tif(c == ',') { position ++; continue; }\n\t\t\t\tif(position == 1) { termString += c; }\n\t\t\t\tif(position == 2) { rateString += c; }\n\t\t\t}\n\t\t\t\n\t\t\tif(termString == \"\" || rateString == \"\" || position != 2) {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\t\n\t\t\tint term = Integer.parseInt(termString);\n\t\t\tdouble rate = Double.parseDouble(rateString);\n\t\t\t\n\t\t\tCDOffering newCDOffering = new CDOffering(term, rate);\n\t\t\t\n\t\t\treturn newCDOffering;\n\n\t}", "private TsPrimitiveType readOneValue() {\n switch (dataType) {\n case BOOLEAN:\n return new TsBoolean(valueDecoder.readBoolean(valueInputStream));\n case INT32:\n return new TsInt(valueDecoder.readInt(valueInputStream));\n case INT64:\n return new TsLong(valueDecoder.readLong(valueInputStream));\n case FLOAT:\n return new TsFloat(valueDecoder.readFloat(valueInputStream));\n case DOUBLE:\n return new TsDouble(valueDecoder.readDouble(valueInputStream));\n case TEXT:\n return new TsBinary(valueDecoder.readBinary(valueInputStream));\n default:\n break;\n }\n throw new UnSupportedDataTypeException(\"Unsupported data type :\" + dataType);\n }", "Object transform(String cellValue, Type toValueType) throws Throwable;", "private static String getColumnType(String columnValue) {\n\t\ttry {\r\n\t\t\tInteger.parseInt(columnValue);\r\n\t\t\treturn \"INTEGER\";\r\n\t\t} catch (Throwable error) {}\r\n\t\t// then, try to parse it as a float\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble(columnValue);\r\n\t\t\treturn \"REAL\";\r\n\t\t} catch (Throwable error) {}\r\n\t\t// otherwise, it's a text column\r\n\t\treturn \"TEXT\";\r\n\t}", "private List<PTypes> dissectListTypes(String cellString){\n return Arrays.stream(cellString.split(\",\\\\s+\"))\n .map(PTypes::valueOf)\n .collect(Collectors.toList());\n }", "@Test\n public void test_column_type_detection_strings_05() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createURI(\"http://example.org\"), true, Types.NVARCHAR, String.class.getCanonicalName());\n }", "public abstract T deserialize(String serial);", "@Override\r\n\tprotected Object stringToValue(String valueString) throws ParseException {\r\n\t\ttry {\r\n\t\t\treturn PersistentBean.findOrCreate(beanClass, valueString);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new ParseException(e.getMessage(), 0);\r\n\t\t}\r\n\t}", "Single<String> parse(String planeArticle);", "private static Type matchType(String type) {\n if (type == null) {\n return VarcharType.VARCHAR;\n }\n\n switch (type.toLowerCase()) {\n case \"string\":\n return VarcharType.VARCHAR;\n case \"int\":\n return IntegerType.INTEGER;\n case \"bigint\":\n return BigintType.BIGINT;\n case \"double\":\n return DoubleType.DOUBLE;\n case \"boolean\":\n return BooleanType.BOOLEAN;\n case \"array<string>\":\n return new ArrayType(VarcharType.VARCHAR);\n case \"timestamp\":\n return TimestampType.TIMESTAMP;\n case \"datetime\":\n return TimestampType.TIMESTAMP;\n case \"number\":\n return DecimalType.createDecimalType(DECIMAL_DEFAULT_PRECISION, DECIMAL_DEFAULT_SCALE);\n default:\n return VarcharType.VARCHAR;\n }\n }", "protected long readTimestampFromString(String value) {\r\n\t\t return Long.parseLong(value);\r\n\t\t }", "@Test\n public void test_column_type_detection_strings_02() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"simple\", \"en\", false), true, Types.NVARCHAR, String.class.getCanonicalName());\n }", "public static <T> T parseJSON(final String jsonString, Class<T> type) {\r\n\t\tT retObject = null;\r\n\t\ttry {\r\n\t\t\tretObject = PARSER.parse(jsonString, type);\r\n\t\t} catch (ParseException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in de-serializing to object\", ex);\r\n\t\t\tretObject = null;\r\n\t\t}\r\n\t\treturn retObject;\r\n\t}", "@JsonCreator\n public static ComputeType fromString(String name) {\n return fromString(name, ComputeType.class);\n }", "DatatypesType createDatatypesType();" ]
[ "0.7162399", "0.6716358", "0.63759255", "0.62385535", "0.6181499", "0.6175078", "0.6102705", "0.60879964", "0.60794026", "0.606816", "0.605267", "0.59990704", "0.5978109", "0.59647095", "0.5903822", "0.58876663", "0.58129966", "0.5783849", "0.5677445", "0.565642", "0.5585197", "0.55707806", "0.5564464", "0.55351895", "0.5528883", "0.54907286", "0.5485902", "0.5460965", "0.5449957", "0.54422724", "0.5432027", "0.54206526", "0.5405725", "0.53997236", "0.5366223", "0.5362563", "0.5356186", "0.5342513", "0.53338844", "0.5295698", "0.52938104", "0.5292165", "0.5272976", "0.52427304", "0.52218467", "0.5219403", "0.5217076", "0.5195172", "0.518746", "0.5182754", "0.51618916", "0.51554036", "0.5148473", "0.5143461", "0.5138184", "0.5130691", "0.5129885", "0.5113505", "0.511329", "0.5109502", "0.5109419", "0.51065004", "0.51017666", "0.50894386", "0.50753385", "0.50673515", "0.5065591", "0.50611514", "0.50574434", "0.5056558", "0.5041965", "0.5037082", "0.5029844", "0.5028491", "0.500863", "0.5008286", "0.5003779", "0.5003425", "0.49985754", "0.49936986", "0.4987939", "0.49819282", "0.49755025", "0.49681082", "0.49608898", "0.4956645", "0.4956081", "0.49485", "0.4935331", "0.49343613", "0.4932686", "0.49316856", "0.4927018", "0.49253863", "0.49247527", "0.49033892", "0.4898355", "0.48923227", "0.4887533", "0.48836887" ]
0.62441254
3
convert a column to a tuple
protected Tuple columnToTuple(ColumnFamilyRecordReader.Column column, CfDef cfDef, AbstractType comparator) throws IOException { Tuple pair = TupleFactory.getInstance().newTuple(2); // name if(comparator instanceof AbstractCompositeType) StorageHelper.setTupleValue(pair, 0, composeComposite((AbstractCompositeType) comparator, column.name)); else StorageHelper.setTupleValue(pair, 0, StorageHelper.cassandraToObj(comparator, column.name, nativeProtocolVersion)); // value Map<ByteBuffer,AbstractType> validators = getValidatorMap(cfDef); if (validators.get(column.name) == null) { Map<MarshallerType, AbstractType> marshallers = getDefaultMarshallers(cfDef); StorageHelper.setTupleValue(pair, 1, StorageHelper.cassandraToObj(marshallers.get(MarshallerType.DEFAULT_VALIDATOR), column.value, nativeProtocolVersion)); } else StorageHelper.setTupleValue(pair, 1, StorageHelper.cassandraToObj(validators.get(column.name), column.value, nativeProtocolVersion)); return pair; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ColumnPair columnPair();", "public abstract T getTuple(Record record);", "TupleExpr createTupleExpr();", "@Override\n\t\t\tpublic Object invoke(Tuple tuple) {\n\t\t\t\treturn type.cast( col.invoke(tuple) );\n\t\t\t}", "@VTID(13)\r\n java.lang.String getTuple();", "@Override\n\t\t\tpublic ColumnMetaData getColumnMetaData() {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\t\"If you want to use val() to create a real\"\n\t\t\t\t\t\t\t\t+ \" column within a tuple, give it a name (i.e. use val(obj, name))!\");\n\t\t\t}", "public abstract T getTuple(int aPosition);", "Astro tuple(AstroArg args);", "Iterator<ColumnPair> columnPairs();", "public static Tuple toTuple(Object o) throws ExecException {\n if (o == null) {\n return null;\n }\n\n if (o instanceof Tuple) {\n try {\n return (Tuple)o;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Tuple.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n } else {\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a Tuple\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n }", "TupleLiteralExp createTupleLiteralExp();", "private Tuple createTuple(Tuple tup) {\n\t\tTuple t = new Tuple(td);\n\t\tif (this.gbfieldtype == null) {\n\t\t\tt.setField(0, new IntField(1));\n\t\t} else {\n\t\t\tt.setField(0, tup.getField(gbfield));\n\t\t\tt.setField(1, new IntField(1));\n\t\t}\n\t\treturn t;\n\t}", "public Tuple getTupleField(int i) {\n Datum field = getField(i); // throws exception if field doesn't exist\n\n if (field instanceof Tuple) {\n return (Tuple) field;\n } else if (field instanceof DataBag) {\n DataBag b = (DataBag) field;\n if (b.size() == 1) {\n return b.iterator().next();\n }\n }\n\n throw newTupleAccessException(field, \"tuple\", i);\n }", "TupleLiteralPart createTupleLiteralPart();", "Object getColumnValue(int colIndex);", "public boolean isTuple() {\n return PyTorchLibrary.LIB.iValueIsTuple(getHandle());\n }", "private Map.Entry<Integer, Column<?>> getColumnEntry(final int row) {\n Preconditions.checkElementIndex(row, numTuples);\n readOnly = true;\n return columnIds.floorEntry(row);\n }", "public abstract List<CellValue< ? extends Comparable< ? >>> convertColumnData(C column,\n List<V> columnData);", "public TupleDesc getTupleDesc();", "String getValue(String column, int row);", "@Override\r\n\t\t\tpublic List<Object> dbObjectToStormTuple(DBObject message) {\n\t\t\t\treturn tuple(message);\r\n\t\t\t}", "private Collection getColumn(QueryResultIF queryResult, int column) {\n Collection retVal = new ArrayList();\n\n while (queryResult.next()) {\n retVal.add(queryResult.getValue(column));\n }\n\n return retVal;\n }", "protected final int get_INTEGER(int column) {\n // @AGG had to get integer as Little Endian\n if (metadata.isZos())\n return dataBuffer_.getInt(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getIntLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getInt(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }", "Tuple extract(int[] pos) {\n Tuple results = new Tuple();\n\n for (int i : pos)\n results.add(elements.set(i, null));\n\n return results;\n }", "public static void addTupleAsOneCell(List<Cell> result,\n Tuple tuple,\n TupleProjector tupleProjector,\n ImmutableBytesWritable ptr) {\n byte[] value =\n tupleProjector.getSchema().toBytes(tuple, tupleProjector.getExpressions(),\n tupleProjector.getValueBitSet(), ptr);\n Cell firstCell = result.get(0);\n Cell keyValue =\n PhoenixKeyValueUtil.newKeyValue(firstCell.getRowArray(),\n firstCell.getRowOffset(),firstCell.getRowLength(), VALUE_COLUMN_FAMILY,\n VALUE_COLUMN_QUALIFIER, firstCell.getTimestamp(), value, 0, value.length);\n result.add(keyValue);\n }", "public boolean isGeneralTuple();", "protected Tuple cleanTuple(Tuple result)\n {\n return result;\n }", "public final AstValidator.tuple_return tuple() throws RecognitionException {\n AstValidator.tuple_return retval = new AstValidator.tuple_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree TUPLE_VAL436=null;\n AstValidator.literal_return literal437 =null;\n\n\n CommonTree TUPLE_VAL436_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:7: ( ^( TUPLE_VAL ( literal )* ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:9: ^( TUPLE_VAL ( literal )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n TUPLE_VAL436=(CommonTree)match(input,TUPLE_VAL,FOLLOW_TUPLE_VAL_in_tuple3574); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n TUPLE_VAL436_tree = (CommonTree)adaptor.dupNode(TUPLE_VAL436);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(TUPLE_VAL436_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:22: ( literal )*\n loop121:\n do {\n int alt121=2;\n int LA121_0 = input.LA(1);\n\n if ( (LA121_0==BIGDECIMALNUMBER||LA121_0==BIGINTEGERNUMBER||LA121_0==DOUBLENUMBER||LA121_0==FALSE||LA121_0==FLOATNUMBER||LA121_0==INTEGER||LA121_0==LONGINTEGER||LA121_0==MINUS||LA121_0==NULL||LA121_0==QUOTEDSTRING||LA121_0==TRUE||LA121_0==BAG_VAL||LA121_0==MAP_VAL||LA121_0==TUPLE_VAL) ) {\n alt121=1;\n }\n\n\n switch (alt121) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:673:22: literal\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_literal_in_tuple3576);\n \t literal437=literal();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, literal437.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop121;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private Object columnToRow(Column column, Schema schema) {\n String columnName = column.getQualifier().toStringUtf8();\n Schema.FieldType columnType = schema.getField(columnName).getType();\n List<Cell> cells = column.getCellsList();\n switch (columnType.getTypeName()) {\n case ARRAY:\n Schema.FieldType collectionElementType = columnType.getCollectionElementType();\n if (collectionElementType != null) {\n return cells.stream()\n .map(cell -> getCellValue(cell, collectionElementType))\n .collect(toList());\n } else {\n throw new NullPointerException(\"Null collectionElementType at column \" + columnName);\n }\n case ROW:\n @Nullable Schema rowSchema = columnType.getRowSchema();\n if (rowSchema == null) {\n throw new NullPointerException(\"Null row schema at column \" + columnName);\n } else {\n return cellToRow(getLastCell(cells), rowSchema);\n }\n default:\n return getCellValue(getLastCell(cells), columnType);\n }\n }", "com.google.protobuf.ByteString getColumnBytes();", "@Override\n\tpublic int getColumnType(int col) throws SQLException {\n\n\t\tif (col <= width && col >= 1) {\n\t\t\tcol--;\n\n\t\t\tString str = table[0][col];\n\t\t\tStringTokenizer token = new StringTokenizer(str, \",\");\n\t\t\tString name = token.nextToken();\n\t\t\tString type = token.nextToken();\n\t\t\t/*\n\t\t\t * possible errors here according . we should check accurately the\n\t\t\t * name of types returned by amr to make sure they match the words\n\t\t\t * here . anyway I wrote them now and can be modified in\n\t\t\t * logartithmic time easily :P :D\n\t\t\t */\n\n\t\t\tif (type.equals(\"double\"))\n\t\t\t\treturn java.sql.Types.DOUBLE;\n\t\t\telse if (type.equals(\"integer\"))\n\t\t\t\treturn java.sql.Types.INTEGER;\n\t\t\telse if (type.equals(\"string\"))\n\t\t\t\treturn java.sql.Types.VARCHAR;\n\t\t\telse if (type.equals(\"boolean\"))\n\t\t\t\treturn java.sql.Types.BOOLEAN;\n\t\t\telse if (type.equals(\"date\"))\n\t\t\t\treturn java.sql.Types.DATE;\n\t\t\telse\n\t\t\t\treturn java.sql.Types.NULL;\n\n\t\t} else\n\t\t\tthrow new SQLException(\"column requested out of table bounds\");\n\n\t}", "Object getDataValue(String column, int row);", "com.google.protobuf.ByteString\n getColumnBytes();", "@Override\n\t\t\tpublic Object invoke(Tuple left, Tuple right) {\n\t\t\t\treturn type.cast( col.invoke(left, right) );\n\t\t\t}", "public long getLong(int row, int column) {\n return columns[column].getLong(row);\n }", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "@NonNull\n Collection<TObj> getColumnItems(int column) {\n Collection<TObj> result = new LinkedList<>();\n for (int count = mData.size(), i = 0; i < count; i++) {\n int key = mData.keyAt(i);\n TObj columnObj = mData.get(key).get(column);\n if (columnObj != null) {\n result.add(columnObj);\n }\n\n }\n return result;\n }", "static ProjectedTuple castNumbers(ProjectedTuple tuple) {\n List<Object> newVaues = new ArrayList<>();\n for (int i = 0; i < tuple.values().size(); i++) {\n newVaues.add(convert(tuple.values().get(i), tuple.paths().get(i).returnType()));\n }\n\n return ProjectedTuple.of(tuple.paths(), newVaues);\n }", "public Tuple nextTuple() {\n\t\ttry {\n\t\t\treturn tr.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "TupleTypeRule createTupleTypeRule();", "public abstract float[] getasFloat(int tuple);", "public Tuple get(Key k) throws RelationException;", "public abstract float getasFloat(int tuple, int val);", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "public abstract List<V> makeColumnData(C column);", "java.lang.String getColumn();", "private final LocalDateTime get_TIMESTAMP(int column) {\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 26, charset_[column - 1]).toString();\n return LocalDateTime.parse(timeString, DRDAConstants.DB2_TIMESTAMP_FORMAT);\n// return DateTime.timestampBytesToTimestamp(\n// dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1],\n// agent_.connection_.serverSupportsTimestampNanoseconds());\n }", "protected Object getSplValue(Attribute attribute, Tuple tuple) {\r\n\r\n\t\tType splType = attribute.getType();\r\n\t\tint index = attribute.getIndex();\r\n\t\t\r\n\t\tif (splType.getMetaType() == MetaType.INT8)\r\n\t\t\treturn tuple.getByte(index);\r\n\t\tif (splType.getMetaType() == MetaType.INT16)\r\n\t\t\treturn tuple.getShort(index);\r\n\t\tif (splType.getMetaType() == MetaType.INT32)\r\n\t\t\treturn tuple.getInt(index);\r\n\t\tif (splType.getMetaType() == MetaType.INT64)\r\n\t\t\treturn tuple.getLong(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.UINT8)\r\n\t\t\treturn tuple.getByte(index);\r\n\t\tif (splType.getMetaType() == MetaType.UINT16)\r\n\t\t\treturn tuple.getShort(index);\r\n\t\tif (splType.getMetaType() == MetaType.UINT32)\r\n\t\t\treturn tuple.getInt(index);\r\n\t\tif (splType.getMetaType() == MetaType.UINT64)\r\n\t\t\treturn tuple.getLong(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.BLOB)\r\n\t\t\treturn tuple.getBlob(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.BOOLEAN)\r\n\t\t\treturn tuple.getBoolean(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.DECIMAL32)\r\n\t\t\treturn tuple.getBigDecimal(index);\r\n\t\tif (splType.getMetaType() == MetaType.DECIMAL64)\r\n\t\t\treturn tuple.getBigDecimal(index);\r\n\t\tif (splType.getMetaType() == MetaType.DECIMAL128)\r\n\t\t\treturn tuple.getBigDecimal(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.FLOAT32)\r\n\t\t\treturn tuple.getFloat(index);\r\n\t\tif (splType.getMetaType() == MetaType.FLOAT64)\r\n\t\t\treturn tuple.getDouble(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.RSTRING)\r\n\t\t\treturn tuple.getString(index);\r\n\t\tif (splType.getMetaType() == MetaType.USTRING)\r\n\t\t\treturn tuple.getString(index);\r\n\r\n\t\tif (splType.getMetaType() == MetaType.TIMESTAMP)\r\n\t\t\treturn tuple.getTimestamp(index).getSQLTimestamp();\r\n\r\n\t\tif (splType.getMetaType() == MetaType.XML)\r\n\t\t\treturn tuple.getXML(index);\r\n\r\n\t\t// Task 39870 Update JDBC toolkit with respect to optional data type support\r\n\t\t// it compares the contain of SPL type delivers by SPL application with data types \r\n\t\t// The \"MetaType.OPTIONAL)\" and \"tuple.getOptional\" was not used due of \r\n\t\t// compatibility with older Streams Version without optional type\r\n\t\tif(splType.getLanguageType().toUpperCase().contains(\"OPTIONAL\"))\r\n\t\t\treturn tuple.getObject(index);\r\n/*\r\n\t\tif (splType.getMetaType() == MetaType.OPTIONAL)\r\n\t\t{\r\n\t\t\tif ((tuple.getOptional(index, attribute.getType().getAsCompositeElementType()).isPresent()))\r\n\t\t {\r\n\t\t \treturn tuple.getOptional(index, attribute.getType().getAsCompositeElementType()).get();\r\n\t\t }\r\n\t\t else\r\n\t\t \treturn null;\r\n\t\t}\r\n*/\t\t\t\t\t\r\n\t\tLOGGER.log(LogLevel.ERROR, Messages.getString(\"JDBC_SPL_TYPE_NOT_SUPPORT\"), splType.getMetaType()); \r\n\t\treturn null;\r\n\r\n\t}", "public Relation project(Tuple t) throws RelationException;", "Column getCol();", "public ArrayList<Object> retrieveData(String column) {\n ArrayList<Object> dataLst = new ArrayList<Object>(this.rowCount);\r\n\r\n int colType = getColumnType(column);\r\n\r\n //Number can be measure alone?\r\n if (isNumberColumn(colType)) {\r\n for (Object data : retrieveNumericData(column)) {\r\n dataLst.add(data);\r\n }\r\n } else if (isTextColumn(colType)) {\r\n for (int i = 0; i < this.rowCount; i++) {\r\n dataLst.add(this.getFieldValueString(i, column));\r\n }\r\n } else if (isDateColumn(colType)) {\r\n for (int i = 0; i < this.rowCount; i++) {\r\n dataLst.add(this.getFieldValueDate(i, column));\r\n }\r\n }\r\n\r\n// // long endTime = System.currentTimeMillis();\r\n// \r\n return dataLst;\r\n }", "public abstract Tuple parseFrom(byte[] bytes) throws Exception;", "@Deprecated\n public static Tuple asUnmodifiable(Tuple tuple) {\n tuple.isUnmodifiable = true;\n\n return tuple;\n }", "public long getElementAt(int row, int column) {\n\t\treturn _value[(row * _columnCount) + column];\n\t}", "public interface IGeneralTuple {\r\n /**\r\n * Sets the values for a tuple.\r\n * @param values the tuple values\r\n */\r\n public void setValues(List<Object> values);\r\n /**\r\n * Returns the list of values in a tuple.\r\n * @return the list of values\r\n */\r\n public List<Object> getValues();\r\n /**\r\n * Returns the value located in a specific index of the list of values. \r\n * @param index the index in which the value is located\r\n * @return the value \r\n */\r\n public Object getValue(int index);\r\n /**\r\n * Returns whether it is a general tuple.\r\n * @return a boolean value indicating whether it is a general tuple\r\n */\r\n public boolean isGeneralTuple();\r\n}", "Tuple[] getTuples() {\r\n Tuple[] newTuples = new Tuple[tupleCount];\r\n System.arraycopy(tuple,0,newTuples,0,tupleCount);\r\n return newTuples;\r\n }", "public int getColumn(){ return (Integer)args[1]; }", "@Override\n public Object getValueAt(int row, int column) { return data[row][column]; }", "public static interface Tuple {\n\n\t}", "protected abstract V convertToModelCell(C column,\n CellValue< ? > cell);", "private static String[] parseColumnTypes(String columnInfo) {\n\t\tString both[] = columnInfo.split(\",\");\n\t\tString values[] = new String[both.length];\n\t\tfor ( int i = 0; i < values.length; i++ ) {\n\t\t\tString combo[] = both[i].split(\":\");\n\t\t\tvalues[i] = combo[1];\n\t\t}\n\t\treturn values;\n\t}", "private ArrayList<Tuple> loadTuple() {\n\t\tArrayList<Tuple> idArray = new ArrayList<Tuple>();\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = context.openFileInput(SAVE_FILE);\n\t\t\tInputStreamReader inputStreamReader = new InputStreamReader(\n\t\t\t\t\tfileInputStream);\n\t\t\tType listType = new TypeToken<ArrayList<Tuple>>() {\n\t\t\t}.getType();\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tArrayList<Tuple> list = gson.fromJson(inputStreamReader, listType);\n\t\t\tidArray = list;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn idArray;\n\t}", "FromValuesColumns createFromValuesColumns();", "private Mutation mutationFromTuple(Tuple t) throws IOException\n {\n Mutation mutation = new Mutation();\n if (t.get(1) == null)\n {\n if (allow_deletes)\n {\n mutation.deletion = new Deletion();\n mutation.deletion.predicate = new org.apache.cassandra.thrift.SlicePredicate();\n mutation.deletion.predicate.column_names = Arrays.asList(objToBB(t.get(0)));\n mutation.deletion.setTimestamp(FBUtilities.timestampMicros());\n }\n else\n throw new IOException(\"null found but deletes are disabled, set \" + PIG_ALLOW_DELETES +\n \"=true in environment or allow_deletes=true in URL to enable\");\n }\n else\n {\n org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column();\n column.setName(objToBB(t.get(0)));\n column.setValue(objToBB(t.get(1)));\n column.setTimestamp(FBUtilities.timestampMicros());\n mutation.column_or_supercolumn = new ColumnOrSuperColumn();\n mutation.column_or_supercolumn.column = column;\n }\n return mutation;\n }", "public T caseTuple(Tuple object)\n {\n return null;\n }", "@Override\n public TimestampedUIDTuple getSourceTuple() {\n return (TimestampedUIDTuple) tuple;\n }", "public abstract double getasDouble(int tuple, int val);", "public static Column val(final Object obj) {\n\t\tif(obj == null) // if obj is null we can't generate metadata.. \n\t\t\tthrow new RuntimeException(\"Don't use val() with a null value! Use valNULL() instead!\"); \n\t\treturn new Column(obj, \"val(\" + obj.toString() + \")\"){\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic ColumnMetaData getColumnMetaData() {\n\t\t\t\t// make sure this val is only used as intended by the user..\n\t\t\t\t// ATTENTION: this means that for \"internal\" use, like\n\t\t\t\t// checkForNumber, the columnmetadata\n\t\t\t\t// needs to be accessed directly!\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\t\"If you want to use val() to create a real\"\n\t\t\t\t\t\t\t\t+ \" column within a tuple, give it a name (i.e. use val(obj, name))!\");\n\t\t\t}\n\t\t};\n\t}", "public void addTuple(Tuple tup) {\n table.add(tup);\n }", "public abstract void handleTuple(ITuple tuple);", "private Object get_UDT(int column) {\n byte[] bytes;\n int columnLength =\n (maxFieldSize_ == 0) ? columnDataComputedLength_[column - 1] - 2 :\n Math.min(maxFieldSize_, columnDataComputedLength_[column - 1] - 2);\n bytes = new byte[columnLength];\n //System.arraycopy(dataBuffer_, columnDataPosition_[column - 1] + 2, bytes, 0, bytes.length);\n dataBuffer_.getBytes(columnDataPosition_[column - 1] + 2, bytes);\n\n try {\n ByteArrayInputStream bais = new ByteArrayInputStream( bytes );\n ObjectInputStream ois = new ObjectInputStream( bais );\n return ois.readObject();\n } catch (IOException | ClassNotFoundException e) {\n throw new IllegalStateException(\"SQLState.NET_MARSHALLING_UDT_ERROR\", e);\n }\n }", "public Tuple get(int[] pos) {\n if (pos == null || pos.length == 0)\n return new Tuple(this);\n\n Tuple results = new Tuple();\n\n for (int i : pos)\n results.add(elements.get(i));\n\n return results;\n }", "public abstract double[] getasDouble(int tuple);", "@Nullable\n Object getValueOfColumn(ModelColumnInfo<Item> column);", "default Object convert(GenericRowData row) {\n return convert(row, -1);\n }", "public T col(final String column) {\r\n\t\treturn op(ConditionValueType.COLUMN, column);\r\n\t}", "public Object getValueAt(int row, int column) {\n\t\tString[] rowValues = this.records.get(row);\n return rowValues[column];\n\t}", "@Test\n public void projection_and_twoColumns() {\n for (Tuple row : query().from(Constants.survey).select(new QIdName(Constants.survey.id, Constants.survey.name), Constants.survey.id, Constants.survey.name).fetch()) {\n Assert.assertEquals(3, row.size());\n Assert.assertEquals(IdName.class, row.get(0, Object.class).getClass());\n Assert.assertEquals(Integer.class, row.get(1, Object.class).getClass());\n Assert.assertEquals(String.class, row.get(2, Object.class).getClass());\n }\n }", "public ITupleReference getTupleFromMetadataEntity(T metadataEntity) throws MetadataException, IOException;", "public long getLong(int row, int column) {\n\t\treturn getColumn(column).getLong(subset[row]);\n\t}", "public int getInt(int row, int column) {\n return columns[column].getInt(row);\n }", "public Tuple next() throws RelationException;", "java.lang.String getSymbolTuple();", "interface ColumnPair extends Comparable<ColumnPair> {\r\n\r\n\t\t/**\r\n\t\t * Return the column pair's \"base\" column.\r\n\t\t */\r\n\t\tColumn baseColumn();\r\n\r\n\t\t/**\r\n\t\t * Return the column pair's \"referenced\" column.\r\n\t\t */\r\n\t\tColumn referencedColumn();\r\n\r\n\t}", "@Override\r\n\tpublic Object getColumnValue(int column) {\n\t\tswitch (column) {\r\n\t\tcase ID_SERVICIO_COLUMN_ORDER:\r\n\t\t\treturn idServicio;\r\n\t\tcase LATITUD_PUNTO_COLUMN_ORDER:\r\n\t\t\treturn latitudPunto;\r\n\t\tcase LONGITUD_PUNTO_COLUMN_ORDER:\r\n\t\t\treturn longitudPunto;\r\n\t\tcase DIRECCION_COLUMN_ORDER:\r\n\t\t\treturn direccion;\r\n\t\tcase ZONA_COLUMN_ORDER:\r\n\t\t\treturn zona;\r\n\t\tcase TARIFA_COLUMN_ORDER:\r\n\t\t\treturn tarifa;\r\n\t\tcase ORDEN_COLUMN_ORDER:\r\n\t\t\treturn orden;\t\t\r\n\t\tcase HORA_IR_COLUMN_ORDER:\r\n\t\t\treturn horaIr;\r\n\t\tcase HORA_LLEGADA_COLUMN_ORDER:\r\n\t\t\treturn horaLlegada;\r\n\t\tcase LATITUD_LLEGADA_COLUMN_ORDER:\r\n\t\t\treturn latitudLlegada;\r\n\t\tcase LONGITUD_LLEGADA_COLUMN_ORDER:\r\n\t\t\treturn longitudLlegada;\r\n\t\tcase GASTO_TIEMPO_ESPERA_COLUMN_ORDER:\r\n\t\t\treturn gastoTiempoEspera;\r\n\t\tcase GASTO_ESTACIONAMIENTO_COLUMN_ORDER:\r\n\t\t\treturn gastoEstacionamiento;\r\n\t\tcase GASTO_PEAJE_COLUMN_ORDER:\r\n\t\t\treturn gastoPeaje;\r\n\t\tcase GASTO_OTROS_COLUMN_ORDER:\r\n\t\t\treturn gastoOtros;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public int getValue(int row, int column);", "@Override\n public Object getValueAt(int row, int column) {\n return this.data[row][column];\n }", "public Object getStruct(String columnName) {\n StructVector vector = (StructVector) table.getVector(columnName);\n return vector.getObject(rowNumber);\n }", "public static String getTuple(String[] tuple, int time) throws InterruptedException{\n Thread.sleep((time*60000)/43200);\n String s = String.join(\";\", tuple);\n return s;\n }", "protected abstract DTDataTypes52 getDataType(C column);", "String getColumn();", "Boolean getBoolean(int col_num);", "private Object [] getFilterVals()\n throws java.sql.SQLException\n {\n Object [] ret = new Object[m_cols.length];\n\n for (int i = 0; i < m_cols.length; i++)\n {\n ret[i] = m_rs.getString((String)m_cols[i]);\n }\n return ret;\n }", "public TupleDesc getTupleDesc() {\n // some code goes here\n return td;\n }", "public Object getValueAt(int row, int column) {\n Preso cli = lista.get(row);\n /*if (column == Id) {\n return cli.getId();\n } else*/ if (column == Nome) {\n return cli.getNome();\n } if (column == Tempo) {\n return cli.getTempo();\n } else\n\n return \"\"; //Nunca deve ocorrer \n }", "@Override\r\n\tpublic Tuple nextTuple() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tTuple tuple = null;\r\n\t\ttry{\r\n\t\t\tString s = br.readLine();\r\n\t\t\tif(s==null) return null;\r\n\t\t\ttuple = new Tuple(s);\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.print(\"No more tuples!\");\r\n\t\t}\r\n\t\treturn tuple;\r\n\t}", "Object getDataValue(final int row, final int column);", "public interface CoordTupleString {\n\n /**\n * Accessor for the max tuple index\n * \n * @return the max tuple index\n */\n public abstract int maxIndex();\n\n /**\n * Accessor to determine the actual type managed.\n * \n * @return a Number the most directly corresponds to the\n * underlying managed type (Float for a float tuplestring,\n * Double for a double tuplestring, etc)\n */\n public abstract Number getPrimitiveType();\n\n /**\n * Accessor to retrieve a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a float[]\n */\n public abstract float[] getasFloat(int tuple);\n\n /**\n * Accessor to retrieve a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a double[]\n */\n public abstract double[] getasDouble(int tuple);\n\n /**\n * Accessor to retrieve a single value in a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @param val the index of the value in the tuple (the first val\n * is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a float\n */\n public abstract float getasFloat(int tuple, int val);\n\n /**\n * Accessor to retrieve a single value in a tuple\n * \n * @param tuple the tuple to retrieve (the first tuple is index 0)\n * @param val the index of the value in the tuple (the first val\n * is index 0)\n * @return the tuple at index <code>tuple</code>, coereced into\n * a double\n */\n public abstract double getasDouble(int tuple, int val);\n}", "ColumnInfoTransformer getColumnInfoTransformer();", "protected abstract CellValue< ? extends Comparable< ? >> convertModelCellValue(C column,\n V cell);" ]
[ "0.64158595", "0.6105184", "0.5994017", "0.583753", "0.5789424", "0.5659082", "0.5601636", "0.5583318", "0.54933846", "0.5441207", "0.54015905", "0.5364403", "0.53629756", "0.53170776", "0.5271643", "0.52589273", "0.5253562", "0.5216328", "0.5201708", "0.516942", "0.5145164", "0.5136682", "0.5129746", "0.5129204", "0.51004493", "0.51001805", "0.50798154", "0.5076947", "0.50470406", "0.5015779", "0.49790123", "0.4978039", "0.49634004", "0.49537557", "0.49424738", "0.49383295", "0.49257368", "0.4924841", "0.48982713", "0.48819235", "0.48778608", "0.487595", "0.48641077", "0.48436454", "0.48345432", "0.4829086", "0.4813878", "0.47907", "0.47879246", "0.4776399", "0.47690973", "0.47681895", "0.47645968", "0.47534603", "0.47524613", "0.4747187", "0.47329575", "0.47121227", "0.47120684", "0.4711485", "0.47073495", "0.47057453", "0.46807504", "0.46698093", "0.4667155", "0.4660666", "0.46504992", "0.46490592", "0.4643662", "0.46416196", "0.46405357", "0.46322912", "0.46297848", "0.46271715", "0.46269995", "0.4612471", "0.46120113", "0.46050218", "0.46047527", "0.45888063", "0.45808417", "0.457988", "0.45793897", "0.45791492", "0.45742375", "0.45733374", "0.4559332", "0.45587233", "0.45561278", "0.45475936", "0.45396966", "0.45346144", "0.4532242", "0.4529797", "0.45295683", "0.45294207", "0.45280558", "0.45266503", "0.4525501", "0.4506917" ]
0.65916157
0
construct a map to store the mashaller type to cassandra data type mapping
protected Map<MarshallerType, AbstractType> getDefaultMarshallers(CfDef cfDef) throws IOException { Map<MarshallerType, AbstractType> marshallers = new EnumMap<MarshallerType, AbstractType>(MarshallerType.class); AbstractType comparator; AbstractType subcomparator; AbstractType default_validator; AbstractType key_validator; comparator = parseType(cfDef.getComparator_type()); subcomparator = parseType(cfDef.getSubcomparator_type()); default_validator = parseType(cfDef.getDefault_validation_class()); key_validator = parseType(cfDef.getKey_validation_class()); marshallers.put(MarshallerType.COMPARATOR, comparator); marshallers.put(MarshallerType.DEFAULT_VALIDATOR, default_validator); marshallers.put(MarshallerType.KEY_VALIDATOR, key_validator); marshallers.put(MarshallerType.SUBCOMPARATOR, subcomparator); return marshallers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n typeMapping.put(\"unsignedByte\", \"short\");\n typeMapping.put(\"short\", \"short\");\n typeMapping.put(\"unsignedShort\", \"int\");\n typeMapping.put(\"int\", \"int\");\n typeMapping.put(\"integer\", \"java.math.BigDecimal\");\n typeMapping.put(\"positiveInteger\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedInt\", \"java.math.BigInteger\");\n typeMapping.put(\"long\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedLong\", \"java.math.BigDecimal\");\n typeMapping.put(\"decimal\", \"java.math.BigDecimal\");\n typeMapping.put(\"string\", \"String\");\n typeMapping.put(\"hexBinary\", \"byte[]\");\n typeMapping.put(\"base64Binary\", \"byte[]\");\n typeMapping.put(\"dateTime\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"time\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"date\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonthDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYear\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYearMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"duration\", \"javax.xml.datatype.Duration\");\n typeMapping.put(\"NOTATION\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"QName\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"anyURI\", \"String\");\n typeMapping.put(\"Name\", \"String\");\n typeMapping.put(\"NCName\", \"String\");\n typeMapping.put(\"negativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"NMTOKEN\", \"String\");\n typeMapping.put(\"nonNegativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"nonPositiveInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"normalizedString\", \"String\");\n typeMapping.put(\"token\", \"String\");\n typeMapping.put(\"any\", \"Object\");\n\n return typeMapping;\n }", "private static void createTypeMap() {\n\n }", "Hashtable createTypeMapping()\n {\n Hashtable mapping = new Hashtable();\n \n mapping.put(TypeFactory.getType(\"Double\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"double\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"NonNegativeInteger\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return new StratmasIntegerParameter((StratmasInteger) o);\n }\n });\n // Ground type type hiearchy.\n mapping.put(TypeFactory.getType(\"anyType\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return null;\n }\n });\n\n return mapping;\n }", "@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "MappedDatatype createMappedDatatype();", "public static Map<String, Byte> genNameToTypeMap(){\n byte[] types = genAllTypes();\n String[] names = genAllTypeNames();\n Map<String, Byte> ret = new HashMap<String, Byte>();\n for(int i=0;i<types.length;i++){\n ret.put(names[i], types[i]);\n }\n return ret;\n }", "@Override\r\n\t\tpublic void setTypeMap(Map<String, Class<?>> map) throws SQLException {\n\t\t\t\r\n\t\t}", "public abstract Map<String, Integer> getColumnTypes(String tableName);", "public static Map<Byte, String> genTypeToNameMap(){\n byte[] types = genAllTypes();\n String[] names = genAllTypeNames();\n Map<Byte,String> ret = new HashMap<Byte, String>();\n for(int i=0;i<types.length;i++){\n ret.put(types[i], names[i]);\n }\n return ret;\n }", "Map<String, PrimitiveTypeProvider> convert(T data);", "public HashMap<String,HashSet<String>> loadTypes(String typeFromO1, String typeFromO2) throws Exception;", "private Map<String, Integer> getUserTableTypeMetaData(Connection conn, String name) throws SQLException{\n\t\t\n\t\tMap<String, Integer> colNameType = new HashMap<String, Integer>();\n\t\tPreparedStatement preparedStatement = conn.prepareStatement(TestCDTAnyDB.USER_TABLE_TYPE_QUERY);\n\t\tpreparedStatement.setString(1, name);\n\t\tResultSet rs = preparedStatement.executeQuery();\n\n\t while (rs.next()) {\n\t String colName = rs.getString(\"name\");\n\t String colType = rs.getString(\"type\");\n\t if (TYPE_MAPPING.get(colType) == null ) {\n\t \tLOG.error(\"SQL Server type \" + colType + \" hasn't been mapped in JDBC types \");\n\t \t//throw new Exception(\"wsef\");\n\t }\n\t colNameType.put(colName, TYPE_MAPPING.get(colType));\n\t }\n\t \n\t return colNameType;\t \n\t}", "private void initJavaType() { // FIXME move this logic to core module\n\t\tif (javaTypeMap == null) {\n\t\t\tjavaTypeMap = new TreeMap<String, List<String>>();\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"1\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tlist.add(\"java.sql.Date\");\n\t\t\tlist.add(\"java.sql.Time\");\n\t\t\tlist.add(\"java.sql.Timestamp\");\n\t\t\tlist.add(\"java.lang.Byte\");\n\t\t\tlist.add(\"java.lang.Short\");\n\t\t\tlist.add(\"java.lang.Integer\");\n\t\t\tlist.add(\"java.lang.Long\");\n\t\t\tlist.add(\"java.lang.Float\");\n\t\t\tlist.add(\"java.lang.Double\");\n\t\t\tlist.add(\"java.math.BigDecimal\");\n\t\t\tlist.add(\"byte\");\n\t\t\tlist.add(\"short\");\n\t\t\tlist.add(\"int\");\n\t\t\tlist.add(\"long\");\n\t\t\tlist.add(\"float\");\n\t\t\tlist.add(\"double\");\n\t\t\tjavaTypeMap.put(\"1\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"2\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.lang.Byte\");\n\t\t\tlist.add(\"java.lang.Short\");\n\t\t\tlist.add(\"java.lang.Integer\");\n\t\t\tlist.add(\"java.lang.Long\");\n\t\t\tlist.add(\"java.lang.Float\");\n\t\t\tlist.add(\"java.lang.Double\");\n\t\t\tlist.add(\"java.math.BigDecimal\");\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tlist.add(\"byte\");\n\t\t\tlist.add(\"short\");\n\t\t\tlist.add(\"int\");\n\t\t\tlist.add(\"long\");\n\t\t\tlist.add(\"float\");\n\t\t\tlist.add(\"double\");\n\t\t\tjavaTypeMap.put(\"2\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"3\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.sql.Date\");\n\t\t\tlist.add(\"java.sql.Time\");\n\t\t\tlist.add(\"java.sql.Timestamp\");\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tjavaTypeMap.put(\"3\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"4\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tjavaTypeMap.put(\"4\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"5\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tif (database != null) {\n\t\t\t\tString jdbcVersion = database.getDatabase().getServer().getJdbcDriverVersion();\n\t\t\t\tif (isAfterJdbc111(jdbcVersion)) {\n\t\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOIDImpl\");\t\t\t\t\t\n\t\t\t\t} else { \n\t\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOID\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOID\");\n\t\t\t}\n\t\t\t\n\t\t\tjavaTypeMap.put(\"5\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"6\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"cubrid.jdbc.driver.CUBRIDResultSet\");\n\t\t\tjavaTypeMap.put(\"6\", list);\n\t\t}\n\t}", "private static HashMap<String, GLSLMatrixType> createMatrixTypes() {\n HashMap<String, GLSLMatrixType> matrixTypes = new HashMap<String, GLSLMatrixType>();\n for (int x = 2; x <= 4; x++) {\n for (int y = 2; y <= 4; y++) {\n GLSLMatrixType matrixType = new GLSLMatrixType(x, y);\n matrixTypes.put(matrixType.getTypename(), matrixType);\n if (y == x) {\n matrixTypes.put(\"mat\" + x, matrixType);\n }\n }\n }\n\n return matrixTypes;\n }", "public TypeData getTypeData(MigrationType type);", "public Map<EntityMode,String> getTuplizerClassMap();", "private LinkedHashMap<String, Type> scalarMappingODU() {\r\n\t\tLinkedHashMap<String, Type> scalarMapping = new LinkedHashMap<String, Type>();\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODUID, StandardBasicTypes.LONG); // 0\r\n\t\tscalarMapping.put(DaoConstants.MAP_SITE_GROUP,\r\n\t\t\t\tStandardBasicTypes.STRING); // 1\r\n\t\tscalarMapping.put(DaoConstants.MAP_PARENT_CHILD,\r\n\t\t\t\tStandardBasicTypes.STRING); // 2\r\n\t\tscalarMapping.put(DaoConstants.MAP_NAME, StandardBasicTypes.STRING); // 3\r\n\t\tscalarMapping.put(DaoConstants.MAP_CENTRAL_ADDRESS,\r\n\t\t\t\tStandardBasicTypes.STRING); // 4\r\n\t\tscalarMapping.put(DaoConstants.MAP_PARENT_ID, StandardBasicTypes.LONG); // 5\r\n\t\tscalarMapping.put(DaoConstants.MAP_TYPE, StandardBasicTypes.STRING); // 6\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMAXLATITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 7\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMAXLONGITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 8\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMINLATITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 9\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGMINLONGITUDE,\r\n\t\t\t\tStandardBasicTypes.DOUBLE); // 10\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODU_SVG_PATH,\r\n\t\t\t\tStandardBasicTypes.STRING); // 11\r\n\t\tscalarMapping.put(DaoConstants.MAP_SEVERITY, StandardBasicTypes.STRING); // 12\r\n\t\tscalarMapping.put(DaoConstants.MAP_SLINKADD, StandardBasicTypes.STRING); // 13\r\n\t\tscalarMapping.put(DaoConstants.MAP_ALARM_CODE,\r\n\t\t\t\tStandardBasicTypes.STRING); // 14\r\n\t\tscalarMapping.put(DaoConstants.MAP_C2, StandardBasicTypes.DOUBLE); // 15\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Outdoor\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Temp\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_1, StandardBasicTypes.LONG); // 16\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_1\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_2, StandardBasicTypes.LONG); // 17\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_2\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_3, StandardBasicTypes.LONG); // 18\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs_3\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_4, StandardBasicTypes.LONG); // 19\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// PAC\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// CompressorWorkingHrs\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_5, StandardBasicTypes.LONG); // 20\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// EngineWorkingHrs\r\n\t\tscalarMapping\r\n\t\t\t\t.put(DaoConstants.MAP_THRESHOLD_6, StandardBasicTypes.LONG); // 21\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// NOT_IN_USE_EnginOilChange\r\n\t\tscalarMapping.put(DaoConstants.MAP_G44, StandardBasicTypes.STRING); // 22\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// GenerationPower\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGID, StandardBasicTypes.LONG); // 23\r\n\t\tscalarMapping.put(DaoConstants.MAP_SVGNAME, StandardBasicTypes.STRING); // 24\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS1, StandardBasicTypes.DOUBLE); // 25\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS2, StandardBasicTypes.DOUBLE); // 26\r\n\t\tscalarMapping.put(DaoConstants.MAP_VRFHRS3, StandardBasicTypes.DOUBLE); // 27\r\n\t\tscalarMapping.put(DaoConstants.MAP_PACHRS, StandardBasicTypes.DOUBLE); // 28\r\n\t\tscalarMapping.put(DaoConstants.MAP_GHPHRS, StandardBasicTypes.DOUBLE); // 29\r\n\t\tscalarMapping.put(DaoConstants.MAP_GHPOIL, StandardBasicTypes.DOUBLE); // 30\r\n\t\tscalarMapping.put(DaoConstants.MAP_SITEPATH, StandardBasicTypes.STRING); // 31\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPANYNAME,\r\n\t\t\t\tStandardBasicTypes.STRING); // 32\r\n\t\tscalarMapping.put(DaoConstants.MAP_CASTATUS, StandardBasicTypes.STRING); // 33\r\n\t\tscalarMapping.put(DaoConstants.MAP_V23, StandardBasicTypes.STRING); // 34\r\n\t\t// Demand\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR1,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 35\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR2,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 36\r\n\t\tscalarMapping.put(DaoConstants.MAP_COMPRESSOR3,\r\n\t\t\t\tStandardBasicTypes.BOOLEAN); // 37\r\n\t\t//add by shanf\r\n\t\tscalarMapping.put(DaoConstants.DEVICE_MODEL,\r\n\t\t\t\tStandardBasicTypes.STRING); // 38\r\n\r\n\t\treturn scalarMapping;\r\n\t}", "private static Map<Integer, Integer> unmapType(\n\t Map<Class<? extends TrackedMessage>, Map<Integer, Integer>> map,\n\t Class<? extends TrackedMessage> classType)\n\t throws NullPointerException {\n\tif ((null == map) || (null == classType))\n\t throw new NullPointerException(\"map or message cannot be null\");\n\n\tMap<Integer, Integer> dataMap = map.get(classType);\n\tif (null == dataMap) {\n\t dataMap = new HashMap<Integer, Integer>();\n\t map.put(classType, dataMap);\n\t}\n\n\treturn dataMap;\n }", "public Map<String, Integer> getColumnTypesForQuery(String query) {\n LOG.error(\"This database does not support free-form query column types.\");\n return null;\n }", "public Map<String, Integer> typesForColumns(List<TableRelation> relations){\n\t\tHashMap<String, Integer> colType = new HashMap<>();\n\t\tcolType.put(Heading.ID, Types.VARCHAR);\n\t\tcolType.put(Heading.TYPE, Types.VARCHAR);\n\t\tcolType.put(Heading.INDEX, Types.VARCHAR);\n\t\tfor(TableRelation table : relations){\n\t\t\tif(!tableColumnInfo.containsKey(table.getTable())) continue;\n\t\t\tcolType.putAll( tableColumnInfo.get(table.getTable()) );\n\t\t}\n\t\treturn colType;\n\t}", "private TypeMapper getTypeMapper() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn new ClosureUniqueIdTypeMapper(jprogram);\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn new StringTypeMapper(jprogram);\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? compilerContext.getMinimalRebuildCache().getTypeMapper()\n\t\t\t\t: new IntTypeMapper();\n\t}", "public String getCutypeMapping();", "public HashMap<String,HashSet<String>> loadTypes(String commonTypeInstanceFile) throws Exception;", "private static void initializeMap() {\n addressTypeToSerializerMap = new HashMap<>();\n addressTypeToSerializerMap.put(NoAddressAfi.VALUE, NoAddressSerializer.getInstance());\n addressTypeToSerializerMap.put(Ipv4Afi.VALUE, Ipv4Serializer.getInstance());\n addressTypeToSerializerMap.put(Ipv4BinaryAfi.VALUE, Ipv4BinarySerializer.getInstance());\n addressTypeToSerializerMap.put(Ipv4PrefixAfi.VALUE, Ipv4PrefixSerializer.getInstance());\n addressTypeToSerializerMap.put(Ipv4PrefixBinaryAfi.VALUE, Ipv4PrefixBinarySerializer.getInstance());\n addressTypeToSerializerMap.put(Ipv6Afi.VALUE, Ipv6Serializer.getInstance());\n addressTypeToSerializerMap.put(Ipv6BinaryAfi.VALUE, Ipv6BinarySerializer.getInstance());\n addressTypeToSerializerMap.put(Ipv6PrefixAfi.VALUE, Ipv6PrefixSerializer.getInstance());\n addressTypeToSerializerMap.put(Ipv6PrefixBinaryAfi.VALUE, Ipv6PrefixBinarySerializer.getInstance());\n addressTypeToSerializerMap.put(MacAfi.VALUE, MacSerializer.getInstance());\n addressTypeToSerializerMap.put(DistinguishedNameAfi.VALUE, DistinguishedNameSerializer.getInstance());\n addressTypeToSerializerMap.put(Lcaf.VALUE, LcafSerializer.getInstance());\n addressTypeToSerializerMap.put(AfiListLcaf.VALUE, AfiListSerializer.getInstance());\n addressTypeToSerializerMap.put(InstanceIdLcaf.VALUE, InstanceIdSerializer.getInstance());\n addressTypeToSerializerMap.put(ApplicationDataLcaf.VALUE, ApplicationDataSerializer.getInstance());\n addressTypeToSerializerMap.put(ExplicitLocatorPathLcaf.VALUE, ExplicitLocatorPathSerializer.getInstance());\n addressTypeToSerializerMap.put(SourceDestKeyLcaf.VALUE, SourceDestKeySerializer.getInstance());\n addressTypeToSerializerMap.put(KeyValueAddressLcaf.VALUE, KeyValueAddressSerializer.getInstance());\n addressTypeToSerializerMap.put(ServicePathLcaf.VALUE, ServicePathSerializer.getInstance());\n }", "protected abstract Map<String, Map<String, Object>> getData(String columnFamilyName);", "public abstract String toHiveType(int sqlType);", "Map<Class<?>, Object> yangAugmentedInfoMap();", "Map<Class<?>, Object> yangAugmentedInfoMap();", "private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\n\t}", "protected abstract Map<String, String> getColumnValueTypeOverrides();", "Map<ParameterInstance, SetType> getInstanceSetTypes();", "private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }", "ColumnMapping createColumnMapping(JavaTypeMapping mapping, Column column, String javaType);", "void setTypeMapper (TypeMapper typeMapper);", "public TypeMap(DecompilerLanguage lang, DataType d, String meta, boolean isChar,\n\t\t\t\tboolean isUtf) {\n\t\t\tdt = d;\n\t\t\tif (d instanceof BuiltIn) {\n\t\t\t\tname = ((BuiltIn) d).getDecompilerDisplayName(lang);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tname = d.getName();\n\t\t\t}\n\t\t\tmetatype = meta;\n\t\t\tthis.isChar = isChar;\n\t\t\tthis.isUtf = isUtf;\n\t\t\tid = hashName(name);\n\t\t}", "private void initSqlTypeMap() {\n\t\tif (sqlTypeMap == null) {\n\t\t\tsqlTypeMap = new TreeMap<String, String>();\n\t\t}\n\t\tsqlTypeMap.put(\"--void--\", \"0\");\n\t\tFieldHandlerUtils.initSqlTypeMap(sqlTypeMap);\n\t}", "DataType createDataType();", "private byte getMultHashMapTypeFromAtt(final Att item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn MultiHashMapDefinition.TYPE_STRING;\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn MultiHashMapDefinition.TYPE_INTEGER;\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn MultiHashMapDefinition.TYPE_FLOATING_POINT;\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn MultiHashMapDefinition.TYPE_BOOLEAN;\n \t\t}\n \n \t\t// outta here\n \t\treturn -1;\n \t}", "<T> DataFrame<R,C> mapToObjects(C colKey, Class<T> type, Function<DataFrameValue<R,C>,T> mapper);", "private static HashMap<String,String> buildColumnMap() {\n HashMap<String,String> map = new HashMap<String,String>();\n map.put( STATE_NAME, STATE_NAME );\n map.put( CAPITAL_NAME, CAPITAL_NAME );\n map.put( STATE_ABBR, STATE_ABBR );\n map.put( STATE_FOUNDING_DATE, STATE_FOUNDING_DATE );\n map.put( STATE_FUN_FACT, STATE_FUN_FACT );\n map.put( BaseColumns._ID, \"rowid AS \" +\n BaseColumns._ID );\n map.put( SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID, \"rowid AS \" +\n SearchManager.SUGGEST_COLUMN_INTENT_DATA_ID );\n map.put( SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, \"rowid AS \" +\n SearchManager.SUGGEST_COLUMN_SHORTCUT_ID );\n return map;\n }", "public interface MappingManager\r\n{\r\n public static final String METADATA_EXTENSION_INSERT_FUNCTION = \"insert-function\";\r\n public static final String METADATA_EXTENSION_UPDATE_FUNCTION = \"update-function\";\r\n public static final String METADATA_EXTENSION_SELECT_FUNCTION = \"select-function\";\r\n\r\n /**\r\n * Accessor for whether a java type is supported as being mappable.\r\n * @param javaTypeName The java type name\r\n * @return Whether the class is supported (to some degree)\r\n */\r\n boolean isSupportedMappedType(String javaTypeName);\r\n\r\n /**\r\n * Accessor for the JavaTypeMapping class for the supplied java type.\r\n * @param javaTypeName The java type name\r\n * @return The JavaTypeMapping class to use\r\n */\r\n Class<? extends JavaTypeMapping> getMappingType(String javaTypeName);\r\n\r\n /**\r\n * Method to create the column mapping for a java type mapping at a particular index.\r\n * @param mapping The java mapping\r\n * @param fmd MetaData for the field\r\n * @param index Index of the column\r\n * @param column The column\r\n * @return The column mapping\r\n */\r\n ColumnMapping createColumnMapping(JavaTypeMapping mapping, AbstractMemberMetaData fmd, int index, Column column);\r\n\r\n /**\r\n * Method to create the column mapping for a particular column and java type.\r\n * @param mapping The java mapping\r\n * @param column The column\r\n * @param javaType The java type (isn't this stored in the java mapping ?)\r\n * @return The column mapping\r\n */\r\n ColumnMapping createColumnMapping(JavaTypeMapping mapping, Column column, String javaType);\r\n\r\n /**\r\n * Accessor for a mapping, for a java type.\r\n * Same as calling \"getMapping(c, false, false, (String)null);\"\r\n * @param javaType The java type\r\n * @return The mapping\r\n */\r\n JavaTypeMapping getMapping(Class javaType);\r\n\r\n /**\r\n * Accessor for a mapping, for a java type.\r\n * @param javaType The java type\r\n * @param serialised Whether the type is serialised\r\n * @param embedded Whether the type is embedded\r\n * @param fieldName Name of the field (for logging only)\r\n * @return The mapping\r\n */\r\n JavaTypeMapping getMapping(Class javaType, boolean serialised, boolean embedded, String fieldName);\r\n\r\n /**\r\n * Accessor for a mapping, for a java type complete with the column mapping.\r\n * @param javaType The java type\r\n * @param serialised Whether the type is serialised\r\n * @param embedded Whether the type is embedded\r\n * @param clr ClassLoader resolver\r\n * @return The mapping\r\n */\r\n JavaTypeMapping getMappingWithColumnMapping(Class javaType, boolean serialised, boolean embedded, ClassLoaderResolver clr);\r\n\r\n /**\r\n * Accessor for the mapping for the field of the specified table.\r\n * Can be used for fields of a class, elements of a collection of a class, elements of an array of a class, keys of a map of a class, values of a map of a class. \r\n * This is controlled by the final argument \"roleForMember\".\r\n * @param table Table to add the mapping to\r\n * @param mmd MetaData for the field/property to map\r\n * @param clr The ClassLoaderResolver\r\n * @param fieldRole Role that this mapping plays for the field/property\r\n * @return The mapping for the field.\r\n */\r\n JavaTypeMapping getMapping(Table table, AbstractMemberMetaData mmd, ClassLoaderResolver clr, FieldRole fieldRole);\r\n\r\n /**\r\n * Method to create a column in a container (table).\r\n * @param mapping The java mapping\r\n * @param javaType The java type\r\n * @param datastoreFieldIndex The index of the column to create\r\n * @return The column\r\n */\r\n Column createColumn(JavaTypeMapping mapping, String javaType, int datastoreFieldIndex);\r\n\r\n /**\r\n * Method to create a column in a container (table).\r\n * To be used for serialised PC element/key/value in a join table.\r\n * @param mapping The java mapping\r\n * @param javaType The java type\r\n * @param colmd MetaData for the column to create\r\n * @return The column\r\n */\r\n Column createColumn(JavaTypeMapping mapping, String javaType, ColumnMetaData colmd);\r\n\r\n /**\r\n * Method to create a column for a persistable mapping.\r\n * @param fmd MetaData for the field\r\n * @param table Table in the datastore\r\n * @param mapping The java mapping\r\n * @param colmd MetaData for the column to create\r\n * @param referenceCol The column to reference\r\n * @param clr ClassLoader resolver\r\n * @return The column\r\n */\r\n Column createColumn(AbstractMemberMetaData fmd, Table table, JavaTypeMapping mapping, ColumnMetaData colmd, Column referenceCol, ClassLoaderResolver clr);\r\n}", "public void setMapType(int type) {\n if(internalNative != null) {\n internalNative.setMapType(type);\n }\n }", "public void save(int type, Map<CountKeys,CountValues> map) {\n\n\t\tfor(Iterator<Entry<CountKeys,CountValues>> it = map.entrySet().iterator();it.hasNext();) {\n\t\t\tEntry<CountKeys,CountValues> entry = it.next();\n//\t\t\tString sql = CountSQL.create(entry.getKey(), entry.getValue());\n\n\t\t\tCountKeys key = entry.getKey();\n\t\t\tString[] fileds = key.getFileds();\n\n\t\t\tif(\"hour\".equals(fileds[4])){\n\t\t\t\tSystem.out.println(\"[-- 插入cpc_hour开始 --]\");\n\t\t\t\tCpcHour cpc_hour = getCpcHour(entry.getKey(),entry.getValue());\n\t\t\t\tint insert = cpcHourMapper.insert(cpc_hour);\n\t\t\t\tif(insert<=0){\n\t\t\t\t\tLOG.error(\"insert fail result data is \"+insert);\n\t\t\t\t}else{\n\t\t\t\t\tLOG.info(\"insert cpc_hour success , result data is \"+ insert);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"[-- 插入cpc_hour结束 --]\");\n\t\t\t}else if(\"adplanid\".equals(fileds[12])){\n\t\t\t\tStringBuffer tablename = getCallbackTablename();\n\t\t\t\tSystem.out.println(\"[-- 插入\"+tablename+\"开始 --]\");\n\t\t\t\tCallbackTableDemo callback = getCallBackInstance(entry.getKey(),entry.getValue());\n\t\t\t\tint insert = callbackTableMapper.insert(tablename, callback);\n\t\t\t\tif(insert<=0){\n\t\t\t\t\tLOG.error(\"insert fail result data is \"+insert);\n\t\t\t\t}else{\n\t\t\t\t\tLOG.info(\"insert \"+tablename+\" success , result data is \"+ insert);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"[-- 插入\"+tablename+\"结束 --]\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"[-- 插入cpc_day开始 --]\");\n\t\t\t\tCpcDay cpc_day = getCpcDay(entry.getKey(),entry.getValue());\n\t\t\t\tint insert = cpcDayMapper.insert(cpc_day);\n\t\t\t\tif(insert<=0){\n\t\t\t\t\tLOG.error(\"insert fail result data is \"+insert);\n\t\t\t\t}else{\n\t\t\t\t\tLOG.info(\"insert cpc_day success , result data is \"+ insert);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"[-- 插入cpc_day结束 --]\");\n\t\t\t}\n\n//\t\t\tsaveSQL(dbname, sql);\n//\t\t\tint result = conn.update(sql, null);\n//\t\t\tif(result <= 0) {\n//\t\t\t\tsaveError(dbname, sql);\n//\t\t\t}\n//\t\t\tLOG.debug(\"report to database result : \"+result+\" sql : \" + sql);\n\n//\t\t\tif(keys == null){\n//\t\t\t\tkeys = entry.getKey();\n//\t\t\t}\n\t\t}\n//\t\tconn.close();\n\n//\t\tif(keys instanceof DetailHourKeys) {\n//\t\t\treportAdsHour(type, map);\n//\t\t\treportMediaHour(type, map);\n//\t\t\treportDetailDay(type, map);\n//\t\t\treportSumHour(type, map);\n//\t\t} else if(keys instanceof AdsHourKeys) {\n//\t\t\treportAdsDay(type, map);\n//\t\t} else if(keys instanceof MediaHourKeys) {\n//\t\t\treportMediaDay(type, map);\n//\t\t} else if(keys instanceof SumHourKeys) {\n//\t\t\treportSumDay(type, map);\n//\t\t}\n\t}", "private Map<String, PermissionType> getPermissionTypeMapForLabelToMaskChange() {\n\t\tMap<String, PermissionType> permissionTypeMap = new LinkedHashMap<String, PermissionType>();\n\n\t\tList<PermissionType> permissionTypes = permissionTypeRepo.findAll();\n\t\tfor (int i = 0; i < permissionTypes.size(); i++) {\n\t\t\tpermissionTypeMap.put(permissionTypes.get(i).getName(), permissionTypes.get(i));\n\t\t}\n\t\treturn permissionTypeMap;\n\t}", "public void testSimpleTypeMapping() throws MPXJException {\n TaskManager taskManager = getTaskManager();\n CustomPropertyDefinition col1 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(String.class), \"col1\", null);\n CustomPropertyDefinition col2 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Boolean.class), \"col2\", null);\n CustomPropertyDefinition col3 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Integer.class), \"col3\", null);\n CustomPropertyDefinition col4 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(Double.class), \"col4\", null);\n CustomPropertyDefinition col5 = taskManager.getCustomPropertyManager().createDefinition(\n CustomPropertyManager.PropertyTypeEncoder.encodeFieldType(GanttCalendar.class), \"col5\", null);\n\n Map<CustomPropertyDefinition, FieldType> mapping = CustomPropertyMapping.buildMapping(taskManager);\n assertEquals(TaskField.TEXT1, mapping.get(col1));\n assertEquals(TaskField.FLAG1, mapping.get(col2));\n assertEquals(TaskField.NUMBER1, mapping.get(col3));\n assertEquals(TaskField.NUMBER2, mapping.get(col4));\n assertEquals(TaskField.DATE1, mapping.get(col5));\n }", "private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }", "private Object deserializeMap(Object datum, Schema fileSchema, Schema mapSchema, MapTypeInfo columnType)\n throws AvroSerdeException {\n Map<String, Object> map = new HashMap<String, Object>();\n Map<CharSequence, Object> mapDatum = (Map)datum;\n Schema valueSchema = mapSchema.getValueType();\n TypeInfo valueTypeInfo = columnType.getMapValueTypeInfo();\n for (CharSequence key : mapDatum.keySet()) {\n Object value = mapDatum.get(key);\n map.put(key.toString(), worker(value, fileSchema == null ? null : fileSchema.getValueType(),\n valueSchema, valueTypeInfo));\n }\n\n return map;\n }", "BoltResultSetMetaData(List<Type> types, List<String> keys) {\n\t\tsuper(keys);\n\t\tthis.columnType = types.toArray(new Type[this.keys.size() + 1]);\n\n\t\t// we init columnType with the first record\n\t\t// in case first == last record\n\t\t/*for (int i = 1; i <= this.keys.size(); i++) {\n\t\t\tcolumnType[i] = this.getColumnDriverTypeOrDefault(i, InternalTypeSystem.TYPE_SYSTEM.STRING());\n\t\t}*/\n\t}", "MapBuilder<K,V> segmentType(SegmentTypes segmentType);", "Column createColumn(JavaTypeMapping mapping, String javaType, int datastoreFieldIndex);", "public DataMapping(String name, ElasticDataType type) {\n this(name, name, type);\n }", "InfiniteMap<K,V> build(MapTypes type);", "private static void initializeDatafields(Class<AbstractNode> type) throws Exception {\r\n if (staticDatafieldMap == null) {\r\n staticDatafieldMap = new HashMap<Class<AbstractNode>, Set<String>>();\r\n }\r\n\r\n if (staticDatafieldMap.get(type) == null) {\r\n staticDatafieldMap.put(type, Information.getDatafieldsOfNode(type));\r\n }\r\n }", "public Hashtable getTypeMapping()\n {\n return this.typeMapping;\n }", "private static void initialize_sensorTypeToWrapperDataFormat() {\n\t\tsensorTypeToWrapperDataFormat.put(\"weather\", \"XML/JSON\");\n\t\tsensorTypeToWrapperDataFormat.put(\"traffic\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"roadactivity\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"snowfall\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"snowdepth\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"webcam\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"radar\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"satellite\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"sealevel\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"cosm\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"bikehire\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"railwaystation\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"ADSBHub\", \"Stream\");\n\t}", "MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "public <K> Map<K, JAVATYPE> convertMap(Map<K, JAVATYPE> oldMap, final METATYPE meta);", "static Map instanceOfMap(int typeMap)\n {\n if(instanceOfMap==null)\n instanceOfMap = new Map(typeMap);\n return instanceOfMap;\n }", "@Override\r\n\tpublic ResultBean SaveOrUpdatetype(Map<String, String> map) {\n\t\tResultBean resultBean = new ResultBean();\r\n\t\ttry {\r\n\t\t\tCodeType codeType = new CodeType();\r\n\t\t\tcodeType.setCodetype(\"\"+MapUtils.getInteger(map, \"codetype\"));\r\n\t\t\tif(!(\"\").equals(MapUtils.getString(map, \"id\",\"\"))){\r\n\t\t\t\tcodeType.setId(MapUtils.getInteger(map, \"id\"));\r\n\t\t\t}\r\n\t\t\tcodeType.setCodedescription(MapUtils.getString(map, \"codedescription\"));\r\n\t\t\tif(codeMasterService.IsEcho(codeType)){\r\n\t\t\t\tcodeMasterService.updateType(codeType);\r\n\t\t\t\tresultBean.setSuccess(true);\r\n\t\t\t}else{\r\n\t\t\t\tresultBean.setSuccess(false);\r\n\t\t\t\tresultBean.setMsg(\"此代码类型编号重复\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tresultBean.setSuccess(false);\r\n\t\t\tresultBean.setMsg(e.getMessage());\r\n\t\t}\r\n\t\treturn resultBean;\r\n\t}", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default Map<String, IData> asMap() {\n \n return notSupportedCast(\"IData[string]\");\n }", "Rule MapType() {\n // Push 1 MapTypeNode onto the value stack\n return Sequence(\n \"map \",\n Optional(CppType()),\n \"<\",\n FieldType(),\n \", \",\n FieldType(),\n \"> \",\n actions.pushMapTypeNode());\n }", "default void putDataType(DataTypeName id, DataType dataType) {}", "private GSC_DataType( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( intValue ), this );\n }", "public TypeMapping getTypeMapping()\n {\n return this.javaToXSD.getSchemaCreator().getTypeMapping();\n }", "private ColumnsForType buildCache(String type) {\r\n\t\t// Using a set to ensure we only add columns once.\r\n\t\tHashSet<String> usedKeySet = new HashSet<String>();\r\n\t\t// First add all of the default columns for this type.\r\n\t\tList<String> defaultColumns = getDefaultColumnIds(type);\r\n\t\t// We must have default columns\r\n\t\tif(defaultColumns == null) throw new IllegalArgumentException(\"Cannot find any default columns for type: \"+type);\r\n\t\tList<String> additionatlColumns = getAdditionalColumnIds(type);\r\n\t\t// Additional columns is optional\r\n\t\tif(additionatlColumns == null){\r\n\t\t\tadditionatlColumns = new LinkedList<String>();\r\n\t\t}\r\n\t\tList<HeaderData> defaultHeaders = new LinkedList<HeaderData>();\r\n\t\tList<HeaderData> additionalHeaders = new LinkedList<HeaderData>();\r\n\r\n\t\t// First the defaults\r\n\t\tfor(String id: defaultColumns){\r\n\t\t\tHeaderData column = this.map.get(id);\r\n\t\t\tif(column == null) throw new IllegalArgumentException(\"Unknown column id: \"+id);\r\n\t\t\tif(!usedKeySet.contains(id)){\r\n\t\t\t\tusedKeySet.add(id);\r\n\t\t\t\tdefaultHeaders.add(column);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Now add any additional that is not on the list\r\n\t\tfor(String id: additionatlColumns){\r\n\t\t\tHeaderData column = this.map.get(id);\r\n\t\t\tif(column == null) throw new IllegalArgumentException(\"Unknown column id: \"+id);\r\n\t\t\tif(!usedKeySet.contains(id)){\r\n\t\t\t\tusedKeySet.add(id);\r\n\t\t\t\tadditionalHeaders.add(column);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new ColumnsForType(type, defaultHeaders, additionalHeaders);\r\n\t}", "public Map<String, String> getColumnsMap() {\n\t\treturn columnsVsDataTypeMap;\n\t}", "protected abstract DTDataTypes52 getDataType(C column);", "Type getForPersistentMapping_Type() {\n return type;\n }", "private static Map<String, ColumnMetaData> buildColumnMetadataMap(ResultSet rs) {\n\t\t/*\n\t\t * LinkedHashmap to preserve key traversal order.\n\t\t * Important as we output rows as arrays of values where the index position in\n\t\t * the row implicitly corresponds to the entry order of the column map.\n\t\t * Reason for this is performance. \n\t\t */\n\t\tMap<String, ColumnMetaData> columnMap = Maps.newLinkedHashMap();\n\t\ttry {\n\t\t\tResultSetMetaData rmd = rs.getMetaData();\n\t\t\tfor (int i=1; i<= rmd.getColumnCount(); i++) {\n\t\t\t\tColumnMetaData cmd = \n\t\t\t\t\tnew ColumnMetaData(rmd.getColumnName(i), rmd.getColumnTypeName(i));\n\t\t\t\tcolumnMap.put(cmd.columnName, cmd);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tThrowables.propagate(e);\n\t\t}\n\t\treturn columnMap;\n\t}", "protected Map createMapMatchingType(MappingContext mappingContext) {\n Class<?> mapType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (mapType.isAssignableFrom(LinkedHashMap.class)) {\n return new LinkedHashMap();\n } else if (mapType.isAssignableFrom(TreeMap.class)) {\n return new TreeMap();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported map type '\" + mapType + \"'\");\n }\n }", "private static Map<String, Object> parseRelToType(RelToType r) {\n\t\tMap<String, Object> result = new HashMap<>();\n\t\tString clazz = r.getClazz();\n\t\t// System.out.println(\"\\t\\t\\tclazz: \" + clazz);\n\t\tresult.put(\"clazz\", clazz);\n\t\tString scheme = r.getScheme();\n\t\t// System.out.println(\"\\t\\t\\tscheme: \" + scheme);\n\t\tresult.put(\"scheme\", scheme);\n\t\tString type = r.getType();\n\t\t// System.out.println(\"\\t\\t\\ttype: \" + type);\n\t\tresult.put(\"type\", type);\n\t\tString v = r.getValue();\n\t\t// System.out.println(\"\\t\\t\\tv: \" + v);\n\t\tresult.put(\"value\", v);\n\t\treturn result;\n\n\t}", "DatatypesType createDatatypesType();", "Column createColumn(JavaTypeMapping mapping, String javaType, ColumnMetaData colmd);", "void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }", "private Type mapType(TypeResponse typeResponse) {\n return new Type(typeResponse.getType(), typeResponse.getId());\n }", "private static String getColumnClassDataType (String windowName2) {\n\r\n\t\tString classType = \"@Override \\n public Class getColumnClass(int column) { \\n switch (column) {\\n\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tclassType = classType + \" case \" + i + \":\\n\";\r\n\t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Boolean\")) {\r\n\t\t\t\tclassType = classType + \" return Boolean.class; \\n\";\r\n\t\t\t} else \tif(mp.getColumnDataType().equalsIgnoreCase(\"Integer\")) {\r\n\t\t\t\tclassType = classType + \" return Integer.class; \\n\";\r\n\t\t\t} else \t\t\tif(mp.getColumnDataType().equalsIgnoreCase(\"Double\")) {\r\n\t\t\t\tclassType = classType + \" return Double.class; \\n\";\r\n\t\t\t} else {\r\n\t\t\t\tclassType = classType + \" return String.class; \\n\";\r\n\t\t\t}\r\n\t\t\r\n \r\n\r\n\t\t}\r\n\t\tclassType = classType + \" default: \\n return String.class;\\n }\\n}\";\r\n\t\treturn classType;\r\n\t}", "private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}", "private void generateCoreTypes() {\n\t\tvoidDt = new VoidDataType(progDataTypes);\n\t\tArrayList<TypeMap> typeList = new ArrayList<>();\n\t\ttypeList.add(new TypeMap(DataType.DEFAULT, \"undefined\", \"unknown\", false, false));\n\n\t\tfor (DataType dt : Undefined.getUndefinedDataTypes()) {\n\t\t\ttypeList.add(new TypeMap(displayLanguage, dt, \"unknown\", false, false));\n\t\t}\n\t\tfor (DataType dt : AbstractIntegerDataType.getSignedDataTypes(progDataTypes)) {\n\t\t\ttypeList.add(\n\t\t\t\tnew TypeMap(displayLanguage, dt.clone(progDataTypes), \"int\", false, false));\n\t\t}\n\t\tfor (DataType dt : AbstractIntegerDataType.getUnsignedDataTypes(progDataTypes)) {\n\t\t\ttypeList.add(\n\t\t\t\tnew TypeMap(displayLanguage, dt.clone(progDataTypes), \"uint\", false, false));\n\t\t}\n\t\tfor (DataType dt : AbstractFloatDataType.getFloatDataTypes(progDataTypes)) {\n\t\t\ttypeList.add(new TypeMap(displayLanguage, dt, \"float\", false, false));\n\t\t}\n\n\t\ttypeList.add(new TypeMap(DataType.DEFAULT, \"code\", \"code\", false, false));\n\n\t\t// Set \"char\" datatype\n\t\tDataType charDataType = new CharDataType(progDataTypes);\n\n\t\tString charMetatype = null;\n\t\tboolean isChar = false;\n\t\tboolean isUtf = false;\n\t\tif (charDataType instanceof CharDataType && ((CharDataType) charDataType).isSigned()) {\n\t\t\tcharMetatype = \"int\";\n\t\t}\n\t\telse {\n\t\t\tcharMetatype = \"uint\";\n\t\t}\n\t\tif (charDataType.getLength() == 1) {\n\t\t\tisChar = true;\n\t\t}\n\t\telse {\n\t\t\tisUtf = true;\n\t\t}\n\t\ttypeList.add(new TypeMap(displayLanguage, charDataType, charMetatype, isChar, isUtf));\n\n\t\t// Set up the \"wchar_t\" datatype\n\t\tWideCharDataType wideDataType = new WideCharDataType(progDataTypes);\n\t\ttypeList.add(new TypeMap(displayLanguage, wideDataType, \"int\", false, true));\n\n\t\tif (wideDataType.getLength() != 2) {\n\t\t\ttypeList.add(new TypeMap(displayLanguage, new WideChar16DataType(progDataTypes), \"int\",\n\t\t\t\tfalse, true));\n\t\t}\n\t\tif (wideDataType.getLength() != 4) {\n\t\t\ttypeList.add(new TypeMap(displayLanguage, new WideChar32DataType(progDataTypes), \"int\",\n\t\t\t\tfalse, true));\n\t\t}\n\n\t\tDataType boolDataType = new BooleanDataType(progDataTypes);\n\t\ttypeList.add(new TypeMap(displayLanguage, boolDataType, \"bool\", false, false));\n\n\t\tcoreBuiltin = new TypeMap[typeList.size()];\n\t\ttypeList.toArray(coreBuiltin);\n\t}", "private static String mapType(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"Date\";\n case INTEGER:\n return \"Integer\";\n case REAL:\n return \"Double\";\n case STRING:\n return \"String\";\n default:\n return null;\n }\n }", "private static void mapDbNames()\r\n { \r\n if (dbMap == null) {\r\n dbMap = new HashMap<String, String>();\r\n dbMap.put(\"tuition\", \"tuition\");\r\n dbMap.put(\"utilities\", \"utilities\");\r\n dbMap.put(\"fuel\", \"gas\");\r\n dbMap.put(\"registration\", \"Vehicle Registration\");\r\n dbMap.put(\"repair\", \"car repair\");\r\n dbMap.put(\"clothing\", \"clothing\");\r\n // maps asst types to the way they're currently in the database\r\n // used in the where clause for where tcf_assistance.description = ?\r\n }\r\n }", "public abstract Map<String, Serializable> toMap();", "public interface TypeMapper {\n public <T> T sqlToJtype(Object sqlValue, Class<T> jType);\n public <T> T jToSql(Object jValue, String sqlType);\n}", "public static void convertRsToMap(ResultSet rs,Map<String,Object> map) throws SQLException{\n\t\tResultSetMetaData rsMeta = rs.getMetaData();\r\n\t\tint columnCount = rsMeta.getColumnCount();\r\n\t\t\r\n\t\tfor(int i = 1; i <= columnCount; i++){\r\n\t\t\tString key = rsMeta.getColumnLabel(i).toLowerCase();\r\n\t\t\t\r\n\t\t\tObject value = rs.getObject(key);\r\n\t\t\t\r\n\t\t\t//if(value instanceof oracle.sql.DATE){\r\n\t\t\t//\tvalue = new java.sql.Date(((oracle.sql.DATE)value).timestampValue().getTime());\r\n\t\t\t//}else if(value instanceof oracle.sql.TIMESTAMP){\r\n\t\t\t//\tvalue = new java.sql.Timestamp(((oracle.sql.TIMESTAMP)value).timestampValue().getTime());\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tmap.put(key, value);\r\n\t\t}\r\n\t}", "private void convert(Map map) {\n if (map == null)\n return;\n\n for (Object key : valueTypes.keySet()) {\n MessagePackObject mpo = (MessagePackObject) map.get(key);\n if (mpo != null)\n map.put(key, mpo.convert(Templates.tNullable(\n TemplateRegistry.lookup(valueTypes.get(key)))));\n }\n\n }", "public synchronized static void internal_updateKnownTypes() {\r\n Set<ChangeLogType> changeLogTypes = GrouperDAOFactory.getFactory().getChangeLogType().findAll();\r\n GrouperCache<MultiKey, ChangeLogType> newTypes = new GrouperCache<MultiKey, ChangeLogType>(\r\n ChangeLogTypeFinder.class.getName() + \".typeCache\", 10000, false, 60*10, 60*10, false);\r\n \r\n Map<String, ChangeLogType> newTypesById = new HashMap<String, ChangeLogType>();\r\n \r\n for (ChangeLogType changeLogType : GrouperUtil.nonNull(changeLogTypes)) {\r\n newTypes.put(new MultiKey(changeLogType.getChangeLogCategory(), changeLogType.getActionName()), changeLogType);\r\n newTypesById.put(changeLogType.getId(), changeLogType);\r\n }\r\n \r\n //add builtins if necessary\r\n internal_updateBuiltinTypesOnce(newTypes, newTypesById);\r\n \r\n types = newTypes;\r\n typesById = newTypesById;\r\n }", "JavaTypeMapping getMappingWithColumnMapping(Class javaType, boolean serialised, boolean embedded, ClassLoaderResolver clr);", "private String mapIndexType(int type) {\n\t\tString indexType = null;\n\t\tswitch (type) {\n\t\tcase 0:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_HEAP;\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_CLUSTERED;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_NONCLUSTERED;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_XML;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tindexType = BpmFormTableIndex.INDEX_TYPE_SPATIAL;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn indexType;\n\t}", "synchronized public Map<String, Set<String>> getTypes() {\n return Collections.unmodifiableMap(\n new HashSet<>(types.entrySet()).stream()\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> Collections.unmodifiableSet(new HashSet<>(e.getValue()))\n ))\n );\n }", "public static LinkedHashMap<String,Class<?>> getNodeAttributesMap() {\r\n\t\tLinkedHashMap<String, Class<?>> map= new LinkedHashMap<String, Class<?>>();\r\n\t\tmap.put(uri, String.class);\r\n//\t\tmap.put(canonicalName, String.class);\r\n//\t\tmap.put(category , String.class);\r\n\t\tmap.put(scope,String.class);\r\n\t\tmap.put(segment,String.class);\r\n//\t\tmap.put(numInteractionEdges,Integer.class);\r\n//\t\tmap.put(numSubsumptionEdges,Integer.class);\r\n\t\tmap.put(timestamp,String.class);\r\n\t\tmap.put(modificationDate,String.class);\r\n\t\tmap.put(marked,Boolean.class);\r\n\t\tmap.put(nodeTypeURI, String.class);\r\n\t\t\r\n\t\tmap.put(GO_BIOLOGICAL_PROCESS, List.class);\r\n\t\tmap.put(GO_CELLULAR_COMPONENT, List.class);\r\n\t\tmap.put(GO_MOLECULAR_FUNCTION, List.class);\r\n\t\t\r\n\t\t//GO\r\n//\t\tmap.put(AddGOAnnotations.GO_BIOLOGICAL_PROCESS, String.class);\r\n//\t\tmap.put(AddGOAnnotations.GO_CELLURAL_COMPONENT, String.class);\r\n//\t\tmap.put(AddGOAnnotations.GO_MOLECULAR_FUNCTION, String.class);\r\n\t\t\r\n\t\treturn map;\r\n\t}", "void constructMap(JsonArray array)\n {\n JsonObject obj = array.get(0).getAsJsonObject();\n\n // Loop on them\n for(Map.Entry<String, JsonElement> entry : obj.entrySet())\n {\n String key = entry.getKey(); // ID:TYPE\n if(!(key.matches(\"(\\\\d+):([A-Z_]+)\")))\n continue;\n\n String[] split = key.split(\":\");\n long id = Long.parseLong(split[0]);\n CodeType type = remapLegacyCodeType(split[1]);\n\n Map<CodeType, Map<String, String>> userMap = map.getOrDefault(id, new HashMap<>());\n Map<String, String> codesForTypeMap = userMap.getOrDefault(type, new HashMap<>());\n\n for(Map.Entry<String, JsonElement> code : entry.getValue().getAsJsonObject().entrySet())\n codesForTypeMap.put(code.getKey(), code.getValue().getAsString());\n\n userMap.put(type, codesForTypeMap);\n map.put(id, userMap);\n }\n\n array.remove(obj); // Remove the codes object\n }", "void setDataType(int type );", "@Test\n public void testAlteringUserTypeNestedWithinMap() throws Throwable\n {\n String[] columnTypePrefixes = {\"frozen<map<text, \", \"map<text, frozen<\"};\n for (String columnTypePrefix : columnTypePrefixes)\n {\n String ut1 = createType(\"CREATE TYPE %s (a int)\");\n String columnType = columnTypePrefix + KEYSPACE + \".\" + ut1 + \">>\";\n\n createTable(\"CREATE TABLE %s (x int PRIMARY KEY, y \" + columnType + \")\");\n\n execute(\"INSERT INTO %s (x, y) VALUES(1, {'firstValue':{a:1}})\");\n assertRows(execute(\"SELECT * FROM %s\"), row(1, map(\"firstValue\", userType(1))));\n flush();\n\n execute(\"ALTER TYPE \" + KEYSPACE + \".\" + ut1 + \" ADD b int\");\n execute(\"INSERT INTO %s (x, y) VALUES(2, {'secondValue':{a:2, b:2}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(3, {'thirdValue':{a:3}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(4, {'fourthValue':{b:4}})\");\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n\n flush();\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n }\n }", "<T> DataFrame<R,C> mapToObjects(Class<T> type, Function<DataFrameValue<R,C>,T> mapper);", "@Override\n protected final Map<String, String> createFieldToPropertyMapping() {\n // get super class mapping\n final Map<String, String> mapping = super.createFieldToPropertyMapping();\n \n mapping.put(this.tableName + \".rmres_id\", \"id\");\n mapping.put(this.tableName + \".cost_rmres\", \"cost\");\n mapping.put(this.tableName + \".config_id\", \"configId\");\n mapping.put(this.tableName + \".rm_arrange_type_id\", \"arrangeTypeId\");\n mapping.put(this.tableName + \".guests_external\", \"externalGuests\");\n mapping.put(this.tableName + \".guests_internal\", \"internalGuests\");\n \n return mapping;\n }", "private IMapData<Integer, String> getLinkedHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"c\"),\n KeyValueNode.make(1, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public FlexData(Type type) {\n entryCollectionList = null;\n entryCollectionMap = null;\n this.type = type;\t\t\n standardDateFormat = \"yyyy-MM-dd\"; // DB2-Datum\n\t}", "private static void initialize_sensorTypeToTableProperties() {\n\t\tinitialized_LinkType();\n\t\tinitialized_RoadActivitysType();\n\t\tinitialized_SealevelType();\n\t\tinitialized_SnowDepthType();\n\t\tinitialized_SnowFallType();\n\t\tinitialized_TrafficType();\n\t\tinitialized_WeatherType();\n\t\tinitialized_BikeHireType();\n\t\tinitialized_RailwayStationType();\n\t\tinitialized_ADSBHubType();\n\t}", "public void setCutypeMapping(final String val);", "public BeanMapHandler(Class<V> type, RowProcessor convert) {\n this(type, convert, 1, null);\n }", "@SuppressWarnings(\"unchecked\")\n public static JvmMetadata fromMap(Map<String, Object> map) {\n JvmMetadata metadata = new JvmMetadata();\n Metadata.fillFromMap(metadata, map);\n metadata.jvmClasses.addAll((List<JvmClass>) map.get(JvmClass.class.getSimpleName()));\n metadata.jvmFields.addAll((List<JvmField>) map.get(JvmField.class.getSimpleName()));\n metadata.jvmMethods.addAll((List<JvmMethod>) map.get(JvmMethod.class.getSimpleName()));\n metadata.jvmVariables.addAll((List<JvmVariable>) map.get(JvmVariable.class.getSimpleName()));\n metadata.jvmInvocations.addAll((List<JvmMethodInvocation>) map.get(JvmMethodInvocation.class.getSimpleName()));\n metadata.jvmHeapAllocations.addAll((List<JvmHeapAllocation>) map.get(JvmHeapAllocation.class.getSimpleName()));\n metadata.usages.addAll((List<Usage>) map.get(Usage.class.getSimpleName()));\n metadata.jvmStringConstants.addAll((List<JvmStringConstant>) map.get(JvmStringConstant.class.getSimpleName()));\n metadata.aliases.addAll((List<SymbolAlias>) map.get(SymbolAlias.class.getSimpleName()));\n return metadata;\n }", "public String toXML() {\n StringBuffer ret = new StringBuffer();\n ret.append(\"<table name=\\\"MTBTypes\\\">\\n\");\n ret.append(\" <column name=\\\"_MTBTypes_key\\\"\\n\");\n ret.append(\" value=\\\"\").append((MTBTypesKey_is_initialized ? ((MTBTypesKey == null ? null : MTBTypesKey.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"type\\\"\\n\");\n ret.append(\" value=\\\"\").append((type_is_initialized ? ((type == null ? null : type)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"description\\\"\\n\");\n ret.append(\" value=\\\"\").append((description_is_initialized ? ((description == null ? null : description)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"tableName\\\"\\n\");\n ret.append(\" value=\\\"\").append((tableName_is_initialized ? ((tableName == null ? null : tableName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"columnName\\\"\\n\");\n ret.append(\" value=\\\"\").append((columnName_is_initialized ? ((columnName == null ? null : columnName)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((createUser_is_initialized ? ((createUser == null ? null : createUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"create_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((createDate_is_initialized ? ((createDate == null ? null : createDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_user\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateUser_is_initialized ? ((updateUser == null ? null : updateUser)) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\" <column name=\\\"update_date\\\"\\n\");\n ret.append(\" value=\\\"\").append((updateDate_is_initialized ? ((updateDate == null ? null : updateDate.toString())) : \"[not initialized]\")).append(\"\\\"/>\\n\");\n ret.append(\"</table>\");\n return ret.toString();\n }" ]
[ "0.70021963", "0.65343326", "0.6499513", "0.64210683", "0.63529474", "0.6243956", "0.6232435", "0.6198081", "0.6103721", "0.60057974", "0.59868276", "0.58789134", "0.5867471", "0.58364445", "0.57318395", "0.5716134", "0.57043743", "0.5700592", "0.568911", "0.5639885", "0.5622704", "0.5603831", "0.5597005", "0.55921733", "0.5569044", "0.5548087", "0.55361885", "0.55361885", "0.551572", "0.546463", "0.5433722", "0.5427481", "0.54125285", "0.53863585", "0.5384988", "0.53782827", "0.5352007", "0.5350222", "0.53499764", "0.5331737", "0.5299945", "0.5283128", "0.526233", "0.5248538", "0.5224459", "0.5216613", "0.5209672", "0.5194548", "0.5191027", "0.51901174", "0.5183531", "0.51761657", "0.5166328", "0.51651025", "0.51636887", "0.51509666", "0.5149383", "0.5146953", "0.5139679", "0.5125667", "0.51211584", "0.5117994", "0.5091679", "0.50894916", "0.50867605", "0.5082618", "0.5080094", "0.5068304", "0.5067184", "0.5066342", "0.50645673", "0.50552446", "0.50532126", "0.50286037", "0.50253993", "0.5025338", "0.5024165", "0.5024046", "0.50174445", "0.50084674", "0.5004665", "0.49989232", "0.49968272", "0.49923858", "0.49919525", "0.4987284", "0.49758354", "0.4971152", "0.49608722", "0.49538818", "0.49533564", "0.49524567", "0.4947286", "0.49307826", "0.49288243", "0.49280316", "0.49275285", "0.4924909", "0.49227503", "0.49171445", "0.49170735" ]
0.0
-1
Execute toString on every object stored on page.
@Override public String toString() { StringBuilder stb = new StringBuilder(); for (int i = 0; i < elements.size(); i++) { stb.append("Element " + i + ":" + elements.get(i) + " "); } return stb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String toString()\r\n {\r\n return \"Page \"+name;\r\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor(GameObject object : this.objects) {\r\n\t\t\tsb.append(object.toString() + \"\\n\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "private void addToString(JavaObject object) {\n\t\tToStringMethod method = new ToStringBuilderMethod(getFields());\n\t\tobject.addBlock(method);\n\t}", "public void dump() {\n for(Object object : results) {\n System.out.println( object );\n }\n }", "public String toString(){\n String pileString = \"\";\n\n for(int i = 0; i < this.nbObj; i++)\n {\n pileString += i + \": \" + this.objTab[i].toString() + \"\\n\";\n }\n pileString += \"End of Stack\";\n return pileString;\n }", "public String toString()\n {\n return getHtml();\n }", "@Override\n public String toString() {\n return stringBuilder.toString() + OBJECT_SUFFIX;\n }", "public String toString(){\n return XMLParser.parseObject(this);\n }", "public void print(){\r\n System.out.println(toString());\r\n }", "private String getObjectString()\n {\n String returnString = \"Objects:\\n\\t\";\n Set<String> keys = items.keySet();\n if(items.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String item : keys) {\n returnString += \" [\" + item + \"]\";\n }\n return returnString;\n }", "@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}", "public void println() { System.out.println( toString() ); }", "void printObjects(){\r\n\t\tIterator iterator = gc.getIterator();\r\n\t while(iterator.hasNext()){\r\n\t\t GameObject g = iterator.getNext();\r\n\t\t\t if (!(g instanceof Bar))System.out.println(g.toString());\r\n\t\t}\r\n\t}", "public String toString() {\n // PUT YOUR CODE HERE\n }", "public String printToList() {\n\t\tif (hierarchy.equals(\"n\")) {\n\t\t\treturn \"<HTML>\" + visability + \" class \" + className\n\t\t\t\t\t+ \"{ <BR> <BR>\";\n\t\t} else if (isFinished == true) {\n\n\t\t\treturn \"}\";\n\t\t} else {\n\t\t\treturn \"<HTML>\" + visability + \" \" + hierarchy + \" class \"\n\t\t\t\t\t+ className + \"{ <BR> <BR>\";\n\t\t}\n\t}", "public String toString(){\n String html = \"<html>\\n<head>\\n</head>\\n<body>\";\n for (int i=0; i< dom.size(); i++){\n html+= dom.get(i);\n }\n /* TODO\nLoop through the elemments of the dom and append them to html */\n return html+\"</body>\\n</html>\";\n }", "public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "void retrievePageContents()\n\t{\n\t\tStringBuilder longString = new StringBuilder();\n\t\tfor (int i = 0; i < pageContents.size(); i++)\n\t\t{\n\t\t\tlongString.append(pageContents.get(i));\n\t\t}\n\t\tString pageMarkup = longString.toString().toLowerCase();\n\t\textractComments(pageMarkup);\n\n\t}", "public void printElements() {\r\n for (int i = 0; i < pageList.size(); i++) {\r\n System.out.println(i + \" : \" + pageList.get(i));\r\n }\r\n }", "@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }", "@Override\n public String toString(){\n StringBuffer result = new StringBuffer();\n \n for (Movable m: things){\n result.append(m.toString()).append(\"\\n\");\n }\n return result.toString().trim();\n }", "@Override String toString();", "@Override public String toString();", "public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}", "@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "public String toString() ;", "@Override\n\tpublic abstract String toString ();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getOperations() != null)\n sb.append(\"Operations: \").append(getOperations()).append(\",\");\n if (getNextPageMarker() != null)\n sb.append(\"NextPageMarker: \").append(getNextPageMarker());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n\tpublic abstract String toString();", "public String toString() { return stringify(this, true); }", "public void print(Object obj) {\n print(obj.toString());\n }", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "public void print(StringBuffer toStringBuffer) {\n\tsuper.print(toStringBuffer);\n if (hasWebServices()) {\n for (Iterator itr = getWebServices().iterator();itr.hasNext();) {\n WebService aWebService = (WebService) itr.next();\n toStringBuffer.append(\"\\n Web Service : \");\n aWebService.print(toStringBuffer);\n }\n }\n }", "@Override\n String toString();", "@Override\n String toString();", "@Override\r\n String toString();", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }", "public String toString(Object o) { return Objects.toString(o,null); }", "@Override\n public String toString() {\n return Objects.toStringHelper(this)\n .addValue(this.id)\n .addValue(this.name)\n .addValue(this.author)\n .addValue(this.description)\n .addValue(this.pictureOfCover)\n .toString();\n }", "@Override\r\n\tpublic String toString();", "public String callObjectToString(Object foo) {\n\treturn foo.toString();\n }", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "@Override\r\n public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "@Override\n public String toString();", "@Override\n public String toString();", "@Override\n\tpublic String toString()\n\t{\n\t\t//Builds the html looking string.\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"<\").append(type.toString().toLowerCase());\n\t\tfor(Entry<String, String> attrEntry : attributes.entrySet())\n\t\t{\n\t\t\tbuilder.append(\" \")\n\t\t\t\t.append(attrEntry.getKey())\n\t\t\t\t.append(\"=\")\n\t\t\t\t.append(attrEntry.getValue());\n\t\t}\n\t\tbuilder.append(\">\");\n\t\tif(getText() != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n\").append(getText()).append(\"\\n\");\n\t\t}\n\t\t//Append each of the children.\n\t\tfor(HtmlTag child : getChildren())\n\t\t{\n\t\t\tbuilder.append(child.toString().replaceAll(\"(?m)^\", \" \"));\n\t\t}\n\t\t//Append the closing tag.\n\t\tbuilder.append(\"\\n</\").append(type.toString().toLowerCase()).append(\">\");\n\t\treturn builder.toString();\n\t}", "@Override\n String toString();", "public void print(Object someObj) {\r\n this.print(someObj.toString());\r\n }", "@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }", "@Override\n public abstract String toString();", "@Override\n\tpublic String toString();", "@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder();\n for (Item item : this) {\n stringBuilder.append(item.toString()).append(\" \");\n }\n return stringBuilder.toString();\n }", "public String toString() {\n return this.title + \"(\" + this.year + \")\\n\\t\" +\n \"Author: \" + this.author + \"\\n\\t\" +\n \"Pg. \" + this.pagesRead + \"/\" + this.pages;\n }", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "public void print() {\n System.out.println(toString());\n }" ]
[ "0.6478938", "0.61475265", "0.5835574", "0.57358056", "0.5691025", "0.5690682", "0.56815696", "0.5640263", "0.5628207", "0.56158394", "0.55829024", "0.5576445", "0.5571697", "0.5560265", "0.5541089", "0.55371296", "0.5532334", "0.55220526", "0.55220354", "0.55186874", "0.5516597", "0.5485638", "0.54849225", "0.5482923", "0.5479593", "0.54785115", "0.5475395", "0.54625726", "0.5456231", "0.5454485", "0.54487705", "0.544517", "0.54359585", "0.54340225", "0.54340225", "0.54340225", "0.54340225", "0.54340225", "0.54340225", "0.54340225", "0.5433055", "0.54318786", "0.54318786", "0.54290843", "0.5418619", "0.54176694", "0.54088604", "0.5403438", "0.54001814", "0.5399702", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399477", "0.5399463", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.5393876", "0.53887504", "0.53887504", "0.538159", "0.5376776", "0.5376031", "0.5367956", "0.53546596", "0.5348685", "0.53463507", "0.5339708", "0.5334397", "0.5330048" ]
0.0
-1
Sets whether to connect to disconnect from hardware.
public synchronized void setConnect(boolean connect) { wantConnect = connect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDisconnect(boolean disconnect) {\n this.disconnect = disconnect;\n }", "public void disconnect()\n {\n isConnected = false;\n }", "public Builder setDisconnect(boolean value) {\n bitField0_ |= 0x00000008;\n disconnect_ = value;\n onChanged();\n return this;\n }", "boolean getDisconnect();", "public void setConnected(boolean connected);", "@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_BOOLEAN,\n defaultValue = \"True\")\n @SimpleProperty\n public void StopBeforeDisconnect(boolean stopBeforeDisconnect) {\n this.stopBeforeDisconnect = stopBeforeDisconnect;\n }", "@Override\n public void Disconnect() {\n bReConnect = true;\n }", "@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}", "@Override\n public boolean disconnectFromSensor() {\n return false;\n }", "public void disconnect() {if(mEnable) mBS.disconnect();}", "@Override\n\tpublic boolean connect() {\n\t\treturn false;\n\t}", "public boolean getDisconnect() {\n return disconnect_;\n }", "@Override\r\n public boolean disconnectWifi() {\r\n nwmDevice.getDevice().Disconnect();\r\n return true;\r\n }", "public void setSwitchOff() throws UnavailableDeviceException, ClosedDeviceException, IOException {\n\t\tswitch1.setValue(true);\n\t\tthis.switchState = false; \n\t}", "public boolean getDisconnect() {\n return disconnect_;\n }", "@ReactMethod\n public void setUseConnectionService(final boolean use) {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n useConnectionService_ = use;\n setAudioDeviceHandler();\n }\n });\n }", "@SimpleProperty(description = \"Whether to stop the drive motors before disconnecting.\",\n category = PropertyCategory.BEHAVIOR)\n public boolean StopBeforeDisconnect() {\n return stopBeforeDisconnect;\n }", "@Override\n\tpublic boolean canConnect() {\n return false;\n }", "public void setSwitchOn() throws UnavailableDeviceException, ClosedDeviceException, IOException{\n\t\tswitch1.setValue(false);\n\t\tthis.switchState = true; \n\t}", "public void setConnected(boolean c) {\n this.connected = c;\n }", "protected void setConnected(boolean paramBoolean) {\n/* 169 */ this.delegate.setConnected(paramBoolean);\n/* */ }", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "private void disconnectWifi() {\n assertTrue(\"Wifi not disconnected\", mWifiManager.disconnect());\n mWifiManager.disableNetwork(mWifiManager.getConnectionInfo().getNetworkId());\n mWifiManager.saveConfiguration();\n }", "public void setConnected(boolean connected) {\n isConnected = connected;\n }", "public void setConnected(boolean connected) {\n boolean oConnected = isConnected();\n this.connected = connected;\n firePropertyChange(PROPNAME_CONNECTED, oConnected, this.connected);\n }", "public void setCanConnect(boolean canConnect) {\n this.canConnect = canConnect;\n }", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "boolean hasDisconnect();", "public void disconnect()\n {\n \tLog.d(TAG, \"disconnect\");\n\n \tif(this.isConnected) {\n \t\t// Disable the client connection if have service\n \t\tif(mLedService != null) {\n \t\t\tthis.disable();\n \t\t}\n \t\t\n \t\t// Unbind service\n mContext.unbindService(mServiceConnection);\n \n this.isConnected = false;\n \t}\n }", "public void setDisconnected()\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tsetConnected(false);\n\t\t\t\tclearUserNames();\n\t\t\t\tprint(\"\\nConnection has been lost. Try reconnecting.\\n\");\n\t\t\t\tmainFrame.revalidate();\n\t\t \t\tmainFrame.repaint();\n\t\t\t}\n\t\t});\n\t}", "public void setConnected(boolean connected) {\n boolean oldValue = mConnected;\n mConnected = connected;\n pcs.firePropertyChange(PROP_CONNECTED, oldValue, mConnected);\n }", "public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }", "public void setDataConnectionDisabled() {\n ConnectivityManager cm = (ConnectivityManager) mContext\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n cm.setMobileDataEnabled(false);\n }", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public void setConnected(boolean connected) {\r\n this.connected = connected;\r\n }", "public void doOnDisconnect() {\n\t\t// Shut off any sensors that are on\n\t\tMainActivity.this.runOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\tresetAllOperations();\n\n\t\t\t\t\n\t\t\t\t// Make sure the LEDs go off\n\t\t\t\tif (droneApp.myDrone.isConnected) {\n\t\t\t\t\tdroneApp.myDrone.setLEDs(0, 0, 0);\n\t\t\t\t}\n\n\n\t\t\t\t// Only try and disconnect if already connected\n\t\t\t\tif (droneApp.myDrone.isConnected) {\n\t\t\t\t\tdroneApp.myDrone.disconnect();\n\t\t\t\t}\n\n\t\t\t\t// Remind people how to connect\n\t\t\t\ttvConnectInfo.setVisibility(TextView.VISIBLE);\n\t\t\t}\n\t\t});\n\t}", "public void disconnect() {\n try {\n if (socket != null)\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n isConnected = false;\n }", "@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}", "public void switchOff() throws RemoteHomeConnectionException {\n m.sendCommand(parseDeviceIdForMultipleDevice(getRealDeviceId()), \"l\"+getSubDeviceNumber()+\"f\");\n setCurrentState(false);\n }", "public void turn_off () {\n this.on = false;\n }", "private void setConnected(final boolean isConnected)\n\t{\n\t\tserverIPTextField.setEnabled(!isConnected);\n\t\tserverPortTextField.setEnabled(!isConnected);\n\t\tuserNameTextField.setEnabled(!isConnected);\n\t\tloginButton.setEnabled(!isConnected);\n\t\tlogoutButton.setEnabled(isConnected);\t\n\t\tsendMessageButton.setEnabled(isConnected);\n\t\tmessageTextArea.setEnabled(isConnected);\n\t}", "public static void turnConnectionOff() {\n if (connection != null) {\n try {\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Connection couldn't be turned off!\");\n }\n }\n }", "public void setIsConnectedToNetworkCore (boolean isConnectedToCore) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_ISCONNECTEDTOCORE , new Boolean (isConnectedToCore).toString()); }", "public void setAutoConnect(boolean v) {\n agentConfig.setAutoConnect(v);\n }", "@Override\r\n\tpublic boolean isConnected() {\n\t\treturn false;\r\n\t}", "public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}", "public void disconnect() {}", "public synchronized void stop() {\n if (mConnectThread != null) {\n mConnectThread.cancel();\n mConnectThread = null;\n }\n if (mConnectedThread != null) {\n mConnectedThread.cancel();\n mConnectedThread = null;\n }\n isConnected = false;\n }", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void setDataConnectionEnabled() {\n ConnectivityManager cm = (ConnectivityManager) mContext\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n cm.setMobileDataEnabled(true);\n }", "public void setOnline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = true;\n this.statusLed.setStatus(\"ok\");\n this.updateOscilloscopeData();\n }\n }", "protected void disconnect() {\n\t\tif (false == DOM.getElementPropertyBoolean(this.getFrame(), \"__connected\")) {\r\n\t\t\tthis.onUnableToConnect();\r\n\t\t} else {\r\n\t\t\tthis.restart();\r\n\t\t}\r\n\t}", "public void reconnectState(boolean b);", "public void onNetDisConnect() {\n\n\t}", "public void setOffline() {\n if (this.shutdownButton.isSelected() == false) {\n this.online = false;\n this.statusLed.setStatus(\"warning\");\n this.setOutputPower(0);\n this.channel.updateOutput();\n }\n }", "public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }", "@Override\n public void disconnect() {\n getMvpView().showLoading();\n getDataManager().setSetupStatus(false);\n getDataManager().setIpAddress(\"\");\n getMvpView().setIpDetails(\"\", \"Disconnected\");\n\n new Handler().postDelayed(() -> {\n getMvpView().hideLoading();\n getMvpView().toSetupActivity();\n }, 1000);\n }", "public void disconnect() {\n try {\n Socket socket = new Socket(\"127.0.0.1\",33333);\n ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\n clientMain.clientData[1] = \"no\";\n outputStream.writeObject(clientMain.clientData);\n\n clientMain.showConnectionPage();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void disconnect() throws CCommException, IllegalStateException;", "public void setMediaNetworkReachable(boolean value);", "void setCloseConnection();", "public void setNetworkReachable(boolean value);", "public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }", "public void setConnected(boolean connected) {\n\t\tthis.connected = connected;\n\t}", "public Builder clearDisconnect() {\n bitField0_ = (bitField0_ & ~0x00000008);\n disconnect_ = false;\n onChanged();\n return this;\n }", "public static void setDataConnected(boolean d)\n {\n dataconnected = d;\n }", "protected abstract void disconnect(boolean force) throws IOException;", "public static void triggerDisconnect() {\n sMockCar.disconnect();\n }", "public void setIsPhysicalDevice(boolean value) {\n this.isPhysicalDevice = value;\n }", "protected void kill() {\n disconnect = true;\n }", "public boolean disconnect() {\r\n\t\t\r\n\t\tString message;\r\n\t\t//ENTER YOUR CODE TO DISCONNECT\r\n\t\tif (isChatSessionOpened()){\r\n\t\t\tsendChatClosure();\r\n\t\t}\r\n\t\t\r\n\t\tmessage= \"106\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\tthis.connectedUser = null;\r\n\t\tthis.chatReceiver = null;\r\n\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n protected void onConnecting() {\n mPreferredTarget = null;\n }", "public void disconnect() {\n\t\tfinal String METHOD = \"disconnect\";\n\t\tLoggerUtility.fine(CLASS_NAME, METHOD, \"Disconnecting from the IBM Watson IoT Platform ...\");\n\t\ttry {\n\t\t\tthis.disconnectRequested = true;\n\t\t\tmqttAsyncClient.disconnect();\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, \"Successfully disconnected \"\n\t\t\t\t\t+ \"from the IBM Watson IoT Platform\");\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void disconnect();", "void disconnect();", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "@Input(\"onOff\")\n synchronized public void onOff() {\n try {\n _switchJMXSource.setValue(false);\n } catch (PropertyVetoException e) {}\n }", "public void setConnection(boolean connection) {\r\n\t\tthis.connection = connection;\r\n\t}", "public void disconnect() {\n\t\t\n\t}", "boolean supportsConnects();", "public void setConnectDots(boolean b)\r\n/* 29: */ {\r\n/* 30: 24 */ this.connectDots = b;repaint();\r\n/* 31: */ }", "public boolean switchOff(){\n if(!this.is_Switched_On){\n return false;\n }\n this.is_Switched_On = false;\n return true;\n }", "@Override\n public boolean isConnectable() {\n return true;\n }", "public boolean disconnect() {\n if(!this.isConnected()) {\n return true;\n }\n try {\n this.bluetoothSocket.close();\n this.bluetoothSocket = null;\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n }\n return false;\n }", "public void mDisconnect() {\n try {\n if (oOutput!=null){\n oOutput.close();\n oOutput=null;}\n if (oInput!=null){\n oInput.close();\n oInput=null;}\n if (oSocket!=null) {\n if (oSocket.isConnected())\n mMsgLog(5,\"Disconnected\");\n oSocket.close();\n oSocket = null;\n }\n if (oDevice!=null){\n oDevice=null;\n }\n } catch (IOException e) {\n mErrMsg(\"Err:\"+e.toString());\n }\n mStateSet(kBT_Disconnected);\n }", "@Override\r\n\tpublic void disconnect();", "public void off() {\n this.relay.set(Relay.Value.kOff);\n }", "public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }", "void set(boolean on);", "public void cancelDisconnect() {\n if (manager != null) {\n if (device == null\n || device.status == WifiP2pDevice.CONNECTED) {\n disconnect();\n } else if (device.status == WifiP2pDevice.AVAILABLE\n || device.status == WifiP2pDevice.INVITED) {\n manager.cancelConnect(channel, new WifiP2pManager.ActionListener() {\n\n @Override\n public void onSuccess() {\n }\n\n @Override\n public void onFailure(int reasonCode) {\n }\n });\n }\n }\n }", "boolean setOffline(boolean b);", "public static void setWifiOn(boolean isOn) {\n Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0);\n }", "public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }", "void disconnect() throws Exception;", "@Override\n public abstract void disconnect();", "public boolean disconnect() {\n\t\ttry {\n\t\t\tthis.m.close();\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}" ]
[ "0.7090503", "0.6887313", "0.67608416", "0.675639", "0.6545749", "0.6510391", "0.64739347", "0.62576777", "0.6230276", "0.6212184", "0.61921805", "0.6153017", "0.6122828", "0.61069864", "0.6105758", "0.6082055", "0.60544115", "0.60067976", "0.6002806", "0.6000493", "0.59783995", "0.596393", "0.59131783", "0.58983237", "0.5878855", "0.58664566", "0.58566415", "0.5853745", "0.58159894", "0.5771021", "0.5770396", "0.57682496", "0.5743212", "0.57426494", "0.5737051", "0.57365036", "0.5719876", "0.5717888", "0.5717888", "0.5701074", "0.57008594", "0.56996864", "0.56912446", "0.5690934", "0.5686422", "0.5683965", "0.5681889", "0.56772035", "0.5673505", "0.5673088", "0.5673088", "0.5673088", "0.5673088", "0.5658899", "0.56380254", "0.5606254", "0.5593347", "0.5559312", "0.5530533", "0.55268514", "0.55230445", "0.5521331", "0.55063224", "0.5500861", "0.54949254", "0.54933834", "0.5484263", "0.54611707", "0.54536134", "0.5452492", "0.5444711", "0.5443121", "0.5442445", "0.5441407", "0.54411805", "0.5438114", "0.5426978", "0.5422776", "0.5422776", "0.54148006", "0.54123455", "0.5411747", "0.5409968", "0.5404797", "0.5398415", "0.53835654", "0.5382857", "0.5374412", "0.5369826", "0.53464717", "0.5345407", "0.53392476", "0.5336688", "0.5329988", "0.53290313", "0.5321692", "0.5308954", "0.53062415", "0.53012383", "0.5290381" ]
0.70674354
1
Broadcasts connection status change on the event bus.
private void sendConnectionMessage(EventMessage.EventType eventType) { EventMessage message = new EventMessage(eventType); EventBus.getDefault().post(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void notifyConnectionStateChanged(State state);", "private void setupConnStateBroadcastReceiver() {\n connStateBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.CONNECTION_STATE_CHANGED\".equals(intent.getAction())) {\n connected = intent.getBooleanExtra(\"com.example.loravisual.CONNECTION_STATE\", false);\n if (connected) {\n if (!connToastsDeactivated)\n Toast.makeText(context, \"connected to device\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.connected));\n } else {\n ready = false;\n if (!connToastsDeactivated)\n Toast.makeText(context, \"disconnected\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.disconnected));\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.CONNECTION_STATE_CHANGED\");\n registerReceiver(connStateBroadcastReceiver, filter);\n }", "@Override\n\tpublic void connectionStatusChanged(int connectedState, String reason) {\n\n\t}", "private void setupConnStateBroadcastReceiver() {\n connStateBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.CONNECTION_STATE_CHANGED\".equals(intent.getAction())) {\n final Handler handler = new Handler(Looper.getMainLooper());\n final Runnable runnable = new Runnable() {\n public void run() {\n connected = intent.getBooleanExtra(\"com.example.loravisual.CONNECTION_STATE\", false);\n if (connected) {\n Toast.makeText(context, \"connected to device\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.connected));\n ready = true;\n } else {\n Toast.makeText(context, \"disconnected\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.disconnected));\n ready = false;\n }\n }\n };\n handler.postDelayed(runnable, 2000); // waiting time equivalent to the time in onServicesDiscovered for other BLE connections\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.CONNECTION_STATE_CHANGED\");\n registerReceiver(connStateBroadcastReceiver, filter);\n }", "public void handleStatusUpdated() {\n copyWifiStates();\n notifyListenersIfNecessary();\n }", "protected void notifyConnection() {\n connectionListeners.forEach(listener-> listener.connectionChange(this, isConnected()));\n }", "private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) {\n\n int delay = mAudioManager.setBluetoothA2dpDeviceConnectionState(device, newState);\n\n mWakeLock.acquire();\n mIntentBroadcastHandler.sendMessageDelayed(mIntentBroadcastHandler.obtainMessage(\n MSG_CONNECTION_STATE_CHANGED,\n prevState,\n newState,\n device),\n delay);\n }", "void onIceConnectionChange(boolean connected);", "public void process(WatchedEvent event) {\n if(event.getState() == Event.KeeperState.SyncConnected) {\n connectedSignal.countDown();\n }\n }", "protected void onConnectionChanged() {\n mConnectionChangedListener.didChange(mConnection);\n }", "@Override\n public void setConnectionStatus( int status )\n {\n }", "void notifyConnected(MessageSnapshot snapshot);", "@Async\n @EventListener\n public void listen(ObjectStatusChangedEvent event) {\n TrackingObject object = event.getObject();\n\n if (settingService.isActive(SettingKey.WEB_SOCKET_NOTIFICATION) && object.canNotifyByWebSocket()) {\n Notification notification = createNotification(object, event.getTraceEvent());\n simpMessagingTemplate.convertAndSendToUser(object.getTenant(), \"/notifications\", notification);\n }\n }", "@Override\n public void updateConnectState(boolean connected){\n if(connected){\n if(DBG) Log.i(DEBUG_TAG, \"Activity received connected notification\");\n setupTopics();\n }else{\n resetTopics();\n if(DBG) Log.i(DEBUG_TAG, \"Activity received disconnect notification\");\n }\n\n }", "void connectionActivity(ConnectionEvent ce);", "private synchronized void UI_RefreshConnStatus ()\r\n\t{\r\n\t\tTCPClient used=null;\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\tused=_roboCOM;\r\n\t\t}\r\n\t\tLog.e(TAG, \"Is conection Active ACCE : \" + isConnectionActive());\r\n\t\t\r\n\t\tif (!isConnecting())\r\n\t\t{\r\n\t\t\tif (old_conn_status==-2) return;\r\n\t\t\told_conn_status=-2;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (used!=null)\r\n\t\t{\r\n\t\t\tif (old_conn_status!=used.getConnStatus())\r\n\t\t\t{\r\n\t\t\t\told_conn_status=used.getConnStatus();\r\n\t\t\t\tLog.e(TAG,\"Connections Status ACCE : \" + used.getConnStatusStr());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onStatusChange(int status) {\n }", "void onStatusChanged(Status newStatus);", "private void notifyObservers() {\n BinStatusUpdate newStatus = buildNewStatus();\n observers.iterator().forEachRemaining(binStatusUpdateStreamObserver -> binStatusUpdateStreamObserver.onNext(newStatus));\n }", "@Override\n\t\tpublic void agentChangeStatus(String system_id, String state) {\n\t\t\tSystem.out.println(\"=======>Agent Change state: \" + state);\n\t\t\tif (system_id==null || !aCallback.containsKey(system_id))\n\t\t\t\t//Unknown agent changes from disconnect state to unassociated (system_id is not received yet)\n\t\t\t\treturn;\n\n\t\t\t// Send a agent Broadcast Event to all clients.\n\t\t\tfinal RemoteCallbackList<IAgentCallbackService> agentCallbacks = aCallback.get(system_id);\n final int N = agentCallbacks.beginBroadcast();\n for (int i=0; i<N; i++) {\n try {\n \tagentCallbacks.getBroadcastItem(i).agentStateChanged(state);\n } catch (RemoteException e) {\n // The RemoteCallbackList will take care of removing\n // the dead object for us.\n }\n }\n agentCallbacks.finishBroadcast();\n\t\t\t//System.out.println(\"agente \" + system_id + \" changed to: \" + state);\n\t\t}", "@Override\n\tpublic void connectionStateChanged(boolean connected, boolean connectionLost) {\n\t\t\n\t}", "@Override\n public void linkStatusChanged(String connectorId, boolean connected) {\n }", "public interface ConnectionEventListener {\n /** \n * Called on all listeners when a connection is made or broken. \n */\n void connectionActivity(ConnectionEvent ce);\n}", "@ReactMethod\n public void connectionStatus(Callback connectionStatusResult) {\n ConnectivityManager connManager = (ConnectivityManager) getReactApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n if (mWifi.isConnected()) {\n connectionStatusResult.invoke(true);\n } else {\n connectionStatusResult.invoke(false);\n }\n }", "@Override\n\t\tpublic void connectionStateChange(ProxyEvent<Proxy<?>> e) {\n\t\t\tif (e.getConnectionState()==ConnectionState.OPERATIONAL && getConnectionState()==ConnectionState.CONNECTING)\n\t\t\t\tsetConnectionState(ConnectionState.CONNECTED, null);\n\t\t\tsetConnectionState(e.getConnectionState(),e.getError());\n\t\t}", "public interface ConnectionStateListener {\n void onDisconnect();\n void onConnect();\n void onLogout();\n}", "private void broadcastReadyAction() {\n Log.d(TAG, \"broadcastReadyAction start\");\n final Intent intent = new Intent();\n intent.setAction(BeaconsMonitoringService.SERVICE_READY_ACTION);\n getBaseContext().sendBroadcast(intent);\n Log.d(TAG, \"broadcastReadyAction end\");\n }", "@Override\n\tpublic void onDataConnectionStateChanged(int state) {\n\t\tLog.v(\"FMT\", \"Connection Listener appelé. State : \"+state);\n\t\tsuper.onDataConnectionStateChanged(state);\n\t}", "private void uponInConnectionUp(InConnectionUp event, int channelId) {\n }", "public void connectionStateChanged( ConnectionState state ) {\n connectionStateChanged( getNativeObject(), state );\n }", "private void sendStatus() {\n\n // Only send status if we have UI bound to service\n if (isBound) {\n try {\n Message msg = Message.obtain(null, RadioPlayerFragment.UPDATE_STATUS);\n Bundle bundle = new Bundle();\n bundle.putString(RadioPlayerFragment.STATUS, mpState);\n msg.setData(bundle);\n fragmentMessenger.send(msg);\n } catch (RemoteException e) {\n Log.e(LOG_TAG, \"Cannot send status: \" + mpState);\n }\n }\n\n }", "public void onConnection();", "@Override\n\tpublic void process(WatchedEvent event) {\n\t\tSystem.out.println(\"Receive Watcher Event:\" + event);\n\t\tif (KeeperState.SyncConnected == event.getState()) {\n\t\t\tcountDownLatch.countDown();\n\t\t}\t\n\t}", "@ForOverride\n public void onStateChange(InternalSubchannel internalSubchannel, ConnectivityStateInfo connectivityStateInfo) {\n }", "void onStatusUpdate(int status);", "static void sendControllerStatusBcast(Context context, String status) {\n //Send broadcast to update the UI if the app is active\n Intent localIntent = new Intent(BroadcastType.BCAST_TYPE_CONTROLLER_STATUS.toString());\n localIntent.putExtra(BroadcastType.BCAST_EXTRA_SERVER_RESPONSE.toString(), status);\n LocalBroadcastManager.getInstance(context).sendBroadcast(localIntent);\n }", "private void sendDeviceStatus() {\n if (hasRecover && zWaveSubDevice != null) {\n ZWaveDeviceEvent zde = new ZWaveDeviceEvent();\n try {\n PropertyUtils.copyProperties(zde, zWaveSubDevice.getZwavedevice());\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n zde.setReport(zrb.getReport());\n zde.setEventtime(new Date());\n\n JMSUtil.sendmessage(IRemoteConstantDefine.WARNING_TYPE_DEVICE_STATUS, zde);\n }\n }", "@Override\n public void handleMessage(Message pMsg) {\n\n TallyDeviceConnectionStatusActivity tempActivity = activity.get();\n if (tempActivity != null) {\n\n switch (pMsg.what) {\n\n case TallyDeviceService.MSG_CONNECTION_STATE:\n tempActivity.stateChanged(TallyDeviceService.State.values()[pMsg.arg1], pMsg);\n break;\n\n }\n\n }\n\n super.handleMessage(pMsg);\n\n }", "public void propertyChange(PropertyChangeEvent evt) {\n if (JConsoleContext.CONNECTION_STATE_PROPERTY.equals(evt.getPropertyName())) {\n boolean connected = (Boolean) evt.getNewValue();\n if (connected) {\n buildMBeanServerView();\n } else {\n sheet.dispose();\n }\n }\n }", "public void onStatus(Status status) {\n \t\t\t\t_receivedStatus++;\n \t\t\t\tif(!_statusQueue.offer(status)){\n \t\t\t\t\t_lostStatus++; \n \t\t\t\t}\t\t\t\n \t\t\t}", "com.polytech.spik.protocol.SpikMessages.StatusChanged getStatusChanged();", "@Override\n public void run() {\n final JPPFClientConnectionStatus status = driver.getConnection().getStatus();\n if (status.isWorkingStatus()) StatsHandler.getInstance().requestUpdate(driver);\n }", "static void sendServerStatusBcast(Context context, String status) {\n //Send broadcast to update the UI if the app is active\n Intent localIntent = new Intent(BroadcastType.BCAST_TYPE_SERVER_STATUS.toString());\n localIntent.putExtra(BroadcastType.BCAST_EXTRA_SERVER_RESPONSE.toString(), status);\n LocalBroadcastManager.getInstance(context).sendBroadcast(localIntent);\n }", "public void process(WatchedEvent event) {\n\t\tSystem.out.println(\"receive ZooKeeper state : \"+event.getState()+\",Type: \"+event.getType());\r\n\t\t\r\n\t\tif(KeeperState.SyncConnected==event.getState()){\r\n\t\t\tsemaphore.countDown();\r\n\t\t}\r\n\t}", "@Override\n public void connected() {\n jLabel5.setText(\"已连接\");\n }", "public int getState() {\n\treturn APPStates.CONTROLLER_CONNECTED_BS;\n}", "@Override\n public void stateChanged(\n final CuratorFramework client, final ConnectionState newState\n ) {\n }", "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tmContext = context;\n\t\tNetworkIOAsyncTask mObjMain;\n\n\t\tSystem.out.println(\"Inside Connectivity Change Broadcast Receiver: \"+TAG);\n\n\t\tif(intent.getAction().equals(\"android.net.conn.CONNECTIVITY_CHANGE\")){\n\n\t\t\tif(GenUtils.isNetworkAvailable(mContext) && SettingsMgr.getTaskRuningStatus(context)){\n\t\t\t\tToast.makeText(mContext, \"Network Available\", Toast.LENGTH_SHORT).show();\n\n\t\t\t\tif(SettingsMgr.getTaskRuningStatus(context)){\n\t\t\t\t\tSettingsMgr.setTaskRunningStatus(context, false);\n\t\t\t\t\tmObjMain = new NetworkIOAsyncTask(context);\n\t\t\t\t\tif(SettingsMgr.getLastIndexRecord(context) == 0){\n\t\t\t\t\t\tmObjMain.runAsyncTask(SettingsMgr.getLastIndexRecord(context));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmObjMain.runAsyncTask(SettingsMgr.getLastIndexRecord(context) + 1);\n\t\t\t\t\t}\n\t\t\t\t\tToast.makeText(mContext, \"Last Index:\"+SettingsMgr.getLastIndexRecord(context), Toast.LENGTH_SHORT).show();\n\n\t\t\t\t\t// Setting shared prefs variable to default values\n\t\t\t\t\tSettingsMgr.setLastIndexRecord(context, mObjMain.getLastExecutedIndex());\n\t\t\t\t}\n\n\t\t\t}else if(!GenUtils.isNetworkAvailable(mContext) && !SettingsMgr.getTaskRuningStatus(context)){\n\t\t\t\tToast.makeText(mContext, \"Network Unavailable\", Toast.LENGTH_SHORT).show();\n\n\t\t\t\tmObjMain = new NetworkIOAsyncTask(context);\n\t\t\t\tif(mObjMain.isAsyncTaskRunning()){\n\t\t\t\t\tSettingsMgr.setTaskRunningStatus(context, true);\n\t\t\t\t\tSettingsMgr.setLastIndexRecord(context, mObjMain.getLastExecutedIndex());\n\t\t\t\t\tToast.makeText(mContext, \"Task Running :\"+mObjMain.isAsyncTaskRunning(), Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "private void sendUpdateConnectionInfo() {\n\n }", "boolean hasStatusChanged();", "@Override\n public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {\n\n if (newState == BluetoothProfile.STATE_CONNECTED) {\n mConnectionState = STATE_CONNECTED;\n\n if (mBleListener != null) {\n mBleListener.onConnected();\n }\n\n // Attempts to discover services after successful connection.\n gatt.discoverServices();\n\n } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {\n mConnectionState = STATE_DISCONNECTED;\n\n if (mBleListener != null) {\n mBleListener.onDisconnected();\n }\n } else if (newState == BluetoothProfile.STATE_CONNECTING) {\n mConnectionState = STATE_CONNECTING;\n\n if (mBleListener != null) {\n mBleListener.onConnecting();\n }\n }\n }", "public void onOpen(WebSocket conn);", "@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)\n {\n \n Channel connectedChannel = e.getChannel();\n allChannels.add(connectedChannel);\n \n msg = StringAppender.mergeToStr(connectedMsg, e.getChannel().getLocalAddress().toString(), \" , Connections:\", String.valueOf(allChannels.size()));\n logger.info(msg);\n \n }", "@Override\n public void presenceChanged(Presence presence)\n {\n firePresenceStatusChanged(presence);\n }", "public void changeAndNotify(String newStatus){\r\n\t\tstatus = newStatus;\r\n\t\tSystem.out.println(\"new status is: \"+ status);\r\n\t\tthis.notifyAllObservers(status);\r\n\t}", "public abstract void clientStatusChanged(ClientManager client, Object object);", "private void uponOutConnectionUp(OutConnectionUp event, int channelId) {\n }", "@Override\n public void handleEvent(final StreamSinkChannel theConnectionChannel) {\n if (anyAreSet(state, FLAG_DELEGATE_SHUTDOWN)) {\n try {\n //either it will work, and the channel is closed\n //or it won't, and we continue with writes resumed\n channel.flush();\n return;\n } catch (IOException e) {\n handleError(channel, e);\n }\n }\n //if there is data still to write\n if (buffersToWrite != null) {\n long toWrite = Buffers.remaining(buffersToWrite);\n long written = 0;\n long res;\n do {\n try {\n res = channel.write(buffersToWrite);\n written += res;\n if (res == 0) {\n return;\n }\n } catch (IOException e) {\n handleError(channel, e);\n }\n } while (written < toWrite);\n buffersToWrite = null;\n }\n if (anyAreSet(state, FLAG_CLOSED)) {\n try {\n channel.shutdownWrites();\n state |= FLAG_DELEGATE_SHUTDOWN;\n channel.flush(); //if this does not succeed we are already resumed anyway\n } catch (IOException e) {\n handleError(channel, e);\n }\n } else {\n state |= FLAG_READY;\n theConnectionChannel.suspendWrites();\n theConnectionChannel.getWorker().submit(new Runnable() {\n @Override\n public void run() {\n try {\n state |= FLAG_IN_CALLBACK;\n listener.onWritePossible();\n theConnectionChannel.getWriteSetter().set(WriteChannelListener.this);\n theConnectionChannel.resumeWrites();\n } catch (Throwable e) {\n IoUtils.safeClose(channel);\n } finally {\n state &= ~FLAG_IN_CALLBACK;\n }\n }\n });\n }\n }", "@Override\n\tpublic void connectionStatusChanged(int connectedState, String reason) {\n\t\tif (mLoginDialog != null && mLoginDialog.isShowing())\n\t\t\tmLoginDialog.dismiss();\n\t\tif (mLoginOutTimeProcess != null && mLoginOutTimeProcess.running) {\n\t\t\tmLoginOutTimeProcess.stop();\n\t\t\tmLoginOutTimeProcess = null;\n\t\t}\n\t\tif (connectedState == XXService.CONNECTED) {\n\t\t\tsave2Preferences();\n\t\t\tstartActivity(new Intent(this, MainActivity.class));\n\t\t\tfinish();\n\t\t} else if (connectedState == XXService.DISCONNECTED)\n\t\t\tT.showLong(LoginActivity.this, getString(R.string.request_failed)\n\t\t\t\t\t+ reason);\n\t}", "public void process(WatchedEvent event) {\n\t\tSystem.out.println(\"watchedEvent event : \"+event);\r\n\t\tif(KeeperState.SyncConnected == event.getState()){\r\n\t\t\tsemaphore.countDown();\r\n\t\t}\r\n\t}", "public void notifyListener() {\n\t\tbuffer.putInt(1);\n\t\tbuffer.flip();\n\t\tsocketLock.lock();\n\t\ttry {\n\t\t\tnotifyChannel.write(buffer);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Turing Server] Non è stato possibile notificare il client.\");\n\t\t}\n\t\tsocketLock.unlock();\n\t\tbuffer.clear();\n\t}", "private void connected() {\n m_connectionLabel.setBackground(Color.GREEN);\n m_connectionLabel.setText(\"Connected\");\n }", "private void sendClientsChangedBroadcast() {\n Intent intent = new Intent(WifiHotspotManager.WIFI_HOTSPOT_CLIENTS_CHANGED_ACTION);\n intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);\n mContext.sendBroadcastAsUser(intent, UserHandle.ALL);\n }", "public interface ConnectionStateHandler {\n void onConnected();\n void onConnectionFailed(Exception e);\n}", "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tif (intent == null)\n\t\t\treturn;\n\t\tString action = intent.getAction();\n\t\tif (TextUtils.isEmpty(action))\n\t\t\treturn;\n\t\tif (action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {\n\t\t\tConnectivityManager connectivityManager = (ConnectivityManager) context\n\t\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\tNetworkInfo networkInfo = connectivityManager\n\t\t\t\t\t.getActiveNetworkInfo();\n\t\t\tif (networkInfo != null) {\n\t\t\t\tif (networkInfo.isConnected()) {\n\t\t\t\t\tEventBus.getDefault().post(new EventNetStateChange(true));\n\t\t\t\t} else {\n\t\t\t\t\tEventBus.getDefault().post(new EventNetStateChange(false));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tEventBus.getDefault().post(new EventNetStateChange(false));\n\t\t\t}\n\t\t}\n\n\t}", "@Override\r\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tthis.context=context;\r\n\t\tapp = (MyApplication) context.getApplicationContext();\r\n\t\tif(intent.getAction().equals(\"android.net.conn.CONNECTIVITY_CHANGE\")){\r\n\t\t\t// 网络状态改变\r\n\t\t\tConnectivityChage();\r\n\t\t}\r\n\t}", "private void fireConfigChanged()\n {\n ScmEventBus.getInstance().post(\n new RepositoryHandlerConfigChangedEvent<C>(config));\n }", "public int getConnectionStatus()\r\n { return connectionStatus; }", "public interface OnBluetoothConnectionPendingListener {\n\t\tvoid onConnectionPending();\n\t}", "@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }", "interface Connect extends RconConnectionEvent, Cancellable {}", "@Override\n\t\t\t\tpublic void process(WatchedEvent event) {\n\t\t\t\t\tif (event.getState() == KeeperState.SyncConnected) {\n\t\t\t\t\t\tconnectedSignal.countDown(); // 倒数-1\n\t\t\t\t\t}else if (event.getState() == KeeperState.Expired) {\n\t\t\t\t\t\tlog.error(\"zookeeper session expired! now reconnectiing\");\n\t\t\t try {\n\t\t\t\t\t\t\tclose();\n\t\t\t\t\t\t\tgetConnection(serverList);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tlog.error(\"zookeeper connect error!\",e);\n\t\t\t\t\t\t}\n\t\t\t }\n\t\t\t\t}", "public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout 1\");\n command.sendCommand(\"set style 13\");\n command.sendCommand(\"-notify *\");\n Collection<Player> players = tournamentService.findScheduledPlayers();\n for (Player p : players) {\n command.sendCommand(\"+notify {0}\", p);\n }\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_ARRIVED);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_LEFT);\n\n Runnable task = new SafeRunnable() {\n\n @Override\n public void safeRun() {\n onConnectSpamDone();\n }\n };\n //In 2 seconds, call onConnectSpamDone().\n scheduler.schedule(task, 4, TimeUnit.SECONDS);\n System.out.println();\n }", "void onConnectionLost();", "void firePresenceStatusChanged(Presence presence)\n {\n if(contactChangesListener != null)\n contactChangesListener.firePresenceStatusChanged(presence);\n }", "@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureServiceConnectionStateChange(ConnectionStateEvent event) {\n Log.d(TAG, \"onService() called with: event = [\" + event + \"]\");\n if (socketSnack != null) {\n socketSnack.dismiss();\n }\n\n TextView tv = findViewById(R.id.main_service_status);\n\n ConnectionState state = event.getState();\n mCaptureClient = event.getClient();\n\n if (state.hasError()) {\n Log.d(TAG, \"CaptureServiceConnectionStateChange with error : \" + state.getError());\n setText(tv, COLOR_ERROR, \"Error\");\n\n CaptureError error = state.getError();\n if (error.getCode() == CaptureError.COMPANION_NOT_INSTALLED) {\n // Prompt to install\n socketSnack = Snackbar.make(findViewById(R.id.main_content),\n \"Socket Mobile Companion must be installed to use your scanner\",\n Snackbar.LENGTH_INDEFINITE);\n socketSnack.setAction(\"Install\", new View.OnClickListener() {\n @Override public void onClick(View v) {\n // Install\n Capture.installCompanion(v.getContext());\n socketSnack.dismiss();\n }\n });\n socketSnack.show();\n } else if (error.getCode() == CaptureError.SERVICE_NOT_RUNNING) {\n // The first time you receive this error, the client may still be disconnecting.\n // Wait until the client is disconnected before attempting to restart\n if (state.isDisconnected()) {\n if (Capture.notRestartedRecently()) {\n Capture.restart(this);\n } else {\n // Something is seriously wrong\n socketSnack = Snackbar.make(findViewById(R.id.main_content),\n \"Please restart Companion and this app\",\n Snackbar.LENGTH_INDEFINITE);\n socketSnack.show();\n }\n }\n } else if (error.getCode() == CaptureError.BLUETOOTH_NOT_ENABLED) {\n socketSnack = Snackbar.make(findViewById(R.id.main_content),\n \"Bluetooth must be enabled to use your scanner\",\n Snackbar.LENGTH_INDEFINITE);\n socketSnack.setAction(\"Enable\", new View.OnClickListener() {\n @Override public void onClick(View v) {\n // Enable Bluetooth - requires BLUETOOTH permission\n startActivity(new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE));\n }\n });\n socketSnack.show();\n } else {\n socketSnack = Snackbar.make(findViewById(R.id.main_content), error.getMessage(),\n Snackbar.LENGTH_INDEFINITE);\n socketSnack.show();\n }\n } else {\n // Connection has been established. You will be notified when a device is connected and ready.\n // do something or do nothing\n switch (state.intValue()) {\n case ConnectionState.CONNECTING:\n setText(tv, COLOR_PENDING,\"Connecting\");\n break;\n case ConnectionState.CONNECTED:\n setText(tv, COLOR_PENDING,\"Connected\");\n break;\n case ConnectionState.READY:\n setText(tv, COLOR_READY,\"Ready\");\n break;\n case ConnectionState.DISCONNECTING:\n setText(tv, COLOR_PENDING,\"Disconnecting\");\n break;\n case ConnectionState.DISCONNECTED:\n setText(tv, COLOR_IDLE, \"Disconnected\");\n }\n }\n }", "public void handleConnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(true);\n setMessageText(\"Connected to \" + tallyDeviceName);\n\n // Waits for 2 seconds so that the user\n // can see the message and then exits the\n // activity\n timerHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n\n exitActivity();\n\n }\n\n }, 2000);\n\n }", "@Override\n\t\t\t\tpublic void publishStateChanged(LinphoneCore lc, LinphoneEvent ev,\n\t\t\t\t\t\tPublishState state) {\n\t\t\t\t\t\n\t\t\t\t}", "@FunctionalInterface\npublic interface ConnectionLostListener {\n\n /**\n * Called when a connection is list\n * \n * @param channelID The ID of the channel that had the connection lost\n */\n public void connectionLost(String channelID);\n\n}", "@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n // TODO Auto-generated method stub\n // 如果相等的话就说明网络状态发生了变化\n if (intent.getAction().equals(ConnectivityManager.CONNECTIVITY_ACTION)) {\n int netWorkState = NetUtil.getNetWorkState(context);\n // 接口回调传过去状态的类型\n for (NetEvevt netEvevt:evevts) {\n netEvevt.onNetChange(netWorkState);\n }\n// evevt.onNetChange(netWorkState);\n }\n }", "@SuppressLint(\"DefaultLocale\")\n void updateM2Status(boolean connected, int latency, int rate) {\n sendM2Event(\"status\", String.format(\"[%b, %d, %d]\", connected, latency, rate));\n }", "void handleConnectionOpened();", "public void updateStatus(ConnectionStatus status, ConnectionError error, String errorMsg) {\n \t\tthis.connectionStatus = status;\n \t\tif (callback != null) {\n \t\t\tcallback.connectionCallback(status, error, errorMsg);\n \t\t\tif(this.connectionStatus == ConnectionStatus.DISCONNECTED) {\n \t\t\t\tcallback = null;\n \t\t\t}\n \t\t}\n \t}", "void pushReconnectPending(PushConnection pushConnection);", "public void providerStatusChanged(ProviderPresenceStatusChangeEvent evt);", "EventChannel.Update update();", "void connected();", "private void setOnline(String urlConfig) {\n switch (status) {\n case SERVER_DOWN:\n case URL_UNSET:\n logger.debug(\"Status changing from \" + status + \" to \"\n + Status.SERVER_UP);\n broadcastMessage(urlConfig);\n status = Status.SERVER_UP;\n break;\n default:\n logger.debug(\"SetOnline: Status not changed from \" + status);\n // no action\n }\n }", "void firePeerConnected(ConnectionKey connectionKey);", "final void channelInterestChangedCallback() {\n Channel ch = getIOChannel();\n if (ch != null) {\n boolean writable = ch.isWritable();\n\n eventSerializeLock.lock();\n try {\n if (previousEvent == OUTPUT_DISABLED && writable) {\n fireOutputRecovered();\n } else if (previousEvent == OUTPUT_RECOVERED && !writable) {\n fireOutputDisabled();\n }\n } finally {\n eventSerializeLock.unlock();\n }\n }\n }", "EventChannel refresh(Context context);", "@Override\n public void trigger() {\n output.addNewEvent(\"Assinante \" + subscriberReconnect.getId() + \" deseja reconectar sua última ligação\");\n if (this.subscriberReconnect.isFree()) {\n takePhone();\n reestablishConnection();\n }\n }", "public void broadcastState() {\n StringBuilder sb = new StringBuilder();\n sb.append(MSG_STATE);\n\n if(mService.isTransmitterMode()) {\n sb.append(\" t \");\n }\n else {\n sb.append(\" r \");\n }\n\n sb.append(mService.getVADThreshold());\n sb.append(\" \");\n\n sb.append(mService.getNoiseTracker().getLastNoiseHeard() / 1000);\n\n try {\n sendChannelMessage(sb.toString());\n }\n catch(RemoteException e) {\n e.printStackTrace();\n }\n }", "public void onSSH2ConnectionEvent(int eventType, String message)\r\n\t{\n\t\tlistener_.onSessionEvent(StatusListener.SSH_MESSAGE, message, null, eventType);\r\n\t}", "@Override\n\t\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\t\tnotifyNetworkStateChanged();\n\t\t\t}", "public IServerState changeState(ServerEvents serverEvent);", "public void fireEvent(StatusEvent ev) {\n\t\tsetChanged();\n\t\tnotifyObservers(ev);\n\t\t\n\t}" ]
[ "0.6885758", "0.6533883", "0.65295863", "0.6435707", "0.62037206", "0.62034935", "0.608443", "0.6075701", "0.6039496", "0.6037239", "0.59978455", "0.5915648", "0.5888232", "0.5863592", "0.5862478", "0.58423364", "0.5832732", "0.582089", "0.58128256", "0.5807284", "0.5784017", "0.57764524", "0.5737003", "0.57242227", "0.5697632", "0.56787026", "0.56536615", "0.5648964", "0.5630267", "0.56219286", "0.562068", "0.5613005", "0.5610349", "0.56042033", "0.557895", "0.55638546", "0.55636364", "0.5531247", "0.5520082", "0.54723823", "0.5426752", "0.541838", "0.54097915", "0.540872", "0.5396934", "0.5388822", "0.53861237", "0.5380824", "0.5377071", "0.53671384", "0.5364985", "0.5361796", "0.53515095", "0.5337906", "0.533632", "0.53278303", "0.5327119", "0.5326257", "0.53152156", "0.5299992", "0.52884245", "0.5287524", "0.52591777", "0.52566665", "0.5251862", "0.5249786", "0.5248549", "0.5233515", "0.5213545", "0.52106845", "0.52064884", "0.51984954", "0.51981246", "0.519288", "0.51864755", "0.5168783", "0.5155626", "0.5148628", "0.5148339", "0.51428175", "0.5138489", "0.513432", "0.5133886", "0.51328117", "0.5131468", "0.51305723", "0.5130367", "0.51181775", "0.51097137", "0.51061547", "0.5102939", "0.51026225", "0.5099557", "0.5097857", "0.5096203", "0.50956196", "0.5094454", "0.50863063", "0.50858635", "0.5084696" ]
0.5452979
40
Makes sure that we're connected. If not, tries to connect.
private boolean verifyBTConnected() { if (btSocket != null && btSocket.isConnected()) { return true; } sendConnectionMessage(EventMessage.EventType.HW_CONNECTING); try { if (btDevice == null) { btDevice = btAdapter.getRemoteDevice(btAddress); } btSocket = btDevice.createInsecureRfcommSocketToServiceRecord(uuid); btSocket.connect(); mmInStream = btSocket.getInputStream(); mmOutStream = btSocket.getOutputStream(); sendConnectionMessage(EventMessage.EventType.HW_CONNECTED); return true; } catch (IOException e) { Log.d(TAG, "Exception creating BT socket in BT thread: " + e.toString()); btDevice = null; return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void attemptToConnect() {\n LOG.warn(\"Attempting to connect....\");\n \n if (// No connection configuration\n getConnectionConfiguration() == null &&\n (getServerHostname() == null || getServerPort() == 0 ||\n getServiceName() == null || getFromAddress() == null ||\n getPassword() == null || getResource() == null)\n \n ||\n \n // Already logged in.\n getConnection() != null && getConnection().isAuthenticated()) {\n \n return;\n }\n \n try {\n if (getConnectionConfiguration() == null) {\n setConnectionConfiguration(new ConnectionConfiguration(\n getServerHostname(), getServerPort(), getServiceName()));\n }\n\n connect();\n }\n catch (Throwable t) {\n LOG.error(t);\n }\n }", "protected synchronized boolean checkConnectivity() {\n return this.connect();\n }", "private synchronized void reconnectIfNecessary() {\n if (DEBUG) {\n Log.d(LOG_TAG, \"Reconnect if necessary called...\");\n }\n if (mStarted && mClient == null) {\n connect(mIpAdress, mPort);\n }\n }", "public final boolean connect() {\n if(this.connected) return true;\n if(this.connectThread == null || !this.connectThread.isAlive()){\n this.connectThread = new MdsConnect();\n this.connectThread.start();\n }\n this.connectThread.retry();\n if(!Thread.currentThread().getName().startsWith(\"AWT-EventQueue-\")) this.waitTried();\n if(this.connected) try{\n this.setup();\n }catch(final MdsException e){\n e.printStackTrace();\n this.close();\n }\n return this.connected;\n }", "private static void checkConn() {\n try {\n if (conns.isClosed()) conns = Connect.getConnect();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void connect() throws ConnectionFailedException\n {\n isConnected = true;\n }", "public void connect() {\n if (isShutdown)\n return;\n\n setNewConnection(reconnectInternal());\n }", "private static boolean AttemptConnect() {\n try {\n if (Connect()) {\n Log.Confirmation(\"Connected to server on: \" + socket);\n // send connection type\n dos.writeUTF(\"viewer\");\n return true;\n } else {\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }", "public static boolean isConnected() { return irc != null && irc.isConnected(); }", "@Override\n public void testIfConnected() {\n }", "@Override\n\tpublic boolean connect() {\n\t\treturn false;\n\t}", "public void attemptReconnect() {\n\t\tConnection.this.reliabilityManager.attemptConnect();\n\t}", "@Override\r\n public boolean reconnect()\r\n {\n return state.isConnected();\r\n }", "@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "@Override\n\tpublic boolean canConnect() {\n return false;\n }", "public boolean checkConnection() {\n\t\ttry {\n\t\t\tif (con.isClosed() || !isAlive) {\n\t\t\t\treturn connect();\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isConnectable(){\n\t\tif((System.currentTimeMillis() - this.lastTry) > retryBackoff){\n\t\t\tthis.lastTry = System.currentTimeMillis();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean connect() {\r\n\tboolean result = false;\r\n\r\n\tif (isConnected()) { // if already connected\r\n\t result = true;\r\n\t} else {\r\n\t conn = createConnection();\r\n\r\n\t if (conn != null && countTables() > 0) {\r\n\t\tresult = true;\r\n\r\n\t\tsetConnected(result);\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }", "private void checkConnectivity() throws NotConnected\n\t{\n\t\tif (!s_ctx.isConnected())\n\t\t{\n\t\t\tthrow new NotConnected(\"Cannot operate: not conected to context\");\n\t\t}\n\t}", "public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Connected.\", MODULE);\n state = CONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"connect failed\" + exception.getMessage(), MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n // Connect using a non-blocking connect\n client.connect(conOpt, \"Connect sample context\", conListener);\n } catch (MqttException e) {\n // If though it is a non-blocking connect an exception can be\n // thrown if validation of parms fails or other checks such\n // as already connected fail.\n state = ERROR;\n donext = true;\n ex = e;\n }\n }", "protected abstract boolean isConnected();", "protected void assertConnected()\n {\n if (!connected)\n {\n throw new IllegalStateException(\n \"User is not connected to the server\");\n }\n }", "protected synchronized boolean connect() {\n if (isConnecting.get()) {\n if (0 == connectReturnValue.await(connectionTimeout)) {\n return true;\n } else {\n isConnecting.set(false);\n }\n }\n\n\n int connectionValue = connectReturnValue.await(connectionTimeout);\n\n //are we just pretending to be connected? if yes: reconnect.\n if (0 == connectionValue && (BluetoothProfile.STATE_CONNECTED != bluetoothManager.getConnectionState(device, GATT))) {\n connectionValue = -1;\n }\n\n if (0 == connectionValue) {\n return true;\n }\n\n //Now we really are connecting\n isConnecting.set(true);\n connectReturnValue.reset();\n\n\n if (null == logger || null == deviceAddress || null == context || null == bluetoothManager) {\n isConnecting.set(false);\n return false;\n }\n\n\n BluetoothAdapter adapter = bluetoothManager.getAdapter();\n\n if (null == adapter) {\n isConnecting.set(false);\n return false;\n }\n\n\n if (null == device) {\n device = adapter.getRemoteDevice(deviceAddress);\n }\n\n if (null == device) {\n isConnecting.set(false);\n return false;\n }\n\n\n if(null != bleGatt ){\n bleGatt.close();\n }\n\n\n bleGatt = device.connectGatt(context, autoReconnect, this);\n\n if (null == bleGatt) {\n getLogger().println(\"Can't connect to \" + device.getName());\n isConnecting.set(false);\n return false;\n\n } else {\n if (!bleGatt.connect()) {\n isConnecting.set(false);\n return false;\n }\n }\n\n int ret = connectReturnValue.await(connectionTimeout);\n isConnecting.set(false);\n return ret == 0;\n }", "private void checkOpened() throws ConnectException {\n if (!opened) throw new ConnectException(\"Client connection not opened\");\n }", "void tryConnection(String mac)\n {\n if (outstanding_connect != null || open_connection != null) {\n return;\n }\n \n Log.d(Constants.LOG_TAG, \"Attempting to connect to \" + mac);\n \n BluetoothDevice dev = bt_adapter.getRemoteDevice(mac);\n outstanding_connect = new ConnectThread(dev, handler);\n outstanding_connect.start();\n \n }", "public static void doConnect() {\r\n\t\tlogger.info(\"Connecting to server......\");\r\n\t\tChannelFuture future = null;\r\n\t\ttry {\r\n\t\t\tfuture = bootstrap.connect(new InetSocketAddress(host, port));\r\n\t\t\tfuture.addListener(channelFutureListener);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t// future.addListener(channelFutureListener);\r\n\t\t\tlogger.warn(\"Closed connection.\");\r\n\t\t}\r\n\r\n\t}", "public void connect() {\n synchronized (globalLock) {\n if (isRunning) {\n throw new IllegalStateException(\"WebSocketClient is not reusable\");\n }\n\n this.isRunning = true;\n createAndStartConnectionThread();\n }\n }", "protected boolean isConnected() {\n/* 160 */ return this.delegate.isConnected();\n/* */ }", "private boolean canConnect() {\n \t\treturn (currentlyConnectingSockets.get() < maxConnectingSockets)\n \t\t\t\t&& (currentlyOpenSockets.get() < maxOpenSockets);\n \t}", "@Override\r\n\tpublic boolean isConnected() {\n\t\treturn false;\r\n\t}", "public void initiateConnection() {\n\t\tif (Settings.getRemoteHostname() != null) {\n\t\t\ttry {\n\t\t\t\toutgoingConnection(new Socket(Settings.getRemoteHostname(), Settings.getRemotePort()));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \" + Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort() + \" :\" + e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public boolean isConnecting ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _roboCOM!=null;\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}", "public boolean isFirstToConnect() throws IOException;", "public boolean connect() {\n if (this.connection == null) {\n this.connection = JdbcUiUtil.connect(getSource(), getPassword());\n if (this.connection == null) {\n return false;\n }\n fireStateChanged();\n }\n return true;\n }", "void connect() throws UnknownHostException, IOException {\n\t\tif (isConnected()) {\n\t\t\tdisconnect();\n\t\t}\n\t\t\n\t\tif (!ssl) {\n\t\t\tsock = new Socket();\n\t\t} else {\n\t\t\tsock = SSLSocketFactory.getDefault().createSocket();\n\t\t}\n\t\tsock.connect(new InetSocketAddress(host, port));\n\t\t\n\t\tif (sock != null) {\n\t\t\tsock.setKeepAlive(true);\n\t\t\tinStream = new UByteInputStream(new BufferedInputStream(sock.getInputStream(), sock.getReceiveBufferSize()));\n\t\t\tconnected();\n\t\t}\n\t}", "public boolean initAndConnectToServer() {\n try {\n mTCPSocket.connect(new InetSocketAddress(mIpAdress, port), 1000);\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }", "boolean supportsConnects();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean testConnection(){\n\t\tboolean connected = false;\n\t\ttry {\t\t\t\n\t\t\tmMysqlConnection = DriverManager\n\t\t\t\t.getConnection(getConnectionURI());\n\t\t\t\n\t\t\tconnected = true;\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.severe(\"!EXCEPTION: \" + e.getMessage());\n\t\t}\n\n\t\treturn connected;\n\t}", "protected void connect() {\n for (int attempts = 3; attempts > 0; attempts--) {\n try {\n Socket socket = new Socket(\"localhost\", serverPort);\n attempts = 0;\n\n handleConnection(socket);\n }\n catch (ConnectException e) {\n // Ignore the 'connection refused' message and try again.\n // There may be other relevant exception messages that need adding here.\n if (e.getMessage().equals(\"Connection refused (Connection refused)\")) {\n if (attempts - 1 > 0) {\n // Print the number of attempts remaining after this one.\n logger.warning(\"Connection failed (\" + name + \"). \" + \n (attempts - 1) + \" attempts remaining.\");\n }\n else {\n logger.severe(\"Connection failed (\" + name + \"). \");\n }\n }\n else {\n logger.severe(e.toString());\n break;\n }\n }\n catch (Exception e) {\n logger.severe(\"Socket on module '\" + name + \"': \" + e.toString());\n }\n }\n }", "public Status connect()\n {\n return connect(5.0);\n }", "public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }", "private boolean connect() {\n\t\t\n\t\tif (socket == null) {\n\t\t\tsocket = new Socket();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t// Connects to hostName:port, with a timeout of 5s\n\t\t\tsocket.connect(new InetSocketAddress(hostName, port), 5000);\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Connection established to: \" + socket.getRemoteSocketAddress());\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t} catch (SocketTimeoutException e) {\n\t\t\tSystem.err.println(\"SocketTimeoutException: Connection attempt to [\" + (hostName) + \":\" + port + \"] has timed out.\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException: Connection attempt to [\" + (hostName) + \":\" + port + \"] has failed.\");\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\t\t\n\t}", "@Override\n public boolean connect() {\n\n if (!isConnected) {\n try {\n\n Socket socket = new Socket(hostName, portNumber);\n out = new PrintWriter(socket.getOutputStream(), true);\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n isConnected = true;\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return isConnected;\n }", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "public abstract void connect() throws UnknownHostException, IOException;", "public void connect() {}", "@Override\n public boolean isConnected() {\n boolean result = false;\n synchronized (CONN_SYNC) {\n result = ((system != null) && system.isConnected());\n }\n return result;\n }", "@Override\n public void connect() {\n super.connect();\n if (remoteMediaPlayer != null) {\n connected = true;\n reportConnected(connected);\n }\n }", "private boolean connect() {\n\t\tif (this.logging) {\n\t\t\tlogger.debug(\"trying to connect to \" + this.remoteName);\n\t\t}\n\n\t\tboolean connected = this.btc.connectTo(this.remoteName, null,\n\t\t\t\tNXTCommFactory.BLUETOOTH, NXTComm.PACKET);\n\t\tif (!connected) {\n\t\t\tif (this.logging) {\n\t\t\t\tlogger.info(\"not connected to \" + this.remoteName);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.dis = new ExtendedDataInputStream(this.btc.getDataIn());\n\t\t\tthis.dos = this.btc.getDataOut();\n\t\t\tif (this.logging) {\n\t\t\t\tlogger.info(\"connected to \" + this.remoteName);\n\t\t\t}\n\t\t}\n\n\t\treturn connected;\n\t}", "public static boolean isConnected()\r\n\t{\r\n\t\t return Globals.connected ;\r\n\t}", "public void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(host, port);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error connecting: \" + e.getMessage());\n\t\t}\n\t}", "private void checkConnection(){\n NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();\n\n // if activeNetwork is not null, and a network connection is detected,\n // isConnected is true\n boolean isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n // prepare output to indicate connection status\n String message = isConnected ? \"Connection Detected!\" : \"No Connection Detected!\";\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "private void establishConnection() throws UnknownHostException, \n \t\t\t\t\t\t\t\t\t\t IOException {\n \t socket = new Socket(serverIP, serverPort);\n }", "private boolean isConnect(ConnectionSpec connectionSpec) {\r\n\t\tif (connectionSpec == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tJRedis jredis = new JRedisClient(connectionSpec.getAddress().getHostAddress(), connectionSpec.getPort());\r\n\t\ttry {\r\n\t\t\tjredis.ping();\r\n\t\t\tjredis.quit();\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void Connect() {\n run = new Thread(\"Connect\") {\n @Override\n public void run() {\n running = true;\n try {\n server = new ServerSocket(9080);\n waitingForConnection();\n } catch (IOException ex) {\n Logger.getLogger(Dashboard.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n }\n };\n run.start();\n }", "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "private boolean validateConnection() {\n boolean success = _vcVlsi.testConnection();\n if (!success) {\n _log.log(Level.WARNING, \"Found VC connection dropped; reconnecting\");\n return connect();\n }\n return success;\n }", "public void connect() throws Exception\n {\n if(connected)\n return;\n connectionSocket = new Socket(address, CommonRegister.DEFAULT_PORT);\n localPeerID = ++localPeerIDCount;\n initListener();\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n writer = new PrintWriter(connectionSocket.getOutputStream(),true);\n connected = true;\n }", "protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}", "public void connect() throws IOException {\n\t\tsocket = new Socket(host, port);\n\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\tout = new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));\n\t\tconnected = true;\n\t\texecutor = Executors.newScheduledThreadPool(5);\n\t}", "@Override\n public boolean isConnected()\n {\n return connected;\n }", "void connect() throws UnsupportedProtocolVersionException {\n if (isShutdown) return;\n\n List<Host> hosts = new ArrayList<Host>(cluster.metadata.getContactPoints());\n // shuffle so that multiple clients with the same contact points don't all pick the same control\n // host\n Collections.shuffle(hosts);\n setNewConnection(reconnectInternal(hosts.iterator(), true));\n }", "public boolean checkConnected() {\n boolean isClosed = true;\n boolean isValid = false;\n boolean exists = (connection != null);\n\n // If we're waiting for server to recover then leave early\n if (nextReconnectTimestamp > 0 && nextReconnectTimestamp > System.nanoTime()) {\n return false;\n }\n\n if (exists) {\n try {\n isClosed = connection.isClosed();\n }\n catch (SQLException e) {\n isClosed = true;\n e.printStackTrace();\n printErrors(e);\n }\n\n if (!isClosed) {\n try {\n isValid = connection.isValid(VALID_TIMEOUT);\n }\n catch (SQLException e) {\n // Don't print stack trace because it's valid to lose idle connections to the server and have to restart them.\n isValid = false;\n }\n }\n }\n\n // Leave if all ok\n if (exists && !isClosed && isValid) {\n // Housekeeping\n nextReconnectTimestamp = 0;\n reconnectAttempt = 0;\n return true;\n }\n\n // Cleanup after ourselves for GC and MySQL's sake\n if (exists && !isClosed) {\n try {\n connection.close();\n }\n catch (SQLException ex) {\n // This is a housekeeping exercise, ignore errors\n }\n }\n\n // Try to connect again\n connect();\n\n // Leave if connection is good\n try {\n if (connection != null && !connection.isClosed()) {\n // Schedule a database save if we really had an outage\n if (reconnectAttempt > 1) {\n new SQLReconnectTask().runTaskLater(Assassin.p, 5);\n }\n nextReconnectTimestamp = 0;\n reconnectAttempt = 0;\n return true;\n }\n }\n catch (SQLException e) {\n // Failed to check isClosed, so presume connection is bad and attempt later\n e.printStackTrace();\n printErrors(e);\n }\n\n reconnectAttempt++;\n nextReconnectTimestamp = (long) (System.nanoTime() + Math.min(MAX_WAIT, (reconnectAttempt * SCALING_FACTOR * MIN_WAIT)));\n return false;\n }", "public void connect() {\n try {\n socket = connectToBackEnd();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public void connecting() {\n\n }", "public boolean isConnecting() {\n if (mState == STATE_CONNECTING) {\n return true;\n }\n return false;\n }", "@Override\n public boolean isConnected() {\n return connected;\n }", "public static boolean isConnected() {\n return (getCon() != null);\n }", "public boolean isConnected() {\n\t\treturn conn != null;\n\t}", "public void connectionLost(){\n\t\ttry {\n\t\t\tconnect(\"andrewTest\", false, (short) 100);\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\t\t\t\n\t\t\t}\n\t\t\tconnectionLost();\n\t\t\t\n\t\t}\n\t}", "private void connect() {\n if (this.connection == null && !this.connected) {\n try {\n this.connection = DriverManager.getConnection(this.dbUrl, this.dbUser, this.dbPassword);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }", "protected void handleConnect()\n throws ConnectionFailedException\n { \n int registryPort = getRegistryPort(locator);\n Home home = null;\n Exception savedException = null;\n Iterator it = getConnectHomes().iterator();\n \n while (it.hasNext())\n {\n //TODO: -TME Need to figure this out a little better as am now dealing with\n // with 2 ports, the rmi server and the registry.\n try\n {\n home = (Home) it.next();\n String host = home.host;\n final int port = home.port;\n locator.setHomeInUse(home);\n storeLocalConfig(configuration);\n log.debug(this + \" looking up registry: \" + host + \",\" + port);\n final Registry registry = LocateRegistry.getRegistry(host, registryPort);\n log.debug(this + \" trying to connect to: \" + home);\n Remote remoteObj = lookup(registry, \"remoting/RMIServerInvoker/\" + port);\n log.debug(\"Remote RMI Stub: \" + remoteObj);\n setServerStub((RMIServerInvokerInf) remoteObj);\n connected = true;\n break;\n }\n catch(Exception e)\n {\n savedException = e;\n connected = false;\n RemotingRMIClientSocketFactory.removeLocalConfiguration(locator);\n log.trace(\"Unable to connect RMI invoker client to \" + home, e);\n\n }\n }\n\n if (server == null)\n {\n String message = this + \" unable to connect RMI invoker client\";\n log.debug(message);\n throw new CannotConnectException(message, savedException);\n }\n }", "void connect() throws Exception;", "private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }", "public boolean connect(){\n try{\n conn = DriverManager.getConnection(uri, user, password);\n }catch (SQLException sqle){\n DLException dle = new DLException(sqle, \"Unable to conclude this operation\");\n return false;\n }\n return true;\n }", "public boolean Connect() throws IllegalStateException {\r\n\t\t\tString host;\r\n\t\t\tint port;\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\thost = currHostPort.getHost();\r\n\t\t\t\tport = currHostPort.getPort();\r\n\t\t\t\tsocket = new DatagramSocket();\r\n\t\t\t\tinetaddr = InetAddress.getByName(host);\r\n\t\t\t\tsocket.connect(inetaddr, port);\r\n\t\t\t\tsocket.setSoTimeout(connTimeout);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {\t\t\t\t\t// UnknownHostException / IOException / NullPointerException\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "public void connect() throws IOException;", "public boolean connect() {\n try {\n this.bluetoothSocket = this.device.createRfcommSocketToServiceRecord(this.device.getUuids()[0].getUuid());\n this.bluetoothSocket.connect();\n return true;\n } catch (IOException ex) {\n try {\n this.bluetoothSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n this.bluetoothSocket = null;\n }\n return false;\n }", "public void connect() {\n\t\tif (connected) return;\n\t\tconnected = true;\n\t\tfor (SQLConnection sqlConnection: sqlConnections) {\n\t\t\tsqlConnection.connection();\n\t\t}\n\t}", "private boolean isConnected() {\n\t\treturn (this.serverConnection!=null); \n }", "public void connect() {\n\t\tint index = shell.getConnectionsCombo().getSelectionIndex();\n\t\tif (profiles.length == 0 || index < 0 || index >= profiles.length) {\n\t\t\tupdateSelection();\n\t\t\treturn;\n\t\t}\n\t\tIConnectionProfile profile = profiles[index];\n\t\tshell.setEnabled(false);\n\t\tnetworkManager.connect(profile, (s, r) -> {\n\t\t\tif (s) {\n\t\t\t\tcompleted = true;\n\t\t\t\tclose();\n\t\t\t} else {\n\t\t\t\tplugin.sync(() -> {\n\t\t\t\t\tMessageBox messageBox = new MessageBox(shell.isDisposed() ? null : shell, SWT.ICON_ERROR);\n\t\t\t\t\tmessageBox.setMessage(\"Failed to connect!\\n\" + r);\n\t\t\t\t\tmessageBox.open();\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}", "@Override\n public synchronized void connect() throws AlluxioStatusException {\n if (mConnected) {\n return;\n }\n disconnect();\n Preconditions.checkState(!mClosed, \"Client is closed, will not try to connect.\");\n\n IOException lastConnectFailure = null;\n RetryPolicy retryPolicy = mRetryPolicySupplier.get();\n\n while (retryPolicy.attempt()) {\n if (mClosed) {\n throw new FailedPreconditionException(\"Failed to connect: client has been closed\");\n }\n // Re-query the address in each loop iteration in case it has changed (e.g. master\n // failover).\n try {\n mServerAddress = queryGrpcServerAddress();\n } catch (UnavailableException e) {\n LOG.debug(\"Failed to determine {} rpc address ({}): {}\",\n getServiceName(), retryPolicy.getAttemptCount(), e.toString());\n continue;\n }\n try {\n beforeConnect();\n LOG.debug(\"Alluxio client (version {}) is trying to connect with {} @ {}\",\n RuntimeConstants.VERSION, getServiceName(), mServerAddress);\n // set up rpc group channel\n mChannel = createChannel();\n // Create stub for version service on host\n mVersionService = ServiceVersionClientServiceGrpc.newBlockingStub(mChannel);\n mConnected = true;\n afterConnect();\n checkVersion(getServiceVersion());\n\n LOG.debug(\"Alluxio client (version {}) is connected with {} @ {}\", RuntimeConstants.VERSION,\n getServiceName(), mServerAddress);\n return;\n } catch (IOException e) {\n LOG.debug(\"Failed to connect ({}) with {} @ {}\", retryPolicy.getAttemptCount(),\n getServiceName(), mServerAddress, e);\n lastConnectFailure = e;\n if (e instanceof UnauthenticatedException) {\n // If there has been a failure in opening GrpcChannel, it's possible because\n // the authentication credential has expired. Re-login.\n mContext.getUserState().relogin();\n }\n if (e instanceof NotFoundException) {\n // service is not found in the server, skip retry\n break;\n }\n }\n }\n // Reaching here indicates that we did not successfully connect.\n if (mChannel != null) {\n mChannel.shutdown();\n }\n\n if (mServerAddress == null) {\n throw new UnavailableException(\n String.format(\"Failed to determine address for %s after %s attempts\", getServiceName(),\n retryPolicy.getAttemptCount()));\n }\n\n /*\n * Throw as-is if {@link UnauthenticatedException} occurred.\n */\n if (lastConnectFailure instanceof UnauthenticatedException) {\n throw (AlluxioStatusException) lastConnectFailure;\n }\n if (lastConnectFailure instanceof NotFoundException) {\n throw new NotFoundException(lastConnectFailure.getMessage(),\n new ServiceNotFoundException(lastConnectFailure.getMessage(), lastConnectFailure));\n }\n\n throw new UnavailableException(\n String.format(\n \"Failed to connect to master (%s) after %s attempts.\"\n + \"Please check if Alluxio master is currently running on \\\"%s\\\". Service=\\\"%s\\\"\",\n mServerAddress, retryPolicy.getAttemptCount(), mServerAddress, getServiceName()),\n lastConnectFailure);\n }", "public boolean connect(){\n if(isConnect)\n return true;\n\n this.isConnect = true;\n\n this.repository = sqLiteConnect(new Repository().getColumnType());\n\n if(this.repository == null){\n ItemBox.getLogger().severe(\"[Database] \\\"repository\\\" connect fail!\");\n return false;\n }\n\n\n ItemBox.getLogger().info(\"[Database] connect success\");\n return true;\n }", "public boolean connect(){\n \ttry {\n \t\tString writeConcernType = test_properties.getProperty(\"writeConcern\");\n \t\tif (\"none\".equals(writeConcernType)) {\n \t\t\twriteConcern = WriteConcern.NONE;\n \t\t} else if (\"safe\".equals(writeConcernType)) {\n \t\t\twriteConcern = WriteConcern.SAFE;\n \t\t} else if (\"normal\".equals(writeConcernType)) {\n \t\twriteConcern = WriteConcern.NORMAL;\n \t\t} else if (\"journal\".equals(writeConcernType)) {\n \t\twriteConcern = WriteConcern.JOURNAL_SAFE;\n \t\t} else if (\"fsync\".equals(writeConcernType)) {\n \t\twriteConcern = WriteConcern.FSYNC_SAFE;\n \t\t}\n \t\n \t\tm = new Mongo (server, port);\n \t\tm.setWriteConcern(writeConcern);\n \t\tmdb = m.getDB(dbName);\n \n \t \t// Try to authenticate.\n \t\tif (!(user.equals(\"\") || pass.equals(\"\")))\n \t\t\tmdb.authenticate(user, pass.toCharArray());\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n\t\t\treturn false;\n \t\t}\n \treturn true;\n \t }", "public boolean connect(){\r\n\r\n\t\t// Connect to server via TCP socket\r\n\t\ttry {\r\n\r\n\t\t\tclient = new Socket(host, port);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"[EXCEPTION] connecting to server\");\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Connection to server could not be made. Try again later.\", \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\r\n\t\t// Get input and output Streams\r\n\t\ttry {\r\n\r\n\t\t\tpw = new PrintWriter(client.getOutputStream());\r\n\t\t\tbr = new BufferedReader(new InputStreamReader(client.getInputStream()));\r\n\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"[EXCEPTION] creating streams\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Connection to server SUCESSFULL\");\r\n\t\treturn true;\r\n\t}" ]
[ "0.76970303", "0.7615232", "0.7500187", "0.735776", "0.73511934", "0.7345556", "0.7138713", "0.7108822", "0.69431305", "0.6904944", "0.6838642", "0.6833227", "0.6813874", "0.68032646", "0.6783984", "0.6783984", "0.6777995", "0.67771065", "0.6775878", "0.67569333", "0.6747688", "0.67372495", "0.67100704", "0.6693731", "0.6693224", "0.66748357", "0.6664084", "0.66413337", "0.66365767", "0.6635317", "0.66291755", "0.6623288", "0.66216683", "0.66206264", "0.6615597", "0.6615597", "0.66116816", "0.66094536", "0.65975684", "0.65938073", "0.6579798", "0.6578312", "0.6578312", "0.6578312", "0.6578312", "0.6578312", "0.6572367", "0.65664417", "0.65557593", "0.6551563", "0.6538702", "0.65317607", "0.6519785", "0.6519785", "0.6519785", "0.6519785", "0.6519785", "0.6519785", "0.6519785", "0.6519785", "0.6511854", "0.64764833", "0.6441744", "0.6436743", "0.6399396", "0.6393332", "0.6389672", "0.638273", "0.63747835", "0.6363795", "0.63614696", "0.63546413", "0.63509196", "0.63438654", "0.6342096", "0.634186", "0.6316368", "0.63113153", "0.63109857", "0.62996095", "0.6297195", "0.62967896", "0.6294233", "0.62912637", "0.6283094", "0.6282148", "0.62796926", "0.6273892", "0.6267997", "0.62569517", "0.62465745", "0.62360173", "0.6227191", "0.6223946", "0.62211215", "0.6218459", "0.6218005", "0.62067324", "0.62040955", "0.6196606", "0.619289" ]
0.0
-1
Verifies that we're not connected. If we are, then disconnects.
private boolean verifyBTClosed() { if (btSocket != null) { try { btSocket.close(); btSocket = null; } catch (IOException e) { Log.d(TAG, "Exception closing BT socket in BT thread: " + e.toString()); } finally { sendConnectionMessage(EventMessage.EventType.HW_DISCONNECTED); btSocket = null; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDisconnect();", "public void disconnect()\n {\n isConnected = false;\n }", "@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}", "private boolean validateConnection() {\n boolean success = _vcVlsi.testConnection();\n if (!success) {\n _log.log(Level.WARNING, \"Found VC connection dropped; reconnecting\");\n return connect();\n }\n return success;\n }", "@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean isConnected() {\n\t\treturn false;\r\n\t}", "public boolean disconnect() {\r\n\t\t\r\n\t\tString message;\r\n\t\t//ENTER YOUR CODE TO DISCONNECT\r\n\t\tif (isChatSessionOpened()){\r\n\t\t\tsendChatClosure();\r\n\t\t}\r\n\t\t\r\n\t\tmessage= \"106\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\tthis.connectedUser = null;\r\n\t\tthis.chatReceiver = null;\r\n\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "public boolean disconnect(){\n \n try{\n \n if(this.connection.isClosed() == false){\n this.connection.close();\n }\n \n }catch(SQLException e){\n \n System.out.println(e.getMessage());\n return false;\n }\n \n System.out.println(\"Disconnection success\");\n \n return true;\n }", "void onDisconnectFailure();", "protected void disconnect() {\n\t\tif (false == DOM.getElementPropertyBoolean(this.getFrame(), \"__connected\")) {\r\n\t\t\tthis.onUnableToConnect();\r\n\t\t} else {\r\n\t\t\tthis.restart();\r\n\t\t}\r\n\t}", "public boolean hasDisconnect() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private void checkConnectivity() throws NotConnected\n\t{\n\t\tif (!s_ctx.isConnected())\n\t\t{\n\t\t\tthrow new NotConnected(\"Cannot operate: not conected to context\");\n\t\t}\n\t}", "boolean isConnectionLost()\n\t{\n\t\tboolean lost = false;\n\n\t\tif (m_session != null && !m_session.isConnected())\n\t\t\tlost = true;\n\n\t\treturn lost;\n\t}", "@Override\n\tprotected boolean handleDisconnect(Connection conn) {\n\t\treturn true;\n\t}", "public boolean hasDisconnect() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "protected abstract boolean isConnected();", "private static void checkConn() {\n try {\n if (conns.isClosed()) conns = Connect.getConnect();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "boolean getDisconnect();", "protected synchronized boolean checkConnectivity() {\n return this.connect();\n }", "protected void doDisconnect() throws Exception {\n/* 696 */ if (!this.metadata.hasDisconnect()) {\n/* 697 */ doClose();\n/* */ }\n/* */ }", "protected void beforeDisconnect() {\n // Empty implementation.\n }", "public void disconnect() {}", "protected void assertConnected()\n {\n if (!connected)\n {\n throw new IllegalStateException(\n \"User is not connected to the server\");\n }\n }", "public boolean validate_connection() {\n throw new NO_IMPLEMENT(reason);\n }", "private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }", "void disconnect() throws Exception;", "public boolean disconnect() {\n\t\ttry {\n\t\t\tthis.m.close();\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n public boolean reconnect()\r\n {\n return state.isConnected();\r\n }", "public void disconnect() {\n try {\n if (socket != null)\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n isConnected = false;\n }", "@Override\n public void testIfConnected() {\n }", "void disconnect() throws CCommException, IllegalStateException;", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }", "public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }", "public void disconnected(String reason) {}", "void onDisconnect( String errorMsg );", "@Override\n public void Disconnect() {\n bReConnect = true;\n }", "public boolean isConnecting() {\n PublishSubscriber<T> c = state.current;\n return c.connecting && !c.connected && !c.done && !c.isDisposed();\n }", "@Override\n\tpublic boolean canConnect() {\n return false;\n }", "public static void disconnect()\n\t{\n\t\tTASK_LIST.add(ArduinoComms::disconnectInternal);\n\t\tTASK_LIST.add(ArduinoComms::notifyDisconnected);\n\t\t//TODO if waiting at socket.connect from connect() notify the tread\n\t}", "public void connectionLost(){\n\t\ttry {\n\t\t\tconnect(\"andrewTest\", false, (short) 100);\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\t\t\t\n\t\t\t}\n\t\t\tconnectionLost();\n\t\t\t\n\t\t}\n\t}", "public void testConnecitonFails() {\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tConnection c = new Connection(\"localhost\", 4444, this, this);\n\t\t\t// this connection should fail... wait for that:\n\t\t\tfor (int i=0; i<10; i++) {\n\t\t\t\t// if we have a result before our max-wait-time, break\n\t\t\t\tif (connectionStatus != null)\n\t\t\t\t\tbreak;\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\tassertTrue(connectionStatus != null && connectionStatus.booleanValue() == false);\n\t\t} catch (Exception e) {\n\t\t\tassertTrue(\"should not get an exception\", false);\n\t\t}\n\t}", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "public boolean disconnect()\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=disconnect&token=\"+sSecurityToken);\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.value.equalsIgnoreCase(\"true\");\r\n } else {\r\n return false;\r\n }\r\n }", "void disconnect(String reason);", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "@Override\n public void disconnect() {\n super.disconnect();\n if (playStateSubscription != null) {\n playStateSubscription.unsubscribe();\n playStateSubscription = null;\n }\n connected = false;\n }", "public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\tconnection_.close();\r\n\t\t} catch (IOException e) {} // How can closing a connection fail?\r\n\t\t\r\n\t}", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "protected boolean isConnected() {\n/* 160 */ return this.delegate.isConnected();\n/* */ }", "private void assertConnected() throws IllegalStateException\n {\n if (provider == null)\n throw new IllegalStateException(\n \"The provider must be non-null and signed on the \"\n + \"service before being able to communicate.\");\n if (!provider.isRegistered())\n throw new IllegalStateException(\n \"The provider must be signed on the service before \"\n + \"being able to communicate.\");\n }", "private void disconnect() {\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\t\n\t\t// Notify the GUI\n \n\t\tif(cg != null)\n\t\t\tcg.connectionFailed();\n\t\t\t\n\t}", "public static boolean hasDisconnected() {\n return sHasDisconnected;\n }", "protected void onDisconnect() {}", "@Override\npublic boolean isDisconnected(NodeIDType node) {\n\treturn false;\n}", "private void failTheWebSocketConnection() {\n failed = true;\n }", "public static boolean isConnected() { return irc != null && irc.isConnected(); }", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "protected void checkNotClosed() {\n if (closed) {\n throw new IllegalStateException(\"Client has been closed.\");\n }\n }", "private void disconnect()\r\n\t{\r\n\t\tif (theSocket != null)\r\n\t\t{\r\n\t\t\ttheSocket.transmit(\"Disconnecting\");\r\n\t\t\twriteLine(\"Disconnecting...\", 0);\r\n\t\t\twriteLine(\"Closing socket\", 0);\r\n\t\t\ttheSocket.close();\r\n\t\t\ttheSocket = null;\r\n\t\t}\r\n\t\tif (theSocket == null)\r\n\t\t{\r\n\t\t\twriteLine(\"The Socket is null\", 0);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\twriteLine(\"We have now disconnected\", 0);\r\n\t\t}\r\n\t\trunning = false;\r\n\t}", "public IllegalConnectionCheck() {\n listener = new LinkedHashSet<CheckListener>();\n active = true;\n }", "private void checkOpened() throws ConnectException {\n if (!opened) throw new ConnectException(\"Client connection not opened\");\n }", "public boolean checkConnection() {\n\treturn getBoolean(ATTR_CONNECTION, false);\n }", "public void disconnect() {\r\n\ttry {\r\n\r\n\t if (isConnected() && conn != null) {\r\n\t\tconn.close();\r\n\r\n\t\tif (countTables() <= 0 && conn.isClosed()) {\r\n\t\t setConnected(false);\r\n\t\t}\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n }", "public boolean checkConnection() {\n\t\ttry {\n\t\t\tif (con.isClosed() || !isAlive) {\n\t\t\t\treturn connect();\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override // io.reactivex.functions.Predicate\n public boolean test(RxWebSocketState rxWebSocketState) {\n RxWebSocketState rxWebSocketState2 = rxWebSocketState;\n Intrinsics.checkNotNullParameter(rxWebSocketState2, \"it\");\n return !(rxWebSocketState2 instanceof RxWebSocketState.Connecting);\n }", "@Override\n\tpublic boolean connect() {\n\t\treturn false;\n\t}", "private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }", "public boolean isConnecting ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _roboCOM!=null;\r\n\t\t}\r\n\t}", "@Override\n public boolean onError(Throwable t) {\n connected.completeExceptionally(t);\n return true; //hints at handler to disconnect due to this error\n }", "public void disconnect() {\n\t\t\n\t}", "public boolean isConnected() {\n\t\tif (m == null) return false;\n\t\telse return true;\n\t}", "abstract protected void onDisconnection();", "public static void disconnect() {\r\n if (isConnected()) {\r\n listener.interrupt();\r\n timerThread.interrupt();\r\n keepAliveThread.interrupt();\r\n db.writeDatabase();\r\n ObjectIO.writeObjectToFile(cmdPath, cmd);\r\n tc.stopCommands();\r\n ObjectIO.writeObjectToFile(tcPath, tc);\r\n try {\r\n irc.close();\r\n }\r\n catch (IOException e) { /* Shouldn't happen */ }\r\n }\r\n irc = null;\r\n }", "@Override\n public boolean disconnectFromSensor() {\n return false;\n }", "private boolean canConnect() {\n \t\treturn (currentlyConnectingSockets.get() < maxConnectingSockets)\n \t\t\t\t&& (currentlyOpenSockets.get() < maxOpenSockets);\n \t}", "void onDisconnect();", "void onDisconnect();", "public void disconnect() {\n if (logger.isActivated()) {\n logger.info(\"Network access disconnected\");\n }\n ipAddress = null;\n }", "private void disconnect() {\n\t\t\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t} catch(Exception e) {}\n\t\t\n // informa ao Gui\n if(clientGui != null) clientGui.connectionFailed();\n\t\t\t\n\t}", "public static boolean isConnected() {\n return (getCon() != null);\n }" ]
[ "0.74778205", "0.7035717", "0.6962319", "0.67668533", "0.67426485", "0.67426485", "0.67328274", "0.65919393", "0.654777", "0.654777", "0.6482686", "0.64080256", "0.640347", "0.640333", "0.639562", "0.6380644", "0.63804895", "0.63726336", "0.6371678", "0.6364393", "0.6325768", "0.63103724", "0.63065654", "0.62662596", "0.625246", "0.6228691", "0.62048876", "0.6196404", "0.6185658", "0.61820084", "0.6177433", "0.614759", "0.6138417", "0.612601", "0.6109195", "0.6096025", "0.60914236", "0.60914224", "0.6085767", "0.6082866", "0.6078555", "0.60773903", "0.60737085", "0.60669154", "0.6064047", "0.60568386", "0.6047187", "0.6036156", "0.60203606", "0.6015853", "0.6015853", "0.6015853", "0.6015853", "0.6015853", "0.6015853", "0.6015853", "0.6015853", "0.6006819", "0.59999484", "0.599757", "0.599757", "0.599757", "0.599757", "0.599757", "0.599064", "0.598762", "0.5984873", "0.5975181", "0.5971183", "0.5968479", "0.5964231", "0.5958056", "0.59519947", "0.5944858", "0.5944858", "0.5944858", "0.5944858", "0.59424794", "0.5941161", "0.5941131", "0.59311616", "0.5926523", "0.5920874", "0.5916048", "0.59147406", "0.58954215", "0.58952785", "0.58632964", "0.5854265", "0.5853724", "0.5846034", "0.582726", "0.58257794", "0.5823432", "0.5821372", "0.58203715", "0.58203715", "0.5819098", "0.5813941", "0.5810238" ]
0.6012245
57
Broadcast the received data on the event bus.
private void sendData(SensorData sensorData) { EventMessage message = new EventMessage(EventMessage.EventType.RECEIVED_RAW_DATA); message.setSensorData(sensorData); EventBus.getDefault().post(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void broadcast()\n\t{\n\t\ttopic.broadcast(originalMessage);\n\t}", "public void broadcast() {\n for (int i = 1; i <= nbMessagesToBroadcast; i++) {\n Message broadcastMsg = new Message(pid, pid, i,false, null);\n lcb.broadcast(broadcastMsg);\n logs.add(String.format(\"b %d\\n\",i));\n }\n }", "public void broadcast(Object msg);", "private void sendEntryDataBroadcast() {\n Log.v(TAG, recordingEntry + \" == recordingENtry\");\n Intent i = new Intent();\n i.setAction(IntentFilterNames.ENTRY_DATA_RECEIVED);\n i.putExtra(IntentFilterNames.ENTRY_DATA, journalEntryController.getEntry());\n sendBroadcast(i);\n }", "@Override\n public void publish(final EventData data) {\n LOGGER.debug(\"async event {} published via vert.x EventBus\", data.getData().ret$PQON());\n if (bus != null) {\n final EventParameters attribs = data.getData();\n if (attribs instanceof GenericEvent genericEvent) {\n bus.publish(toBusAddress(genericEvent.getEventID()), data, ASYNC_EVENTBUS_DELIVERY_OPTIONS);\n } else {\n bus.publish(toBusAddress(attribs.ret$PQON()), data, ASYNC_EVENTBUS_DELIVERY_OPTIONS);\n }\n } else {\n LOGGER.error(\"event bus is null - discarding event {}\", data.getData().ret$PQON());\n }\n }", "public void broadcast(byte[] data)\n\t{\n\t\tfor(Connection c : CLIENTS)\n\t\t{\n\t\t\tsend(new Packet(data, c.getAddress(), c.getPort()));\n\t\t}\n\t}", "@Override\n public void send(final EventData data) {\n LOGGER.debug(\"async event {} sent via vert.x EventBus\", data.getData().ret$PQON());\n if (bus != null) {\n final EventParameters attribs = data.getData();\n if (attribs instanceof GenericEvent genericEvent) {\n bus.send(toBusAddress(genericEvent.getEventID()), data, ASYNC_EVENTBUS_DELIVERY_OPTIONS);\n } else {\n bus.send(toBusAddress(attribs.ret$PQON()), data, ASYNC_EVENTBUS_DELIVERY_OPTIONS);\n }\n } else {\n LOGGER.error(\"event bus is null - discarding event {}\", data.getData().ret$PQON());\n }\n }", "@Override\n public void receivedBroadcast() {\n Log.d(TAG, \"Received broadcast notification. Querying inventory.\");\n try {\n mHelper.queryInventoryAsync(mGotInventoryListener);\n } catch (IabHelper.IabAsyncInProgressException e) {\n complain(\"Error querying inventory. Another async operation in progress.\");\n }\n }", "@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n if (messageEvent.getPath().equals(\"/watch/newSmokeEvents\")) {\n\n /* ...retrieve the message */\n final byte[] receivedEvents = messageEvent.getData();\n\n Intent messageIntent = new Intent();\n messageIntent.setAction(Intent.ACTION_SEND);\n messageIntent.putExtra(\"NEW_EVENTS_DATA\", receivedEvents);\n\n /* Broadcast the received Data Layer messages locally -> send to Synchronize */\n LocalBroadcastManager.getInstance(this).sendBroadcast(messageIntent);\n }\n else if (messageEvent.getPath().equals(\"/watch/newSensorData\")){\n\n Intent synchronizeServiceIntent = new Intent(this, SynchronizeService.class);\n synchronizeServiceIntent.putExtra(\"RECEIVED_SYNC_HASH_LIST_REQUEST\", true);\n SynchronizeService.enqueueWork(this, synchronizeServiceIntent);\n\n }\n else {\n super.onMessageReceived(messageEvent);\n }\n\n }", "public void systemBroadcast(Object inData) {\n\t\tString data = Encoder.toJson(inData);\n\t\tShout shout = createShout(TYPE_SYSTEM, data);\n\t\tMessage onShout = createMessage(\"shoutclient\", \"onShout\", Encoder.toJson(shout));\n\t\tonShout(null, onShout);\n\t}", "private void notifyOnBinaryReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onBinaryReceived(data);\n }\n }\n }", "private void sendMessage() {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"custom-event-name\");\n // You can also include some extra data.\n double[] destinationArray = {getDestination().latitude,getDestination().longitude};\n intent.putExtra(\"destination\", destinationArray);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "@Override\n public void publish(final EventData data) {\n LOGGER.debug(\"async event {} published via LocalAsyncProcessor\", data.getData().ret$PQON());\n LOGGER.debug(\"(currently events are discarded in localtests)\");\n }", "@Override\n public void onMessage(Message message) {\n try {\n // Generate data\n QueueProcessor processor = getBean(QueueProcessor.class);\n ServiceData serviceData = processor.parseResponseMessage(response, message);\n\n // If return is a DataList or Data, parse it with the query\n if (serviceData.getClientActionList() == null || serviceData.getClientActionList().isEmpty()) {\n serviceData = queryService.onSubscribeData(query, address, serviceData, parameterMap);\n } else {\n // Add address to client action list\n for (ClientAction action : serviceData.getClientActionList()) {\n action.setAddress(getAddress());\n }\n }\n\n // Broadcast data\n broadcastService.broadcastMessageToUID(address.getSession(), serviceData.getClientActionList());\n\n // Log sent message\n getLogger().log(QueueListener.class, Level.DEBUG,\n \"New message received from subscription to address {0}. Content: {1}\",\n getAddress().toString(), message.toString());\n } catch (AWException exc) {\n broadcastService.sendErrorToUID(address.getSession(), exc.getTitle(), exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n } catch (Exception exc) {\n broadcastService.sendErrorToUID(address.getSession(), null, exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n }\n }", "@Override\n public void onData(SocketIOClient client, Message data, AckRequest ackRequest) {\n data = new Message(\"hello i'm server\");\n //yuyuenamespace.getBroadcastOperations().sendEvent(\"message\", data);\n }", "void onBusEvent(Event event);", "public interface MyBroadcastListener {\n void receivedBroadcast();\n }", "public void run() {\n\t\t\t\tInetAddress bAddr = AndyNet.getBroadcastIP(activity);\n\t\t\t\tLog.i(TAG, \"Broadcast Address: \" + bAddr.getHostAddress());\n\t\t\t\tif (bAddr != null) {\n\t\t\t\t\tAndyNet.startBroadcast(AndyMaster.getName(), 0, bAddr);\n\t\t\t\t}\n\n\t\t\t}", "public void doSomeChanges() {\n\n eventBus.publish(\"our.event.coming.from.model\", \"some data passed\");\n }", "public void run()\n\t{\n\t\t// The instance of the received broadcast request. 11/29/2014, Bing Li\n\t\tSearchKeywordBroadcastRequest request;\n\t\t// The thread always runs until it is shutdown by the BoundNotificationDispatcher. 11/29/2014, Bing Li\n\t\twhile (!this.isShutdown())\n\t\t{\n\t\t\t// Check whether the notification queue is empty. 11/29/2014, Bing Li\n\t\t\twhile (!this.isEmpty())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t// Dequeue the request. 11/29/2014, Bing Li\n\t\t\t\t\trequest = this.getNotification();\n\t\t\t\t\t// Disseminate the broadcast request to the local node's children. 11/29/2014, Bing Li\n\t\t\t\t\tMemoryMulticastor.STORE().disseminateSearchKeywordRequestAmongSubMemServers(request);\n\t\t\t\t\t// Notify the binder that the thread's task on the request has done. 11/29/2014, Bing Li\n\t\t\t\t\tthis.bind(super.getDispatcherKey(), request);\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait for a moment after all of the existing requests are processed. 11/29/2014, Bing Li\n\t\t\t\tthis.holdOn(ServerConfig.NOTIFICATION_THREAD_WAIT_TIME);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void send(final EventData data) {\n LOGGER.debug(\"async event {} sent via LocalAsyncProcessor\", data.getData().ret$PQON());\n LOGGER.debug(\"(currently events are discarded in localtests)\");\n }", "public void onReceive();", "public void onDataRecieved(byte data[]);", "private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }", "@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }", "void onDataReceived(int source, byte[] data);", "public static void sendBroadcast(){\n Intent intent = new Intent(CUSTOM_BROADCAST_ACTION);\n context.sendBroadcast(intent);\n }", "@EncoderThread\n protected void onEvent(@NonNull String event, @Nullable Object data) {}", "@Override\n public void publish(Event<? extends Enum, ?> event) {\n byte[] body = null;\n if (null == event) {\n log.error(\"Captured event is null...\");\n return;\n }\n if (event instanceof DeviceEvent) {\n body = bytesOf(MQUtil.json((DeviceEvent) event));\n } else if (event instanceof TopologyEvent) {\n body = bytesOf(MQUtil.json((TopologyEvent) event));\n } else if (event instanceof LinkEvent) {\n body = bytesOf(MQUtil.json((LinkEvent) event));\n } else {\n log.error(\"Invalid event: '{}'\", event);\n return;\n }\n processAndPublishMessage(body);\n }", "private void startBroadcaster() {\n mHandler.post(mBroadcaster);\n }", "@Override\n\tpublic void onNotify(EventData data) {\n\t\tEchoResponseEventData echoData = (EchoResponseEventData) data;\n\t\tSocket connection = echoData.getPacket().getConnection();\n\n\t\ttry {\n\t\t\tDataOutputStream dos = new DataOutputStream(\n\t\t\t\t\tconnection.getOutputStream());\n\t\t\tdos.writeUTF(echoData.getPacket().getMessage());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void dataSent(LLRPDataSentEvent event);", "public void onDataReceived(byte[] data, String message) {\n }", "@Override\n public void broadcastBlock(final Block block) {}", "public abstract boolean broadcast() throws IOException;", "@Override\n\t\t\t\tpublic void notifyReceived(LinphoneCore lc, LinphoneCall call,\n\t\t\t\t\t\tLinphoneAddress from, byte[] event) {\n\t\t\t\t\t\n\t\t\t\t}", "private void notifyOnPingReceived(byte[] data) {\n synchronized (globalLock) {\n if (isRunning) {\n onPingReceived(data);\n }\n }\n }", "public void broadcast(String message){\n Iterator it = subscribedClientsOutputStreams.iterator(); \n while(it.hasNext()){\n try{\n PrintWriter writer = (PrintWriter) it.next();\n writer.println(message);\n writer.flush();\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n }", "public interface BAPushDataEventHandler {\n\tpublic void publishedData(BAEvent event);\n}", "void assignDataReceived(Serializable dataReceived);", "void onMessageRead(byte[] data);", "public void startReceiving() {\n\t\tHandlerThread handlerThread = new HandlerThread(\n\t\t\t\t\"DataExportationReceiverThread\");\n\t\thandlerThread.start();\n\t\tcallerContext.registerReceiver(this, new IntentFilter(\n\t\t\t\tDataExportationService.BROADCAST_ACTION), null, new Handler(\n\t\t\t\thandlerThread.getLooper()));\n\t}", "public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "@Override\r\n\t\t\tpublic void broadcast(ID source, ID target, Boolean hit) {\n\t\t\t\t\r\n\t\t\t}", "private void receive() {\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tsuper.store(generateSimulateData());\n\t\t\t\t\tSystem.out.println(\"模拟接收数据\");\n\t\t\t\t\tThread.sleep(10000);\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t }", "public void broadcast(PacketHandle packet) {\n super.broadcast(packet);\n }", "public void recvSensorEvent(Object data_)\n\t{\n\t\tList<Tuple> event = ConstructSensingEvent((Message) data_) ;\n\t\tmicroLearner.handleSensorEvent(event);\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.e(\"SERVICE\",\"sulod\");\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setAction(ResponseReceiver.ACTION_RESP);\n\t\t\t\tintent.addCategory(Intent.CATEGORY_DEFAULT);\n\t\t\t\tintent.putExtra(\"MESSAGE\", 100);\n\t\t\t\tsendBroadcast(intent);\n\t\t\t}", "@Override\n public void onReceive(Object message) throws Exception {\n }", "@Override\n\tpublic synchronized void sendBroadcast(Broadcast b) {\n\t\tif (typesQueue != null && !typesQueue.isEmpty())\n\t\t{\n\t\t\tif(typesQueue.containsKey(b.getClass()) && !typesQueue.get(b.getClass()).isEmpty())\n\t\t\t{\n\t\t\t\tif(subscribersMessages!=null)\n\t\t\t\t{\n\t\t\t\t\tfor (Subscriber s : typesQueue.get(b.getClass())) {\n\t\t\t\t\t\tsubscribersMessages.get(s).add(b);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnotifyAll();\n\t}", "public interface BroadcastListener {\n void broadcastIdAdded(String groupId);\n\n void broadcastMemberAdded(String result, String resultType);\n\n void broadcastDeleteResponse(String response);\n\n void broadcastRemoveMemberResponse(String response);\n\n void broadcastInfoUpdatedResponse(String response);\n}", "private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}", "public void run(){\n ExecutionPlan executionPlan = new ExecutionPlan().invoke();\n\n Thread thisThread = Thread.currentThread();\n\n while (sidhdiThread == thisThread) {\n InputHandler inputHandler = executionPlan.getInputHandler();\n\n //Sending events to Siddhi\n try {\n List<BLE> bleReadings = read();\n for(BLE ble : bleReadings){\n System.out.println(\"Publishing data...\");\n inputHandler.send(new Object[]{ble.getId(), ble.getTimeStamp(), ble.getLocation()});\n }\n\n thisThread.sleep(INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n break;\n }\n }\n }", "protected void sendResultMessage(Object data) {\n EventBus.getDefault().post(data);\n }", "@Override\n public void payload(byte[] data) {\n \tmLastMessage.append(new String(data));\n Log.d(TAG, \"Payload received: \" + data);\n }", "@Override\r\n public void onReceivedData(byte[] arg0) {\r\n dataManager.onReceivedData(arg0);\r\n }", "@Override\n public void publish(Object event) {\n System.out.println(\"Sending Event\");\n\n List<Hub> hubList = hubFacade.findAll();\n Iterator<Hub> it = hubList.iterator();\n while (it.hasNext()) {\n Hub hub = it.next();\n restEventPublisher.publish(hub, event);\n\n\n //Thread.currentThread().sleep(1000);\n }\n System.out.println(\"Sending Event After\");\n }", "@Override\n\tpublic void SendAndReceiveData() throws APIException \n\t{\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.beforeSendAndReceiveData();\n\t\ttry\n\t\t{\n\t\t\tapi.SendAndReceiveData();\n\t\t}\n\t\tcatch(APIException e)\n\t\t{\n\t\t\tfor (Listener listen : listeners1)\n\t\t\t\tlisten.onError(e);\n\t\t\tthrow new APIException(e);\n\t\t}\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.afterSendAndReceiveData();\n\t}", "@CallByThread(\"Netty EventLoop\")\n @Override\n public void run() {\n if (referenced > 0) { // is blocking\n incomingPublishService.drain();\n }\n }", "@Override\n\tpublic void notifyReceived(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneAddress from, byte[] event) {\n\t\t\n\t}", "public void run()\n\t{\n\t\twhile (true)\n\t\t{\n\t\t\t// Get a broadcast\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\t// Split the data into its elements\n\t\t\tString[] parts = str.split(\"\\0\");\n\t\t\t\n\t\t\t// Determine whether something new is playing, or nothing is playing\n\t\t\t// If nothing is playing ...\n\t\t\tif (parts[0].equals(\"nothinghere\"))\n\t\t\t{\n\t\t\t\t// ... package that as a NowPlayingEvent\n\t\t\t\tNowPlayingEvent ev = new NowPlayingEvent(null, null, null, null, colorParse(parts[1]), str);\n\t\t\t\t\n\t\t\t\t// ... keep track of it\n\t\t\t\tlastEvent = ev;\n\t\t\t\tlastWasClearEvent = true;\n\t\t\t\t\n\t\t\t\t// ... and notify all registered 'NowPlayingListener's\n\t\t\t\tfor (NowPlayingListener listener : listeners)\n\t\t\t\t\tlistener.nowPlayingSongCleared(ev);\n\t\t\t}\n\t\t\t// Otherwise, something new is playing ...\n\t\t\telse\n\t\t\t{\n\t\t\t\t// ... package that as a NowPlayingEvent\n\t\t\t\tNowPlayingEvent ev = new NowPlayingEvent(parts[0], parts[1], parts[2], parts[3], colorParse(parts[4]), str);\n\t\t\t\t\n\t\t\t\t// ... keep track of it\n\t\t\t\tlastEvent = ev;\n\t\t\t\tlastWasClearEvent = false;\n\t\t\t\t\n\t\t\t\t// ... and notify all registered 'NowPlayingListener's\n\t\t\t\tfor (NowPlayingListener listener : listeners)\n\t\t\t\t\tlistener.nowPlayingSongSet(ev);\n\t\t\t}\n\t\t}\n\t}", "public void receiveData() throws IOException;", "@Override\r\n\tpublic void onReceive(Object arg0) throws Exception {\n\t\t\r\n\t}", "private void handleApplicationDataMessage(IOSMessage message) {\n }", "public void broadCast(){\n // how many events the user want to broadcast to\n List<String> events = messageController.eventsOfSpeakerInString(speaker);\n ArrayList<String> potentialAnswer= listBuilderWithIntegers(events.size());\n if(potentialAnswer.size() != 0){\n this.speakerMessageScreen.numOfEvents();\n String stringAnswer = this.scanner.nextLine();\n while(!potentialAnswer.contains(stringAnswer)){\n this.speakerMessageScreen.invalidInput(stringAnswer);\n stringAnswer = this.scanner.nextLine();\n }\n int integerAnswer = Integer.parseInt(stringAnswer);\n // now the user want to broadcast to integerAnswer number of events at once\n\n // gives options\n this.speakerMessageScreen.broadCastOptions(events);\n\n ArrayList<String> selectedEvents = new ArrayList<>();\n for(int i = 1; i <= integerAnswer; i++){\n stringAnswer = this.scanner.nextLine();\n while(!potentialAnswer.contains(stringAnswer)){\n this.speakerMessageScreen.invalidInput(stringAnswer);\n stringAnswer = this.scanner.nextLine();\n }\n selectedEvents.add(stringAnswer);\n }\n\n\n ArrayList<Event> allEvents = this.messageController.eventsOfSpeaker(speaker);\n ArrayList<String> finalTargetEvents = new ArrayList<>();\n for(String identifier: selectedEvents){\n finalTargetEvents.add(allEvents.get(Integer.parseInt(identifier)-1).getId());\n }\n\n // now finalTargetEvents contains all events selected by user.\n\n this.speakerMessageScreen.whatMessage();\n String message = this.scanner.nextLine();\n\n // then broadcast\n this.messageController.broadCastForSpeakerMoreEvents(finalTargetEvents, speaker, message);\n\n speakerMessageScreen.congratulations();\n }else{\n speakerMessageScreen.noEvent();\n }\n\n\n }", "private void updateReceivedData(byte[] data) {\n }", "public static void sendEventBoradcast(Context context, final String actionPayload, final String data){\r\n \t\tif(TextUtils.isEmpty(actionPayload)){\r\n \t\t\tthrow new IllegalArgumentException(\"Invalid action payload\");\r\n \t\t}\r\n \t\tIntent intent = new Intent();\r\n \t\tintent.setAction(CUSTOM_INTENT_ACTION);\r\n \t\tintent.putExtra(\"APPLICATION_ACTION\", actionPayload);\r\n\t\tif(!TextUtils.isEmpty(data)){\r\n \t\t\tintent.putExtra(\"APPLICATION_DATA\", data);\t\t\t\r\n \t\t}\r\n \t\tcontext.sendBroadcast(intent);\r\n \t}", "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context, \"Broadcast Received\", Toast.LENGTH_LONG).show();\n /*\n first param is the context\n second param is message to display\n third param is the duration to display the message\n */\n }", "public void onEvent(TCPReceiverThread receiverThread, Event event) throws IOException;", "public void broadcast(String message) throws BroadcastException {\n\t\t\n\t}", "@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }", "public void receive(byte[] data, Connection from){\r\n System.out.println(\"Received message: \"+ new String(data));\r\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n switch (action) {\n case RoosterConnectionService.NEW_MESSAGE:\n// k = RoosterConnectionService.NEW_MESSAGE;\n String from = intent.getStringExtra(RoosterConnectionService.BUNDLE_FROM_JID);\n String body = intent.getStringExtra(RoosterConnectionService.BUNDLE_MESSAGE_BODY);\n// if(body.toUpperCase().contains(\"V\".toUpperCase()) ) {\n message(body);\n// }\n return;\n\n case RoosterConnectionService.UI_AUTHENTICATED:\n Toast.makeText(getApplicationContext(), \"authenticated\", Toast.LENGTH_SHORT).show();\n// Log.d(TAG,\"Got a broadcast to show the main app window\");\n //Show the main app window\n// showProgress(false);\n// Intent i2 = new Intent(mContext,ContactListActivity.class);\n// startActivity(i2);\n// finish();\n\n break;\n }\n\n\n }", "public void run() {\n\n\t\tinitListen(new OnReceivedListener() {\n\t\t\t@Override\n\t\t\tpublic void onReceived() throws Exception {\n\n\t\t\t\tmSocket.receive(new DatagramPacket(mQuickBuffer, mQuickBuffer.length));\n\t\t\t\tPacket packet = (Packet) deserialization(mQuickBuffer);\n\t\t\t\tif (packet.isAck()) {\n\t\t\t\t\tSR.updateBufferSlotTimerSender(packet.getSeq(), BufferSlotTimer.ACKED);\n\t\t\t\t\tSR.output.append(\"(S) - Acknowledgment for Packet \" + packet.getSeq() + \" has been Received \\n\");\n\t\t\t\t\tSR.updateBaseSnd();\n\t\t\t\t\tSR.getBufferSlotTimerSender(packet.getSeq()).stopTimerTimeout();\n\t\t\t\t\tSR.output.append(\"(S) - Timer for Packet \" + packet.getSeq() + \" has been stopped \\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "void sendDataForSubscriber(int subId, String callingPkg, String destAddr,\n String scAddr, int destPort, byte[] data, PendingIntent sentIntent,\n PendingIntent deliveryIntent);", "@Override\n public void onReceive(Context context, Intent intent) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"got it\");\n }", "public void sendBroadcast(byte[] bytesToSend)\n {\n if (m_name != null)\n {\n m_socket.write(bytesToSend);\n }\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n filterDayWise();\n }", "@Override\n public void onReceive(Object msg) throws Exception {\n }", "public abstract void onBinaryReceived(byte[] data);", "@Override\n\tpublic void sendBroadcast(Broadcast b) {\n\t\tArrayList<MicroService> a = registrationHashMap.get(b);\n\t\t// adding the broadcast message to the queue of each microservice on the subscribed list\n\t\tfor (Object o : a) {\n\t\t\tint index = registeredMicroservice.indexOf(o);\n\t\t\tmicroserviceMessageQueue.get(index).add(b);\n\t\t}\n\t}", "@SuppressWarnings(\"WeakerAccess\")\n\tprotected abstract void onMessageReceived(@NonNull BroadcastMessage message);", "@Subscribe(threadMode = ThreadMode.MAIN)\n public void onScan(DataEvent event) {\n Log.d(TAG, \"onScan : event = [\" + event + \"]\");\n DecodedData data = event.getData();\n print(data.getString());\n }", "private void broadcastData(String data, User currentUser) throws IOException {\n Set<User> keySet = connectedUsers.keySet();\n int count = 0;\n\n for (User temp : keySet) {\n if (temp.equals(currentUser)) {\n continue;\n }\n\n SocketChannel socketChannel = connectedUsers.get(temp);\n OperationHandler.sendData(socketChannel, currentUser.getUserName() + \": \" + data);\n count++;\n }\n\n // Send feedback to the user.\n SocketChannel socketChannel = connectedUsers.get(currentUser);\n OperationHandler.sendData(socketChannel, String.format(Constants.MESSAGE_SENT, count));\n }", "public void store() {\r\n\t\tdata = busExt.get();\r\n\t}", "@Override\n public void dataReceived(PlayingInfoModel result) {\n }", "public void receivedDataFromStation(int station, String data) {}", "private void broadcast() {\n for (int key : bootstrapMap.keySet()) {\n bootstrapMap.get(key).getBroadcastView().show(Colors.BLUE + gameService.getCurrentPlayer().getName() + Colors.NOCOLOR, lastAnswer);\n }\n gameService.upDateCurrentPlayer();\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEventBuffer) {\n for (DataEvent event : dataEventBuffer) {\n if (event.getType() == DataEvent.TYPE_CHANGED) {\n // DataItem changed\n DataItem item = event.getDataItem();\n if (item.getUri().getPath().compareTo(\"/latlnglist\") == 0) {\n\n DataMap dataMap = DataMapItem.fromDataItem(item).getDataMap();\n\n Log.d(\"hudwear\", \"new data, sending message to handler\");\n\n Message m = new Message();\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", dataMap.getDouble(\"latitude\"));\n b.putDouble(\"longitude\", dataMap.getDouble(\"longitude\"));\n m.setData(b);\n handler.sendMessage(m);\n }\n\n } else if (event.getType() == DataEvent.TYPE_DELETED) {\n // DataItem deleted\n }\n }\n }", "private void broadcast(String msg) {\n\t\tfor (PrintWriter out : clients) {\n\t\t\tout.println(msg);\n\t\t\tout.flush();\n\t\t}\n\t}", "private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }", "private synchronized void broadcastMessage(String body) {\n logger.debug(\"Broadcasting message: \" + body);\n Message message = ConfigurationPacket.createMessage(body);\n message.setFrom(serverId);\n this.sessionManager.broadcast(message);\n }", "private void sendMyBroadCast(String s)\n {\n try\n {\n Intent broadCastIntent = new Intent();\n broadCastIntent.setAction(MainActivity.BROADCAST_ACTION);\n\n // uncomment this line if you want to send data\n broadCastIntent.putExtra(\"data\", s);\n\n sendBroadcast(broadCastIntent);\n\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }", "public abstract void onPingReceived(byte[] data);", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n }", "public void beginBroadcast() {\n updateNewsMessages();\n setDelay(getConfigUtil().getDelay());\n setNewsTask(initiateNewsTask(getNewsMessages().listIterator()));\n }", "@Override\n public void run() {\n ZMQ.Context context = ZMQ.context(2);\n\n ZMQ.Socket publisher = context.socket(ZMQ.PUB);\n publisher.setAffinity(1);\n publisher.setHWM(0);\n publisher.bind(\"tcp://*:5556\");\n //publisher.bind(\"ipc://weather\");\n\n ZMQ.Socket incoming = context.socket(ZMQ.PULL);\n incoming.setHWM(0);\n incoming.setAffinity(2);\n incoming.bind(\"tcp://*:5557\");\n\n System.out.println(\"Sequencer is alive\");\n\n ZMQ.proxy(incoming, publisher, null);\n // while (! Thread.currentThread().isInterrupted()) {\n // byte[] data = incoming.recv(0);\n // //System.out.printf(\"Received message with %d bytes\\n\", data.length);\n // publisher.send(data, 0);\n // }\n\n publisher.close();\n incoming.close();\n context.term();\n }", "public void read() {\r\n\t\tbusExt.put(data);\r\n\t}", "@Test\n void awaitMessage() {\n\n Message message = null;\n TempBroadcast b = new TempBroadcast(\"broadcastSender2\");\n\n broadcastReceiver.subscribeBroadcast(TempBroadcast.class, c -> {\n });\n broadcastSender.sendBroadcast(b);\n\n // here we will check the method\n try {\n message = messageBus.awaitMessage(broadcastReceiver);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n //due to the assumption above, an exception is not supposed to be thrown\n }\n assertEquals(b, message);\n }" ]
[ "0.64186144", "0.6392569", "0.6387547", "0.62312037", "0.60645485", "0.5863174", "0.5858464", "0.5828157", "0.57581633", "0.5720424", "0.57093745", "0.5704554", "0.56762314", "0.5659334", "0.5656252", "0.56477934", "0.56444126", "0.56219393", "0.5582206", "0.55729854", "0.55658007", "0.55286", "0.55167854", "0.5503019", "0.5496077", "0.5493866", "0.54861546", "0.54860824", "0.5482873", "0.548264", "0.5462734", "0.545785", "0.5437426", "0.5434009", "0.5423481", "0.5386268", "0.53823924", "0.53699636", "0.53546673", "0.5346489", "0.5346216", "0.53341055", "0.5331699", "0.5328804", "0.5323431", "0.53216875", "0.5302064", "0.5277179", "0.5271393", "0.52635026", "0.5258793", "0.5232373", "0.5231814", "0.52264017", "0.52222824", "0.52205634", "0.52182305", "0.52169377", "0.52075654", "0.5205366", "0.5196603", "0.5195497", "0.5191937", "0.5186304", "0.51855975", "0.51850957", "0.51727057", "0.5169143", "0.5150568", "0.51501405", "0.5149416", "0.5141154", "0.5126727", "0.5122931", "0.5121889", "0.51179755", "0.5117914", "0.5114793", "0.511265", "0.51090795", "0.5107429", "0.51001346", "0.50923866", "0.5085308", "0.5073929", "0.50703204", "0.50623184", "0.5059075", "0.50561935", "0.50414103", "0.5038795", "0.5035953", "0.5032864", "0.5030793", "0.5028901", "0.5028901", "0.5028028", "0.5026071", "0.50260425", "0.5021913" ]
0.50960803
82
Gets the str label name.
public String getStrLabelName() { return strLabelName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "public String getLabelName() {\n return m_labelName;\n }", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String nameLabel();", "java.lang.String getLabel();", "public String getLabel() {\n\t String name = getLiteralValue(Foaf.NAME);\n\t \n\t if (name == null) {\n\t name = getLiteralValue(Foaf.GIVENNAME);\n\t }\n\t \n\t if (name == null) {\n\t name = getLiteralValue(RDFS.label);\n\t }\n\t \n\t if (name == null) {\n\t return getURI();\n\t }\n\t return name;\n }", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "public java.lang.String getLabel();", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "public String getLabel() {\r\n return lbl;\r\n }", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\n {\n return label;\n }", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel() {\n\t\treturn label;\n\t}", "public String getLabel() {\n\t\treturn this._label;\n\t}", "public String getLabel()\n {\n return label;\n }", "String getLabel() {\n return label;\n }", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String getLabel()\n {\n return m_label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel(){\n\t\treturn label;\n\t}", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public String getLabel() {\n return label;\n }", "public String getLabel()\n { \n return label;\n }", "String getLabel();", "String getLabel();", "public String getLabel() {\n return label;\n }", "public String label() {\n return this.label;\n }", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "private String getLabel() {\n return this.label;\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel(){\n return label;\n }", "public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }", "public final String getLabelCode() {\r\n\t\tString label = this.label;\r\n\t\tif (StringUtil.isEmpty(label))\r\n\t\t\treturn \"\";\r\n\t\tStringBuilder labelCode = new StringBuilder();\r\n\t\tint startIndex = 0;\r\n\t\tfor (int i=0; i<label.length();i++) {\r\n\t\t\tif (label.charAt(i) >= 'A' && label.charAt(i)<= 'Z') {\r\n\t\t\t\tif (startIndex!=0) {\r\n\t\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t\t}\r\n\t\t\t\tlabelCode.append(label.substring(startIndex, i).toLowerCase());\r\n\t\t\t\tstartIndex = i;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (startIndex<label.length()) {\r\n\t\t\tif (startIndex!=0) {\r\n\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t}\r\n\t\t\tlabelCode.append(label.substring(startIndex).toLowerCase());\r\n\t\t}\r\n\t\treturn labelCode.toString();\r\n\t}", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "public Object getLabel() \n {\n return label;\n }", "public String toString()\n {\n return label;\n }", "public String getLabel() {\r\n return layout.label;\r\n }", "public int getLabel() {\n\t\treturn label;\n\t}", "public String toString() {\n return label;\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }", "public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "public String getLabel() {\n if (ICEvent_Type.featOkTst && ((ICEvent_Type)jcasType).casFeat_label == null)\n jcasType.jcas.throwFeatMissing(\"label\", \"org.oaqa.model.ICEvent\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((ICEvent_Type)jcasType).casFeatCode_label);}", "public final Label getLabel() {\n return label;\n }", "Label getLabel();", "Label getLabel();", "Label getLabel();", "@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(72)\r\n\tjava.lang.String label();", "private static String getNameForLabel(Type t) {\n return t.toLabel();\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\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 label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public String getName(){\n StringBuilder name = new StringBuilder();\n for (int value : names) {\n name.append(\"> \").append(strings.get(value));\n }\n return name.toString();\n }", "public Label getLabel() {\n return this.label;\n }", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();", "private String getLabel(String labelAudit) {\n\t\tString label = null;\n\t\tif(labelForAuditLabel.containsKey(labelAudit)) {\n\t\t\tlabel = labelForAuditLabel.get(labelAudit);\n\t\t\tif(label != null) {\n\t\t\t\tif(label.isEmpty())\n\t\t\t\t\tlabel = null;\n\t\t\t\telse\n\t\t\t\t\tlabel = messageSource.getMessage(label, null, Locale.getDefault());\n\t\t\t\t\t//messageSource.getMessage(\"label.dati_verbale\", values, Locale.getDefault())\n\t\t\t}\n\t\t} else {\n\t\t\t//LOGGER.info(\"label_mancante\");\n\t\t\tLOGGER.info(labelAudit);\n\t\t\tlabel = \"??key \" + labelAudit + \" not found??\";\n\t\t}\n\t\treturn label;\n\t}", "public java.lang.String getName();", "public java.lang.String getName() {\n java.lang.Object ref = name_;\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 name_ = s;\n }\n return s;\n }\n }" ]
[ "0.8098949", "0.8083376", "0.8004047", "0.7895781", "0.77826816", "0.7641063", "0.76186967", "0.75427586", "0.7532369", "0.75230145", "0.7498025", "0.7478027", "0.74713576", "0.7463299", "0.743822", "0.74159044", "0.73958117", "0.73958117", "0.73958117", "0.73947334", "0.73947334", "0.738634", "0.73858106", "0.7378902", "0.7378902", "0.7378902", "0.7378902", "0.73747736", "0.73747736", "0.73747736", "0.73737717", "0.7364057", "0.7350753", "0.73459613", "0.7344996", "0.7324812", "0.72822165", "0.7280909", "0.7278489", "0.7264778", "0.72561646", "0.7246244", "0.7246244", "0.7246244", "0.7246244", "0.7238942", "0.72370017", "0.72292984", "0.72159487", "0.72159487", "0.7211104", "0.7128863", "0.7123323", "0.706293", "0.705515", "0.705515", "0.705515", "0.705515", "0.7049695", "0.7025025", "0.6977772", "0.69774973", "0.6969071", "0.69516873", "0.6947419", "0.69397914", "0.68999696", "0.68844837", "0.68844837", "0.6881616", "0.6867601", "0.68642133", "0.68563664", "0.6832136", "0.68304825", "0.68304825", "0.68304825", "0.6826956", "0.68096644", "0.68025947", "0.67730993", "0.6771946", "0.6759666", "0.6743956", "0.67414135", "0.67414135", "0.67398405", "0.67398405", "0.67395276", "0.67395276", "0.673822", "0.673822", "0.673822", "0.673822", "0.673822", "0.6729807", "0.6726254", "0.67240995", "0.67088413", "0.670198" ]
0.8240897
0
Sets the str label name.
public void setStrLabelName(String strLabelName) { this.strLabelName = strLabelName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNameLabel(String nameLabel) {\r\n this.nameLabelText = nameLabel;\r\n this.nameLabel.setText(this.nameLabelText);\r\n }", "public void setLabelName(String labelName){\n m_labelName = labelName;\n }", "void setLabel(String label);", "public static void setLabel(Label labelName) {\n emitf(\"%s:\\n\", labelName.toString());\n }", "public void setLabel( String label ) {\r\n lbl = label;\r\n }", "protected void setLabel(final String label) {\n\t\tmyLabel = label;\n\t}", "void setlabel (String label){\r\n\t\tthis.label = label;\r\n\t}", "public final void setLabel(final String label) {\r\n this.label = label;\r\n }", "public void setLabel(final String label) {\n this.label = label;\n }", "@Override\n public void setLabel(String arg0)\n {\n \n }", "public void setLabel(final String _label)\n {\n this.label = _label;\n }", "public void setLabel(final String label) {\n this.label = label;\n }", "public void setName(final String strname) {\n this.action.setValue(this.textBoxname, strname);\n }", "public void setName (String n){\n\t\tname = n;\n\t}", "public void setLabel(String s) {\n if (s == null && label == null) {\n return;\n }\n\n if (s == null || !s.equals(label)) {\n String oldLabel = label;\n label = s;\n listeners.firePropertyChange(PROPERTY_LABEL, oldLabel, label);\n }\n }", "public void setLabel(String label) {\n addNewLabel().setText(label);\n }", "public void setLabel(String label) {\n this.label = label;\n }", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName (String n) {\n name = n;\n }", "public void setLabel(String label) {\r\n this.label = label;\r\n }", "void setLabel(Label label);", "public static void setName(String n){\n\t\tname = n;\n\t}", "public void setNameString(String s) {\n nameString = s;\r\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}", "public void setLabel( String label )\n { \n this.label = label;\n show_text();\n }", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "public void setName(String nm){\n\t\tname = nm;\n\t}", "public void setName(String n) {\n this.name = n;\n }", "public void setName(String val) {\n name = val;\n }", "@VTID(18)\n void setName(\n java.lang.String rhs);", "public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}", "public void setLabel(String label)\n\t{\n\t\tthis.label = label;\n\t}", "public void setName(String value) {\n this.name = value;\n }", "public String getStrLabelName() {\r\n\t\treturn strLabelName;\r\n\t}", "public void setName(String name) {\n\t\tthis.name = name;\n\t\tthis.setText(name);\n\t}", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(String val) {\n this.name = val;\n }", "public void setLabel(String rawLabel) { //sets the label\n\t\tthis.rawLabel = rawLabel; //save the raw label\n\n\t\t//Add spaces to each end of the rawLabel to make it\n\t\t// easier to center the label in the LWButton.\n\t\tthis.label = \" \" + rawLabel + \" \";\n\t\tthis.invalidate();\n\t\tthis.repaint();\n\t}", "public void setName(String s) {\n this.name = s;\n }", "public void setLabel(String label) {\n\t\t_label = label;\n\t}", "public void setLabel(String label) {\n\t\tthis.label = label;\n\t}", "public void setName(String string) {\n\t\tthis.name = string;\n\t}", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public void setName(String string) {\n\t\t\n\t}", "public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(String name_);", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}", "public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(), name);\n\t}", "public void setName(String inName)\n {\n\tname = inName;\n }", "public void setLabel(JLabel label) {\n\t\tswitch (label.getName()) {\t\t\t// the three labels are named via label.setName(labelName)\n\t\tcase \"title\": \t\ttitleLabel = label; break;\n\t\tcase \"artist(s)\": \tartistLabel = label; break;\n\t\tcase \"album\": \t\talbumLabel = label; break;\n\t\t}\n\t}", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public void setName(java.lang.String name) {\r\n this.name = name;\r\n }", "public synchronized void setName(final InternationalString newValue) {\n checkWritePermission();\n name = newValue;\n }", "public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}", "public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}", "public void setName(String inName)\n {\n name = inName;\n }", "public void setName (java.lang.String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name) {\n \t\tthis.name = name;\n \t}", "@Override\n\tpublic void setLabelText(String label) {\n\t}", "public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "public Builder setLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n label_ = value;\n onChanged();\n return this;\n }", "public void setName( final String name )\r\n {\r\n this.name = name;\r\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "public final void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setName(String n){ name=n; }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public void setName(java.lang.String name) {\n this.name = name;\n }", "public final void setName(final String nameNew) {\n this.name = nameNew;\n }", "void setLabel(com.microsoft.schemas.xrm._2011.contracts.Label label);", "public void setName(String name) {\n\t\tName = name;\n\t}" ]
[ "0.8064597", "0.80197036", "0.78402436", "0.76443535", "0.7643892", "0.7488307", "0.74532557", "0.74244905", "0.7342548", "0.7320873", "0.7270356", "0.7255069", "0.7242706", "0.7227038", "0.7223305", "0.71846986", "0.71686125", "0.7168412", "0.7156522", "0.71446645", "0.71349436", "0.7095433", "0.7094729", "0.70791775", "0.7072183", "0.7033238", "0.7031703", "0.7031703", "0.70295554", "0.7018028", "0.70034045", "0.70025676", "0.6987532", "0.6977904", "0.6964706", "0.6958351", "0.6948227", "0.6948141", "0.6944737", "0.6940131", "0.6919217", "0.6917553", "0.6901917", "0.6854099", "0.6834978", "0.6834148", "0.6834148", "0.6811963", "0.68074214", "0.6765568", "0.6765461", "0.6765461", "0.6765461", "0.6762291", "0.67599577", "0.67599577", "0.67599577", "0.6752625", "0.6744179", "0.67413163", "0.6739599", "0.67353815", "0.67353815", "0.67353815", "0.67353815", "0.67353815", "0.6726352", "0.6722211", "0.6720907", "0.6720489", "0.6716959", "0.67080456", "0.67031133", "0.67031133", "0.67002106", "0.6699329", "0.6698265", "0.6691631", "0.6691631", "0.6691631", "0.6689504", "0.6689504", "0.6689287", "0.6685809", "0.66844213", "0.6684189", "0.6682512", "0.66814053", "0.66814053", "0.66814053", "0.66814053", "0.66814053", "0.66814053", "0.66814053", "0.66814053", "0.66814053", "0.66814053", "0.6678919", "0.6678214", "0.6678051" ]
0.79027045
2
Gets the str label value.
public String getStrLabelValue() { return strLabelValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLabel();", "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLabel();", "public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}", "public String getLabel() {\r\n return lbl;\r\n }", "@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }", "public String getLabel() {\n return _label == null ? name() : _label;\n }", "public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}", "public final String getLabel() {\n\t\treturn _label;\n\t}", "public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }", "String getLabel() {\n return label;\n }", "public String getLabel()\n {\n return label;\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel()\n {\n return m_label;\n }", "public String getLabel() {\n\t\treturn this._label;\n\t}", "public String getLabel() {\n return label;\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "public String getLabel()\r\n {\r\n return label;\r\n }", "String getLabel();", "String getLabel();", "public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}", "public String getLabel() {\r\n return label;\r\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel() {\n return this.label;\n }", "public String getLabel()\n {\n return label;\n }", "public String toString()\n {\n return label;\n }", "public String toString() {\n return label;\n }", "private String getLabel() {\n return this.label;\n }", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel() {\r\n\t\treturn label;\r\n\t}", "public String getLabel()\n { \n return label;\n }", "public String getLabel() {\n return label;\n }", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public String getLabel() {\n return label;\n }", "public String getStrLabelName() {\r\n\t\treturn strLabelName;\r\n\t}", "public String getLabel() {\n\t\treturn label;\n\t}", "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "public String getLabel() {\n\t\treturn myLabel;\n\t}", "public String getLabel(){\n\t\treturn label;\n\t}", "public String getLabel(){\n return label;\n }", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public String getLabel();", "public Object getLabel() \n {\n return label;\n }", "public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }", "public double getLabel() {\n\t\treturn label;\n\t}", "public String label() {\n return this.label;\n }", "public com.commercetools.api.models.common.LocalizedString getLabel() {\n return this.label;\n }", "public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n return this.label;\n }", "public Label getLabel() {\n\t\treturn label;\n\t}", "public Label getLabel() {\n\t\treturn label;\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLabelBytes() {\n java.lang.Object ref = label_;\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 label_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Label getLabel() {\n\t\treturn this.label;\n\t}", "public final Label getLabel() {\n return label;\n }", "@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}", "Label getLabel();", "Label getLabel();", "Label getLabel();", "public T2 getLabel() {\r\n\t\treturn label;\r\n\t}", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label getLabel() {\r\n return label;\r\n }", "public StrColumn getLabel() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label\", StrColumn::new) :\n getBinaryColumn(\"label\"));\n }", "public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }", "public String getLabelText();", "@JsonProperty(\"label\")\n @JsonInclude(JsonInclude.Include.NON_DEFAULT)\n public String getLabel() {\n return this.label;\n }", "@Nonnull\n\tGenericAttributeValue<String> getLabel();", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}", "DatasetLabel getLabel();", "public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "java.lang.String getValue();", "org.hl7.fhir.String getValueString();", "public String getLabel() {\r\n return layout.label;\r\n }", "public Object getLabel(T instance) {\n if (labels.containsKey(instance)) {\n return labels.get(instance);\n } else {\n return \"\";\n }\n }", "public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}", "@JsonGetter(\"label\")\r\n public String getLabel ( ) { \r\n return this.label;\r\n }", "public JLabel getLabel() {\n return label;\n }", "public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}", "public JLabel getLabel() {\n return this.label;\n }", "public MplsLabel value() {\n return this.mplsLabel;\n }", "public abstract String getLabel();", "com.google.ads.googleads.v6.resources.Label getLabel();", "@Override\n public String getLabel() {\n return label;\n }", "double getLabel();" ]
[ "0.7751211", "0.770079", "0.76693296", "0.75820154", "0.7539102", "0.7514892", "0.7507691", "0.7506253", "0.74759597", "0.74612534", "0.74555266", "0.7415474", "0.7411214", "0.7411214", "0.7411214", "0.7410111", "0.74062115", "0.73991406", "0.7394844", "0.7394844", "0.739332", "0.739332", "0.73911834", "0.73850614", "0.73832554", "0.73832554", "0.73832554", "0.73799044", "0.7372036", "0.7372036", "0.7372036", "0.7372036", "0.7362614", "0.73564166", "0.7331817", "0.7331033", "0.73308945", "0.73308945", "0.73308945", "0.73308945", "0.7330602", "0.73075575", "0.72972757", "0.72963625", "0.728908", "0.7287984", "0.7287564", "0.728018", "0.7249595", "0.7228716", "0.7228006", "0.7228006", "0.7228006", "0.7228006", "0.7194818", "0.71288836", "0.70791066", "0.7072762", "0.7050692", "0.70458686", "0.7039745", "0.70013624", "0.69962674", "0.69962674", "0.6988655", "0.69845456", "0.6974965", "0.6956963", "0.69283336", "0.69283336", "0.69283336", "0.6922496", "0.6897822", "0.6895987", "0.68924034", "0.6887823", "0.68564737", "0.6855059", "0.6831354", "0.6817659", "0.68171924", "0.6793318", "0.6793318", "0.6793318", "0.6793318", "0.6793318", "0.6793318", "0.67927134", "0.6781921", "0.6772128", "0.6730557", "0.67299783", "0.6691507", "0.66760546", "0.66740876", "0.6665855", "0.66537684", "0.66475976", "0.66345036", "0.6618484" ]
0.8289119
0
Sets the str label value.
public void setStrLabelValue(String strLabelValue) { this.strLabelValue = strLabelValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setLabel(String label);", "public void setLabel( String label ) {\r\n lbl = label;\r\n }", "public void setLabel(String s) {\n if (s == null && label == null) {\n return;\n }\n\n if (s == null || !s.equals(label)) {\n String oldLabel = label;\n label = s;\n listeners.firePropertyChange(PROPERTY_LABEL, oldLabel, label);\n }\n }", "protected void setLabel(final String label) {\n\t\tmyLabel = label;\n\t}", "void setLabel(Label label);", "@Override\n public void setLabel(String arg0)\n {\n \n }", "void setlabel (String label){\r\n\t\tthis.label = label;\r\n\t}", "public final void setLabel(final String label) {\r\n this.label = label;\r\n }", "public void setLabel(final String _label)\n {\n this.label = _label;\n }", "public void setStrLabelName(String strLabelName) {\r\n\t\tthis.strLabelName = strLabelName;\r\n\t}", "public void setLabel(Object value) {\n this.setValue(LABEL_PROPERTY_KEY, value);\n }", "public void setLabelText(String text);", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public Builder setLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n label_ = value;\n onChanged();\n return this;\n }", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public void setLabel(final String label) {\n this.label = label;\n }", "public void setLabel( String label )\n { \n this.label = label;\n show_text();\n }", "@Override\n\tpublic void setLabelText(String label) {\n\t}", "public void setLabel(String rawLabel) { //sets the label\n\t\tthis.rawLabel = rawLabel; //save the raw label\n\n\t\t//Add spaces to each end of the rawLabel to make it\n\t\t// easier to center the label in the LWButton.\n\t\tthis.label = \" \" + rawLabel + \" \";\n\t\tthis.invalidate();\n\t\tthis.repaint();\n\t}", "public void setLabel(final String label) {\n this.label = label;\n }", "public void setLabel(String label) {\n this.label = label;\n }", "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "@objid (\"5c3d048f-2049-4d54-b5e2-eb8c3afe4b1d\")\r\n public void setText(final String label) {\r\n if (label != null)\r\n this.text.setText(label);\r\n }", "public void setLabel(Object v) \n {\n this.label = v;\n }", "public void setLabel(String label) {\r\n this.label = label;\r\n }", "@JsonSetter(\"label\")\r\n public void setLabel (String value) { \r\n this.label = value;\r\n }", "public void setLabel(String label) {\n addNewLabel().setText(label);\n }", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "public void setLabel(String label)\n\t{\n\t\tthis.label = label;\n\t}", "private void setLblStatus(String s){\n\t\tlblState.setText(s);\n\t}", "public void setLabel(String label) {\n this.label = label == null ? null : label.trim();\n }", "public void setXLabel(final String str) {\n this.XLabel.setText(str);\n this.XLabel.setToolTipText(this.XLabel.getText());\n }", "public void setLabel(String label) {\n\t\t_label = label;\n\t}", "public\t\tvoid\t\tsetLabel(String text)\n\t\t{\n\t\tif (label != null)\n\t\t\t{\n\t\t\tif (label instanceof MiWidget)\n\t\t\t\t((MiWidget )label).setValue(text);\n\t\t\telse if (label instanceof MiText)\n\t\t\t\t((MiText )label).setText(text);\n\t\t\telse\n\t\t\t\tlabel.replaceSelf(new MiText(text));\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tlabel = new MiText(text);\n\t\t\tappendPart(label);\n\t\t\t}\n\t\t}", "void setLabel(com.microsoft.schemas.xrm._2011.contracts.Label label);", "public static void setLabel(Label labelName) {\n emitf(\"%s:\\n\", labelName.toString());\n }", "public abstract void addLabel(String str);", "public void setLabel(String label)\n {\n if (StringUtils.isBlank(label))\n throw new IllegalArgumentException(\"label cannot be null or empty\");\n \n this.label = label;\n }", "public String getStrLabelValue() {\r\n\t\treturn strLabelValue;\r\n\t}", "public final native void setLabel(String label) /*-{\r\n\t\tthis.label = label;\r\n\t}-*/;", "public void setLabel(String label) {\n\t\tthis.label = label;\n\t}", "public void setLabel(T2 eLabel) {\r\n\t\tthis.label = eLabel;\r\n\t\tcheckRep();\r\n\t}", "public void setLabel(int label) {\n\t\tthis.label = label;\n\t}", "void setGraphLabel(String label);", "public MyProgress setLabel(String label) {\n mLabel = label;\n return this;\n }", "public void setString(final String s){\n\t\tRunnable changeValueRunnable = new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\tloadBar.setString(s);\n\t\t\t}\n\t\t};\n\t\tSwingUtilities.invokeLater(changeValueRunnable);\n\t\tmessageLabel.setText(s);\n\t}", "public void\nsetNewLabel()\nthrows Exception\n{\n\tdouble lineLength = this.getNucLabelLineLength();\n\tif (lineLength <= 0.0)\n\t\tlineLength = ComplexDefines.NUCLABEL_LINE_LENGTH;\n\tthis.setNewLabel(\n\t\tnew Font(\"Helvetica\", Font.PLAIN, 12),\n\t\tthis.getParentSSData2D().getNucLabelLineWidth(),\n\t\tlineLength, Color.black, this.getID());\n}", "public boolean setLabel(String labelIn)\r\n {\r\n if (labelIn == null)\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n label = labelIn.trim();\r\n return true;\r\n }\r\n }", "public void setLabel(String v) {\n if (ICEvent_Type.featOkTst && ((ICEvent_Type)jcasType).casFeat_label == null)\n jcasType.jcas.throwFeatMissing(\"label\", \"org.oaqa.model.ICEvent\");\n jcasType.ll_cas.ll_setStringValue(addr, ((ICEvent_Type)jcasType).casFeatCode_label, v);}", "public void setLabel(double label) {\n\t\tthis.label = label;\n\t}", "public void setLabel(final String label) {\n _section.setText(label);\n }", "public void setLabelText(String text) {\n label.setText(text);\n }", "public void setText(String st){\n\t\tbutton.setText(st);\n\t}", "public final void setLabel1(@Nullable CharSequence label) {\n mLabel1 = label;\n }", "String updateLabel(String oldLabel, String newLabel);", "public void setText(String S) {\n str = S;\n compute();\n }", "public void setZLabel(final String str) {\n this.ZLabel.setText(str);\n this.ZLabel.setToolTipText(this.ZLabel.getText());\n }", "public void setLabel(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label label) {\r\n this.label = label;\r\n }", "public void setLabelToBeShown(String label);", "public void setGraphLabel(String label) {\n label = DotGraphUtility.replaceQuotes(label);\n label = DotGraphUtility.replaceReturns(label);\n this.setGraphAttribute(\"label\", \"\\\"\" + label + \"\\\"\");\n }", "public void setMenuLabel(java.lang.String value);", "void setValue(java.lang.String value);", "public void setInstruction(String ins)\n\t{\n\t\tgetJLabel().setText(ins);\n\t}", "void setValueString(org.hl7.fhir.String valueString);", "public void setXLabel(String _label);", "public void set(String str) {\n\t setValueInternal(str);\n\t}", "protected void setFilterLabel( String strFilterLabel )\n {\n _strFilterLabel = strFilterLabel;\n }", "void setShapeLabel(String Label);", "java.lang.String getLabel();", "public void setLabel(JLabel label) {\n\t\tswitch (label.getName()) {\t\t\t// the three labels are named via label.setName(labelName)\n\t\tcase \"title\": \t\ttitleLabel = label; break;\n\t\tcase \"artist(s)\": \tartistLabel = label; break;\n\t\tcase \"album\": \t\talbumLabel = label; break;\n\t\t}\n\t}", "public void setStr(java.lang.String str)\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(STR$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STR$0);\r\n }\r\n target.setStringValue(str);\r\n }\r\n }", "public void setLabelName(String labelName){\n m_labelName = labelName;\n }", "public Value label(String label) {\n this.label = label;\n return this;\n }", "public void setString(int index,String value);", "void setNilLabel();", "public void setTimerTextLabel(String s) {\r\n labeltimer.setText(s);\r\n }", "private void setViewsLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n viewsLabel_ = value;\n }", "public String getStrLabelName() {\r\n\t\treturn strLabelName;\r\n\t}", "void\t\tsetCommandLabel(String command, String label);", "public DrillBuilder setLabel(String label) {\n this.label = label;\n return this;\n }", "public LLabel() {\n this(\"\");\n }", "public void setTypeLabel(String typeLabel) {\r\n this.typeLabelText = typeLabel;\r\n this.typeLabel.setText(this.typeLabelText);\r\n }", "public void setLabel()\r\n {\r\n int i = Converter(Input);\r\n \r\n if(j<i && label.getText().equals(\"Player 1\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n \r\n }else if(j<i && label.getText().equals(\"Player 2\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j<i && label.getText().equals(\"Player 3\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j==i && label.getText().equals(\"Player \"+j))\r\n {\r\n j=1;\r\n label.setText(\"Player \"+j);\r\n }\r\n \r\n \r\n }", "void setLabelString() {\n int pad = 5; // fudge to make up for variable width fonts\n float maxVal = Math.max(Math.abs(min), Math.abs(max));\n intDigits = Math.round((float) (Math.log(maxVal) / Math.log(10))) + pad;\n if (min < 0) {\n intDigits++; // add one for the '-'\n }\n // fractDigits is num digits of resolution for fraction. Use base 10 log\n // of scale, rounded up, + 2.\n fractDigits = (int) Math.ceil((Math.log(scale) / Math.log(10)));\n nf.setMinimumFractionDigits(fractDigits);\n nf.setMaximumFractionDigits(fractDigits);\n String value = nf.format(current);\n while (value.length() < (intDigits + fractDigits)) {\n value = value + \" \";\n }\n valueLabel.setText(value);\n }", "public void setDefValLabel(String defValLabel) {\r\n this.defValLabelText = defValLabel;\r\n this.defValLabel.setText(this.defValLabelText);\r\n }", "public void setYLabel(final String str) {\n this.YLabel.setText(str);\n this.YLabel.setToolTipText(this.YLabel.getText());\n }", "public void setValue(String value) {\n\t\tthis.text = value;\n\t}", "private void setLabelForSpecimen(final Specimen objSpecimen) throws LabelGenException\r\n\t{\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\r\n\t\tif(isGenLabel(objSpecimen))\r\n\t\t{\r\n\t\t\tString labelFormat = getLabelFormat(objSpecimen, buffer);\r\n\r\n\t\t\tif (!Validator.isEmpty(labelFormat))\r\n\t\t\t{\r\n\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(labelFormat, \"%\");\r\n\t\t\t\twhile (tokenizer.hasMoreTokens())\r\n\t\t\t\t{\r\n\t\t\t\t\tString token = tokenizer.nextToken();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbuffer.append(getTokenValue(objSpecimen, token));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (final NameGeneratorException ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthrow new LabelException(ex.getMessage());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n//\t\t\t\t\t\tbuffer.append(\"_\");\r\n//\t\t\t\t\t\tbuffer.append(getSpecimenCount(objSpecimen));\r\n\t\t\t}\r\n\t\t\tobjSpecimen.setLabel(buffer.toString());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthrow new LabelGenException(\"Manual Label Generation is selected for this specimen\");\r\n\t\t}\r\n\t}", "private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}", "public void resetLabel(){\r\n if(sc!= null && sc.getProperties().getAttribute(\"Label\") != null){\r\n sc.getProperties().getAttribute(\"Label\").changeValue(\"\");\r\n }\r\n }", "public void setLabelColor(String labelColor)\n {\n myLabelColor = labelColor;\n }", "public void setDisplayName(String str)\n {\n if (str == null)\n throw new IllegalArgumentException(\"display name must not be null\");\n\n // Threshold\n if (str.equalsIgnoreCase(m_strDisplayName))\n return;\n\n if (str.length() > FIELDLABEL_LENGTH)\n throw new IllegalArgumentException(\n \"display name must not exceed \" + FIELDLABEL_LENGTH +\n \"characters\");\n\n setDirty();\n m_strDisplayName = str;\n }", "protected void setValue( String strValue )\n {\n _strValue = strValue;\n }", "public void setStringValue(String v)\n {\n this.setValue(v);\n }", "public void setLogLabel(String newLabel)\n\t{\n\t\t_logLabel = newLabel;\n\t}", "public void setDataIntoField(String fieldLabel, String value){\n reporter.info(\"Set data \"+value+\" into field\"+fieldLabel);\n setText(LOCATORS.getBy(COMPONENT_NAME,\"FIELD_INPUT_BY_NAME\",fieldLabel),value,SHORT_TIMEOUT);\n }", "public Label newLabel(String labelStr, int options) {\r\n return newLabel(labelStr);\r\n }", "@Override\n\tpublic void setComponentLabel(String label) {\n\t\t\n\t}" ]
[ "0.7862323", "0.75503314", "0.7412686", "0.74003017", "0.73824424", "0.73718274", "0.7329873", "0.727274", "0.7266538", "0.7264917", "0.72572976", "0.72432864", "0.7191876", "0.7191876", "0.71779025", "0.7173369", "0.7156253", "0.7125122", "0.71199405", "0.7087996", "0.70792663", "0.7069026", "0.7059206", "0.7014047", "0.7011366", "0.6967803", "0.68588376", "0.68484885", "0.6829497", "0.6829497", "0.6814949", "0.6787591", "0.67687094", "0.676453", "0.67643374", "0.6753516", "0.6745739", "0.67451954", "0.671057", "0.66931635", "0.66811574", "0.66723347", "0.66587937", "0.6610269", "0.6589955", "0.65854025", "0.6577243", "0.65063655", "0.6453622", "0.64394796", "0.6422176", "0.64185935", "0.6404903", "0.6399556", "0.63962346", "0.63942194", "0.6379776", "0.63762647", "0.63569045", "0.6320611", "0.6310018", "0.63022363", "0.6286801", "0.6255329", "0.6245438", "0.62372303", "0.6236707", "0.6226953", "0.62225115", "0.62149644", "0.61968875", "0.61964965", "0.6195579", "0.61844546", "0.6182518", "0.6179399", "0.6177324", "0.61772275", "0.61634415", "0.6159935", "0.61477566", "0.6147163", "0.612471", "0.61124057", "0.6110862", "0.61106837", "0.6099909", "0.6099222", "0.6088049", "0.60836583", "0.6072155", "0.6068523", "0.606581", "0.60648966", "0.6064596", "0.6036061", "0.6035338", "0.60339636", "0.6025991", "0.6019475" ]
0.7906176
0
Gets the str profile attrib id.
public String getStrProfileAttribId() { return strProfileAttribId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProfileAttribute() {\r\r\n\t\treturn _profileAttribute;\r\r\n\t}", "public int getProfile_id() {\n return profileID;\n }", "public void setStrProfileAttribId(String strProfileAttribId) {\r\n\t\tthis.strProfileAttribId = strProfileAttribId;\r\n\t}", "public String getProfileId() {\n return profileId;\n }", "public BigDecimal getPROFILE_ID() {\r\n return PROFILE_ID;\r\n }", "public String getId() {\n return (String)getAttributeInternal(ID);\n }", "public String getId() {\n return (String)getAttributeInternal(ID);\n }", "public Integer getProfileId() {\n return _profileId;\n }", "public String getProfileId() {\n\t\treturn mProfileId;\n\t}", "String getProfile();", "public String getATTR_ID() {\n return ATTR_ID;\n }", "public Long getProfileId(String profileName)\n {\n // initilaizes the profile names if necessary\n TreeMap names = getProfileNames();\n return (Long) names.get(profileName);\n }", "public String getProfile() {\n return profile;\n }", "protected String getID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_ID, null);\n }", "java.lang.String getFortId();", "public String getPId() {\n return (String)getAttributeInternal(PID);\n }", "public String toString() {\r\n\t\treturn profileName;\r\n\t}", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }", "public String getProfile();", "java.lang.String getAoisId();", "public PosSymbol getProfileName() {\n return profileName;\n }", "public String getUserId() {\r\n return (String) getAttributeInternal(USERID);\r\n }", "public URI getProfile() { \n\t\treturn getProfileElement().getValue();\n\t}", "public String getPROFILE_NAME() {\r\n return PROFILE_NAME;\r\n }", "public static String getIAMUserId(){\n \t\t// There are a few places where we can find this\n \t\tString id = System.getProperty(\"AWS_ACCESS_KEY_ID\");\n \t\tif(id != null) return id;\n \t\tid = System.getProperty(STACK_IAM_ID);\n \t\tif (id == null) return null;\n \t\tid = id.trim();\n \t\tif (\"\".equals(id)) return null;\n \t\treturn id;\n \t}", "public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getEnumSkillId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ENUMSKILLID$10);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "public java.lang.String getId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$8);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "public String getId() {\r\n\t\treturn userId.toString();\r\n\t}", "public java.lang.String getProfileImage() {\n java.lang.Object ref = profileImage_;\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 profileImage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$24);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "java.lang.String getFriendId();", "java.lang.String getFriendId();", "public String getUserID(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_ID, null);\n }", "public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }", "String getUid();", "public String getIdAttribute() {\n return idAttribute;\n }", "public final String getIdAttribute() {\n return getAttributeValue(\"id\");\n }", "public Integer getAttrId() {\n return attrId;\n }", "public String getPropertyID()\n {\n String v = (String)this.getFieldValue(FLD_propertyID);\n return StringTools.trim(v);\n }", "String getUserID();", "java.lang.String getID();", "protected String getAttributeStr(String attr)\n {\n Object res = getAttributes().get(attr);\n return (res != null) ? res.toString() : null;\n }", "public java.lang.String getProfileImage() {\n java.lang.Object ref = profileImage_;\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 profileImage_ = s;\n return s;\n }\n }", "String getAccountID();", "String getAccountID();", "public long getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);\n if (target == null)\n {\n return 0L;\n }\n return target.getLongValue();\n }\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "String getGameId();", "public String getLegacyId() {\n return (String)getAttributeInternal(LEGACYID);\n }", "java.lang.String getUid();", "java.lang.String getUid();", "java.lang.String getAttribute();", "public String getSelectedProfile() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"SELECTED_PROFILE\", null);\n\t}", "public java.lang.String getProfileURL() {\n java.lang.Object ref = profileURL_;\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 profileURL_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Number getPersonId() {\n return (Number)getAttributeInternal(PERSONID);\n }", "private String getIdentificationString() {\n\t\tif (clientController.client.visitorID.getVal() != null)\n\t\t\treturn clientController.client.visitorID.getVal().intern();\n\t\tif (clientController.client.logedInSubscriber.getVal() != null)\n\t\t\treturn clientController.client.logedInSubscriber.getVal().personalID;\n\t\treturn null;\n\t}", "public String getId() {\n String id = name.replaceAll(\" \", \"-\");\n id = id.replaceAll(\"_\", \"-\");\n return id.toLowerCase();\n }", "public String getSubId() {\r\n return (String) getAttributeInternal(SUBID);\r\n }", "public String getIntAttribute4() {\n return (String) getAttributeInternal(INTATTRIBUTE4);\n }", "public String getAccountId() {\r\n return (String) getAttributeInternal(ACCOUNTID);\r\n }", "public String getProfesionTI() {\n return this.profesionTI;\n }", "public String getProfileIndex() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"PROFILEINDEX\", null);\n\t}", "public String getUid(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, UID);\r\n\t}", "java.lang.String getSetupID();", "public Optional<SpendProfileId> getSpendProfileId() {\n return Optional.ofNullable(spendProfileId);\n }", "@ModelNodeBinding(detypedName = \"profile\")\n\tpublic String profile() {\n\t\treturn this.profile;\n\t}", "java.lang.String getDataInfoId();", "public String getProfile() {\n\tif (profileBuf.length() > 0) {\n\t profileBuf.append (\"\\n\");\n\n\t // should be replaced by java.util.Formatter from Java 1.5\n\t profileBuf.append (profilingTotal);\n\t profileBuf.append (\"\\t\");\n\t profileBuf.append (\"TOTAL\\n\");\n// \t profileBuf.append (Printf.format (\"%7d\\t%s\\n\",\n// \t\t\t\t\t new String[] {\"\" + profilingTotal, \"TOTAL\"}));\n\t return new String (profileBuf);\n\t} else {\n\t return \"\";\n\t}\n }", "public String getNsProfileId() {\n return nsProfileId;\n }", "public String getOid() {\n return getProperty(Property.OID);\n }", "public String getApplicationProfile()\n {\n return mApplicationProfile;\n }", "public int getId() {\n\t\treturn config >> 8;\n\t}", "public String getSizeId() {\n return (String)getAttributeInternal(SIZEID);\n }", "@java.lang.Override\n public com.google.protobuf2.Any getProfile() {\n return profile_ == null ? com.google.protobuf2.Any.getDefaultInstance() : profile_;\n }" ]
[ "0.68827635", "0.6739489", "0.66211617", "0.65727496", "0.6500068", "0.6378529", "0.6378529", "0.6341917", "0.6247033", "0.623297", "0.6108102", "0.60061944", "0.59828293", "0.59518707", "0.5945974", "0.5920822", "0.58976686", "0.5890026", "0.5882206", "0.5877017", "0.5846938", "0.57920504", "0.5766591", "0.5759619", "0.5753899", "0.5749894", "0.5746051", "0.57330066", "0.57319206", "0.57319206", "0.57319206", "0.5711112", "0.5702847", "0.56780756", "0.56706506", "0.5663552", "0.5661776", "0.5661776", "0.5658542", "0.5658542", "0.56505215", "0.5601671", "0.5594701", "0.5592075", "0.55905855", "0.55788964", "0.5574113", "0.55726266", "0.55682606", "0.5557314", "0.55550665", "0.55476546", "0.55476546", "0.55472237", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5534289", "0.5533037", "0.55264264", "0.552199", "0.552199", "0.55056137", "0.5501843", "0.5498527", "0.54925686", "0.5489233", "0.54874426", "0.54836535", "0.54830956", "0.54714394", "0.54698664", "0.54684216", "0.54654497", "0.54587334", "0.54575753", "0.54504883", "0.54451454", "0.5438551", "0.54364973", "0.54282963", "0.54243356", "0.54208505", "0.541869", "0.5414968" ]
0.83705765
0