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 |
---|---|---|---|---|---|---|
! Sets the material index | public void setMaterialIndex(int index) { materialIndex = index; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean setMaterial(int index) {\n if (isValidIndex(index, MATERIALS)) {\n material = index;\n return true;\n } else {\n return false;\n }\n }",
"@NonNull\n public Builder material(@IntRange(from = 0) int index, @NonNull MaterialInstance material) {\n nBuilderMaterial(mNativeBuilder, index, material.getNativeObject());\n return this;\n }",
"public Builder setMaterials(int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureMaterialsIsMutable();\n materials_.set(index, value);\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }",
"public void setMaterial(String material) {\n this.material = material;\n }",
"void setIdx(int i);",
"public void updateMaterial() {\n this.material = world.getRecipeManager().getFirstMatch(RecipeTypes.MATERIAL, this, world).orElse(null);\n }",
"public void setMaterial(java.lang.String material) {\r\n this.material = material;\r\n }",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public void setMaterial(String name, int meta) {\n if(name!=null && Block.blockRegistry.getObject(name)!=null) {\n this.materialName = name;\n this.materialMeta = meta;\n }\n }",
"public void setMaterialInstanceAt(@EntityInstance int i, @IntRange(from = 0) int primitiveIndex,\n @NonNull MaterialInstance materialInstance) {\n int required = materialInstance.getMaterial().getRequiredAttributesAsInt();\n int declared = nGetEnabledAttributesAt(mNativeObject, i, primitiveIndex);\n if ((declared & required) != required) {\n Platform.get().warn(\"setMaterialInstanceAt() on primitive \"\n + primitiveIndex + \" of Renderable at \" + i\n + \": declared attributes \" + getEnabledAttributesAt(i, primitiveIndex)\n + \" do no satisfy required attributes \" + materialInstance.getMaterial().getRequiredAttributes());\n }\n nSetMaterialInstanceAt(mNativeObject, i, primitiveIndex, materialInstance.getNativeObject());\n }",
"public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }",
"@Element \n public void setMaterial(String material) {\n this.material = material;\n }",
"public void setIndex(int index) { this.index = index; }",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void setIndex(int ind){\n\t\tindex = ind;\n\t}",
"@Generated(hash = 2102404791)\n public void setMaterial(Material material) {\n synchronized (this) {\n this.material = material;\n materialId = material == null ? null : material.getId();\n material__resolvedKey = materialId;\n }\n }",
"public ItemBuilder setMaterial(Material material) {\r\n\t\tthis.material = material;\r\n\t\treturn this;\r\n\t}",
"private void setFormedIndex() {\n\t\tint t = this.formeIndex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tsetFillIndex();\n\t\t\tthis.formeIndex = 0;\n\t\t} else {\n\t\t\tthis.formeIndex = t;\n\t\t}\n\n\t}",
"public void setContents(MaterialData materialData) {\n/* 91 */ Material mat = materialData.getItemType();\n/* */ \n/* 93 */ if (mat == Material.RED_ROSE) {\n/* 94 */ setData((byte)1);\n/* 95 */ } else if (mat == Material.YELLOW_FLOWER) {\n/* 96 */ setData((byte)2);\n/* 97 */ } else if (mat == Material.RED_MUSHROOM) {\n/* 98 */ setData((byte)7);\n/* 99 */ } else if (mat == Material.BROWN_MUSHROOM) {\n/* 100 */ setData((byte)8);\n/* 101 */ } else if (mat == Material.CACTUS) {\n/* 102 */ setData((byte)9);\n/* 103 */ } else if (mat == Material.DEAD_BUSH) {\n/* 104 */ setData((byte)10);\n/* 105 */ } else if (mat == Material.SAPLING) {\n/* 106 */ TreeSpecies species = ((Tree)materialData).getSpecies();\n/* */ \n/* 108 */ if (species == TreeSpecies.GENERIC) {\n/* 109 */ setData((byte)3);\n/* 110 */ } else if (species == TreeSpecies.REDWOOD) {\n/* 111 */ setData((byte)4);\n/* 112 */ } else if (species == TreeSpecies.BIRCH) {\n/* 113 */ setData((byte)5);\n/* */ } else {\n/* 115 */ setData((byte)6);\n/* */ } \n/* 117 */ } else if (mat == Material.LONG_GRASS) {\n/* 118 */ GrassSpecies species = ((LongGrass)materialData).getSpecies();\n/* */ \n/* 120 */ if (species == GrassSpecies.FERN_LIKE) {\n/* 121 */ setData((byte)11);\n/* */ }\n/* */ } \n/* */ }",
"private void setComponentsOfIndex() {\n\t\tint t = this.numbersIdex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.numbersIdex = 0;\n\t\t\tsetColorIndex();\n\t\t} else {\n\t\t\tthis.numbersIdex = t;\n\t\t}\n\t}",
"public void setMaterial_id(Integer material_id) {\n this.material_id = material_id;\n }",
"public void setAsMaterial(Material mat) throws IOException {\n assert (mat.getMaterialDef().getAssetName() != null);\n setName(\"MyMaterial\");\n setMatDefName(mat.getMaterialDef().getAssetName());\n createBaseMaterialFile();\n materialParameters.clear();\n Collection<MatParam> params = mat.getParams();\n for (Iterator<MatParam> it = params.iterator(); it.hasNext();) {\n MatParam matParam = it.next();\n materialParameters.put(matParam.getName(), new MaterialProperty(matParam));\n }\n additionalRenderStates.put(\"Wireframe\", new MaterialProperty(\"OnOff\", \"Wireframe\", mat.getAdditionalRenderState().isWireframe() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"DepthWrite\", new MaterialProperty(\"OnOff\", \"DepthWrite\", mat.getAdditionalRenderState().isDepthWrite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"DepthTest\", new MaterialProperty(\"OnOff\", \"DepthTest\", mat.getAdditionalRenderState().isDepthTest() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"ColorWrite\", new MaterialProperty(\"OnOff\", \"ColorWrite\", mat.getAdditionalRenderState().isColorWrite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"PointSprite\", new MaterialProperty(\"OnOff\", \"PointSprite\", mat.getAdditionalRenderState().isPointSprite() ? \"On\" : \"Off\"));\n additionalRenderStates.put(\"FaceCull\", new MaterialProperty(\"FaceCullMode\", \"FaceCull\", mat.getAdditionalRenderState().getFaceCullMode().name()));\n additionalRenderStates.put(\"Blend\", new MaterialProperty(\"BlendMode\", \"Blend\", mat.getAdditionalRenderState().getBlendMode().name()));\n additionalRenderStates.put(\"AlphaTestFalloff\", new MaterialProperty(\"Float\", \"AlphaTestFalloff\", mat.getAdditionalRenderState().getAlphaFallOff() + \"\"));\n additionalRenderStates.put(\"PolyOffset\", new MaterialProperty(\"Float,Float\", \"PolyOffset\", mat.getAdditionalRenderState().getPolyOffsetUnits() + \" \" + mat.getAdditionalRenderState().getPolyOffsetFactor()));\n checkWithMatDef();\n setAsText(getUpdatedContent());\n }",
"public void setIndexTool(int index) {\r\n this.indexTool = index;\r\n }",
"public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}",
"public void set(long index);",
"public void setMaterial(Material mat)\r\n\t{\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, mat.ambient);\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, mat.diffuse);\r\n\t\tgl.glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, mat.specular);\r\n\t\tgl.glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, 0.8F);\r\n\t\tgl.glColor3f(mat.diffuse[0],mat.diffuse[1],mat.diffuse[2]);\r\n\t}",
"public void setIndex(int index) {\n _index = index;\n }",
"public void setIndex(int i) {\n\t\t\n\t}",
"public void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public void setMATERIAL(java.lang.String MATERIAL) {\r\n this.MATERIAL = MATERIAL;\r\n }",
"public void setMaterial(NBTTagCompound tag) {\n if(tag!=null && tag.hasKey(Names.NBT.material) && tag.hasKey(Names.NBT.materialMeta)) {\n this.materialName = tag.getString(Names.NBT.material);\n this.materialMeta = tag.getInteger(Names.NBT.materialMeta);\n }\n }",
"public void setMaterials(List<Material> materials)\n {\n this.materials = materials;\n }",
"public void setIndex(int index) {\r\n this.index = index;\r\n }",
"public void setMaterial_type(Integer material_type) {\n this.material_type = material_type;\n }",
"public void setMaterial(ItemStack stack) {\n this.materialName = Block.blockRegistry.getNameForObject(stack.getItem());\n this.materialMeta = stack.getItemDamage();\n }",
"public void setIndex(Integer index) {\n this.index = index;\n }",
"public void setIndex(Integer index) {\n this.index = index;\n }",
"protected void setIndex(int index) {\n\t\tthis.index = index;\n\t}",
"protected void _setMedium(int index, int value)\r\n/* 459: */ {\r\n/* 460:473 */ HeapByteBufUtil.setMedium(this.array, index, value);\r\n/* 461: */ }",
"public void setParameters(MaterialParams mp);",
"public void setNameIndex(int index);",
"public void setCurrentImage(int index) {\n if ((index >= 0) && (index < mTexIdArray.length)) {\n mTexId = mTexIdArray[index];\n }\n }",
"public void set(int index, Object wert) {\r\n\t\t// Das Element an der Stelle index \r\n\t\t//soll auf den Wert wert gesetzt werden\r\n\t\tgeheim[index] = wert;\r\n\t}",
"@Override\n\tpublic void updateRecMaterial(RecMatConfigure rec) {\n\t\t\n\t}",
"void changeSetting(int idx) {\n currentIdx = idx;\n }",
"public void setMaterial(String material) {\n this.material = material == null ? null : material.trim();\n }",
"public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}",
"public void setIndex(int index) {\r\n this.textIndex = index;\r\n }",
"public void setIndex (int i){\n putValue(Action.NAME, i + \" \" + mDisplayName);\n putValue(Action.MNEMONIC_KEY, new Integer(Integer.toString(i).charAt(0)));\n }",
"private void setItem(String material, String nameKey, Sound music, int x, int y) {\r\n\t\tMaterial loadedMaterial = Material.valueOf(plugin.getSettings().getString(material));\r\n\t\tthis.setAction(new VanillaMusicItem(\r\n\t\t\t\trenameItem(new ItemStack(loadedMaterial, 1), nameKey), \r\n\t\t\t\tmusic), x, y);\r\n\t}",
"public void setIndex(int index) {\n nativeSetDCChangeSpeedLevel2Index(index);\n }",
"public void set(int index, BufferedImage image) {\n checkForLiveOrCompiled();\n if (image.getWidth(null) != this.getWidth())\n throw new IllegalArgumentException(J3dI18N.getString(\"ImageComponent3D2\"));\n\n\tif (image.getHeight(null) != this.getHeight())\n throw new IllegalArgumentException(J3dI18N.getString(\"ImageComponent3D4\"));\n\n\t((ImageComponent3DRetained)this.retained).set(index, image);\n }",
"public ByteBuf setMedium(int index, int value)\r\n/* 452: */ {\r\n/* 453:466 */ ensureAccessible();\r\n/* 454:467 */ _setMedium(index, value);\r\n/* 455:468 */ return this;\r\n/* 456: */ }",
"public void set(int index, RenderedImage image) {\n\n checkForLiveOrCompiled();\n // For RenderedImage the width and height checking is done in the retained.\n\t((ImageComponent3DRetained)this.retained).set(index, image);\n }",
"public void set_AllSpreadIndexToOne(){\r\n\t//test to see if the fuel moistures are greater than 33 percent.\r\n\t//if they are, set their index value to 1\r\n\tif ((FFM>33)){ // fine fuel greater than 33?\r\n\t\tGRASS=0; \r\n\t\tTIMBER=0;\r\n\t}else{\r\n\t\tTIMBER=1;\r\n\t}\r\n}",
"public void setIndex(int value) {\n this.index = value;\n }",
"private void indexFirework(){\n firework = new ItemStack(Material.FIREWORK, 1);\n FireworkMeta meta = (FireworkMeta) firework.getItemMeta();\n\n meta.addEffect(FireworkEffect.builder().with(FireworkEffect.Type.BALL).withColor(Color.LIME).build());\n meta.setPower(1);\n firework.setItemMeta(meta);\n }",
"public void setIndex(int value) {\n\t\tthis.index = value;\r\n\t}",
"public void setTypeIndex(int index);",
"public void re_GiveMaterials() {\n\t\tString buildingType = gc.getBuildingType();\n\t\t// wood, brick, grain, wool, ore\n\t\tString[] materialCodes = {\"h\", \"b\", \"g\", \"w\", \"e\"};\n\t\tint[] materials = new int[AMOUNT_OF_MATERIALS];\n\n\t\tswitch (buildingType) {\n\n\t\tcase VILLAGE_TYPE:\n\t\t\tmaterials = VILLAGE_ARRAY;\n\t\t\tbreak;\n\n\t\tcase CITY_TYPE:\n\t\t\tmaterials = CITY_ARRAY;\n\t\t\tbreak;\n\t\t\t\n\t\tcase STREET_TYPE:\n\t\t\tmaterials = STREET_ARRAY;\n\t\t\tbreak;\n\t\t}\n\t\t// Check if player is not in first round\n\t\tif(!pTM.inFirstRound(gameID)) {\n\t\t\tbbm.returnMaterials(materialCodes, materials);\n\t\t\t\n\t\t\t//Reset build value\n\t\t\tgc.placeBuilding(\"\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\n\t}",
"public void setSyncIndex(int index) {\n }",
"private void initMaterials()\r\n {\r\n get_availableMaterials().add(\r\n new Material( \"Wood\", EnvSettings.WOOD_COLOR, EnvSettings.WOOD_SPECIFIC_HEAT,\r\n EnvSettings.WOOD_TRANSPARENCY, EnvSettings.WOOD_THERMAL_CONDUCTIVITY,\r\n EnvSettings.WOOD_FLAME_POINT, EnvSettings.WOOD_DURABILITY, true, EnvSettings.WOOD_SMOKE_CAPACITY ) );\r\n get_availableMaterials().add(\r\n new Material( \"Air\", Scene3D.setBlue( _worldInitTemp ), EnvSettings.AIR_SPECIFIC_HEAT,\r\n EnvSettings.AIR_TRANSPARENCY, EnvSettings.AIR_THERMAL_CONDUCTIVITY,\r\n EnvSettings.VAPOR_FLAME_POINT, (int)( EnvSettings.INFINITIVE ), false , EnvSettings.AIR_SMOKE_CAPACITY) );\r\n get_availableMaterials().add(\r\n new Material( \"Metal\", EnvSettings.METAL_COLOR, EnvSettings.METAL_SPECIFIC_HEAT,\r\n EnvSettings.METAL_TRANSPARENCY, EnvSettings.METAL_THERMAL_CONDUCTIVITY,\r\n EnvSettings.INFINITIVE, (int)( EnvSettings.INFINITIVE ), false, EnvSettings.METAL_SMOKE_CAPACITY ) );\r\n }",
"public void setUniform(String uniformName, Material material) {\n setUniform(uniformName + \".color\", material.getColor());\n setUniform(uniformName + \".hasTexture\", material.isTextured() ? 1 : 0);\n setUniform(uniformName + \".reflectance\", material.getReflectance());\n }",
"@Deprecated\n/* */ protected void setTextureIndex(int idx) {\n/* 94 */ setData((byte)(getData() & 0x8 | idx));\n/* */ }",
"public void setType(Material type) {\n this.type = type;\n }",
"public Builder setMonsterIndex(int value) {\n bitField0_ |= 0x00000004;\n monsterIndex_ = value;\n onChanged();\n return this;\n }",
"public Builder setMonsterIndex(int value) {\n bitField0_ |= 0x00000002;\n monsterIndex_ = value;\n onChanged();\n return this;\n }",
"public void setIndex(int newIndex)\r\n {\r\n\t if(newIndex < 1)\r\n\t\t index = 1;\r\n\t else if(newIndex > getNumberOfLines())\r\n\t\t index = getNumberOfLines();\r\n\t else\r\n\t\t index = newIndex;\r\n }",
"public void\nsetColorIndexElt( SoNode node, int numIndices, \n int[] indices)\n{\n this.coinstate.colorindexarray = new IntArrayPtr(indices);\n this.coinstate.numdiffuse = numIndices;\n this.coinstate.packeddiffuse = false;\n}",
"public void setSmenindex(Integer smenindex) {\n this.smenindex = smenindex;\n }",
"public void set(int index, int o) {\n\t\tif(index == 0) return;\n\t\tr[index] = o;\n\t}",
"private void setFillIndex() {\n\t\tint t = this.fillgingIndex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.fillgingIndex = 0;\n\t\t\tsetComponentsOfIndex();\n\t\t} else {\n\t\t\tthis.fillgingIndex = t;\n\t\t}\n\n\t}",
"void setBlock(int x, int y, int z, byte[][] chunk, Material material) {\r\n\t\tif (chunk[y >> 4] == null)\r\n\t\t\tchunk[y >> 4] = new byte[16 * 16 * 16];\r\n\t\tif (!(y <= 256 && y >= 0 && x <= 16 && x >= 0 && z <= 16 && z >= 0))\r\n\t\t\treturn; // Out of bounds\r\n\t\ttry {\r\n\t\t\tchunk[y >> 4][((y & 0xF) << 8) | (z << 4) | x] = (byte) material\r\n\t\t\t\t\t.getId();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"void setBlock(int x, int y, int z, byte[][] chunk, Material material) {\n\t\tif (chunk[y>>4] == null)\n\t\t\tchunk[y>>4] = new byte[16*16*16];\n\t\tif (!(y<=256 && y >= 0 && x <= 16 && x >= 0 && z <= 16 && z >= 0))\n\t\t\treturn; //Out of bounds\n\t\ttry {\n\t\t\tchunk[y>>4][((y & 0xF) << 8) | (z << 4) | x] = (byte)material.getId();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void _setMediumLE(int index, int value)\r\n/* 471: */ {\r\n/* 472:485 */ HeapByteBufUtil.setMediumLE(this.array, index, value);\r\n/* 473: */ }",
"@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}",
"public void SetRecord(int index, Record rec){\n\t}",
"public void ApplyMaterial(TF3D_Material mat)\n\t{\n\t\tif (mat.typ == F3D.MAT_TYPE_TEXTURE)\n\t\t{\n\n\t\t\tthis.ResetMaterial();\n\t\t\t\n\t\t\tif (mat.bAlphaTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_ALPHA_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_ALPHA_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bDepthTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_DEPTH_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_DEPTH_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bFaceCulling)\n\t\t\t{\n\t\t\t\tglEnable(GL_CULL_FACE);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_CULL_FACE);\n\t\t\t}\n\n\t\t\tif (F3D.Config.use_gl_light)\n\t\t\t{\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_AMBIENT, F3D.GetBuffer.Float(mat.colors.ambient));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE, F3D.GetBuffer.Float(mat.colors.diffuse));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_SPECULAR, F3D.GetBuffer.Float(mat.colors.specular));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_EMISSION, F3D.GetBuffer.Float(mat.colors.emissive));\n\t\t\t\tglMaterialf(GL_FRONT, GL_SHININESS, mat.colors.shinisess);\n\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglColor4f(mat.colors.diffuse[0], mat.colors.diffuse[1], mat.colors.diffuse[2], mat.colors.diffuse[3]);\n\t\t\t}\n\n\t\t\tfor (int u = 0; u < F3D.MAX_TMU; u++)\n\t\t\t{\n\t\t\t\tif (mat.texture_unit[u].bEvent)\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.Apply(u, mat.texture_unit[u].event_id);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.ResetEvent(u);\n\t\t\t\t}\n\n\t\t\t\tif (mat.texture_unit[u].bTexture)\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.ActivateLayer(u);\n\t\t\t\t\tF3D.Textures.Bind(mat.texture_unit[u].texture_id);\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.DeactivateLayer(u);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t// SHADER\n\t\tif (mat.typ == F3D.MAT_TYPE_SHADER)\n\t\t{\n\n\t\t\tif (mat.bAlphaTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_ALPHA_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_ALPHA_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bDepthTest)\n\t\t\t{\n\t\t\t\tglEnable(GL_DEPTH_TEST);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_DEPTH_TEST);\n\t\t\t}\n\n\t\t\tif (mat.bFaceCulling)\n\t\t\t{\n\t\t\t\tglEnable(GL_CULL_FACE);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglDisable(GL_CULL_FACE);\n\t\t\t}\n\n\t\t\t\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_AMBIENT, F3D.GetBuffer.Float(mat.colors.ambient));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE, F3D.GetBuffer.Float(mat.colors.diffuse));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_SPECULAR, F3D.GetBuffer.Float(mat.colors.specular));\n\t\t\t\tglMaterial(GL_FRONT_AND_BACK, GL_EMISSION, F3D.GetBuffer.Float(mat.colors.emissive));\n\t\t\t\tglMaterialf(GL_FRONT, GL_SHININESS, mat.colors.shinisess);\n\n\t\t\t\n\n\t\t\tif (mat.use_shader)\n\t\t\t{\n\t\t\t\tF3D.Shaders.UseProgram(mat.shader_id);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int u = 0; u < F3D.MAX_TMU; u++)\n\t\t\t{\n\t\t\t\tif (mat.texture_unit[u].bEvent)\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.Apply(u, mat.texture_unit[u].event_id);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.MaterialEvents.ResetEvent(u);\n\t\t\t\t}\n\n\t\t\t\tif (mat.texture_unit[u].bTexture)\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.ActivateLayer(u);\n\t\t\t\t\tF3D.Textures.Bind(mat.texture_unit[u].texture_id);\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tF3D.Textures.DeactivateLayer(u);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t}",
"public void setLayerIndex(int index){\n layerIndex = index;\n }",
"public void setIndex(int value) {\n\t\tthis.index = value;\n\t}",
"public java.lang.String getMaterials(int index) {\n return materials_.get(index);\n }",
"public String getMaterial() {\n return material;\n }",
"public String getMaterial() {\n return material;\n }",
"public void setTexture(int index, Texture texture)\n\t{\n\t\tif (tmpReg == null)\n\t\t\ttmpReg = new TextureRegion[textures.length];\n\t\tif (tmpReg[index] == null) //minimize object creation since a lot of users will use this every frame\n\t\t\ttmpReg[index] = new TextureRegion();\n\t\ttmpReg[index].setRegion(texture);\n\t\tsetTexture(index, tmpReg[index]);\n\t}",
"public void set(int index, NioImageBuffer image) {\n\n \tthrow new UnsupportedOperationException();\n /*\n checkForLiveOrCompiled();\n // For NioImageBuffer the width and height checking is done in the retained.\n ((ImageComponent3DRetained)this.retained).set(index, image);\n */\n }",
"void indexReset();",
"public void set_AllSpreadIndexToZero(){\r\n\tGRASS=0; \r\n\tTIMBER=0;\r\n}",
"public java.lang.String getMaterials(int index) {\n return materials_.get(index);\n }",
"public CoreResourceHandle set(int index, CoreResourceHandle e) {\n if (index >= 0 && index < doSize()) {\n return doSet(index, e);\n }\n throw new IndexOutOfBoundsException();\n }",
"public void setImageIndex(int index)\n\t{\n\t\tthis.drawer.setImageIndex(index);\n\t}",
"public void setMATERIAL_VERSION(java.lang.String MATERIAL_VERSION) {\r\n this.MATERIAL_VERSION = MATERIAL_VERSION;\r\n }",
"public void\n\t setColorMaterialElt( boolean value )\n\t \n\t {\n//\t if (ivState.lightModel == LightModel.BASE_COLOR.getValue()) value = false;\n//\t ivState.colorMaterial = value;\n\t }",
"public EnableMaterial(ResourceUrn materialUrn) {\n this.materialUrn = materialUrn;\n this.material = getMaterial(materialUrn);\n }",
"public abstract void updateIndex();",
"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 void setIndexModel(TreeModel m) {\n if (editor != null)\n editor.setIndexModel(m);\n if (indexTree != null)\n indexTree.setModel(m);\n }",
"public Integer getMaterial_id() {\n return material_id;\n }",
"public void setIndx(int indx){\n this.indx = indx;\n }",
"void createMaterial(Material material) throws CreateException;",
"public void setColorModel(IndexColorModel colorModel);"
]
| [
"0.7538484",
"0.7264042",
"0.7051551",
"0.6706068",
"0.65734076",
"0.6570236",
"0.65582436",
"0.64788663",
"0.64451385",
"0.6444715",
"0.64213794",
"0.641436",
"0.63712263",
"0.6346524",
"0.6313112",
"0.6296928",
"0.6253161",
"0.6243846",
"0.6243424",
"0.6241172",
"0.6238678",
"0.6236804",
"0.6228136",
"0.6216946",
"0.6214111",
"0.6204297",
"0.6193903",
"0.61871606",
"0.6172008",
"0.6106881",
"0.6070925",
"0.6023257",
"0.6017226",
"0.6010728",
"0.6008318",
"0.6006848",
"0.6006848",
"0.5973503",
"0.59580284",
"0.59494114",
"0.59216845",
"0.5913548",
"0.58866954",
"0.58681506",
"0.5858833",
"0.58476025",
"0.5838609",
"0.58046985",
"0.58034706",
"0.57950824",
"0.57936126",
"0.57841855",
"0.57753605",
"0.5749289",
"0.56859905",
"0.56851596",
"0.5683013",
"0.5680469",
"0.5660082",
"0.5658503",
"0.56493074",
"0.563348",
"0.5629714",
"0.5620319",
"0.5619731",
"0.5606621",
"0.5605482",
"0.56022406",
"0.560152",
"0.55922395",
"0.5591974",
"0.5566021",
"0.55445325",
"0.55408144",
"0.5533248",
"0.55302453",
"0.5529573",
"0.5526323",
"0.55258584",
"0.5520879",
"0.5517154",
"0.55132234",
"0.55132234",
"0.55098546",
"0.5499102",
"0.5489619",
"0.5489104",
"0.5482481",
"0.5479192",
"0.546378",
"0.54542375",
"0.5453508",
"0.5452848",
"0.54519904",
"0.5446181",
"0.54460204",
"0.54454345",
"0.5439287",
"0.54349816",
"0.542091"
]
| 0.90941375 | 0 |
////////////////////////////////////////////////////////////////////// Description: Destructor Use: public | public void close()
//
////////////////////////////////////////////////////////////////////////
{
// Free up path
path.unref();
// The SoDetailList destructor deletes all details in the list, so
// we don't have to do it here
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\t\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy(){\n\t\t\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy()\r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\r\n\t}",
"@Override\r\n public void destroy() {\n\r\n }",
"@Override\n public void destroy() {\n\n }",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\r\n public void destroy() {\n }",
"@Override\r\n public void destroy() {\n }",
"@Override\n public void destroy() {\n\n }",
"@Override\n public void destroy() {\n\n }",
"@Override\n public void destroy() {\n\n }",
"@Override()\r\n protected void finalize() {\r\n destroy();\r\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\r\n\tpublic void destroy() {\n\t}",
"@Override\n public void destroy() {\n \n }",
"@Override\n\tpublic void detalhar() {\n\t\t\n\t}",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}"
]
| [
"0.7443811",
"0.7378807",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.73001266",
"0.72941667",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7260767",
"0.7259798",
"0.72452396",
"0.72452396",
"0.72452396",
"0.72452396",
"0.72452396",
"0.72452396",
"0.72452396",
"0.7243356",
"0.7237976",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.7217776",
"0.72049356",
"0.72049356",
"0.72049147",
"0.72049147",
"0.72049147",
"0.71987957",
"0.7182396",
"0.71786964",
"0.71722925",
"0.71712804",
"0.715958",
"0.7155383",
"0.71519613",
"0.71519613",
"0.71519613",
"0.71519613",
"0.71519613",
"0.71355724",
"0.71355724",
"0.71355724"
]
| 0.0 | -1 |
////////////////////////////////////////////////////////////////////// Description: Multiplies SbVec4f by matrix for transforming texture coords. Use: private, static | private static SbVec4f
multVecMatrix4(final SbMatrix m, final SbVec4f v)
//
////////////////////////////////////////////////////////////////////////
{
int i;
final SbVec4f v2 = new SbVec4f();
for (i = 0; i < 4; i++)
v2.getValueRead()[i] = (v.getValueRead()[0] * m.getValue()[0][i] +
v.getValueRead()[1] * m.getValue()[1][i] +
v.getValueRead()[2] * m.getValue()[2][i] +
v.getValueRead()[3] * m.getValue()[3][i]);
return v2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Vector4fc mul(IMatrix4f mat);",
"public abstract Vector4fc mulProject(IMatrix4f mat);",
"public abstract Vector4fc mul(IMatrix4x3f mat);",
"public abstract Vector4fc mul(float x, float y, float z, float w);",
"public abstract Vector4fc mul(IVector4f v);",
"public static native KVec4 mat4MulVec4v(Matrix4f inMat4, KVec4 inVec4);",
"public final native Vec4 multiply(Vec4 vec) /*-{\n return $wnd.mat4.multiplyVec4(this, vec, $wnd.vec4.create());\n }-*/;",
"public Matrix4f mult(Matrix4f r) {\r\n\t\tMatrix4f ret = new Matrix4f();\r\n\t\t\t\r\n\t\tfor(int i=0; i<4; i++) {\r\n\t\t\tfor(int j=0; j<4; j++) {\r\n\t\t\t\tret.m[i][j] = m[i][0] * r.m[0][j] +\r\n\t\t\t\t\t\t m[i][1] * r.m[1][j] +\r\n\t\t\t\t\t\t m[i][2] * r.m[2][j] +\r\n\t\t\t\t\t\t m[i][3] * r.m[3][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\treturn ret;\r\n\t}",
"public PMVMatrix(boolean useBackingArray) {\n projectFloat = new ProjectFloat();\n \n // I Identity\n // T Texture\n // P Projection\n // Mv ModelView\n // Mvi Modelview-Inverse\n // Mvit Modelview-Inverse-Transpose\n if(useBackingArray) {\n matrixBufferArray = new float[6*16];\n matrixBuffer = null;\n // matrixBuffer = FloatBuffer.wrap(new float[12*16]);\n } else {\n matrixBufferArray = null;\n matrixBuffer = Buffers.newDirectByteBuffer(6*16 * Buffers.SIZEOF_FLOAT);\n matrixBuffer.mark();\n }\n \n matrixIdent = slice2Float(matrixBuffer, matrixBufferArray, 0*16, 1*16); // I\n matrixTex = slice2Float(matrixBuffer, matrixBufferArray, 1*16, 1*16); // T\n matrixPMvMvit = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 4*16); // P + Mv + Mvi + Mvit \n matrixPMvMvi = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 3*16); // P + Mv + Mvi\n matrixPMv = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 2*16); // P + Mv\n matrixP = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 1*16); // P\n matrixMv = slice2Float(matrixBuffer, matrixBufferArray, 3*16, 1*16); // Mv\n matrixMvi = slice2Float(matrixBuffer, matrixBufferArray, 4*16, 1*16); // Mvi\n matrixMvit = slice2Float(matrixBuffer, matrixBufferArray, 5*16, 1*16); // Mvit\n \n if(null != matrixBuffer) {\n matrixBuffer.reset();\n } \n ProjectFloat.gluMakeIdentityf(matrixIdent);\n \n vec3f = new float[3];\n matrixMult = new float[16];\n matrixTrans = new float[16];\n matrixRot = new float[16];\n matrixScale = new float[16];\n matrixOrtho = new float[16];\n matrixFrustum = new float[16];\n ProjectFloat.gluMakeIdentityf(matrixTrans, 0);\n ProjectFloat.gluMakeIdentityf(matrixRot, 0);\n ProjectFloat.gluMakeIdentityf(matrixScale, 0);\n ProjectFloat.gluMakeIdentityf(matrixOrtho, 0);\n ProjectFloat.gluMakeZero(matrixFrustum, 0);\n \n matrixPStack = new ArrayList<float[]>();\n matrixMvStack= new ArrayList<float[]>();\n \n // default values and mode\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n glMatrixMode(GL_MODELVIEW);\n glLoadIdentity();\n glMatrixMode(GL.GL_TEXTURE);\n glLoadIdentity();\n setDirty();\n update();\n }",
"void glUniformMatrix4fv(int location, int count, boolean transpose,\n float[] value, int offset);",
"public static void glMultMatrixf(FloatBuffer left, FloatBuffer right, FloatBuffer result) {\n final int leftPosition = left.position();\n final int rightPosition = right.position();\n final int resultPosition = result.position();\n result.put(resultPosition + 0,\n (left.get(leftPosition + 0) * right.get(rightPosition + 0))\n + (left.get(leftPosition + 4) * right.get(rightPosition + 1))\n + (left.get(leftPosition + 8) * right.get(rightPosition + 2))\n + (left.get(leftPosition + 12) * right.get(rightPosition + 3)));\n result.put(resultPosition + 4,\n (left.get(leftPosition + 0) * right.get(rightPosition + 4))\n + (left.get(leftPosition + 4) * right.get(rightPosition + 5))\n + (left.get(leftPosition + 8) * right.get(rightPosition + 6))\n + (left.get(leftPosition + 12) * right.get(rightPosition + 7)));\n result.put(resultPosition + 8,\n (left.get(leftPosition + 0) * right.get(rightPosition + 8))\n + (left.get(leftPosition + 4) * right.get(rightPosition + 9))\n + (left.get(leftPosition + 8) * right.get(rightPosition + 10))\n + (left.get(leftPosition + 12) * right.get(rightPosition + 11)));\n result.put(resultPosition + 12,\n (left.get(leftPosition + 0) * right.get(rightPosition + 12))\n + (left.get(leftPosition + 4) * right.get(rightPosition + 13))\n + (left.get(leftPosition + 8) * right.get(rightPosition + 14))\n + (left.get(leftPosition + 12) * right.get(rightPosition + 15)));\n\n result.put(resultPosition + 1,\n (left.get(leftPosition + 1) * right.get(rightPosition + 0))\n + (left.get(leftPosition + 5) * right.get(rightPosition + 1))\n + (left.get(leftPosition + 9) * right.get(rightPosition + 2))\n + (left.get(leftPosition + 13) * right.get(rightPosition + 3)));\n result.put(resultPosition + 5,\n (left.get(leftPosition + 1) * right.get(rightPosition + 4))\n + (left.get(leftPosition + 5) * right.get(rightPosition + 5))\n + (left.get(leftPosition + 9) * right.get(rightPosition + 6))\n + (left.get(leftPosition + 13) * right.get(rightPosition + 7)));\n result.put(resultPosition + 9,\n (left.get(leftPosition + 1) * right.get(rightPosition + 8))\n + (left.get(leftPosition + 5) * right.get(rightPosition + 9))\n + (left.get(leftPosition + 9) * right.get(rightPosition + 10))\n + (left.get(leftPosition + 13) * right.get(rightPosition + 11)));\n result.put(resultPosition + 13,\n (left.get(leftPosition + 1) * right.get(rightPosition + 12))\n + (left.get(leftPosition + 5) * right.get(rightPosition + 13))\n + (left.get(leftPosition + 9) * right.get(rightPosition + 14))\n + (left.get(leftPosition + 13) * right.get(rightPosition + 15)));\n\n result.put(resultPosition + 2,\n (left.get(leftPosition + 2) * right.get(rightPosition + 0))\n + (left.get(leftPosition + 6) * right.get(rightPosition + 1))\n + (left.get(leftPosition + 10) * right.get(rightPosition + 2))\n + (left.get(leftPosition + 14) * right.get(rightPosition + 3)));\n result.put(resultPosition + 6,\n (left.get(leftPosition + 2) * right.get(rightPosition + 4))\n + (left.get(leftPosition + 6) * right.get(rightPosition + 5))\n + (left.get(leftPosition + 10) * right.get(rightPosition + 6))\n + (left.get(leftPosition + 14) * right.get(rightPosition + 7)));\n result.put(resultPosition + 10,\n (left.get(leftPosition + 2) * right.get(rightPosition + 8))\n + (left.get(leftPosition + 6) * right.get(rightPosition + 9))\n + (left.get(leftPosition + 10) * right.get(rightPosition + 10))\n + (left.get(leftPosition + 14) * right.get(rightPosition + 11)));\n result.put(resultPosition + 14,\n (left.get(leftPosition + 2) * right.get(rightPosition + 12))\n + (left.get(leftPosition + 6) * right.get(rightPosition + 13))\n + (left.get(leftPosition + 10) * right.get(rightPosition + 14))\n + (left.get(leftPosition + 14) * right.get(rightPosition + 15)));\n\n result.put(resultPosition + 3,\n (left.get(leftPosition + 3) * right.get(rightPosition + 0))\n + (left.get(leftPosition + 7) * right.get(rightPosition + 1))\n + (left.get(leftPosition + 11) * right.get(rightPosition + 2))\n + (left.get(leftPosition + 15) * right.get(rightPosition + 3)));\n result.put(resultPosition + 7,\n (left.get(leftPosition + 3) * right.get(rightPosition + 4))\n + (left.get(leftPosition + 7) * right.get(rightPosition + 5))\n + (left.get(leftPosition + 11) * right.get(rightPosition + 6))\n + (left.get(leftPosition + 15) * right.get(rightPosition + 7)));\n result.put(resultPosition + 11,\n (left.get(leftPosition + 3) * right.get(rightPosition + 8))\n + (left.get(leftPosition + 7) * right.get(rightPosition + 9))\n + (left.get(leftPosition + 11) * right.get(rightPosition + 10))\n + (left.get(leftPosition + 15) * right.get(rightPosition + 11)));\n result.put(resultPosition + 15,\n (left.get(leftPosition + 3) * right.get(rightPosition + 12))\n + (left.get(leftPosition + 7) * right.get(rightPosition + 13))\n + (left.get(leftPosition + 11) * right.get(rightPosition + 14))\n + (left.get(leftPosition + 15) * right.get(rightPosition + 15)));\n }",
"private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }",
"@Test\n public void scaleAdd() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {10.009f, 18.012f, 18.015f, 22.018f};\n // 1)\n Vec4f.scaleAdd(dest, 4, 3.0f, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n \n //2)\n Vec4f.scaleAdd(3.0f, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(a, 2, expect, 0, 1E-5f));\n \n float[] dest1 = new float[4]; \n float[] a1 = new float[] { 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b1 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n //3)\n Vec4f.scaleAdd(dest1, 3.0f, a1, b1);\n assertTrue(Vec4f.epsilonEquals(dest1, expect, 1E-5f));\n //4) \n Vec4f.scaleAdd(3.0f, a1, b1);\n assertTrue(Vec4f.epsilonEquals(a1, expect, 1E-5f));\n }",
"protected void applyMatrices () {\n combinedMatrix.set(projectionMatrix).mul(transformMatrix);\n getShader().setUniformMatrix(\"u_projTrans\", combinedMatrix);\n }",
"public void multL(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = m.a11*a11 + m.a12*a21 + m.a13*a31;\n\t\tb12 = m.a11*a12 + m.a12*a22 + m.a13*a32;\n\t\tb13 = m.a11*a13 + m.a12*a23 + m.a13*a33;\n\t\tb14 = m.a11*a14 + m.a12*a24 + m.a13*a34 + m.a14;\n\t\tb21 = m.a21*a11 + m.a22*a21 + m.a23*a31;\n\t\tb22 = m.a21*a12 + m.a22*a22 + m.a23*a32;\n\t\tb23 = m.a21*a13 + m.a22*a23 + m.a23*a33;\n\t\tb24 = m.a21*a14 + m.a22*a24 + m.a23*a34 + m.a24;\n\n\t\tb31 = m.a31*a11 + m.a32*a21 + m.a33*a31;\n\t\tb32 = m.a31*a12 + m.a32*a22 + m.a33*a32;\n\t\tb33 = m.a31*a13 + m.a32*a23 + m.a33*a33;\n\t\tb34 = m.a31*a14 + m.a32*a24 + m.a33*a34 + m.a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}",
"static float[] mulMV(float[] m, float[] v, float v3){ 0\n // 1\n // 2\n // 3\n\t // 0 1 2 3 \n\t // 4 5 6 7\n\t // 8 9 10 11\n\t // 12 13 14 15\n\t // \n \n return new float[]{\n \t m[ 0]*v[0] + m[ 1]*v[1] + m[ 2]*v[2] + m[ 3]*v3,\n \t m[ 4]*v[0] + m[ 5]*v[1] + m[ 6]*v[2] + m[ 7]*v3,\n \t m[ 8]*v[0] + m[ 9]*v[1] + m[10]*v[2] + m[11]*v3,\n \t m[12]*v[0] + m[13]*v[1] + m[14]*v[2] + m[15]*v3};\n }",
"public Vector3 mul(final Matrix4 matrix) {\r\n\t\tfinal float l_mat[] = matrix.val;\r\n\t\treturn this.set(x * l_mat[Matrix4.M00] + y * l_mat[Matrix4.M01] + z * l_mat[Matrix4.M02] + l_mat[Matrix4.M03],\r\n\t\t\t\tx * l_mat[Matrix4.M10] + y * l_mat[Matrix4.M11] + z * l_mat[Matrix4.M12] + l_mat[Matrix4.M13],\r\n\t\t\t\tx * l_mat[Matrix4.M20] + y * l_mat[Matrix4.M21] + z * l_mat[Matrix4.M22] + l_mat[Matrix4.M23]);\r\n\t}",
"public static CvMat getPerspectiveTransform(double[] src, double[] dst, CvMat map_matrix) {\n // creating and releasing matrices via NIO here in this function...\n // this can easily become a bottleneck\n CvMat A = CvMat.create(8, 8);\n CvMat b = CvMat.create(8, 1);\n CvMat x = CvMat.create(8, 1);\n\n for(int i = 0; i < 4; ++i ) {\n A.put(i*8+0, src[i*2]); A.put((i+4)*8+3, src[i*2]);\n A.put(i*8+1, src[i*2+1]); A.put((i+4)*8+4, src[i*2+1]);\n A.put(i*8+2, 1); A.put((i+4)*8+5, 1);\n A.put(i*8+3, 0); A.put(i*8+4, 0); A.put(i*8+5, 0);\n A.put((i+4)*8+0, 0); A.put((i+4)*8+1, 0); A.put((i+4)*8+2, 0);\n\n A.put(i*8+6, -src[i*2] *dst[i*2]);\n A.put(i*8+7, -src[i*2+1]*dst[i*2]);\n A.put((i+4)*8+6, -src[i*2] *dst[i*2+1]);\n A.put((i+4)*8+7, -src[i*2+1]*dst[i*2+1]);\n\n b.put(i, dst[i*2]);\n b.put(i+4, dst[i*2+1]);\n }\n cxcore.cvSolve(A, b, x, cxcore.CV_LU);\n map_matrix.put(x);\n map_matrix.put(8, 1);\n\n return map_matrix;\n }",
"public Vec4 addMul(final Vec4 o, final double s) {\n return new Vec4(x + o.x * s, y + o.y * s, z + o.z * s, w + o.w * s);\n }",
"private float a(int paramInt, boolean paramBoolean)\r\n/* 161: */ {\r\n/* 162:172 */ float f1 = paramInt % 16 * 8;\r\n/* 163:173 */ float f2 = paramInt / 16 * 8;\r\n/* 164:174 */ float f3 = paramBoolean ? 1.0F : 0.0F;\r\n/* 165: */ \r\n/* 166:176 */ this.h.a(this.g);\r\n/* 167: */ \r\n/* 168:178 */ float f4 = this.d[paramInt] - 0.01F;\r\n/* 169: */ \r\n/* 170:180 */ GL11.glBegin(5);\r\n/* 171:181 */ GL11.glTexCoord2f(f1 / 128.0F, f2 / 128.0F);\r\n/* 172:182 */ GL11.glVertex3f(this.i + f3, this.j, 0.0F);\r\n/* 173:183 */ GL11.glTexCoord2f(f1 / 128.0F, (f2 + 7.99F) / 128.0F);\r\n/* 174:184 */ GL11.glVertex3f(this.i - f3, this.j + 7.99F, 0.0F);\r\n/* 175:185 */ GL11.glTexCoord2f((f1 + f4 - 1.0F) / 128.0F, f2 / 128.0F);\r\n/* 176:186 */ GL11.glVertex3f(this.i + f4 - 1.0F + f3, this.j, 0.0F);\r\n/* 177:187 */ GL11.glTexCoord2f((f1 + f4 - 1.0F) / 128.0F, (f2 + 7.99F) / 128.0F);\r\n/* 178:188 */ GL11.glVertex3f(this.i + f4 - 1.0F - f3, this.j + 7.99F, 0.0F);\r\n/* 179:189 */ GL11.glEnd();\r\n/* 180: */ \r\n/* 181:191 */ return this.d[paramInt];\r\n/* 182: */ }",
"public Matrix4f() {\n setIdentity();\n }",
"public void sendUniformMat4fTransposed(Matrix4f mat)\n {\n setMatFloatBuffer(mat.getMatrix());\n GL4 gl = (GL4) GLContext.getCurrentGL();\n gl.glUniformMatrix4fv(uniformID,1,false,matBuffer);\n }",
"public void transform(float a11, float a12, float a21, float a22, float x, float y);",
"public Matrix4f getWorldMatrix() {\n\n\t\t// First identity\n\t\tmTranformation.identity();\n\n\t\t// Translate\n\t\tmTranformation.translate(position);\n\n\t\t// Rotate object at the center of the texture\n\t\tfloat x = 0.5f * mWidth;\n\t\tfloat y = 0.5f * mHeight;\n\n\t\t// Do rotating\n\t\tmTranformation.translate(new Vector3f(x, y, 0));\n\t\tmTranformation.rotateZ((float) Math.toRadians(rotation.z));\n\t\tmTranformation.translate(new Vector3f(-x, -y, 0));\n\n\t\t// mTranformation.scale(scale, scale, 1);\n\t\tmTranformation.scaleAround(scale, x, y, 0);\n\n\t\treturn mTranformation;\n\t}",
"void glUniform4fv(int location, int count, float[] v, int offset);",
"public void sendUniformMat4f(Matrix4f mat)\n {\n setMatFloatBuffer(mat.getMatrix());\n GL4 gl = (GL4) GLContext.getCurrentGL();\n gl.glUniformMatrix4fv(uniformID,1,true,matBuffer);\n }",
"private static AffineTransform3D MatrixMult(AffineTransform3D matLeft,\r\n\t\t\tAffineTransform3D matRight) {\r\n\r\n\t\tAffineTransform3D m = new AffineTransform3D();\r\n\t\tm.M11 = (matRight.M11 * matLeft.M11) + (matRight.M21 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M13) + (matRight.M41 * matLeft.M14);\r\n\t\tm.M12 = (matRight.M12 * matLeft.M11) + (matRight.M22 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M13) + (matRight.M42 * matLeft.M14);\r\n\t\tm.M13 = (matRight.M13 * matLeft.M11) + (matRight.M23 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M13) + (matRight.M43 * matLeft.M14);\r\n\t\tm.M14 = (matRight.M14 * matLeft.M11) + (matRight.M24 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M13) + (matRight.M44 * matLeft.M14);\r\n\t\tm.M21 = (matRight.M11 * matLeft.M21) + (matRight.M21 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M23) + (matRight.M41 * matLeft.M24);\r\n\t\tm.M22 = (matRight.M12 * matLeft.M21) + (matRight.M22 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M23) + (matRight.M42 * matLeft.M24);\r\n\t\tm.M23 = (matRight.M13 * matLeft.M21) + (matRight.M23 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M23) + (matRight.M43 * matLeft.M24);\r\n\t\tm.M24 = (matRight.M14 * matLeft.M21) + (matRight.M24 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M23) + (matRight.M44 * matLeft.M24);\r\n\t\tm.M31 = (matRight.M11 * matLeft.M31) + (matRight.M21 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M33) + (matRight.M41 * matLeft.M34);\r\n\t\tm.M32 = (matRight.M12 * matLeft.M31) + (matRight.M22 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M33) + (matRight.M42 * matLeft.M34);\r\n\t\tm.M33 = (matRight.M13 * matLeft.M31) + (matRight.M23 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M33) + (matRight.M43 * matLeft.M34);\r\n\t\tm.M34 = (matRight.M14 * matLeft.M31) + (matRight.M24 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M33) + (matRight.M44 * matLeft.M34);\r\n\t\tm.M41 = (matRight.M11 * matLeft.M41) + (matRight.M21 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M43) + (matRight.M41 * matLeft.M44);\r\n\t\tm.M42 = (matRight.M12 * matLeft.M41) + (matRight.M22 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M43) + (matRight.M42 * matLeft.M44);\r\n\t\tm.M43 = (matRight.M13 * matLeft.M41) + (matRight.M23 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M43) + (matRight.M43 * matLeft.M44);\r\n\t\tm.M44 = (matRight.M14 * matLeft.M41) + (matRight.M24 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M43) + (matRight.M44 * matLeft.M44);\r\n\r\n\t\treturn m;\r\n\t}",
"private void transform(float[] v, int len){\n \t\n \t\n \t\t\n if((len & 3) != 0) throw new IllegalArgumentException();\n \n for(int i = 0; i < len; i += 4){\n\n // 0\n // 1\n // 2\n // 3\n \t// 0 1 2 3 \n \t \t// 4 5 6 7\n \t \t// 8 9 10 11\n \t \t// 12 13 14 15\n \t \t// \n\n \tfloat v0 = v[i];\n \tfloat v1 = v[i+1];\n \tfloat v2 = v[i+2];\n \tfloat v3 = v[i+3];\n \t\n \tv[i] = matrix[ 0]*v0 + matrix[ 1]*v1 + matrix[ 2]*v2 + matrix[ 3]*v3;\n \tv[i+1] = matrix[ 4]*v0 + matrix[ 5]*v1 + matrix[ 6]*v2 + matrix[ 7]*v3;\n \tv[i+2] = matrix[ 8]*v0 + matrix[ 9]*v1 + matrix[10]*v2 + matrix[11]*v3;\n \tv[i+3] = matrix[12]*v0 + matrix[13]*v1 + matrix[14]*v2 + matrix[15]*v3;\n \t\n }\n\n }",
"private void multiply(float... values) {\n buffer(() -> {\n try (Pooled<Matrix4F> mat = Matrix4F.of(values)) {\n kernel.get().multiply(mat.get());\n }\n trans.set(kernel.get().asArray());\n });\n }",
"public static float[] multiply(float[] a, float[] b) {\n float[] tmp = new float[16];\n glMultMatrixf(FloatBuffer.wrap(a), FloatBuffer.wrap(b), FloatBuffer.wrap(tmp));\n return tmp;\n }",
"Matrix4f getModelMatrix();",
"static float[] mulVM(float[] vt, float vt3, float[] m){\n \t // 0 1 2 3 \n \t // 4 5 6 7\n \t // 8 9 10 11\n \t // 12 13 14 15\n \t // 0 1 2 3 \n \t\n \t return new float[] {vt[0]*m[0] + vt[1]*m[4] + vt[2]*m[ 8] + vt3*m[12],\n\t\t \t \t\t vt[0]*m[1] + vt[1]*m[5] + vt[2]*m[ 9] + vt3*m[13],\n\t\t \t \t\t vt[0]*m[2] + vt[1]*m[6] + vt[2]*m[10] + vt3*m[14],\n\t\t \t \t\t vt[0]*m[3] + vt[1]*m[7] + vt[2]*m[11] + vt3*m[15]};\n \t\n }",
"public Matrix4f GetMultipliedMatrix(Matrix4f m) {\n\n\t/*\n\tinputs--\n\t\n\tm :\n\t The input matrix m, instance of Matrix4f\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tmul :\n\t The matrix this times m\n\t*/\n\t\n\t// Create new matrix to hold the results\n\tMatrix4f mul = new Matrix4f();\n\t\n\t// Double for loop based standard multiplication\n\tfor (int n_i = 0; n_i < 4; n_i ++) {\n\t \n\t for(int n_j = 0; n_j < 4 ; n_j ++) {\n\t\t\n\t\t// Set entry one by one\n\t\tfloat f_val = 0;\n\t\tfor (int n_k = 0; n_k < 4; n_k ++) {\n\t\t\n\t\t f_val += this.mat_f_m[n_i][n_k]*m.GetComponent(n_k, n_j);\n\t\t\n\t\t}\n\t\tmul.SetComponent(n_i, n_j, f_val);\n\t\t\n\t }\n\t\n\t}\n\t\n\t// Return the multiplied matrix\n\treturn mul;\n \n }",
"public static void mult(TransformationMatrix l, TransformationMatrix r, TransformationMatrix m) {\n\t\tm.a11 = l.a11*r.a11 + l.a12*r.a21 + l.a13*r.a31;\n\t\tm.a12 = l.a11*r.a12 + l.a12*r.a22 + l.a13*r.a32;\n\t\tm.a13 = l.a11*r.a13 + l.a12*r.a23 + l.a13*r.a33;\n\t\tm.a14 = l.a11*r.a14 + l.a12*r.a24 + l.a13*r.a34 + l.a14;\n\t\tm.a21 = l.a21*r.a11 + l.a22*r.a21 + l.a23*r.a31;\n\t\tm.a22 = l.a21*r.a12 + l.a22*r.a22 + l.a23*r.a32;\n\t\tm.a23 = l.a21*r.a13 + l.a22*r.a23 + l.a23*r.a33;\n\t\tm.a24 = l.a21*r.a14 + l.a22*r.a24 + l.a23*r.a34 + l.a24;\n\t\tm.a31 = l.a31*r.a11 + l.a32*r.a21 + l.a33*r.a31;\n\t\tm.a32 = l.a31*r.a12 + l.a32*r.a22 + l.a33*r.a32;\n\t\tm.a33 = l.a31*r.a13 + l.a32*r.a23 + l.a33*r.a33;\n\t\tm.a34 = l.a31*r.a14 + l.a32*r.a24 + l.a33*r.a34 + l.a34;\n\t}",
"protected void compute_mvpMatrix(float[] VPMatrix) {\n Matrix.multiplyMM(tempMatrix, 0, modelMatrix, 0, accumulatedRotation, 0);\n\n // ... e applica la matrice che contiene il risultato della matrice view e di proiezione\n Matrix.multiplyMM(mvpMatrix, 0, VPMatrix, 0, tempMatrix, 0);\n }",
"public Vector4d mulAdd(Vector4d o, double s) {\n\t\tx += o.x * s; y += o.y * s; z += o.z * s; w += o.w * s;\n\t\treturn this;\n\t}",
"private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}",
"abstract public Matrix4fc getViewMatrix();",
"public void updateTransformMatrix(float[] fArr) {\n boolean z;\n float f;\n float f2;\n boolean z2 = true;\n if (!this.mVideoStabilizationCropped || !ModuleManager.isVideoModule()) {\n f2 = 1.0f;\n f = 1.0f;\n z = false;\n } else {\n f2 = MOVIE_SOLID_CROPPED_X * 1.0f;\n f = MOVIE_SOLID_CROPPED_Y * 1.0f;\n z = true;\n }\n if (this.mNeedCropped) {\n f2 *= this.mScaleX;\n f *= this.mScaleY;\n z = true;\n }\n if (this.mDisplayOrientation == 0) {\n z2 = z;\n }\n if (z2) {\n Matrix.translateM(fArr, 0, 0.5f, 0.5f, 0.0f);\n Matrix.rotateM(fArr, 0, (float) this.mDisplayOrientation, 0.0f, 0.0f, 1.0f);\n Matrix.scaleM(fArr, 0, f2, f, 1.0f);\n Matrix.translateM(fArr, 0, -0.5f, -0.5f, 0.0f);\n }\n }",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"static float[] mulMM(float[] m1, float[] m2){\n \t\n \t\tif(m1.length != 16 || m2.length != 16){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n \t\n float[] result = new float[16];\n for(int i = 0; i < 4; i++){ \n for(int j = 0; j < 4; j++){ \n float rij = 0;\n for(int k = 0; k < 4; k++){\n rij += m1[j*4+k] * m2[i+4*k];\n }\n// result[i*4+j] = rij;\n result[i+j*4] = rij;\n }\n }\n return result;\n }",
"public void updateExtraTransformMatrix(float[] fArr) {\n }",
"@Test\n public void sub() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {2.003f, -1.996f, 2.005f, 4.006f };\n Vec4f.sub(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 8.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {2.003f, -1.996f, 2.005f, 4.006f};\n Vec4f.sub(a4, b4);\n assertTrue(Vec4f.epsilonEquals(a4, expect4, 1E-6f));\n }",
"private static void multiply(float[] a, float[] b, float[] destination) {\r\n\t\tfor(int i = 0; i < 4; i++){\r\n\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\tfor(int k = 0; k < 4; k++){\r\n\t\t\t\t\tset(destination, i, j, get(destination, i, j) + get(a, i, k) * get(b, k, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"static float[] mulVM(float[] vt, float[] m){\n \n if(vt.length != 4){\n \t \tthrow new IllegalArgumentException();\n }\n \n return mulVM(vt, vt[3], m); \t\n }",
"public abstract Matrix4f getCameraMatrix();",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"public abstract Vector4fc set(float x, float y, float z, float w);",
"public void translate( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new Vector3f( x, y, 0 ) );\n\t\tmat.mul( opMat );\n\t}",
"public abstract Vector4fc fma(IVector4f a, IVector4f b);",
"public SbVec4f get(int index) \n { if (tCoords != null) return(new SbVec4f(tCoords[index].getValueRead()[0],tCoords[index].getValueRead()[1],\n 0.0f, 1.0f)); \n else return texCoordElt.get4(index); }",
"public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }",
"Matrix timesT( Matrix b )\n {\n return new Matrix( b.timesV(x), b.timesV(y), b.timesV(z) );\n }",
"Matrix( Vector a, Vector b )\n {\n x = b.times(a.x);\n y = b.times(a.y);\n z = b.times(a.z);\n }",
"@ThreadOpenGL\n public void glTexCoord2f()\n {\n GL11.glTexCoord2f(this.x, this.y);\n }",
"public static TransformMatrix multiplyMatrix(TransformMatrix a, TransformMatrix b) {\n\t\treturn new TransformMatrix(\n\t\t\t\ta.a * b.a,\n\t\t\t\ta.b * b.b,\n\t\t\t\ta.a * b.c + a.c,\n\t\t\t\ta.b * b.d + a.d\n\t\t\t\t);\n\t}",
"public void\nsetObjectTextureCoords(final SbVec4f texCoords)\n//\n////////////////////////////////////////////////////////////////////////\n{\n // Transform the object space coords by the current texture matrix\n // to get the image space texture coords\n imageTexCoords.copyFrom( multVecMatrix4(SoMultiTextureMatrixElement.get(state,0),\n texCoords));\n}",
"public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }",
"public void transform(double[] src, double[] dst){\n\tfor (int i = 0; i < dst.length; i++) {\n\t dst[i] = 0;\n\t for (int j = 0; j < src.length; j++)\n\t\tdst[i] += array[i][j] * src[j]; \n\t}\n }",
"public void translate(double x, double y, double z){\n \n \tMatrix trans = new Matrix();\n \ttrans.identity();\n \ttrans.set(1,4,x);\n \ttrans.set(2,4,y);\n \ttrans.set(3,4,x);\n \tthis.leftMultiply(trans);\n\n /* this doesn't work yet\n this.temp.identity();\n temp.set(1,4,x);\n temp.set(2,4,y);\n temp.set(3,4,x);\n this.leftMultiply(temp); */\n }",
"public static Transform mult(Transform t1, Transform t2) {\n\t\treturn transpose(t1.a * t2.a + t1.c * t2.b, t1.a * t2.c + t1.c * t2.d, t1.a * t2.tx + t1.c * t2.ty + t1.tx,\n\t\t\t\t\t\t t1.b * t2.a + t1.d * t2.b, t1.b * t2.c + t1.d * t2.d, t1.b * t2.tx + t1.d * t2.ty + t1.ty);\n\t}",
"protected void initTransforms() {\n for (int i = 0; i < cornerCount; i++) {\n int index = cornerOffset + i;\n identityVertexMatrix[index] = new idx3d_Matrix();\n }\n\n // 0:urf\n identityVertexMatrix[cornerOffset + 0].rotate(0, -HALF_PI, 0);\n // 1:dfr\n identityVertexMatrix[cornerOffset + 1].rotate(0, 0, PI);\n // 2:ubr\n identityVertexMatrix[cornerOffset + 2].rotate(0, PI, 0);\n // 3:drb\n identityVertexMatrix[cornerOffset + 3].rotate(0, 0, PI);\n identityVertexMatrix[cornerOffset + 3].rotate(0, -HALF_PI, 0);\n // 4:ulb\n identityVertexMatrix[cornerOffset + 4].rotate(0, HALF_PI, 0);\n // 5:dbl\n identityVertexMatrix[cornerOffset + 5].rotate(PI, 0, 0);\n // 6:ufl\n //--no transformation---\n // 7:dlf\n identityVertexMatrix[cornerOffset + 7].rotate(0, HALF_PI, 0);\n identityVertexMatrix[cornerOffset + 7].rotate(PI, 0, 0);\n //\n // We can clone the normalmatrix here form the vertex matrix, because\n // the vertex matrix consists of rotations only.\n for (int i = 0; i < cornerCount; i++) {\n identityNormalMatrix[i] = identityVertexMatrix[i].getClone();\n }\n\n /**\n * Edges\n */\n // Move all edge parts to front up (fu) and then rotate them in place\n for (int i = 0; i < edgeCount; i++) {\n int index = edgeOffset + i;\n idx3d_Matrix vt = new idx3d_Matrix();\n idx3d_Matrix nt = new idx3d_Matrix();\n identityVertexMatrix[index] = vt;\n identityNormalMatrix[index] = nt;\n // The vertex matrix is the same as the normal matrix, but with\n // an additional shift, which is made before the rotation.\n if (i >= 12) {\n switch ((i - 12) % 24) {\n case 12:\n case 13:\n case 2:\n case 3:\n case 4:\n case 17:\n case 6:\n case 19:\n case 20:\n case 21:\n case 10:\n case 11:\n vt.shift(PART_LENGTH*((i+12)/24), 0f, 0f);\n break;\n default:\n vt.shift(-PART_LENGTH*((i+12)/24), 0f, 0f);\n break;\n }\n }\n // Now we do the rotation with the normal matrix only\n switch (i % 12) {\n case 0: // ur\n nt.rotate(0, HALF_PI, 0f);\n nt.rotate(0, 0, HALF_PI);\n break;\n case 1: // rf\n nt.rotate(0, -HALF_PI, 0);\n nt.rotate(HALF_PI, 0, 0);\n break;\n case 2: // dr\n nt.rotate(0, -HALF_PI, HALF_PI);\n break;\n case 3: // bu\n nt.rotate(0, PI, 0);\n break;\n case 4: // rb\n nt.rotate(0, 0, HALF_PI);\n nt.rotate(0, -HALF_PI, 0);\n break;\n case 5: // bd\n nt.rotate(PI, 0, 0);\n break;\n case 6: // ul\n nt.rotate(-HALF_PI, -HALF_PI, 0);\n break;\n case 7: // lb\n nt.rotate(0, 0, -HALF_PI);\n nt.rotate(0, HALF_PI, 0);\n break;\n case 8: // dl\n nt.rotate(HALF_PI, HALF_PI, 0);\n break;\n case 9: // fu\n //--no transformation--\n break;\n case 10: // lf\n nt.rotate(0, 0, HALF_PI);\n nt.rotate(0, HALF_PI, 0);\n break;\n case 11: // fd\n nt.rotate(0, 0, PI);\n break;\n }\n // Finally, we concatenate the rotation to the vertex matrix\n vt.transform(nt);\n }\n /* Sides\n */\n // Move all side parts to the front side and rotate them into place\n for (int i = 0; i < sideCount; i++) {\n int index = sideOffset + i;\n idx3d_Matrix vt = new idx3d_Matrix();\n idx3d_Matrix nt = new idx3d_Matrix();\n identityVertexMatrix[index] = vt;\n identityNormalMatrix[index] = nt;\n // The vertex matrix is the same as the normal matrix, but with\n // an additional shift, which is made before the rotation.\n switch (i / 6) {\n // central part\n case 0 :\n // vt.shift(0, 0, 0);\n break;\n // inner ring\n case 1:\n vt.shift(-PART_LENGTH, -PART_LENGTH, 0);\n break;\n case 2:\n vt.shift(-PART_LENGTH, PART_LENGTH, 0);\n break;\n case 3:\n vt.shift(PART_LENGTH, PART_LENGTH, 0);\n break;\n case 4:\n vt.shift(PART_LENGTH, -PART_LENGTH, 0);\n break;\n case 5:\n vt.shift(0, -PART_LENGTH, 0);\n break;\n case 6:\n vt.shift(-PART_LENGTH, 0, 0);\n break;\n case 7:\n vt.shift(0, PART_LENGTH, 0);\n break;\n case 8:\n vt.shift(PART_LENGTH, 0, 0);\n break;\n // outer ring corners\n /*\n * +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+\n * | .0 | .2 | .3 | .1 |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | |75 |129|81 |105|57 | | |62 |140|92 |116|68 | | |66 |144|96 |120|72 | | |59 |137|89 |113|65 | |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | |123|27 |33 | 9 |135| | |110|14 |44 |20 |146| | |114|18 |48 |24 |126| | |107|11 |41 |17 |143| |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | .3|99 |51 | 3 |39 |87 |.1 | .1|86 |38 | 2 |50 |98 |.3 | .2|90 |42 | 0 |30 |78 |.0 | .0|83 |35 | 5 |47 |95 |.2 |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | |147|21 |45 |15 |111| | |134| 8 |32 |26 |122| | |138|12 |36 | 6 |102| | |131|29 |53 |23 |119| |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | |69 |117|93 |141|63 | | |56 |104|80 |128|74 | | |60 |108|84 |132|54 | | |77 |125|101|149|71 | |\n * + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ + +---+---+---+---+---+ +\n * | .2 | .0 | .1 | .3 |\n * +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+\n */\n case 9:\n vt.shift(-2f*PART_LENGTH, -2f*PART_LENGTH, 0);\n break;\n case 10:\n vt.shift(-2f*PART_LENGTH, 2f*PART_LENGTH, 0);\n break;\n case 11:\n vt.shift(2f*PART_LENGTH, 2f*PART_LENGTH, 0);\n break;\n case 12:\n vt.shift(2f*PART_LENGTH, -2f*PART_LENGTH, 0);\n break;\n // outer ring central edges\n case 13:\n vt.shift(0, -2f*PART_LENGTH, 0);\n break;\n case 14:\n vt.shift(-2f*PART_LENGTH, 0, 0);\n break;\n case 15:\n vt.shift(0, 2f*PART_LENGTH, 0);\n break;\n case 16:\n vt.shift(2f*PART_LENGTH, 0, 0);\n break;\n // outer ring clockwise shifted edges\n case 17:\n vt.shift(-PART_LENGTH, -2f*PART_LENGTH, 0);\n break;\n case 18:\n vt.shift(-2f*PART_LENGTH, PART_LENGTH, 0);\n break;\n case 19:\n vt.shift(PART_LENGTH, 2f*PART_LENGTH, 0);\n break;\n case 20:\n vt.shift(2f*PART_LENGTH, -PART_LENGTH, 0);\n break;\n // outer ring counter-clockwise shifted edges\n case 21:\n vt.shift(PART_LENGTH, -2f*PART_LENGTH, 0);\n break;\n case 22:\n vt.shift(-2f*PART_LENGTH, -PART_LENGTH, 0);\n break;\n case 23:\n vt.shift(-PART_LENGTH, 2f*PART_LENGTH, 0);\n break;\n case 24:\n vt.shift(2f*PART_LENGTH, PART_LENGTH, 0);\n break;\n\n }\n\n switch (i % 6) {\n case 0 : // r\n nt.rotate(0f, 0f, -HALF_PI);\n nt.rotate(0f, -HALF_PI, 0f);\n break;\n case 1 : // u\n nt.rotate(0f, 0f, HALF_PI);\n nt.rotate(-HALF_PI, 0f, 0f);\n break;\n case 2 : // f\n //--no transformation--\n break;\n case 3 : // l\n nt.rotate(0f, 0f, PI);\n nt.rotate(0f, HALF_PI, 0f);\n break;\n case 4 : // d\n nt.rotate(0f, 0f, PI);\n nt.rotate(HALF_PI, 0f, 0f);\n break;\n case 5 : // b\n nt.rotate(0f, 0f, HALF_PI);\n nt.rotate(0f, PI, 0f);\n break;\n }\n // Finally, we concatenate the rotation to the vertex matrix\n vt.transform(nt);\n }\n\n\n // Center part\n identityVertexMatrix[centerOffset] = new idx3d_Matrix();\n identityNormalMatrix[centerOffset] = new idx3d_Matrix();\n\n // copy all vertex locationTransforms into the normal locationTransforms.\n // create the locationTransforms\n for (int i = 0; i < partCount; i++) {\n\n locationTransforms[i] = new idx3d_Group();\n locationTransforms[i].matrix.set(identityVertexMatrix[i]);\n locationTransforms[i].normalmatrix.set(identityNormalMatrix[i]);\n\n explosionTransforms[i] = new idx3d_Group();\n explosionTransforms[i].addChild(parts[i]);\n locationTransforms[i].addChild(explosionTransforms[i]);\n }\n }",
"public abstract Vector4fc add(float x, float y, float z, float w);",
"public static long[][] multiply(long F[][], long M[][]){\n long x = F[0][0]*M[0][0] + F[0][1]*M[1][0]; \n long y = F[0][0]*M[0][1] + F[0][1]*M[1][1]; \n long z = F[1][0]*M[0][0] + F[1][1]*M[1][0]; \n long w = F[1][0]*M[0][1] + F[1][1]*M[1][1]; \n\n return new long[][]{{x,y},{z,w}};\n }",
"float[] getProjectionMatrix();",
"@Test\n public void interpolate() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {2.4f, 4.6f, 4.4f, 5.4f}; // 0.7 a + 0.3 b\n float[] expect0 = new float[] {3.0f, 4.0f, 5.0f, 6.0f}; // a value\n float[] expect1 = new float[] {1.0f, 6.0f, 3.0f, 4.0f}; // b value\n float alpha = 0.3f;\n // 1)\n Vec4f.interpolate(dest, 4, a, 2, b, 1, 0.0f);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect0, 0, 1E-5f));\n Vec4f.interpolate(dest, 4, a, 2, b, 1, 1.0f);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect1, 0, 1E-5f));\n Vec4f.interpolate(dest, 4, a, 2, b, 1, alpha);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-5f));\n \n \n float[] dest2 = new float[4]; \n float[] a2 = new float[] { 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b2 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n //2)\n Vec4f.interpolate(dest2, a2, b2, 0.0f);\n assertTrue(Vec4f.epsilonEquals(dest2, expect0, 1E-5f));\n Vec4f.interpolate(dest2, a2, b2, 1.0f);\n assertTrue(Vec4f.epsilonEquals(dest2, expect1, 1E-5f));\n Vec4f.interpolate(dest2, a2, b2, alpha);\n assertTrue(Vec4f.epsilonEquals(dest2, expect, 1E-5f));\n }",
"protected Matrix calculateTextureTransform(Size textureSize, Size previewSize) {\n float ratioTexture = (float) textureSize.width / (float) textureSize.height;\n float ratioPreview = (float) previewSize.width / (float) previewSize.height;\n\n float scaleX;\n float scaleY;\n\n // We scale so that either width or height fits exactly in the TextureView, and the other\n // is bigger (cropped).\n if (ratioTexture < ratioPreview) {\n scaleX = ratioPreview / ratioTexture;\n scaleY = 1;\n } else {\n scaleX = 1;\n scaleY = ratioTexture / ratioPreview;\n }\n\n Matrix matrix = new Matrix();\n\n matrix.setScale(scaleX, scaleY);\n\n // Center the preview\n float scaledWidth = textureSize.width * scaleX;\n float scaledHeight = textureSize.height * scaleY;\n float dx = (textureSize.width - scaledWidth) / 2;\n float dy = (textureSize.height - scaledHeight) / 2;\n\n // Perform the translation on the scaled preview\n matrix.postTranslate(dx, dy);\n\n return matrix;\n }",
"float[] getMVPMatrix();",
"public final native Mat4 translate(double x, double y, double z) /*-{\n return $wnd.mat4.translate(this, [x, y, z]);\n }-*/;",
"Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }",
"public Matrix4f(Vector4f col1, Vector4f col2, Vector4f col3, Vector4f col4) {\n m00 = col1.x;\n m10 = col1.y;\n m20 = col1.z;\n m30 = col1.w;\n\n m01 = col2.x;\n m11 = col2.y;\n m21 = col2.z;\n m31 = col2.w;\n\n m02 = col3.x;\n m12 = col3.y;\n m22 = col3.z;\n m32 = col3.w;\n\n m03 = col4.x;\n m13 = col4.y;\n m23 = col4.z;\n m33 = col4.w;\n }",
"public abstract Vector4fc fma(float a, IVector4f b);",
"public abstract Vector4fc sub(float x, float y, float z, float w);",
"public final void mul(float scalar) {\n\tm00 *= scalar; m01 *= scalar; m02 *= scalar;\n\tm10 *= scalar; m11 *= scalar; m12 *= scalar;\n\tm20 *= scalar; m21 *= scalar; m22 *= scalar;\n }",
"public void invertFastEqual()\r\n\t{\r\n\t\tE3DMatrix4x4F scratchMatrix = new E3DMatrix4x4F();\r\n\t\t\r\n//\t\tscratchMatrix.matrix4x4[0][0] = scratchMatrix.matrix4x4[]\r\n\t\tscratchMatrix.matrix4x4[0][1] = matrix4x4[1][0];\r\n\t\tscratchMatrix.matrix4x4[0][2] = matrix4x4[2][0];\r\n\t\tscratchMatrix.matrix4x4[1][0] = matrix4x4[0][1];\r\n//\t\tscratchMatrix.matrix4x4[1][1] = \r\n\t\tscratchMatrix.matrix4x4[1][2] = matrix4x4[2][1];\r\n\t\tscratchMatrix.matrix4x4[2][0] = matrix4x4[0][2];\r\n\t\tscratchMatrix.matrix4x4[2][1] = matrix4x4[1][2];\r\n//\t\tscratchMatrix.matrix4x4[2][2] =\r\n\t\t\r\n\t\tmatrix4x4[0][1] = scratchMatrix.matrix4x4[0][1];\r\n\t\tmatrix4x4[0][2] = scratchMatrix.matrix4x4[0][2];\r\n\t\tmatrix4x4[1][0] = scratchMatrix.matrix4x4[1][0];\r\n\t\tmatrix4x4[1][2] = scratchMatrix.matrix4x4[1][2];\r\n\t\tmatrix4x4[2][0] = scratchMatrix.matrix4x4[2][0];\r\n\t\tmatrix4x4[2][1] = scratchMatrix.matrix4x4[2][1];\r\n\t}",
"public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}",
"public Transformation(Matrix4f matrix) {\n\n this.matrix = matrix;\n }",
"public SbVec4f\ngetObjectTextureCoords(final SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n return multVecMatrix4(getImageToObject(node), imageTexCoords);\n}",
"public void Draw(float[] mMVPMatrix){\n float[] cellPos = new float[16];\n\n //scale\n Matrix.scaleM(mMVPMatrix,0,mMVPMatrix,0,.1f,.1f,1f);\n\n //float[] mRotationMatrix = new float[16];\n //Matrix.multiplyMM(cellPos, 0, mMVPMatrix, 0, mRotationMatrix, 0);\n\n //cells[0][0].draw(mMVPMatrix);\n\n for(float i = -grid.length/2; i< grid.length/2; i++) {\n\n for (float j = -grid[0].length/2; j < grid[0].length/2; j++) {\n Matrix.translateM(cellPos, 0, mMVPMatrix, 0, i, j, 1.5f);\n cells[(int)i+ grid.length/2][(int)j+ grid.length/2].draw(cellPos);\n }\n }\n }",
"public void transform(Vector3D V) {\r\n\t\tVector3D rv = new Vector3D();\r\n\t\trv.x = V.x * M11 + V.y * M21 + V.z * M31 + V.w * M41;\r\n\t\trv.y = V.x * M12 + V.y * M22 + V.z * M32 + V.w * M42;\r\n\t\trv.z = V.x * M13 + V.y * M23 + V.z * M33 + V.w * M43;\r\n\t\trv.w = V.x * M14 + V.y * M24 + V.z * M34 + V.w * M44;\r\n\t\tV.set(rv);\r\n\t}",
"public Vector2d mul(double s) {\n\t\treturn new Vector2d(x*s, y*s);\n\t}",
"@Test\n public void scale() {\n float[] a1 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.00f, 6.00f};\n float[] a2 = new float[] {3.003f, 4.004f, 5.00f, 6.00f};\n float[] expect = new float[] {9.009f, 12.012f, 15.00f, 18.00f};\n Vec4f.scale(3.0f, a1, 2);\n assertTrue(Vec4f.epsilonEquals(a1, 2, expect, 0, 1E-6f));\n Vec4f.scale(3.0f, a2);\n assertTrue(Vec4f.epsilonEquals(a2, expect, 1E-6f));\n }",
"@Test\n public void testMatrixIdentityOk() throws Exception {\n final String program = \"#version 300 es\\n\"\n + \"precision highp float;\\n\"\n + \"void main() {\"\n + \" mat2 m;\"\n + \" m;\"\n + \"}\";\n for (int i = 0; i < 20; i++) {\n final TranslationUnit tu = ParseHelper.parse(program);\n IdentityMutationFinder identityMutationFinder = new IdentityMutationFinder(tu,\n new RandomWrapper(i), GenerationParams.small(ShaderKind.FRAGMENT, false, false));\n identityMutationFinder.findMutations().forEach(Expr2ExprMutation::apply);\n new StandardVisitor() {\n @Override\n public void visitFunctionCallExpr(FunctionCallExpr functionCallExpr) {\n super.visitFunctionCallExpr(functionCallExpr);\n if (!functionCallExpr.getCallee().equals(Constants.GLF_IDENTITY)) {\n return;\n }\n if (!(functionCallExpr.getArgs().get(0) instanceof VariableIdentifierExpr)) {\n return;\n }\n if (!(((VariableIdentifierExpr) functionCallExpr.getArgs().get(0)).getName()\n .equals(\"m\"))) {\n return;\n }\n if (!(functionCallExpr.getArgs().get(1) instanceof BinaryExpr)) {\n return;\n }\n final BinaryExpr binaryExpr = (BinaryExpr) functionCallExpr.getArgs().get(1);\n if (!Arrays.asList(BinOp.DIV, BinOp.MUL).contains(binaryExpr.getOp())) {\n return;\n }\n if (!(binaryExpr.getRhs() instanceof TypeConstructorExpr)) {\n return;\n }\n final TypeConstructorExpr typeConstructorExpr = (TypeConstructorExpr) binaryExpr.getRhs();\n if (!typeConstructorExpr.getTypename().equals(BasicType.MAT2X2.toString())) {\n return;\n }\n if (binaryExpr.getOp() == BinOp.MUL) {\n // In the case of MUL we should be multiplying by the identity matrix.\n // The identity matrix should only have one arg, and if it is a literal it should be\n // 1.0.\n assertTrue(typeConstructorExpr.getNumArgs() == 1);\n if (typeConstructorExpr.getArg(0) instanceof FloatConstantExpr) {\n assertEquals(\"1.0\", ((FloatConstantExpr) typeConstructorExpr.getArg(0)).getValue());\n }\n } else {\n // In the case of DIV we should be multiplying by a matrix of all 1.0s.\n assertEquals(binaryExpr.getOp(), BinOp.DIV);\n assertTrue(typeConstructorExpr.getNumArgs() == 4);\n for (int i = 0; i < 4; i++) {\n if (typeConstructorExpr.getArg(i) instanceof FloatConstantExpr) {\n assertEquals(\"1.0\", ((FloatConstantExpr) typeConstructorExpr.getArg(i)).getValue());\n }\n }\n }\n }\n }.visit(tu);\n }\n }",
"public static Matrix4f updateGenericViewMatrix(Vector3f position, Vector3f rotation, Matrix4f matrix) {\n matrix.rotationX((float)Math.toRadians(rotation.x));\n matrix.rotateY((float)Math.toRadians(rotation.y));\n matrix.translate(-position.x, -position.y, -position.z);\n return matrix;\n }",
"public vec2 mul( vec2 o){\n vec2 R = new vec2 ();\n R.x += this._M[ 0 ] * o.x ;\n R.x += this._M[ 1 ] * o.y ;\n R.y += this._M[ 4 ] * o.x ;\n R.y += this._M[ 5 ] * o.y ;\n return R;\n }",
"public Vector4d scale(double sx, double sy, double sz, double sw) {\n\t\tx *= sx; y *= sy; z *= sz; w *= sw;\n\t\treturn this;\n\t}",
"protected Matrix4f createModelMatrix(Entity entity) {\n\n //Assemble the model matrix order = SRT\n Matrix4f matrix = new Matrix4f();\n matrix.mul(entity.getTranslationMatrix());\n matrix.mul(entity.getRotation());\n matrix.mul(entity.getScaleMatrix());\n \n return matrix;\n }",
"Matrix scalarMult(double x){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n itRow.moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(i, c.column, (x*c.value));\n itRow.moveNext();\n }\n }\n\n return newM;\n }",
"@Test\n public void add() {\n float[] dest = new float[10]; \n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest, 4, a, 2, b, 1);\n assertTrue(Vec4f.epsilonEquals(dest, 4, expect, 0, 1E-6f));\n \n float[] a2 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect2 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a2, 2, b2, 1);\n assertTrue(Vec4f.epsilonEquals(a2, 2, expect2, 0, 1E-6f));\n \n float[] dest3 = new float[4]; \n float[] a3 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b3 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect3 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(dest3, a3, b3);\n assertTrue(Vec4f.epsilonEquals(dest3,expect3, 1E-6f));\n \n float[] a4 = new float[] {3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b4 = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n float[] expect4 = new float[] {4.003f, 10.004f, 8.005f, 10.006f};\n Vec4f.add(a4, b4);\n //System.out.println(\"a=\"+Vec4f.toString(a, 2));\n assertTrue(Vec4f.epsilonEquals(a4,expect4, 1E-6f));\n }",
"@Test\n public void set() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f};\n float[] expect = new float[] {1.0f, 6.0f, 3.0f, 4.0f};\n Vec4f.set(a, 2, b, 1);\n assertTrue(Vec4f.equals(a, 2, expect, 0));\n \n float[] expect2 = new float[] {2.0f, 1.0f, 6.0f, 3.0f};\n Vec4f.set(a, b);\n assertTrue(Vec4f.equals(a, expect2));\n \n \n float[] a3 = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] expect3 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a3,2, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a3, 2, expect3, 0));\n \n float[] a4 = new float[4]; \n float[] expect4 = new float[] {2.0f, 1.0f, 6.0f, 4.0f};\n Vec4f.set(a4, 2.0f, 1.0f, 6.0f, 4.0f );\n assertTrue(Vec4f.equals(a4, expect4));\n }",
"public Vector3D product(float s)\r\n { \r\n return new Vector3D(s*this.x, s*this.y, s*this.z);\r\n }",
"public void scalarMultiply(double s) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n matrix.get(i)[j] *= s;\n }\n }\n }",
"public Vector2f mult (float v, Vector2f result)\n {\n return result.set(x*v, y*v);\n }",
"public Mat2 mult(double s) {\n\t\tdouble[][] newData = new double[rows][cols];\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\tnewData[i][j] = data[i][j] * s;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(newData);\n\t}",
"@Override\r\n protected Matrix4f genViewMatrix() {\r\n\r\n // refreshes the position\r\n position = calcPosition();\r\n\r\n // calculate the camera's coordinate system\r\n Vector3f[] coordSys = genCoordSystem(position.subtract(center));\r\n Vector3f right, up, forward;\r\n forward = coordSys[0];\r\n right = coordSys[1];\r\n up = coordSys[2];\r\n\r\n // we move the world, not the camera\r\n Vector3f position = this.position.negate();\r\n\r\n return genViewMatrix(forward, right, up, position);\r\n }",
"private int[] transformHelper(double[][] tranformationMat, int[] rGB) {\n int[] rGBNew = new int[3];\n for (int i = 0; i < rGB.length; i++) {\n for (int j = 0; j < tranformationMat[0].length; j++) { // tranformationMat size\n rGBNew[i] += tranformationMat[i][j] * rGB[j];\n }\n }\n\n return rGBNew;\n }",
"public void translate( float x, float y, float z )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new Vector3f( x, y, z ) );\n\t\tmat.mul( opMat );\n\t}",
"public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }",
"double scalarMultiplyVectors(double[] first, double[] second) throws InterruptedException;"
]
| [
"0.7357723",
"0.7258983",
"0.7222565",
"0.7204228",
"0.6790982",
"0.670276",
"0.6540531",
"0.63139504",
"0.6282811",
"0.6262627",
"0.6142622",
"0.5935746",
"0.593078",
"0.5912447",
"0.5890536",
"0.58867127",
"0.58859414",
"0.5883982",
"0.58700025",
"0.5823511",
"0.58050567",
"0.5790059",
"0.5749115",
"0.5723821",
"0.56873393",
"0.56732917",
"0.566071",
"0.56502205",
"0.56301117",
"0.5610729",
"0.56070656",
"0.55827075",
"0.5573698",
"0.5565072",
"0.5563265",
"0.55376893",
"0.55323935",
"0.552306",
"0.5512261",
"0.5475149",
"0.5467131",
"0.5463557",
"0.5455944",
"0.5452648",
"0.54446787",
"0.54388744",
"0.5437415",
"0.54304445",
"0.54021084",
"0.5399321",
"0.5387247",
"0.5384911",
"0.5382106",
"0.53683037",
"0.53621215",
"0.5352418",
"0.53435206",
"0.5342878",
"0.53367895",
"0.53167576",
"0.5316552",
"0.5272374",
"0.5272211",
"0.5267774",
"0.5267631",
"0.526667",
"0.52600366",
"0.5256394",
"0.5254611",
"0.5244269",
"0.5229134",
"0.5228452",
"0.52235717",
"0.52174723",
"0.52105004",
"0.5210256",
"0.5208086",
"0.5206515",
"0.52043796",
"0.52032083",
"0.51921177",
"0.5171531",
"0.51700145",
"0.5166673",
"0.5162465",
"0.5157061",
"0.51345813",
"0.51058453",
"0.51046646",
"0.5101495",
"0.5098488",
"0.50796926",
"0.5077666",
"0.5076061",
"0.50682503",
"0.50530803",
"0.5048453",
"0.5034935",
"0.50274646",
"0.5026201"
]
| 0.7366479 | 0 |
////////////////////////////////////////////////////////////////////// Description: Sets the detail corresponding to the given node in the path. NULL may be passed to remove a detail. Use: extender | public void
setDetail(SoDetail detail, SoNode node)
//
////////////////////////////////////////////////////////////////////////
{
int i;
// Find node in path
i = getNodeIndex(node);
//#ifdef DEBUG
// if (i < 0)
// SoDebugError::post("SoPickedPoint::setDetail",
// "Node %#x is not found in path", node);
//#endif /* DEBUG */
details.set(i, detail);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\r\n this.detail = detail;\r\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"void setNode(String path, Node node)\n throws ProcessingException;",
"public void setDetail(String detail) {\r\n this.detail = detail == null ? null : detail.trim();\r\n }",
"public synchronized void setNode(String path, Node node)\n throws ProcessingException {\n if ( path == null || path.equals(\"/\")) {\n data = DOMUtil.createDocument();\n data.appendChild(data.createElementNS(null, \"context\"));\n data.getFirstChild().appendChild(data.importNode(node, true));\n } else {\n path = this.createPath(path); \n Node removeNode = DOMUtil.selectSingleNode(data, path, this.xpathProcessor);\n removeNode.getParentNode().replaceChild(data.importNode(node, true), removeNode);\n }\n }",
"@Override\n\tpublic void setNodeInfo(String path, Object obj) {\n\t\treentrantReadWriteLock.readLock().lock();\n\t\ttry {\n\t\t\tzookeeper.setData(path, SomeUtil.getByte(obj),\n\t\t\t\t\t-1);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"更新跟节点数据异常!\", e);\n\t\t} finally {\n\t\t\treentrantReadWriteLock.readLock().unlock();\n\t\t}\n\t}",
"PathDetail(Object value) {\n this.value = value;\n }",
"@Override\n\tpublic void setTargetDetailOne(int id, HttpServletRequest request) {\n\t\t\n\t}",
"public void setDetail(byte[] detail) {\r\n this.detail = detail;\r\n }",
"public final void setDetailDescription(java.lang.String detaildescription)\r\n\t{\r\n\t\tsetDetailDescription(getContext(), detaildescription);\r\n\t}",
"public void setDetailId(Number value) {\n setAttributeInternal(DETAILID, value);\n }",
"void setValueOfNode(String path, String value)\n throws ProcessingException;",
"public synchronized void setValueOfNode(String path, String value)\n throws ProcessingException {\n path = this.createPath(path); // correct path\n\n Node node = DOMUtil.selectSingleNode(data, path, this.xpathProcessor);\n if (node.getNodeType() == Node.ATTRIBUTE_NODE) {\n Attr attr = (Attr)node;\n attr.setNodeValue(value);\n\n } else {\n\n // remove old childs\n while (node.hasChildNodes() == true) {\n node.removeChild(node.getFirstChild());\n }\n\n node.appendChild(node.getOwnerDocument().createTextNode(value));\n }\n }",
"@Override\n public void setDetailAttributes(MetaData metaData, String[] attributes)\n {\n }",
"public void addDetail(KV detail) {\n if (this.detail == null) {\n this.detail = new ArrayList<>();\n }\n this.detail.add(detail);\n }",
"@Override\n\tpublic void setTargetDetailTwo(int id, HttpServletRequest request) {\n\t\t\n\t}",
"public void\nsetPath(SoPath path)\n{\n // ref the input path\n if (path != null)\n path.ref();\n\n // nuke the old path\n if (pathOfInterest != null) {\n pathOfInterest.unref();\n pathOfInterest = null;\n }\n // and copy the new path\n if (path != null) {\n pathOfInterest = path.copy();\n pathOfInterest.ref();\n }\n\n // unref the input path\n if (path != null)\n path.unref();\n\n}",
"public final void setDetailDescription(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String detaildescription)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.DetailDescription.toString(), detaildescription);\r\n\t}",
"public void setNode_2(String node_2);",
"public void setNode_1(String node_1);",
"public void setLBR_DocLine_Details_ID (int LBR_DocLine_Details_ID);",
"public SoDetail \ngetDetail(SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int index;\n\n // Test for default case, corresponding to tail of path\n if (node == null)\n index = ( SoFullPath.cast ( path)).getLength() - 1;\n\n else\n index = getNodeIndex(node);\n\n return details.operator_square_bracket(index);\n}",
"public Problem detail(String detail) {\n this.detail = detail;\n return this;\n }",
"public void setCurrentDetailView(int currentDetailView) {\n this.currentDetailView = currentDetailView;\n }",
"void setCurrentLineNode(Node<UnderlyingData> currentLineNode);",
"public void setMater(T target, T rchild) throws ElementNotFoundException {\r\n int index = getIndex(target);\r\n if (index == -1) {\r\n throw new ElementNotFoundException(\"setMater: target not found\");\r\n }\r\n if (index * 2 + 2 >= SIZE) {\r\n System.out.println(\"out of bound\");\r\n return;\r\n } else {\r\n tree[index * 2 + 2] = rchild;\r\n }\r\n }",
"public void setIdentifier(IdentifierNode identifier);",
"public void setCatalogPathRef(Reference r) {\n if (isReference()) {\n throw tooManyAttributes();\n }\n createCatalogPath().setRefid(r);\n setChecked(false);\n }",
"@Override\n void setPath(String sessionId, String path) {\n if (sessionsInfoManager.getPath(sessionId).isEmpty())\n {\n sessionsInfoManager.setPath(sessionId, path);\n }\n }",
"public void updateDetail(String proid) {\n\t\tsqlSession.update(\"product.updateDetail\", proid);\n\t}",
"void setHoverDetail(String detail);",
"private void setNode(DefaultMutableTreeNode node){\n\t\t\n\t\tthis.node = node;\n\t\t\n\t}",
"public void setDetailFail(com.amx.mexico.telcel.esb.v1_2.DetailFailType detailFail)\n {\n generatedSetterHelperImpl(detailFail, DETAILFAIL$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setOutline(RMXString.Outline anOutline) { }",
"public void setPater(T target, T lchild) throws ElementNotFoundException {\r\n int index = getIndex(target);\r\n if (index == -1) {\r\n throw new ElementNotFoundException(\"setPater: target not found\");\r\n }\r\n if (index * 2 + 1 >= SIZE) {\r\n System.out.println(\"out of bound\");\r\n return;\r\n } else {\r\n tree[index * 2 + 1] = lchild;\r\n }\r\n }",
"private void addDetail(String detail) {\n Label label = new Label();\n label.setText(\"\\u2022\" + detail);\n label.setWrapText(true);\n label.getStyleClass().add(\"cell_small_label\");\n details.getChildren().add(label);\n }",
"public void set(String path, Object value) {\n yml.set(path, value);\n save();\n }",
"@Override\n\tpublic void setTargetDetailThree(int id, HttpServletRequest request) {\n\t\t\n\t}",
"public void editDataInResolution(String alias, ArrayList<String> nameForManipulator, ArrayList<Integer> nameIndicator, ArrayList<Integer> classST,\n ArrayList<Integer> superST, ArrayList<String> classString, ArrayList<String> superSting, boolean exist, int id) {\n Resolution relation = dataModel.getResolution(id);\n dataModel.addDataToResolution(relation, alias, nameForManipulator, nameIndicator, classST, superST, classString, superSting, exist);\n }",
"protected void changeNode( String workspaceName,\n NodeKey key,\n Path path,\n Name primaryType,\n Set<Name> mixinTypes ) {\n }",
"public abstract void setSelectedNode(String n);",
"public void editNode(Id target, Coordinate newCoord, String newTag){\n\t\tNode n = returnNodeById(target);\n\t\tif(n != null){\n\t\t\tn.setCoordinate(newCoord);\n\t\t\tlistOfNodes.set(target.indice, n);\n\t\t\tn.addTag(newTag);\n\t\t}\n\t}",
"void setPath(String path);",
"public void xsetPart(org.apache.xmlbeans.XmlNCName part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNCName target = null;\n target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(PART$2);\n }\n target.set(part);\n }\n }",
"public ContextNode setDeepContextNode(XDI3Segment contextNodeXri);",
"public void setNode(String node)\n {\n this.node = node;\n }",
"public void setRelPath (\r\n String strRelPath) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"protected abstract void maybeBindNode(OutlineNode node, Line line, AnchorManager anchorManager);",
"public void setPart(java.lang.String part)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PART$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PART$2);\n }\n target.setStringValue(part);\n }\n }",
"public void editDataInRelation(String alias, ArrayList<String> nameForManipulator, ArrayList<Integer> nameIndicator, ArrayList<Integer> classST,\n ArrayList<Integer> superST, ArrayList<String> classString, ArrayList<String> superSting, boolean exist, int id) {\n\n Relation relation = dataModel.getRelation(id);\n dataModel.addDataToRelation(relation, alias, nameForManipulator, nameIndicator, classST, superST, classString, superSting, exist);\n }",
"public void setPath(String path)\r\n/* 21: */ {\r\n/* 22:53 */ this.path = path;\r\n/* 23: */ }",
"public void setNode(String procId) {\r\n\t\tif (recordRoute) {\r\n\t\t\tsuper.setNode(procId); //Record route\r\n\t\t} else {\r\n\t\t\t//Just set the processing node.\r\n\t\t\tthis.procNode = procId;\r\n\t\t}\r\n\t}",
"public void setLink(FileNode target){\n\t\t/*link = target;\n\t\tsuper.setOffset(0);\n\t\tsuper.setLength(link.getLength());\n\t\tsuper.setSourcePath(link.getSourcePath());*/\n\t\tsuper.setVirtualSourceNode(target);\n\t\tsuper.setOffset(0);\n\t\tif(target != null){\n\t\t\tsuper.setLength(target.getLength());\n\t\t\tsuper.setSourcePath(target.getSourcePath());\n\t\t}\n\t}",
"@Override\r\n\tpublic void insert_story_detail(String member_cd) {\n\t\tsst.insert(namespace+\".insert_story_detail\",member_cd);\r\n\t}",
"private void resetDetailView() {\n if (lastDetailView != null) {\n ((TextView) lastDetailView).setSingleLine(true);\n }\n lastDetailView = null;\n currentDetailView = -1;\n }",
"public void setNode(String node) {\n this.node = node;\n }",
"public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}",
"public void setDetails(String details) {\n\t\tif(details != null)\n\t\t\tthis.details = details;\n\t}",
"void removeDetail(String id);",
"public void setPathInfo(String pathInfo) {\n this.pathInfo = pathInfo;\n }",
"@Override\n\tpublic void addDetails(String details) {\n\t\tthis.details = details;\n\t}",
"public Builder setNewsindentifydetail(\n int index, com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNewsindentifydetailIsMutable();\n newsindentifydetail_.set(index, value);\n\n return this;\n }",
"public final void mT__114() throws RecognitionException {\n try {\n int _type = T__114;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalEsm.g:108:8: ( 'detail' )\n // InternalEsm.g:108:10: 'detail'\n {\n match(\"detail\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void setModel(IHierarchicalNodeModel model);",
"public void valueForPathChanged( TreePath path, Object newValue )\n {\n Object obj = path.getPath( )[ path.getPath( ).length - 1 ];\n if( obj instanceof DynamicUtilTreeNode )\n {\n try\n {\n ( ( MenuItem ) ( ( DynamicUtilTreeNode ) ( path.getPath( )[ path.getPath( ).length - 1 ] ) ).getUserObject( ) ).setName( newValue.toString( ) );\n }\n catch( SQLException e )\n {\n JOptionPane.showMessageDialog( window, \"Error inesperado tratando de actualizar el nombre del item del menu \\n \" + e.getMessage( ), \"ERROR\", JOptionPane.ERROR_MESSAGE );\n e.printStackTrace( );\n }\n }\n else if( obj instanceof DefaultMutableTreeNode )// Aqui entra cuando el MenuItem fue creado en esta secion\n {\n try\n {\n ( ( MenuItem ) ( ( DefaultMutableTreeNode ) ( path.getPath( )[ path.getPath( ).length - 1 ] ) ).getUserObject( ) ).setName( newValue.toString( ) );\n }\n catch( SQLException e )\n {\n JOptionPane.showMessageDialog( window, \"Error inesperado tratando de actualizar el nombre del item del menu \\n \" + e.getMessage( ), \"ERROR\", JOptionPane.ERROR_MESSAGE );\n e.printStackTrace( );\n }\n }\n else\n {\n System.err.println( obj.getClass( ) );\n }\n // System.out.println( ( ( MenuItem ) ( ( DynamicUtilTreeNode ) ( path.getPath( )[ path.getPath( ).length - 1 ] ) ).getUserObject( ) ) );\n // ( ( MenuItem ) ( ( DynamicUtilTreeNode ) ( path.getPath( )[ path.getPath( ).length - 1 ] ) ).getUserObject( ) ).setNombre( newValue.toString( ) );\n // System.out.println( path );\n // System.out.println( newValue );\n }",
"public void setLabeledBy(View root, int virtualDescendantId) {\n/* 1648 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setRootItem(Object newItem);",
"public Document addDetailFrame(Document doc, Namespace ns,\n HashMap<String, Object> parameter, Detail detail) {\n\n // add paramters with \"_<DetailName>\" extension\n String parameterExtension = \"_\" + detail.getName().toUpperCase();\n this.addParameter(doc, ns, \"DETAIL_NAME\" + parameterExtension,\n \"java.lang.String\");\n this.addParameter(doc, ns, \"DETAIL_TYPE\" + parameterExtension,\n \"java.lang.String\");\n this.addParameter(doc, ns, \"DETAIL_DESCRIPTION\" + parameterExtension,\n \"java.lang.String\");\n this.addParameter(doc, ns, \"DETAIL_COMPARISON\" + parameterExtension,\n \"java.util.ArrayList\");\n this.addParameter(doc, ns, \"DETAIL_RANKING\" + parameterExtension,\n \"java.util.ArrayList\");\n this.addParameter(doc, ns, \"DETAIL_CONSISTENCY_RATIO\"\n + parameterExtension, \"java.lang.String\");\n this.addParameter(doc, ns, \"DETAIL_NUMBER\" + parameterExtension,\n \"java.lang.String\");\n this.addParameter(doc, ns, \"DETAIL_PARENTS\" + parameterExtension,\n \"java.lang.String\");\n\n // get pattern band element (at index 4)\n Element detailElement = doc.getRootElement().getChild(\"detail\", ns);\n @SuppressWarnings(\"unchecked\")\n List<Element> detailElementList = detailElement.getChildren();\n\n Element bandElement = detailElementList.get(4);\n\n // clone pattern element\n Element newBandElement = (Element) bandElement.clone();\n @SuppressWarnings(\"unchecked\")\n List<Element> bandList = newBandElement.getChildren();\n\n // get child \"frame\"\n Element frame = bandList.get(bandList.size() - 1);\n @SuppressWarnings(\"unchecked\")\n List<Element> frameChildren = frame.getChildren();\n\n // iterate over frame Children\n for (Element thisElement : frameChildren) {\n\n // find all textfields and replace parameter names\n if (thisElement.getName().equals(\"textField\")) {\n Element textFieldExpression = thisElement.getChild(\n \"textFieldExpression\", ns);\n String textFieldExpressionText = textFieldExpression.getText();\n\n \n if (textFieldExpressionText.equals(\"$P{DETAIL_DESCRIPTION}\")) {\n textFieldExpression\n .setContent(new CDATA(\"$P{DETAIL_DESCRIPTION\"\n + parameterExtension + \"}\"));\n\n } else if (textFieldExpressionText\n .equals(\"$P{DETAIL_CONSISTENCY_RATIO}\")) {\n textFieldExpression.setContent(new CDATA(\n \"$P{DETAIL_CONSISTENCY_RATIO\" + parameterExtension\n + \"}\"));\n\n // set Color of Conistency Ratio (red, if Cr is higher than\n // the critical CR\n setConsistencyRatioColor(detail.getConsistencyRatio(),\n thisElement, ns);\n\n } else if (textFieldExpressionText\n .equals(\"$P{DETAIL_NUMBER} + \\\" \\\" +$P{DETAIL_TYPE} + \\\": \\\" + $P{DETAIL_NAME}\")) {\n textFieldExpression.setContent(new CDATA(\"$P{DETAIL_NUMBER\"\n + parameterExtension + \"} + \\\" \\\" +$P{DETAIL_TYPE\"\n + parameterExtension + \"}+ \\\": \\\" + $P{DETAIL_NAME\"\n + parameterExtension + \"}\"));\n\n //set new detail parents parameter name\n } else if (textFieldExpressionText\n .equals(\"\\\"Parent(s): \\\" + $P{DETAIL_PARENTS}\")) {\n textFieldExpression.setContent(new CDATA(\n \"\\\"Parent(s): \\\" + $P{DETAIL_PARENTS\"\n + parameterExtension + \"}\"));\n\n }\n\n // modify crosstab parameter expression\n } else if (thisElement.getName().equals(\"crosstab\")) {\n thisElement\n .getChild(\"crosstabDataset\", ns)\n .getChild(\"dataset\", ns)\n .getChild(\"datasetRun\", ns)\n .getChild(\"dataSourceExpression\", ns)\n .setContent(\n new CDATA(\n \"new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{DETAIL_COMPARISON\"\n + parameterExtension + \"})\"));\n\n // modfiy table parameter expression\n } else if (thisElement.getName().equals(\"componentElement\")) {\n Namespace tableNs = Namespace\n .getNamespace(\"http://jasperreports.sourceforge.net/jasperreports/components\");\n thisElement\n .getChild(\"table\", tableNs)\n .getChild(\"datasetRun\", ns)\n .getChild(\"dataSourceExpression\", ns)\n .setContent(\n new CDATA(\n \"new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{DETAIL_RANKING\"\n + parameterExtension + \"})\"));\n }\n\n }\n\n // add modified band-element to detail-element\n detailElement.addContent(newBandElement);\n\n // put parameters of the added detail band to the parameter HashMap\n parameter.put(\"DETAIL_NAME\" + parameterExtension, detail.getName());\n parameter.put(\"DETAIL_TYPE\" + parameterExtension, detail.getType());\n parameter.put(\"DETAIL_DESCRIPTION\" + parameterExtension,\n detail.getDescription());\n parameter.put(\"DETAIL_COMPARISON\" + parameterExtension,\n detail.getComparison());\n parameter.put(\"DETAIL_RANKING\" + parameterExtension,\n detail.getRanking());\n\n parameter.put(\"DETAIL_CONSISTENCY_RATIO\" + parameterExtension,\n detail.getConsistencyRatio());\n parameter.put(\"DETAIL_NUMBER\" + parameterExtension, detail.getNumber());\n parameter.put(\"DETAIL_PARENTS\" + parameterExtension,\n detail.getParents());\n\n return doc;\n }",
"public void setdetailsRoute(String[] details) {\r\n\t\tfor (int i = 0; i < details.length; i++) {\r\n\t\t\tdetailsRoute[i] = details[i];\r\n\t\t}\r\n\t\tsetFlightNumber(detailsRoute[0]);\r\n\t\tsetDepartureTime(Integer.parseInt(detailsRoute[1]));\r\n\t\tsetArrivalTime(Integer.parseInt(detailsRoute[3]));\r\n\t\tcalculateFlightDuration();\r\n\t\tsetPrice(Double.parseDouble(detailsRoute[4]));\r\n\r\n\t}",
"@Override\n\tpublic void detail(GalaxyNote phone) {\n\t\t\n\t}",
"void setNode(int nodeId, double lat, double lon, double ele);",
"public void setDetailLineBitmap(Bitmap bitmap) {\n mController.setDetailLineBitmap(bitmap);\n }",
"@Override\n\tpublic void getDetail() {\n\t\t\n\t}",
"public void setReportDetail (String reportDetail) {\n this.reportDetail = reportDetail;\n }",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"public Builder addNewsindentifydetail(com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNewsindentifydetailIsMutable();\n newsindentifydetail_.add(value);\n\n return this;\n }",
"@Override\n public void set(E e) throws NullPointerException\n {\n if(canRemove = true)\n {\n if(forward = true)\n {\n Node theNode = getNth(idx - 1);\n theNode.data = e;\n }\n else\n {\n Node theNode = getNth(idx);\n theNode.data = e;\n }\n }\n else\n {\n throw new IllegalArgumentException();\n }\n }",
"public void setNode_5(String node_5);",
"public void setNode_4(String node_4);",
"public void changePath(String newPath){\n this.path=newPath;\n }",
"public void setNode(DEPNode node)\n\t{\n\t\tthis.node = node;\n\t}",
"public void set(File file, String view, String attribute, Object value, boolean create) {\n/* 131 */ throw unsettable(view, attribute);\n/* */ }",
"public void put(String path, T value) {\n checkNotEmpty(path);\n requireNonNull(value);\n\n List<String> components = pathToComponents(Paths.get(removeAsterisk(path)));\n\n if (path.endsWith(\"/\") || path.endsWith(\"/*\")) {\n // it is a directory\n components.add(\"/\");\n }\n\n T existing = tree.getExactMatch(components);\n if (existing != null) {\n String message = format(\"Path '%s' has already been configured with a ID of [%s]\",\n path, existing.toString());\n throw new DuplicatePathException(message);\n }\n\n tree.addValueWithParents(components, value);\n }",
"public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnyURI target = null;\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);\n }\n target.set(identifier);\n }\n }",
"public void setAccidentDetail(typekey.AccidentDetailPEL value);",
"public void setNode(ResidentNode node) {\r\n\t\tthis.node = node;\r\n//\t\tif (this.node != null && this.node.getMFrag() != null) {\r\n//\t\t\tthis.mebn = this.node.getMFrag().getMultiEntityBayesianNetwork();\r\n//\t\t}\r\n\t}",
"@Override\n\tpublic void setValue(String path, Object value) {\n\t\tif (path.indexOf('.') >= 0 || path.indexOf('(') >= 0 ) {\n\t\t\tFlexDataAccess access = new FlexDataAccess(this, path, true);\n\t\t\taccess.setToPath(value);\n\t\t} else {\n\t\t\tsetValueMap(path, value);\n\t\t}\n\t}",
"@Override\n\tpublic void setValue(String path, long value) {\n\t\tsetValue(path, new Long(value));\n\t}",
"public void setPath(String path);",
"public void xsetGPSAntennaDetailsID(org.apache.xmlbeans.XmlIDREF gpsAntennaDetailsID)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(GPSANTENNADETAILSID$14);\r\n }\r\n target.set(gpsAntennaDetailsID);\r\n }\r\n }",
"public void set(DEPNode node, String label)\n\t{\n\t\tthis.node = node;\n\t\tthis.label = label;\n\t}",
"public Builder addNewsindentifydetail(\n int index, com.gw.ps.pbbean.PbNewsRes.NewsIndResDetail value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNewsindentifydetailIsMutable();\n newsindentifydetail_.add(index, value);\n\n return this;\n }",
"public Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);",
"int updateByPrimaryKeySelective(PathologyInfo record);",
"void prepareRelocate(Identity id, long newNodeId) throws IOException;",
"int updateByExampleSelective(@Param(\"record\") TNavigation record, @Param(\"example\") TNavigationExample example);",
"public void setItemDetailId(Integer itemDetailId) {\n this.itemDetailId = itemDetailId;\n }"
]
| [
"0.6013584",
"0.59403664",
"0.5898811",
"0.5898811",
"0.5898811",
"0.5807915",
"0.5677419",
"0.5671107",
"0.5601579",
"0.55065525",
"0.53973466",
"0.53883785",
"0.5234664",
"0.52329785",
"0.5112742",
"0.50974417",
"0.50799036",
"0.50532967",
"0.50503546",
"0.49339393",
"0.49108404",
"0.4904219",
"0.48989722",
"0.48948887",
"0.48822987",
"0.48536274",
"0.48196402",
"0.48005682",
"0.47826502",
"0.4776166",
"0.47759145",
"0.47756255",
"0.47736788",
"0.47724208",
"0.47603947",
"0.47511375",
"0.4735747",
"0.4730114",
"0.47271287",
"0.47078353",
"0.47077307",
"0.4689368",
"0.4688408",
"0.46866184",
"0.46826372",
"0.466798",
"0.4664181",
"0.46628514",
"0.4659167",
"0.46583733",
"0.4657829",
"0.46492878",
"0.4637856",
"0.4636697",
"0.46348134",
"0.46315894",
"0.4629551",
"0.46263224",
"0.46247458",
"0.46083197",
"0.460716",
"0.46025634",
"0.45913985",
"0.45844728",
"0.45794034",
"0.45503294",
"0.45448515",
"0.4543433",
"0.45390335",
"0.4531587",
"0.45191163",
"0.45184025",
"0.45028603",
"0.44849324",
"0.44836554",
"0.44828737",
"0.44715035",
"0.446828",
"0.44663104",
"0.4460346",
"0.44544995",
"0.44515717",
"0.4445422",
"0.44423765",
"0.444207",
"0.44379947",
"0.44319448",
"0.44254678",
"0.4424756",
"0.44245622",
"0.44242033",
"0.4418576",
"0.44140366",
"0.4409258",
"0.44061857",
"0.44000095",
"0.4393853",
"0.43935308",
"0.437866",
"0.43777618"
]
| 0.7536734 | 0 |
////////////////////////////////////////////////////////////////////// Description: Returns index in path of given node, or 1 if not found. Use: private | private int
getNodeIndex(final SoNode node)
//
////////////////////////////////////////////////////////////////////////
{
int i;
// Search from bottom up for node in path, since details are
// usually examined near the bottom
for (i = ( SoFullPath.cast ( path)).getLength() - 1; i >= 0; i--)
if (path.getNode(i) == node)
return i;
//#ifdef DEBUG
SoDebugError.post("SoPickedPoint::getNodeIndex",
"Node "+node+" is not found in path");
//#endif /* DEBUG */
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getIndex(TreeNode node) { \n for (int i=0; i<data.length; i++) \n if (data[i].equals(node)) return i; \n return -1; \n }",
"private static short findIndexNode(String path, IndexNode inode)\n throws Exception {\n // start with the root file system, root inode\n FileSystem fileSystem = openFileSystems[ROOT_FILE_SYSTEM];\n IndexNode indexNode = getRootIndexNode();\n short indexNodeNumber = FileSystem.ROOT_INDEX_NODE_NUMBER;\n\n // parse the path until we get to the end\n StringTokenizer st = new StringTokenizer(path, \"/\");\n while (st.hasMoreTokens()) {\n String s = st.nextToken();\n if (!s.equals(\"\")) {\n // check to see if it is a directory\n if ((indexNode.getMode() & S_IFMT) != S_IFDIR) {\n // return (ENOTDIR) if a needed directory is not a directory\n process.errno = ENOTDIR;\n return -1;\n }\n\n // check to see if it is readable by the user\n // ??? tbd\n // return (EACCES) if a needed directory is not readable\n\n IndexNode nextIndexNode = new IndexNode();\n // get the next index node corresponding to the token\n indexNodeNumber = findNextIndexNode(\n fileSystem, indexNode, s, nextIndexNode);\n if (indexNodeNumber < 0) {\n // return ENOENT\n process.errno = ENOENT;\n return -1;\n }\n indexNode = nextIndexNode;\n }\n }\n // copy indexNode to inode\n indexNode.copy(inode);\n return indexNodeNumber;\n }",
"private int pathIndex(String path){\n\t\t\tint returnIndex;\n\t\t\t\n\t\t\tif(path.contains(\"DR\")){\n\t\t\t\treturnIndex = 0;\n\t\t\t}else if(path.contains(\"DT\")){\n\t\t\t\treturnIndex = 1;\n\t\t\t}else if(path.contains(\"L\")){\n\t\t\t\treturnIndex = 2;\n\t\t\t}else{\n\t\t\t\treturnIndex = 3;\n\t\t\t}\n\t\t\treturn returnIndex;\n\t\t}",
"private int getIndex(Entity entity){\n int currentIndex = 0;\n\n for(QuadTree node: this.getNodes()){\n\n /*PhysicsComponent bp = (PhysicsComponent)entity.getProperty(PhysicsComponent.ID);\n if( node.getBounds().contains(bp.getBounds())){\n return currentIndex;\n }*/\n currentIndex++;\n }\n return -1; // Subnode not found (part of the root then)\n }",
"public int indexNode(Node node) {\n if (!isEdge()) {\n return -1;\n }\n for (int i = 0; i < nbNode(); i++) {\n if (node.same(getNode(i))) {\n return i;\n }\n }\n return -1;\n }",
"public long getNodeIndex();",
"public int indexOf(E item) {\n int index = 0;\n Node<E> node = head;\n while (node != null) {\n if (item.equals(node.data))\n return index;\n else {\n node = node.next;\n index++;\n }\n }\n return -1; // item not found\n }",
"void pathFound(Node node);",
"public int indexOf(E item) {\r\n\t\tint count = 0;\r\n\t\tNode p = first;\r\n\t\tfor (count = 0; p.item != item; count++) {\r\n\t\t\tp = p.next;\r\n\t\t}\r\n\t\tif (p.item == item) return count;\r\n\t\telse return -1;\r\n\t}",
"public int find (Object item){\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\t\t\t\t\n\t\t\t\tif (table[index] != null) {\n\t\t\t\treturn table[index].pathHeight((T) item) +1;\n\t\t\t\t}\n\n\t\t\t\treturn -1;\n\t}",
"public int getIndex(E item) {\n if (this.contains(item)) {\n DoublyLinkedNode<E> iter = head.getNext();\n for (int i = 0; i < size; i++) {\n if (iter.getData().equals(item)) {\n return i;\n }\n iter = iter.getNext();\n }\n }\n return -1;\n }",
"public int getIndex(E data) {\r\n\t\tint index = 0;\r\n\t\tNode<E> foundNode = headNode;\r\n\t\twhile(foundNode.data != data && foundNode.link != null) {\r\n\t\t\tfoundNode = foundNode.link;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\t\r\n\t\tif(foundNode.link != null) {\r\n\t\t\treturn index;\r\n\t\t}\r\n\t\tthrow new ArrayIndexOutOfBoundsException(\"没有此元素\");\r\n\t}",
"public int findNode(GraphNode pNode){\n int result = 0;\n \n for (int i = 0; i < Nodes.size(); i++){\n if (Nodes.get(i).equals(pNode)){\n result = i;\n }\n }\n \n return result;\n }",
"private int findIndex(T item){\n for(int i = 0; i < numItems; i++){\n if(arr[i].equals(item))\n return i;\n }\n return -1;\n }",
"public int indexOf(E elem) {\n int currIdx = 0;\n\n for (SinglyLinkedList.Node<E> curr = head; curr != null; curr = curr.next) {\n if (curr.val.equals(elem)) {\n return currIdx;\n }\n\n currIdx += 1;\n }\n\n return -1;\n }",
"private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }",
"private int indexOf(final long[] nodes, final long nodeId) {\n int end = nodes.length - 1;\n for (int i = 0; i != end; i++) {\n if (nodes[i]==nodeId) return i;\n }\n return -1;\n }",
"public int indexOf(Object item) {\n int index = 0;\n Node n = head;\n while (n != null && !n.data.equals(item)) {\n index ++;\n n = n.next;\n }\n return (n == null) ? -1 : index;\n }",
"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();",
"protected final int findIndexOfTreeItemAt(\n org.eclipse.draw2d.geometry.Point pt) {\n int index = -1;\n TreeItem item = findTreeItemAt(pt);\n if (item != null) {\n index = getHost().getChildren().indexOf(item.getData());\n if (index >= 0 && !isInUpperHalf(item.getBounds(), pt))\n index++;\n }\n return index;\n }",
"public int find(int node) {\n \n if (node < 0) {\n throw new IllegalArgumentException(\"node must \"\n + \"be greater than or equal to 0\");\n } else if (node > maxC) {\n throw new IllegalArgumentException(\"node must \"\n + \"be less than \" + maxC + \". node=\" + node);\n }\n \n int index = node/binSz;\n \n TreeMap<Integer, Integer> map = getTreeMap(index);\n \n Integer multiplicity = map.get(Integer.valueOf(node));\n if (multiplicity == null) {\n return -1;\n }\n \n return node;\n }",
"private int locate(Key key) {\n\t\tint index = hash(key);\n\t\twhile(this.keys[index] != null && !this.keys[index].equals(key)) {\n\t\t\tindex = increment(index);\n\t\t}\n\t\treturn index;\n\t}",
"@Override\n\tpublic int indexOf(E element) {\n\t\tif (element == null) {\n\t\t\tNode<E> node = first;\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tif (node.elementE == null)return i;\n\t\t\t\tnode.next = node;\n\t\t\t}\n\t\t}else {\n\t\t\tNode<E> node = first;\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tif (element.equals(node.elementE)) return i;\n\t\t\t\tnode.next = node;\n\t\t\t}\n\t\t}\n\t\treturn ELEMENT_NOT_FOUND;\n\t}",
"private int findNodeLocation(int data) {\n\t\tint index = -1;\n\t\tNode currentElement = headNode;\n\t\tint counter = 0;\n\t\tif(currentElement!=null) {\n\t\t\tif(currentElement.getData()==data) {\n\t\t\t\tSystem.out.println(\" Found the Element, \"\n\t\t\t\t\t\t+ \" which is at the Head of the LinkedList \");\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\twhile(currentElement.getNextNode()!=null) {\n\t\t\t\t\tcurrentElement = currentElement.getNextNode();\n\t\t\t\t\tcounter++;\n\t\t\t\t\tif(currentElement.getData()==data) {\n\t\t\t\t\t\tSystem.out.println(\" The Element is Found at the Index \"+ counter);\n\t\t\t\t\t\treturn counter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//If the Element is found at the Last Element, return the Last Element's index\n\t\t\t\tif(currentElement.getData()==data) {\n\t\t\t\t\treturn counter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}",
"private int findFirstDiffNodeIndex(ArrayList<CldrNode> nodesForLastItem,\n ArrayList<CldrNode> nodesInPath) {\n int i;\n for (i = 0; i < nodesInPath.size(); ++i) {\n if (i >= nodesForLastItem.size() ||\n !nodesInPath.get(i).getNodeDistinguishingName().equals(\n nodesForLastItem.get(i).getNodeDistinguishingName())) {\n break;\n }\n }\n return i;\n }",
"public int indexOf(T element) {\n\t\tint i = 0;\n\t\tNode<T> curNode = head;\n\t\twhile (curNode != null) {\n\t\t\tif (curNode.value.equals(element))\n\t\t\t\treturn i;\n\t\t\tcurNode = curNode.next;\n\t\t\ti++;\n\t\t}\n\t\treturn -1;\n\t}",
"public int index(AdapterNode child) {\n int count = childCount();\n\n for (int i = 0; i < count; i++) {\n AdapterNode n = this.child(i);\n\n if (child == n) {\n return i;\n }\n }\n\n return -1; // Should never get here.\n }",
"public static int findLineNumber(AbstractInsnNode node) {\n AbstractInsnNode curr = node;\n\n // First search backwards\n while (curr != null) {\n if (curr.getType() == AbstractInsnNode.LINE) {\n return ((LineNumberNode) curr).line;\n }\n curr = curr.getPrevious();\n }\n\n // Then search forwards\n curr = node;\n while (curr != null) {\n if (curr.getType() == AbstractInsnNode.LINE) {\n return ((LineNumberNode) curr).line;\n }\n curr = curr.getNext();\n }\n\n return -1;\n }",
"private int findPosition(int id) {\n\t\tfor (int i = 0; i < numOfNode; i++) {\n\t\t\tif (node[i].id == id) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"public static int indexOf(final NodeList nodeList, final Node node) {\n\t\tfinal int nodeCount = nodeList.getLength(); //see how many nodes there are\n\t\tfor(int i = 0; i < nodeCount; ++i) { //look at each node\n\t\t\tif(nodeList.item(i) == node) //if the node at this index matches our node\n\t\t\t\treturn i; //show the index as which the node occurs\n\t\t}\n\t\treturn -1; //show that we were not able to find a matching node\n\t}",
"private int findIndexKey(BTreeNode<T> currentNode, I id) {\n for (int i = 0; i < 5; i++) {\n T tempKey = currentNode.getKey(i);\n if (tempKey != null) {\n if (comparator.compare(tempKey, id) == 0) {\n return i;\n }\n }\n }\n return -1;\n }",
"private static String findNode(int index){\n return indexTable.get(index);\n }",
"private int locateIndex(K key)\n { \n // // Search until you either find an entry containing key or \n // // pass the point where it should be\n // int index = 0;\n // while ((index < numberOfEntries) && (key.compareTo(dictionary[index].getKey()) > 0))\n // index++;\n // // end while \n // return index;\n \n return binarySearchQ7(0, numberOfEntries - 1, key);\n }",
"@Override\n\tpublic int indexOf(Object data) {\n\n\t\tint index = 0;\n\t\tNode current = head;\n\t\twhile (current != null) {\n\t\t\tif (current.getElement().equals(data)) {\n\t\t\t\treturn index;\n\t\t\t}\n\t\t\tindex++;\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\treturn -1;\n\t}",
"public int indexOf() { return _parent!=null? _parent.indexOfChild(this) : -1; }",
"public int getIndexOf(K key);",
"int findPath(int from, int f[][]) {\n\t\tfor( int i = 0; i < N; i++ )\n\t\t\tif( f[from][i] > 0 ) return i;\n\t\treturn NONE; \n\t}",
"private static short findNextIndexNode(\n FileSystem fileSystem, IndexNode indexNode, String name,\n IndexNode nextIndexNode)\n throws Exception {\n if ((indexNode.getMode() & S_IFMT) != S_IFDIR) {\n // return (ENOTDIR) if a needed directory is not a directory\n process.errno = ENOTDIR;\n return -1;\n }\n\n // if user isn't alowed to read directory, give an error\n // ??? tbd\n // return (EACCES) if a needed directory is not readable\n\n FileDescriptor fileDescriptor =\n new FileDescriptor(fileSystem, indexNode, O_RDONLY);\n int fd = open(fileDescriptor);\n if (fd < 0) {\n // process.errno = ???\n return -1;\n }\n\n // create a buffer for reading directory entries\n DirectoryEntry directoryEntry = new DirectoryEntry();\n\n int status = 0;\n short indexNodeNumber = -1;\n // while there are more directory blocks to be read\n while (true) {\n // read a directory entry\n status = readdir(fd, directoryEntry);\n if (status <= 0) {\n // we got to the end of the directory, or \n // encountered an error, so quit\n break;\n }\n if (directoryEntry.getName().equals(name)) {\n indexNodeNumber = directoryEntry.getIno();\n // read the inode block\n fileSystem.readIndexNode(nextIndexNode, indexNodeNumber);\n // we're done searching\n break;\n }\n }\n\n // close the file since we're done with it\n int close_status = close(fd);\n if (close_status < 0) {\n // process.errno = ???\n return -1;\n }\n\n // if we encountered an error reading, return error\n if (status < 0) {\n // process.errno = ???\n return -1;\n }\n\n // if we got to the directory without finding the name, return error\n if (status == 0) {\n process.errno = ENOENT;\n return -1;\n }\n\n // return index node number if success\n return indexNodeNumber;\n }",
"public static int searchElementPosition(int info) {\n if (inicio != null) {\n auxiliar = inicio; // Aponta o auxiliar para o inicio da lista\n for (int i = 0; i < contador; i++) {\n if (auxiliar.getInfo() == info) { // Verifica se a info do node\n // e igual a recebida\n return (i + 1); // Caso seja, retorna a info do\n // node\n }\n auxiliar = auxiliar.getNext(); // Aponta o auxiliar para o\n // proximo node\n }\n }\n return 0;\n }",
"private int findNodeInList(List<Node> nodelist, Node n) throws Exception {\r\n for (int i=0; i<nodelist.size(); i++) {\r\n if (nodelist.get(i).equals(n)) {\r\n return i;\r\n }\r\n }\r\n \r\n log.error(\"Node not found: \" + n.getBodID());\r\n \r\n // Node could not be found, throw exception\r\n throw new Exception(\"PF exception: The node attached to a link could not be found in the nodes list\");\r\n }",
"public int indexOf(Object o) {\n\t\tfor(int i = 0; i < size; i++) {\r\n\t\t\tif(getNode(i).getData().equals(o))\r\n\t\t\t\treturn i;\r\n\t\t} return -1;\r\n\t}",
"static Node findPath(Node r, String[] path) {\n try {\n return NodeOp.findPath(r, path);\n } catch (NodeNotFoundException ex) {\n return ex.getClosestNode();\n }\n }",
"public static int getIndexOfElement(WebElement element) {\n return Integer.valueOf(returningJQ(getExecutorFromElement(element), \"index()\", element));\n }",
"private int pathToCharacterNumber(TreePath path) {\r\n\t\tif (path != null) {\r\n\t\t\tObject[] nodes = path.getPath();\r\n\t\t\tif (nodes[1] instanceof CharacterTreeNode) {\r\n\t\t\t\treturn ((CharacterTreeNode) nodes[1]).getCharacter().getCharacterId();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public int getIndexOfItem(T item) {\n int index = -1;\n\n Iterator<T> iterator = this.iterator();\n for (int i = 0; iterator.hasNext(); i++) {\n if (item == iterator.next()) {\n index = i;\n break;\n }\n }\n\n return index;\n }",
"private int indexOf(String s, Map<String, Integer> map) {\n\n if (map.containsKey(s)) {\n return map.get(s);\n }\n return EDGE_NOT_EXIST;\n }",
"public int nodeToPixelIndex(Node node) {\n Point p = nodeToPixelPoint(node);\n return ((p.y * WIDTH) + p.x);\n }",
"public int find(Object o) {\n int currentIndex = 0;\n int index = -1;\n ListNode current = start;\n while(current != null) {\n if (o.equals(current.data)) {\n index = currentIndex;\n break;\n }\n currentIndex++;\n current = current.next;\n }\n return index;\n }",
"public int check_node(double x1,double y1) //checks the existence of a particular co-ordinate\r\n\t{\n\t\tfor(int i=0;i<nodes.size();i++)\t\t // it returns that index or returns -1;\r\n\t\t{\r\n\t\t\tif(nodes.get(i)[0]==x1 && nodes.get(i)[1]==y1 )\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\t\t return -1;\r\n\t}",
"int indexOfChild(TreeNodeValueModel<T> child);",
"private int indexOf(int[] list, int item)\n\t{\n\t\t// Search the list for the item and return the index when found\n\t\tfor(int i = 0; i < listSize; i++)\n\t\t{\n\t\t\tif(list[i] == item) \n\t\t\t{ \n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\n\t\t// We should never get here, if we do something is wrong so throw a fatal error\n\t\tSystem.out.println(\"Fatal Error: \" + item + \" does not exist on both lists!\");\n\t\tSystem.exit(1);\n\t\treturn -1;\n\t}",
"public int indexOf(String key) {\r\n Integer i = keys.get(key);\r\n return (i == null ? -1 : i);\r\n }",
"private int findItemIndex(StudentClass searchItem)\n {\n int searchedHash = generateHash(searchItem) % tableSize;\n int workingIndex = searchedHash;\n int probe = 0; \n int QUAD_VAL = 2;\n StudentClass accessedItem;\n\n while(workingIndex < tableSize)\n {\n accessedItem = tableArray[workingIndex];\n\n if(searchItem.compareTo(accessedItem) == 0)\n {\n return workingIndex;\n }\n probe++;\n\n if(probeFlag == QUADRATIC_PROBING)\n {\n workingIndex = searchedHash + toPower(probe, QUAD_VAL);\n }\n else\n {\n workingIndex += 1;\n }\n workingIndex %= tableSize;\n }\n return ITEM_NOT_FOUND;\n }",
"int index();",
"public Integer indexOf(String s){\n\t\tInteger i;\n\t\tif((i=indices.get(s))!=null)\n\t\t\treturn i;\n\t\telse\n\t\t\treturn Integer.valueOf(-1);\n\t}",
"int indexOf(String column);",
"int indexOf(String column);",
"public int indexOf(String str)\n\t{\n\t\tint indexOf = recursiveIndexOf(firstC, length, 0, -1, str);\n\t\treturn indexOf;\n\t}",
"public int indexOf(String word) {\n for (int i = 0; i < children.size(); i++) {\n if (word.equals(get(i).getId())) {\n return i;\n }\n }\n return -1;\n }",
"protected int indexOf (E vertex)\n {\n int indexOfVertex = -1;\n for (int index = 0; index <= lastIndex; index++)\n {\n if (vertex.equals(vertices[index]))\n {\n indexOfVertex = index;\n break;\n }\n }\n\n return indexOfVertex;\n }",
"private int getPos(int key, int index) {\n\t\t// Each bucket contains a list.\n\t\tList<Integer> temp = set[index];\n\t\tif (temp == null) {\n\t\t\treturn -1;\n\t\t}\n\t\t// Iterate all the elements in the bucket to find the target key.\n\t\tfor (int i = 0; i < temp.size(); i++) {\n\t\t\tif (temp.get(i) == key) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public int find(K key){\r\n int k =0;\r\n int ik;\r\n while(true){\r\n ik = getIndex(k,key);\r\n if(hashTable[ik] == null || hashTable[ik].equals(key))\r\n return ik;\r\n else if(hashTable[ik].isDeleted){ // deleted\r\n break;\r\n }else{\r\n k++;\r\n }\r\n }\r\n int xspot = ik;\r\n while(true){\r\n k++;\r\n if(hashTable[ik]!=null && hashTable[ik].equals(key)){\r\n return ik;\r\n }\r\n if(hashTable[ik] == null){\r\n return xspot;\r\n }\r\n }\r\n }",
"public static int getIndex(String key) {\r\n return KEYS.indexOf(key);\r\n }",
"public int locationOf(E elem) {\r\n\t\tInteger tentativeLoc = this.locations.get(elem);\r\n\t\tif (tentativeLoc == null){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn this.locations.get(elem);\r\n\t}",
"private int findIndex(K key) {\n int i = hash(key),\n j = 0; // counts iterations, used for assertion\n while (keys[i] != null && ! key.equals(keys[i])) {\n i = (i + 1) % keys.length;\n j++;\n // we should find an empty spot before lapping the array\n assert j < keys.length;\n }\n return i;\n }",
"@Override\n public int indexOf(T t) {\n Integer p = cells.get(t);\n return p == null ? -1 : p;\n }",
"public static <T> int linearSearch(T[] array, T item) {\n\t\tfor (int i=0; i<array.length; i++)\n\t\t\tif (array[i].equals(item))\n\t\t\t\treturn i;\n\t\treturn -1;\n\t}",
"public int indexOf( ChildType child );",
"public int getIndex(int position);",
"public int getNumOfPath(){\r\n\t\treturn numOfPath;\r\n\t}",
"public abstract int getIndex();",
"public int indexOf(int value) {\n\t\tint index = 0;\n\t\tListNode current = front;\n\t\twhile (current != null) {\n\t\t\tif (current.data == value) {\n\t\t\t\treturn index;\n\t\t\t}\n\t\t\tindex++;\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn -1;\n\t}",
"private int findLine(int row, String[][] serverCells) {\n\t\tfor (int i = 1; i < serverCells.length; i++) {\n\t\t\tif (Integer.parseInt(serverCells[i][0]) == row) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public int indexOf(Object data)\r\n\t{\r\n\t\tNode n = headPointer;\r\n\t\tint index = 0;\r\n\t\t\r\n\t\twhile(n.getData().equals(data) == false)\r\n\t\t{\r\n\t\t\tn = n.getNext();\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\treturn index;\r\n\t}",
"private int getIndex(int u) {\n int ind = -1;\n for (int i = 0; i < getGraphRep().size(); i++) {\n ArrayList subList = getGraphRep().get(i);\n String temp = (String) subList.get(0);\n int vert = Integer.parseInt(temp);\n if (vert == u) {\n ind = i;\n }\n }\n return ind;\n }",
"public static int findLineNumber(MethodNode node) {\n if (node.instructions != null && node.instructions.size() > 0) {\n return findLineNumber(node.instructions.get(0));\n }\n\n return -1;\n }",
"public int getSideIndex(Tile adjacent){\r\n for(int i = 0; i < adjTiles.length; i++){\r\n if(adjTiles[i] == adjacent) return i;\r\n }\r\n return -1;\r\n }",
"public int index_of(int line) throws IndexOutOfBoundsException {\r\n\t\tif (line <= 0 || line >= line_index.size())\r\n\t\t\tthrow new IndexOutOfBoundsException(\r\n\t\t\t\t\t\"Invalid line: \" + line + \" (expected within \" + line_index.size() + \")\");\r\n\t\telse\r\n\t\t\treturn line_index.get(line - 1);\r\n\t}",
"private int locate(Random generator, K key)\n {\n boolean found = false;\n\n int index = generator.nextInt(hashTable.length);\n\n while ( !found && (hashTable[index] != null) )\n {\n if ( hashTable[index].isIn() &&\n key.equals(hashTable[index].getKey()) )\n found = true; // key found\n else // follow probe sequence\n index = generator.nextInt(hashTable.length); // Linear probing\n totalProbes++;\n } // end while\n\n // Assertion: Either key or null is found at hashTable[index]\n int result = -1;\n\n if (found)\n result = index;\n\n return result;\n }",
"public int indexOf(int item) {\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tif(items[i] == item)\n\t\t\t\treturn i;\n\t\t}\n\t\t// Otherwise return -1\n\t\treturn -1;\n\t}",
"private int getIndex(T element) {\n int index = -1;\n for (int i = 0; i < this.container.length; i++) {\n if (this.container[i] != null && this.container[i].equals(element)) {\n index = i;\n break;\n }\n }\n return index;\n }",
"@Override\n public int indexOf(Object o) {\n Node n = this.head;\n int i = 0;\n while (n != null) {\n if (o.equals(n.getData())) {\n return i;\n }\n i++;\n n = n.next;\n }\n return -1;\n }",
"private int findChildOrIndex(BTreeNode<T> currentNode, I id) {\n int indexChild = 0;\n while (currentNode.getKey(indexChild) != null && comparator.compare(currentNode.getKey(indexChild), id) < 0) {\n indexChild++;\n }\n\n return indexChild;\n }",
"int indexOf(@NotNull final Entity entity);",
"private int vertexIndex(T obj){\n for (int i = 0; i < n; i++){\n if (obj.equals(vertices[i])){\n return i;\n }\n }\n return NOT_FOUND;\n }"
]
| [
"0.74790734",
"0.74689823",
"0.693395",
"0.68858737",
"0.68407404",
"0.66940767",
"0.66117305",
"0.65652275",
"0.64562804",
"0.64190555",
"0.64173603",
"0.6357875",
"0.6329053",
"0.63033485",
"0.62919754",
"0.62663424",
"0.62089235",
"0.620684",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6193478",
"0.6153203",
"0.61293274",
"0.610876",
"0.6108683",
"0.6104119",
"0.6045171",
"0.6032154",
"0.6001172",
"0.5998666",
"0.5981919",
"0.59789073",
"0.59789073",
"0.59789073",
"0.5978402",
"0.59600353",
"0.59486276",
"0.5937163",
"0.59369123",
"0.5936725",
"0.5921202",
"0.59139276",
"0.5913862",
"0.589779",
"0.58908993",
"0.5890444",
"0.5883415",
"0.5841553",
"0.5836341",
"0.58193076",
"0.5816185",
"0.5811123",
"0.57760423",
"0.5773801",
"0.5765887",
"0.5764422",
"0.5761622",
"0.57412046",
"0.57399774",
"0.5736983",
"0.5736958",
"0.5736958",
"0.5736334",
"0.5725897",
"0.5722078",
"0.5709809",
"0.5705657",
"0.5695724",
"0.5689512",
"0.56812376",
"0.5681062",
"0.5676957",
"0.5673613",
"0.5668322",
"0.56646776",
"0.565986",
"0.56561726",
"0.5643063",
"0.5631643",
"0.5628855",
"0.56277144",
"0.56270105",
"0.56171614",
"0.561219",
"0.5607476",
"0.5607424",
"0.5604212",
"0.56020707",
"0.5598869",
"0.5596517"
]
| 0.7457631 | 2 |
////////////////////////////////////////////////////////////////////// Description: Applies given instance of SoGetMatrixAction to path to node. Use: private | private void
getMatrix( SoNode node)
//
////////////////////////////////////////////////////////////////////////
{
SoPath xfPath; // ptr
// Construct a path from the root down to this node. Use the given
// path if it's the same
if (node == null || node == SoFullPath.cast(path).getTail())
xfPath = path;
else {
int index = getNodeIndex(node);
xfPath = path.copy(0, index + 1);
xfPath.ref();
}
// Create an action instance if necessary, then apply it to the path
if (matrixAction == null)
matrixAction = new SoGetMatrixAction(vpRegion);
matrixAction.apply(xfPath);
if (xfPath != path)
xfPath.unref();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SbMatrix\ngetObjectToWorld(final SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getMatrix();\n}",
"public SbMatrix\ngetWorldToObject( SoNode node) \n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getInverse();\n}",
"@Override\n\tpublic void setNodeMatrix(int nodeIndex, int matrixIndex, double[] matrix) {\n// \tSystem.out.println(\"old:\"+Arrays.toString(\n// \tArrayUtils.subarray(matrices[0][nodeIndex], matrixIndex * matrixSize, matrixIndex * matrixSize + matrixSize)\n// \t));\n// \tSystem.out.println(\"new:\"+Arrays.toString(matrix));\n System.arraycopy(matrix, 0, matrices[currentMatricesIndices[nodeIndex]][nodeIndex],\n matrixIndex * matrixSize, matrixSize);\n }",
"public SbMatrix\ngetObjectToImage( SoNode node) \n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getTextureMatrix();\n}",
"public RouteMatrixResponse routeMatrix(RouteMatrixRequest request) {\n InternalRequest internalRequest = createRequest(request, HttpMethodName.POST, ROUTE_MATRIX_URL_PATH);\n log.info(\"route matrix request: {}\", JsonUtils.toJsonString(internalRequest));\n return this.invokeHttpClient(internalRequest, RouteMatrixResponse.class);\n }",
"public void apply(SoNode root) {\n\t\t\n//\t \t #ifdef DEBUG\n\t // Check for the common user error of applying an action to an\n\t // unreferenced root. This may save some grief.\n\t if (root.getRefCount() == 0)\n\t SoDebugError.postWarning(\"SoAction.apply\",\n\t \"Action applied to a node with a 0 \"+\n\t \"reference count. Did you forget to call \"+\n\t \"ref() on the node?\");\n//\t #endif /* DEBUG */\n//\t \n//\t // If we are already in the middle of being applied, save the\n//\t // current state of what we are applied to, so we can restore it\n//\t // afterwards. This happens, for example, when the\n//\t // SoGLRenderAction applies itself to traverse transparent paths\n//\t // after normal traversal.\n//\t boolean needToRestore = isBeingApplied;\n//\t final AppliedTo saveAppliedTo = new AppliedTo();\n//\t PathCode storedcurr = this.currentpathcode;\n//\t \n//\t if (isBeingApplied)\n//\t saveAppliedTo.copyFrom(appliedTo);\n//\t \n//\t isBeingApplied = true;\n//\t \n//\t appliedTo.code = AppliedCode.NODE;\n//\t appliedTo.node = node;\n//\t appliedTo.node.ref();\n//\t /*appliedTo.curPathCode*/currentpathcode = PathCode.NO_PATH;\n//\t \n//\t currentpath.setHead(node);\n//\t terminated = false;\n//\t \n//\t setUpState();\n//\t \n//\t beginTraversal(node);\n//\t endTraversal(node); // COIN3D\n//\t \n//\t cleanUp();\n//\t \n//\t // Restore to previous state if necessary\n//\t if (needToRestore)\n//\t appliedTo.copyFrom(saveAppliedTo);\n//\t \n//\t this.currentpathcode = storedcurr; // COIN3D\n//\t \n//\t isBeingApplied = needToRestore;\n\t \n\t SoDB.readlock();\n\t // need to store these in case action is re-applied\n\t AppliedCode storedcode = pimpl.appliedcode;\n\t SoActionP.AppliedData storeddata = new SoActionP.AppliedData();\n\t storeddata.copyFrom(pimpl.applieddata);\n\t PathCode storedcurr = this.currentpathcode;\n\n\t // This is a pretty good indicator on whether or not we remembered\n\t // to use the SO_ACTION_CONSTRUCTOR() macro in the constructor of\n\t // the SoAction subclass.\n\t assert(this.traversalMethods != null);\n\t this.traversalMethods.setUp();\n\n\t pimpl.terminated = false;\n\n\t this.currentpathcode = SoAction.PathCode.NO_PATH;\n\t pimpl.applieddata.node = root;\n\t pimpl.appliedcode = SoAction.AppliedCode.NODE;\n\n\t if (root != null) {\n\t //#if COIN_DEBUG\n\t if ((root.getRefCount() == 0) && first) {\n\n\t // This problem has turned out to be a FAQ, the reason probably\n\t // being that it \"works\" under SGI / TGS Inventor with no\n\t // warning that the client application code is actually buggy.\n\t //\n\t // We prefer to spit out a verbose warning to aid the\n\t // application programmer in finding the bug quickly instead of\n\t // her having to track down the bug due to some _really_ nasty\n\t // sideeffects later.\n\n\t SoDebugError.postWarning(\"SoAction::apply\",\n\n\t \"The root node that the \"+this.getTypeId().getName().getString()+\" was applied to \"+\n\t \"has a reference count equal to zero. \"+\n\n\t \"This is a bug in your application code which \"+\n\t \"you should rectify: you need to ref() (and \"+\n\t \"later unref()) the top-level root node to \"+\n\t \"make sure you avoid memory leaks (bad) and \"+\n\t \"/ or premature memory destruction (*really* \"+\n\t \"bad) under certain conditions. \"+\n\n\t \"Coin has an internal workaround to avoid \"+\n\t \"just responding with mysterious crashes, \"+\n\t \"but as it is not possible to cover _all_ \"+\n\t \"cases of what can go wrong with this \"+\n\t \"workaround you are *strongly* advised to \"+\n\t \"fix the bug in your application code.\"\n\n\t );\n\t first = false;\n\t }\n\t //#endif // COIN_DEBUG\n\t // So the graph is not deallocated during traversal.\n\t root.ref();\n\t this.currentpath.setHead(root);\n\n\t // make sure state is created before traversing\n\t this.getState();\n\n\t // send events to overlay graph first\n\t if (SoProfiler.isEnabled() &&\n\t SoProfiler.isOverlayActive() &&\n\t this.isOfType(SoHandleEventAction.getClassTypeId()))\n\t {\n\t // FIXME: also check that the scene graph view is actually enabled, or\n\t // else this is of no point - sending events to the overlay scene\n\t // graph.\n\n\t SoNode profileroverlay = SoActionP.getProfilerOverlay();\n\t if (profileroverlay != null) {\n\t SoProfiler.enable(false);\n\t this.beginTraversal(profileroverlay);\n\t this.endTraversal(profileroverlay);\n\t SoProfiler.enable(true);\n\t }\n\n\t // FIXME: if there was a hit on the overlay scene graph view and\n\t // the scene graph view is modified, then we should schedule a\n\t // redraw. However, the isHandled() flag isn't affected by that\n\t // change for now, so there's no way to detect it.\n\t //if (static_cast<SoHandleEventAction *>(this)->isHandled()) {\n\t // root->touch();\n\t //}\n\n\t }\n\n\t // start profiling\n\t if (SoProfiler.isEnabled() &&\n\t state.isElementEnabled(SoProfilerElement.getClassStackIndex(SoProfilerElement.class))) {\n\t SoProfilerElement elt = SoProfilerElement.get(state);\n\t assert(elt != null);\n\t SbProfilingData data = elt.getProfilingData();\n\t data.reset();\n\t data.setActionType(this.getTypeId());\n\t data.setActionStartTime(SbTime.getTimeOfDay());\n\t }\n\n\t this.beginTraversal(root);\n\t this.endTraversal(root);\n\n\t if (SoProfiler.isEnabled() &&\n\t state.isElementEnabled(SoProfilerElement.getClassStackIndex(SoProfilerElement.class))) {\n\t SoProfilerElement elt = SoProfilerElement.get(state);\n\t assert(elt != null);\n\t SbProfilingData data = elt.getProfilingData();\n\t data.setActionStopTime(SbTime.getTimeOfDay());\n\t }\n\n\t if (SoProfiler.isOverlayActive() &&\n\t !this.isOfType(SoGLRenderAction.getClassTypeId())) {\n\t // update profiler stats node with the profiling data from the traversal\n\t SoNode profilerstats = SoActionP.getProfilerStatsNode();\n\t SoProfiler.enable(false);\n\t this.traverse(profilerstats);\n\t SoProfiler.enable(true);\n\t }\n\n\t if (SoProfiler.isConsoleActive()) {\n\t SoType profileactiontype = SoProfilerP.getActionType();\n\t if (this.isOfType(SoProfilerP.getActionType())) {\n\t SoProfilerElement pelt = SoProfilerElement.get(state);\n\t if (pelt != null) {\n\t SbProfilingData pdata = pelt.getProfilingData();\n\t SoProfilerP.dumpToConsole(pdata);\n\t }\n\t }\n\t }\n\n\t pimpl.applieddata.node = null;\n\t root.unrefNoDelete();\n\t }\n\t pimpl.appliedcode = storedcode;\n\t pimpl.applieddata.copyFrom( storeddata);\n\t this.currentpathcode = storedcurr;\n\t SoDB.readunlock();\n\t \t}",
"public abstract void updatePath(Matrix matrix, Matrix backupTransformationMatrix, boolean highlight);",
"public java.util.Iterator<com.google.maps.routing.v2.RouteMatrixElement> computeRouteMatrix(\n com.google.maps.routing.v2.ComputeRouteMatrixRequest request) {\n return io.grpc.stub.ClientCalls.blockingServerStreamingCall(\n getChannel(), getComputeRouteMatrixMethod(), getCallOptions(), request);\n }",
"protected abstract NDArray[] onMatrix(NDArray matrix);",
"public void mo23181a(Canvas canvas, Matrix matrix, int i) {\n }",
"public void getNodeMatrix(int nodeIndex, int matrixIndex, double[] matrix) {\n System.arraycopy(matrices[currentMatricesIndices[nodeIndex]][nodeIndex],\n matrixIndex * matrixSize, matrix, 0, matrixSize);\n }",
"public SbMatrix\ngetImageToObject(SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getTextureInverse();\n}",
"public void computeRouteMatrix(\n com.google.maps.routing.v2.ComputeRouteMatrixRequest request,\n io.grpc.stub.StreamObserver<com.google.maps.routing.v2.RouteMatrixElement>\n responseObserver) {\n io.grpc.stub.ClientCalls.asyncServerStreamingCall(\n getChannel().newCall(getComputeRouteMatrixMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"public String getAction(int row, int col){\n return environmentUtilities[row][col].getAction();\n }",
"public void applyMatrix(Matrix matrix) {\n matrix.mapPoints(this.coords);\n }",
"void update() {\n matrix();\n }",
"public void\n\t apply(SoPath path)\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n//\t #ifdef DEBUG\n\t // Check for the common user error of applying an action to an\n\t // unreferenced path. This may save some grief.\n\t if (path.getRefCount() == 0) {\n\t SoDebugError.postWarning(\"SoAction::apply\",\n\t \"Action applied to a path with a 0 \"+\n\t \"reference count. Did you forget to call \"+\n\t \"ref() on the path?\");\n\t }\n//\t #endif /* DEBUG */\n\t \n//\t // If we are already in the middle of being applied, save the\n//\t // current state of what we are applied to, so we can restore it\n//\t // afterwards. This happens, for example, when the\n//\t // SoGLRenderAction applies itself to traverse transparent paths\n//\t // after normal traversal.\n//\t boolean needToRestore = isBeingApplied;\n//\t final AppliedTo saveAppliedTo = new AppliedTo();\n//\t \n//\t if (isBeingApplied)\n//\t saveAppliedTo.copyFrom(appliedTo);\n//\t \n//\t PathCode storedcurr = this.currentpathcode;\t \n//\t \n//\t isBeingApplied = true;\n//\t \n//\t appliedTo.code = AppliedCode.PATH;\n//\t appliedTo.path = path;\n//\t appliedTo.path.ref();\n//\t /*appliedTo.curPathCode*/currentpathcode = ((SoFullPath.cast(path).getLength() == 1) ?\n//\t PathCode.BELOW_PATH : PathCode.IN_PATH);\n//\t \n//\t currentpath.setHead(path.getHead());\n//\t terminated = false;\n//\t \n//\t setUpState();\n//\t \n//\t beginTraversal(path.getHead());\n//\t endTraversal(path.getHead()); // COIN3D\n//\t \n//\t cleanUp();\n//\t \n//\t // Restore to previous state if necessary\n//\t if (needToRestore) {\n//\t appliedTo.copyFrom(saveAppliedTo);\n//\t \n//\t // Restore the head of the path - we assume this is what was\n//\t // in the current path when we got here. NOTE: This rules out\n//\t // the possibility that the action was in the middle of being\n//\t // applied to some graph; it requires that the recursive\n//\t // apply() was called after the graph was traversed, so the\n//\t // current path had only the head node in it (the cleanUp()\n//\t // for the first apply() was not yet called).\n//\t SoNode head = (appliedTo.code == AppliedCode.NODE ? appliedTo.node :\n//\t appliedTo.code == AppliedCode.PATH ? appliedTo.path.getHead() :\n//\t appliedTo.pathList.operator_square_bracket(0).getHead());\n//\t currentpath.setHead(head);\n//\t }\n//\t this.currentpathcode = storedcurr;\n//\t \n//\t isBeingApplied = needToRestore;\n\t SoDB.readlock();\n\t // need to store these in case action in reapplied\n\t AppliedCode storedcode = pimpl.appliedcode;\n\t SoActionP.AppliedData storeddata = new SoActionP.AppliedData();\n\t storeddata.copyFrom(pimpl.applieddata);\n\t PathCode storedcurr = this.currentpathcode;\n\n\t // This is a pretty good indicator on whether or not we remembered\n\t // to use the SO_ACTION_CONSTRUCTOR() macro in the constructor of\n\t // the SoAction subclass.\n\t assert(this.traversalMethods != null);\n\t this.traversalMethods.setUp();\n\n\t pimpl.terminated = false;\n\n\t //#if COIN_DEBUG\n\t if (path.getRefCount() == 0) {\n\t SoDebugError.postWarning(\"SoAction::apply\",\n\t \"path has reference count equal to zero\");\n\t }\n\t //#endif // COIN_DEBUG\n\n\t // So the path is not deallocated during traversal.\n\t path.ref();\n\n\t this.currentpathcode =\n\t path.getFullLength() > 1 ? SoAction.PathCode.IN_PATH : SoAction.PathCode.BELOW_PATH;\n\t pimpl.applieddata.path = path;\n\t pimpl.appliedcode = SoAction.AppliedCode.PATH;\n\n\t // make sure state is created before traversing\n\t this.getState();\n\n\t if (path.getLength() != 0 && path.getNode(0) != null) {\n\t SoNode node = path.getNode(0);\n\t this.currentpath.setHead(node);\n\t this.beginTraversal(node);\n\t this.endTraversal(node);\n\t }\n\n\t path.unrefNoDelete();\n\t pimpl.appliedcode = storedcode;\n\t pimpl.applieddata.copyFrom( storeddata);\n\t this.currentpathcode = storedcurr;\n\t SoDB.readunlock();\n\t }",
"private Matrix toMatrix(Object o) {\n\t\tif(o instanceof String) {\n\t\t\tif(!isMatrix((String) o)) return null;\n\t\t\telse if(o.equals(\"A\")) return a;\n\t\t\telse return b;\n\t\t}\n\t\telse if(o instanceof Matrix) return (Matrix) o;\n\t\telse return null;\n\t}",
"@Override\r\n\tpublic String execute(Model m, String command) {\r\n\t\tint close = command.indexOf(']');\r\n\t\tif (close != -1)\r\n\t\t\tcommand = command.substring(0, close); // removes ] if exists.\r\n\t\tint start = command.indexOf('[');\r\n\t\tif (start != -1)\r\n\t\t\tcommand = command.substring(start + 1, command.length()); // rmeoves [\r\n\t\tString[] rows = command.split(\";\");\t// splits rows.\r\n\r\n\t\tfloat[][] mat = new float[rows.length][];\r\n\t\tfor (int r = 0; r < rows.length; r++) {\r\n\t\t\tString[] elements = rows[r].trim().split(\" \"); //splits columns.\r\n\t\t\tmat[r] = new float[elements.length];\r\n\t\t\tfor (int c = 0; c < elements.length; c++) {\r\n\t\t\t\tmat[r][c] = Float.parseFloat(elements[c].trim()); //parses floats from strings.\r\n\t\t\t}\r\n\t\t}\r\n\t\tm.getMatrices().add(new SimpleMatrix(mat));\r\n\t\treturn null;\r\n\t}",
"public final void ruleMatrixRef() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1333:2: ( ( ( rule__MatrixRef__MatrixAssignment ) ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1334:1: ( ( rule__MatrixRef__MatrixAssignment ) )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1334:1: ( ( rule__MatrixRef__MatrixAssignment ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1335:1: ( rule__MatrixRef__MatrixAssignment )\n {\n before(grammarAccess.getMatrixRefAccess().getMatrixAssignment()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1336:1: ( rule__MatrixRef__MatrixAssignment )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1336:2: rule__MatrixRef__MatrixAssignment\n {\n pushFollow(FOLLOW_rule__MatrixRef__MatrixAssignment_in_ruleMatrixRef2794);\n rule__MatrixRef__MatrixAssignment();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getMatrixRefAccess().getMatrixAssignment()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setAction(int row, int col, String action){\n environmentUtilities[row][col].setAction(action);\n }",
"public Matrix calculate();",
"@Secured(Permission.MANAGER)\r\n\tvoid saveMatrix(final Matrix matrix);",
"public MatrixTreeBuilder<E> put(MutableMatrixTreeNode<E> node) {\n\t\tnodeMap.put(node.getPathMatrix(), node);\n\t\treturn this;\n\t}",
"@Override\n public void onClick(View view) {\n Matrix matrix = ctx.getLastMatrix();\n try {\n Matrix matrixInv = matrix.inv();\n txtOutput.setText(matrixInv.convertToString());\n } catch (Exception e) {\n System.out.println(e.getStackTrace());\n txtOutput.setText(MatrixContext.INPUT_ERROR);\n }\n\n }",
"abstract public Matrix4fc getViewMatrix();",
"@Override\n public void setNodeMatrix(int iNode, int iMatrixIndex, double[] fMatrix) {\n System.arraycopy(fMatrix, 0, m_fMatrices[m_iCurrentMatrices[iNode]][iNode],\n iMatrixIndex * m_nMatrixSize, m_nMatrixSize);\n }",
"Matrix get(final Serializable id);",
"public Action getAction(String actionName) {\r\n try {\r\n return processModel.getAction(actionName);\r\n } catch (WorkflowException we) {\r\n return null;\r\n }\r\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\n\t\t\t\t\tfor(int i = 0; i < rows; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor(int j = 0; j < cols; j++) // m + 1; j++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//System.out.println(Float.parseFloat(tabTextField[i][j].getText()));\n\t\t\t\t\t\t\tfloat value = (tabTextField[i][j].getText().isEmpty()) ? 0 : Float.parseFloat(tabTextField[i][j].getText());\n\t\t\t\t\t\t\tmatrix.set(i, j, value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\tchoice = 1;\n\t\t\t\t\tJDialogSetMatrix jdialog = (JDialogSetMatrix)getRootPane().getParent();\n\t\t\t\t\tjdialog.close();\n\t\t\t\t\t}",
"public int getMatrix(int i, int j) {\n\t\treturn matrix[i][j];\r\n\t}",
"public Matrix getValue();",
"default void computeRouteMatrix(\n com.google.maps.routing.v2.ComputeRouteMatrixRequest request,\n io.grpc.stub.StreamObserver<com.google.maps.routing.v2.RouteMatrixElement>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getComputeRouteMatrixMethod(), responseObserver);\n }",
"public void SetMatrixToZeros() {\n \n\t/*\n\tinputs--\n\t*/\n\t\n\t/*\n\toutputs--\n\t*/\n\t\n\tthis.mat_f_m[0][0] = 0;\t this.mat_f_m[0][1] = 0;\tthis.mat_f_m[0][2] = 0;\t this.mat_f_m[0][3] = 0;\n\tthis.mat_f_m[1][0] = 0;\t this.mat_f_m[1][1] = 0;\tthis.mat_f_m[1][2] = 0;\t this.mat_f_m[1][3] = 0;\n\tthis.mat_f_m[2][0] = 0;\t this.mat_f_m[2][1] = 0;\tthis.mat_f_m[2][2] = 0;\t this.mat_f_m[2][3] = 0;\n\tthis.mat_f_m[3][0] = 0;\t this.mat_f_m[3][1] = 0;\tthis.mat_f_m[3][2] = 0;\t this.mat_f_m[3][3] = 0;\t\n \n }",
"public Object evaluateAction(String action, Object target, IMObject parent, NodeDescriptor node,\r\n AssertionDescriptor assertion) {\r\n ActionTypeDescriptor descriptor = getActionTypeDescriptorByName(action);\r\n if (descriptor == null) {\r\n throw new AssertionException(\r\n AssertionException.ErrorCode.ActionNotSupportedByAssertion,\r\n new Object[]{action, this.getName()});\r\n }\r\n\r\n try {\r\n Class clazz = Thread.currentThread().getContextClassLoader().loadClass(descriptor.getClassName());\r\n Method method;\r\n Object[] args;\r\n try {\r\n method = clazz.getMethod(descriptor.getMethodName(), ActionContext.class);\r\n args = new Object[]{new ActionContext(assertion, parent, node, target)};\r\n } catch (NoSuchMethodException ignore) {\r\n // try the old style binding\r\n method = clazz.getMethod(descriptor.getMethodName(),\r\n Object.class, NodeDescriptor.class,\r\n AssertionDescriptor.class);\r\n args = new Object[]{target, node, assertion};\r\n }\r\n\r\n return method.invoke(null, args);\r\n } catch (Exception exception) {\r\n throw new AssertionException(AssertionException.ErrorCode.FailedToApplyAssertion,\r\n new Object[]{action, this.getName()}, exception);\r\n\r\n }\r\n }",
"abstract protected QaIOReporter performAction(Node[] nodes);",
"public final void rule__MatrixRef__MatrixAssignment() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10320:1: ( ( ( RULE_ID ) ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10321:1: ( ( RULE_ID ) )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10321:1: ( ( RULE_ID ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10322:1: ( RULE_ID )\n {\n before(grammarAccess.getMatrixRefAccess().getMatrixBaseMatrixCrossReference_0()); \n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10323:1: ( RULE_ID )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10324:1: RULE_ID\n {\n before(grammarAccess.getMatrixRefAccess().getMatrixBaseMatrixIDTerminalRuleCall_0_1()); \n match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__MatrixRef__MatrixAssignment20763); \n after(grammarAccess.getMatrixRefAccess().getMatrixBaseMatrixIDTerminalRuleCall_0_1()); \n\n }\n\n after(grammarAccess.getMatrixRefAccess().getMatrixBaseMatrixCrossReference_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setMatrix(ScoreMatrix matrix) {\n\t\t// This scoring function doesn't need a ScoreMatrix!\n\t}",
"public abstract void updateGroupedPath(Matrix matrix, Matrix backupTransformationMatrix, boolean highlight);",
"public void setMatrixForItem(int n, float[] matrix) {\n mController.setMatrixForItem(n, matrix);\n }",
"public abstract Matrix matrix(double s1, double s2, double s3, double c1, double c2, double c3);",
"public Matrix getCofactor() throws InvalidMoveException {\r\n Matrix x = new Matrix(matrix.length, matrix[0].length);\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix.length; j++) {\r\n x.setValue(i, j, ((i + j) % 2 == 0 ? 1 : -1) * getSubmatrix(i, j).getDeterminant()\r\n );\r\n }\r\n }\r\n return x;\r\n }",
"public void executeAction( String actionInfo );",
"public java_cup.runtime.Symbol do_action(\n int act_num,\n java_cup.runtime.lr_parser parser,\n java.util.Stack stack,\n int top)\n throws java.lang.Exception\n {\n /* call code in generated class */\n return action_obj.CUP$XPathParser$do_action(act_num, parser, stack, top);\n }",
"@Test(timeout = 4000)\n public void test07() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(809);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.setValue(0, 2, 809);\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n int int0 = expressionMatrixImpl0.addNewNode();\n assertEquals(809, expressionMatrixImpl0.getNumberOfElements());\n assertEquals(1, int0);\n }",
"@Secured(Permission.ADMIN)\r\n\tvoid removeMatrix(final Matrix matrix);",
"public void setImageViewMatrix(Matrix matrix) {\n setImageMatrix(matrix);\n if (this.A != null) {\n RectF b2 = b(matrix);\n if (b2 != null) {\n this.A.a(b2);\n }\n }\n }",
"public org.apache.spark.mllib.linalg.Matrix toLocalMatrix () { throw new RuntimeException(); }",
"@Test\n public void testGetMatrixColumn() {\n final Matrix33d m = getMatrix();\n final Vector3d expected = V2;\n final Vector3d v = new Vector3d();\n m.getMatrixColumn(v, 1);\n assertEquals(v.toString(), expected.toString());\n }",
"public X actionMap(ActionMap map) {\n component.setActionMap(map);\n return (X) this;\n }",
"@Test\n public void testGetMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(0, 0), -10.615, 0.001);\n assertEquals(reader.getMatrix().get(9, 1), 10.148, 0.001);\n }",
"public void SetMatrixToIdentity() {\n \n\t/*\n\tinputs--\n\t*/\n\t\n\t/*\n\toutputs--\n\t*/\n\t\n\tthis.mat_f_m[0][0] = 1;\t this.mat_f_m[0][1] = 0;\tthis.mat_f_m[0][2] = 0;\t this.mat_f_m[0][3] = 0;\n\tthis.mat_f_m[1][0] = 0;\t this.mat_f_m[1][1] = 1;\tthis.mat_f_m[1][2] = 0;\t this.mat_f_m[1][3] = 0;\n\tthis.mat_f_m[2][0] = 0;\t this.mat_f_m[2][1] = 0;\tthis.mat_f_m[2][2] = 1;\t this.mat_f_m[2][3] = 0;\n\tthis.mat_f_m[3][0] = 0;\t this.mat_f_m[3][1] = 0;\tthis.mat_f_m[3][2] = 0;\t this.mat_f_m[3][3] = 1;\t\n \n }",
"public CayenneAction getAction(String key) {\n return (CayenneAction) actionMap.get(key);\n }",
"public Matrix getMatrix() {\n\t\treturn matrix;\n\t}",
"private String postSimMatrix()\r\n\t\tthrows Exception\r\n\t{\r\n\t\tFile temp = new File(FlapjackUtils.getCacheDir(), Prefs.flapjackID + \".matrix\");\r\n\t\tSimMatrixExporter exporter = new SimMatrixExporter(matrix, new PrintWriter(new FileWriter(temp)));\r\n\t\texporter.runJob(0);\r\n\r\n\t\t// Create RequestBody instance from file\r\n\t\tRequestBody requestFile = RequestBody.create(okhttp3.MediaType.parse(\"multipart/format-data\"), temp);\r\n\r\n\t\t// MultiparBody.Part is used to send also the actual file name\r\n\t\tMultipartBody.Part body = MultipartBody.Part.createFormData(\"matrix\", temp.getName(), requestFile);\r\n\r\n\t\tResponse<ResponseBody> response = service.postSimMatrix(body, \"\" + lineCount, Prefs.flapjackID)\r\n\t\t\t.execute();\r\n\r\n\t\treturn response.body().string();\r\n\t}",
"private boolean isMatrix(String s) {\n\t\treturn (s.equals(\"A\") || s.equals(\"B\"));\n\t}",
"public GeneralPath transform(Matrix matrix)\n {\n float x1 = getLowerLeftX();\n float y1 = getLowerLeftY();\n float x2 = getUpperRightX();\n float y2 = getUpperRightY();\n\n Point2D.Float p0 = matrix.transformPoint(x1, y1);\n Point2D.Float p1 = matrix.transformPoint(x2, y1);\n Point2D.Float p2 = matrix.transformPoint(x2, y2);\n Point2D.Float p3 = matrix.transformPoint(x1, y2);\n\n GeneralPath path = new GeneralPath();\n path.moveTo(p0.getX(), p0.getY());\n path.lineTo(p1.getX(), p1.getY());\n path.lineTo(p2.getX(), p2.getY());\n path.lineTo(p3.getX(), p3.getY());\n path.closePath();\n return path;\n }",
"@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }",
"public void setImageViewMatrix(Matrix matrix) {\n ImageView imageView = getImageView();\n if (imageView != null) {\n checkImageViewScaleType();\n imageView.setImageMatrix(matrix);\n if (this.mMatrixChangeListener != null) {\n RectF displayRect = getDisplayRect(matrix);\n if (displayRect != null) {\n this.mMatrixChangeListener.onMatrixChanged(displayRect);\n }\n }\n }\n }",
"public void transform(IPath operaModel, String actionModel) {\n\n\tURI inURI = URI.createPlatformResourceURI(operaModel.toString(), true);\n\tResource inResource = new ResourceSetImpl().getResource(inURI, true);\n\t\n\tURI outURI1 = URI.createPlatformResourceURI(actionModel, true);\t\n\tResource outResource1 = new ResourceSetImpl().createResource(outURI1);\n\t\n\tURI outURI2 = outURI1.trimFileExtension().appendFileExtension(\"OLCLMap\");\n\tResource outResource2 = new ResourceSetImpl().createResource(outURI2);\n\t\n\ttry {\n\t\tConvertOpera2Actions.convertOpera2Actions(inResource, outResource1, outResource2);\t\t\t\n\t\toutResource1.save(Collections.emptyMap());\n\t\toutResource2.save(Collections.emptyMap());\n\t\t\n\t} catch (Exception e) {\n\t\tDiagnostic diagnostic = BasicDiagnostic.toDiagnostic(e);\n\t\tInvokeActivator.getDefault().getLog().log(BasicDiagnostic.toIStatus(diagnostic));\n\t}\t\t\n\t\t\n\t\n}",
"@SuppressWarnings(\"serial\")\r\n private Action getUpdateAction() {\r\n if (updateAction == null) {\r\n String actionCommand = bundle.getString(UPDATE_NODE_KEY);\r\n String actionKey = bundle.getString(UPDATE_NODE_KEY + \".action\");\r\n updateAction = new AbstractAction(actionCommand) {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n System.out.println(\"actionPerformed(): action = \"\r\n + e.getActionCommand());\r\n if (checkAction()) {\r\n model.updateData(nodes[0].getPath(), taUpdate\r\n .getText().getBytes());\r\n }\r\n }\r\n\r\n private boolean checkAction() {\r\n // No node or several nodes selected\r\n if (nodes == null || nodes.length > 1) {\r\n return false;\r\n }\r\n // No parent\r\n if (nodes == null || nodes.length != 1) {\r\n JOptionPane.showMessageDialog(JZVNode.this, bundle\r\n .getString(\"dlg.error.updateWithoutParent\"),\r\n bundle.getString(\"dlg.error.title\"),\r\n JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }\r\n };\r\n updateAction.putValue(Action.ACTION_COMMAND_KEY, actionKey);\r\n }\r\n return updateAction;\r\n }",
"@Test(timeout = 4000)\n public void test03() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.creatMatrix(1986);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(841);\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 0, 841);\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(841, expressionMatrixImpl0.getNumberOfElements());\n }",
"@Nullable\n @Generated\n @Selector(\"action\")\n public native SEL action();",
"public final void rule__ExternalLoad__PositionAssignment_11() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10260:1: ( ( ruleMatrix ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10261:1: ( ruleMatrix )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10261:1: ( ruleMatrix )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:10262:1: ruleMatrix\n {\n before(grammarAccess.getExternalLoadAccess().getPositionMatrixParserRuleCall_11_0()); \n pushFollow(FOLLOW_ruleMatrix_in_rule__ExternalLoad__PositionAssignment_1120635);\n ruleMatrix();\n\n state._fsp--;\n\n after(grammarAccess.getExternalLoadAccess().getPositionMatrixParserRuleCall_11_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Test(timeout = 4000)\n public void test06() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n expressionMatrixImpl0.getValue((-2465), (-2465));\n expressionMatrixImpl0.setValue((-1), (-1198), 0);\n }",
"@Test\n public void testSetPath() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(\"c:\\\\Voici\\\\test.txt\");\n reader.setPath(path1);\n MatrixReader reader2 = new MatrixReader(path1);\n assertEquals(reader.getMatrix().get(10, 10), reader2.getMatrix().get(10, 10), 0.001);\n }",
"private static Node setupMatrix()\n {\n Node thomasAnderson = graphDb.createNode();\n thomasAnderson.setProperty( \"name\", \"Thomas Anderson\" );\n thomasAnderson.setProperty( \"age\", 29 );\n \n Node trinity = graphDb.createNode();\n trinity.setProperty( \"name\", \"Trinity\" );\n Relationship rel = thomasAnderson.createRelationshipTo( trinity, \n MatrixRelationshipTypes.KNOWS );\n rel.setProperty( \"age\", \"3 days\" );\n \n Node morpheus = graphDb.createNode();\n morpheus.setProperty( \"name\", \"Morpheus\" );\n morpheus.setProperty( \"rank\", \"Captain\" );\n morpheus.setProperty( \"occupation\", \"Total badass\" );\n thomasAnderson.createRelationshipTo( morpheus, MatrixRelationshipTypes.KNOWS );\n rel = morpheus.createRelationshipTo( trinity, \n MatrixRelationshipTypes.KNOWS );\n rel.setProperty( \"age\", \"12 years\" );\n \n Node cypher = graphDb.createNode();\n cypher.setProperty( \"name\", \"Cypher\" );\n cypher.setProperty( \"last name\", \"Reagan\" );\n rel = morpheus.createRelationshipTo( cypher, \n MatrixRelationshipTypes.KNOWS );\n rel.setProperty( \"disclosure\", \"public\" );\n \n Node smith = graphDb.createNode();\n smith.setProperty( \"name\", \"Agent Smith\" );\n smith.setProperty( \"version\", \"1.0b\" );\n smith.setProperty( \"language\", \"C++\" );\n rel = cypher.createRelationshipTo( smith, MatrixRelationshipTypes.KNOWS );\n rel.setProperty( \"disclosure\", \"secret\" );\n rel.setProperty( \"age\", \"6 months\" );\n \n Node architect = graphDb.createNode();\n architect.setProperty( \"name\", \"The Architect\" );\n smith.createRelationshipTo( architect, MatrixRelationshipTypes.CODED_BY );\n \n return thomasAnderson;\n }",
"@Test(timeout = 4000)\n public void test09() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl1 = new ExpressionMatrixImpl();\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl1.toString();\n expressionMatrixImpl1.addNewNode();\n expressionMatrixImpl0.creatMatrix(1);\n expressionMatrixImpl0.addNewNode();\n ExpressionMatrixImpl expressionMatrixImpl2 = new ExpressionMatrixImpl();\n expressionMatrixImpl2.addNewNode();\n expressionMatrixImpl0.setValue(1, 0, 1254);\n expressionMatrixImpl2.toString();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.outNoStandardConnections(false, (ExpressionElementMapper) null);\n }",
"@Test(timeout = 4000)\n public void test12() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n int int0 = expressionMatrixImpl0.addNewNode();\n assertEquals(0, int0);\n \n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionElementMapperImpl0.toString();\n expressionMatrixImpl0.outNoStandardConnections(true, expressionElementMapperImpl0);\n int int1 = expressionMatrixImpl0.getValue(0, (-1));\n assertEquals((-1), int1);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (getCheckedMatrix(checkedItems) <= itemOperation.getMatrixNumber()) {\n final Intent intent = new Intent(getActivity(), MatrixActivity.class);\n final ArrayList<ItemMatrix> auxArray = new ArrayList<>();\n\n //saves selected matrices\n for (i = 0; i < bundleMatrix.size(); ++i)\n if (checkedItems[i])\n auxArray.add(bundleMatrix.get(i));\n\n intent.putExtra(\"itemOperation\", itemOperation);\n intent.putExtra(\"bundleMatrix\", auxArray);\n startActivity(intent);\n } else\n Toast.makeText(getContext(), String.format(getResources().getString(R.string.error_select_matrix), itemOperation.getMatrixNumber()), Toast.LENGTH_SHORT).show();\n }",
"public void popMatrix()\n\t{\n\t\tmat = mats.pop();\n\t}",
"public ArrayList<Action> getActions() {\n\t\tSquare [] adjacents = adjacentCells(); \n\t\tint sol[]=new int[adjacents.length];\n\t\tArrayList solutions = new ArrayList(); \n\n\t\tdistributeSand(0,getS(),adjacents,sol,solutions);\n\n\t\tArrayList<Action> actions=new ArrayList<Action>();\n\n\t\tint aux[]; \n\t\tfor (int k=0;k<adjacents.length;k++) {\n\t\t\tfor (int i=0; i<solutions.size();i++){\n\t\t\t\taux=(int[]) solutions.get(i);\n\t\t\t\tactions.add(new Action(adjacents[k],adjacents,aux));\n\t\t\t} \n\t\t} \n\t\treturn actions;\n\t}",
"protected static Action getAction(String workspaceId, String modelId,\n String actionId) throws AnaplanAPIException {\n Model model = getModel(workspaceId, modelId);\n if (model == null) {\n return null;\n }\n if (actionId == null || actionId.isEmpty()) {\n LOG.error(\"An action ID, code or name must be provided\");\n }\n Action serverAction = model.getAction(actionId);\n if (serverAction == null) {\n LOG.error(\"Action \\\"{}\\\" not found in workspace {}, model {}\", actionId, workspaceId, modelId);\n }\n return serverAction;\n }",
"public ExprMatrix withCache();",
"private boolean isMatrix(Object o) {\n\t\tif(o instanceof String) return isMatrix((String) o);\n\t\telse if(o instanceof Matrix) return true;\n\t\telse return false;\n\t}",
"private void animateToStartMatrix() {\n\n final Matrix beginMatrix = new Matrix(getImageMatrix());\n beginMatrix.getValues(matrixValues);\n\n //difference in current and original values\n final float xsdiff = startValues[Matrix.MSCALE_X] - matrixValues[Matrix.MSCALE_X];\n final float ysdiff = startValues[Matrix.MSCALE_Y] - matrixValues[Matrix.MSCALE_Y];\n final float xtdiff = startValues[Matrix.MTRANS_X] - matrixValues[Matrix.MTRANS_X];\n final float ytdiff = startValues[Matrix.MTRANS_Y] - matrixValues[Matrix.MTRANS_Y];\n\n ValueAnimator anim = ValueAnimator.ofFloat(0, 1f);\n anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n\n final Matrix activeMatrix = new Matrix(getImageMatrix());\n final float[] values = new float[9];\n\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float val = (Float) animation.getAnimatedValue();\n activeMatrix.set(beginMatrix);\n activeMatrix.getValues(values);\n values[Matrix.MTRANS_X] = values[Matrix.MTRANS_X] + xtdiff * val;\n values[Matrix.MTRANS_Y] = values[Matrix.MTRANS_Y] + ytdiff * val;\n values[Matrix.MSCALE_X] = values[Matrix.MSCALE_X] + xsdiff * val;\n values[Matrix.MSCALE_Y] = values[Matrix.MSCALE_Y] + ysdiff * val;\n activeMatrix.setValues(values);\n setImageMatrix(activeMatrix);\n }\n });\n anim.setDuration(RESET_DURATION);\n anim.start();\n }",
"protected void execute() {\n\n\t\ttry {\n\t\t\tmatrixC = new Integer[matrixA.length][matrixA.length];\n\t\t\tWorkerThread2[] threads = new WorkerThread2[matrixA.length]; // Criando as threads\n\n\t\t\tfor (int i = 0; i < matrixA.length; i++) {\n\t\t\t\tthreads[i] = new WorkerThread2(i, matrixA, matrixB, matrixC);\n\t\t\t\tthreads[i].start();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < matrixA.length; i++) {\n\t\t\t\tthreads[i].join();\n\t\t\t}\n\t\t}catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t}",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.getNumberOfNodes();\n int int0 = expressionMatrixImpl0.getNumberOfElements();\n assertEquals(0, int0);\n \n expressionMatrixImpl0.setValue((-1553), (-1553), 0);\n assertEquals(0, expressionMatrixImpl0.getNumberOfElements());\n }",
"public ActionUtility getActionUtility(int row, int col) {\n return environmentUtilities[row][col];\n }",
"public final java_cup.runtime.Symbol CUP$XPathParser$do_action(\n int CUP$XPathParser$act_num,\n java_cup.runtime.lr_parser CUP$XPathParser$parser,\n java.util.Stack CUP$XPathParser$stack,\n int CUP$XPathParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$XPathParser$result;\n\n /* select the action based on the action number */\n switch (CUP$XPathParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 140: // QName ::= ID \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"id\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 139: // QName ::= SELF \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"self\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 138: // QName ::= PRECEDINGSIBLING \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"preceding-sibling\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 137: // QName ::= PRECEDING \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"preceding\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 136: // QName ::= PARENT \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"parent\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 135: // QName ::= NAMESPACE \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"namespace\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 134: // QName ::= FOLLOWINGSIBLING \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"following-sibling\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 133: // QName ::= FOLLOWING \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"following\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 132: // QName ::= DESCENDANTORSELF \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"decendant-or-self\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 131: // QName ::= DESCENDANT \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"decendant\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 130: // QName ::= CHILD \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"child\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 129: // QName ::= ATTRIBUTE \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"attribute\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 128: // QName ::= ANCESTORORSELF \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"ancestor-or-self\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 127: // QName ::= ANCESTOR \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"child\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 126: // QName ::= KEY \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"key\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 125: // QName ::= MOD \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"mod\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 124: // QName ::= DIV \n {\n QName RESULT = null;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(\"div\"); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 123: // QName ::= QNAME \n {\n QName RESULT = null;\n\t\tint qnameleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint qnameright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tString qname = (String)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = parser.getQNameIgnoreDefaultNs(qname); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(37/*QName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 122: // NameTest ::= QName \n {\n Object RESULT = null;\n\t\tint qnleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint qnright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tQName qn = (QName)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = qn; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(26/*NameTest*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 121: // NameTest ::= STAR \n {\n Object RESULT = null;\n\t\t RESULT = null; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(26/*NameTest*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 120: // NodeTest ::= PI \n {\n Object RESULT = null;\n\t\t RESULT = new Integer(NodeTest.PI); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(25/*NodeTest*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 119: // NodeTest ::= PIPARAM LPAREN Literal RPAREN \n {\n Object RESULT = null;\n\t\tint lleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint lright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tString l = (String)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\t\n QName name = parser.getQNameIgnoreDefaultNs(\"name\");\n Expression exp = new EqualityExpr(Operators.EQ,\n new NameCall(name),\n new LiteralExpr(l));\n Vector predicates = new Vector();\n predicates.addElement(new Predicate(exp));\n RESULT = new Step(Axis.CHILD, NodeTest.PI, predicates);\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(25/*NodeTest*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 118: // NodeTest ::= COMMENT \n {\n Object RESULT = null;\n\t\t RESULT = new Integer(NodeTest.COMMENT); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(25/*NodeTest*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 117: // NodeTest ::= TEXT \n {\n Object RESULT = null;\n\t\t RESULT = new Integer(NodeTest.TEXT); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(25/*NodeTest*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 116: // NodeTest ::= NODE \n {\n Object RESULT = null;\n\t\t RESULT = new Integer(NodeTest.ANODE); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(25/*NodeTest*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 115: // NodeTest ::= NameTest \n {\n Object RESULT = null;\n\t\tint ntleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ntright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tObject nt = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = nt; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(25/*NodeTest*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 114: // Argument ::= Expr \n {\n Expression RESULT = null;\n\t\tint exleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint exright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ex = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = ex; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(3/*Argument*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 113: // VariableName ::= QName \n {\n QName RESULT = null;\n\t\tint vnameleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint vnameright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tQName vname = (QName)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t RESULT = vname; \n\t\n CUP$XPathParser$result = new java_cup.runtime.Symbol(39/*VariableName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 112: // FunctionName ::= QName \n {\n QName RESULT = null;\n\t\tint fnameleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint fnameright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tQName fname = (QName)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t RESULT = fname; \n\t\n CUP$XPathParser$result = new java_cup.runtime.Symbol(38/*FunctionName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 111: // NonemptyArgumentList ::= Argument COMMA NonemptyArgumentList \n {\n Vector RESULT = null;\n\t\tint argleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint argright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression arg = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint arglleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint arglright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector argl = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t argl.insertElementAt(arg, 0); RESULT = argl; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(36/*NonemptyArgumentList*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 110: // NonemptyArgumentList ::= Argument \n {\n Vector RESULT = null;\n\t\tint argleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint argright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression arg = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n Vector temp = new Vector();\n temp.addElement(arg);\n RESULT = temp;\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(36/*NonemptyArgumentList*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 109: // FunctionCall ::= FunctionName LPAREN NonemptyArgumentList RPAREN \n {\n Expression RESULT = null;\n\t\tint fnameleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).left;\n\t\tint fnameright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).right;\n\t\tQName fname = (QName)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).value;\n\t\tint arglleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint arglright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tVector argl = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\t\n if (parser.getQNameIgnoreDefaultNs(\"concat\").equals(fname)) {\n RESULT = new ConcatCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"number\").equals(fname)) {\n RESULT = new NumberCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"document\").equals(fname)) {\n\t parser.setMultiDocument(true);\n RESULT = new DocumentCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"string\").equals(fname)) {\n RESULT = new StringCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"boolean\").equals(fname)) {\n RESULT = new BooleanCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"name\").equals(fname)) {\n RESULT = new NameCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"generate-id\").equals(fname)) {\n RESULT = new GenerateIdCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"not\").equals(fname)) {\n RESULT = new NotCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"format-number\").equals(fname)) {\n RESULT = new FormatNumberCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"unparsed-entity-uri\").equals(fname)) {\n RESULT = new UnparsedEntityUriCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"key\").equals(fname)) {\n RESULT = new KeyCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"id\").equals(fname)) {\n RESULT = new KeyCall(fname, argl);\n parser.setHasIdCall(true);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"ceiling\").equals(fname)) {\n RESULT = new CeilingCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"round\").equals(fname)) {\n RESULT = new RoundCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"floor\").equals(fname)) {\n RESULT = new FloorCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"contains\").equals(fname)) {\n RESULT = new ContainsCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"string-length\").equals(fname)) {\n RESULT = new StringLengthCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"starts-with\").equals(fname)) {\n RESULT = new StartsWithCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"function-available\").equals(fname)) {\n RESULT = new FunctionAvailableCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"element-available\").equals(fname)) {\n RESULT = new ElementAvailableCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"local-name\").equals(fname)) {\n RESULT = new LocalNameCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"lang\").equals(fname)) {\n RESULT = new LangCall(fname, argl);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"namespace-uri\").equals(fname)) {\n RESULT = new NamespaceUriCall(fname, argl);\n\t }\n else if (parser.getQName(Constants.TRANSLET_URI, \"xsltc\", \"cast\").equals(fname)) {\n RESULT = new CastCall(fname, argl);\n\t }\n\t // Special case for extension function nodeset()\n else if (fname.getLocalPart().equals(\"nodeset\") || fname.getLocalPart().equals(\"node-set\")) {\n\t parser.setCallsNodeset(true); // implies MultiDOM\n RESULT = new FunctionCall(fname, argl);\n\t }\n else {\n RESULT = new FunctionCall(fname, argl);\n\t }\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(16/*FunctionCall*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 108: // FunctionCall ::= FunctionName LPAREN RPAREN \n {\n Expression RESULT = null;\n\t\tint fnameleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint fnameright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tQName fname = (QName)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\t \n\n if (parser.getQNameIgnoreDefaultNs(\"current\").equals(fname)) {\n RESULT = new CurrentCall(fname);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"number\").equals(fname)) {\n RESULT = new NumberCall(fname, parser.EmptyArgs);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"string\").equals(fname)) {\n RESULT = new StringCall(fname, parser.EmptyArgs);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"concat\").equals(fname)) {\n RESULT = new ConcatCall(fname, parser.EmptyArgs);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"true\").equals(fname)) {\n RESULT = new BooleanExpr(true);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"false\").equals(fname)) {\n RESULT = new BooleanExpr(false);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"name\").equals(fname)) {\n RESULT = new NameCall(fname);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"generate-id\").equals(fname)) {\n RESULT = new GenerateIdCall(fname, parser.EmptyArgs);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"string-length\").equals(fname)) {\n RESULT = new StringLengthCall(fname, parser.EmptyArgs);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"position\").equals(fname)) {\n RESULT = new PositionCall(fname);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"last\").equals(fname)) {\n RESULT = new LastCall(fname);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"local-name\").equals(fname)) {\n RESULT = new LocalNameCall(fname);\n\t }\n else if (parser.getQNameIgnoreDefaultNs(\"namespace-uri\").equals(fname)) {\n RESULT = new NamespaceUriCall(fname);\n\t }\n else {\n RESULT = new FunctionCall(fname, parser.EmptyArgs);\n\t }\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(16/*FunctionCall*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 107: // VariableReference ::= DOLLAR VariableName \n {\n Expression RESULT = null;\n\t\tint varNameleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint varNameright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tQName varName = (QName)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n // An empty qname prefix for a variable or parameter reference\n // should map to the null namespace and not the default URI.\n SyntaxTreeNode node = parser.lookupName(varName);\n\n if (node != null) {\n if (node instanceof Variable) {\n RESULT = new VariableRef((Variable)node);\n }\n else if (node instanceof Param) {\n RESULT = new ParameterRef((Param)node);\n } \n else {\n RESULT = new UnresolvedRef(varName);\n }\n }\n\n if (node == null) {\n RESULT = new UnresolvedRef(varName);\n }\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(15/*VariableReference*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 106: // PrimaryExpr ::= FunctionCall \n {\n Expression RESULT = null;\n\t\tint fcleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint fcright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression fc = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = fc; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(17/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 105: // PrimaryExpr ::= REAL \n {\n Expression RESULT = null;\n\t\tint numleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint numright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tDouble num = (Double)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new RealExpr(num.doubleValue()); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(17/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 104: // PrimaryExpr ::= INT \n {\n Expression RESULT = null;\n\t\tint numleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint numright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tLong num = (Long)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t long value = num.longValue();\n\t if (value < Integer.MIN_VALUE || value > Integer.MAX_VALUE) {\n\t\tRESULT = new RealExpr(value);\n\t }\n\t else {\n if (num.doubleValue() == -0)\n RESULT = new RealExpr(num.doubleValue());\n else if (num.intValue() == 0)\n RESULT = new IntExpr(num.intValue());\n else if (num.doubleValue() == 0.0)\n RESULT = new RealExpr(num.doubleValue());\n else \n RESULT = new IntExpr(num.intValue());\n\t }\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(17/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 103: // PrimaryExpr ::= Literal \n {\n Expression RESULT = null;\n\t\tint stringleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint stringright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tString string = (String)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t/*\n\t* If the string appears to have the syntax of a QName, store \n\t* namespace info in the literal expression. This is used for\n\t* element-available and function-available functions, among\n\t* others. Also, the default namespace must be ignored.\n\t*/\n\tString namespace = null;\n\tfinal int index = string.lastIndexOf(':');\n\n\tif (index > 0) {\n\t final String prefix = string.substring(0, index);\n\t namespace = parser._symbolTable.lookupNamespace(prefix);\n\t}\n\tRESULT = (namespace == null) ? new LiteralExpr(string)\n\t\t : new LiteralExpr(string, namespace); \n\t\n CUP$XPathParser$result = new java_cup.runtime.Symbol(17/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 102: // PrimaryExpr ::= LPAREN Expr RPAREN \n {\n Expression RESULT = null;\n\t\tint exleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint exright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tExpression ex = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\t RESULT = ex; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(17/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 101: // PrimaryExpr ::= VariableReference \n {\n Expression RESULT = null;\n\t\tint vrleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint vrright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression vr = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = vr; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(17/*PrimaryExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 100: // FilterExpr ::= PrimaryExpr Predicates \n {\n Expression RESULT = null;\n\t\tint primaryleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint primaryright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tExpression primary = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new FilterExpr(primary, pp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(6/*FilterExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 99: // FilterExpr ::= PrimaryExpr \n {\n Expression RESULT = null;\n\t\tint primaryleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint primaryright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression primary = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = primary; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(6/*FilterExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 98: // AbbreviatedStep ::= DDOT \n {\n Expression RESULT = null;\n\t\t RESULT = new Step(Axis.PARENT, NodeTest.ANODE, null); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(20/*AbbreviatedStep*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 97: // AbbreviatedStep ::= DOT \n {\n Expression RESULT = null;\n\t\t RESULT = new Step(Axis.SELF, NodeTest.ANODE, null); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(20/*AbbreviatedStep*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 96: // AxisName ::= SELF \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.SELF); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 95: // AxisName ::= PRECEDINGSIBLING \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.PRECEDINGSIBLING); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 94: // AxisName ::= PRECEDING \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.PRECEDING); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 93: // AxisName ::= PARENT \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.PARENT); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 92: // AxisName ::= NAMESPACE \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.NAMESPACE); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 91: // AxisName ::= FOLLOWINGSIBLING \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.FOLLOWINGSIBLING); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 90: // AxisName ::= FOLLOWING \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.FOLLOWING); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 89: // AxisName ::= DESCENDANTORSELF \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.DESCENDANTORSELF); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 88: // AxisName ::= DESCENDANT \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.DESCENDANT); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 87: // AxisName ::= CHILD \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.CHILD); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 86: // AxisName ::= ATTRIBUTE \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.ATTRIBUTE); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 85: // AxisName ::= ANCESTORORSELF \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.ANCESTORORSELF); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 84: // AxisName ::= ANCESTOR \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.ANCESTOR); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(40/*AxisName*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 83: // AxisSpecifier ::= ATSIGN \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.ATTRIBUTE); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(41/*AxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 82: // AxisSpecifier ::= AxisName DCOLON \n {\n Integer RESULT = null;\n\t\tint anleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint anright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tInteger an = (Integer)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\t RESULT = an; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(41/*AxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 81: // Step ::= AbbreviatedStep \n {\n Expression RESULT = null;\n\t\tint abbrevleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint abbrevright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression abbrev = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = abbrev; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(7/*Step*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 80: // Step ::= AxisSpecifier NodeTest \n {\n Expression RESULT = null;\n\t\tint axisleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint axisright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tInteger axis = (Integer)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ntestleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ntestright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tObject ntest = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new Step(axis.intValue(),\n parser.findNodeType(axis.intValue(), ntest),\n null);\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(7/*Step*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 79: // Step ::= AxisSpecifier NodeTest Predicates \n {\n Expression RESULT = null;\n\t\tint axisleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint axisright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tInteger axis = (Integer)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint ntestleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint ntestright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tObject ntest = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new Step(axis.intValue(),\n parser.findNodeType(axis.intValue(), ntest),\n pp);\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(7/*Step*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 78: // Step ::= NodeTest Predicates \n {\n Expression RESULT = null;\n\t\tint ntestleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint ntestright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tObject ntest = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n if (ntest instanceof Step) {\n Step step = (Step)ntest;\n step.addPredicates(pp);\n RESULT = (Step)ntest;\n }\n else {\n RESULT = new Step(Axis.CHILD,\n parser.findNodeType(Axis.CHILD, ntest), pp);\n }\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(7/*Step*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 77: // Step ::= NodeTest \n {\n Expression RESULT = null;\n\t\tint ntestleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ntestright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tObject ntest = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t\n if (ntest instanceof Step) {\n RESULT = (Step)ntest;\n }\n else {\n\t\tRESULT = new Step(Axis.CHILD,\n parser.findNodeType(Axis.CHILD, ntest),\n null);\n }\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(7/*Step*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 76: // AbbreviatedAbsoluteLocationPath ::= DSLASH RelativeLocationPath \n {\n Expression RESULT = null;\n\t\tint rlpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rlpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression rlp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t\n // \n\t // Expand '//' into '/descendant-or-self::node()/' or\n\t // into /descendant-or-self::*/\n\t //\n\t int nodeType = DOM.NO_TYPE;\n\t if (rlp instanceof Step && \n\t parser.isElementAxis(((Step) rlp).getAxis())) \n\t {\n\t nodeType = DTM.ELEMENT_NODE;\n\t }\n\t final Step step = new Step(Axis.DESCENDANTORSELF, nodeType, null);\n\t RESULT = new AbsoluteLocationPath(parser.insertStep(step, \n\t\t\t\t(RelativeLocationPath) rlp));\n\t\n CUP$XPathParser$result = new java_cup.runtime.Symbol(24/*AbbreviatedAbsoluteLocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 75: // AbbreviatedRelativeLocationPath ::= RelativeLocationPath DSLASH Step \n {\n Expression RESULT = null;\n\t\tint rlpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint rlpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression rlp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint stepleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint stepright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression step = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t final Step right = (Step)step;\n final int axis = right.getAxis();\n final int type = right.getNodeType();\n final Vector predicates = right.getPredicates();\n\n if ((axis == Axis.CHILD) && (type != NodeTest.ATTRIBUTE)) {\n // Compress './/child:E' into 'descendant::E' - if possible\n if (predicates == null) {\n right.setAxis(Axis.DESCENDANT);\n if (rlp instanceof Step && ((Step)rlp).isAbbreviatedDot()) {\n\t RESULT = right;\n }\n else {\n // Expand 'rlp//child::E' into 'rlp/descendant::E'\n RelativeLocationPath left = (RelativeLocationPath)rlp;\n\t RESULT = new ParentLocationPath(left, right);\n }\n }\n else {\n // Expand './/step' -> 'descendant-or-self::*/step'\n if (rlp instanceof Step && ((Step)rlp).isAbbreviatedDot()) {\n Step left = new Step(Axis.DESCENDANTORSELF, \n\t\t\t DTM.ELEMENT_NODE, null);\n RESULT = new ParentLocationPath(left, right);\n }\n else {\n // Expand 'rlp//step' -> 'rlp/descendant-or-self::*/step'\n RelativeLocationPath left = (RelativeLocationPath)rlp;\n Step mid = new Step(Axis.DESCENDANTORSELF, \n\t\t\t DTM.ELEMENT_NODE, null);\n ParentLocationPath ppl = new ParentLocationPath(mid, right);\n RESULT = new ParentLocationPath(left, ppl);\n }\n }\n }\n else if ((axis == Axis.ATTRIBUTE) || (type == NodeTest.ATTRIBUTE)) {\n // Expand 'rlp//step' -> 'rlp/descendant-or-self::*/step'\n RelativeLocationPath left = (RelativeLocationPath)rlp;\n Step middle = new Step(Axis.DESCENDANTORSELF, \n\t\t DTM.ELEMENT_NODE, null);\n ParentLocationPath ppl = new ParentLocationPath(middle, right);\n RESULT = new ParentLocationPath(left, ppl);\n\t }\n\t else {\n\t // Expand 'rlp//step' -> 'rlp/descendant-or-self::node()/step'\n RelativeLocationPath left = (RelativeLocationPath)rlp;\n\t Step middle = new Step(Axis.DESCENDANTORSELF, \n\t\t DOM.NO_TYPE, null); \n ParentLocationPath ppl = new ParentLocationPath(middle, right);\n\t RESULT = new ParentLocationPath(left, ppl);\n\t }\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(22/*AbbreviatedRelativeLocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 74: // AbsoluteLocationPath ::= AbbreviatedAbsoluteLocationPath \n {\n Expression RESULT = null;\n\t\tint aalpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint aalpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression aalp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = aalp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(23/*AbsoluteLocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 73: // AbsoluteLocationPath ::= SLASH RelativeLocationPath \n {\n Expression RESULT = null;\n\t\tint rlpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rlpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression rlp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new AbsoluteLocationPath(rlp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(23/*AbsoluteLocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 72: // AbsoluteLocationPath ::= SLASH \n {\n Expression RESULT = null;\n\t\t RESULT = new AbsoluteLocationPath(); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(23/*AbsoluteLocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 71: // RelativeLocationPath ::= AbbreviatedRelativeLocationPath \n {\n Expression RESULT = null;\n\t\tint arlpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint arlpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression arlp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = arlp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(21/*RelativeLocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 70: // RelativeLocationPath ::= RelativeLocationPath SLASH Step \n {\n Expression RESULT = null;\n\t\tint rlpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint rlpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression rlp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint stepleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint stepright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression step = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n if (rlp instanceof Step && ((Step) rlp).isAbbreviatedDot()) {\n RESULT = step; // Remove './' from the middle\n }\n else if (((Step) step).isAbbreviatedDot()) {\n RESULT = rlp; // Remove '/.' from the end\n }\n else {\n RESULT =\n new ParentLocationPath((RelativeLocationPath) rlp, step); \n }\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(21/*RelativeLocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 69: // RelativeLocationPath ::= Step \n {\n Expression RESULT = null;\n\t\tint stepleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint stepright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression step = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = step; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(21/*RelativeLocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 68: // LocationPath ::= AbsoluteLocationPath \n {\n Expression RESULT = null;\n\t\tint alpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint alpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression alp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = alp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(4/*LocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 67: // LocationPath ::= RelativeLocationPath \n {\n Expression RESULT = null;\n\t\tint rlpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rlpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression rlp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = rlp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(4/*LocationPath*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 66: // PathExpr ::= FilterExpr DSLASH RelativeLocationPath \n {\n Expression RESULT = null;\n\t\tint fexpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint fexpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression fexp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint rlpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rlpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression rlp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t\n // \n\t // Expand '//' into '/descendant-or-self::node()/' or\n\t // into /descendant-or-self::*/\n\t //\n\t int nodeType = DOM.NO_TYPE;\n\t if (rlp instanceof Step && \n\t parser.isElementAxis(((Step) rlp).getAxis())) \n\t {\n\t nodeType = DTM.ELEMENT_NODE;\n\t }\n final Step step = new Step(Axis.DESCENDANTORSELF, nodeType, null);\n FilterParentPath fpp = new FilterParentPath(fexp, step);\n fpp = new FilterParentPath(fpp, rlp);\n if (fexp instanceof KeyCall == false) {\n fpp.setDescendantAxis();\n\t }\n RESULT = fpp;\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(19/*PathExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // PathExpr ::= FilterExpr SLASH RelativeLocationPath \n {\n Expression RESULT = null;\n\t\tint fexpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint fexpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression fexp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint rlpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rlpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression rlp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new FilterParentPath(fexp, rlp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(19/*PathExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // PathExpr ::= FilterExpr \n {\n Expression RESULT = null;\n\t\tint fexpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint fexpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression fexp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = fexp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(19/*PathExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // PathExpr ::= LocationPath \n {\n Expression RESULT = null;\n\t\tint lpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint lpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression lp = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = lp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(19/*PathExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // UnionExpr ::= PathExpr VBAR UnionExpr \n {\n Expression RESULT = null;\n\t\tint peleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint peright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression pe = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint restleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint restright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression rest = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new UnionPathExpr(pe, rest); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(18/*UnionExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // UnionExpr ::= PathExpr \n {\n Expression RESULT = null;\n\t\tint peleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint peright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression pe = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = pe; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(18/*UnionExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // UnaryExpr ::= MINUS UnaryExpr \n {\n Expression RESULT = null;\n\t\tint ueleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ueright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ue = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new UnaryOpExpr(ue); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(14/*UnaryExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // UnaryExpr ::= UnionExpr \n {\n Expression RESULT = null;\n\t\tint ueleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ueright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ue = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = ue; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(14/*UnaryExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // MultiplicativeExpr ::= MultiplicativeExpr MOD UnaryExpr \n {\n Expression RESULT = null;\n\t\tint meleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint meright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression me = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint ueleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ueright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ue = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new BinOpExpr(BinOpExpr.MOD, me, ue); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(13/*MultiplicativeExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // MultiplicativeExpr ::= MultiplicativeExpr DIV UnaryExpr \n {\n Expression RESULT = null;\n\t\tint meleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint meright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression me = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint ueleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ueright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ue = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new BinOpExpr(BinOpExpr.DIV, me, ue); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(13/*MultiplicativeExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // MultiplicativeExpr ::= MultiplicativeExpr MULT UnaryExpr \n {\n Expression RESULT = null;\n\t\tint meleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint meright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression me = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint ueleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ueright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ue = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new BinOpExpr(BinOpExpr.TIMES, me, ue); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(13/*MultiplicativeExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // MultiplicativeExpr ::= UnaryExpr \n {\n Expression RESULT = null;\n\t\tint ueleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ueright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ue = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = ue; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(13/*MultiplicativeExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // AdditiveExpr ::= AdditiveExpr MINUS MultiplicativeExpr \n {\n Expression RESULT = null;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint meleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint meright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression me = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new BinOpExpr(BinOpExpr.MINUS, ae, me); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(12/*AdditiveExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // AdditiveExpr ::= AdditiveExpr PLUS MultiplicativeExpr \n {\n Expression RESULT = null;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint meleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint meright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression me = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new BinOpExpr(BinOpExpr.PLUS, ae, me); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(12/*AdditiveExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // AdditiveExpr ::= MultiplicativeExpr \n {\n Expression RESULT = null;\n\t\tint meleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint meright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression me = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = me; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(12/*AdditiveExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // RelationalExpr ::= RelationalExpr GE AdditiveExpr \n {\n Expression RESULT = null;\n\t\tint releft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint reright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression re = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new RelationalExpr(Operators.GE, re, ae); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(11/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // RelationalExpr ::= RelationalExpr LE AdditiveExpr \n {\n Expression RESULT = null;\n\t\tint releft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint reright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression re = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new RelationalExpr(Operators.LE, re, ae); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(11/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // RelationalExpr ::= RelationalExpr GT AdditiveExpr \n {\n Expression RESULT = null;\n\t\tint releft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint reright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression re = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new RelationalExpr(Operators.GT, re, ae); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(11/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // RelationalExpr ::= RelationalExpr LT AdditiveExpr \n {\n Expression RESULT = null;\n\t\tint releft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint reright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression re = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new RelationalExpr(Operators.LT, re, ae); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(11/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // RelationalExpr ::= AdditiveExpr \n {\n Expression RESULT = null;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = ae; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(11/*RelationalExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // EqualityExpr ::= EqualityExpr NE RelationalExpr \n {\n Expression RESULT = null;\n\t\tint eeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint eeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression ee = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint releft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint reright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression re = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new EqualityExpr(Operators.NE, ee, re); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(10/*EqualityExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // EqualityExpr ::= EqualityExpr EQ RelationalExpr \n {\n Expression RESULT = null;\n\t\tint eeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint eeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression ee = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint releft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint reright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression re = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new EqualityExpr(Operators.EQ, ee, re); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(10/*EqualityExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // EqualityExpr ::= RelationalExpr \n {\n Expression RESULT = null;\n\t\tint releft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint reright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression re = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = re; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(10/*EqualityExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // AndExpr ::= AndExpr AND EqualityExpr \n {\n Expression RESULT = null;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint eeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint eeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ee = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new LogicalExpr(LogicalExpr.AND, ae, ee); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(9/*AndExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // AndExpr ::= EqualityExpr \n {\n Expression RESULT = null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = e; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(9/*AndExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // OrExpr ::= OrExpr OR AndExpr \n {\n Expression RESULT = null;\n\t\tint oeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint oeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tExpression oe = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new LogicalExpr(LogicalExpr.OR, oe, ae); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(8/*OrExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // OrExpr ::= AndExpr \n {\n Expression RESULT = null;\n\t\tint aeleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint aeright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ae = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = ae; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(8/*OrExpr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // Expr ::= OrExpr \n {\n Expression RESULT = null;\n\t\tint exleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint exright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression ex = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = ex; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(2/*Expr*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // Predicate ::= LBRACK Expr RBRACK \n {\n Expression RESULT = null;\n\t\tint eleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint eright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\t\n\t\tRESULT = new Predicate(e);\n\t \n CUP$XPathParser$result = new java_cup.runtime.Symbol(5/*Predicate*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // Predicates ::= Predicate Predicates \n {\n Vector RESULT = null;\n\t\tint pleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint pright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tExpression p = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t pp.insertElementAt(p, 0); RESULT = pp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(35/*Predicates*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // Predicates ::= Predicate \n {\n Vector RESULT = null;\n\t\tint pleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint pright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression p = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t\tVector temp = new Vector();\n\t\ttemp.addElement(p);\n\t\tRESULT = temp; \n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(35/*Predicates*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // ChildOrAttributeAxisSpecifier ::= ATTRIBUTE DCOLON \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.ATTRIBUTE); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(42/*ChildOrAttributeAxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // ChildOrAttributeAxisSpecifier ::= CHILD DCOLON \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.CHILD); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(42/*ChildOrAttributeAxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // ChildOrAttributeAxisSpecifier ::= ATSIGN \n {\n Integer RESULT = null;\n\t\t RESULT = new Integer(Axis.ATTRIBUTE); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(42/*ChildOrAttributeAxisSpecifier*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // NameTestPattern ::= QName \n {\n Object RESULT = null;\n\t\tint qnleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint qnright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tQName qn = (QName)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = qn; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(34/*NameTestPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // NameTestPattern ::= STAR \n {\n Object RESULT = null;\n\t\t RESULT = null; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(34/*NameTestPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // NodeTestPattern ::= PI \n {\n Object RESULT = null;\n\t\t RESULT = new Integer(NodeTest.PI); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(33/*NodeTestPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // NodeTestPattern ::= COMMENT \n {\n Object RESULT = null;\n\t\t RESULT = new Integer(NodeTest.COMMENT); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(33/*NodeTestPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // NodeTestPattern ::= TEXT \n {\n Object RESULT = null;\n\t\t RESULT = new Integer(NodeTest.TEXT); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(33/*NodeTestPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // NodeTestPattern ::= NODE \n {\n Object RESULT = null;\n\t\t RESULT = new Integer(NodeTest.ANODE); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(33/*NodeTestPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // NodeTestPattern ::= NameTestPattern \n {\n Object RESULT = null;\n\t\tint ntleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ntright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tObject nt = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = nt; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(33/*NodeTestPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // StepPattern ::= ChildOrAttributeAxisSpecifier ProcessingInstructionPattern Predicates \n {\n StepPattern RESULT = null;\n\t\tint axisleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint axisright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tInteger axis = (Integer)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint pipleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint pipright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tStepPattern pip = (StepPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t // TODO: report error if axis is attribute\t\n\t RESULT = (ProcessingInstructionPattern)pip.setPredicates(pp); \n\t \n CUP$XPathParser$result = new java_cup.runtime.Symbol(32/*StepPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // StepPattern ::= ChildOrAttributeAxisSpecifier ProcessingInstructionPattern \n {\n StepPattern RESULT = null;\n\t\tint axisleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint axisright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tInteger axis = (Integer)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint pipleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint pipright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tStepPattern pip = (StepPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t RESULT = pip; \t// TODO: report error if axis is attribute\n\t \n CUP$XPathParser$result = new java_cup.runtime.Symbol(32/*StepPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // StepPattern ::= ChildOrAttributeAxisSpecifier NodeTestPattern Predicates \n {\n StepPattern RESULT = null;\n\t\tint axisleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint axisright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tInteger axis = (Integer)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint ntleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint ntright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tObject nt = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t RESULT = parser.createStepPattern(axis.intValue(), nt, pp);\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(32/*StepPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // StepPattern ::= ChildOrAttributeAxisSpecifier NodeTestPattern \n {\n StepPattern RESULT = null;\n\t\tint axisleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint axisright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tInteger axis = (Integer)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ntleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ntright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tObject nt = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t RESULT = parser.createStepPattern(axis.intValue(), nt, null);\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(32/*StepPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // StepPattern ::= ProcessingInstructionPattern Predicates \n {\n StepPattern RESULT = null;\n\t\tint pipleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint pipright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tStepPattern pip = (StepPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = (ProcessingInstructionPattern)pip.setPredicates(pp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(32/*StepPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // StepPattern ::= ProcessingInstructionPattern \n {\n StepPattern RESULT = null;\n\t\tint pipleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint pipright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tStepPattern pip = (StepPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = pip; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(32/*StepPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // StepPattern ::= NodeTestPattern Predicates \n {\n StepPattern RESULT = null;\n\t\tint ntleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint ntright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tObject nt = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tint ppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tVector pp = (Vector)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t\tRESULT = parser.createStepPattern(Axis.CHILD, nt, pp);\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(32/*StepPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // StepPattern ::= NodeTestPattern \n {\n StepPattern RESULT = null;\n\t\tint ntleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ntright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tObject nt = (Object)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t \n\t\tRESULT = parser.createStepPattern(Axis.CHILD, nt, null);\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(32/*StepPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // RelativePathPattern ::= StepPattern DSLASH RelativePathPattern \n {\n RelativePathPattern RESULT = null;\n\t\tint spleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint spright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tStepPattern sp = (StepPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint rppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tRelativePathPattern rpp = (RelativePathPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new AncestorPattern(sp, rpp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(31/*RelativePathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // RelativePathPattern ::= StepPattern SLASH RelativePathPattern \n {\n RelativePathPattern RESULT = null;\n\t\tint spleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint spright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tStepPattern sp = (StepPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint rppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tRelativePathPattern rpp = (RelativePathPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new ParentPattern(sp, rpp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(31/*RelativePathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // RelativePathPattern ::= StepPattern \n {\n RelativePathPattern RESULT = null;\n\t\tint spleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint spright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tStepPattern sp = (StepPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = sp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(31/*RelativePathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // ProcessingInstructionPattern ::= PIPARAM LPAREN Literal RPAREN \n {\n StepPattern RESULT = null;\n\t\tint lleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint lright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tString l = (String)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\t RESULT = new ProcessingInstructionPattern(l); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(30/*ProcessingInstructionPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // IdKeyPattern ::= KEY LPAREN Literal COMMA Literal RPAREN \n {\n IdKeyPattern RESULT = null;\n\t\tint l1left = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).left;\n\t\tint l1right = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).right;\n\t\tString l1 = (String)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).value;\n\t\tint l2left = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint l2right = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tString l2 = (String)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\t RESULT = new KeyPattern(l1, l2); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(27/*IdKeyPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-5)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // IdKeyPattern ::= ID LPAREN Literal RPAREN \n {\n IdKeyPattern RESULT = null;\n\t\tint lleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint lright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tString l = (String)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\t RESULT = new IdPattern(l);\n parser.setHasIdCall(true);\n \n CUP$XPathParser$result = new java_cup.runtime.Symbol(27/*IdKeyPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-3)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // LocationPathPattern ::= RelativePathPattern \n {\n Pattern RESULT = null;\n\t\tint rppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tRelativePathPattern rpp = (RelativePathPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = rpp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(29/*LocationPathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // LocationPathPattern ::= DSLASH RelativePathPattern \n {\n Pattern RESULT = null;\n\t\tint rppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tRelativePathPattern rpp = (RelativePathPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new AncestorPattern(rpp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(29/*LocationPathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // LocationPathPattern ::= IdKeyPattern DSLASH RelativePathPattern \n {\n Pattern RESULT = null;\n\t\tint ikpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint ikpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tIdKeyPattern ikp = (IdKeyPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint rppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tRelativePathPattern rpp = (RelativePathPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new AncestorPattern(ikp, rpp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(29/*LocationPathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // LocationPathPattern ::= IdKeyPattern SLASH RelativePathPattern \n {\n Pattern RESULT = null;\n\t\tint ikpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint ikpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tIdKeyPattern ikp = (IdKeyPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint rppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tRelativePathPattern rpp = (RelativePathPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new ParentPattern(ikp, rpp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(29/*LocationPathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // LocationPathPattern ::= IdKeyPattern \n {\n Pattern RESULT = null;\n\t\tint ikpleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint ikpright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tIdKeyPattern ikp = (IdKeyPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = ikp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(29/*LocationPathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // LocationPathPattern ::= SLASH RelativePathPattern \n {\n Pattern RESULT = null;\n\t\tint rppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint rppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tRelativePathPattern rpp = (RelativePathPattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new AbsolutePathPattern(rpp); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(29/*LocationPathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // LocationPathPattern ::= SLASH \n {\n Pattern RESULT = null;\n\t\t RESULT = new AbsolutePathPattern(null); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(29/*LocationPathPattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // Pattern ::= LocationPathPattern VBAR Pattern \n {\n Pattern RESULT = null;\n\t\tint lppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left;\n\t\tint lppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).right;\n\t\tPattern lpp = (Pattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).value;\n\t\tint pleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint pright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tPattern p = (Pattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = new AlternativePattern(lpp, p); \n CUP$XPathParser$result = new java_cup.runtime.Symbol(28/*Pattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-2)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // Pattern ::= LocationPathPattern \n {\n Pattern RESULT = null;\n\t\tint lppleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint lppright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tPattern lpp = (Pattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = lpp; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(28/*Pattern*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // TopLevel ::= EXPRESSION Expr \n {\n SyntaxTreeNode RESULT = null;\n\t\tint exprleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint exprright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tExpression expr = (Expression)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = expr; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(1/*TopLevel*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // TopLevel ::= PATTERN Pattern \n {\n SyntaxTreeNode RESULT = null;\n\t\tint patternleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).left;\n\t\tint patternright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right;\n\t\tPattern pattern = (Pattern)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).value;\n\t\t RESULT = pattern; \n CUP$XPathParser$result = new java_cup.runtime.Symbol(1/*TopLevel*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n return CUP$XPathParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= TopLevel EOF \n {\n Object RESULT = null;\n\t\tint start_valleft = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left;\n\t\tint start_valright = ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).right;\n\t\tSyntaxTreeNode start_val = (SyntaxTreeNode)((java_cup.runtime.Symbol) CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$XPathParser$result = new java_cup.runtime.Symbol(0/*$START*/, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-1)).left, ((java_cup.runtime.Symbol)CUP$XPathParser$stack.elementAt(CUP$XPathParser$top-0)).right, RESULT);\n }\n /* ACCEPT */\n CUP$XPathParser$parser.done_parsing();\n return CUP$XPathParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number found in internal parse table\");\n\n }\n }",
"public void action() {\n action.action();\n }",
"public static Matrix buildMatrixFromCommandLine (){\n\n int M = 0;\n int N = 0;\n double[][] data;\n\n M = new Double(getDoubleWithMessage(\"Enter rows number: \")).intValue();\n N = new Double(getDoubleWithMessage(\"Enter columns number: \")).intValue();\n System.out.println(\"You have matrix: \" + M + \"x\" + N);\n\n data = new double[M][N];\n\n for (int i = 0; i < M; i++){\n System.out.println(\"Row: \" + i);\n for (int j = 0; j < N; j++){\n data[i][j] = getDoubleWithMessage(\"Column: \" + j);\n }\n }\n return new Matrix(data);\n }",
"@Test\n public void testSetMatrixColumn() {\n final Matrix33d mBase = getMatrix();\n final Matrix33d m = getMatrix();\n final Vector3d v = new Vector3d(D10, D11, D12);\n\n m.setMatrixColumn(v, 1);\n for (int i = 0; i < m.getA().length; i++) {\n if (i > 2 && i < 6) {\n // compare the row set to the vector values\n int vectorIndex = i - 3;\n assertEquals(m.getA()[i], v.a[vectorIndex]);\n } else {\n assertEquals(m.getA()[i], mBase.getA()[i]);\n }\n }\n }",
"public interface ExprMatrix extends ExprCellIterator{\n public int getColumnsDimension();\n\n public int getRowsDimension();\n\n public Expr apply(int row, int column);\n\n public Expr get(int row, int column);\n\n public void set(Expr exp, int row, int col);\n\n\n /**\n * create a preloaded sequence (all element are pre evaluated)\n * @return\n */\n public ExprMatrix preload();\n\n /**\n * same as index, provided for scala compatibility\n *\n * @param index index\n * @return get(index)\n */\n /**\n * create a cached instance of this expression sequence\n * @return\n */\n public ExprMatrix withCache();\n\n /**\n * create a sequence of simplified elements\n * @return\n */\n public ExprMatrix simplify() ;\n}",
"public static long CreateMatrixM(Configuration conf) throws Exception { \n\n\t\tconf.setLong(\"count\", 0);\n\t\tJob job = new Job(conf, \"ceate matrix\");\n\n\t\tjob.setJarByClass(PageRank.class);\n\t\tjob.setMapperClass(MatrixMapper.class);\n\t\tjob.setReducerClass(Reducer.class);\n\t\tjob.setOutputKeyClass(Text.class);\n\t\tjob.setOutputValueClass(UrlTypePosPRcount.class);\n\t\t//job.setOutputFormatClass(SequenceFileOutputFormat.class);\n\t\tFileInputFormat.addInputPath(job, new Path(\"parseOutput\"));\n\t\tFileOutputFormat.setOutputPath(job,new Path(\"createMatrixOutputM\"));\n\t\tMultipleOutputs.addNamedOutput(job, \"Mapping\", TextOutputFormat.class, NullWritable.class, Text.class);\n\t\tMultipleOutputs.addNamedOutput(job, \"M\", TextOutputFormat.class, NullWritable.class, Text.class);\n\t\tMultipleOutputs.addNamedOutput(job, \"R\", TextOutputFormat.class, NullWritable.class, Text.class);\n\n\t\tjob.waitForCompletion(true);\n\t\treturn job.getCounters().findCounter(COUNTER.count).getValue();\n\t}",
"Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }",
"@Test(timeout = 4000)\n public void test05() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n expressionMatrixImpl0.creatMatrix((-1));\n expressionMatrixImpl0.creatMatrix(1430);\n expressionMatrixImpl0.addNewNode();\n MessageTracerImpl messageTracerImpl0 = new MessageTracerImpl();\n HL72XMLImpl hL72XMLImpl0 = new HL72XMLImpl();\n messageTracerImpl0.reset();\n messageTracerImpl0.getMapper();\n expressionMatrixImpl0.creatMatrix(38);\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.getNumberOfElements();\n expressionMatrixImpl0.setValue(0, 20, (-1244));\n expressionMatrixImpl0.outNoStandardConnections(true, (ExpressionElementMapper) null);\n expressionMatrixImpl0.toString();\n assertEquals(38, expressionMatrixImpl0.getNumberOfElements());\n }",
"public Graph runNumberOfPathThroughAnyNode(AdjacencyMatrix m){\r\n\t\tGraph graph = new Graph(m);\r\n\t\treturn PathCount.getNumberOfPathThroughAnyNode(graph);\t\r\n\t}",
"@Test(timeout = 4000)\n public void test16() throws Throwable {\n ExpressionMatrixImpl expressionMatrixImpl0 = new ExpressionMatrixImpl();\n ExpressionElementMapperImpl expressionElementMapperImpl0 = new ExpressionElementMapperImpl();\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.getValue(0, 0);\n expressionMatrixImpl0.addNewNode();\n expressionMatrixImpl0.toString();\n expressionMatrixImpl0.getValue(1, 1);\n ExpressionElementMapperItemImpl expressionElementMapperItemImpl0 = new ExpressionElementMapperItemImpl();\n expressionMatrixImpl0.creatMatrix(20);\n expressionMatrixImpl0.setValue(0, (-1), (-1));\n expressionMatrixImpl0.getNumberOfNodes();\n assertEquals(20, expressionMatrixImpl0.getNumberOfElements());\n }",
"public RvSnoopAction getAction(String command);",
"private Object get( int r, int c ) {\n\treturn matrix[r][c];\n }",
"public void loadMatrixIO() {\n qMatrixFile = new FileIO(\"qMatrix.txt\");\n sMatrixFile = new FileIO(\"sMatrix.txt\");\n\n }",
"public LongMatrixToken(String init) throws IllegalActionException {\n\t\tPtParser parser = new PtParser();\n\t\tASTPtRootNode tree = parser.generateParseTree(init);\n\t\tToken token = (new ParseTreeEvaluator()).evaluateParseTree(tree);\n\n\t\tif (token instanceof LongMatrixToken) {\n\t\t\tlong[][] value = ((LongMatrixToken) token).longMatrix();\n\t\t\t_initialize(value, DO_COPY);\n\t\t} else {\n\t\t\tthrow new IllegalActionException(\"A matrix token cannot be\"\n\t\t\t\t\t+ \" created from the expression '\" + init + \"'\");\n\t\t}\n\t}",
"void onMatrixChanged(RectF rect, Matrix matrix);",
"protected boolean applyActionThisNode(iNamedObject node)\n\t{\n\t\treturn true;\n\t}",
"private int convertMatrixToVectorIndex(int row, int col){\n return ((row)*this.col)+col;\n }",
"@LargeTest\n public void testColorMatrix() {\n TestAction ta = new TestAction(TestName.COLOR_MATRIX);\n runTest(ta, TestName.COLOR_MATRIX.name());\n }",
"public Matrix getMatrix() {\n Matrix matrix2 = new Matrix();\n matrix2.set(this.matrix);\n return matrix2;\n }",
"private int rcvToMatrixRow(int i, int j, String symb) \n {\n int v = indexOf(symb);\n return (i - 1) * dimSquared + (j - 1) * gDim + (v - 1);\n }",
"protected void expand() {\n matrix = matrix.power(e);\n }"
]
| [
"0.5861611",
"0.5483821",
"0.53357625",
"0.5285453",
"0.5283329",
"0.5267297",
"0.5177585",
"0.5098001",
"0.5062089",
"0.5025405",
"0.50042677",
"0.49838945",
"0.49048913",
"0.48876712",
"0.4870404",
"0.48497364",
"0.48213246",
"0.48177296",
"0.48074237",
"0.47414765",
"0.47299707",
"0.47201952",
"0.47178578",
"0.4714468",
"0.47043514",
"0.46898818",
"0.46637434",
"0.46439877",
"0.46402133",
"0.46124223",
"0.4577727",
"0.4567044",
"0.45469636",
"0.4529669",
"0.45187265",
"0.4513777",
"0.45119023",
"0.44996297",
"0.44920316",
"0.44720468",
"0.4471623",
"0.4470895",
"0.4453554",
"0.4430266",
"0.44108835",
"0.44061908",
"0.44000173",
"0.43836206",
"0.43832332",
"0.4382924",
"0.43770635",
"0.43753612",
"0.4358876",
"0.43555698",
"0.43458927",
"0.43442494",
"0.43389258",
"0.4323552",
"0.43233243",
"0.4322714",
"0.43157598",
"0.43155184",
"0.43067116",
"0.43038818",
"0.4294271",
"0.42826542",
"0.42784455",
"0.427203",
"0.4257113",
"0.42526197",
"0.4250846",
"0.42251652",
"0.42243236",
"0.42241687",
"0.42208415",
"0.422005",
"0.42183152",
"0.42144904",
"0.4213303",
"0.42081213",
"0.42003763",
"0.41971114",
"0.41932848",
"0.41897088",
"0.4188987",
"0.41873017",
"0.418701",
"0.41801578",
"0.41766793",
"0.41736493",
"0.41641968",
"0.4163399",
"0.4160331",
"0.41598392",
"0.41582453",
"0.41579148",
"0.41554388",
"0.41509932",
"0.41487804",
"0.414394"
]
| 0.7760295 | 0 |
////////////////////////////////////////////////////////////////////// Description: Returns the texture coordinates in object space that corresponds to the given node in the path. Use: public | public SbVec4f
getObjectTextureCoords(final SoNode node)
//
////////////////////////////////////////////////////////////////////////
{
return multVecMatrix4(getImageToObject(node), imageTexCoords);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public E3DVector2F getTextureCoordC(){\r\n return vertices[2].getTextureCoord();\r\n }",
"public float[] getTextureCoords() {\r\n\t\treturn textureCoords;\r\n\t}",
"public E3DVector2F getTextureCoordB(){\r\n return vertices[1].getTextureCoord();\r\n }",
"public E3DVector2F getTextureCoordA(){\r\n return vertices[0].getTextureCoord();\r\n }",
"public ResourceLocation getEntityTexture(T entity) {\n return MINECART_TEXTURES;\n }",
"public float[] getHitTexCoord();",
"@Nullable\n Identifier getTexture(Entity entity);",
"TextureAtlas.AtlasRegion getTexture(FileHandle textureFile);",
"public SbMatrix\ngetImageToObject(SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getTextureInverse();\n}",
"public static float[] createQuadTextureCoords() {\n float[] tex = new float[]{0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f};\n return tex;\n }",
"public ByteBuffer getTextureCoordsBuffer() {\n return texCoordsBuf;\n }",
"public E3DVector2F getTextureCoordDetail0C(){\r\n return vertices[2].getTextureCoordDetail0();\r\n }",
"public TextureCoord2D texFor (final Point3 point) {\n\n if (point == null)throw new IllegalArgumentException(\"The Point cannot be null!\");\n\n\n double teta = Math.acos(point.y);\n double phi = Math.atan2(point.x, point.z);\n\n return new TextureCoord2D(phi / (Math.PI*2), -teta/Math.PI);\n }",
"public TextureComponent2D getTexture(int side)\n {\n return texture[side];\n }",
"public int nodeToPixelIndex(Node node) {\n Point p = nodeToPixelPoint(node);\n return ((p.y * WIDTH) + p.x);\n }",
"protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture0((EntityEnderPig)p_110775_1_);\n }",
"public SbMatrix\ngetObjectToImage( SoNode node) \n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getTextureMatrix();\n}",
"public E3DVector2F getTextureCoordDetail0A(){\r\n return vertices[0].getTextureCoordDetail0();\r\n }",
"protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }",
"protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityBat)p_110775_1_);\n }",
"public E3DVector2F getTextureCoordDetail0B(){\r\n return vertices[1].getTextureCoordDetail0();\r\n }",
"protected ResourceLocation getEntityTexture(Entity entity)\n {\n return this.func_180578_a((EntityMaxZombie)entity);\n }",
"int getNumberOfTextureCoordinates();",
"protected ResourceLocation getEntityTexture(EntityLiving entity)\n {\n return this.func_180578_a((EntityMaxZombie)entity);\n }",
"protected ResourceLocation getEntityTexture(T entity) {\n\t\treturn ORECART_TEXTURES;\n\t}",
"protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }",
"@Override\n\tprotected ResourceLocation getEntityTexture(Entity entity) {\n\t\treturn texture;\n\t}",
"@Override\n\tpublic int getTexture() {\n\t\treturn 0;\n\t}",
"public abstract TextureObject getTexture();",
"public String getTexture(){\n\t\treturn texture;\n\t}",
"public INTexture2D getTexture()\n {\n return this.texture.clone();\n }",
"public float getTextureYOffset() {\n\t\tint row = index / texture.getNumberOfRows();\n\t\treturn (float) row / (float) texture.getNumberOfRows();\n\t}",
"protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCowTextures((EntityCow)par1Entity);\n }",
"protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCaveSpiderTextures((EntityCaveSpider)par1Entity);\n }",
"@Override\n public ResourceLocation getTextureLocation(DroneEntity entity) {\n return entity.isAttacking() ? mobShootingTexture : mobTexture;\n }",
"protected ResourceLocation getEntityTexture(EntitySquid entity)\n {\n return SQUID_TEXTURES;\n }",
"protected ResourceLocation getEntityTexture0(EntityEnderPig p_110775_1_)\n {\n return enderPigTextures;\n }",
"public Texture getTexture() {\n\t\treturn region;\n\t}",
"@Override\n\t\tprotected ResourceLocation getEntityTexture(EntityLivingBase entity) {\n\t\t\treturn texture;\n\t\t}",
"public Point2D nodeToPoint(String node_coord) { return node_coord_lu.get(node_coord); }",
"public int getTextureID() {\n return textureID;\n }",
"private Quad getQuad() {\n final BufferedImage img = getImage();\n if(img == null){\n logger.severe(\"[tweet node] image is null!!!\");\n }\n\n float w = img.getWidth();\n float h = img.getHeight();\n \n height3D = h * fontSizeModifier;\n final Quad ret = new Quad(\"tweet node\", w * fontSizeModifier, height3D);\n\n ClientContextJME.getWorldManager().addRenderUpdater(new RenderUpdater() {\n public void update(Object arg0) {\n TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();\n Texture tex = TextureManager.loadTexture(img, MinificationFilter.BilinearNoMipMaps, MagnificationFilter.Bilinear, true);\n \n ts.setTexture(tex);\n ts.setEnabled(true);\n ret.setRenderState(ts);\n\n ret.setRenderQueueMode(Renderer.QUEUE_TRANSPARENT);\n\n BlendState as = DisplaySystem.getDisplaySystem().getRenderer().createBlendState();\n as.setBlendEnabled(true);\n as.setTestEnabled(true);\n as.setTestFunction(TestFunction.GreaterThan);\n as.setEnabled(true);\n ret.setRenderState(as);\n\n ret.setLightCombineMode(LightCombineMode.Off);\n ret.updateRenderState();\n\n ClientContextJME.getWorldManager().addToUpdateList(TweetNode.this);\n }\n }, null);\n\n return ret;\n }",
"public TextureRegion getTexture() {\n \treturn texture;\n }",
"protected ResourceLocation getEntityTexture(EntityBat entity)\n {\n return BAT_TEXTURES;\n }",
"public int getTextureCoordsCount() {\n \tif (texCoordsBuf == null)\n \t\treturn 0;\n \treturn texCoordsBuf.asFloatBuffer().limit()/2;\n }",
"protected ResourceLocation getEntityTexture(EntityZombie p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }",
"protected ResourceLocation getEntityTexture(EntitySentientSpecter entity)\n {\n return texture;\n }",
"protected ResourceLocation getEntityTexture(EntityMegaZombie p_110775_1_)\n {\n return zombieTextures;\n }",
"public Point2D getNodePositionXY () { return n.getXYPositionMap(); }",
"public Vertice getTextureVertice(int i) {\n\t\treturn textureVertices.get(i);\n\t}",
"void addTextureCoordinate(Vector t);",
"public TextureReference getTexture() {\r\n\t\treturn texture;\r\n\t}",
"@Overwrite\n protected ResourceLocation getEntityTexture(EntityItem entityItem) {\n ItemStack itemStack = ItemUtils.changeRenderTarget(entityItem.getEntityItem());\n return this.renderManager.renderEngine.getResourceLocation(itemStack.getItemSpriteNumber());\n }",
"public Texture getWorldTexture() {\n return frameBuffer.getTexture(0);\n }",
"protected ResourceLocation getEntityTexture(EntityBat p_110775_1_)\n {\n return batTextures;\n }",
"public int getId() {\r\n \t\r\n \treturn textureId;\r\n }",
"String getTextureName();",
"@Override\n\tpublic String getTexture() {\n\t\treturn type.getTextureString();\n\t}",
"protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.func_110914_a((EntitySpiritWolf)par1Entity);\n }",
"public float getTextureOffsetX() {\r\n\t\treturn textureX;\r\n\t}",
"public float getTextureOffsetY() {\r\n\t\treturn textureY;\r\n\t}",
"public int getY(int node) {\n return ys[node];\n }",
"Texture getIcon();",
"public int getTextureVerticeCount() {\n\t\treturn this.textureVertices.size();\n\t}",
"public float getTextureXOffset() {\n\t\tint column = index % texture.getNumberOfRows();\n\t\treturn (float) column / (float) texture.getNumberOfRows();\n\t}",
"@Nonnull\n Texture getWorldMap();",
"public Texture getDepthMapTexture(){\n return depthMap;\n }",
"public E3DVector2F getTextureCoordDetail1C(){\r\n\t\treturn vertices[2].getTextureCoordDetail1();\r\n\t}",
"public Point nodeToPixelPoint(Node node) {\n int x = node.getX() * SIZE + X_PIXEL_OFFSET;\n int y = node.getY() * SIZE;\n return new Point(x, y);\n }",
"private Sprite.UV[] buildFontSpriteCoords() {\n Sprite.UV[] uvs = new Sprite.UV[16*16];\n float step = 1.0f / 16.0f;\n\n for (int y=0; y<16; y++) {\n for (int x=0; x<16; x++) {\n int offset = (y*16)+x;\n uvs[offset] = new Sprite.UV();\n uvs[offset].s = (x * step) + step;\n uvs[offset].t = (y * step) + step;\n uvs[offset].u = x * step;\n uvs[offset].v = y * step;\n }\n }\n\n return uvs;\n }",
"public MapTexture getTexture(String path) {\n MapTexture result = textureCache.get(path);\n if (result == null) {\n InputStream inputStream = openFileStream(ResourceType.TEXTURES, path);\n if (inputStream != null) {\n result = MapTexture.fromStream(inputStream);\n }\n if (result == null) {\n if (!path.startsWith(\"#\")) {\n Logging.LOGGER_MAPDISPLAY.once(Level.WARNING, \"Failed to load texture: \" + path);\n }\n result = this.createPlaceholderTexture();\n }\n\n // Animated textures: when height is a multiple of width\n // Find the mcmeta. If one does not exist, fail.\n // Otherwise, load the first frame (wxw) area.\n int num_frames = result.getHeight() / result.getWidth();\n if (num_frames > 1 && ((num_frames * result.getWidth()) == result.getHeight())) {\n InputStream metaStream = openFileStream(ResourceType.TEXTURES_META, path);\n if (metaStream == null) {\n Logging.LOGGER_MAPDISPLAY.once(Level.WARNING, \"Failed to load animated texture (missing mcmeta): \" + path);\n result = this.createPlaceholderTexture();\n } else {\n result = result.getView(0, 0, result.getWidth(), result.getWidth()).clone();\n try {\n metaStream.close();\n } catch (IOException e) {}\n }\n }\n\n textureCache.put(path, result);\n }\n return result;\n }",
"public E3DVector2F getTextureCoordDetail1A(){\r\n\t\treturn vertices[0].getTextureCoordDetail1();\r\n\t}",
"private int\ngetNodeIndex(final SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int i;\n\n // Search from bottom up for node in path, since details are\n // usually examined near the bottom\n for (i = ( SoFullPath.cast ( path)).getLength() - 1; i >= 0; i--)\n if (path.getNode(i) == node)\n return i;\n\n//#ifdef DEBUG\n SoDebugError.post(\"SoPickedPoint::getNodeIndex\",\n \"Node \"+node+\" is not found in path\");\n//#endif /* DEBUG */\n\n return -1;\n}",
"public E3DVector2F getTextureCoordDetail1B(){\r\n\t\treturn vertices[1].getTextureCoordDetail1();\r\n\t}",
"@Override\r\n\tprotected ResourceLocation getEntityTexture(EntityAngel entity)\r\n {\r\n return ANGEL_TEXTURE;\r\n }",
"private int load(String path)\n {\n int pixels[] = null;\n int width = 0;\n int height = 0;\n\n try\n {\n BufferedImage image = ImageIO.read(new FileInputStream(\"res/\" + path));\n width = image.getWidth();\n height = image.getHeight();\n pixels = new int[width * height];\n image.getRGB(0, 0, width, height, pixels, 0, width);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n\n int[] data = new int[width * height];\n\n for (int i = 0; i < width * height; i++)\n {\n int a = (pixels[i] & 0xff000000) >> 24;\n int r = (pixels[i] & 0xff0000) >> 16;\n int g = (pixels[i] & 0xff00) >> 8;\n int b = (pixels[i] & 0xff);\n\n data[i] = a << 24 | b << 16 | g << 8 | r;\n }\n\n int result = glGenTextures();\n allTextures.add(result);\n\n glBindTexture(GL_TEXTURE_2D, result);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, BufferUtils.createIntBuffer(data));\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, 0);\n return result;\n }",
"void texImage2D(int target, int level, int resourceId, int border);",
"static public int loadTextureFromAsset ( String fileName )\n {\n int[] textureId = new int[1];\n Bitmap bitmap = null;\n InputStream is = null;\n\n try\n {\n is = mContext.getAssets().open ( fileName );\n }\n catch ( IOException ioe )\n {\n is = null;\n }\n\n if ( is == null )\n {\n return 0;\n }\n\n bitmap = BitmapFactory.decodeStream(is);\n\n GLES30.glGenTextures ( 1, textureId, 0 );\n GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, textureId[0]);\n\n GLUtils.texImage2D(GLES30.GL_TEXTURE_2D, 0, bitmap, 0);\n\n GLES30.glTexParameteri(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_MIN_FILTER, GLES30.GL_LINEAR);\n GLES30.glTexParameteri(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_MAG_FILTER, GLES30.GL_LINEAR);\n GLES30.glTexParameteri(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_WRAP_S, GLES30.GL_CLAMP_TO_EDGE);\n GLES30.glTexParameteri(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_WRAP_T, GLES30.GL_CLAMP_TO_EDGE);\n\n return textureId[0];\n }",
"public native void setTexturePath ( String texturePath );",
"private void\nsetUpDefaultCoordSpace(SoAction action)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoNode tail = action.getCurPathTail();\n//#ifdef DEBUG\n// if (!tail->isOfType(SoShape::getClassTypeId())) {\n// SoDebugError::post(\n// \"SoTextureCoordinateBundle::setUpDefaultCoordSpace\",\n// \"Tail of path is not a shape node!\");\n// }\n//#endif\n SoShape shape = (SoShape )tail;\n\n final SbBox3f box = new SbBox3f();\n final SbVec3f center = new SbVec3f();\n shape.computeBBox(action, box, center);\n\n final SbVec3f min = box.getMin();\n final SbVec3f boxSize = box.getMax().operator_minus(min);\n\n // Look for the largest two dimensions of the box\n if (boxSize.getValueRead()[0] > boxSize.getValueRead()[1] && boxSize.getValueRead()[0] > boxSize.getValueRead()[2]) {\n coordS = 0;\n coordT = boxSize.getValueRead()[1] > boxSize.getValueRead()[2] ? 1 : 2;\n }\n else if (boxSize.getValueRead()[1] > boxSize.getValueRead()[2]) {\n coordS = 1;\n coordT = boxSize.getValueRead()[0] > boxSize.getValueRead()[2] ? 0 : 2;\n }\n else {\n coordS = 2;\n coordT = boxSize.getValueRead()[0] > boxSize.getValueRead()[1] ? 0 : 1;\n }\n\n // Set up vectors for S and T coordinates. The length of the\n // vectors should be the size of the box in that dimension. Since\n // we want the texture to remain square, we use the same length\n // for both dimensions.\n float tmp = 1.0f / boxSize.getValueRead()[coordS];\n sVector.setValue(0.0f, 0.0f, 0.0f, -min.getValueRead()[coordS] * tmp);\n tVector.setValue(0.0f, 0.0f, 0.0f, -min.getValueRead()[coordT] * tmp);\n sVector.getValue()[coordS] = tVector.getValue()[coordT] = tmp;\n}",
"public TextureRegion loadTextureRegion(Texture texture, Rectangle rec);",
"public void onUpdateTextureCoordinates() {\n getVertexBufferObject().onUpdateTextureCoordinates(this);\n }",
"public TextureRegion getTextureRegion() {\n\t\treturn textureRegion;\n\t}",
"int GL_ACTIVE_TEXTURE();",
"String getLinkAt(int x, int y) {\n Component c = findComponentAt(x,y);\n if (c instanceof JPanel && c.getParent() instanceof ImagePanel) {\n return ((ImagePanel)c.getParent()).map;\n }\n return null;\n }",
"godot.wire.Wire.Transform2D getTransform2DValue();",
"public Vector2f getCoordinates() {\r\n return new Vector2f(tileColumn, tileRow);\r\n }",
"public int getTextureId() {\n return mTangoCameraTexture == null ? -1 : mTangoCameraTexture.getTextureId();\n }",
"private void\ngetMatrix( SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPath xfPath; // ptr\n\n // Construct a path from the root down to this node. Use the given\n // path if it's the same\n if (node == null || node == SoFullPath.cast(path).getTail())\n xfPath = path;\n\n else {\n int index = getNodeIndex(node);\n xfPath = path.copy(0, index + 1);\n xfPath.ref();\n }\n\n // Create an action instance if necessary, then apply it to the path\n if (matrixAction == null)\n matrixAction = new SoGetMatrixAction(vpRegion);\n matrixAction.apply(xfPath);\n\n if (xfPath != path)\n xfPath.unref();\n}",
"private static Buffer getSubImageTexCoords(int xOffset, int yOffset, int subImageWidth, int subImageHeight, int sourceWidth, int sourceHeight){\n\t\tfloat texX = (float)xOffset / (float)sourceWidth;\n\t\tfloat texY = (float)yOffset / (float)sourceHeight;\n\t\tfloat texWidth = (float)subImageWidth / (float)sourceWidth;\n\t\tfloat texHeight = (float)subImageHeight / (float)sourceHeight;\n\t\t\n\t\t// create texture coordinate array and fill a buffer (texture coordinates are used when rendering quad)\n\t\tfloat[] texCoords = {\n\t\t\t\ttexX, texY,\n\t\t\t\ttexX + texWidth, texY,\n\t\t\t\ttexX + texWidth, texY + texHeight,\n\t\t\t\t\n\t\t\t\ttexX + texWidth, texY + texHeight,\n\t\t\t\ttexX, texY + texHeight,\n\t\t\t\ttexX, texY\n\t\t};\n\t\tBuffer buff = com.badlogic.gdx.utils.BufferUtils.newByteBuffer(texCoords.length * 4);\n\t\tBufferUtils.copy(texCoords, buff, texCoords.length, 0);\n\t\tbuff.rewind();\n\t\t\n\t\treturn buff;\n\t}",
"public void computeTextureUVCoordinates()\n\t{\n\t\tthis.faceTextureUCoordinates = new float[faceCount][];\n\t\tthis.faceTextureVCoordinates = new float[faceCount][];\n\n\t\tfor (int i = 0; i < faceCount; i++)\n\t\t{\n\t\t\tint textureCoordinate;\n\t\t\tif (textureCoordinates == null)\n\t\t\t{\n\t\t\t\ttextureCoordinate = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextureCoordinate = textureCoordinates[i];\n\t\t\t}\n\n\t\t\tint textureIdx;\n\t\t\tif (faceTextures == null)\n\t\t\t{\n\t\t\t\ttextureIdx = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextureIdx = faceTextures[i] & 0xFFFF;\n\t\t\t}\n\n\t\t\tif (textureIdx != -1)\n\t\t\t{\n\t\t\t\tfloat[] u = new float[3];\n\t\t\t\tfloat[] v = new float[3];\n\n\t\t\t\tif (textureCoordinate == -1)\n\t\t\t\t{\n\t\t\t\t\tu[0] = 0.0F;\n\t\t\t\t\tv[0] = 1.0F;\n\n\t\t\t\t\tu[1] = 1.0F;\n\t\t\t\t\tv[1] = 1.0F;\n\n\t\t\t\t\tu[2] = 0.0F;\n\t\t\t\t\tv[2] = 0.0F;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttextureCoordinate &= 0xFF;\n\n\t\t\t\t\tbyte textureRenderType = 0;\n\t\t\t\t\tif (textureRenderTypes != null)\n\t\t\t\t\t{\n\t\t\t\t\t\ttextureRenderType = textureRenderTypes[textureCoordinate];\n\t\t\t\t\t}\n\n\t\t\t\t\tif (textureRenderType == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint faceVertexIdx1 = faceVertexIndices1[i];\n\t\t\t\t\t\tint faceVertexIdx2 = faceVertexIndices2[i];\n\t\t\t\t\t\tint faceVertexIdx3 = faceVertexIndices3[i];\n\n\t\t\t\t\t\tshort triangleVertexIdx1 = textureTriangleVertexIndices1[textureCoordinate];\n\t\t\t\t\t\tshort triangleVertexIdx2 = textureTriangleVertexIndices2[textureCoordinate];\n\t\t\t\t\t\tshort triangleVertexIdx3 = textureTriangleVertexIndices3[textureCoordinate];\n\n\t\t\t\t\t\tfloat triangleX = (float) vertexPositionsX[triangleVertexIdx1];\n\t\t\t\t\t\tfloat triangleY = (float) vertexPositionsY[triangleVertexIdx1];\n\t\t\t\t\t\tfloat triangleZ = (float) vertexPositionsZ[triangleVertexIdx1];\n\n\t\t\t\t\t\tfloat f_882_ = (float) vertexPositionsX[triangleVertexIdx2] - triangleX;\n\t\t\t\t\t\tfloat f_883_ = (float) vertexPositionsY[triangleVertexIdx2] - triangleY;\n\t\t\t\t\t\tfloat f_884_ = (float) vertexPositionsZ[triangleVertexIdx2] - triangleZ;\n\t\t\t\t\t\tfloat f_885_ = (float) vertexPositionsX[triangleVertexIdx3] - triangleX;\n\t\t\t\t\t\tfloat f_886_ = (float) vertexPositionsY[triangleVertexIdx3] - triangleY;\n\t\t\t\t\t\tfloat f_887_ = (float) vertexPositionsZ[triangleVertexIdx3] - triangleZ;\n\t\t\t\t\t\tfloat f_888_ = (float) vertexPositionsX[faceVertexIdx1] - triangleX;\n\t\t\t\t\t\tfloat f_889_ = (float) vertexPositionsY[faceVertexIdx1] - triangleY;\n\t\t\t\t\t\tfloat f_890_ = (float) vertexPositionsZ[faceVertexIdx1] - triangleZ;\n\t\t\t\t\t\tfloat f_891_ = (float) vertexPositionsX[faceVertexIdx2] - triangleX;\n\t\t\t\t\t\tfloat f_892_ = (float) vertexPositionsY[faceVertexIdx2] - triangleY;\n\t\t\t\t\t\tfloat f_893_ = (float) vertexPositionsZ[faceVertexIdx2] - triangleZ;\n\t\t\t\t\t\tfloat f_894_ = (float) vertexPositionsX[faceVertexIdx3] - triangleX;\n\t\t\t\t\t\tfloat f_895_ = (float) vertexPositionsY[faceVertexIdx3] - triangleY;\n\t\t\t\t\t\tfloat f_896_ = (float) vertexPositionsZ[faceVertexIdx3] - triangleZ;\n\n\t\t\t\t\t\tfloat f_897_ = f_883_ * f_887_ - f_884_ * f_886_;\n\t\t\t\t\t\tfloat f_898_ = f_884_ * f_885_ - f_882_ * f_887_;\n\t\t\t\t\t\tfloat f_899_ = f_882_ * f_886_ - f_883_ * f_885_;\n\t\t\t\t\t\tfloat f_900_ = f_886_ * f_899_ - f_887_ * f_898_;\n\t\t\t\t\t\tfloat f_901_ = f_887_ * f_897_ - f_885_ * f_899_;\n\t\t\t\t\t\tfloat f_902_ = f_885_ * f_898_ - f_886_ * f_897_;\n\t\t\t\t\t\tfloat f_903_ = 1.0F / (f_900_ * f_882_ + f_901_ * f_883_ + f_902_ * f_884_);\n\n\t\t\t\t\t\tu[0] = (f_900_ * f_888_ + f_901_ * f_889_ + f_902_ * f_890_) * f_903_;\n\t\t\t\t\t\tu[1] = (f_900_ * f_891_ + f_901_ * f_892_ + f_902_ * f_893_) * f_903_;\n\t\t\t\t\t\tu[2] = (f_900_ * f_894_ + f_901_ * f_895_ + f_902_ * f_896_) * f_903_;\n\n\t\t\t\t\t\tf_900_ = f_883_ * f_899_ - f_884_ * f_898_;\n\t\t\t\t\t\tf_901_ = f_884_ * f_897_ - f_882_ * f_899_;\n\t\t\t\t\t\tf_902_ = f_882_ * f_898_ - f_883_ * f_897_;\n\t\t\t\t\t\tf_903_ = 1.0F / (f_900_ * f_885_ + f_901_ * f_886_ + f_902_ * f_887_);\n\n\t\t\t\t\t\tv[0] = (f_900_ * f_888_ + f_901_ * f_889_ + f_902_ * f_890_) * f_903_;\n\t\t\t\t\t\tv[1] = (f_900_ * f_891_ + f_901_ * f_892_ + f_902_ * f_893_) * f_903_;\n\t\t\t\t\t\tv[2] = (f_900_ * f_894_ + f_901_ * f_895_ + f_902_ * f_896_) * f_903_;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.faceTextureUCoordinates[i] = u;\n\t\t\t\tthis.faceTextureVCoordinates[i] = v;\n\t\t\t}\n\t\t}\n\t}",
"public Texture getTexture() {\n\t\tPixmap pixmap = null;\n\t\t\n\t\ttry {\n\t\t\tpixmap = new Pixmap(responseBytes, 0, responseBytes.length);\n\t\t} catch (Exception e) {\n\t\t\tGdx.app.error(\"WWW\", \"Cannot get texture: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tfinal int originalWidth = pixmap.getWidth();\n\t\tfinal int originalHeight = pixmap.getHeight();\n\t\tint width = MathUtils.nextPowerOfTwo(pixmap.getWidth());\n\t\tint height = MathUtils.nextPowerOfTwo(pixmap.getHeight());\n\n\t\tint deltaX = (int) ((width - originalWidth) / 2f);\n\t\tint deltaY = (int) ((height - originalHeight) / 2f);\n\n\t\tfinal Pixmap potPixmap = new Pixmap(width, height, pixmap.getFormat());\n\t\tpotPixmap.drawPixmap(pixmap, deltaX, deltaY, 0, 0, pixmap.getWidth(), pixmap.getHeight());\n\t\tpixmap.dispose();\n\t\tTexture texture = new Texture(potPixmap);\n\t\tpotPixmap.dispose();\n\t\treturn texture;\n\t}",
"@Override\n public void loadTexture() {\n\n }",
"public long[] getWorldCoordinate(int screenX, int screenY);",
"public static float[] createTexCube(float x, float y, Block block) {\r\n float offset = 1/16f;\r\n switch(type.getID()) {\r\n case 0:\r\n switch(block.getID()) {\r\n case 0:\r\n return new float[] {\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 0, y + offset * 1,\r\n x + offset * 0, y + offset * 0,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 4, y + offset * 0,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 4, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 4, y + offset * 0,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 4, y + offset * 0,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1\r\n };\r\n case 1:\r\n return new float[] {\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1\r\n };\r\n case 2:\r\n return new float[] {\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12,\r\n x + offset * 14, y + offset * 13,\r\n x + offset * 13, y + offset * 13,\r\n x + offset * 13, y + offset * 12,\r\n x + offset * 14, y + offset * 12\r\n };\r\n case 3:\r\n return new float[] {\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 3, y + offset * 0\r\n };\r\n case 4:\r\n return new float[] {\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 1, y + offset * 0,\r\n x + offset * 2, y + offset * 0\r\n };\r\n case 5:\r\n return new float[] {\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1\r\n };\r\n }\r\n case 1:\r\n switch(block.getID()) {\r\n case 0:\r\n return new float[] {\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1,\r\n x + offset * 4, y + offset * 2,\r\n x + offset * 3, y + offset * 2,\r\n x + offset * 3, y + offset * 1,\r\n x + offset * 4, y + offset * 1\r\n };\r\n case 1:\r\n return new float[] {\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6,\r\n x + offset * 9, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 9, y + offset * 6\r\n };\r\n case 2:\r\n return new float[] {\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14,\r\n x + offset * 14, y + offset * 15,\r\n x + offset * 13, y + offset * 15,\r\n x + offset * 13, y + offset * 14,\r\n x + offset * 14, y + offset * 14\r\n };\r\n case 3:\r\n return new float[] {\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6,\r\n x + offset * 8, y + offset * 7,\r\n x + offset * 7, y + offset * 7,\r\n x + offset * 7, y + offset * 6,\r\n x + offset * 8, y + offset * 6\r\n };\r\n case 4:\r\n return new float[] {\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14,\r\n x + offset * 1, y + offset * 15,\r\n x + offset * 0, y + offset * 15,\r\n x + offset * 0, y + offset * 14,\r\n x + offset * 1, y + offset * 14\r\n };\r\n case 5:\r\n return new float[] {\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1,\r\n x + offset * 2, y + offset * 2,\r\n x + offset * 1, y + offset * 2,\r\n x + offset * 1, y + offset * 1,\r\n x + offset * 2, y + offset * 1\r\n };\r\n }\r\n }\r\n \r\n return new float[] {\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2,\r\n x + offset * 15, y + offset * 1,\r\n x + offset * 16, y + offset * 1,\r\n x + offset * 16, y + offset * 2,\r\n x + offset * 15, y + offset * 2\r\n };\r\n }",
"public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }",
"public T caseTexture(Texture object) {\r\n\t\treturn null;\r\n\t}",
"void glActiveTexture(int texture);",
"void glActiveTexture(int texture);",
"protected Node<T, V> getLocalVersionOfNode(Node<T, V> node) {\r\n\t\treturn ext2int.get(node.getPoint());\r\n\t}"
]
| [
"0.6479787",
"0.628046",
"0.6237698",
"0.62151414",
"0.592659",
"0.58917636",
"0.58863765",
"0.57686454",
"0.57119024",
"0.5689015",
"0.56778723",
"0.56588215",
"0.56566495",
"0.5645931",
"0.56430507",
"0.5641594",
"0.5617074",
"0.55736434",
"0.5571832",
"0.55610716",
"0.55560714",
"0.55533254",
"0.55526817",
"0.5486067",
"0.54829746",
"0.5472608",
"0.5462143",
"0.54203826",
"0.5416507",
"0.539278",
"0.53477794",
"0.53440815",
"0.53355795",
"0.53332955",
"0.53303224",
"0.53076184",
"0.5296198",
"0.52876717",
"0.5258772",
"0.52547044",
"0.5249471",
"0.52492195",
"0.5230509",
"0.52295357",
"0.5222843",
"0.5203835",
"0.51950395",
"0.51930684",
"0.51873994",
"0.51791704",
"0.5170195",
"0.51644343",
"0.5163594",
"0.515064",
"0.51389813",
"0.50900334",
"0.5087143",
"0.5061378",
"0.50520474",
"0.50518644",
"0.5050084",
"0.50381196",
"0.5036157",
"0.5034895",
"0.5022599",
"0.49986583",
"0.49893725",
"0.49839497",
"0.49719563",
"0.49609184",
"0.49593356",
"0.49265355",
"0.4914213",
"0.49068886",
"0.48723164",
"0.48332134",
"0.48085123",
"0.47912332",
"0.47856107",
"0.4778319",
"0.4766057",
"0.4742721",
"0.47123733",
"0.46972823",
"0.46678454",
"0.46422508",
"0.46285436",
"0.46266097",
"0.4622081",
"0.46187276",
"0.4617056",
"0.46095568",
"0.46009892",
"0.45942178",
"0.45933786",
"0.45835844",
"0.45812428",
"0.45764038",
"0.45764038",
"0.45758402"
]
| 0.79105014 | 0 |
many clients: server tracks synched maprevision and mapid for all maps! status=ACCEPTED: no contention status=MERGED: events from different clients were reordered if clientmaprevision is already used! change maprevision for some clients! 1 thread per mapid for sending updates (TODO: new message on freeplaneevents "MapUpdateDistributed") | @Override
public void handleTextMessage(WebSocketSession session, TextMessage message) throws IOException {
// logger.info("Server received text: {}", message.getPayload());
Message msg = messageEncoderDecoder.deserialize(message.getPayload(), Message.class);
logger.info("Message received: {}", msg.getClass().getSimpleName());
if (msg instanceof MapCreateRequested)
{
logger.info("MapCreateRequested received!");
maps.registerNewMap(new WebSocketClient(session), "initName");
}
else if (msg instanceof GenericMapUpdateRequested)
{
logger.info("MapUpdateRequested received!");
GenericMapUpdateRequested msgMapUpdateRequested = (GenericMapUpdateRequested)msg;
GenericUpdateBlockCompleted updateBlockCompleted = msgMapUpdateRequested.update();
maps.processMapUpdates(new WebSocketClient(session), updateBlockCompleted);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void entryUpdated(MapEvent mapEvent) {\n String domain = mapEvent.getKey().toString();\n for (Map.Entry<NodeID, Set<String>[]> entry : nodeSessions.entrySet()) {\n // Get components hosted in this node\n Set<String> nodeComponents = entry.getValue()[COMPONENT_CACHE_IDX];\n nodeComponents.remove(domain);\n }\n // Trace nodes hosting the component\n entryInserted(mapEvent);\n }",
"@Override\n public void notifyMapObservers() {\n for(MapObserver mapObserver : mapObservers){\n // needs all the renderInformation to calculate fogOfWar\n System.out.println(\"player map: \" +playerMap);\n mapObserver.update(this.playerNumber, playerMap.returnRenderInformation(), entities.returnUnitRenderInformation(), entities.returnStructureRenderInformation());\n entities.setMapObserver(mapObserver);\n }\n }",
"public int updateMap(NodePositionsSet myMap){\r\n\t\t/*check updated ID*/\r\n\t\tif(myID == 0){\r\n\t\t\t//core.Debug.p(\"must set myID in global map before updating\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tthis.myMap = myMap;\r\n\t\tsynced=-1;\r\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void updateClient() {\n\t\t\n\t}",
"@Override\n\t\tpublic void onMapStatusChange(MapStatus arg0) {\n\n\t\t}",
"@Override\n public void onMapReady(final GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.googleMap.getUiSettings().setZoomControlsEnabled(true);\n this.googleMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {\n @Override\n public void onCameraChange(CameraPosition cameraPosition) {\n boolean markersVisibility = false;\n if(cameraPosition.zoom>minZoomLevel){\n// googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(cameraPosition.target, minZoomLevel));\n markersVisibility = true;\n }\n for(Marker marker : mapMarkers){\n marker.setVisible(markersVisibility);\n }\n }\n });\n this.googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(25.0449695d, 121.5087531d), minZoomLevel));\n// this.mapItemClusterManager = new ClusterManager<>(this,this.googleMap);\n// this.googleMap.setOnCameraChangeListener(this.mapItemClusterManager);\n// this.googleMap.setOnMarkerClickListener(this.mapItemClusterManager);\n// this.googleMap.setOnInfoWindowClickListener(this.mapItemClusterManager);\n// this.mapItemClusterManager.setRenderer(new DefaultClusterRenderer<ClusterItem>(this,this.googleMap,this.mapItemClusterManager){\n// @Override\n// protected boolean shouldRenderAsCluster(Cluster<ClusterItem> cluster) {\n// return cluster.getSize()>20;\n// }\n// });\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n assetReadHandler.sendEmptyMessage(0);\n BufferedReader busInfoFileBufferReader = new BufferedReader(new InputStreamReader(getAssets().open(\"GetStopLocation.json\")));\n JSONObject busInfoRawJsonObject = new JSONObject(busInfoFileBufferReader.readLine());\n Message message = new Message();\n message.obj = busInfoRawJsonObject;\n assetReadHandler.sendEmptyMessage(1);\n busStateJJsonArrayHandler.sendMessage(message);\n } catch (JSONException e){\n Log.e(\"y3k\", e.getMessage());\n e.printStackTrace();\n } catch (IOException e1){\n Log.e(\"y3k\", e1.getMessage());\n e1.printStackTrace();\n }\n }\n }).start();\n\n// LatLng sydney = new LatLng(-34, 151);\n// googleMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// googleMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"public void run()\n {\n try\n {\n logger.debug(\"Starting server-side thread\");\n while (active)\n {\n List<Node> nodesFromQuery = null;\n if (clients.size() > 0)\n {\n nodesFromQuery = BeanLocator.getRouterService().findNodesWithNumberOfMessages(routerId);\n logger.debug(\"Number of nodesFromQuery for this routerId :\" + routerId + \" is:\" + nodesFromQuery.size());\n\n for (Node node : nodesFromQuery)\n {\n // if node exists in map\n if (this.nodes.get(node.getId()) != null)\n {\n logger.debug(\"Node already in map\");\n // check if something has been updated on the node - using hashcode\n\n logger.debug(this.nodes.get(node.getId()).getNumberOfMessagesHandled().toString());\n logger.debug(node.getNumberOfMessagesHandled().toString());\n boolean hasNumberOfMessagesChanged = !this.nodes.get(node.getId()).getNumberOfMessagesHandled().equals(node.getNumberOfMessagesHandled());\n if (hasNumberOfMessagesChanged)\n {\n logger.debug(\"Fire update event..\");\n // if something has changed fire update event\n this.nodes.put(node.getId(), node);\n fireNodeUpdatedEvent(node);\n } else\n {\n // nothing changed - ignore and log\n logger.info(\"Nothing changed on node :\" + node.getId());\n }\n } else\n {\n // else if node does not exist store the node in the map\n logger.debug(\"Storing node in map\");\n this.nodes.put(node.getId(), node);\n fireNodeUpdatedEvent(node);\n }\n }\n } else\n {\n logger.info(\"Thread running but no registered clients\");\n }\n Thread.sleep(CALLBACK_INTERVALL);\n }\n logger.debug(\"Stopping server-side thread. Clearing nodes and clients.\");\n clients.clear();\n nodes.clear();\n }\n catch (InterruptedException ex)\n {\n logger.warn(\"Thread interrupted.\", ex);\n }\n }",
"void onClientsUpdated(String[] clients);",
"@Override\n\tpublic void run(){\n\t\tConcurrentHashMap<String,String> destView;\n\t\tDouble numProbability = 0.0;\n\t\tDouble randomProbability = 0.0;\n\t\twhile(true){\t\n\t\t\tConcurrentHashMap<String, String> activeServerViewMap= ViewManager.getActiveServersList(ServerView.serverView);\n\t\t\tSystem.out.println(\"Active server view size \" + activeServerViewMap.size());\n\t\t\ttry {\n\t\t\t\tnumProbability = (double) (1.0/(activeServerViewMap.size()+1.0)); //plus 1 coz self has been excluded but we need this list\n\t\t\t\tRandom random = new Random();\n\t\t\t\trandomProbability = random.nextDouble();\n\t\t\t\tSystem.out.println(\"Num probab \" + numProbability);\n\t\t\t\tSystem.out.println(\"Random probab \" + randomProbability);\n\n\t\t\t\tSystem.out.println(\"View daemon running\");\n\t\t\t\tString[] arr = EnterServlet.serverID.toString().split(\"/\");\n\t\t\t\tString serverId = arr[arr.length-1];\n\t\t\t\tServerView.serverView.put(serverId,upState+DELIMITER_LEVEL2+System.currentTimeMillis());\n\n\t\t\t\tif (numProbability < randomProbability) {\n\t\t\t\t\t//updating self\n\t\t\t\t\tSystem.out.println(\"Should send exchange views now\");\n\t\t\t\t\tArrayList<String> serversList = new ArrayList<String>();\n\t\t\t\t\tfor(String key : ServerView.serverView.keySet()){\n\t\t\t\t\t\tserversList.add(key);\n\t\t\t\t\t}\n\t\t\t\t\tserversList.remove(serverId);\n\t\t\t\t\t/*java.util.Collections.shuffle((List<?>) serverSet);\n\t\t\t\t\tIterator<String> serverIterator = serverSet.iterator();\n\t\t\t\t\tString chosenServer = (String) serverIterator.next();*/\n\t\t\t\t\tCollections.shuffle(serversList);\n\t\t\t\t\tString chosenServer = serversList.get(0);\n\t\t\t\t\tSystem.out.println(\"Chosen server \" + chosenServer);\n\t\t\t\t\t\n\t\t\t\t\tdestView=new ConcurrentHashMap<String,String>(RPC.RPCClient.ExchangeViewClient(chosenServer, ServerView.serverView));\n\t\t\t\t\tConcurrentHashMap<String,String> mergedView=new ConcurrentHashMap<String,String>(ViewManager.mergeViews(ServerView.serverView,destView));\n\t\t\t\t\tViewManager.mergeViewWithSelf(mergedView);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Gossip with another server\");\n\t\t\t\t\t\n\t\t\t\t} else {\n//\t\t\t\t\t//call simpleDB\n\t\t\t\t\tSystem.out.println(\"Gossip with simple DB\");\n\t\t\t\t\tSimpleDbAccess.gossipWithSimpleDb();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tThread.sleep((GOSSIP_SECS/2) + new Random().nextInt(GOSSIP_SECS));\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"void updateMap(MapData map);",
"@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}",
"public void updateClient()\n\t{\n\t\t// TODO\n\t}",
"@Override\n\tpublic void onLockMap(boolean arg0) {\n\t\t\n\t}",
"public void update(Map<String, String> eventMap) {\r\n\r\n LOG.debug(\"MonitorEventSubscriber:\"+eventMap);\r\n }",
"void setMapChanged();",
"@Override\n public void run(){\n ServerConnection[] clients = new ServerConnection[]{client2, client3, client1};\n\n for( ServerConnection c : clients ) {\n if ( c != null ){\n if ( client3 == null ){\n c.send(\"Game has started with code:\" + gameID + \".\\n\" + \"Current players are \" +\n client1.getName() + \", \" + client2.getName());\n }\n else {\n c.send(\"Game has started with code:\" + gameID + \".\\n\" + \"Current players are \" +\n client1.getName() + \", \" + client2.getName() + \", \" + client3.getName());\n }\n c.setGameID(gameID);\n }\n }\n\n String[] gods = readChallengerMessage();\n\n for (int i=0; i<2 && currClient != client1; i++){\n currClient.send(Arrays.toString(gods) );\n clientMessage = readClientMessage();\n if (i == 0) {\n gameMessage.setGod2(clientMessage.getGod());\n gameMessage.setName2(clientMessage.getName());\n } else if (i == 1) {\n gameMessage.setGod3(clientMessage.getGod());\n gameMessage.setName3(clientMessage.getName());\n }\n List<String> list = new ArrayList<String>(Arrays.asList(gods));\n list.remove( clientMessage.getGod().name());\n gods = list.toArray(new String[0]);\n currClient.send(\"Choice confirmed\");\n updateCurrClient();\n }\n\n currClient.send(gods[0]);\n gameMessage.setGod1(God.valueOf(gods[0]));\n gameMessage.setName1(client1.getName());\n updateCurrClient();\n resetUpdate();\n gameMessage.notify(gameMessage);\n sendLiteGame();\n\n for( ServerConnection c : clients ) {\n resetUpdate();\n if ( c != null ) {\n while ( !updateModel) {\n sendToCurrClient(\"Placing workers\");\n clientMessage = readClientMessage();\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.setSpace2(clientMessage.getSpace2());\n gameMessage.notify(gameMessage);\n if (!updateModel) {\n sendLiteGame();\n }\n }\n updateCurrClient();\n liteGame.setPlayer(currClient.getName());\n sendLiteGame();\n }\n }\n\n\n while ( !endOfTheGame ) {\n sendToCurrClient(\"Next action\");\n clientMessage = readClientMessage();\n\n if ( \"Choose Worker\".equals(clientMessage.getAction()) ) {\n chooseWorker();\n }\n else if ( \"Charon Switch\".equals(clientMessage.getAction()) ) {\n charonSwitch();\n }\n else if ( \"Prometheus Build\".equals(clientMessage.getAction()) ) {\n build();\n }\n else if ( \"Move\".equals(clientMessage.getAction()) ) {\n move();\n }\n else if ( \"Build\".equals(clientMessage.getAction()) ) {\n build();\n }\n\n if ( \"End\".equals(clientMessage.getAction()) ) {\n gameMessage.resetGameMessage();\n updateCurrClient();\n liteGame.setCurrWorker(5,5);\n liteGame.setPlayer(currClient.getName());\n sendLiteGame();\n }\n else {\n sendLiteGame();\n if ( !endOfTheGame && !playerRemoved ) {\n if (!updateModel) {\n currClient.send(\"Invalid action\");\n } else currClient.send(\"Action performed\");\n }\n else playerRemoved = false;\n }\n }\n\n sendToCurrClient(\"You won the match.\");\n server.endMatch(gameID, null);\n }",
"public boolean shouldUpdateVersionOnMappingChange(){\r\n return this.lockOnChangeMode == LockOnChange.ALL;\r\n }",
"@Override\n\tpublic void onClientMessage(ClientThread client, String msg) {\n\t\ttry {\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" : \"+msg;\n\t\t\tfor (ClientThread ct : this.clients) {\n\t\t\t\tct.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}",
"public void handle(EntityPlayerMP player, GUIUpdatePacket message) {\n Container container = player.openContainer;\n if(container != null){\n if(container instanceof SyncableContainer){\n SyncableContainer synCont = (SyncableContainer) container;\n SyncableTileEntity tileSyncable = synCont.getSyncableTileEntity();\n tileSyncable.doSync(message.toSync);\n // We have adjusted the clientside values for at least one client. We need to send these updated\n // values to all players so that they can all see it\n TileEntity tile = (TileEntity) tileSyncable;\n for(EntityPlayerMP pl : player.getServerWorld().getPlayers(EntityPlayerMP.class, new Predicate<EntityPlayerMP>() {\n @Override\n public boolean apply(@Nullable EntityPlayerMP input) {\n if(Math.sqrt(input.getPosition().distanceSq(tile.getPos().getX(), tile.getPos().getY(), tile.getPos().getZ())) < 5D){\n if(input.openContainer != null){\n if(input.openContainer instanceof SyncableContainer){\n return true;\n }\n }\n }\n return false;\n }\n })){\n TonePacketHandler.sendTo(new PlayerGuiSyncMessage(message.toSync), pl);\n }\n }\n }\n }",
"@Override\r\n\tpublic void newsRepUpdate(Map<String, String> map) throws Exception {\n\t\tdao.newsRepUpdate(map);\r\n\t}",
"@Override public void onStreamUpdate(final Set<Long> updatedChunks) {\n }",
"void doLogicalPutVersioned(TCServerMap map, L lockID, Object key, Object value, long version);",
"@Override\n\t\t\tpublic void syncDateChange(Map<String, Set<DbxRecord>> mMap) {\n\t\t\t\tToast.makeText(this, \"Dropbox sync successed\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tif (attachFragment != null ) {\n\t\t\t\t\t OnSyncFinishedListener onSyncFinishedListener = (OnSyncFinishedListener)attachFragment;\n\t\t\t\t\t onSyncFinishedListener.onSyncFinished();\n\t\t\t\t\t \n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public static void sendCoordinatorMsg() {\n int numberOfRequestsNotSent = 0;\n for ( int key : ServerState.getInstance().getServers().keySet() ) {\n if ( key != ServerState.getInstance().getSelfID() ){\n Server destServer = ServerState.getInstance().getServers().get(key);\n\n try {\n MessageTransfer.sendServer(\n ServerMessage.getCoordinator( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent leader ID to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n numberOfRequestsNotSent += 1;\n System.out.println(\"WARN : Server s\"+destServer.getServerID()+\n \" has failed, it will not receive the leader\");\n }\n }\n }\n if( numberOfRequestsNotSent == ServerState.getInstance().getServers().size()-1 ) {\n // add self clients and chat rooms to leader state\n List<String> selfClients = ServerState.getInstance().getClientIdList();\n List<List<String>> selfRooms = ServerState.getInstance().getChatRoomList();\n\n for( String clientID : selfClients ) {\n LeaderState.getInstance().addClientLeaderUpdate( clientID );\n }\n\n for( List<String> chatRoom : selfRooms ) {\n LeaderState.getInstance().addApprovedRoom( chatRoom.get( 0 ),\n chatRoom.get( 1 ), Integer.parseInt(chatRoom.get( 2 )) );\n }\n\n leaderUpdateComplete = true;\n }\n }",
"public static void clientListUpdater() {\r\n\t\tclientList.clear();\r\n\t\tclientList.addAll(serverConnector.getAllClients());\r\n\t}",
"@Override\n public void onMapVersionSet() {\n\n }",
"public synchronized void incrementClients()\r\n\t{\r\n\t\tnumberOfClients++;\r\n\t}",
"public void updateClientBag()\n\t{\n\t\tfor(int i = 0; i < getBag().getItems().size(); i++)\n\t\t\tupdateClientBag(i);\n\t}",
"protected void addDataMap(DataMap map, DataMap currentMap) {\n\n ProjectController mediator = getProjectController();\n\n if (currentMap != null) {\n // merge with existing map... have to memorize map state before and after\n // to do the right events\n\n Collection<ObjEntity> originalOE = new ArrayList<>(currentMap.getObjEntities());\n Collection<DbEntity> originalDE = new ArrayList<>(currentMap.getDbEntities());\n Collection<QueryDescriptor> originalQueries = new ArrayList<>(currentMap.getQueryDescriptors());\n\n currentMap.mergeWithDataMap(map);\n map = currentMap;\n\n // postprocess changes\n Collection<ObjEntity> newOE = new ArrayList<>(currentMap.getObjEntities());\n Collection<DbEntity> newDE = new ArrayList<>(currentMap.getDbEntities());\n Collection<QueryDescriptor> newQueries = new ArrayList<>(currentMap.getQueryDescriptors());\n\n EntityEvent entityEvent = new EntityEvent(Application.getFrame(), null);\n QueryEvent queryEvent = new QueryEvent(Application.getFrame(), null);\n\n // 1. ObjEntities\n Collection<ObjEntity> addedOE = new ArrayList<>(newOE);\n addedOE.removeAll(originalOE);\n for (ObjEntity e : addedOE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.ADD);\n mediator.fireObjEntityEvent(entityEvent);\n }\n\n Collection<ObjEntity> removedOE = new ArrayList<>(originalOE);\n removedOE.removeAll(newOE);\n for (ObjEntity e : removedOE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.REMOVE);\n mediator.fireObjEntityEvent(entityEvent);\n }\n\n // 2. DbEntities\n Collection<DbEntity> addedDE = new ArrayList<>(newDE);\n addedDE.removeAll(originalDE);\n for(DbEntity e: addedDE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.ADD);\n mediator.fireDbEntityEvent(entityEvent);\n }\n\n Collection<DbEntity> removedDE = new ArrayList<>(originalDE);\n removedDE.removeAll(newDE);\n for(DbEntity e: removedDE) {\n entityEvent.setEntity(e);\n entityEvent.setId(MapEvent.REMOVE);\n mediator.fireDbEntityEvent(entityEvent);\n }\n\n // 3. queries\n Collection<QueryDescriptor> addedQueries = new ArrayList<>(newQueries);\n addedQueries.removeAll(originalQueries);\n for(QueryDescriptor q: addedQueries) {\n queryEvent.setQuery(q);\n queryEvent.setId(MapEvent.ADD);\n mediator.fireQueryEvent(queryEvent);\n }\n\n Collection<QueryDescriptor> removedQueries = new ArrayList<>(originalQueries);\n removedQueries.removeAll(newQueries);\n for(QueryDescriptor q: removedQueries) {\n queryEvent.setQuery(q);\n queryEvent.setId(MapEvent.REMOVE);\n mediator.fireQueryEvent(queryEvent);\n }\n\n mediator.fireDataMapDisplayEvent(new DataMapDisplayEvent(Application\n .getFrame(), map, (DataChannelDescriptor) mediator\n .getProject()\n .getRootNode(), mediator.getCurrentDataNode()));\n }\n else {\n // fix DataMap name, as there maybe a map with the same name already\n ConfigurationNode root = mediator.getProject().getRootNode();\n map.setName(NameBuilder\n .builder(map, root)\n .baseName(map.getName())\n .name());\n\n // side effect of this operation is that if a node was created, this DataMap\n // will be linked with it...\n mediator.addDataMap(Application.getFrame(), map);\n }\n }",
"@Override\n\tpublic int keyUpdate(Map<String, String> map) {\n\t\treturn mapper.keyUpdate(map);\n\t}",
"public boolean shouldUpdateVersionOnOwnedMappingChange(){\r\n return this.lockOnChangeMode == LockOnChange.OWNING;\r\n }",
"public abstract void clientStatusChanged(ClientManager client, Object object);",
"@Override\n\t\tpublic void onMapStatusChangeStart(MapStatus arg0) {\n\n\t\t}",
"private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}",
"@Override\n public void run() {\n // When we read from the input stream, broadcast it to all client observers to relay to the clients via the respective socket.\n try {\n Object dataFromClient = inputFromClient.readObject();\n while (dataFromClient != null) {\n setChanged();\n if(dataFromClient instanceof Integer){\n Integer clientID = (Integer) dataFromClient;\n // This client sent its client id to be added to or removed from registered users. So, send the updated list to all observers to push to ALL clients.\n if(registeredUsers.contains(clientID)){\n removeClient(clientID);\n clientData.remove(clientID);\n }else {\n registeredUsers.add((Integer)dataFromClient); // Add the new client's future ID to the list of registered users. ID sent\n }\n System.out.println(\"Server sending \" + registeredUsers);\n notifyObservers(registeredUsers);\n }else if (dataFromClient instanceof Group){\n System.out.println(\"Server received \" + dataFromClient);\n Group group = (Group)dataFromClient;\n if(group.getGroupID() == -1){ // Indicates group is asking for proper id.\n group.setGroupID(currentGroupNumber);\n System.out.println(\"Here ya go, number \" + currentGroupNumber);\n currentGroupNumber++;\n }\n notifyObservers(group);\n }else{\n notifyObservers(dataFromClient);\n }\n System.out.println(\"Server sent \" + dataFromClient);\n dataFromClient = inputFromClient.readObject();\n }\n } catch (IOException | ClassNotFoundException e) {\n System.out.println(\"Could not read data from client\");\n }\n }",
"public void process( Socket client, HashMap< String, BufferedOutputStream > map ) throws java.io.IOException {\n BufferedOutputStream toClient = null;\n BufferedReader fromClient = null;\n String userName = null;\n String message;\n byte[] buffer = new byte[ 10000 ];\n \n try { \n while( true ){\n fromClient = new BufferedReader( new InputStreamReader( client.getInputStream() ) );\n toClient = new BufferedOutputStream( client.getOutputStream() );\n message = fromClient.readLine() + \"\\r\\n\";\n //add new user to map and write the intro user statement to the clients\n if ( message.split(\" \") [ 0 ].equals( \"JOIN\" ) ){\n userName = message.split(\" \")[ 1 ];\n map.put( userName, toClient );\n //System.out.println(map);\n \n BufferedOutputStream users = null;\n for ( String user : map.keySet() ){\n \n users = map.get( user );\n users.write( ( userName + \"has Joined the chat. \\r\\n\" ).getBytes() );\n users.flush();\n } \n }\n //broadcast logoff message when user clicks exit from ChatScreen\n else if ( message.split(\" \")[ 0 ].equals( \"LOGOFF\" ) ){\n BufferedOutputStream users = null;\n for ( String user : map.keySet() ){\n users = map.get( user );\n users.write( ( userName + \"has left the chat. \\r\\n\" ).getBytes());\n users.flush();\n }\n }\n //broadcast a message from client\n else{\n System.out.println( \" Broadcast: \" + message );\n //truncated msg \n String msg = message.split( \" \",2 )[ 1 ];\n System.out.println( msg );\n BufferedOutputStream users = null;\n for ( String user : map.keySet() ){\n users = map.get( user );\n System.out.println( msg );\n if( msg != null ){\n users.write( msg.getBytes() );\n users.flush();\n }\n }\n }\n }\n \n }\n catch ( IOException ioe ) {\n System.err.println( ioe );\n }\n finally {\n // close streams and socket\n if ( toClient != null )\n toClient.close();\n }\n }",
"public void update(DroitsMembre client) {\n\n\t}",
"void main(String[] args) throws IOException {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Server().setVisible(true);\n }\n });\n\t\t\n\t\tServerSocket ss=new ServerSocket(1234);\n\t\tSocket s;\n<<<<<<< HEAD\n \t\t\n=======\n \n\t\t\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\twhile(true) {\n\t\t\ts=ss.accept();\n\t\t\tSystem.out.println(\"New client request received \"+s );\n\t\t\t\n\t\t\tDataInputStream dis=new DataInputStream(s.getInputStream());\n\t\t\tDataOutputStream dos=new DataOutputStream(s.getOutputStream());\n\t\t\tString name=dis.readUTF();\n\t\t\t\n\t\t\tSystem.out.println(\"creating a new handler for this client..\");\n\t\t\t\n\t\t\tClientHandler mtch=new ClientHandler(s,name,dis,dos);\n\t\t\t\n\t\t\tThread t=new Thread(mtch);\n \n //print to server textArea\n<<<<<<< HEAD\n //msg_area.setText(msg_area.getText().trim()+\" \"+name+ \" Added to Server\\n\");\n\t\t\t\n \t\t\tSystem.out.println(\"Adding this client to active client list\");\n \n Activity.setText(Activity.getText().trim()+\"\\n\"+\"New Client:\"+name+\" is Connected\");\n Active.setText(Active.getText().trim()+\"\\n\"+ClientCount+\".\"+name);\n=======\n msg_area.setText(msg_area.getText().trim()+\" \"+name+ \" Added to Server\\n\");\n\t\t\t\n \t\t\tSystem.out.println(\"Adding this client to active client list\");\n \n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n \n\t\t\t\n\t\t\tar.add(mtch);\n \n<<<<<<< HEAD\n // Client.Refresh(ar);\n \n \n=======\n Active.addElement(name);\n \n final JList<String> ActiveList = new JList<>(Active); \n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\t\t\n\t\t\tt.start();\n\t\t\t\n\t\t\tClientCount++;\n<<<<<<< HEAD\n \n \n=======\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t}\n\t}\n \n\t\n\n//}\n\n \n \n \n ///end my code\n \n \n \n \n// public static void main(String args[]) {\n// /* Set the Nimbus look and feel */\n// //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n// /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n// * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n// */\n// try {\n// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n// if (\"Nimbus\".equals(info.getName())) {\n// javax.swing.UIManager.setLookAndFeel(info.getClassName());\n// break;\n// }\n// }\n// } catch (ClassNotFoundException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (InstantiationException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (IllegalAccessException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// }\n// //</editor-fold>\n//\n// /* Create and display the form */\n// java.awt.EventQueue.invokeLater(new Runnable() {\n// public void run() {\n// new Server().setVisible(true);\n// }\n// });\n// }\n\n // Variables declaration - do not modify//GEN-BEGIN:variables\n<<<<<<< HEAD\n private static javax.swing.JTextArea Active;\n private static javax.swing.JTextArea Activity;\n private javax.swing.JScrollPane jScrollPane1;\n private javax.swing.JScrollPane jScrollPane2;\n private javax.swing.JTextField jTextField1;\n=======\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n private static javax.swing.JTextField msg_area;\n // End of variables declaration//GEN-END:variables\n}\n\n///client handler code start\nclass ClientHandler implements Runnable{\n\t \n\t Scanner scn=new Scanner(System.in);\n<<<<<<< HEAD\n\t String name;\n=======\n\t private String name;\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t private DataInputStream dis;\n\t private DataOutputStream dos;\n\t Socket s;\n\t boolean isloggedin;\n\t \n\t public ClientHandler(Socket s, String name,DataInputStream dis,DataOutputStream dos) {\n\t\t \n\t\t this.dis=dis;\n\t\t this.name=name;\n\t\t this.dos=dos;\n\t\t this.isloggedin=true;\n \n\t\t \n\t }\n\n\t@Override\n\tpublic void run() {\n\t\tString received;\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\treceived=dis.readUTF();\n \n\t\t\t\tSystem.out.println(received+\" server\");\n\t\t\t\tif(received.contentEquals(\"logout\")) {\n\t\t\t\t\tthis.isloggedin=false;\n\t\t\t\t\tthis.dis.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//break message to message vs recepient\n\t\t\t\tStringTokenizer st=new StringTokenizer(received,\"#\");\n\t\t\t\tString MsgToSend=st.nextToken();\n\t\t\t\tString recepient=st.nextToken();\n\t\t\t\t\n\t\t\t\t//search recepient in active list\n\t\t\t\t\n\t\t\t\tfor(ClientHandler mc:Server.ar) {\n\t\t\t\t\tif(mc.name.contentEquals(recepient) && mc.isloggedin==true) {\n\t\t\t\t\t\tmc.dos.writeUTF(this.name+ \" : \" + MsgToSend+'\\n');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \n \n \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tthis.dis.close();\n\t\t\tthis.dos.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n\t\n}\n\n///client handler code end",
"public int addMap(GlobalMap otherMap){\r\n\t\tif(otherMap.getMap().size() < 3) return -1;\r\n\t\t/*map exists, but i need to re-mix it*/\r\n\t\tif(this.getCT() > (SimClock.getTime() - TIMEOUT)){\r\n\t\t\tthis.mapExists = false;\r\n\t\t}\r\n\t\tif(mapExists && synced == -1){\r\n\t\t\tlocalmix();\r\n\t\t}\t\r\n\t\t/*if i cant make a map yet, i use the one i got*/\r\n\t\telse if(!mapExists){\r\n\t\t\tint c = makeGlobal();\r\n\t\t\tif(c < 0){\r\n\t\t\t\tif(otherMap.getCT() > (SimClock.getTime() - TIMEOUT)){\r\n\t\t\t\t\tthis.globalMap = otherMap.globalMap;\r\n\t\t\t\t\tthis.myMapNodes = otherMap.myMapNodes;\r\n\t\t\t\t\tthis.synced = 1;\r\n\t\t\t\t\tthis.mapExists = true;\r\n\t\t\t\t\tthis.ref_id = otherMap.ref_id;\r\n\t\t\t\t\tthis.ref_c = otherMap.ref_c;\r\n\t\t\t\t\t//core.Debug.p(\"a\");\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tthis.synced = 0;\r\n\t\t\t\tthis.mapExists = true;\r\n\t\t\t\t//core.Debug.p(\"b\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*if i have an updated map, just join them preferring the one that used newer data*/\r\n\t\tif(mapExists && (synced == 0 || synced == 1)){\r\n\t\t\t//core.Debug.p(\"nene\");\r\n\t\t\tboolean newer = this.updateTime < otherMap.updateTime ? true : false;\r\n\t\t\t//have to be careful with shifted values!\r\n\t\t\tCoord c = new Coord(this.ref_c.getX() - otherMap.ref_c.getX(), this.ref_c.getY() - otherMap.ref_c.getY());\r\n\t\t\tMap<Integer, Coord> othershifted = shiftMap(otherMap.getMap(), c);\r\n\t\t\t\r\n\t\t\tfor(Map.Entry<Integer, Coord> node : othershifted.entrySet()){\r\n\t\t\t\tif(globalMap.containsKey(node.getKey())){\r\n\t\t\t\t\tif(newer) globalMap.replace(node.getKey(), node.getValue());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tglobalMap.put(node.getKey(), node.getValue());\r\n\t\t\t\t\tmyMapNodes.add(node.getKey());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn myMapNodes.size();\r\n\t\t}\r\n\t\telse return -1;\r\n\t}",
"private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }",
"@Override\n public boolean build(Match m, ClientHandler ch, Server server) {\n int wID=2;\n Player p = m.getPlayer(ch.getName());\n if(p.getWorker(0).getMoved()) wID = 0;\n if(p.getWorker(1).getMoved()) wID = 1;\n ArrayList<Coordinate> coordinates = whereCanBuild(m, ch, wID);\n server.write(ch, \"serviceMessage\", \"MSGE-Build: \\n\");\n if(coordinates.size()!=0){\n Coordinate c = null;\n server.write(ch, \"serviceMessage\", \"LIST-\"+printCoordinates(coordinates));\n server.write(ch, \"interactionServer\", \"TURN-Where you want to build?\\n\");\n int id;\n while(true){\n try{\n String msg = server.read(ch);\n if(msg == null){\n for(ClientHandler chl : server.getClientHandlers()){\n server.write(chl, \"serviceMessage\", \"WINM-Player disconnected\\n\");\n }\n ch.resetConnected();\n ch.closeConnection();\n return false;\n }else{\n id = Integer.parseInt(msg);\n }\n if(id<0 || id>=coordinates.size()){\n server.write(ch, \"serviceMessage\", \"MSGE-Invalid input\\n\");\n server.write(ch, \"interactionServer\", \"TURN-Try another index: \");\n continue;\n }\n break;\n } catch (NumberFormatException e){\n server.write(ch, \"serviceMessage\", \"MSGE-Invalid input\\n\");\n server.write(ch, \"interactionServer\", \"TURN-Try another index: \");\n }\n }\n c = coordinates.get(id);\n if(c.equals(p.getWorker(wID).getPosition()))\n server.write(ch, \"serviceMessage\", \"MSGE-You're using Zeus Power!\\n\");\n m.updateBuilding(c);\n m.getBoard()[c.getX()][c.getY()].setLevelledUp(true);\n p.getWorker(wID).changeBuilt(true);\n return true;\n }else{\n return false;\n }\n\n }",
"public void incrementClients() {\n\t\tconnectedClients.incrementAndGet();\n\t}",
"@Override\n protected void onProgressUpdate(ResponseInfo... responseInfo) {\n \tif (responseInfo[0].responseCode == 200 | responseInfo[0].responseCode == 201) {\n \t\t//Update the event display - first check for any new devices added\n \tMeshDisplayControllerApplictaion appObject = (MeshDisplayControllerApplictaion)LiveMeshEventControllerActivity.this.getApplicationContext();\n \tMeshDisplayControllerEngine meshDisplayEngine = appObject.getAppMeshDisplayControllerEngine();\n \t\n \t\ttry {\n \t\t\t//First read the JSON response into a new HashMap\n \t\t\t//For large displays this is not particularly efficient and the server should respond with \n \t\t\t//added and deleted clients only, with a full refresh only done periodically. For this proof \n \t\t\t//of concept this is fine.\n \t\t\tJSONArray clientList = responseInfo[0].clientList;\n \t\t\tHashMap<String, MeshDisplayClient> receivedClientsMap = new HashMap<String, MeshDisplayClient>();\n \t\t\tfor (int i = 0; i< clientList.length(); i++) {\n \t\t\t\tMeshDisplayClient receivedClient = new MeshDisplayClient();\n \t\t\t\treceivedClient.id = clientList.getJSONObject(i).getString(\"client_id\").toString();\n \t\t\t\treceivedClient.textToDisplay = clientList.getJSONObject(i).getString(\"client_text\").toString();\n \t\t\t\treceivedClientsMap.put(receivedClient.id, receivedClient);\n \t\t\t}\n \t\t\t\n \t\t\t//Check for anything that is in the Map from the server but not in the engine Map here - this is a \n \t\t\t//new client added\n \t\t\tSet <String> addedClients = new HashSet<String>(receivedClientsMap.keySet());\n \t\t\taddedClients.removeAll(meshDisplayEngine.clientsMap.keySet());\n \t\t\t\n \t\t\tfor (String clientIDToAdd : addedClients) {\n \t\t\t\t//Add this client from the current engine client Map\n \t\t\t\tMeshDisplayClient newClient = receivedClientsMap.get(clientIDToAdd);\n \t\t\t\tmeshDisplayEngine.clientsMap.put(clientIDToAdd, receivedClientsMap.get(clientIDToAdd));\n \t\t\t\t\n \t\t\t\t//Add this client to the display\n \t\t\t\tdisplayNewClient(newClient);\n \t\t\t}\n \t\t\t\n \t\t\t//Now check for anything that is in the current engine clientMap but not the received clientMap\n \t\t\tSet <String> deletedClients = new HashSet<String>(meshDisplayEngine.clientsMap.keySet());\n \t\t\tdeletedClients.removeAll(receivedClientsMap.keySet());\n \t\t\t\n \t\t\tfor (String clientIDToRemove : deletedClients) {\n \t\t\t\t//Remove this client from the current engine client Map\n \t\t\t\tmeshDisplayEngine.clientsMap.remove(clientIDToRemove);\n \t\t\t\t\n \t\t\t\t//Remove this client from the display\n \t\t\t\tremoveClientFromDisplay(clientIDToRemove);\n \t\t\t}\n\t \t\t\n \t\t} catch (JSONException e) {\n\t\t\t\t\t//An Error occurred decoding the JSON\n\t\t\t\t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception parsing JSON response\");\n\t\t\t\t\te.printStackTrace();\n \t\t}\n\n \t} else {\n \t\t//Log an issue\n \t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\",\"-> onProgressUpdate: unexpecetd resposne code: \" + responseInfo[0].responseCode);\n \t}\n }",
"public List<MapBean> setGameServerData(List serverIds, String service, MapBean request) {\n/* 114 */ if (serverIds.isEmpty()) return List$.MODULE$.empty(); \n/* 115 */ long id = System.currentTimeMillis();\n/* 116 */ (new scala.Tuple2[4])[0] = Predef$ArrowAssoc$.MODULE$.$minus$greater$extension(Predef$.MODULE$.ArrowAssoc(\"id\"), BoxesRunTime.boxToLong(id)); (new scala.Tuple2[4])[1] = Predef$ArrowAssoc$.MODULE$.$minus$greater$extension(Predef$.MODULE$.ArrowAssoc(\"sign\"), SignUtils$.MODULE$.makeSign(id)); (new scala.Tuple2[4])[2] = Predef$ArrowAssoc$.MODULE$.$minus$greater$extension(Predef$.MODULE$.ArrowAssoc(\"service\"), service); (new scala.Tuple2[4])[3] = Predef$ArrowAssoc$.MODULE$.$minus$greater$extension(Predef$.MODULE$.ArrowAssoc(\"data\"), request); MapBean params = MapBean$.MODULE$.apply((Seq)Predef$.MODULE$.wrapRefArray((Object[])new scala.Tuple2[4]));\n/* */ \n/* 118 */ ObjectRef fs = ObjectRef.create(List$.MODULE$.empty());\n/* 119 */ serverIds.foreach((Function1)new AbstractController$$anonfun$setGameServerData$1(this, params, fs));\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 146 */ return (List<MapBean>)((List)fs.elem).map((Function1)new AbstractController$$anonfun$setGameServerData$2(this), List$.MODULE$.canBuildFrom()); }",
"@Override\n\tpublic void update()\n\t{\n\t\tfor (int i = 0; i < 16 && !processQueue.isEmpty(); i++)\n\t\t{\n\t\t\tProcessEntry entry = processQueue.remove();\n\t\t\tprocessPacket(entry.packet, entry.sourceClient);\n\t\t}\n\t\t\n\t\t// Flush pending packets\n\t\tclientChannels.flush();\n\t}",
"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 void DispatchUpdates()\n {\n //Dispatch the updates.\n bBufferingUpdates = false;\n \n for(LaunchEntity entity : DispatchList)\n {\n for(LaunchServerSession session : Sessions.values())\n {\n if(session.CanReceiveUpdates())\n {\n session.SendEntity(entity);\n }\n }\n }\n }",
"@Override\n\tpublic void checkUpdateClient() {\n\t}",
"@Override\n\tpublic void setMap(ServerMap map, Direction dir)\n\t{\n\t\tchar direction = 'n';\n\t\tif(dir != null)\n\t\t\tswitch(dir)\n\t\t\t{\n\t\t\t\tcase Up:\n\t\t\t\t\tdirection = 'u';\n\t\t\t\t\tbreak;\n\t\t\t\tcase Down:\n\t\t\t\t\tdirection = 'd';\n\t\t\t\t\tbreak;\n\t\t\t\tcase Left:\n\t\t\t\t\tdirection = 'l';\n\t\t\t\t\tbreak;\n\t\t\t\tcase Right:\n\t\t\t\t\tdirection = 'r';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\tsuper.setMap(map, dir);\n\t\tclearRequests();\n\t\t/* Send the map switch packet to the client. */\n\t\tServerMessage message = new ServerMessage(ClientPacket.SET_MAP_AND_WEATHER);\n\t\tmessage.addString(java.lang.Character.toString(direction));\n\t\tmessage.addInt(map.getX());\n\t\tmessage.addInt(map.getY());\n\t\tmessage.addInt(map.isWeatherForced() ? map.getWeatherId() : TimeService.getWeatherId());\n\t\tgetSession().Send(message);\n\t\tCharacter c;\n\t\tString packet = \"\";\n\t\t/* Send all player information to the client. */\n\t\tfor(Player p : map.getPlayers().values())\n\t\t{\n\t\t\tc = p;\n\t\t\tpacket = packet + c.getName() + \",\" + c.getId() + \",\" + c.getSprite() + \",\" + c.getX() + \",\" + c.getY() + \",\"\n\t\t\t\t\t+ (c.getFacing() == Direction.Down ? \"D\" : c.getFacing() == Direction.Up ? \"U\" : c.getFacing() == Direction.Left ? \"L\" : \"R\") + \",\" + p.getAdminLevel() + \",\";\n\t\t}\n\t\t/* Send all npc information to the client. */\n\t\tfor(int i = 0; i < map.getNpcs().size(); i++)\n\t\t{\n\t\t\tc = map.getNpcs().get(i);\n\t\t\tif(!c.getName().equalsIgnoreCase(\"NULL\"))\n\t\t\t\t/* Send no name to indicate NPC */\n\t\t\t\tpacket = packet + \"!NPC!,\" + c.getId() + \",\" + c.getSprite() + \",\" + c.getX() + \",\" + c.getY() + \",\"\n\t\t\t\t\t\t+ (c.getFacing() == Direction.Down ? \"D\" : c.getFacing() == Direction.Up ? \"U\" : c.getFacing() == Direction.Left ? \"L\" : \"R\") + \",0,\";\n\t\t}\n\t\t/* Only send the packet if there were players on the map */\n\t\t/* TODO: Clean this stuff up? */\n\t\tif(packet.length() > 2)\n\t\t{\n\t\t\tServerMessage initPlayers = new ServerMessage(ClientPacket.INIT_PLAYERS);\n\t\t\tinitPlayers.addString(packet);\n\t\t\tgetSession().Send(initPlayers);\n\t\t}\n\t}",
"public void updateClientParty()\n\t{\n\t\tfor(int i = 0; i < getParty().length; i++)\n\t\t\tupdateClientParty(i);\n\t}",
"@InvokeEvent\n public void onServerJoin(ServerJoinEvent event) {\n if (Configuration.INSTANCE.showUpdateMessages() && !isLatestVersion) {\n // Run the update message method.\n sendUpdateMessage();\n }\n\n }",
"@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void updateServerSecurityMap() {\n \t\tif (isUpdating)\n \t\t\treturn;\n \t\tisUpdating = true;\n \t\tAsyncCallback<Map<String, String>> x = new AsyncCallback<Map<String, String>>() {\n \n \t\t\t@Override\n \t\t\tpublic void onSuccess(Map<String, String> result) {\n \t\t\t\tserverFeatures = new HashSet<String>();\n \t\t\t\tfor (Entry<String, String> entry : result.entrySet()) {\n \t\t\t\t\tserverFeatures.add(entry.getKey());\n \t\t\t\t\taddFeature(entry.getKey(), entry.getValue());\n \t\t\t\t}\n \t\t\t\tcancelCallsWithUnsupportedFeatures();\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void onFailure(Throwable caught) {\n \t\t\t\tGWT.log(\"RPC-The server does not fully support the kkProtocol\",\n \t\t\t\t\t\tcaught);\n \t\t\t\tsocket.close();\n \t\t\t}\n \t\t};\n \t\t/*\n \t\t * To remove a circular dependency we make the call directly here\n \t\t */\n \t\texecute(x, new Class<?>[] { Map.class, String.class, String.class },\n \t\t\t\tcom.kk_electronic.kkportal.core.rpc.RemoteServer.class,\n \t\t\t\t\"getSecurityMap\");\n \t}",
"public void sendMap ( MapView map ) {\n\t\texecute ( handle -> handle.sendMap ( map ) );\n\t}",
"public void receivedUpdateFromServer();",
"public SDMasterHeartbeats(HashMap<Integer, SDSlave> map){\n responderList = new HashMap<Integer, Boolean>();\n slaveMap = new HashMap<String, Integer>();\n slaveList = map;\n\n\n }",
"@Override\r\n\tpublic void entryAdded(EntryEvent<Object, Object> event) {\r\n\t\t//\r\n\t\ttry {\r\n\t\t\ttopologyMap = readTopologyMap();\r\n\t\t\t\r\n\t\t\tsetOwnDataNodeGroup();\r\n\t\t\t\r\n\t\t} catch (ExceptionHazelcastServerAlreadyClosed | ExceptionHazelcastIMapNotFound | ExceptionHazelcastServerConfigError e) {\r\n\t\t\tlogger.error(\"[MainNodeManager].entryAdded : error = \" + e);\r\n\t\t}\r\n\t}",
"public void notifyMapLoaded();",
"public boolean updateClntMapInfo (java.lang.String opr_cde, \n java.lang.String clnt_agt_flg, \n java.lang.String new_user_id, \n java.lang.String new_clnt_cde, \n java.lang.String main_flg, \n java.lang.String old_user_id, \n java.lang.String old_clnt_cde) throws com.mcip.orb.CoException {\n return this._delegate.updateClntMapInfo(opr_cde, clnt_agt_flg, new_user_id, \n new_clnt_cde, main_flg, old_user_id, \n old_clnt_cde);\n }",
"public static void main(String[] args) throws IOException {\r\n\t\tint chunkCtr = 0;\r\n\t\t// args[1] -> Monitor IP\r\n\t\t// args[0] -> communication port with the individual clients\r\n\t\tserverSocket = new ServerSocket(Integer.parseInt(args[0]));\r\n\t\tSystem.out.println(\"Master Server \" + Inet4Address.getLocalHost().getHostAddress() + \" Started\");\r\n\t\tFile file = new File(\"Namespace.csv\");\r\n\r\n\t\t// monitor Communication\r\n\t\ttry {\r\n\t\t\tSocket monitorSocket = new Socket(args[1], 7777);\r\n\t\t\tDataInputStream in = new DataInputStream(monitorSocket.getInputStream());\r\n\t\t\tDataOutputStream out = new DataOutputStream(monitorSocket.getOutputStream());\r\n\t\t\tSystem.out.println(Inet4Address.getLocalHost().getHostAddress() + \" \" + args[0]);\r\n\t\t\tout.writeUTF(Inet4Address.getLocalHost().getHostAddress() + \" \" + args[0]);\r\n\t\t\tThread monitorthread = new Thread() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(3000);\r\n\t\t\t\t\t\t\tout.writeUTF(clientCtr + \"\");\r\n\t\t\t\t\t\t} catch (IOException | InterruptedException e) {\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\r\n\t\t\tmonitorthread.start();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Unable to Connect to Monitor\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\tPortMap.put(1, 9876);\r\n\t\tPortMap.put(2, 8765);\r\n\t\tPortMap.put(3, 7654);\r\n\t\tPortMap.put(4, 6543);\r\n\t\tPortMap.put(5, 5439);\r\n\t\tPortMap.put(6, 4398);\r\n\r\n\t\t// Chunk Interactions\r\n\t\tif (!file.exists()) {\r\n\t\t\tServerSocket chunkServerSocket;\r\n\t\t\tSocket chunkSocket = new Socket();\r\n\t\t\t// args[1] -> communication port with the individual chunks\r\n\t\t\tchunkServerSocket = new ServerSocket(5000);\r\n\t\t\tSystem.out.println(\"Waiting for chunk servers to proceed!\");\r\n\t\t\tFileOutputStream fout = new FileOutputStream(file);\r\n\t\t\twhile (chunkCtr < 6) {\r\n\t\t\t\tchunkCtr++;\r\n\t\t\t\tchunkSocket = chunkServerSocket.accept();\r\n\t\t\t\tSystem.out.println(\" Connected to: \" + chunkSocket.getInetAddress().getLocalHost().getHostAddress()\r\n\t\t\t\t\t\t+ \" Chunk Name: Chunk\" + chunkCtr);\r\n\t\t\t\tfout.write((chunkCtr + \",\" + chunkSocket.getInetAddress().getLocalHost().getHostAddress()).getBytes());\r\n\t\t\t\tfout.write(\"\\n\".getBytes());\r\n\t\t\t\tNamespaceMap.put(chunkCtr, chunkSocket.getInetAddress().getLocalHost().getHostAddress());\r\n\r\n\t\t\t}\r\n\t\t\tchunkSocket.close();\r\n\t\t\tchunkServerSocket.close();\r\n\r\n\t\t} else {\r\n\t\t\tBufferedReader buffReader = new BufferedReader(new FileReader(file));\r\n\t\t\tString str;\r\n\t\t\twhile ((str = buffReader.readLine()) != null) {\r\n\t\t\t\tNamespaceMap.put(Integer.parseInt(str.substring(0, 1)), (str.substring(2, str.length() - 1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\tgenerateReplica();\r\n\r\n\t\tSystem.out.println(PortMap);\r\n\t\tSystem.out.println(NamespaceMap);\r\n\t\tSystem.out.println(ReplicationMap);\r\n\t\tSystem.out.println(\"Ready to receive request from Client\");\r\n\r\n\t\t// Client Communication\r\n\t\twhile (true) {\r\n\t\t\tclientSocket = serverSocket.accept();\r\n\t\t\tThread clientThread = new Thread() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSystem.out.println(\"Interacting with Client: \"\r\n\t\t\t\t\t\t\t\t+ clientSocket.getInetAddress().getLocalHost().getHostAddress());\r\n\t\t\t\t\t\tclientCtr++;\r\n\t\t\t\t\t\tDataInputStream in = new DataInputStream(clientSocket.getInputStream());\r\n\t\t\t\t\t\tDataOutputStream out = new DataOutputStream(clientSocket.getOutputStream());\r\n\t\t\t\t\t\tString[] input = new String[2];\r\n\t\t\t\t\t\tinput = (in.readUTF()).split(\" \");\r\n\t\t\t\t\t\tSystem.out.println(\"Client: \" + input[0] + \" \" + input[1]);\r\n\t\t\t\t\t\tFile file = new File(input[0] + \"complete.txt\");\r\n\t\t\t\t\t\tchunkNum = (int) Math.ceil(((Integer.parseInt(input[1])) / 800)) + 1;\r\n\t\t\t\t\t\tif (!file.exists()) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Generating Complete file and Distributing it to the chunks\");\r\n\t\t\t\t\t\t\tString fl = runCrawler(input[0]);\r\n\t\t\t\t\t\t\tDataInputStream chunkIn;\r\n\t\t\t\t\t\t\tDataOutputStream chunkOut;\r\n\t\t\t\t\t\t\tFileInputStream fin = new FileInputStream(new File(fl));\r\n\t\t\t\t\t\t\tStringBuffer strBuff1 = new StringBuffer();\r\n\t\t\t\t\t\t\tStringBuffer strBuff2 = new StringBuffer();\r\n\t\t\t\t\t\t\tStringBuffer strBuff3 = new StringBuffer();\r\n\t\t\t\t\t\t\tStringBuffer strBuff4 = new StringBuffer();\r\n\t\t\t\t\t\t\tStringBuffer strBuff5 = new StringBuffer();\r\n\t\t\t\t\t\t\tStringBuffer strBuff6 = new StringBuffer();\r\n\t\t\t\t\t\t\tint lineCtr = 0;\r\n\r\n\t\t\t\t\t\t\twhile (lineCtr < 4800) {\r\n\t\t\t\t\t\t\t\tlineCtr++;\r\n\t\t\t\t\t\t\t\tif (lineCtr <= 800)\r\n\t\t\t\t\t\t\t\t\tstrBuff1.append((char) fin.read());\r\n\t\t\t\t\t\t\t\telse if (lineCtr > 800 && lineCtr <= 1600)\r\n\t\t\t\t\t\t\t\t\tstrBuff2.append((char) fin.read());\r\n\t\t\t\t\t\t\t\telse if (lineCtr > 1600 && lineCtr <= 2400)\r\n\t\t\t\t\t\t\t\t\tstrBuff3.append((char) fin.read());\r\n\t\t\t\t\t\t\t\telse if (lineCtr > 2400 && lineCtr <= 3200)\r\n\t\t\t\t\t\t\t\t\tstrBuff4.append((char) fin.read());\r\n\t\t\t\t\t\t\t\telse if (lineCtr > 3200 && lineCtr <= 4000)\r\n\t\t\t\t\t\t\t\t\tstrBuff5.append((char) fin.read());\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tstrBuff6.append((char) fin.read());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// chunk 1\r\n\r\n\t\t\t\t\t\t\tSocket chunkSocket = new Socket(NamespaceMap.get(1), 3456);\r\n\t\t\t\t\t\t\tchunkIn = new DataInputStream(chunkSocket.getInputStream());\r\n\t\t\t\t\t\t\tchunkOut = new DataOutputStream(chunkSocket.getOutputStream());\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"1\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff1.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"2Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff2.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"3Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff3.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\t// chunk 2\r\n\t\t\t\t\t\t\tchunkSocket = new Socket(NamespaceMap.get(2), 4567);\r\n\t\t\t\t\t\t\tchunkIn = new DataInputStream(chunkSocket.getInputStream());\r\n\t\t\t\t\t\t\tchunkOut = new DataOutputStream(chunkSocket.getOutputStream());\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"2\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff2.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"3Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff3.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"4Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff4.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\t// chunk 3\r\n\t\t\t\t\t\t\tchunkSocket = new Socket(NamespaceMap.get(3), 5678);\r\n\t\t\t\t\t\t\tchunkIn = new DataInputStream(chunkSocket.getInputStream());\r\n\t\t\t\t\t\t\tchunkOut = new DataOutputStream(chunkSocket.getOutputStream());\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"3\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff3.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"4Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff4.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"5Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff5.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\t// chunk 4\r\n\t\t\t\t\t\t\tchunkSocket = new Socket(NamespaceMap.get(4), 6789);\r\n\t\t\t\t\t\t\tchunkIn = new DataInputStream(chunkSocket.getInputStream());\r\n\t\t\t\t\t\t\tchunkOut = new DataOutputStream(chunkSocket.getOutputStream());\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"4\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff4.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"5Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff5.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"6Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff6.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\t// chunk 5\r\n\t\t\t\t\t\t\tchunkSocket = new Socket(NamespaceMap.get(5), 7893);\r\n\t\t\t\t\t\t\tchunkIn = new DataInputStream(chunkSocket.getInputStream());\r\n\t\t\t\t\t\t\tchunkOut = new DataOutputStream(chunkSocket.getOutputStream());\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"5\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff5.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"1Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff1.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"6Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff6.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\t// chunk 6\r\n\t\t\t\t\t\t\tchunkSocket = new Socket(NamespaceMap.get(6), 8934);\r\n\t\t\t\t\t\t\tchunkIn = new DataInputStream(chunkSocket.getInputStream());\r\n\t\t\t\t\t\t\tchunkOut = new DataOutputStream(chunkSocket.getOutputStream());\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"6\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff6.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"1Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff1.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"Make chunk\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(input[0] + \"2Rep\");\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(strBuff2.toString());\r\n\t\t\t\t\t\t\tchunkOut.writeUTF(\"End chunk\");\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println(\"Chunk: \" + chunkNum + \" : \" + PortMap.get(chunkNum) + \" \" + chunkNum);\r\n\t\t\t\t\t\t// out.writeUTF(\"localhost \"+PortMap.get(chunkNum));\r\n\t\t\t\t\t\t// out.writeUTF(NamespaceMap.get(chunkNum)+\"\r\n\t\t\t\t\t\t// \"+PortMap.get(chunkNum)+\" \"+chunkNum);\r\n\t\t\t\t\t\tout.writeUTF(NamespaceMap.get(chunkNum) + \" \" + PortMap.get(chunkNum) + \" complete\");\r\n\t\t\t\t\t\tSystem.out.println(\"Sent chunk: \" + NamespaceMap.get(chunkNum) + \" \" + PortMap.get(chunkNum));\r\n\t\t\t\t\t\tclientCtr--;\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\tSystem.err.println(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tclientThread.start();\r\n\t\t}\r\n\t}",
"public void updated(ServerList list);",
"public int[] updateMap() {\r\n\t\tint[] isObstacle = super.updateMap();\r\n\t\tsmap.setMap(map);\r\n\t\treturn isObstacle;\r\n\t}",
"private void maintain(){\n ArrayList<Integer> shutDown = new ArrayList<Integer>();\n for (String addr : slaveMap.keySet()){\n if (!responderList.containsKey(slaveMap.get(addr))){\n shutDown.add(slaveMap.get(addr));\n }\n }\n //print\n for (Integer id : shutDown){\n synchronized (slaveList) {\n slaveList.remove(id);\n }\n }\n //TODO: one a slave lost control, what should ArcherDFS do?\n }",
"public void syncMessages() {\n\t\tArrayList<ChatEntity> nonSyncedChatEntities = new ArrayList<>();\n\t\tnonSyncedChatEntities.addAll(chatViewModel.loadChatsWithSyncStatus(false, nameID));\n\n\t\tif (nonSyncedChatEntities.size() > 0) {\n\t\t\tfor (int i = 0; i < nonSyncedChatEntities.size(); i++) {\n\t\t\t\tChatEntity chatEntity = nonSyncedChatEntities.get(i);\n\t\t\t\tchatEntity.setSynced(true);\n\t\t\t\tchatViewModel.updateSource(chatEntity);\n\t\t\t\tgetChatResult(nonSyncedChatEntities.get(i).getMessage());\n\t\t\t}\n\t\t}\n\t}",
"public void onNewWork(Map<DuccId, IDuccWork> newWorkMap);",
"void onSynchronizationFinished(int serverLatestRevision, long serverLatestRevisionTimestamp);",
"public static void updateClientAndPassMap(String oldEmail, Client newClient) {\r\n // remove client obj mapped to old email\r\n clientMap.remove(oldEmail);\r\n // add new client mapped to new email\r\n addClient(newClient);\r\n // get pass from passMap\r\n String tempPass = passMap.get(oldEmail);\r\n // remove pass mapped to old client email\r\n passMap.remove(oldEmail);\r\n // add updated client email + pass to map\r\n addPass(newClient.getEmail(), tempPass);\r\n }",
"public void \n updateVersions\n (\n MappedSet<String,VersionID> versions,\n MappedSet<String,VersionID> offline, \n MappedSet<String,VersionID> inter,\n DoubleMap<String,VersionID,LogMessage> checkedInMessages\n )\n {\n pCheckedInMessages.clear();\n pVersionIDs.clear(); \n pVersionFields.clear(); \n pModeFields.clear(); \n pMethodFields.clear(); \n\n pVersionBox.removeAll();\n\n pMasterModeField.setSelectedIndex(1);\n pMasterMethodField.setSelectedIndex(0);\n\n if((versions == null) || (versions.isEmpty())) {\n pMasterBox.setVisible(false);\n pConfirmButton.setEnabled(false);\n }\n else {\n for(String name : versions.keySet()) {\n\tArrayList<VersionID> vids = new ArrayList<VersionID>(versions.get(name));\n\tCollections.reverse(vids);\n\tpVersionIDs.put(name, vids);\n\n\t{\n\t Component comps[] = UIFactory.createTitledPanels();\n\t JPanel tpanel = (JPanel) comps[0];\n\t JPanel vpanel = (JPanel) comps[1];\n\t\n\n\t UIFactory.createTitledTextField\n\t (tpanel, \"Latest Version:\", sTSize, \n\t vpanel, \"v\" + vids.get(0), sVSize, \n\t \"The revision number of the latest version.\");\n\n\t UIFactory.addVerticalSpacer(tpanel, vpanel, 12);\n\t \n\t {\n\t ArrayList<String> values = new ArrayList<String>();\n\t for(VersionID vid : vids) {\n\t String extra = \"\";\n\t {\n\t\tTreeSet<VersionID> ovids = offline.get(name);\n\t\tTreeSet<VersionID> ivids = inter.get(name);\n\t\tif((ovids != null) && ovids.contains(vid))\n\t\t extra = \" - Offline\";\n else if((ivids != null) && ivids.contains(vid))\n\t\t extra = \" - Intermediate\";\n\t }\n\t\t\n\t values.add(\"v\" + vid + extra);\n\t }\n\t \n\t JCollectionField field = \n\t UIFactory.createTitledCollectionField\n\t (tpanel, \"Check-Out Version:\", sTSize, \n\t vpanel, values, this, sVSize, \n\t \"The revision number of the version to check-out.\");\n\n\t ArrayList<String> messages = new ArrayList<String>();\n\t {\n\t TreeMap<VersionID,LogMessage> logHistory = checkedInMessages.get(name);\n\n\t if(logHistory != null) {\n\t\tfor(VersionID vid : vids) {\n\t\t LogMessage log = logHistory.get(vid);\n\n\t\t if(log != null)\n\t\t messages.add(log.getMessage());\n\t\t else\n\t\t messages.add(\"There is no log message for (\" + vid + \")\");\n\t\t}\n\t }\n\t }\n\n\t field.setSelectedIndex(0);\n\t field.setToolTipText(UIFactory.formatToolTip(messages.get(0), 4));\n\t field.addActionListener(this);\n\t field.setActionCommand(\"version-changed\");\n\n\t pVersionFields.put(name, field);\n\t pCheckedInMessages.put(field, messages);\n\t }\n\t \n\t UIFactory.addVerticalSpacer(tpanel, vpanel, 3);\n\n\t {\n\t JCollectionField field = \n\t UIFactory.createTitledCollectionField\n\t (tpanel, \"Check-Out Mode:\", sTSize, \n\t vpanel, CheckOutMode.titles(), sVSize, \n\t \"The criteria used to determine whether working versions should be replaced.\");\n\t \n\t field.setSelectedIndex(1);\n\t \n\t pModeFields.put(name, field);\n\t }\n\n\t UIFactory.addVerticalSpacer(tpanel, vpanel, 3);\n\t \n\t {\n\t JCollectionField field = \n\t UIFactory.createTitledCollectionField\n\t (tpanel, \"Check-Out Method:\", sTSize, \n\t vpanel, CheckOutMethod.titles(), sVSize,\n\t \"The method for replacing working files.\");\n\n\t field.setSelectedIndex(0);\n\n\t pMethodFields.put(name, field);\n\t }\n\n\t /* The 3rd parameter to the JDrawer constructor is the preferred width, \n\t which is set to the width of the title + value panels. */\n\t JDrawer drawer = new JDrawer(name + \":\", (JComponent) comps[2], \n\t sTSize+3 + sVSize, true);\n\n\t pVersionBox.add(drawer);\n\t}\n }\n \n pVersionBox.add(UIFactory.createFiller(sTSize+sVSize));\n\n boolean isSingle = (pVersionIDs.size() == 1);\n pHeaderLabel.setText(\"Check-Out \" + (isSingle ? \":\" : \"Multiple Nodes:\"));\n pMasterBox.setVisible(!isSingle);\n\n pConfirmButton.setEnabled(true);\n }\n\n pMainBox.revalidate();\n pMainBox.repaint();\n }",
"private void refreshMapAndFrame()\n\t{\n\t\tMapAccess.refresh();\n\t\tFrameMap.refresh();\n\t}",
"private static void UpdateClients(boolean errorOnly, boolean detailed) throws Exception {\n java.util.Collection clients = null;\n synchronized (ConnectionTable) {\n clients = ConnectionTable.values();\n }\n\n try {\n for (Object obj : clients) {\n ClientManager client = (ClientManager) ((obj instanceof ClientManager) ? obj : null);\n if (client != null) {\n ICommandExecuter tempVar = client.getCmdExecuter();\n TayzGrid executor = (TayzGrid) ((tempVar instanceof TayzGrid) ? tempVar : null);\n if (executor != null) {\n executor.OnLoggingInfoModified(errorOnly, detailed, client.getClientID());\n }\n }\n }\n } catch (Exception exc) {\n throw exc;\n }\n }",
"@Override\n public void run() {\n final Node node = infoData.getNode(query.getPath());\n if (!node.isEmpty()) {\n List<? extends Event> infoEvents =\n infoSyncTree.applyServerOverwrite(query.getPath(), node);\n postEvents(infoEvents);\n onComplete.onListenComplete(null);\n }\n }",
"public static <K, V> Reference2ObjectMap<K, V> synchronize(Reference2ObjectMap<K, V> m) {\n/* 433 */ return new SynchronizedMap<>(m);\n/* */ }",
"private void startWrite() {\n\t\tlock.lock();\n\t\tif (newMap == null) // Write not already started\n\t\t\tnewMap = ArrayListMultimap.create(map);\n\t}",
"private void metadataModification(CellID cid, Metadata metadata) {\n logger.log(Level.INFO, \"metadata modification!\");\n for(MetadataModificationListener l : modificationListeners){\n if(l.match(cid, metadata)){\n logger.log(Level.INFO, \"server-side alert\");\n l.fireAlert(cid, metadata);\n }\n }\n\n // collect all hit listeners for each client, we'll send just one message\n // to each client containing all of that client's hits\n HashMap<WonderlandClientID, ArrayList<MetadataModificationListener>> clientListenerHits\n = new HashMap<WonderlandClientID, ArrayList<MetadataModificationListener>>();\n\n for(Entry<MetadataModificationListener, ArrayList<WonderlandClientID>> e : clientModificationListeners.entrySet()){\n if(e.getKey().match(cid, metadata)){\n // for every client ID that is connected to this listener..\n for(WonderlandClientID wcid : e.getValue()){\n // create list of hits if necessary\n if(!clientListenerHits.containsKey(wcid)){\n clientListenerHits.put(wcid, new ArrayList<MetadataModificationListener>());\n }\n // add this listener hit\n ArrayList<MetadataModificationListener> clientHits = clientListenerHits.get(wcid);\n clientHits.add(e.getKey());\n clientListenerHits.put(wcid, clientHits);\n }\n }\n }\n\n CommsManager cm = WonderlandContext.getCommsManager();\n MetadataConnectionHandler handler = (MetadataConnectionHandler) cm.getClientHandler(MetadataConnectionType.CONN_TYPE);\n\n // send a message for each client with a hit\n for(Entry<WonderlandClientID, ArrayList<MetadataModificationListener>> e : clientListenerHits.entrySet()){\n handler.sendClientMessage(e.getKey(), new MetadataConnectionModMessage(e.getValue()));\n }\n \n }",
"public static WebSocket[] process(HashMap<WebSocket, Integer> clients, Message message)\n {\n ArrayList<WebSocket> sockets = new ArrayList<WebSocket>();\n\n int act = message.getAction();\n\n // If we're getting a movement update\n if(act == Message.moveUpdate || act == Message.playerConnection || act == Message.positionUpdate) {\n\n synchronized (clients) {\n\n // Get all other clients\n for (WebSocket socket : clients.keySet()) {\n int id = clients.get(socket);\n\n// System.out.println(id + \":\" + message.getClientID());\n\n if (id != message.getClientID()) {\n sockets.add(socket);\n }\n }\n\n }\n }\n\n WebSocket[] socketList = new WebSocket[sockets.size()];\n socketList = sockets.toArray(socketList);\n return socketList;\n }",
"@Override\n\tpublic void onClientConnection(ClientThread client) {\n\t\t//tcp.client.sendMessage(\"vous êtes connecté en tant que \" + tcp.client.getClientName());\n\t\ttry{\n\t\t\tlockHistory.readLock().lock();\n\t\t\tfor(String oldMessage : history){\n\t\t\t\tclient.sendMessage(oldMessage);\n\t\t\t}\n\t\t} finally {\n\t\t\tlockHistory.readLock().unlock();\n\t\t}\n\n\t\ttry {\n\t\t\tlockClients.writeLock().lock();\n\t\t\tthis.clients.add(client);\n\n\t\t} finally {\n\t\t\tlockClients.writeLock().unlock();\n\t\t}\n\n\t\ttry{\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" has joined the chat\";\n\t\t\tfor (ClientThread c : clients) {\n\t\t\t\tc.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void updateClientCacheInfo(RowIdentifier firstRow,\n\t\t\t\t\tint numberOfRows) {\n\n\t\t\t}",
"@Override\r\n\tpublic void run() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t//Get a list of pairs. The pair will be a chunkname with a chunkserver \r\n\t\t/*for(Pair<String, String> p: EventFactory.hostToFiles.getChunkLocations(message.getContent())){\r\n\t\t\tSystem.out.println(\"The location is: \" + p.getKey() + \" and the chunkname is: \" + p.getValue());\r\n\t\t\t\r\n\t\t\t//actual code will contact chunk servers and tell them to read and forward the file to the client\r\n\t\t\tMessage forwardToClient = new Message(\"ForwardChunkToClient\");\r\n\t\t\t//chunkname, servername, port\r\n\t\t\tforwardToClient.setContent(p.getKey());\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tTCPSender sender = new TCPSender(new Socket(p.getValue().split(\" \")[0], Integer.parseInt(p.getValue().split(\" \")[1])));\r\n\t\t\t\tsender.sendData(forwardToClient);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t} catch (NumberFormatException 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 (UnknownHostException 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 (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\t\r\n\t\t}*/\r\n\t\t//Send the list to the client so it can request the chunks from chunkServers\r\n\t\t//Any other way seems like it would be beyond a pain. \r\n\t\tLinkedList<String> fileAndHosts = new LinkedList<String>();\r\n\t\tfor(PairStrings p: EventFactory.hostToFiles.getChunkLocations(message.getContent())) {\r\n\t\t\tString fileAndHost = p.getValue() + \" \" + p.getKey();\r\n\t\t\tfileAndHosts.add(fileAndHost);\r\n\t\t}\r\n\t\t\r\n\t\tMessage getFromChunkServers = new Message(\"RequestChunksFromServers\");\r\n\t\t\r\n\t\t//If the list is empy, the no file was found, report invalid.\r\n\t\tif(fileAndHosts.size() == 0) {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"invalid\" + \" \" + message.getContent());\r\n\t\t} else {\r\n\t\t\tgetFromChunkServers.setList(fileAndHosts);\r\n\t\t\tgetFromChunkServers.setContent(\"valid\" + \" \" + message.getContent());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tTCPSender sender = new TCPSender(new Socket(message.getSenderHostName(), message.getSenderPort()));\r\n\t\t\tsender.sendData(getFromChunkServers);\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\t\r\n\t\t\r\n\t}",
"@Override\n public void clientObjectUpdate(ClientObjectInterface client)\n throws SimpleException {\n }",
"public static void main(String[] args) \n\t{\n\t\ttry \n\t\t{\n\t\t\tServerSocket server2 = new ServerSocket(2112);\n\t\t\tSocket fromClient2 = server2.accept();\n\t\t\t// Receive the map from the client\n\t\t final InputStream yourInputStream = fromClient2.getInputStream(); // InputStream from where to receive the map, in case of network you get it from the Socket instance.\n\t\t final ObjectInputStream mapInputStream = new ObjectInputStream(yourInputStream);\n\t\t final Map<String, Integer> counterMap = (Map) mapInputStream.readObject();\n\t\t\t// Sort the map in decreasing order of value\n\t\t\tMap<String, Integer>sorted = counterMap\n\t\t\t .entrySet()\n\t\t\t .stream()\n\t\t\t .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n\t\t\t .collect(\n\t\t\t toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n\t\t\t LinkedHashMap::new));\n\t\t\t\n\t\t\t// Send map back to client via a socket instance\n\t\t\tfinal OutputStream yourOutputStream = fromClient2.getOutputStream();\n\t\t final ObjectOutputStream mapOutputStream = new ObjectOutputStream(yourOutputStream);\n\t\t mapOutputStream.writeObject(sorted);\n\t\t server2.close(); \n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something went wrong on the server side. I suppose I should say something like\"\n\t\t\t\t\t+ \"'Consult your local network admin for help' to sound official.\");\n\t\t}\n\t}",
"public void updatePlatformMap() {\n\n logger.info(\"Updating platform maps\");\n\n PreparedStatement ps = db.prepareStatement(connId, SELECT_QUERY);\n ResultSet rs = null;\n\n try {\n rs = ps.executeQuery();\n\n while (rs != null && rs.next()) {\n Platform platform = populatePlatform(rs);\n\n if (platform.getToTime() == null)\n platformUpdateMap.put(platform.getStaticId(), platform);\n\n int pId = platform.getId();\n synchronized (platform1stQueryMap) {\n if (platform1stQueryMap.get(pId) == null)\n platform1stQueryMap.put(pId, platform);\n }\n\n if (platform.getToTime() == null) {\n Integer contribId = Integer.valueOf(platform.getContribId());\n synchronized (platform2ndQueryMap) {\n HashMap<String, TimeVariantMetadata> map = platform2ndQueryMap.get(contribId);\n if (map == null)\n map = new HashMap<>();\n\n map.put(platform.getPlatformCode(), platform);\n platform2ndQueryMap.put(contribId, map);\n }\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n } finally {\n try {\n rs.close();\n rs = null;\n ps.close();\n ps = null;\n } catch (SQLException se) {\n // ignore\n }\n }\n\n logger.info(\"Finished updating platform maps\");\n }",
"public void entryUpdated(EntryEvent<Identifier, SystemMetadata> event) {\n\n if (ComponentActivationUtility.replicationIsActive()) {\n log.info(\"Received entry updated event on the hzSystemMetadata map for pid: \"\n + event.getKey().getValue());\n\n if (isAuthoritativeReplicaValid(event.getValue())) {\n createReplicationTask(event.getKey());\n } else {\n log.info(\"Authoritative replica is not valid, not queueing to replication for pid: \"\n + event.getKey().getValue());\n }\n }\n }",
"public void indexMap(LWMap map) {\n vueComponentMap.clear();\n removeAll();\n indexAdd(map);\n }",
"void refreshPlayerList(Map<String, IPlayerConfig> playerList) throws RpcException;",
"public void lockThreadForClient()\n {\n masterThread.lockThreadForClient();\n }",
"private void processLayerMap() {\r\n for (int l = 0; l < layers.size(); l++) {\r\n Layer layer = layers.get(l);\r\n this.layerNameToIDMap.put(layer.name, l);\r\n }\r\n }",
"@Override\n\tpublic void run()\n\t{\n\t\tThread serverWorker = new Thread(tcpServer); \n\t\tserverWorker.start(); \n\t\t\n\t\tThread clientManagerWorker = new Thread(clientManager);\n\t\tclientManagerWorker.start();\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tif (tcpServer.newPlayer() == true)\n\t\t\t{\n\t\t\t\tnewClients = tcpServer.getNewClients();\n\t\t\t\tfor (Client client : newClients)\n\t\t\t\t{\n\t\t\t\t\tlog.log(\"GameEngine: Adding new client #\" + clients.size());\n\t\t\t\t\tgameState.addPlayer(client); \n\t\t\t\t\tclients.add(client); \n\t\t\t\t}\n\t\t\t\tnewClients.clear();\n\t\t\t}\n\t\t\t\n\t\t\tgameState.updatePlayers(clientManager.getPending()); \n\t\t\tgameState.update();\n\t\t\t\n\t\t\tString gameString = gameState.toJson();\n\t\t\t//System.out.println(gameString);\n\t\t\t//System.out.println(\"gameString length: \" + gameString.length());\n\t\t\ttry {\n\t\t\t\tsendUpdate(gameString, gameState.sequenceNumber);\n\t\t\t} catch (IOException e1) {\n\t\t\t\tlog.log(\"Failed to send update to clients\");\n\t\t\t\te1.printStackTrace();\n\t\t\t} \n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tThread.sleep(15);\n\t\t\t} \n\t\t\tcatch (InterruptedException e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\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}).start();\n\t}",
"public void run() {\n while (true) {\n try {\n // Poll server for snapshots and update client\n GameSnapshot snapshot = this.server.getSnapshot();\n client.updateDisplay(snapshot);\n Thread.sleep(250);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteException e) {\n // Find a new master if current master is down\n GameServer newMaster = this.client.findNewMaster();\n if (newMaster != null)\n this.server = newMaster;\n else\n return;\n } catch (NotMasterException e) {\n // Find new master; if it can't, update its master manually\n GameServer newMaster = this.client.findNewMaster();\n if (newMaster != null)\n this.server = newMaster;\n else\n return;\n }\n }\n }",
"public abstract void collectLocks(HashMap threadList);",
"public void updateServerData() throws IOException {\n Iterator it = gameServers.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<InetSocketAddress, GameServer> pair = (Map.Entry) it.next();\n pair.getValue().requestInfo();\n pair.getValue().requestPlayers();\n pair.getValue().requestRules();\n }\n }",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }",
"public void setMiniMapChanged(boolean minimapChanged) {\n this.minimapChanged = minimapChanged;\n }",
"@Override\n public void start() {\n KeyValueLib.dataCenters.put(dataCenter1, 1);\n KeyValueLib.dataCenters.put(dataCenter2, 2);\n KeyValueLib.dataCenters.put(dataCenter3, 3);\n final RouteMatcher routeMatcher = new RouteMatcher();\n final HttpServer server = vertx.createHttpServer();\n server.setAcceptBacklog(32767);\n server.setUsePooledBuffers(true);\n server.setReceiveBufferSize(4 * 1024);\n\n mapPutLock = new ReentrantLock();\n getMap = new HashMap<String, PriorityQueue<String>>();\n queuePutLocks = new HashMap<String, ReentrantLock>();\n\n mapGetLock = new ReentrantLock();\n getMap = new HashMap<String, PriorityQueue<String>>();\n queueGetLocks = new ReentrantLock();\n\n dcLock = new HashMap<String, ReentrantLock>();\n keyLockMap = new HashMap<String, KeyLock>();\n\n routeMatcher.get(\"/put\", new Handler<HttpServerRequest>() {\n @Override\n public void handle(final HttpServerRequest req) {\n MultiMap map = req.params();\n final String key = map.get(\"key\");\n final String value = map.get(\"value\");\n // You may use the following timestamp for ordering requests\n final String timestamp = new Timestamp(\n System.currentTimeMillis() + TimeZone.getTimeZone(\"EST\").getRawOffset()).toString();\n\n // lock the map\n mapGetLock.lock();\n mapPutLock.lock();\n\n if (!putMap.containsKey(key)) {\n getMap.put(key, new PriorityQueue<String>());\n putMap.put(key, new PriorityQueue<String>());\n queueGetLocks.put(key, new ReentrantLock());\n queuePutLocks.put(key, new ReentrantLock());\n keyLockMap.put(key, new KeyLock());\n }\n\n putMap.get(key).add(timestamp);\n\n // unlock the map\n mapGetLock.unlock();\n mapPutLock.unlock();\n \n Thread t = new Thread(new Runnable() {\n public void run() {\n // TODO: Write code for PUT operation here.\n // Each PUT operation is handled in a different thread.\n // Highly recommended that you make use of helper\n // functions.\n }\n \n private void replicatePut(String key, String value, String timestamp) {\n queueGetLocks.get(key).lock();\n queuePutLocks.get(key).lock();\n \n while ((putMap.get(key).peek()!=null && !putMap.get(key).peek().equals(timestamp)) \n || (getMap.get(key).peek()!=null && Long.parseLong(getMap.get(key).peek()) > Long.parseLong(timestamp))) {\n \n queueGetLocks.get(key).unlock();\n queuePutLocks.get(key).unlock();\n try {\n synchronized (keyLockMap.get(key)) {\n keyLockMap.get(key).wait();\n }\n } catch(Exception e){\n \n }\n \n queueGetLocks.get(key).lock();\n queuePutLocks.get(key).lock();\n }\n \n queueGetLocks.get(key).unlock();\n queuePutLocks.get(key).unlock();\n\n try{\n KeyValueLib.PUT(dataCenter1, key, value);\n KeyValueLib.PUT(dataCenter2, key, value);\n KeyValueLib.PUT(dataCenter3, key, value);\n } catch (Exception e){\n System.out.println(\"Exception happens in Put\");\n }\n\n queuePutLocks.get(key).lock();\n putMap.get(key).remove(timestamp);\n queuePutLocks.get(key).unlock();\n \n keyLockMap.get(key).notifyAll();\n return;\n\n }\n\n \n });//runnable\n t.start();\n req.response().end(); // Do not remove this\n }\n });\n\n routeMatcher.get(\"/get\", new Handler<HttpServerRequest>() {\n @Override\n public void handle(final HttpServerRequest req) {\n MultiMap map = req.params();\n final String key = map.get(\"key\");\n final String loc = map.get(\"loc\");\n // You may use the following timestamp for ordering requests\n final String timestamp = new Timestamp(\n System.currentTimeMillis() + TimeZone.getTimeZone(\"EST\").getRawOffset()).toString();\n Thread t = new Thread(new Runnable() {\n public void run() {\n // TODO: Write code for GET operation here.\n // Each GET operation is handled in a different thread.\n // Highly recommended that you make use of helper\n // functions.\n req.response().end(\"0\"); // Default response = 0\n }\n });\n t.start();\n }\n });\n\n routeMatcher.get(\"/storage\", new Handler<HttpServerRequest>() {\n @Override\n public void handle(final HttpServerRequest req) {\n MultiMap map = req.params();\n storageType = map.get(\"storage\");\n // This endpoint will be used by the auto-grader to set the\n // consistency type that your key-value store has to support.\n // You can initialize/re-initialize the required data structures\n // here\n req.response().end();\n }\n });\n\n routeMatcher.noMatch(new Handler<HttpServerRequest>() {\n @Override\n public void handle(final HttpServerRequest req) {\n req.response().putHeader(\"Content-Type\", \"text/html\");\n String response = \"Not found.\";\n req.response().putHeader(\"Content-Length\", String.valueOf(response.length()));\n req.response().end(response);\n req.response().close();\n }\n });\n server.requestHandler(routeMatcher);\n server.listen(8080);\n }",
"Map getConnectionManagerMap();",
"@Override\n public List<InstanceOverallStatusDto> syncInstances(List<Manifest.Key> given) {\n List<InstanceDto> list = list();\n List<Manifest.Key> instances = (given == null || given.isEmpty()) ? list.stream().map(d -> d.instance).toList() : given;\n Set<String> errors = new TreeSet<>();\n\n // on CENTRAL only, synchronize managed servers. only after that we know all instances.\n if (minion.getMode() == MinionMode.CENTRAL) {\n List<ManagedMasterDto> toSync = list.stream().filter(i -> instances.contains(i.instance)).map(i -> i.managedServer)\n .toList();\n\n log.info(\"Mass-synchronize {} server(s).\", toSync.size());\n\n ManagedServersResource rs = rc.initResource(new ManagedServersResourceImpl());\n try (Activity sync = reporter.start(\"Synchronize Servers\", toSync.size())) {\n AtomicLong syncNo = new AtomicLong(0);\n ExecutorService es = Executors.newFixedThreadPool(4, new RequestScopedNamedDaemonThreadFactory(reqScope,\n reg.get(group).getTransactions(), reporter, () -> \"Mass-Synchronizer \" + syncNo.incrementAndGet()));\n List<Future<?>> syncTasks = new ArrayList<>();\n for (ManagedMasterDto host : toSync) {\n syncTasks.add(es.submit(() -> {\n try (Activity singleSync = reporter.start(\"Synchronize \" + host.hostName)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Synchronize {}\", host.hostName);\n }\n rs.synchronize(group, host.hostName);\n } catch (Exception e) {\n errors.add(host.hostName);\n log.warn(\"Could not synchronize managed server: {}: {}\", host.hostName, e.toString());\n if (log.isDebugEnabled()) {\n log.debug(\"Exception:\", e);\n }\n }\n sync.workAndCancelIfRequested(1);\n }));\n }\n\n FutureHelper.awaitAll(syncTasks);\n es.shutdown(); // make all threads exit :)\n }\n } else {\n // update the local stored state.\n ResourceProvider.getResource(minion.getSelf(), MasterRootResource.class, context).getNamedMaster(group)\n .updateOverallStatus();\n }\n\n // for each instance, read the meta-manifest, and provide the recorded data.\n var result = new ArrayList<InstanceOverallStatusDto>();\n for (var inst : list.stream().filter(i -> instances.contains(i.instance)).toList()) {\n if (inst.managedServer != null && inst.managedServer.hostName != null\n && errors.contains(inst.managedServer.hostName)) {\n continue; // no state as we could not sync.\n }\n result.add(new InstanceOverallStatusDto(inst.instanceConfiguration.id,\n new InstanceOverallState(inst.instance, hive).read()));\n }\n\n return result;\n }",
"void doLogicalPutUnlockedVersioned(TCServerMap map, Object key, Object value, long version);",
"public void sendUpdatedState() {\n \t\tObjectOutputStream out = null;\n \t\ttry {\n \t\t\tfor (Socket socket : sockets) {\n \t\t\t\tout = new ObjectOutputStream(socket.getOutputStream());\n \t\t\t\tout.writeObject(gs);\n \t\t\t\tLog.d(\"network GaC\", \"State written into socket\");\n \t\t\t\tout.flush();\n \t\t\t}\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"public static interface Client\n\t{\n\n\t\t/**\n\t\t * Server notify the client to refresh the player list.\n\t\t * @param playerList New player list.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid refreshPlayerList(Map<String, IPlayerConfig> playerList) throws RpcException;\n\n\t\t/**\n\t\t * Server notify the client to refresh the game config. Client is expected to display it in GameCreation panel.\n\t\t * @param gameCfg New game config.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid refreshGameConfig(GameConfig gameCfg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast game creation message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveGameCreationMessage(String fromPlayer, String msg) throws RpcException;\n\n\t\t/**\n\t\t * Server broadcast running game message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveRunningGameMessage(String fromPlayer, String msg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast paused game message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receivePausedGameMessage(String fromPlayer, String msg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast new turn events.\n\t\t * Client should process these events on local gameboard.\n\t\t * If there is an error processins events on local gameboard, then it means local gameboard and server gameboard view for this player are out of sync.\n\t\t * In that case, client should call {@link ServerRunningGame#getEntireGameLog()} methods to recreate a fresh local gameboard.\n\t\t * @param newTurnEvents Events generated on turn resolution.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveNewTurnGameBoard(List<IGameEvent> newTurnEvents) throws RpcException;\n\t}",
"public void callUpdateLocation( AppCompatActivity activity, final Context context, String collName, int recordId, LatLng newLocation ){\r\n\r\n ServiceRequest serviceRequest = new ServiceRequest( ServiceRequest.CORE_SEVICE_NAME, \"updateLocation\", context );\r\n serviceRequest.putParameterValue( \"database_name\", \"update_location\" );\r\n serviceRequest.putParameterValue( \"dataset_name\", \"gis\" );\r\n serviceRequest.putParameterValue( \"collection_name\", collName );\r\n serviceRequest.putParameterValue( \"record_id\", String.valueOf( recordId ) );\r\n serviceRequest.putParameterValue( \"location_x\", String.valueOf( newLocation.longitude ) );\r\n serviceRequest.putParameterValue( \"location_y\", String.valueOf( newLocation.latitude ) );\r\n serviceRequest.putParameterValue( \"username\", LoginAuthentificationHandlerContext.getInstance().getUsername( ) );\r\n serviceRequest.putParameterValue( \"password\", LoginAuthentificationHandlerContext.getInstance( ).getPassword( ) );\r\n L.m( serviceRequest.getServiceRequest( ) );\r\n\r\n SmallWorldServiceTask task = new SmallWorldServiceTask(\r\n serviceRequest.getServiceRequest( ),\r\n activity,\r\n \"Updating new location...\",\r\n new SetOnTaskCompleteListener< List< HashMap< String, String > > >( ){\r\n @Override\r\n public void onTaskComplete( List< HashMap< String, String > > result ) {\r\n HashMap< String, String > response = result.get( 0 );\r\n if( response.containsKey( \"login_response\" )){\r\n L.t( context, response.get( \"login_response\" ) );\r\n }else if( response.containsKey( \"result_update\" ) ){\r\n String updated = response.get( \"result_update\" );\r\n if( updated != null ){\r\n if( updated.equals( \"true\" )){\r\n MapEngine.refreshMap( MobileGatewayMapActivity.masterActivity.getMap( ), MobileGatewayMapActivity.masterActivity.getMap( ).getCameraPosition( ), context );\r\n L.t( context, \"Updated location complete\" );\r\n }else{\r\n L.t( context, \"Updated location failed!!!! \" + updated );\r\n }\r\n }\r\n }\r\n\r\n }\r\n } );\r\n task.execute( );\r\n }",
"synchronized void checkAlive() {\n printAct(\"==>Checking all my Entries if alive \");\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Integer, FileLocation> entry = (Map.Entry) it.next();\n FileLocation location = entry.getValue();\n try {\n InetSocketAddress server = new InetSocketAddress(location.getIP(), location.getPort());\n Socket s = new Socket();\n s.connect(server, 200); //connect with to the AppliCation with a timeout\n ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());\n out.writeInt(2); //request 2 = file request\n out.writeInt(5); //\"random\" port, specific for this request\n out.close();\n s.close();\n } catch (java.net.SocketTimeoutException ex) {\n this.removeKey(entry.getKey());\n } catch (IOException ex) {\n this.removeKey(entry.getKey());\n }\n }\n printAct(\"==>Checked all my Entries if alive \");\n }"
]
| [
"0.58743495",
"0.5838305",
"0.581532",
"0.5679405",
"0.5609681",
"0.5571983",
"0.55487293",
"0.55279034",
"0.54877496",
"0.54756343",
"0.5449406",
"0.5416874",
"0.54051346",
"0.53757936",
"0.5354895",
"0.53478956",
"0.5309538",
"0.5307376",
"0.5297608",
"0.5286118",
"0.5285714",
"0.5285361",
"0.5265686",
"0.52606046",
"0.5252913",
"0.52386314",
"0.5222013",
"0.5209766",
"0.5204766",
"0.5189593",
"0.51668763",
"0.5158415",
"0.5144097",
"0.51326495",
"0.5128641",
"0.5121442",
"0.5096068",
"0.50956136",
"0.5091244",
"0.50909775",
"0.5079465",
"0.50791454",
"0.507042",
"0.5038787",
"0.50343597",
"0.50295",
"0.5022705",
"0.50201666",
"0.5011206",
"0.49953717",
"0.49843282",
"0.49749935",
"0.49614963",
"0.49598223",
"0.49455532",
"0.49429524",
"0.49415407",
"0.49342725",
"0.49324015",
"0.49302694",
"0.49295703",
"0.49245372",
"0.49194032",
"0.49136648",
"0.49135864",
"0.49122038",
"0.49110627",
"0.4907516",
"0.48996413",
"0.48983",
"0.48921254",
"0.4889317",
"0.48882273",
"0.48862338",
"0.4882507",
"0.48813546",
"0.4871779",
"0.48563993",
"0.48528117",
"0.48414907",
"0.4834847",
"0.48327687",
"0.4829026",
"0.48189408",
"0.48185813",
"0.48184726",
"0.4814575",
"0.48130816",
"0.48120812",
"0.4812066",
"0.4805894",
"0.4803927",
"0.47977686",
"0.4797657",
"0.47931612",
"0.47915015",
"0.47909057",
"0.47889695",
"0.4788328",
"0.4788223",
"0.4785801"
]
| 0.0 | -1 |
time.setText("seconds remaining: " + millisUntilFinished / 1000); | public void onTick(long millisUntilFinished) {
int sec = (int) (millisUntilFinished / 1000);
int hour = sec / 3600;
sec = sec % 3600;
int min = sec / 60;
sec = sec % 60;
time.setText(hour + ":" + min + ":" + sec);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onTick(long millisUntilFinished) {\n\n timeleftTextview.setText(\"seconds remaining: \" + millisUntilFinished / 1000);\n }",
"public void onTick(long millisUntilFinished){\n seconds=seconds-1000;\n timeUpText.setText(\"seconds remaining: \" + millisUntilFinished / 1000);\n drawingCanvas.setSeconds(seconds, originalSecs);\n drawingCanvas.invalidate();\n }",
"private void updateCountDownText() {\n int minutes = (int)(timeLeftInMillis / 1000) / 60 % 60;\n int seconds = (int)(timeLeftInMillis / 1000) % 60;\n\n String timeFormatted = String.format(Locale.getDefault(),\"%02d:%02d\",minutes,seconds);\n textViewCountDown.setText(timeFormatted);\n\n if (timeLeftInMillis < 10000) {\n textViewCountDown.setTextColor(Color.RED);\n } else {\n textViewCountDown.setTextColor(textColorDefaultCd);\n }\n }",
"public void onTick(long millisUntilFinished){\n seconds=seconds-1000;\n timeUpText.setText(\"seconds remaining: \" + seconds / 1000);\n Log.d(\"seconds\", String.format(\"%d\", seconds/1000));\n drawingCanvas.setSeconds(seconds, originalSecs);\n drawingCanvas.invalidate();\n }",
"@Override\n \t\t\tpublic void onTick(long millisUntilFinished) {\n \t\t\t\ttvStatus.setText(\"Seconds Remaining: \" + mcountDownFormatter.format((millisUntilFinished / 1000.000)));\n \t\t\t\t\n \t\t\t\tcalculateMark();\n \t\t\t\t\n \t\t\t\t\n \t\t\t}",
"private void updateCountdownText() {\r\n int minutes = (int) (timeLeftInMillis / 1000) / 60;\r\n int seconds = (int) (timeLeftInMillis / 1000) % 60;\r\n\r\n String timeFormatted = String.format(Locale.getDefault(), \"%02d:%02d\", minutes, seconds);\r\n\r\n mTimer.setText(timeFormatted);\r\n }",
"public void onTick(long millisUntilFinished) {\n int progress = (int)(Math.ceil((PROGRESSBAR_TIME_MS - millisUntilFinished)/(double)PROGRESSBAR_INTERVAL_MS));\n progressBar.setSecondaryProgress(progress);\n\n //Updating value to time textview\n txtTime.setText(String.format(\"%d\\\"\", millisUntilFinished / 1000));\n\n }",
"private void updateUI() {\n handler_.post(new Runnable() {\n public void run() {\n bar_.setProgress(time_);\n String remTimeStr = \"\" + (maxTime_ - time_);\n timeRemaining_.setText(REM_STRING.replace(\"?\", remTimeStr));\n }\n });\n }",
"public void onTick(long millisUntilFinished) {\n tvTimer.setText(\"\"+String.format(\"%d min, %d sec\",\n TimeUnit.MILLISECONDS.toMinutes( millisUntilFinished),\n TimeUnit.MILLISECONDS.toSeconds(millisUntilFinished) -\n TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished))));\n }",
"@Override\n public void onTick(long millisUntilFinished) {\n\n String timeLeft = String.format(Locale.getDefault(), \"%02d:%02d:%02d\",\n (TimeUnit.MILLISECONDS.toHours(millisUntilFinished) - TimeUnit.DAYS.toHours(TimeUnit.MILLISECONDS.toDays(millisUntilFinished)))\n , (TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millisUntilFinished)))\n , (TimeUnit.MILLISECONDS.toSeconds(millisUntilFinished) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished))));\n\n com.setText(timeLeft);\n // timer_com.setText(\"\" + millisUntilFinished / 1000);\n }",
"public void onTick(long millisUntilFinished) {\n time=millisUntilFinished;\n tvtimer.setText(\"\" + TimeUnit.MILLISECONDS.toHours(millisUntilFinished) + \" : \" + String.format(FORMAT_2, TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millisUntilFinished))) + \" : \" + String.format(FORMAT_2, TimeUnit.MILLISECONDS.toSeconds(millisUntilFinished) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished))));\n }",
"@Override\n\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t\tbtn_countdowntime.setText((millisUntilFinished / 1000)\n\t\t\t\t\t\t+ \"秒后可重发\");\n\t\t\t}",
"private void setTimeCaption() {\n //System.out.println(\"currtime\"+currTimeProgressValue);\n int value=currTimeProgressValue/1000; // seconds representation\n int hours=value/(3600);\n int minutes=(value%(3600))/60;\n int seconds=(value%(3600))%60;\n this.lblTimeCaption.setText(Integer.toString(hours)+\" hours \"+Integer.toString(minutes)+\n \" minutes \"+Integer.toString(seconds)+\" seconds \");\n \n }",
"@Override\n\t\t\t\t\tpublic void onTick(long millisUntilFinished) {\n\t\t\t\t\t\tlong secUntilFinished = millisUntilFinished / 1000;\n\t\t\t\t\t\tint h = (int) (secUntilFinished / 3600);\n\t\t\t\t\t\tint m = (int) (secUntilFinished % 3600 / 60);\n\t\t\t\t\t\tint s = (int) (secUntilFinished % 60);\n\t\t\t\t\t\tcountdownText.setText(String.valueOf(h) + \":\" \n\t\t\t\t\t\t\t\t+ new DecimalFormat(\"00\").format(m) + \":\"\n\t\t\t\t\t\t\t\t+ new DecimalFormat(\"00\").format(s));\n\t\t\t\t\t}",
"@Override\n public void onTick(long millisUntilFinished) {\n mCurrentTimer -= 1000;\n mTimer.setText(String.valueOf((int) (millisUntilFinished / 1000)));\n }",
"@Override\n public void onTick(long millisUntilFinished) {\n if (play) {\n\n\n\n\n\n czasomierz.setProgress((int)millisUntilFinished/1000);\n\n czas.setText((int)millisUntilFinished/1000 + \" s\");\n\n }\n\n }",
"public void onTick(long millisUntilFinished) {\n timer++;\n if (timer < 10) {\n tvStartTime.setText(\"0:0\" + timer);\n } else {\n tvStartTime.setText(\"0:\" + timer);\n }\n musicSeekBar.setProgress(0);\n musicSeekBar.setMax((int) (30));\n musicSeekBar.setProgress((int) (timer));\n }",
"public void onTick(long millisUntilFinished) {\n if (is_running) { countUpSeconds++; }\n timer_box.setText(this.getCountUpTime());\n }",
"public void updateTimer( int secondsLeft ) {\n int minutes = secondsLeft / 60;\n int seconds = secondsLeft - (minutes * 60);\n\n String secondsString = Integer.toString(seconds);\n\n if(seconds <= 9) {\n secondsString = \"0\" + secondsString;\n }\n\n timerTextView.setText(Integer.toString(minutes) + \":\" + secondsString);\n// getRandomQuestion();\n }",
"public void onTick(long millisUntilFinished) {\n mTextField.setText(teatype + \" \" + getResources().getString(R.string.will_be_ready) + \" \" + millisUntilFinished / 1000 + \" \" + getResources().getString(R.string.seconds));\n }",
"@Override\n public void onTick(long leftTimeInMilliseconds) {\n long seconds = leftTimeInMilliseconds / 1000;\n if(counter == 15){\n pgBarCountDown.setProgress(100);\n }\n else {\n pgBarCountDown.setProgress(counter * 6);\n }\n\n tv_timer_text.setText(counter+\" \" +\"Sec\");\n // format the textview to show the easily readable format\n counter++;\n\n }",
"public void updateTimer(int timeElapsed){\n mTimerText.setText(\n String.format(\"TIME LEFT: %ds\",10 - timeElapsed));\n mTimerProgressBar.setProgress((int)((timeElapsed/10.0)*100.0));\n }",
"private void setTxtTimeTotal()\n {\n SimpleDateFormat dinhDangGio= new SimpleDateFormat(\"mm:ss\");\n txtTimeTotal.setText(dinhDangGio.format(mediaPlayer.getDuration()));\n //\n skSong.setMax(mediaPlayer.getDuration());\n }",
"private void gameTimerOnTick(long millisUntilFinished) {\n gameTimeLeftYet = millisUntilFinished;\n String currentTimeLeft = String.format(\"%02d:%02d\",\n TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished) -\n TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millisUntilFinished)), // The change is in this line\n TimeUnit.MILLISECONDS.toSeconds(millisUntilFinished) -\n TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished)));\n gameTimerTv.setText(currentTimeLeft);\n }",
"public void onTick(long millisUntilFinished) {\n button_coundown.setText(\"\"+millisUntilFinished/1000);\n }",
"public void update() {\r\n\t\tlabel.setText(time / 60 + \":\" + ((time % 60 <= 9)? (\"0\" + time % 60) : (time % 60)));\r\n\t}",
"public void onTick(long millisUntilFinished) {\n\n text1.setText(\"\" + String.format(FORMAT,\n TimeUnit.MILLISECONDS.toHours(millisUntilFinished),\n TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished) - TimeUnit.HOURS.toMinutes(\n TimeUnit.MILLISECONDS.toHours(millisUntilFinished)),\n TimeUnit.MILLISECONDS.toSeconds(millisUntilFinished) - TimeUnit.MINUTES.toSeconds(\n TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished))));\n }",
"private void updateTime()\n {\n time++;\n this.timeTextField.setText(\"\" + time);\n }",
"@Override\n public void run() {\n\n secs++;\n if (secs == 10) {\n tens++;\n secs = 0;\n }\n if (tens == 6) {\n mins++;\n tens = 0;\n secs = 0;\n }\n time = mins + \":\" + tens + \"\" + secs;\n timePlayed.setText(\"Time: \" + time);\n }",
"private void SetTime() {\r\n\t\t timelbl.setText(second/3600+\":\"+((second/60)%60)+\":\"+(second%60));\r\n\t}",
"@Override\n public void onTick(long millisUntilFinished) {\n total += autovalue * 1000; //due to odd interactions with milliseconds autovalue is a very low number\n TextView myTextView = (TextView)\n findViewById(R.id.textView);\n myTextView.setText(Double.toString(round(total, 2)));\n }",
"public void setTimeLeft(int time) {\n final int t = time;\n \n Runnable doUpdate = new Runnable() {\n public void run() {\n timeLabel.setText(\"<html>Period Time Remaining: <font color=#993333>\" + t + \"</font></html>\");\n }\n };\n \n SwingUtilities.invokeLater(doUpdate);\n }",
"@Override\n public void run() {\n textTimer.setText(String.valueOf(currentTime));\n }",
"@Override\n public void onChanged(Long aLong) {\n String newText= MainActivity.this.getResources().getString(R.string.seconds, aLong);\n ((TextView) findViewById(R.id.timer_textview)).setText(newText);\n }",
"public void onTick(long millisecondsUntilDone) {\n\n Log.i(\"Seconds left\", String.valueOf(millisecondsUntilDone / 1000));\n\n }",
"@Override\n public void run() {\n sec++;\n if (sec > 9) {\n sec = 0;\n min++;\n }\n timer.setText(String.format(\"%02d\", sec) + \":\" + String.format(\"%02d\", min));\n handler.postDelayed(this, 1000);\n }",
"public void printTimeRemaining() {\n long timeInSeconds = getTimeRemaining();\n long seconds = timeInSeconds % 60;\n long minutes = timeInSeconds / 60;\n System.out.println(\"Time until the oxygen supply runs out: \" + minutes \n + \" minutes and \" + seconds + \" seconds.\");\n }",
"private void UpdateTimeSong()\n {\n final Handler handler= new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n SimpleDateFormat dinhdanggio= new SimpleDateFormat(\"mm:ss\");\n txtTimeSong.setText(dinhdanggio.format(mediaPlayer.getCurrentPosition()));\n skSong.setProgress(mediaPlayer.getCurrentPosition());\n handler.postDelayed(this,500);\n }\n },100);\n }",
"public void setTime(){\n\t\tthis.time = this.endTime - this.startTime;\t//calculate the time difference\n\t\t\n\t\t//now since the time is in milliseconds, convert the nanotime\n\t\tlong totalSeconds = (this.time / 1000000000);\n\t\t//Format the above seconds. So it will have at least \n\t\tint minute = (int)(totalSeconds/60);\n\t\tdouble second = totalSeconds - (minute*60);\t//get the remaining second part\n\t\t\n\t\tDecimalFormat minuteFormat = new DecimalFormat(\"##0\");\n\t\tDecimalFormat secondFormat = new DecimalFormat(\"###\");\t//so we only get the 3 digits\n\t\tString minutePart = minuteFormat.format(minute);\t//get the string for the second part\n\t\tString secondPart = secondFormat.format(second);\n\t\t\n\t\t\n\t\tString result = minutePart + \":\" + secondPart;\n\t\t\n\t\t//each time we set time, change the bounds\n\t\tthis.timeLabel.setText(String.valueOf(result));//set the JLabel text\n\t\t//when we set the time label, also set its location\n\t\tthis.timeLabel.setSize(timeLabel.getPreferredSize().width, \n\t\t\t\ttimeLabel.getPreferredSize().height);\n\t}",
"private void countdown(){\n timer = new CountDownTimer(timeLeft, 1000) {\n @Override\n public void onTick(long millisUntilFinished) {\n timeLeft = millisUntilFinished;\n updateTimerView();\n }\n @Override\n public void onFinish() {\n timeLeft = 0;\n updateTimerView();\n checkAnswer();\n }\n }.start();\n }",
"@Override\r\n\t\tpublic void onTick(long millisUntilFinished, int percent) {\n\t\t\ttime.setText(StringUtil\r\n\t\t\t\t\t.getSpannStringAbountSize(millisUntilFinished));\r\n\t\t\tif (currentPercent != null) {\r\n\t\t\t\tcurrentPercent.getCurrentPercen(millisUntilFinished,percent);\r\n\t\t\t}\r\n\t\t}",
"void updateRemainingText(String remainingText) {\n this.remainTime.setText(remainingText);\n }",
"private void updateTimer (float time){\n\t\tsecs = (long)(time/1000);\n\t\tmins = (long)((time/1000)/60);\n\t\thrs = (long)(((time/1000)/60)/60);\n\t\t\n\t\t/* Convert the seconds to String \n\t\t * and format to ensure it has\n\t\t * a leading zero when required\n\t\t */\n\t\tsecs = secs % 60;\n\t\tseconds=String.valueOf(secs);\n \tif(secs == 0){\n \t\tseconds = \"00\";\n \t}\n \tif(secs <10 && secs > 0){\n \t\tseconds = \"0\"+seconds;\n \t}\n \t\n\t\t/* Convert the minutes to String and format the String */\n \t\n \tmins = mins % 60;\n\t\tminutes=String.valueOf(mins);\n \tif(mins == 0){\n \t\tminutes = \"00\";\n \t}\n \tif(mins <10 && mins > 0){\n \t\tminutes = \"0\"+minutes;\n \t}\n\t\t\n \t/* Convert the hours to String and format the String */\n \t\n \thours=String.valueOf(hrs);\n \tif(hrs == 0){\n \t\thours = \"00\";\n \t}\n \tif(hrs <10 && hrs > 0){\n \t\thours = \"0\"+hours;\n \t}\n \t \t\n\t\t/* Setting the timer text to the elapsed time */\n\t\t((TextView)findViewById(R.id.timer)).setText(hours + \":\" + minutes + \":\" + seconds);\n\t}",
"public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n textViewDelay.setText(\"Delay: \" + progress + \" seconds\"); //update \"progress\" value and pass it to textview\n }",
"@Override\n public void run() {\n long seconds = millisUntilFinished / 1000;\n long minutes = seconds / 60;\n\n String time = minutes % 60 + \":\" + seconds % 60;\n// double timeInDouble = Double.parseDouble(time);\n if(minutes >= 0 && seconds >= 0)holder.setText(time);\n else holder.setText(\"Task Completed\");\n\n millisUntilFinished -= 1000;\n\n Log.d(\"DEV123\",time);\n// imageView.setX(imageView.getX()+seconds);\n /* and here comes the \"trick\" */\n handler.postDelayed(this, 1000);\n }",
"public void onBtnBeginClicked(View v) {\n progressBar.setSecondaryProgress(0);\n\n //Setting initial value to time textview\n txtTime.setText(String.format(\"%d\\\"\", PROGRESSBAR_TIME_MS / 1000));\n\n //Disable button to prevent more clicks\n btnBegin.setEnabled(false);\n\n new CountDownTimer(PROGRESSBAR_TIME_MS, PROGRESSBAR_INTERVAL_MS) {\n\n public void onTick(long millisUntilFinished) {\n\n //Setting current step to progress bar\n int progress = (int)(Math.ceil((PROGRESSBAR_TIME_MS - millisUntilFinished)/(double)PROGRESSBAR_INTERVAL_MS));\n progressBar.setSecondaryProgress(progress);\n\n //Updating value to time textview\n txtTime.setText(String.format(\"%d\\\"\", millisUntilFinished / 1000));\n\n }\n\n public void onFinish() {\n\n //final value for the progress bar (100%)\n progressBar.setSecondaryProgress(PROGRESSBAR_TIME_MS);\n\n Toast.makeText(getApplicationContext(), \"FINISHED TIME\", Toast.LENGTH_SHORT).show();\n\n //Enable button again\n btnBegin.setEnabled(true);\n }\n }.start();\n\n\n\n }",
"private void countTime()\n {\n time--;\n showTime();\n if (time == 0)\n {\n showEndMessage();\n Greenfoot.stop();\n }\n }",
"@Override\r\n\t\t public void run() {\r\n\t\t\t\tPlatform.runLater(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t \t timerLabel.setText(\"Time left: \" + countDown);\r\n\t\t countDown--;\r\n\t\t if (countDown < 0){timer.cancel();}\r\n\t\t\t}});}",
"private void updateTimer()\r\n {\n if (timeLeft > 0)\r\n {\r\n frameCounter++;\r\n \r\n // if a second has passed\r\n if (frameCounter >= frameRate)\r\n {\r\n // reset the frame counter\r\n frameCounter = 0;\r\n \r\n // update the secondsElapsed var\r\n totalSecondsElapsed++;\r\n \r\n // subtract a second from the timer\r\n timeLeft--;\r\n \r\n // change the time into mins & seconds\r\n int minsLeft = timeLeft / 60;\r\n int secondsLeft = timeLeft % 60;\r\n \r\n // update the time display (min:sec)\r\n String timerDisplay = minsLeft + \":\" + getLeadingZero(secondsLeft, 10) + secondsLeft;\r\n timerText.text = timerDisplay;\r\n timerText.updateText();\r\n }\r\n }\r\n else\r\n {\r\n endGame();\r\n }\r\n }",
"private void updateDuration() {\n duration = ((double) endTimeCalendar.getTime().getTime() - (startTimeCalendar.getTime().getTime())) / (1000 * 60 * 60.0);\n int hour = (int) duration;\n String hourString = dfHour.format(hour);\n int minute = (int) Math.round((duration - hour) * 60);\n String minuteString = dfMinute.format(minute);\n String textToPut = \"duration: \" + hourString + \" hours \" + minuteString + \" minutes\";\n eventDuration.setText(textToPut);\n }",
"@Override \r\n\t\t public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n\t\t \tint actualValue = Math.round(progress/100)*100;\r\n\t\t \tactualValue += delayMinimum;\t\t \t\r\n\t\t seekValue.setText(\"\"+actualValue);\t\t\r\n\t\t delayTime = actualValue;\r\n\t\t }",
"@Override\n public void onTick(long millisUntilFinished) {\n \tdisplayfehler = (TextView) findViewById(R.id.text_fehler);\n \tif (millisUntilFinished <= 20000) {\n \t\tdisplayfehler.setText(\"Anfrage dauert an...\");\n \t\trectangle_green.setVisibility(0);\t\t\t\t\t\t\t\t// alles im gruenen Bereich\n rectangle_red.setVisibility(4);\n \t} else {\n \t\tdisplayfehler.setText(\"...\");\n \t\trectangle_green.setVisibility(0);\t\t\t\t\t\t\t\t// alles im gruenen Bereich\n rectangle_red.setVisibility(4);\n \t}\n \t\n \tif (smsreceived == 1){\n \t\tonFinish();\n \t\tdisplayfehler.setText(\"Kein Fehler.\");\n \t\t} \n \t\t\n\n }",
"public void currentTime() {\n Thread clock = new Thread() {\n public void run() {\n for (;;) {\n Calendar cal = new GregorianCalendar();\n int second = cal.get(Calendar.SECOND);\n int minute = cal.get(Calendar.MINUTE);\n int hour = cal.get(Calendar.HOUR);\n \n txtKluar.setText(hour + \":\" + minute + \":\" + second + \" \");\n try {\n sleep(1000);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }\n };\n clock.start();\n }",
"@Override\n public void onTick(long millisUntilFinished) {\n activityTitle.setText(\"Left: \" + millisUntilFinished / 1000);// This will be called every Second.\n\n }",
"private void setTimer(){\n\n //initialize the time variable\n int time = 10;\n\n //calculate the totaltime\n totalTimeCountInMilliseconds = time * 1000;\n\n //set the maximum time of the progress bar timer\n mProgressBar1.setMax( time * 1000);\n }",
"public void setDuration (int sec) {\n String hoursText = \"\", minutesText = \"\", synthez = \"\";\n\n if (sec < 60) {\n synthez = \"less than one minute\";\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n return;\n }\n\n if (sec >= 3600) {\n hoursText += sec/3600+\" Hour\";\n if (sec/3600 > 1) {\n hoursText+=\"s\";\n }\n hoursText+=\" \";\n }\n if (((sec%3600)/ 60) > 0) {\n minutesText+= ((sec%3600)/ 60)+ \" minute\";\n if (((sec%3600)/ 60 ) > 1) {\n minutesText+=\"s\";\n }\n minutesText+=\" \";\n }\n synthez = hoursText+minutesText;\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n }",
"@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv3.setText(String.format(\"%.0f\", 200*progress-1000.));\r\n\t\t\t}",
"@Override\n public void updateTimer(int time) {\n if (isEnglish) {\n String temp = TIME_LEFT + time;\n painterTextViewTime.setText(temp);\n } else {\n String temp = TIME_LEFT_CHINESE + time;\n painterTextViewTime.setText(temp);\n }\n }",
"private void updateTimer(float eTime) {\n seconds = (float) round((eTime / 1000), 2);\n timeOutput.setText(String.valueOf(seconds));\n }",
"@Override\n public void run() {\n int min, seg;\n \n while(true){\n \n time++;\n min=(int) (time / 60);\n seg=(int) (time % 60);\n lTime.setText(min+\":\"+seg);\n \n try {\n Thread.sleep(1000);\n } catch (Exception ex) {\n \n }\n \n }\n }",
"void change(Label elapsedTimer) {\r\n\r\n if (seconds == 60) {\r\n mins++;\r\n seconds = 0;\r\n }\r\n if (mins == 60) {\r\n hours++;\r\n mins = 0;\r\n }\r\n \r\n elapsedTimer.setText(\r\n (((hours / 10) == 0) ? \"0\" : \"\") + hours + \":\"\r\n + (((mins / 10) == 0) ? \"0\" : \"\") + mins + \":\"\r\n + (((seconds / 10) == 0) ? \"0\" : \"\") + seconds++);\r\n\r\n }",
"@Override\n\t public void run()\n\t {\n\t \ttv_sys_uptime.setText(getUptime()); \n\t mHandler.postDelayed(this, 1000);\n\t }",
"private void setTimeText(int minutes, TextView textTime) {\n String timeString = String.format(\"%d minutes\", minutes +\n convertProgressToMeters(PROGRESS_MIN));\n textTime.setText(timeString);\n }",
"private void advanceTime() {\r\n myCurrentTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));\r\n }",
"public void onFinish(){\n\n Log.i(\"Done!\", \"Countdown timer finished!\");\n\n }",
"public void updateUI(){\n\t\t\n\t\ttimeTV.setText(\"\"+String.format(\"\" + gameClock%10));\n\t\ttimeTV2.setText(\"\"+ gameClock/10+\".\");\n\t\tif (currentGameEngine!=null) {\n\t\t\tmultLeft.setText(\"multiplier: \"+currentGameEngine.getMultiplier()+\"X\");\n\t\t\tscoreTV.setText(\"\"+currentGameEngine.getScore());\n\t\t} else {\n\t\t\tscoreTV.setText(\"0\");\n\t\t}\n\n\t\t//errorTV.setText(\"\"+mFrameNum);\n\t\t\n\t\t\n\t}",
"@Override\n public void run() {\n if (!started) {\n timerTxt.setText(\"00:00:00\");\n }\n else {\n long currentTime = System.currentTimeMillis() - startTime;\n updateTime = currentTime;\n int secs = (int) (updateTime / 1000);\n int mins = secs / 60;\n int hours = mins / 60;\n secs %= 60;\n timerTxt.setText(\"\" + String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs), TextView.BufferType.EDITABLE);\n handler.post(this);\n }\n }",
"@Override\n public void run() {\n if (!MainActivity.pause) {\n MainActivity.fetch = MainActivity.fetch - 1;\n MainActivity.cpbProgress.setProgress(MainActivity.fetch);\n if (MainActivity.fetch < 10) {\n MainActivity.tvTimer.setText(Constant.ZERO + MainActivity.fetch + \"\");\n } else {\n MainActivity.tvTimer.setText(MainActivity.fetch + \"\");\n }\n if (MainActivity.fetch == 0) {\n /*Toast t=Toast.makeText(MainActivity.act, \"Sorry time is Up....\",4000);//////..........not working............///////\n t.show();*/\n finish();\n System.exit(0);\n }\n } else {\n i--;\n }\n }",
"private void showTime()\n {\n showText(\"Time: \" + time, 700, 25);\n }",
"private void startTimer(long noOfMinutes) {\n countDownTimer = new CountDownTimer(noOfMinutes, 1000) {\n public void onTick(long millisUntilFinished) {\n millis = millisUntilFinished;\n //Convert milliseconds into hour,minute and seconds\n String hms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(millis), TimeUnit.MILLISECONDS.toMinutes(millis) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)), TimeUnit.MILLISECONDS.toSeconds(millis) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)));\n tvTestTime.setText(hms);//set text\n }\n\n public void onFinish() {\n /*AlertDialog.Builder alertDialog= new AlertDialog.Builder(PracticeTestQAActivity.this);\n alertDialog.setTitle(getString(R.string.title_TestDurationExpired));\n alertDialog.setMessage(getString(R.string.msg_TestDurationExpired));\n alertDialog.setIcon(R.drawable.information);\n alertDialog.setPositiveButton(\"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n countDownTimer = null;//set CountDownTimer to null\n stopCountdown();\n }\n });\n alertDialog.show();\n*/\n countDownTimer = null;//set CountDownTimer to null\n stopCountdown();\n tvTestTime.setText(\"finish\");\n // tvTestTime.setText(\"TIME'S UP!!\"); //On finish change timer text\n\n tvTestTime.setVisibility(View.GONE);\n //goToResultActivity();\n }\n }.start();\n\n }",
"@Override\n public void run() {\n while (active) {\n \n tSec.setText(seconds+\"\");\n tMin.setText(minutes+\"\");\n tHours.setText(hours+\"\");\n \n seconds++;\n \n try {\n TimeUnit.SECONDS.sleep(DELAY);\n } \n catch (InterruptedException ex) {\n }\n\n if (seconds >= 59) {\n seconds = -1;\n minutes++;\n }\n\n if (minutes >= 59) {\n seconds = -1;\n minutes = 0;\n hours++;\n }\n }\n }",
"@FXML\r\n\t void countDownMessage() throws InterruptedException {\n\t\t \tdisplayMessage.setText(\"3\"); \r\n\t\t \ttext = displayMessage.getText();\r\n\t\t timeSeconds = Integer.parseInt(text);\r\n\t\t \r\n\t\t Timer clock = new Timer();\r\n\t\t clock.scheduleAtFixedRate(new TimerTask() {\r\n\t\t public void run() {\r\n\t\t if(timeSeconds >= 0)\r\n\t\t {\r\n\t\t \tdisplayMessage.setText(Integer.toString(timeSeconds));\r\n\t\t timeSeconds--; \r\n\t\t }\r\n\t\t else {\r\n\t\t clock.cancel();\r\n\t\t displayMessage.setText(\"GO!\");\r\n\t\t try {\r\n\t\t\t\t\t\t\t\tcountDown();\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t \r\n\t\t //do something here after says GO!\r\n\t\t wordCount.setVisible(true);\r\n\t\t wordMax.setVisible(true);\r\n\t\t slash.setVisible(true);\r\n\t\t counterBox.setVisible(true);\r\n\t\t }\r\n\t\t }\r\n\t\t }, 1000,1000);\r\n }",
"@Override\n public void onTick(long leftTimeInMilliseconds) {\n long seconds = leftTimeInMilliseconds / 1000;\n barTimer.setProgress((int) seconds);\n\n }",
"private void timmer() {\n showTimmerOptions();\n\n\n\n final int val = 500;\n taskProgressInner = (ProgressBar) findViewById(com.ryansplayllc.ryansplay.R.id.TaskProgress_Inner);\n new Thread(new Runnable() {\n public void run() {\n int tmp = (val / 100);\n\n for (int incr = 0; incr <= val; incr++) {\n\n try {\n taskProgressInner.setProgress(incr);\n if ((incr % 100) == 0) {\n tmp--;\n }\n Thread.sleep(10);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }).start();\n\n // intilaizating count down timer object\n progressDialog.dismiss();\n countDownTimer = new CountDownTimer(4000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n countDownTextView.setText(Long\n .toString(millisUntilFinished / 1000));\n\n\n }\n\n public void onFinish() {\n\n countDownTextView.setText(\"0\");\n\n\n isSelectable = false;\n\n\n // changing text view if player is not umpire\n if (!Utility.isUmpire) {\n\n runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n String message = \"Waiting for the Umpire result.\";\n// showWaitingPopUp(message);\n showBallinPlayView();\n final ImageView gamescreenbackground = (ImageView) findViewById(com.ryansplayllc.ryansplay.R.id.umpirescreenfield);\n gamescreenbackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field);\n\n\n }\n });\n }\n // calling method to submit result\n submitPlayerPrediction();\n }\n };\n isSelectable = true;\n countDownTimer.start();\n\n }",
"public void timePassed(double dt) {\n\n }",
"public void timePassed(double dt) {\n\n }",
"public float getRemainingTime () {\n\t\treturn duration - timer < 0 ? 0 : duration - timer;\n\t}",
"public void onFinish() {\n //set button text to teatype ready\n mStopButton.setText(teatype + \" \" + getResources().getString(R.string.ready));\n //start alarm and vibration\n startAlarm();\n //display toast\n Toast toast = Toast.makeText(context, teatype + \" \" + getResources().getString(R.string.ready), Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL, 0, 50);\n toast.show();\n //replace countdown timer with Ready!\n mTextField.setText(R.string.ready);\n }",
"private void startCountdown(int Seconds, final TextView tv){\n\n countDownTimer = new CountDownTimer(Seconds* 1000 + 1000, 1000) {\n\n public void onTick(long millisUntilFinished) {\n int seconds = (int) (millisUntilFinished / 1000);\n int minutes = seconds / 60;\n seconds = seconds % 60;\n tv.setText(String.format(\"%01d\", seconds));\n }\n\n public void onFinish() {\n tv.setText(\"0\");\n Toast.makeText(getApplicationContext(), R.string.msgTimeExpired, Toast.LENGTH_LONG).show();\n authReject(tv);\n }\n }.start();\n }",
"@Override\n\t\t\t\t\tpublic void onFinish(long time) {\n\t\t\t\t\t\ttextView.append(\"get \" + testPicNum + \" pictures: use \" + time + \"ms\" + \"\\n\");\t\n\t\t\t\t\t}",
"private void updateCountTV()\n {\n TextView countTextview = (TextView) findViewById(R.id.countTV);\n countTextview.setText(\"Counting Jelly Beans gives me \" + countJB);\n }",
"public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_quantidade = inf.findViewById(R.id.volume_12);\n txtV_quantidade.setText(\"\"+progress+\" copo(s)\");\n }",
"public void showTimeLeft(int time, String state);",
"private void clearCountdown(){\n countDownTimer.cancel();\n txt_countdown.setText(\"\");\n }",
"public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}",
"public void setCurrentTime(long time) {\n playerTimeTextView.setText(Utils.getTimeFormat4Hsm2(time) );\n playerTimeTextViewAll.setText(Utils.getTimeFormat4Hsm2(mMusicDuration));\n }",
"public void updateTime()\n {\n lblStatus.setText(\"Up: \" + time);\n\n if (time.getTimeRan() >= 60)\n {\n lblRPM.setText(\"Avg RPM: \"\n + (int) (recoveryAttempts\n / (time.getTimeRan() / 60)));\n ti.setToolTip(\"AR v4 - \"\n + (int) (recoveryAttempts\n / (time.getTimeRan() / 60)) + \" rpm\");\n }\n }",
"@Override\n public void onTick(long millisUntilFinished) {\n\n odliczanie2--;\n Animation animationprzyciski= AnimationUtils.loadAnimation(getApplicationContext(),R.anim.mixed_anim);\n odliczanie.startAnimation(animationprzyciski);\n odliczanie.setText(odliczanie2+\"\");\n\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\tfor (int i = 10; i >=0; i--) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsleep(1000);\r\n\t\t\t\t\ttimer.setText(\"시간:\"+i);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttimer.setText(\"시간종료\");\r\n\t\t\tbtn.setEnabled(false);\r\n\t\t}",
"public void onTick(long millisecondsUnitlFinished){\n\n Log.i(\"info\", String.valueOf(millisecondsUnitlFinished / 1000));\n\n }",
"protected void decrementTime() {\n this.currTimeProgressValue-=2;\n this.pbarTime.setValue(this.currTimeProgressValue);\n setTimeCaption();\n }",
"private void setTime() {\n \n new Timer(0, new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n Date d=new Date();\n SimpleDateFormat time=new SimpleDateFormat(\"hh:mm:ss a\");\n lblTime.setText(time.format(d));\n }\n }).start();\n \n \n }",
"Double getRemainingTime();",
"@Override\n protected void onProgressUpdate(Integer... params) {\n now_tx.setText(String.valueOf(params)); // 계속 현재 포지션 계속 보여주기. ex) 3/14\n if(params[0] == -1){ // 일시 정지 걸렸을 때,\n // --- show the 'pause' sight --\n// text.setText(\"PAUSED\");\n\n }\n }",
"Duration getRemainingTime();",
"@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv.setText(String.format(\"%1.2f\", ((float)progress+20)/200));\r\n\t\t\t}",
"private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }",
"public void timePassed(double dt) {\r\n // Currently- nothing\r\n }",
"private void updateReadingTime(long time) {\n \t\treadingTimeView.setText(String.format(readingTimeFormat, TimeUtils.formatTime(time)));\n \t}"
]
| [
"0.81107897",
"0.75382465",
"0.75345135",
"0.7530553",
"0.7460955",
"0.7449373",
"0.74337965",
"0.72492063",
"0.71963924",
"0.7154165",
"0.7148625",
"0.7093418",
"0.7044095",
"0.7013407",
"0.70068324",
"0.700164",
"0.6967538",
"0.6938776",
"0.6872004",
"0.686151",
"0.68586886",
"0.6843286",
"0.68306774",
"0.682604",
"0.68238294",
"0.68135464",
"0.67979217",
"0.6652328",
"0.6643149",
"0.663843",
"0.65398973",
"0.6502809",
"0.6478839",
"0.64642185",
"0.640697",
"0.64067405",
"0.6395275",
"0.63818985",
"0.63591945",
"0.63339794",
"0.63314795",
"0.63085854",
"0.630726",
"0.629444",
"0.62870896",
"0.62551135",
"0.6214744",
"0.6199359",
"0.6198448",
"0.6193219",
"0.6182295",
"0.6170867",
"0.61700696",
"0.6161447",
"0.6161029",
"0.61477447",
"0.6146273",
"0.614576",
"0.6124347",
"0.6123138",
"0.6121857",
"0.611418",
"0.6099577",
"0.60869825",
"0.60853094",
"0.60686463",
"0.60550314",
"0.60525125",
"0.6043404",
"0.6017734",
"0.60173315",
"0.60002077",
"0.5997111",
"0.5979177",
"0.59757346",
"0.59757346",
"0.5970664",
"0.5953618",
"0.5920859",
"0.5918623",
"0.5917706",
"0.58944947",
"0.587309",
"0.5871325",
"0.58712965",
"0.5860418",
"0.58597326",
"0.58590865",
"0.58563524",
"0.58307993",
"0.5827422",
"0.582299",
"0.58174306",
"0.5808291",
"0.5805928",
"0.5786133",
"0.5768226",
"0.5751722",
"0.5746773",
"0.57431793"
]
| 0.6908066 | 18 |
Failed to read value | @Override
public void onCancelled(DatabaseError error) {
Log.w("aaa", "Failed to read value.", error.toException());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean shouldReadValue();",
"Object readValue();",
"private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignored) {\n throw expected(\"integer error code\");\n }\n stepOver(JsonFormat.ERROR_MESSAGE_FIELD);\n stepOver(JsonToken.VALUE_STRING, \"string value\");\n String message = currentText();\n // TODO read custom error properties here (if we decide to support these)\n stepOver(JsonToken.END_OBJECT);\n return new ErrorValue(errorCode, message, null);\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.w(TAG, \"Failed to read value.\" + databaseError.toString());\n }",
"Text getValue() throws IOException;",
"@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Firebase read \", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(TAG, \"Failed to read value.\", databaseError.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Tag\",\"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Tag\",\"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.d(UIUtil.TAG, \"Failed to read value.\", error.toException());\n }",
"@Test\n void deserialize_test_with_invalid_value() {\n assertThatThrownBy(\n () -> jsonConverter.readValue(\"{\\\"transport\\\": -1}\", TestDTO.class)\n ).isInstanceOf(DataConversionException.class);\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;",
"@Override\r\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\r\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}",
"@Override\r\n public Object getValueFromString(String text_p) throws Exception\r\n {\n return null;\r\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"protected E readValue(LineReader reader, long indexElement) throws IOException {\n int length = (int) getValueLength(indexElement);\n if (length == 0) {\n return getValueConverter().bytesToValue(buffer, 0);\n }\n long valPos = getValuePosition(indexElement);\n if (log.isTraceEnabled()) {\n log.trace(\"readValue: Retrieving value of length \" + length + \" from file at position \" + valPos);\n }\n synchronized (this) {\n reader.seek(valPos);\n if (buffer.length < length) {\n buffer = new byte[length];\n }\n reader.readFully(buffer, 0, length);\n }\n/* for (int i = 0 ; i < length ; i++) {\n System.out.println(buffer[i]);\n }\n */\n return getValueConverter().bytesToValue(buffer, length);\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read test value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\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();",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Jinx\", \"Failed to read value.\", error.toException());\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testFromValueWithException() {\n System.out.println(\"fromValue\");\n String value = \"DELETED\";\n StatusType expResult = StatusType.DELETED;\n StatusType result = StatusType.fromValue(value);\n assertEquals(expResult, result);\n }",
"public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(null, \"Failed to read value.\", error.toException());\n }",
"private @NotNull Val finishReadingValue(@NotNull Tag tag) throws IOException, JsonFormatException {\n\n DatumType type = tag.type;\n @NotNull JsonToken token = currentToken();\n // null?\n if (token == JsonToken.VALUE_NULL) return type.createValue(null);\n // error?\n final @Nullable String firstFieldName;\n if (token == JsonToken.START_OBJECT) { // can be a record or an error\n firstFieldName = nextFieldName(); // advances to next token (field name or end object - in valid cases)\n if (JsonFormat.ERROR_CODE_FIELD.equals(firstFieldName)) return type.createValue(finishReadingError());\n } else firstFieldName = null;\n // datum\n final @NotNull Datum datum = finishReadingDatum(token, firstFieldName, type);\n return datum.asValue();\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Oof2\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Oof2\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(UIUtil.TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Payments\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"taches \", \"Failed to read value.\", error.toException());\n }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"ASDG\", \"Failed to read value.\", error.toException());\n }",
"Object nextValue() throws IOException;",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.d(\"ERROR TAG\", \"Failed to read value.\", error.toException());\n }",
"private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}",
"@BeforeStep\n\tprivate void retriveValue(StepExecution stepExecution) throws PhotoOmniException{\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\" Entering into PMByWICCustomReader.retriveValue() \");\n\t\t}\n\t\ttry {\n\t\t\tJobExecution objJobExecution = stepExecution.getJobExecution();\n\t\t\tExecutionContext objExecutionContext = objJobExecution.getExecutionContext();\n\t\t\tobjPMBYWICReportPrefDataBean = (PMBYWICReportPrefDataBean) objExecutionContext.get(\"refDataKey\");\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\" Error occoured at PMByWICCustomReader.retriveValue() >----> \" + e);\n\t\t\tthrow new PhotoOmniException(e.getMessage());\n\t\t}finally {\n\t\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\t\tLOGGER.debug(\" Exiting From PMByWICCustomReader.retriveValue() >----> \");\n\t\t\t}\n\t\t}\n\t}",
"private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }",
"public InvalidRifValueException(Throwable cause) {\n super(cause);\n }",
"@Override\r\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\r\n //showProgress(false);\r\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"public void testInvalidTextValueWithBrokenUTF8() throws Exception\n {\n final byte[] input = readResource(\"/data/clusterfuzz-cbor-35979.cbor\");\n try (JsonParser p = MAPPER.createParser(input)) {\n assertToken(JsonToken.VALUE_STRING, p.nextToken());\n p.getText();\n fail(\"Should not pass\");\n } catch (StreamReadException e) {\n verifyException(e, \"Truncated UTF-8 character in Short Unicode Name (36 bytes)\");\n }\n\n }",
"public Address getValue() throws UnmappedAddressException, UnalignedAddressException, WrongTypeException;",
"public String getStringValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a string.\");\n }",
"public static int getValue_from_die()\n {\n return value_from_die;\n }",
"@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.i(\"OnCancelled\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"error\", \"Failed to read value.\", error.toException());\n }",
"protected Object readUnknownData() throws IOException {\r\n byte[] bytesValue;\r\n Byte[] bytesV;\r\n Preferences.debug(\"Unknown data; length is \" + elementLength + \" fp = \" + getFilePointer() + \"\\n\", 2);\r\n\r\n if (elementLength <= 0) {\r\n Preferences.debug(\"Unknown data; Error length is \" + elementLength + \"!!!!!\\n\", 2);\r\n\r\n return null;\r\n }\r\n\r\n bytesValue = new byte[elementLength];\r\n read(bytesValue);\r\n bytesV = new Byte[elementLength];\r\n\r\n for (int k = 0; k < bytesValue.length; k++) {\r\n bytesV[k] = new Byte(bytesValue[k]);\r\n }\r\n\r\n return bytesV;\r\n }",
"@Test\n public void shouldThrowExceptionIfFailsToGetVariableAsIntByOid() throws IOException {\n expect(configuration.createPDU(PDU.GET)).andReturn(new PDU());\n expect(snmpInterface.send(isA(PDU.class), same(target))).andThrow(new IOException());\n\n replayAll();\n final Integer variableAsInt = session.getVariableAsInt(\"1\");\n\n assertNull(variableAsInt);\n verifyAll();\n\n }",
"public void testGetValue() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n try {\n test1.getValue();\n }\n catch (Exception e) {\n assertTrue(e instanceof NoSuchElementException);\n }\n }",
"public abstract String getValue();",
"public abstract String getValue();",
"public abstract String getValue();",
"@Override\r\n\t\tpublic long getValue() {\n\t\t\treturn -1;\r\n\t\t}",
"public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = EtudiantDejaInscritExceptionHelper.read(istream);\r\n }"
]
| [
"0.6520245",
"0.644224",
"0.62601036",
"0.6077715",
"0.6027265",
"0.59389204",
"0.5928014",
"0.5897478",
"0.5892562",
"0.5891626",
"0.5821752",
"0.5813256",
"0.5813256",
"0.58093756",
"0.58006567",
"0.5798476",
"0.5776234",
"0.5774579",
"0.57361126",
"0.5728217",
"0.57143444",
"0.5699661",
"0.56832033",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5677442",
"0.5675753",
"0.5673998",
"0.5673998",
"0.5639195",
"0.5639195",
"0.5639195",
"0.5639195",
"0.5639195",
"0.56246144",
"0.56246144",
"0.56246144",
"0.56246144",
"0.56246144",
"0.56246144",
"0.5616912",
"0.56142795",
"0.5613676",
"0.5605406",
"0.5584552",
"0.5570884",
"0.5567774",
"0.5567774",
"0.55625266",
"0.5544951",
"0.55435926",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.5525155",
"0.55243915",
"0.55217975",
"0.5517537",
"0.551731",
"0.55162007",
"0.5509505",
"0.5503448",
"0.55026805",
"0.549577",
"0.5493651",
"0.5481864",
"0.547583",
"0.54632115",
"0.54314864",
"0.54267025",
"0.5424288",
"0.5423057",
"0.54224277",
"0.54224277",
"0.54224277",
"0.54200286",
"0.54182553"
]
| 0.0 | -1 |
Failed to read value | @Override
public void onCancelled(DatabaseError error) {
Log.w("aaa", "Failed to read value.", error.toException());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean shouldReadValue();",
"Object readValue();",
"private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignored) {\n throw expected(\"integer error code\");\n }\n stepOver(JsonFormat.ERROR_MESSAGE_FIELD);\n stepOver(JsonToken.VALUE_STRING, \"string value\");\n String message = currentText();\n // TODO read custom error properties here (if we decide to support these)\n stepOver(JsonToken.END_OBJECT);\n return new ErrorValue(errorCode, message, null);\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.w(TAG, \"Failed to read value.\" + databaseError.toString());\n }",
"Text getValue() throws IOException;",
"@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Firebase read \", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(TAG, \"Failed to read value.\", databaseError.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Tag\",\"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Tag\",\"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.d(UIUtil.TAG, \"Failed to read value.\", error.toException());\n }",
"@Test\n void deserialize_test_with_invalid_value() {\n assertThatThrownBy(\n () -> jsonConverter.readValue(\"{\\\"transport\\\": -1}\", TestDTO.class)\n ).isInstanceOf(DataConversionException.class);\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"abstract Object getValue (String str, ValidationContext vc) throws DatatypeException;",
"@Override\r\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\r\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"public int readValue() { \n\t\treturn (port.readRawValue() - offset); \n\t}",
"@Override\r\n public Object getValueFromString(String text_p) throws Exception\r\n {\n return null;\r\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"protected E readValue(LineReader reader, long indexElement) throws IOException {\n int length = (int) getValueLength(indexElement);\n if (length == 0) {\n return getValueConverter().bytesToValue(buffer, 0);\n }\n long valPos = getValuePosition(indexElement);\n if (log.isTraceEnabled()) {\n log.trace(\"readValue: Retrieving value of length \" + length + \" from file at position \" + valPos);\n }\n synchronized (this) {\n reader.seek(valPos);\n if (buffer.length < length) {\n buffer = new byte[length];\n }\n reader.readFully(buffer, 0, length);\n }\n/* for (int i = 0 ; i < length ; i++) {\n System.out.println(buffer[i]);\n }\n */\n return getValueConverter().bytesToValue(buffer, length);\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read test value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"TAG\", \"Failed to read value.\", error.toException());\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();",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Jinx\", \"Failed to read value.\", error.toException());\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testFromValueWithException() {\n System.out.println(\"fromValue\");\n String value = \"DELETED\";\n StatusType expResult = StatusType.DELETED;\n StatusType result = StatusType.fromValue(value);\n assertEquals(expResult, result);\n }",
"public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(null, \"Failed to read value.\", error.toException());\n }",
"private @NotNull Val finishReadingValue(@NotNull Tag tag) throws IOException, JsonFormatException {\n\n DatumType type = tag.type;\n @NotNull JsonToken token = currentToken();\n // null?\n if (token == JsonToken.VALUE_NULL) return type.createValue(null);\n // error?\n final @Nullable String firstFieldName;\n if (token == JsonToken.START_OBJECT) { // can be a record or an error\n firstFieldName = nextFieldName(); // advances to next token (field name or end object - in valid cases)\n if (JsonFormat.ERROR_CODE_FIELD.equals(firstFieldName)) return type.createValue(finishReadingError());\n } else firstFieldName = null;\n // datum\n final @NotNull Datum datum = finishReadingDatum(token, firstFieldName, type);\n return datum.asValue();\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Oof2\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Oof2\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(UIUtil.TAG, \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"Payments\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"taches \", \"Failed to read value.\", error.toException());\n }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"ASDG\", \"Failed to read value.\", error.toException());\n }",
"Object nextValue() throws IOException;",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.d(\"ERROR TAG\", \"Failed to read value.\", error.toException());\n }",
"private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}",
"@BeforeStep\n\tprivate void retriveValue(StepExecution stepExecution) throws PhotoOmniException{\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\" Entering into PMByWICCustomReader.retriveValue() \");\n\t\t}\n\t\ttry {\n\t\t\tJobExecution objJobExecution = stepExecution.getJobExecution();\n\t\t\tExecutionContext objExecutionContext = objJobExecution.getExecutionContext();\n\t\t\tobjPMBYWICReportPrefDataBean = (PMBYWICReportPrefDataBean) objExecutionContext.get(\"refDataKey\");\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\" Error occoured at PMByWICCustomReader.retriveValue() >----> \" + e);\n\t\t\tthrow new PhotoOmniException(e.getMessage());\n\t\t}finally {\n\t\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\t\tLOGGER.debug(\" Exiting From PMByWICCustomReader.retriveValue() >----> \");\n\t\t\t}\n\t\t}\n\t}",
"private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }",
"public InvalidRifValueException(Throwable cause) {\n super(cause);\n }",
"@Override\r\n public void onCancelled(DatabaseError error) {\n Log.w(\"\", \"Failed to read value.\", error.toException());\r\n //showProgress(false);\r\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }",
"public void testInvalidTextValueWithBrokenUTF8() throws Exception\n {\n final byte[] input = readResource(\"/data/clusterfuzz-cbor-35979.cbor\");\n try (JsonParser p = MAPPER.createParser(input)) {\n assertToken(JsonToken.VALUE_STRING, p.nextToken());\n p.getText();\n fail(\"Should not pass\");\n } catch (StreamReadException e) {\n verifyException(e, \"Truncated UTF-8 character in Short Unicode Name (36 bytes)\");\n }\n\n }",
"public Address getValue() throws UnmappedAddressException, UnalignedAddressException, WrongTypeException;",
"public String getStringValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a string.\");\n }",
"public static int getValue_from_die()\n {\n return value_from_die;\n }",
"@Override\n public void onCancelled(@NonNull DatabaseError error) {\n Log.i(\"OnCancelled\", \"Failed to read value.\", error.toException());\n }",
"@Override\n public void onCancelled(DatabaseError error) {\n Log.w(\"error\", \"Failed to read value.\", error.toException());\n }",
"protected Object readUnknownData() throws IOException {\r\n byte[] bytesValue;\r\n Byte[] bytesV;\r\n Preferences.debug(\"Unknown data; length is \" + elementLength + \" fp = \" + getFilePointer() + \"\\n\", 2);\r\n\r\n if (elementLength <= 0) {\r\n Preferences.debug(\"Unknown data; Error length is \" + elementLength + \"!!!!!\\n\", 2);\r\n\r\n return null;\r\n }\r\n\r\n bytesValue = new byte[elementLength];\r\n read(bytesValue);\r\n bytesV = new Byte[elementLength];\r\n\r\n for (int k = 0; k < bytesValue.length; k++) {\r\n bytesV[k] = new Byte(bytesValue[k]);\r\n }\r\n\r\n return bytesV;\r\n }",
"@Test\n public void shouldThrowExceptionIfFailsToGetVariableAsIntByOid() throws IOException {\n expect(configuration.createPDU(PDU.GET)).andReturn(new PDU());\n expect(snmpInterface.send(isA(PDU.class), same(target))).andThrow(new IOException());\n\n replayAll();\n final Integer variableAsInt = session.getVariableAsInt(\"1\");\n\n assertNull(variableAsInt);\n verifyAll();\n\n }",
"public void testGetValue() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n test1.prev();\n test1.moveToPos(8);\n assertTrue(test1.getValue().inRange(8));\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n try {\n test1.getValue();\n }\n catch (Exception e) {\n assertTrue(e instanceof NoSuchElementException);\n }\n }",
"public abstract String getValue();",
"public abstract String getValue();",
"public abstract String getValue();",
"@Override\r\n\t\tpublic long getValue() {\n\t\t\treturn -1;\r\n\t\t}",
"public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = EtudiantDejaInscritExceptionHelper.read(istream);\r\n }"
]
| [
"0.6520245",
"0.644224",
"0.62601036",
"0.6077715",
"0.6027265",
"0.59389204",
"0.5928014",
"0.5897478",
"0.5892562",
"0.5891626",
"0.5821752",
"0.5813256",
"0.5813256",
"0.58093756",
"0.58006567",
"0.5798476",
"0.5776234",
"0.5774579",
"0.57361126",
"0.5728217",
"0.57143444",
"0.5699661",
"0.56832033",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5678807",
"0.5677442",
"0.5675753",
"0.5673998",
"0.5673998",
"0.5639195",
"0.5639195",
"0.5639195",
"0.5639195",
"0.5639195",
"0.56246144",
"0.56246144",
"0.56246144",
"0.56246144",
"0.56246144",
"0.56246144",
"0.5616912",
"0.56142795",
"0.5613676",
"0.5605406",
"0.5584552",
"0.5570884",
"0.5567774",
"0.5567774",
"0.55625266",
"0.5544951",
"0.55435926",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.55421937",
"0.5525155",
"0.55243915",
"0.55217975",
"0.5517537",
"0.551731",
"0.55162007",
"0.5509505",
"0.5503448",
"0.55026805",
"0.549577",
"0.5493651",
"0.5481864",
"0.547583",
"0.54632115",
"0.54314864",
"0.54267025",
"0.5424288",
"0.5423057",
"0.54224277",
"0.54224277",
"0.54224277",
"0.54200286",
"0.54182553"
]
| 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.exam_page_drower, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
]
| [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
]
| 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.finish) {
resultActivity();
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
]
| [
"0.7904035",
"0.78057915",
"0.77662706",
"0.7727266",
"0.76317817",
"0.76219225",
"0.7584542",
"0.7530336",
"0.7487623",
"0.7457442",
"0.7457442",
"0.7438915",
"0.7421425",
"0.7403424",
"0.73923",
"0.7387485",
"0.7379756",
"0.7370862",
"0.73622537",
"0.73564696",
"0.7345994",
"0.73419464",
"0.73299843",
"0.7327844",
"0.7326043",
"0.73197556",
"0.7317143",
"0.73140186",
"0.7304616",
"0.7304616",
"0.7302084",
"0.7298582",
"0.72940314",
"0.7287458",
"0.72837925",
"0.7281312",
"0.7279086",
"0.7260266",
"0.7260266",
"0.7260266",
"0.7259928",
"0.7259814",
"0.7250412",
"0.72233367",
"0.72201204",
"0.7218085",
"0.72047156",
"0.71999466",
"0.7198876",
"0.719304",
"0.71861094",
"0.7177511",
"0.71693677",
"0.7167732",
"0.7154041",
"0.71537524",
"0.71356887",
"0.7135142",
"0.7135142",
"0.71303266",
"0.71286845",
"0.7124354",
"0.71238357",
"0.71235263",
"0.71224594",
"0.71174574",
"0.71174574",
"0.71174574",
"0.71174574",
"0.71173346",
"0.7117265",
"0.7116576",
"0.71150905",
"0.7112618",
"0.71099126",
"0.7109077",
"0.71057403",
"0.71000075",
"0.70982087",
"0.70952326",
"0.7093795",
"0.7093795",
"0.708655",
"0.7082642",
"0.708111",
"0.7080437",
"0.707404",
"0.70684844",
"0.70619047",
"0.70604676",
"0.7060448",
"0.7051464",
"0.70378536",
"0.70378536",
"0.7036111",
"0.70355594",
"0.70355594",
"0.7032436",
"0.7031054",
"0.70297045",
"0.701964"
]
| 0.0 | -1 |
Handle navigation view item clicks here. | @SuppressWarnings("StatementWithEmptyBody")
@Override
public boolean onNavigationItemSelected(MenuItem item) {
int id = item.getItemId();
drawer = findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onNavigationItemClicked(Element element);",
"@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }",
"void onDialogNavigationItemClicked(Element element);",
"@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }",
"@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }",
"@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }",
"@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }",
"@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }",
"@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}",
"@Override\n public void OnItemClick(int position) {\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}",
"@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }",
"@Override\n public void onItemClick(int pos) {\n }",
"@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }",
"private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }",
"void onMenuItemClicked();",
"@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}",
"@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}",
"@Override\n public void onItemClick(View view, String data) {\n }",
"abstract public void onSingleItemClick(View view);",
"@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }",
"@Override\n public void itemClick(int pos) {\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}",
"@Override\n public void onItemClick(Nson parent, View view, int position) {\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }",
"@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }",
"@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}",
"public void onItemClick(View view, int position);",
"@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}",
"@Override\n public void onItemClick(View view, int position) {\n }",
"@Override\n public void onItemClick(View view, int position) {\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}",
"@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }",
"@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}",
"@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }",
"@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}",
"void onLinkClicked(@Nullable ContentId itemId);",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }",
"void onItemClick(View view, int position);",
"@Override\n public void onClick(View v) {\n startNavigation();\n }",
"void onItemClick(int position);",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}",
"@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }",
"void clickItem(int uid);",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onItemClick(View view, int position) {\n\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }",
"public void onItemClick(View view, int position) {\n\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}",
"@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}",
"void onClick(View item, View widget, int position, int which);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"public void menuClicked(MenuItem menuItemSelected);",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}"
]
| [
"0.7882029",
"0.7235578",
"0.6987005",
"0.69458413",
"0.6917864",
"0.6917864",
"0.6883472",
"0.6875181",
"0.68681556",
"0.6766498",
"0.67418456",
"0.67207",
"0.6716157",
"0.6713947",
"0.6698189",
"0.66980195",
"0.66793925",
"0.66624063",
"0.66595167",
"0.6646381",
"0.6641224",
"0.66243863",
"0.6624042",
"0.66207093",
"0.6602551",
"0.6602231",
"0.6599443",
"0.65987265",
"0.65935796",
"0.6585869",
"0.658491",
"0.65811735",
"0.65765643",
"0.65751576",
"0.65694076",
"0.6561757",
"0.65582377",
"0.65581614",
"0.6552827",
"0.6552827",
"0.6549224",
"0.65389794",
"0.65345114",
"0.65337104",
"0.652419",
"0.652419",
"0.6522521",
"0.652146",
"0.6521068",
"0.6519354",
"0.65165275",
"0.65159816",
"0.65028816",
"0.6498054",
"0.6498054",
"0.64969087",
"0.64937705",
"0.6488544",
"0.64867324",
"0.64866185",
"0.64865905",
"0.6484047",
"0.6481108",
"0.6474686",
"0.64628965",
"0.64551884",
"0.6446893",
"0.64436555",
"0.64436555",
"0.64436555",
"0.64436555",
"0.64436555",
"0.64386237",
"0.643595",
"0.64356565",
"0.64329195",
"0.6432562",
"0.6429554",
"0.64255124",
"0.64255124",
"0.64121485",
"0.64102405",
"0.64095175",
"0.64095175",
"0.64094734",
"0.640727",
"0.64060104",
"0.640229",
"0.6397359",
"0.6392996",
"0.63921124",
"0.63899696",
"0.63885015",
"0.63885015",
"0.63873845",
"0.6368818",
"0.6368818",
"0.63643163",
"0.63643163",
"0.63643163",
"0.6358884"
]
| 0.0 | -1 |
/ mAdapter = new FavorisEventAdapter(getContext(),mFlowerList); mRecyclerView.setAdapter(mAdapter); | @Override
protected void onPostExecute(Void aVoid) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setRecyclerViewAdapter() {\n recyclerView.setAdapter(favouritePageRecyclerViewAdapter);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View view = inflater.inflate(R.layout.fragment_fav, container, false);\n recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);\n recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n fList = new ArrayList<>();\n\n adapter = new FavAdapter(fList, getActivity().getApplicationContext());\n recyclerView.setAdapter(adapter);\n\n fList.addAll(Fav.listAll(Fav.class));\n adapter.notifyDataSetChanged();\n\n\n return view;\n }",
"public void setAdapter(List<DepartureListItem> list) {\n // Save list in class\n departureListItems = list;\n\n // Add to recycler view\n final DepartureAdapter adapter = new DepartureAdapter();\n adapter.setDepartureList(list);\n\n // Set Onclick listener\n adapter.setOnItemClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v){\n RecyclerView.ViewHolder viewHolder = (RecyclerView.ViewHolder) v.getTag();\n DepartureListItem item = adapter.getItem(viewHolder.getAdapterPosition());\n\n onClickEvent(item);\n }\n });\n\n // Set on Long click listener\n adapter.setOnLongItemClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n\n if(favoriteManager != null){\n RecyclerView.ViewHolder viewHolder = (RecyclerView.ViewHolder) v.getTag();\n\n DepartureListItem item = adapter.getItem(viewHolder.getAdapterPosition());\n\n // Save new favorite if not already saved otherwise remove favorite\n if(!favoriteManager.addTravel(item)){\n // Then remove\n favoriteManager.removeTravel(item);\n\n // Show message removed\n Toast.makeText(getContext(), R.string.removed_from_favorite, Toast.LENGTH_SHORT).show();\n\n // Update list\n setAdapter(favoriteManager.getTravels().getFavoriteTravels());\n } else{\n // Show message saved\n Toast.makeText(getContext(), R.string.saved_to_favorite, Toast.LENGTH_SHORT).show();\n }\n }\n return true;\n }\n });\n\n departureList.setAdapter(adapter);\n\n // Hide loading window\n loading.setVisibility(View.GONE);\n }",
"private void populateAdapter(){\n mAdapter = new MovieRecyclerAdapter(context, moviesList, this);\n mRecyclerView.setAdapter(mAdapter);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_test);\n mContext = TestActivity.this;\n // mAdapterINDEX = new OffersAdapters(this, movieList);\n\n // init adapter\n // recyclerViewINDEX = (RecyclerView) findViewById(R.id.recycler_view);\n // RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\n // recyclerViewINDEX.setLayoutManager(mLayoutManager);\n // recyclerViewINDEX.setItemAnimator(new DefaultItemAnimator());\n //recyclerViewINDEX.setAdapter(mAdapterINDEX);\n initialize();\n\n// mQueAdapter = new QuestionAdapter(this, movieList);\n// RecyclerView.LayoutManager mLayoutManager2 = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);\n// queRecyclerView.setLayoutManager(mLayoutManager2);\n// queRecyclerView.setItemAnimator(new DefaultItemAnimator());\n// queRecyclerView.setAdapter(mQueAdapter);\n// final LinearSnapHelper snapHelper = new LinearSnapHelper();\n// snapHelper.attachToRecyclerView(queRecyclerView);\n// queRecyclerView.setOnFlingListener(snapHelper);\n\n\n }",
"public FavoriteAdapter(ArrayList<String> myDataset) { // 초기 데이터형태\n //mContext = myContext;\n mDataset = myDataset;\n }",
"public void setFavoriteInRecyclerView(){\n favoriteViewModel = new ViewModelProvider(requireActivity(), AoE2DecencyInjector.getViewModelFactory()).get(FavoriteViewModel.class);\n favoriteViewModel.getFavoritesCivilizations().observe(getViewLifecycleOwner(), new Observer<List<CivilizationFavoriteItemViewModel>>() {\n @Override\n public void onChanged(List<CivilizationFavoriteItemViewModel> civilizationFavoriteItemViewModels) {\n civilizationFavoriteAdapter.setListItemViewModels(civilizationFavoriteItemViewModels);\n }\n });\n\n favoriteViewModel.getCivAdd().observe(getViewLifecycleOwner(), new Observer<Event<String>>() {\n @Override\n public void onChanged(Event<String> stringEvent) {\n //Do nothing\n }\n });\n\n favoriteViewModel.getCivRem().observe(getViewLifecycleOwner(), new Observer<Event<String>>() {\n @Override\n public void onChanged(Event<String> stringEvent) {\n //Do nothing\n }\n });\n }",
"private void initListFavorite() {\n favoritesList = mApiService.getFavorites();\n mRecyclerView.setAdapter(new MyNeighbourRecyclerViewAdapter(favoritesList, this));\n }",
"public void setUpFavList(ArrayList<service_cat_model>allcats){\n int numberOfColumns = 3;\n myFavRecycler.setLayoutManager(new GridLayoutManager(this, numberOfColumns));\n favAdapter adapter = new favAdapter(allcats,myFavActivity.this);\n // adapter.setClickListener(this);\n myFavRecycler.setAdapter(adapter);\n }",
"MyRecyclerViewAdapter(Context context, List<String> data,List<String> giorno,List<String> primo,List<String> secondo,List<String> contorno,List<String> dolce) {\n this.mInflater = LayoutInflater.from(context);\n this.mdata = data;\n this.mgiorno = giorno;\n this.mprimo = primo;\n this.msecondo = secondo;\n this.mcontorno = contorno;\n this.mdolce = dolce;\n\n\n\n }",
"public void updateList(){\r\n preyFragmentAdapter=new PreyFragmentAdapter(CPreyArrayList,this);\r\n recyclerView.setAdapter(preyFragmentAdapter);\r\n LinearLayoutManager a=new LinearLayoutManager(this.getContext());\r\n recyclerView.setLayoutManager(a);\r\n\r\n\r\n }",
"private void setRecyclerView(List<StockModel> filterviewStockList) {\n recyclerAdapter = new MarketWatcheRecyclerViewAdapter(getActivity(), filterviewStockList);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false);\n mBinding.RvFeedback.setLayoutManager(linearLayoutManager);\n mBinding.RvFeedback.setAdapter(recyclerAdapter);\n\n }",
"private void setDataInRecyclerView(){\n KorisniciAdapter adapter = new KorisniciAdapter(this, korisniciList);\n recyclerView.setAdapter(adapter); // set the Adapter to RecyclerView\n }",
"private void setAdapter(List<MovieList> listMovies) {\n adapter = new CardAdapter(listMovies, this);\n //Adding adapter to recyclerview\n AlphaInAnimationAdapter alphaAdapter = new AlphaInAnimationAdapter(adapter);\n alphaAdapter.setFirstOnly(false);\n recyclerView.setAdapter(alphaAdapter);\n// recyclerView.setAdapter(adapter);\n }",
"private void configureRecyclerView(){\r\n // - Reset list\r\n this.users = new ArrayList<>();\r\n // - Create adapter passing the list of Restaurants\r\n this.mCoworkerAdapter = new CoWorkerAdapter(this.users, Glide.with(this), true);\r\n // - Attach the adapter to the recyclerview to populate items\r\n this.recyclerView.setAdapter(this.mCoworkerAdapter);\r\n // - Set layout manager to position the items\r\n this.recyclerView.setLayoutManager(new LinearLayoutManager(RestaurantDetailActivity.this));\r\n }",
"public void setAdapter() {\n datalist = new ArrayList<>();\n\n adapter = new SoundListAdapter(context, datalist, new AdapterClickListener() {\n @Override\n public void onItemClick(View view, int pos, Object object) {\n\n SoundsModel item = (SoundsModel) object;\n\n if (view.getId() == R.id.done) {\n stopPlaying();\n downLoadMp3(item.id, item.sound_name, item.acc_path);\n } else if (view.getId() == R.id.fav_btn) {\n callApiForFavSound(pos, item);\n } else {\n if (thread != null && !thread.isAlive()) {\n stopPlaying();\n playaudio(view, item);\n } else if (thread == null) {\n stopPlaying();\n playaudio(view, item);\n }\n }\n }\n });\n\n recyclerView.setAdapter(adapter);\n\n\n }",
"private void setUpAdapter(){\n customMovieAdapter= new CustomMovieAdapter(getActivity(),R.layout.list_movie_forecast,movieRowItemsList);\n gridView.setAdapter(customMovieAdapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_favorite, container, false);\n ButterKnife.bind(this, view);\n context = getContext();\n movieHelper = new MovieHelper(context);\n favoritePresenter = new FavoritePresenter(context, this, movieHelper);\n initView();\n\n swipeRefresh.setColorSchemeResources(R.color.colorPrimary);\n swipeRefresh.setRefreshing(true);\n\n favoritePresenter.doMovie();\n // show data in recyclerview\n\n swipeRefresh.setOnRefreshListener(() -> {\n\n favoriteAdapter.notifyDataSetChanged();\n favoritePresenter.doMovie();\n\n });\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n rootView = inflater.inflate(R.layout.fragment_listadocie_favoritos, container, false);\n Log.d(\"listadoCIEfavoritos\",\"onCreateView\");\n\n\n list = getStringArrayPref(getActivity(), \"Codigo_Guardados\");\n\n Preferencias pPreferencia = new Preferencias(getContext()) ;\n mIsPremium = pPreferencia.obtenerPremium();\n\n\n mAnuncio = pPreferencia.obtenerAnuncio();\n\n\n if(!mIsPremium)\n {\n pPreferencia.guardarAnuncio(mAnuncio + 1);\n\n final Globals globalVariable = (Globals) getContext().getApplicationContext();\n final InterstitialAd mItestitialAd = globalVariable.getInterstitial();\n\n if (mItestitialAd.isLoaded() && mAnuncio > 3) {\n pPreferencia.guardarAnuncio(0);\n mItestitialAd.show();\n } else {\n Log.d(\"TAG\", mAnuncio + \"\");\n }\n }\n\n\n recyclerView = rootView.findViewById(R.id.recycleCIEFavoritos);\n recyclerView.setHasFixedSize(true);\n\n final LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new listarEnfermedades(getContext());\n recyclerView.setAdapter(mAdapter);\n\n\n\n return rootView;\n\n }",
"private void setupRecycler() {\n final LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n RecyclerView attractionsRecycler = (RecyclerView) getActivity().findViewById(R.id.contentMain_attractionsRecycler);\n attractionsRecycler.setLayoutManager(linearLayoutManager);\n\n attractionsAdapter = new AttractionRowAdapter(getActivity(), FavouritesListFragment.this, DataManager.currentFavouritesList);\n attractionsRecycler.setAdapter(attractionsAdapter);\n }",
"private void setUpRecycler() {\n Log.d(\"MainActivity\", \"setUpRecycler : start\");\n // Connecting the recyclerview to the view in the layout\n prayerRecyclerView = findViewById(R.id.recycler_main_movie);\n\n // Creating our custom adapter\n prayerRecyclerAdapter = new PrayerRecyclerAdapter(this, prayerList);\n Log.d(\"MainActivity\", \"setUpRecycler : prayerList = \" + prayerList.size());\n // Setting the adapter to our recyclerview\n prayerRecyclerView.setAdapter(prayerRecyclerAdapter);\n\n // Creating and setting a layout manager.\n // Note that the manager is VERTICAL, thus a vertical list\n LinearLayoutManager layout = new LinearLayoutManager(\n this, LinearLayoutManager.VERTICAL, false);\n prayerRecyclerView.setLayoutManager(layout);\n Log.d(\"MainActivity\", \"setUpRecycler : stop\");\n }",
"public void initRecyclerView() {\n\r\n\r\n recyclerView.setHasFixedSize(true);\r\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\r\n\r\n\r\n adapter = new LokerAdapter(getContext(), itemList);\r\n recyclerView.setAdapter(adapter);\r\n\r\n }",
"@Override\n public void refreshRecipeList() {\n favouritePageRecyclerViewAdapter.notifyDataSetChanged();\n\n }",
"public MyNewCustomerRecyclerViewAdapter(List<Mobile_Adjust_DB> items) { // , OnListFragmentInteractionListener listener\n lstTaxInvoice = items;\n// mListener = listener;\n }",
"public void bind(FavoriteList favoriteList) {\n\n this.favoriteList = favoriteList;\n title.setText(favoriteList.getTitle());\n releaseDate.setText(favoriteList.getReleaseDate());\n\n title.setText(favoriteList.getTitle());\n rating.setText(String.valueOf(favoriteList.getRating()));\n\n if(favoriteList.getPosterPath()==null){\n Glide.with(itemView)\n .load(R.drawable.empty)\n .apply(RequestOptions.placeholderOf(R.color.colorAccent))\n .into(poster);\n }else{\n Glide.with(itemView)\n .load(IMAGE_URL + favoriteList.getPosterPath())\n .apply(RequestOptions.placeholderOf(R.color.colorAccent))\n .into(poster);\n }\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_restaurant, container, false);\n System.out.print(\"View created\");\n Bundle bundle = this.getArguments();\n Loc = bundle.getString(\"Location\");\n System.out.println(Loc);\n\n recyclerView = (RecyclerView) v.findViewById(R.id.recycle1);\n recyclerView.setAdapter(recyclerViewadapter);\n recyclerView.setLayoutManager(layoutManagerOfrecyclerView);\n layoutManagerOfrecyclerView = new LinearLayoutManager(getActivity());\n recyclerViewadapter = new RestaurantRecycler(getActivity(), ListOfdataAdapter);\n recyclerView.setHasFixedSize(true);\n\n\n new AsyncFetch(Loc).execute();\n\n ImageTitleNameArrayListForClick = new ArrayList<>();\n\n ListOfdataAdapter = new ArrayList<>();\n\n\n\n\n\n /* JSON_HTTP_CALL();\n\n // Implementing Click Listener on RecyclerView.\n recyclerView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {\n\n GestureDetector gestureDetector = new GestureDetector(getActivity(), new GestureDetector.SimpleOnGestureListener() {\n\n @Override public boolean onSingleTapUp(MotionEvent motionEvent) {\n\n return true;\n }\n\n });\n @Override\n public boolean onInterceptTouchEvent(RecyclerView Recyclerview, MotionEvent motionEvent) {\n\n view = Recyclerview.findChildViewUnder(motionEvent.getX(), motionEvent.getY());\n\n if(view != null && gestureDetector.onTouchEvent(motionEvent)) {\n\n //Getting RecyclerView Clicked Item value.\n RecyclerViewItemPosition = Recyclerview.getChildAdapterPosition(view);\n\n // Showing RecyclerView Clicked Item value using Toast.\n Toast.makeText(getActivity(), ImageTitleNameArrayListForClick.get(RecyclerViewItemPosition), Toast.LENGTH_LONG).show();\n }\n\n return false;\n }\n\n @Override\n public void onTouchEvent(RecyclerView Recyclerview, MotionEvent motionEvent) {\n\n }\n\n @Override\n public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {\n\n\n }});*/\n return v;\n }",
"private void setAdapter(){\n ArrayList<Veranstaltung>ver = new ArrayList<>(studium.getLVS());\n recyclerView = findViewById(R.id.rc);\n LinearLayoutManager manager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(manager);\n recyclerView.setHasFixedSize(true);\n adapter = new StudiumDetailsRecylerAdapter(ver);\n recyclerView.setAdapter(adapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attention, container, false);\n unbinder = ButterKnife.bind(this, view);\n initData();\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n rvReaction.setLayoutManager(layoutManager);\n BaseQuickAdapter adapter = new BaseQuickAdapter(R.layout.item_tuijian, ivs) {\n @Override\n protected void convert(BaseViewHolder helper, Object item) {\n helper.setImageResource(R.id.iv_item, (Integer) item);\n }\n\n @Override\n public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {\n\n }\n };\n rvReaction.setAdapter(adapter);\n adapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(BaseQuickAdapter adapter, View view, int position) {\n\n }\n });\n return view;\n }",
"private void InitializeAdapter() {\n arrayAdapter = new PlanListRVArrayAdapter(mPlanList);\n recyclerView.setAdapter(arrayAdapter);\n /* arrayAdapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {\n @Override\n public void onChanged() {\n super.onChanged();\n //arrayAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onItemRangeChanged(int positionStart, int itemCount) {\n // arrayAdapter.notifyItemRangeChanged(positionStart,itemCount);\n }\n\n @Override\n public void onItemRangeInserted(int positionStart, int itemCount) {\n // arrayAdapter.notifyItemRangeRemoved(positionStart,itemCount);\n }\n\n @Override\n public void onItemRangeRemoved(int positionStart, int itemCount) {\n // arrayAdapter.notifyItemRangeRemoved(positionStart,itemCount);\n }\n\n @Override\n public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {\n // arrayAdapter.notifyItemMoved(fromPosition,toPosition);\n // TODO itemcount가 1일 경우이므로 1보다 크면 제대로 동작하지 않는다.\n }\n });\n*/\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_event_list, container, false);\n\n recyclerView=(RecyclerView) view.findViewById(R.id.recycler_view_events);\n bundle=getArguments();\n type=bundle.getString(\"type\");\n Log.i(\"type\",type);\n day=bundle.getInt(\"day\");\n\n scheduleEventsAdapter=new ScheduleEventsAdapter(type,day,getContext());\n recyclerView.setAdapter(scheduleEventsAdapter);\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n Log.i(\"reached\",\"here\");\n\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab_sekarang, container, false);\n recyclerView = view.findViewById(R.id.list_match_sekarang);\n// adapter = new EventDetailAdapter(events);\n// recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n// recyclerView.setAdapter(adapter);\n\n return view;\n }",
"private void setRecyclerView(ArrayList<NotificationResponse.NotificationList> myArrayList) {\n OnItemClickListener onItemClickListener = new OnItemClickListener() {\n @Override\n public void onClick(int position, Object obj) {\n /* FavoriteOfferListResponse.Category category = (FavoriteOfferListResponse.Category) obj;\n Intent intent = new Intent(PushNotificationActivity.this, StoreDetailsActivity.class);\n intent.putExtra(StoreDetailsActivity.STORE_ID, category.getStoreId());\n intent.putExtra(StoreDetailsActivity.STORE_NAME, category.getStoreName());\n intent.putExtra(StoreDetailsActivity.CATEGORY_ID, \"\");\n intent.putExtra(StoreDetailsActivity.PRODUCT_TYPE, \"\");\n startActivity(intent);*/\n }\n };\n activityBinding.recyclerView.setLayoutManager(new GridLayoutManager(PushNotificationActivity.this, 1));\n activityBinding.recyclerView.setAdapter(new NotificationAdapter(PushNotificationActivity.this, myArrayList,\n onItemClickListener));\n }",
"@Override\n public void run() {\n adapter = new DatabaseCitiesAdapter(getApplicationContext(), activity ,dbCities);\n recyclerView.setAdapter(adapter);\n recyclerView.invalidate();\n }",
"private void initRecyclerView(){\n facility_RCV_result.setHasFixedSize(true);\n layoutManager = new LinearLayoutManager(this.getContext());\n facility_RCV_result.setLayoutManager(layoutManager);\n mAdapter = new FacilityRecyclerViewAdapter(facilityArrayList);\n facility_RCV_result.setAdapter(mAdapter);\n }",
"@Override\n public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { //이 함수는 RecyclerView의 항목화면 연결\n View view;\n Context context = parent.getContext();\n LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n // if(viewType == Code.ViewType.STATION_FAV){\n view = inflater.inflate(R.layout.row_favorite, parent, false);\n // mContext = view.getContext();\n return new FavStationViewHolder(view);\n /*}else{\n view = inflater.inflate(R.layout.row_favorite_bus, parent, false);\n return new FavBusViewHolder(view);\n }*/\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n rootview = inflater.inflate(R.layout.fragment_list_restaurant, container, false);\n\n // Init the array\n restaurants = new ArrayList<Restaurant>();\n\n // Init Realm\n Realm.init(rootview.getContext());\n\n RealmConfiguration config = new RealmConfiguration.Builder().deleteRealmIfMigrationNeeded().build();\n\n Realm realm = Realm.getInstance(config);\n\n // Get all the Restaurants\n try {\n RealmResults<Restaurant> restaurantRealmResults = realm.where(Restaurant.class).findAll();\n\n for (Restaurant emplacementRealm : restaurantRealmResults){\n restaurants.add(emplacementRealm);\n\n }\n } catch (Exception e){\n Log.e(\"IMERIR\", \"Error realm get restaurants \" + e.getLocalizedMessage());\n }\n\n\n\n RecyclerViewAdapterListRestaurant adapter;\n adapter = new RecyclerViewAdapterListRestaurant(restaurants, this.getActivity().getLayoutInflater());\n\n\n RecyclerView recyclerView = (RecyclerView) rootview.findViewById(R.id.rv_restaurant);\n recyclerView.addOnItemTouchListener(new RecyclerItemClickListener(getActivity(), recyclerView, new RecyclerItemClickListener.OnItemClickListener() {\n @Override\n public void onItemClick(View view, int position) {\n Intent intent = new Intent(getActivity(), DescriptionRestaurantActivity.class);\n\n intent.putExtra(\"idRestaurant\", restaurants.get(position).getId());\n startActivity(intent);\n }\n\n @Override\n public void onItemLongClick(View view, int position) {\n\n }\n }));\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n recyclerView.setAdapter(adapter);\n\n return rootview;\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n }",
"public void refreshList()\n {\n final ArrayAdapter adapter = (ArrayAdapter)this.foodListAdapter;\n this.getActivity().runOnUiThread(new Runnable() {\n public void run() {\n adapter.notifyDataSetChanged();\n }\n });\n }",
"public FeedRecyclerAdapter() {\n super();\n }",
"public RecyclerViewAdapter(List<String> arrayList)\n {\n this.arraylist = arrayList;\n\n }",
"RecyclerViewAdapter(ArrayList namaList, ArrayList jurusanList, ArrayList nimList){\n this.namaList = namaList;\n this.jurusanList = jurusanList;\n this.nimList = nimList;\n }",
"@Override\n public void onStart() {\n super.onStart();\n if (ref != null) {\n // listens to firebase database referenced location by addValueEventListener function\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n recipeList = new ArrayList<>();\n for (DataSnapshot ds : dataSnapshot.getChildren())\n // appends the recipe details into recipeList arraylist\n recipeList.add(ds.getValue(Recipe.class));\n\n }\n Log.e(\"RecipeList: \",recipeList.toString());\n // sets the grid view layout to set layout view for embedding recycler view into it\n layoutManager = new GridLayoutManager(getActivity(), 2);\n // sets recycler view\n recyclerView.setLayoutManager(layoutManager);\n if(getActivity() != null){\n recipeAdapter = new RecipeAdapter(recipeList, getActivity());\n recyclerView.setAdapter(recipeAdapter);\n recipeAdapter.setOnItemClickListener(new RecipeAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(int position) {\n Recipe recipe = recipeList.get(position);\n Intent intent = new Intent(getContext(), RecipeView.class);\n intent.putExtra(SearchFragment.RECIPE, recipe);\n getContext().startActivity(intent);\n }\n\n @Override\n public void onLikeClick(final int position) {\n Map<String, Object> favorites_recipe = new HashMap<>();\n if (language.equals(\"fr\")) {\n favorites_recipe.put(\"rName\", recipeList.get(position).getrNameFr());\n } else if (language.equals(\"hi\")) {\n favorites_recipe.put(\"rName\", recipeList.get(position).getrNameHi());\n } else if (language.equals(\"uk\")) {\n favorites_recipe.put(\"rName\", recipeList.get(position).getrNameUk());\n } else {\n favorites_recipe.put(\"rName\", recipeList.get(position).getrName());\n }\n favorites_recipe.put(\"rImage\", recipeList.get(position).getrImage());\n favorites_recipe.put(\"rTime\", recipeList.get(position).getrTime());\n favorites_recipe.put(\"rVideo\", recipeList.get(position).getrVideo());\n\n if(mAuth.getCurrentUser() != null){\n final String userId = mAuth.getCurrentUser().getUid();\n ref_user_favourites = FirebaseDatabase.getInstance().getReference().child(\"User\").child(userId).child(\"favourites\").child(recipeList.get(position).getrName());\n ref_user_favourites.updateChildren(favorites_recipe);\n }\n }\n\n @Override\n public void onUnLikeClick(int position) {\n if (mAuth.getCurrentUser() != null) {\n String userId = mAuth.getCurrentUser().getUid();\n ref_user_favourites_unlike = FirebaseDatabase.getInstance().getReference().child(\"User\").child(userId).child(\"favourites\").child(recipeList.get(position).getrName());\n ref_user_favourites_unlike.removeValue();\n } else {\n Toast.makeText(getActivity(), \"Login/SignUp is required\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Toast.makeText(getActivity(), databaseError.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n fetch_dinner_recipes();\n }\n\n // on refresh reloads the views\n pullToRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n popular_today_text.setText(\"Popular Today\");\n recipe_dinner.setText(\"Dinner\");\n recyclerView_dinner.setVisibility(View.VISIBLE);\n onStart();\n persistentSearchView.setNavigationDrawable(getResources().getDrawable(R.drawable.ic_search));\n persistentSearchView.setShowSearchMenu(true);\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n if (pullToRefresh.isRefreshing()) {\n pullToRefresh.setRefreshing(false);\n }\n }\n }, 1000);\n }\n });\n chip_selection.clearCheck();\n persistentSearchView.closeSearch();\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n DatabaseReference mDatabase= FirebaseDatabase.getInstance().getReference(\"PostedParkingLot\");\r\n // Inflate the layout for this fragment\r\n final Fragment_List.OnlistItemSelecteListener mListener;\r\n try{\r\n mListener=(Fragment_List.OnlistItemSelecteListener)getContext();\r\n }catch (ClassCastException e)\r\n {\r\n throw new ClassCastException(\"The hosting activity of the Fragment \"+ \"forget to implement\" +\r\n \"OnFragmentInteractionListener\");\r\n }\r\n final View rootView=inflater.inflate(R.layout.fragment_my_recycler_view, container, false);\r\n mRecyclerView=(RecyclerView)rootView.findViewById(R.id.cardList);\r\n mRecyclerView.setHasFixedSize(true);\r\n mLayoutManager=new LinearLayoutManager(getActivity());\r\n mRecyclerView.setLayoutManager(mLayoutManager);\r\n Query query=mDatabase.orderByChild(\"reserved\").equalTo(false);\r\n mRecyclerViewAdapter=new MyFirebaseRecylerAdapter(PostedParkingLot.class,R.layout.fragment_my_recycler_view\r\n , MyFirebaseRecylerAdapter.ParkingLotHolder.class,query,getActivity(),mImgMemoryCache);\r\n mRecyclerView.setAdapter(mRecyclerViewAdapter);\r\n\r\n// //flipAnimation();\r\n mRecyclerViewAdapter.setOnItemClickListener(new MyFirebaseRecylerAdapter.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(View view,boolean imageLoaded) {\r\n mListener.onListItemSelected(view,imageLoaded);\r\n }\r\n\r\n// @Override\r\n// public void onItemLongClick(View view, int position) {\r\n// //getActivity().startActionMode(new ActionBarCallBack(position,movieData,mRecyclerViewAdapter));\r\n//\r\n// }\r\n\r\n// @Override\r\n// public void onOverflowMenuClick(View v, final int position) {\r\n// PopupMenu popup=new PopupMenu(getActivity(),v);\r\n// popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\r\n// @Override\r\n// public boolean onMenuItemClick(MenuItem item) {\r\n// switch(item.getItemId()){\r\n// case R.id.duplicate:\r\n// Movie cloud=mRecyclerViewAdapter.getItem(position);\r\n// cloud.setName(cloud.getName()+\"-New\");\r\n// cloud.setId(cloud.getId()+\"-New\");\r\n// ref.child(cloud.getId()).setValue(cloud);\r\n// return false;\r\n// case R.id.delete:\r\n// Movie cloudDelete=mRecyclerViewAdapter.getItem(position);\r\n// ref.child(cloudDelete.getId()).removeValue();\r\n// return false;\r\n//\r\n// }\r\n// return false;\r\n// }\r\n// });\r\n// MenuInflater inflater=popup.getMenuInflater();\r\n// inflater.inflate(R.menu.contextual_or_popup_menu,popup.getMenu());\r\n// popup.show();\r\n// }\r\n });\r\n mRecyclerView.getItemAnimator().setAddDuration(500);\r\n mRecyclerView.getItemAnimator().setRemoveDuration(500);\r\n mRecyclerView.getItemAnimator().setMoveDuration(500);\r\n mRecyclerView.getItemAnimator().setChangeDuration(500);\r\n adapterAnimation();\r\n flipAnimation();\r\n //defaultAnimation();\r\n // SlideInLeftAnimation();\r\n return rootView;\r\n\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_fruits, container, false);\n\n FirebaseApp.initializeApp(getActivity());\n database = FirebaseDatabase.getInstance();\n mRef = database.getReference();\n\n fruitsList = new ArrayList<>();\n\n recyclerView = v.findViewById(R.id.fruits_rv);\n\n //Retrieve from Firebase..\n callDatabae();\n\n //Passing the full list to the RecyclerView adapter to show them,\n // Passing the Activity context too letting the adapter know which Activity is calling in the whole App\n adapter = new ProductRecyclerAdapter(this.getActivity(), fruitsList);\n recyclerView.setAdapter(adapter);\n\n //Showing the RecyclerView Elements using the GridView Scheme, 2 Cards in each row, propagating vertically,\n //Wrapping all passed cards with no limit\n gridLayoutManager = new GridLayoutManager(getActivity(), 2, GridLayoutManager.VERTICAL, false);\n\n recyclerView.setLayoutManager(gridLayoutManager);\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_seven, container, false);\n recyclerView = v.findViewById(R.id.recyclerId);\n\n\n // intent();\n\n\n // recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n GridLayoutManager grid = new GridLayoutManager(getActivity(), 3, GridLayoutManager.VERTICAL, false);\n // recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setAdapter(adapter);\n recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(grid);\n\n // myAdapter.setOnItemClickListener((Adapter.OnItemClickListener) getActivity().getApplicationContext());\n\n\n\n adapter = new Adapter7(this, list);\n\n adapter.setOnItemClickListener(new Adapter7.ClickListener() {\n @Override\n public void onItemClick(int position, View v) {\n\n // Toast.makeText(getApplicationContext(), \"onclick:\" + position, Toast.LENGTH_LONG).show();\n\n if (position == 0) {\n Intent intent = new Intent(getActivity(), Adorama.class);\n startActivity(intent);\n\n }\n\n if (position == 1) {\n Intent intent = new Intent(getActivity(), Apple.class);\n startActivity(intent);\n\n }\n\n if (position == 2) {\n Intent intent = new Intent(getActivity(), Craig.class);\n startActivity(intent);\n\n }\n\n if (position == 3) {\n Intent intent = new Intent(getActivity(), Frys.class);\n startActivity(intent);\n\n }\n\n if (position == 4) {\n Intent intent = new Intent(getActivity(), Rakuten.class);\n startActivity(intent);\n\n }\n\n if (position == 5) {\n Intent intent = new Intent(getActivity(), Sears.class);\n startActivity(intent);\n\n }\n\n if (position == 6) {\n Intent intent = new Intent(getActivity(), Tiger.class);\n startActivity(intent);\n\n }\n\n if (position == 7) {\n Intent intent = new Intent(getActivity(), Woot.class);\n startActivity(intent);\n\n }\n\n\n if (position == 8) {\n Intent intent = new Intent(getActivity(), Sony.class);\n startActivity(intent);\n\n }\n\n\n\n }\n });\n\n\n try{\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"https://api.npoint.io/\")\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n ApiInterface7 apiInterface = retrofit.create(ApiInterface7.class);\n Call<List<PojoClass7>> call=apiInterface.getName();\n call.enqueue(new Callback<List<PojoClass7>>() {\n @Override\n public void onResponse(Call<List<PojoClass7>> call, Response<List<PojoClass7>> response) {\n showIt(response.body());\n\n\n }\n\n @Override\n public void onFailure(Call<List<PojoClass7>> call, Throwable t) {\n\n }\n });\n\n\n\n }catch (Exception e){\n\n\n }\n\n\n return v;\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_events, container, false);\n list = new ArrayList<>();\n activity=this.getActivity();\n activity.setTitle(\"Events\");\n FirebaseApp.initializeApp(getContext());\n //Retrieve From Database\n mDatabase = FirebaseDatabase.getInstance().getReference(\"Events\");\n\n mDatabase.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot dataSnapshot1 : dataSnapshot.getChildren()) {\n //routinelist routinelistobj = dataSnapshot1.getValue(routinelist.class);\n\n EventModel eventModel = dataSnapshot1.getValue(EventModel.class);\n // Toast.makeText(getContext(),eventModel.getmTitle(),Toast.LENGTH_LONG).show();\n\n //RECYCLER VIEW\n\n list.add(eventModel);\n mRecyclerView=(RecyclerView) rootView.findViewById(R.id.recyclerViewEvents);\n mRecyclerView.setHasFixedSize(true);\n mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n //creating recyclerview adapter\n RecyclerViewAdapterEvent adapter= new RecyclerViewAdapterEvent(getActivity(),list);\n\n //setting adapter to recyclerview\n mRecyclerView.setAdapter(adapter);\n\n\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }\n });\n return rootView;\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_wikipets);\n listaWikipets = (RecyclerView)findViewById(R.id.rvWikipets);\n listaWikipets.setLayoutManager(new LinearLayoutManager(this));\n listaPreguntas.add(getString(R.string.pregunta0));\n listaPreguntas.add(getString(R.string.pregunta1));\n listaPreguntas.add(getString(R.string.pregunta2));\n listaPreguntas.add(getString(R.string.pregunta3));\n listaPreguntas.add(getString(R.string.pregunta4));\n listaPreguntas.add(getString(R.string.pregunta5));\n listaPreguntas.add(getString(R.string.pregunta6));\n listaPreguntas.add(getString(R.string.pregunta7));\n listaPreguntas.add(getString(R.string.pregunta8));\n listaPreguntas.add(getString(R.string.pregunta9));\n\n //Al tocar un item de la lista\n listener = this;\n\n AdaptadorWikipets adaptador = new AdaptadorWikipets(listaPreguntas, this, listener);\n listaWikipets.setAdapter(adaptador);\n }",
"private void setRecyclerViewData() {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_fav, container, false);\n recyclerView = view.findViewById(R.id.fav_rv);\n recyclerView.setLayoutManager(new GridLayoutManager(getContext(),calculateNoOfColumns(getContext())));\n viewModel = ViewModelProviders.of(this).get(FavViewModel.class);\n viewModel.getAllMovies().observe(this, new Observer<List<SearchResult>>() {\n @Override\n public void onChanged(@Nullable List<SearchResult> favourites) {\n adapter = new MainMenuAdapter(getContext(), (ArrayList<SearchResult>)\n favourites,R.layout.list_item_movie,getResources().getString(R.string.fav_type));\n recyclerView.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n }\n });\n return view;\n }",
"private void ConfigRecyclerMovies(){\n movieRecyclerAdapter = new MovieRecyclerAdapter(this);\n popularMovieRecycler.setAdapter(movieRecyclerAdapter);\n popularMovieRecycler.setLayoutManager(new LinearLayoutManager(getActivity()));\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView=inflater.inflate(R.layout.fragment_recommend, container, false);\n final ProgressBar pbRecommend= (ProgressBar) rootView.findViewById(R.id.pbRecommend);\n RecyclerView rvRecommend= (RecyclerView) rootView.findViewById(R.id.rvRecommend);\n final ItemAdapter itemAdapter=new ItemAdapter(getActivity(),new ArrayList<FourSquareItem>());\n\n rvRecommend.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false));\n rvRecommend.setAdapter(itemAdapter);\n Bundle bundle=this.getArguments();\n String userll= bundle.getString(\"ll\");\n ApiService.getApi().getRecommendedVenues(BuildConfig.ClientID,BuildConfig.ClientSecret,userll).enqueue(new Callback<FourSquareJSON>() {\n @Override\n public void onResponse(Call<FourSquareJSON> call, Response<FourSquareJSON> response) {\n\n pbRecommend.setIndeterminate(false);\n pbRecommend.setVisibility(View.GONE);\n FourSquareJSON fJson=response.body();\n ArrayList<FourSquareItem>items=fJson.getResponse().getGroups().get(0).getItems();\n itemAdapter.updateItems(items);\n }\n\n @Override\n public void onFailure(Call<FourSquareJSON> call, Throwable t) {\n Toast.makeText(getActivity(),\"Error in fetching data\",Toast.LENGTH_SHORT).show();\n\n }\n });\n\n return rootView;\n }",
"public CustomAdapter(List<Quiz> quizList) {// Now lets add stuff to the quiz.\n this.quizList = quizList;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_fragment_recycler_view, container, false);\n\n Bundle bundle = getArguments();\n idFuente = bundle.getString(IDFUENTE);\n\n ArticulosController articulosController = new ArticulosController();\n articulosController.obtenerArticulos(idFuente, new ResultListener<List<Articulo>>() {\n @Override\n public void finish(List<Articulo> resultado) {\n articulosAdapterRecyclerView.setArticuloList(resultado);\n }\n });\n\n //LISTA DE NOTICIAS\n //final List<Noticia> noticiaList = new ArrayList<>();\n\n articuloList = new ArrayList<>();\n\n\n EditText ediTextDeBusqueda = (EditText) view.findViewById(R.id.edit_text_de_busqueda);\n\n //<!-- Dos lineas para deshabilitar la tecla enter -->\n ediTextDeBusqueda.setSingleLine(false);\n ediTextDeBusqueda.setInputType(android.text.InputType.TYPE_CLASS_TEXT | android.text.InputType.TYPE_TEXT_VARIATION_EMAIL_SUBJECT);\n\n ediTextDeBusqueda.addTextChangedListener(new TextWatcher() {\n\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n filter(s.toString());\n }\n });\n\n RecyclerView recyclerViewArticulos = (RecyclerView) view.findViewById(R.id.recyclerViewFragment);\n recyclerViewArticulos.setLayoutManager(new LinearLayoutManager(getContext(),LinearLayoutManager.VERTICAL,false));\n\n articulosAdapterRecyclerView = new ArticulosAdapterRecyclerView(getContext(), articuloList,this);\n recyclerViewArticulos.setAdapter(articulosAdapterRecyclerView);\n\n recyclerViewArticulos.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false));\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_check_list, container, false);\n TextView frg_from = (TextView) v.findViewById(R.id.frg_from);\n frg_from.setText(frg_name + \" \" + getFrg_postion);\n\n\n cal = Calendar.getInstance();\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n dateFormatter = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.US);\n cal.set(year, month, day);\n\n\n initLinearBind(v);\n loadJSONFromAsset();\n Spinner spin = (Spinner) v.findViewById(R.id.spinner1);\n //spin.setOnItemSelectedListener(this);\n\n\n ArrayAdapter aa = new ArrayAdapter(getActivity(), android.R.layout.simple_spinner_item, form);\n aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spin.setAdapter(aa);\n\n recyclerView = (RecyclerView)v.findViewById(R.id.recycler_view) ;\n checklistAdapter = new ChecklistAdapter(check_list, new ChecklistAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(ChecklistData item, int pos) {\n Toast.makeText(getActivity(),item.getName()+\",\"+pos, Toast.LENGTH_LONG).show();\n }\n });\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(mLayoutManager);\n // recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(checklistAdapter);\n checklistAdapter.notifyDataSetChanged();\n\n // prepareMovieData();\n\n return v;\n }",
"private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View v = inflater.inflate(R.layout.fragment_savouries, container, false);\n\n mRecyclerView = (RecyclerView) v.findViewById(R.id.savouries_recycler_view);\n mRecyclerView.setHasFixedSize(true);\n mRecyclerView.setNestedScrollingEnabled(false);\n LinearLayoutManager mLinearLayoutManager = new LinearLayoutManager(getActivity());\n\n mLinearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n mRecyclerView.setLayoutManager(mLinearLayoutManager);\n\n initializeData();\n\n adapter = new SavouriesAdapter(savouriesList);\n mRecyclerView.setAdapter(adapter);\n mRecyclerView.addOnItemTouchListener(new RecyclerTouchListener(getActivity(), mRecyclerView, new ClickListener() {\n @Override\n public void onClick(View view, int position) {\n Sweet barfi = savouriesList.get(position);\n Intent in = new Intent(getActivity(), IndividualItemActivity.class);\n in.putExtra(\"name\", barfi.getName());\n in.putExtra(\"thumb\", barfi.getThumb());\n in.putExtra(\"desc\", barfi.getDesc());\n in.putExtra(\"price\", barfi.getPrice());\n startActivity(in);\n }\n\n @Override\n public void onLongClick(View view, int position) {\n\n }\n }));\n mRecyclerView.addOnItemTouchListener(new RecyclerTouchListener(getActivity(), mRecyclerView, new ClickListener() {\n @Override\n public void onClick(View view, int position) {\n Sweet savoury = savouriesList.get(position);\n Intent in = new Intent(getActivity(), IndividualItemActivity.class);\n in.putExtra(\"name\",savoury.getName());\n in.putExtra(\"thumb\",savoury.getThumb());\n in.putExtra(\"desc\",savoury.getDesc());\n in.putExtra(\"price\",savoury.getPrice());\n startActivity(in);\n }\n\n @Override\n public void onLongClick(View view, int position) {\n\n }\n }));\n\n\n\n return v;\n }",
"@Override\r\n public void onDataSetChanged() {\n }",
"@Override\n public void run() {\n\n\n RecyclerView.Adapter adapter = new RecyclerViewAdapter(aa,aa1,aa4,aa5,aa6,aa7,aa8,aa9);\n\n recyclerview.setAdapter(adapter);\n\n\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_search_hotel);\n\n loadDaftarHotel();\n\n /* binding = DataBindingUtil.setContentView(this,R.layout.activity_search_hotel);\n listHotel = new DaftarHotel().HOTEL;\n adapter = new RvHotelAdapter(this,listHotel);\n binding.setHotelAdapter(adapter);\n gantiPencarian = findViewById(R.id.gntPencarian);\n gantiPencarian.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n startActivity(new Intent(SearchHotel.this, Navbar.class));\n }\n });*/\n\n//\n// ArrayList<Hotel> hotel = new ArrayList<>();\n// hotel.add(new Hotel(R.drawable.horison, \"Horison\", \"Jogja\", \"Rp450.000\"));\n//\n// recyclerView = findViewById(R.id.rvHotel);\n// recyclerView.setHasFixedSize(true);\n// manager = new LinearLayoutManager(this);\n// adapter = new RvHotelAdapter(hotel);\n//\n// recyclerView.setLayoutManager(manager);\n// recyclerView.setAdapter(adapter);\n }",
"private void cargarDatosLista(){\n listaInteres= new GsonBuilder().create().fromJson(loadJSONFromAsset(\"fakeInteresesDisponibles.json\", this), Interes[].class);\n\n // Pasamos los datos al adaptador para crear la lista\n adapterListadoInteres = new ListadoInteresesRecyclerAdapter(listaInteres, getApplicationContext());\n // Añade un separador entre los elementos de la lista\n recyclerListadoInteres.addItemDecoration(new SimpleDividerItemDecoration(getApplicationContext()));\n recyclerListadoInteres.setAdapter(adapterListadoInteres);\n\n //Marcamos el interes como favorito\n recyclerListadoInteres.addOnItemTouchListener(new RecyclerItemClickListener(ListadoInteresesActivity.this, new RecyclerItemClickListener.OnItemClickListener() {\n @Override\n public void onItemClick(View v, int position) {\n ImageView ib = (ImageView) v.findViewById(R.id.cvimageFavorito);\n\n if (ListadoInteresesActivity.this.listaInteres[position].getImageFavorito().equals(\"@drawable/ic_favorite_black_24dp\"))\n {\n Toast.makeText(ListadoInteresesActivity.this, R.string.existsfavorito , Toast.LENGTH_SHORT).show();\n \n }\n else\n {\n Toast.makeText(ListadoInteresesActivity.this, R.string.addinteresfavorito, Toast.LENGTH_SHORT).show();\n ib.setImageResource(R.drawable.ic_favorite_black_24dp);\n }\n }\n }));\n adapterListadoInteres.notifyDataSetChanged();\n\n // Oculta el circulo de cargar\n swipeRefreshLayout.setRefreshing(false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_series, container, false);\n\n recyclerView = (RecyclerView) view.findViewById(R.id.lista_series);\n //recyclerView.setHasFixedSize(true);\n lManager = new LinearLayoutManager(getContext());\n recyclerView.setLayoutManager(lManager);\n final Context context = getContext();\n DAO_Series dao_series = new DAO_Series();\n dao_series.get_series_populares(getContext(), 1, new DAO_Series.Series_Callback() {\n @Override\n public void onSuccess(List<Series> lista_series) {\n try {\n Log.i(\"lista\", lista_series.get(1).toString());\n adapter = new Adapter_Series(lista_series,context);\n recyclerView.setAdapter(adapter);\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n });\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.fragment_covid_exposures, container, false);\n unbinder = ButterKnife.bind(this, root);\n\n loggedInUser = (User) Stash.getObject(Constants.LOGGED_IN_USER, User.class);\n\n if (loggedInUser.getProfile_complete() == 0){\n NavHostFragment.findNavController(CovidExposuresFragment.this).navigate(R.id.nav_complete_profile);\n }\n\n\n covidExposureArrayList = new ArrayList<>();\n mAdapter = new CovidExposuresAdapter(context, covidExposureArrayList);\n\n\n recyclerView.setLayoutManager(new LinearLayoutManager(context,LinearLayoutManager.VERTICAL, false));\n recyclerView.setHasFixedSize(true);\n\n //set data and list adapter\n recyclerView.setAdapter(mAdapter);\n\n firstLoad();\n\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n\n if (!recyclerView.canScrollHorizontally(1)) {\n if (myShouldLoadMore && !MY_NEXT_LINK.equals(\"null\")) {\n loadMore();\n }\n }\n }\n });\n\n mAdapter.setOnItemClickListener(new CovidExposuresAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(int position) {\n CovidExposure clickedItem = covidExposureArrayList.get(position);\n// Intent i = new Intent(context, ClickedActivity.class);\n// i.putExtra(\"vehicle\", (Serializable) clickedItem);\n// startActivity(i);\n\n }\n });\n\n\n return root;\n }",
"public void SetRecyclerView(final ArrayList<Stalls> clist, final int cposition){\n RecyclerView stallView = findViewById(R.id.view_Stall);\n\n //set all layout with same size\n stallView.setHasFixedSize(true);\n\n //set LayoutManager\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n stallView.setLayoutManager(layoutManager);\n\n //set condition for food court that does not have information\n if(clist.size() == 0){\n //Bring them to error page\n Intent error = new Intent(StallRV.this,SorryNotAvailablePage.class);\n startActivity(error);\n }\n else{\n //set Adapter + add data into recycler view\n StallAdapter sadapter = new StallAdapter(StallRV.this,clist);\n stallView.setAdapter(sadapter);\n //when rv is clicked\n sadapter.setOnClickListener(new StallAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(int position) {\n //Bring to new intent with required information\n Intent review_Intent = new Intent(StallRV.this, FoodStallReview.class);\n sharedPreferences = getSharedPreferences(MyPREFERENCES,MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(Stallposition,position);\n editor.apply();\n review_Intent.putExtra(\"class\",\"stall\");\n startActivity(review_Intent);\n }\n });\n }\n }",
"@Override\n public void setUpAdapterAndView(List<ListItem> listOfData) {\n this.listOfData = listOfData;\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n\n recyclerView.setLayoutManager(layoutManager);\n\n adapter = new CustomAdapter();\n recyclerView.setAdapter(adapter);\n\n DividerItemDecoration itemDecoration = new DividerItemDecoration(\n recyclerView.getContext(),\n layoutManager.getOrientation()\n );\n\n itemDecoration.setDrawable(\n ContextCompat.getDrawable(\n ListActivity.this,\n R.drawable.divider_white\n )\n );\n\n recyclerView.addItemDecoration(\n itemDecoration\n );\n\n ItemTouchHelper itemTouchHelper = new ItemTouchHelper(createHelperCallback());\n itemTouchHelper.attachToRecyclerView(recyclerView);\n\n\n }",
"private void setDataInRecyclerView() {\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(linearLayoutManager);\n // call the constructor of UsersAdapter to send the reference and data to Adapter\n UsersAdapter usersAdapter = new UsersAdapter(getActivity(), userListResponseData);\n recyclerView.setAdapter(usersAdapter); // set the Adapter to RecyclerView\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_list_resena, container, false);\n ButterKnife.inject(this, view);\n\n actionBarActivity = (AppCompatActivity) getActivity();// obtener actividad en q esta trabajando el fragment\n actionBarActivity.getSupportActionBar().setTitle(getResources().getString(R.string.app_name));// asignar\n actionBarActivity.getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n recyclerCercaDeMi.setHasFixedSize(true);\n RecyclerView.LayoutManager manager = new LinearLayoutManager(getActivity());\n recyclerCercaDeMi.setLayoutManager(manager);\n\n this.pos = vp.dataInformation();\n LOGI(\"ResenaRestaurantFragment POS\", Integer.toString(this.pos));\n LOGI(\" ResenaRestaurantFragment POS Array\", Integer.toString(UILApplication.ITEMS.get(this.pos).getId()));\n if (this.pos != -1) {\n LOGI(\"ResenaRestaurantFragment\", \"==NULL\");\n if (isAdded() && getActivity() != null) {\n if (!SQL.checkResena()) {\n if (Functions.isOnline()) {\n showView(true, mProgressView);\n LOGI(\"POS Array\", Integer.toString(UILApplication.ITEMS.get(this.pos).getId()));\n requestData(UILApplication.ITEMS.get(this.pos).getId());\n } else {\n showView(true, btnConexion);//agergar\n }\n } else {\n setDataAdapte(this.pos);\n }\n }\n }\n return view;\n }",
"private void iniRecyclerView() {\n// RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_view);\n// recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setAdapter(presAdapter);\n }",
"@Override\n public int getItemCount() {\n return filmListDatas.size();\n }",
"@Override\n public void onBindViewHolder(ViewHolder itemViewHolder, int position) {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n\n // Declarar y referenciar el RecyclerView que definimos en el XML\n RecyclerView recyclerView = view.findViewById(R.id.recyclerView);\n\n /*\n * Setear el LayoutManager al RecyclerView (recordar que podemos definir distintos tipos de\n * LayoutManager según la forma en la cual queremos mostrar nuestra lista.)\n */\n\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(),LinearLayoutManager.VERTICAL, false);\n\n /*\n * Setear el LayoutManager que hayamos elegido al RecyclerView referenciado en el paso 1:\n * recyclerView.setLayoutManager(layoutManager);\n */\n recyclerView.setLayoutManager(linearLayoutManager);\n\n\n // Creo la lista que tiene los items.\n List<ItemLista> itemsDeLista = new ArrayList<>();\n\n\n // cargo la lista con los items\n itemsDeLista.add(new ItemLista(\"Batman\",\"Accion\",R.drawable.batman));\n itemsDeLista.add(new ItemLista(\"Damages\", \"Drama\", R.drawable.damages));\n itemsDeLista.add(new ItemLista(\"Destroyer\", \"Drama\", R.drawable.destroyer));\n itemsDeLista.add(new ItemLista(\"El Juicio\", \"Drama\", R.drawable.eljuicio));\n itemsDeLista.add(new ItemLista(\"Inocente\", \"Drama\", R.drawable.inocente));\n itemsDeLista.add(new ItemLista(\"Intern\", \"Drama\", R.drawable.intern));\n itemsDeLista.add(new ItemLista(\"Jhon Wick 2\", \"Accion\", R.drawable.johnwick2));\n itemsDeLista.add(new ItemLista(\"King Kong\", \"Accion\", R.drawable.kong));\n itemsDeLista.add(new ItemLista(\"La Boda de mi Amigo\", \"Comedia\", R.drawable.labodademi));\n itemsDeLista.add(new ItemLista(\"Prometo\", \"Drama\", R.drawable.prometo));\n itemsDeLista.add(new ItemLista(\"Second\", \"Drama\", R.drawable.second));\n itemsDeLista.add(new ItemLista(\"The Good Doctor\", \"Drama\", R.drawable.thegoogdoctor));\n\n /*\n * Crear un Adapter, utilizando la clase definida anteriormente.\n * ItemListaAdapter itemListaAdapter = new ItemAdapter(itemsDeLista);\n *\n */\n ItemListaAdapter itemListaAdapter = new ItemListaAdapter(itemsDeLista);\n\n // Setear al RecyclerView el adapter creado.\n recyclerView.setAdapter(itemListaAdapter);\n\n return view;\n }",
"private void initRecyclerview() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new MovieAdapter(this);\n recyclerView.setAdapter(mAdapter);\n }",
"private void setCommentRecyclerView(final ArrayList<JsonResponseComment> heritageList){\n final RecyclerView heritageRecyclerView = (RecyclerView) findViewById(R.id.comment_recycler_view);\n final CommentAdapter heritageAdapter = new CommentAdapter(getApplicationContext(),heritageList);\n\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n heritageRecyclerView.setLayoutManager(mLayoutManager);\n heritageRecyclerView.setItemAnimator(new DefaultItemAnimator());\n heritageRecyclerView.setAdapter(heritageAdapter);\n heritageAdapter.notifyDataSetChanged();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_explore, container, false);\n \n \n ExploreList = new ArrayList<ExploreNews>();\n\n recyclerView =(RecyclerView) view.findViewById(R.id.recyclerview);\n recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n\n ExploreList.add(new ExploreNews(\n 1,\n \"Apple MacBook Air Core i5 5th Gen - (8 GB/128 GB SSD/Mac OS Sierra)\",\n \"13.3 inch, Silver, 1.35 kg akwkwa kawkawkawk kawkawkwak kawkawkwa awkkaw awkwakaw kawkawkawk 13.3 inch, Silver, 1.35 kg akwkwa kawkawkawk kawkawkwak kawkawkwa awkkaw awkwakaw kawkawkawk 13.3 inch, Silver, 1.35 kg akwkwa kawkawkawk kawkawkwak kawkawkwa awkkaw awkwakaw kawkawkawk 13.3 inch, Silver, 1.35 kg akwkwa kawkawkawk kawkawkwak kawkawkwa awkkaw awkwakaw kawkawkawk 13.3 inch, Silver, 1.35 kg akwkwa kawkawkawk kawkawkwak kawkawkwa awkkaw awkwakaw kawkawkawk\",\n R.drawable.macbook));\n\n ExploreList.add(\n new ExploreNews(\n 1,\n \"Dell Inspiron 7000 Core i5 7th Gen - (8 GB/1 TB HDD/Windows 10 Home)\",\n \"14 inch, Gray, 1.659 kg\",\n R.drawable.dellinspiron));\n\n ExploreList.add(\n new ExploreNews(\n 1,\n \"Microsoft Surface Pro 4 Core m3 6th Gen - (4 GB/128 GB SSD/Windows 10)\",\n \"13.3 inch, Silver, 1.35 kg\",\n R.drawable.surface));\n ExploreList.add(\n new ExploreNews(\n 1,\n \"Microsoft Surface Pro 4 Core m3 6th Gen - (4 GB/128 GB SSD/Windows 10)\",\n \"13.3 inch, Silver, 1.35 kg\",\n R.drawable.surface));\n ExploreList.add(\n new ExploreNews(\n 1,\n \"Microsoft Surface Pro 4 Core m3 6th Gen - (4 GB/128 GB SSD/Windows 10)\",\n \"13.3 inch, Silver, 1.35 kg\",\n R.drawable.surface));\n ExploreList.add(\n new ExploreNews(\n 1,\n \"Microsoft Surface Pro 4 Core m3 6th Gen - (4 GB/128 GB SSD/Windows 10)\",\n \"13.3 inch, Silver, 1.35 kg\",\n R.drawable.surface));\n ExploreList.add(\n new ExploreNews(\n 1,\n \"Microsoft Surface Pro 4 Core m3 6th Gen - (4 GB/128 GB SSD/Windows 10)\",\n \"13.3 inch, Silver, 1.35 kg\",\n R.drawable.surface));\n ExploreList.add(\n new ExploreNews(\n 1,\n \"Microsoft Surface Pro 4 Core m3 6th Gen - (4 GB/128 GB SSD/Windows 10)\",\n \"13.3 inch, Silver, 1.35 kg\",\n R.drawable.surface));\n\n adapter = new ExploreAdapter(getContext(),ExploreList);\n recyclerView.setAdapter(adapter);\n return view;\n }",
"public FavoriteSongAdapter(ArrayList<Song> mListSongAdapter, MainActivity context) {\n this.mainActivity = context;\n this.mListFavoriteSongAdapter = mListSongAdapter;\n this.mInflater = LayoutInflater.from(context);\n }",
"public void setFoods(List<Food> list){\n foodList = list;\n notifyDataSetChanged();\n }",
"public FlatAdapter(List<Flat> myDataset, Context context, RecyclerView recyclerView) {\n mFlatList = myDataset;\n mFlatListFiltered=myDataset;\n mRecyclerV = recyclerView;\n mContext=context;\n setHasStableIds(true);\n }",
"private void loadRecyclerViewItem() {\n for (int i = 0; i < mySongs.size(); i++) {\n Song song = new Song(\n mySongs.get(i),\n mySongs.get(i).getName(),\n getTimeSong(mySongs.get(i))\n );\n songsList.add(song);\n }\n songAdapter = new TheAdapter(songsList,this);\n recyclerView.setAdapter(songAdapter);\n songAdapter.notifyDataSetChanged();\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n\n View v = inflater.inflate(R.layout.fragment_news, container,\n false);\n\n\n\n artikels.add(new Artikel(\"1\", \"Codepolitan in action\", \"Rudi Hartono\"));\n artikels.add(new Artikel(\"2\", \"Ngecode yuk di codepolitan\", \"Rudi Hartono\"));\n\n recyclerView = (RecyclerView)v.findViewById(R.id.recyclerView);\n\n adapter = new ArtikelListAdapter(artikels, getContext());\n recyclerView.setAdapter(adapter);\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n\n\n\n return v;\n }",
"protected void init_adapter()\n {\n manager = new GridLayoutManager(this, 2);\n recycler_view.setLayoutManager(manager);\n //recycler_view.setit\n\n adapter = new NasaApodAdapter();\n\n adapter.setOnItemClickListener(new NasaApodAdapter.OnItemClickListener()\n {\n @Override\n public void onItemClick(Photo photo)\n {\n Log.d(\"APOD\", photo.getImgSrc());\n\n intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(\"photo\", photo);\n\n startActivity(intent);\n }\n });\n }",
"private void initFAQRecyclerView() {\n mFaqAdapter = new FAQAdapter(mFaqs, this);\n mFAQRecyclerView.setAdapter(mFaqAdapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.list_item, container, false);\n\n mContext = getActivity();\n mApiService = UtilsApi.getApiService();\n mAppSession = new AppSession(getActivity());\n\n recyclerView = (RecyclerView) view.findViewById(R.id.list_item);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView.setLayoutManager(new LinearLayoutManager(mContext));\n mAdapter = new DataTransaksiBookedAdapter(mContext);\n recyclerView.setAdapter(mAdapter);\n\n recyclerView.addOnItemTouchListener(new RecyclerTouchListener(mContext, recyclerView, new RecyclerTouchListener.ClickListener() {\n @Override\n public void onClick(View view, int position) {\n Intent detailTrasantion;\n detailTrasantion = new Intent(mContext, DetailTransaksiActivity.class);\n detailTrasantion.putExtra(\"idTransaction\", mAdapter.getTransaksiId(position));\n// detailTrasantion.putExtra(\"receiptUrl\", mAdapter.getReceiptUrl(position));\n view.getContext().startActivity(detailTrasantion);\n }\n\n @Override\n public void onLongClick(View view, int position) {\n\n }\n }));\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = (FrameLayout) inflater.inflate(R.layout.fragment_seniman_list_tawaran, container, false);\n recyclerView = (RecyclerView) rootView.findViewById(R.id.fragment_seniman_list_tawaran_recyclerview);\n adapter = new ListTawaranAdapter(getContext(), eventList, SenimanListTawaranFragment.this);\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n\n recyclerView.setAdapter(adapter);\n\n final FrameLayout rootViewFinal = rootView;\n\n mSwipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.fragment_seniman_list_tawaran_swipeRefreshLayout);\n\n mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n getEvents();\n }\n });\n\n getEvents();\n\n // Inflate the layout for this fragment\n return rootView;\n }",
"private void setUpRecyclerView() {\n\n if (listOfPlants.size() == 0) {\n populatePlantList();\n }\n\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(getContext());\n mAdapter = new RecyclerViewAdapter(listOfPlants, getActivity());\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.setAdapter(mAdapter);\n }",
"public AdapterForDisplayRecipes(Context context, ArrayList<RecipeModel> data) {\n mMainActivity = (MainActivity) context;\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n// this.listener = listener;\n }",
"private void loadSearchBottleInRecycleView() {\n\n String search = txtSearch.getText().toString();\n\n accesLocalCellar = new AccesLocalCellar(SearchActivity.this);\n ArrayList<WineBottle> wineBottleArrayList = (ArrayList<WineBottle>) accesLocalCellar.recoverSearchWineBottleList(search);\n\n mRecyclerView.setHasFixedSize(true);\n\n //mLayoutManager = new LinearLayoutManager(getContext());\n //mRecyclerView.setLayoutManager(mLayoutManager);\n\n mAdapter = new MyAdapterCellarRecyclerView(SearchActivity.this, wineBottleArrayList);\n\n mRecyclerView.setAdapter(mAdapter);\n\n\n //mRecyclerView.setAlpha(0f);\n //mRecyclerView.animate().translationY(0f).alpha(1f).setInterpolator(interpolator).setDuration(2500).start();\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_restaurants);\n mRecycler = (RecyclerView) findViewById(R.id.recycler_restaurants);\n mRecycler.setHasFixedSize(true);\n mRecycler.setLayoutManager(new LinearLayoutManager(getParent()));\n mSwipeRefreshLayout = (SwipeRefreshLayout) this.findViewById(R.id.swipe_rests);\n mSwipeRefreshLayout.setOnRefreshListener(this);\n if(mLatitude == null || mLongitude == null){\n mLatitude = DEFAULT_LAT;\n mLongitude = DEFAULT_LON;\n loadZomatoData(mLatitude, mLongitude);\n } else {\n loadZomatoData(mLatitude,mLongitude);\n }\n mRestaurantList = new ArrayList<Restaurant>();\n locationRequests();\n }",
"public Favorites_Adapter(Context context, ArrayList<POJOStoreInfo> FavouriteStoreDetails,String classname,String pageflag){\r\n\t\tFavoritesInflater = LayoutInflater.from(context);\r\n\t\tthis.FavoritesContext = context;\r\n\t\tthis.mFavouriteStoreList = FavouriteStoreDetails;\r\n\t\timageLoader=new ImageLoader(context);\r\n\t\tthis.mClassName=classname;\r\n\t\tthis.mPageFlag=pageflag;\r\n\t}",
"@Override\n public void showData(List<InventoryListDTO> list) {\n if (list != null) {\n if (list.size() < 1) {\n list = new ArrayList<>();\n\n list.add(new InventoryListDTO(\"2\", \"123123\", 1, 1, 1));\n list.add(new InventoryListDTO(\"3\", \"12312\", 1, 1, 1));\n list.add(new InventoryListDTO(\"4\", \"1233345566\", 1, 1, 1));\n }\n }\n\n myAdapter = new MyAdapter(context, R.layout.item_inventory, 3, BR.InventoryListDTO, 0);\n\n\n //region Call and send method click item in recycle view\n myAdapter.setOnClickFragment(interaction);\n //endregion\n myAdapter.setData((ArrayList) list);\n recyclerView.setAdapter(myAdapter);\n //endregion\n }",
"private void firebaseReyclerViewAdapter() {\n options = new FirebaseRecyclerOptions.Builder<DataModels>()\n // Referensi Database yang akan digunakan beserta data Modelnya\n .setQuery(reference.child(\"KucingPutih\"), DataModels.class)\n .setLifecycleOwner((LifecycleOwner) getActivity()) //Untuk menangani perubahan siklus hidup pada Activity/Fragment\n .build();\n\n // Digunakan untuk menghubungkan View dengan data Models\n recyclerAdapter = new FirebaseRecyclerAdapter<DataModels, RecyclerAdapter>(options) {\n\n @Override\n protected void onBindViewHolder(@NonNull RecyclerAdapter holder, int position, @NonNull DataModels model) {\n //Mendapatkan data dari Database yang akan ditampilkan pada RecyclerView\n holder.setDisplayImage(model.getImage_url(), getActivity());\n\n progressBar.setVisibility(View.GONE);\n }\n\n @NonNull\n @Override\n public RecyclerAdapter onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n //Mengubungkan adapter dengan Layout yang akan digunakan\n return new RecyclerAdapter(LayoutInflater.from(parent.getContext())\n .inflate(R.layout.recycler_layout, parent, false));\n }\n };\n recyclerView.setAdapter(recyclerAdapter);\n }",
"private void buildRecyclerView() {\n\n movieRecyclerView = findViewById(R.id.movieRecyclerView);\n\n customAdapter = new CustomAdapter(MovieActivity.this,movieLists);\n movieRecyclerView.setAdapter(customAdapter);\n layoutManager = new GridLayoutManager(this,1);\n movieRecyclerView.setLayoutManager(layoutManager);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n\n View rootView = inflater.inflate(R.layout.fragment_tutor_list, container, false);\n\n rv = (RecyclerView) rootView.findViewById(R.id.rvTutors);\n // rv.setHasFixedSize(true);\n rv.setLayoutManager(new LinearLayoutManager(getActivity()));\n swipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.swipeRefreshLayout);\n\n\n id = this.getArguments().getString(\"session\");\n //Toast.makeText(getContext(),\"Session id \"+id,Toast.LENGTH_SHORT);\n\n connect2server = new getTutors(this.getActivity(), id, list);\n\n connect2server.delegate = this;\n connect2server.execute();\n\n\n swipeRefreshLayout.setColorSchemeResources(android.R.color.holo_blue_bright,\n\n android.R.color.holo_green_light,\n\n android.R.color.holo_orange_light,\n\n android.R.color.holo_red_light);\n\n\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n // Refresh items\n refreshItems();\n }\n });\n\n\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_rencana_latihan, container, false);\n rv_recentOpen = (RecyclerView) rootView.findViewById(R.id.rv_recentOpen);\n rv_list1 = (RecyclerView) rootView.findViewById(R.id.rv_list1);\n rv_list2 = (RecyclerView) rootView.findViewById(R.id.rv_list2);\n v_noRecent = (View) rootView.findViewById(R.id.v_noRencent);\n TextView tv_selengkapnya1 = (TextView) rootView.findViewById(R.id.tv_selengkapnya1);\n TextView tv_selengkapnya2 = (TextView) rootView.findViewById(R.id.tv_selengkapnya2);\n progress();\n rencanaPresenter = new RencanaPresenter(this, getContext());\n rencanaPresenter.getListRencana();\n mProgress.show();\n tv_selengkapnya1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent data = new Intent(getActivity(), RencanaLatihanDetail.class);\n data.putExtra(\"judul\", \"list1\");\n getActivity().startActivity(data);\n }\n });\n\n tv_selengkapnya2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent data = new Intent(getActivity(), RencanaLatihanDetail.class);\n data.putExtra(\"judul\", \"list2\");\n getActivity().startActivity(data);\n }\n });\n\n\n return rootView;\n }",
"public CardViewKelasAdapter(Context context){this.context = context;}",
"@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n pushToFragmentManager(getFragmentManager(), R.id.content_frame, ForcastDayFragment.newInstance(adapter.weeklyForecast, position), true);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_list, container, false);\n itemRecyclerView = view.findViewById(R.id.fl_items_rv);\n itemRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n\n Calligrapher calligrapher = new Calligrapher(getActivity());\n calligrapher.setFont(getActivity(), \"rus.ttf\", true);\n\n init();\n\n itemRecyclerView.setAdapter(new ItemAdapter(getContext(), items, (MainActivity) getActivity()));\n\n return view;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_celeb_list, container, false);\n\n NestedScrollView nestedscrollview = (NestedScrollView)view.findViewById(R.id.nestedscrollview);\n int result = 0;\n int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\n if (resourceId > 0) {\n result = getResources().getDimensionPixelSize(resourceId);\n\n LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) nestedscrollview.getLayoutParams();\n layoutParams.topMargin = result;\n nestedscrollview.setLayoutParams(layoutParams);\n }\n int width = getResources().getDisplayMetrics().widthPixels;\n mCelebRecyclerViewAdapter = new CelebRecyclerViewAdapter(null, width);\n\n\n RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.recyclerview_celeb_list);\n recyclerView.setAdapter(mCelebRecyclerViewAdapter);\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerView.setNestedScrollingEnabled(false);\n\n\n\n\n // DB ViewModelProviders 설정\n CelebHabitViewModel celebHabitViewModel = ViewModelProviders.of(this).get(CelebHabitViewModel.class);\n\n // 데이터가 변경될 때 호출\n celebHabitViewModel.getCelebHabitList().observe(this, new Observer<List<CelebHabitMaster>>() {\n @Override\n public void onChanged(@Nullable List<CelebHabitMaster> celebHabitMasters) {\n\n mCelebRecyclerViewAdapter.setAllHabit(celebHabitMasters);\n }\n });\n\n ItemClickSupport itemClickSupport = ItemClickSupport.addTo(recyclerView).setOnItemClickListener(new ItemClickSupport.OnItemClickListener() {\n @Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n CelebHabitMaster habit = mCelebRecyclerViewAdapter.getHabit(position);\n\n Intent intent = new Intent(getContext(), CelebActivity.class);\n Toast.makeText(getContext(), \"유명인 선택 \"+habit.getName(), Toast.LENGTH_SHORT).show();\n intent.putExtra(\"celebcode\", habit.getCelebcode());\n startActivity(intent);\n }\n });\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.mainpage_farmland_fragment,container,false);\n// btmenu = view.findViewById(R.id.menu);\n// btmenu.setTypeface(MyApplication.iconTypeFace);\n btaddfarm = view.findViewById(R.id.addfarm);\n btaddfarm.setTypeface(MyApplication.iconTypeFace);\n springView= view.findViewById(R.id.springview);\n recyclerView= view.findViewById(R.id.recyclerView);\n staticInfo = view.findViewById(R.id.staticinfo);\n\n springView.setHeader(new DefaultHeader(this.getActivity()));\n springView.setFooter(new DefaultFooter(this.getActivity()));\n\n adapter = new RecyclerviewAdapter(this.getActivity(), listData);\n recyclerView.setLayoutManager(new LinearLayoutManager(this.getActivity()));\n recyclerView.setAdapter(adapter);\n\n\n springView.setListener(new SpringView.OnFreshListener() {\n @Override\n public void onRefresh() {\n pageidx = 1;\n listData.clear();\n requestFieldlist();\n }\n\n @Override\n public void onLoadmore() {\n requestFieldlist();\n\n }\n });\n\n\n initlistener();\n\n requestFieldlist();\n\n return view;\n }",
"@Override\n public void run() {\n notifyDataSetChanged();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_hourly_weather_list, container, false);\n\n\n RecyclerView recyclerView= view.findViewById(R.id.recyclerView);\n\n\n /*final HourlyDataAdapter adapter = new HourlyDataAdapter(getContext(),weathers,11111111);\n recyclerView.setAdapter(adapter);\n\n recyclerView.setLayoutManager(new LinearLayoutManager(this.getActivity()));*/\n recyclerView.setHasFixedSize(true);\n\n return view;\n }",
"public void setupAdapter() {\n recyclerAdapter = new PhotosAdapter(this);\n recyclerViewPhotos.setAdapter(recyclerAdapter);\n }",
"@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n }"
]
| [
"0.7388062",
"0.7251462",
"0.70288825",
"0.69791603",
"0.6956876",
"0.6951916",
"0.69388705",
"0.68852",
"0.6881253",
"0.6880528",
"0.68629646",
"0.6838869",
"0.68193537",
"0.6811594",
"0.67789173",
"0.6772531",
"0.67511725",
"0.67238355",
"0.67235494",
"0.6719247",
"0.6718918",
"0.671499",
"0.6707256",
"0.67068005",
"0.6706003",
"0.66874254",
"0.66528416",
"0.6647663",
"0.664394",
"0.66435516",
"0.661595",
"0.6614971",
"0.6613813",
"0.6598991",
"0.65917283",
"0.6583257",
"0.65594643",
"0.6556865",
"0.6554501",
"0.6535708",
"0.6520087",
"0.6512057",
"0.6504266",
"0.6497114",
"0.6495539",
"0.64919245",
"0.6486617",
"0.6481428",
"0.6473322",
"0.6466293",
"0.6461683",
"0.6461555",
"0.6460309",
"0.646008",
"0.6459644",
"0.64537495",
"0.64478195",
"0.6446836",
"0.64443374",
"0.64440143",
"0.64215124",
"0.64183986",
"0.64163685",
"0.64130247",
"0.641101",
"0.64097834",
"0.6408454",
"0.640705",
"0.6401088",
"0.6399417",
"0.6397789",
"0.6397431",
"0.6395812",
"0.63926643",
"0.63891125",
"0.63845736",
"0.6380049",
"0.6377381",
"0.6374877",
"0.6374688",
"0.63717675",
"0.63694775",
"0.6365682",
"0.6364842",
"0.63597316",
"0.63596845",
"0.63537276",
"0.63503313",
"0.6347887",
"0.6342751",
"0.6341495",
"0.6340747",
"0.6339493",
"0.6336477",
"0.6335858",
"0.6333621",
"0.63335943",
"0.6331851",
"0.632208",
"0.6320527",
"0.6320212"
]
| 0.0 | -1 |
set Chrome as defualt | @Test
public void handleMouseHover() {
System.setProperty("webdriver.chrome.driver", "./Driver/chromedriver.exe");
// Open browser
WebDriver driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
// Go to https://www.dell.com/en-us?~ck=mn
driver.get("https://www.dell.com/en-us?~ck=mn");
// Hover over Products
// Use Actions class to hover over something
Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.linkText("Products"))).build().perform();
// Click on the Workstations
// Use Explicit wait on the following Element
waitForElement(driver, 15, By.linkText("Workstations"));
driver.findElement(By.linkText("Workstations")).click();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ChromeOptions setChromeOptions() {\n\t\t\tChromeOptions cOptions = new ChromeOptions();\n\t\t\tcOptions.addArguments(\"disable-infobars\");\n\t\t\t//cOptions.addArguments(\"--headless\", \"window-size=1920,1080\");\n\t\t\tcOptions.addArguments(\"--disable-notifications\");\n\t\t\treturn cOptions;\n\t\t}",
"public static void setBrowser() {\n\t\t browser=\"Chrome\";\n\t }",
"@BeforeSuite\n\t\n\tpublic void setUp()\n\t{\n\t\t\n\t\tSystem.out.println(\" set system property for chrome\");\n\t}",
"public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }",
"public void chromeLaunch() {\n\t\tSystem.setProperty(key, value);\n\t\ts=new ChromeDriver();\n\t\ts.manage().window().maximize();\n\t\ts.navigate().to(url);\n\t}",
"private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}",
"public static void setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accounting\\\\BrowserDriver/chromedriver.exe\");\n\t\t}",
"public static void setSystemPropertyChromeWebDriverOriginal() {\n\t\tString fullPath = getFullPathToSrcTestResourceFolder();\n\t\t\n\t\tString os = getOperationalSystemName();\n\t\t\n\t\tString chromeDriver = CHROME_DRIVER_WINDOWS;\n\t\tif ( os.equals(OS_MAC_OS_X) ) {\n\t\t\tchromeDriver = CHROME_DRIVER_MAC;\n\t\t}\n\t\t\n\t\tSystem.setProperty(\n\t\t\tWEBDRIVER_CHROME_DRIVER, \n\t\t\tfullPath + chromeDriver);\n\t}",
"@BeforeSuite\r\n\tpublic void before_suite() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"G:\\\\chromedriver.exe\");\r\n\t}",
"public static ChromeOptions chromeoptions() {\r\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\r\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\r\n\t\tchromePrefs.put(\"download.default_directory\", testAdminReportPath);\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.setExperimentalOption(\"prefs\", chromePrefs);\r\n\t\toptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\r\n\t\toptions.setCapability(ChromeOptions.CAPABILITY, options);\r\n\t\toptions.setCapability(\"locationContextEnabled\", false);\r\n\t\treturn options;\r\n\t}",
"@Before\r\n\tpublic void OpenChrome() {\n\t\tconfig = new ConfigReader();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",config.getChromePath());\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\texPages = new ExpediaPages(driver);\r\n\t}",
"public static void startChromeDriver() {\r\n\t\tswitch (operatingSystem.toLowerCase().split(\" \")[0]) {\r\n\t\tcase \"windows\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriver.exe\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"linux\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverLinux\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mac\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverMac\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operating system not supported.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public static WebDriver startChrome() {\n\t\treturn new ChromeDriver();\n\t}",
"@Before\n public void start() {\n\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n //driver.manage().window().maximize();\n wait = new WebDriverWait(driver, 10);\n }",
"public static ChromeOptions chromeCfg()\n {\n Map<String, Object> prefs = new HashMap<String, Object>();\n ChromeOptions cOptions = new ChromeOptions();\n\n // Settings\n prefs.put(\"profile.default_content_setting_values.cookies\", 2);\n prefs.put(\"network.cookie.cookieBehavior\", 2);\n prefs.put(\"profile.block_third_party_cookies\", true);\n\n // Create ChromeOptions to disable Cookies pop-up\n cOptions.setExperimentalOption(\"prefs\", prefs);\n\n return cOptions;\n }",
"public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}",
"public static WebDriver chrome()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\Chrome\\\\chromedriver.exe\");\r\n\t\tgk = new ChromeDriver();\r\n\t\treturn gk;\r\n\t}",
"@BeforeMethod(alwaysRun = true)\n public void browserSetup(){\n driver = new ChromeDriver();\n }",
"protected void SetDefault() {\r\n\t\tBrickFinder.getDefault().setDefault();\t\t\r\n\t}",
"@BeforeClass\n public void BeforeTest(){\n Configuration.browser = \"Chrome\";\n\n }",
"private static WebDriver launchChrome()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL chromeDriverURL = BrowserDriver.class.getResource(\"/drivers/chromedriver.exe\");\n\t\tFile file = new File(chromeDriverURL.getFile()); \n\t\tSystem.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\toptions.addArguments(\"--ignore-certificate-errors\");\n\t\t\n\t\treturn new ChromeDriver(options);\n\t\t}\n\t}",
"private void clearChromeVersion() { chromeVersion_ = null;\n bitField0_ = (bitField0_ & ~0x00000004);\n }",
"@Given(\"^Initialize the browser with Chrome$\")\r\n\tpublic void initialize_the_browser_with_Chrome() throws Throwable {\n\t\tdriver = DriverManager.getDriverInstance(\"chrome\", 20);\r\n\t\tSystem.out.println(\"Launched Chrome\");\r\n\t}",
"public GAfterSearch(WebDriver chromeDriver) {\n super.chromeDriver = chromeDriver;\n }",
"private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }",
"@Given(\"I set up my Chrome Driver\")\n\tpublic void i_am_on_Magalu_HomePage() {\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/gocruz/eclipse-workspace/portal.compras/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(options);\n\n\t}",
"public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}",
"@Before\n public void Setup() { //this is done before every test, chrome driver is saved in a specific location\n\n System.setProperty(\"webdriver.chrome.driver\",\n Constant.CROMEDRIVER);\n\n driver = new ChromeDriver();\n }",
"public static void set100(){\n driver.findElement(By.tagName(\"html\")).sendKeys(Keys.chord(Keys.CONTROL, \"0\"));\n }",
"public static void openBrowser() {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n // === Google Chrome Browsers === //\n CHOSEN_BROWSER = CHROME;\n driver.manage().window().maximize();\n }",
"@BeforeClass\n public static void setup() {\n String driverPath = \"\";\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n }",
"public void initialization()\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Mrunal\\\\chromedriver.exe\");\n\t\n\t\tif(prop.getProperty(\"browser\").contains(\"chrome\"))\n\t\t driver = new ChromeDriver();\n\t\t \n\t\t driver.manage().deleteAllCookies();\n\t\t driver.manage().timeouts().pageLoadTimeout(2000, TimeUnit.MILLISECONDS);\n\t\t driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n\n\t\t driver.get(prop.getProperty(\"url\"));\n\t\t driver.manage().window().maximize();\n\t\t driver.manage().timeouts().implicitlyWait(8, TimeUnit.SECONDS);\n\t\t \n\t}",
"private WebDriver createChromeDriver() {\n\t\tsetDriverPropertyIfRequired(\"webdriver.chrome.driver\", \"chromedriver.exe\");\n\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"disable-plugins\");\n\t\toptions.addArguments(\"disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\n\t\t\n\t\t_driver = new ChromeDriver(options);\n\t\treturn _driver;\n\t}",
"public GoogleAutomation() {\n\t\t\n\t\t//The setProperty() method of Java system class sets the property of the system which is indicated by a key.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver//chromedriver.exe\");\n\t\t\n\t\t//initilize webDriver \n\t\twebDriver = new ChromeDriver();\n\t}",
"@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }",
"public static WebDriver getLocalChromeDriver() {\n WebDriverManager.chromedriver().setup();\n return new ChromeDriver();\n }",
"public static WebDriver init_driver_crome(String browser) {\n\t\t\tif(browser.equals(\"chrome\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\software\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Browser is initialised\" +browser);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Browser is not initialised\" +browser);\n\t\t\t}\n\t\t\treturn getDriverChrome();\n\t\t}",
"public void switchToDefault()\n\t{\n\t\tdriver.switchTo().defaultContent();\n\t\tLOGGER.info(\"Step : Switched to default frame\");\n\t}",
"private void initChromeDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"Drivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}",
"void setAlwaysOnTop(boolean always);",
"public void setDefaultHost() {\r\n\t\tsetHost(DEFAULT_HOST);\r\n\t}",
"public static boolean isBrowserChrome() {\r\n\t\treturn ConfigProperties.BROWSER.equalsIgnoreCase(CHROME);\r\n\t}",
"private static void initialiseBrowser() {\n\t\tif (System.getProperty(\"proxyname\") != null) {\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setPreference(\"network.proxy.type\", 1);\n\t\t\tprofile.setPreference(\"network.proxy.http\", System.getProperty(\"proxyname\"));\n\t\t\tprofile.setPreference(\"network.proxy.http_port\", 3128);\n\n\t\t\tdriver = new FirefoxDriver(profile);\n\t\t\tsetDriver(driver);\n\t\t}\n\t\telse{\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tsetDriver(driver);\n\t\t}\n\t}",
"protected void setupBrowserActivity() {\n mActivity.setTheme(R.style.BrowserTheme);\n // no more layout zooming when soft keyboard popups\n mActivity.getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_ADJUST_PAN);\n }",
"@BeforeClass(description = \"Before class: start the Chrome browser\")\n public void setUpBrowser()\n {\n reports = new ExtentReports(\"C:\\\\Dev\\\\ToDoMVCTEST\\\\HTML_Report\\\\Report.html\", true);\n HTMLReport htmlReport = new HTMLReport();\n htmlReport.log(\"STARTING BeforeClass\");\n htmlReport.logINFO(\"Initialization of browser's driver\");\n driver = getDriver();\n htmlReport.logINFO(\"Maximize the window of browser\");\n driver.manage().window().maximize();\n htmlReport.logINFO(\"Setting timeouts in seconds\");\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n }",
"public int getChromeColor() {\n return chromeColor;\n }",
"@Override\n \tpublic void validateParam(Object obj) throws Exception {\n \t\t\n \t\tif(getChrome().isSelected() && !this.extension.getProxy().isChromeAvail()){\n \t\t\tgetFirefox().setSelected(true);\t\n \t\t\tlogger.info(\"ChromeDriver is not available, switching to the default browser.\");\n \t\t\tthis.extension.showChromeAlert();\n \t\t}\n \t}",
"@Before\n public void setWebDriver() throws IOException {\n System.setProperty(\"webdriver.chrome.driver\", DRIVER_PATH);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"start-maximized\");\n driver = new ChromeDriver(chromeOptions);\n }",
"public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.manage().window().maximize();\n\n\n }",
"@BeforeMethod\n\tpublic void setUp() {\n\t\tString driverByOS = \"\";\n\t\tif (System.getProperty(\"os.name\").equals(\"Windows 10\")) {\n\t\t\tdriverByOS = \"Drivers/chromedriver.exe\";\n\t\t} \n\t\telse {\n\t\t\tdriverByOS = \"Drivers/chromedriver\";\n\t\t}\n\t\t//para saber en qué sistema Operativo estamos corriendo el proyecto.\n\t\tSystem.out.println(System.getProperty(\"os.name\"));\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverByOS);\n\t\t//Utilizando headless browser HB\n\t\t/*-HB\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\tchromeOptions.addArguments(\"--headless\");\n\t\tdriver = new ChromeDriver(chromeOptions);\n\t\tHB-*/\n\t\tdriver = new ChromeDriver();\n\t\t//driver.manage().window().maximize(); //esto es para maximizar la ventana del navegador\n\t\t//driver.manage().window().fullscreen(); //esto es para poner en fullscreen la ventana del navegador\n\t\t/*driver.manage().window().setSize(new Dimension(200,200));\n\t\tfor (int i = 0; i <= 800; i++) {\n\t\t\tdriver.manage().window().setPosition(new Point(i,i));\n\t\t}*/\n\t\t//driver.manage().window().setPosition(new Point(800,200)); //posicionando la ventana del navegador\n\t\tdriver.navigate().to(\"http://newtours.demoaut.com/\");\n\t\t//Este codigo de abajo permite abrir otra ventana en el navegador\n\t\t//JavascriptExecutor javaScriptExecutor = (JavascriptExecutor)driver;\n\t\t//String googleWindow = \"window.open('http://www.google.com')\";\n\t\t//javaScriptExecutor.executeScript(googleWindow);\n\t\t//tabs = new ArrayList<String> (driver.getWindowHandles());\n\t\t/*try {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//Helpers helper = new Helpers();\n\t\t//helper.sleepSeconds(4);\n\t}",
"@BeforeClass\r\n public void beforeClass() {\n \tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Tuan\\\\Downloads\\\\chromedriver.exe\");\r\n \tdriver = new ChromeDriver();\r\n \tdriver.get(\"http://daominhdam.890m.com/\");\r\n\t}",
"protected void setToDefault(){\n\n\t}",
"public void setUpMethod(){\n driver = WebDriverFactory.getDriver(\"Chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n }",
"@BeforeTest\n public void setup() {\n\n String browser = Environment.getProperties().browser().toString().toLowerCase();\n\n switch (browser) {\n \n case \"firefox\":\n FirefoxOptions options = new FirefoxOptions(); \n if(Environment.getProperties().headless()){\n options.addArguments(\"--headless\");\n }\n driver = new FirefoxDriver();\n break;\n \n default:\n ChromeOptions optionsChrome = new ChromeOptions();\n if(Environment.getProperties().headless()){\n optionsChrome.addArguments(\"--headless\");\n } \n driver = new ChromeDriver(optionsChrome);\n break;\n } \n\n driver.manage().window().maximize();\n }",
"@BeforeTest //special type of testng method which alway run before.\r\n\t\t\tpublic void openBrowser() {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t\t\t}",
"public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}",
"@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}",
"private void tweakPlatformDefaults() {\n if (PlatformUtils.isAppCode()) {\n SHOW_MAIN_TOOLBAR = false;\n SHOW_ICONS_IN_MENUS = false;\n SHOW_MEMORY_INDICATOR = false;\n }\n }",
"public void setChromeColor(int color) {\n if (chromeColor != color) {\n viewBorderPaint.setColor(color);\n chromeColor = color;\n invalidate();\n }\n }",
"@Override\n\tpublic void disabledInit() {\n\t\tRobot.driveSubsystem.setCoastMode();\n\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"./browser/chromedriver.exe\");\r\n\t\t//DesiredCapabilities cap=new DesiredCapabilities();\r\n\t\t\r\n\t\tChromeOptions co=new ChromeOptions();\r\n\t\tco.addArguments(\"--disable-infobars\");\r\n\t\t//co.addArguments(\"--headless\");\r\n\t\tWebDriver driver=new ChromeDriver(co);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.close();\r\n\r\n\t}",
"@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}",
"public void setDefaultTab() {\r\n\t\t\tgetActionBar().selectTab(getActionBar().getTabAt(CLASSIFICATION_TAB_INDEX));\t\r\n\t\t}",
"public static void ChromeExePathSetUp() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"D:\\\\VisionITWorkspace\\\\dependencies\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tReporter.log(\"Chrome Exe path Set up\", true);\r\n\t}",
"@SuppressWarnings(\"deprecation\")\n @Override\n void setDefaults() {\n //Do nothing\n }",
"@BeforeClass\n public static void setup(){\n WebDriverManager.chromedriver().setup();\n webDriver = new ChromeDriver();\n webDriver.manage().window().maximize();\n webDriver.manage().timeouts().implicitlyWait(3000, TimeUnit.MILLISECONDS);\n }",
"@BeforeClass\n\tpublic void beforeClass() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\browserDrivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\texplicitWait = new WebDriverWait(driver, 10);\n\t\tjsExecutor = (JavascriptExecutor) driver;\n//\t\texplicitWait = new WebDriverWait(driver, 30);\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n//\t driver.manage().window().maximize();\n\t}",
"public WebDriver LaunchChromeBrowserReturnIt() {\n\t\ttry {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\"/TestSuit/lib/chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver(); // Launch chrome\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn driver;\n\n\t}",
"@BeforeTest\n public void beforeTest() {\n\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t driver = new ChromeDriver();\n\t\t driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t driver.manage().window().maximize();\n\t\t driver.get(\"https://www.facebook.com/\");\n }",
"private void setWebDriver() {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n setLocalWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"REMOTE_DRIVER\"))) {\n setRemoteWebdriver();\n } else if (Boolean.valueOf(System.getProperty(\"SAUCE_DRIVER\"))) {\n setSauceWebdriver();\n } else {\n throw new WebDriverException(\"Type of driver not specified!!!\");\n }\n this.driver.get().manage().timeouts()\n .implicitlyWait(10, TimeUnit.SECONDS);\n if (browser.equalsIgnoreCase(\"internet explorer\")|browser.equalsIgnoreCase(\"firefox\")|browser.equalsIgnoreCase(\"chrome\")|browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t//we only want to maximise the browser window for desktop browser, not devices.\n \tthis.driver.get().manage().window().maximize();\n\t\t}\n }",
"public static void noAutostart() {\n\t\tdefaultAutostartMode = NO_AUTOSTART;\n\t}",
"@BeforeClass\n\t public void beforeClass() {\n\t System.setProperty(\"webdriver.chrome.driver\", \"F:\\\\Git\\\\GIT_Repositories\\\\Selenium_Project\\\\Drivers\\\\chromedriver.exe\");\n\t driver = new ChromeDriver();\n\t \n\t \n\t }",
"public static void initializer() \n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\HP-PC\\\\Downloads\\\\Kahoot\\\\chromedriver.exe\" );\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://www.sathya.in/\");\n\t}",
"public void switchToDefaultWindow() {\n\n\t}",
"@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}",
"@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }",
"private void setWebdriver() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir + fileSeparator + \"lib\" + fileSeparator + \"chromedriver.exe\");\n\t\tcapability = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"disable-infobars\");\n\t\tcapability.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tdriver = new ChromeDriver(capability);\n\t\tdriver.manage().deleteAllCookies();\n\t\t_eventFiringDriver = new EventFiringWebDriver(driver);\n\t\t_eventFiringDriver.get(getUrl());\n\t\t_eventFiringDriver.manage().window().maximize();\n\n\t}",
"@Test\r\n\tpublic void f()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Data_Program//Selenium_Dependencies//chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t}",
"public void setForcedBrowserMode(String forcedBrowserMode) {\n this.forcedBrowserMode = forcedBrowserMode;\n }",
"@Given(\"^launch an chrome browser$\")\r\n\tpublic void launch_an_chrome_browser() throws Throwable {\n\t sign.url();\r\n\t\t\r\n\t}",
"void setBrowser(String browser);",
"public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}",
"@Test\n\tpublic void loginFailureChrome() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"test/de/saxsys/treasurehunting/webdrivers/chromedriver.exe\");\n\t\tHelpers.running(\n\t\t\t\tHelpers.testServer(3333,\n\t\t\t\t\t\tHelpers.fakeApplication()),\n\t\t\t\tChromeDriver.class, new LoginFailureCallback());\n\t}",
"public void setDefaultBitmap(Bitmap bitmap) {\n mController.setDefaultBitmap(bitmap);\n }",
"@BeforeTest\r\n\tpublic void beforeTest() throws MalformedURLException {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PDC2B-Training.pdc2b\\\\Downloads\\\\Selenium Drivers\\\\BrowserDriver\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(5000, TimeUnit.SECONDS);\r\n\t}",
"@Override\n @SuppressFBWarnings(\"DM_EXIT\")\n protected void initializeBrowserProcess() {\n try {\n LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER)\n .ensureInitialized(getApplicationContext());\n } catch (ProcessInitException e) {\n Log.e(TAG, \"Cannot load content_browsertests.\", e);\n System.exit(-1);\n }\n BrowserStartupController.get(getApplicationContext(), LibraryProcessType.PROCESS_BROWSER)\n .initChromiumBrowserProcessForTests();\n\n setContentView(getTestActivityViewId());\n mShellManager = (ShellManager) findViewById(getShellManagerViewId());\n mWindowAndroid = new ActivityWindowAndroid(this);\n mShellManager.setWindow(mWindowAndroid);\n\n Window wind = this.getWindow();\n wind.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);\n wind.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);\n wind.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t\tWebDriver driver =new ChromeDriver();\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"@Override\n\tabstract public void setDefaultHTMLUserAgentSheet();",
"@Override // com.oppo.enterprise.mdmcoreservice.utils.defaultapp.DefaultApp\n public void clearPreferredActivity(PackageManager pm, String currentDefault) {\n super.clearPreferredActivity(pm, currentDefault);\n if (Build.VERSION.SDK_INT >= 23) {\n setDefaultBrowserPackageName(pm, null, UserHandle.myUserId());\n }\n }",
"@Override\n\tpublic void beforeSwitchToWindow(String arg0, WebDriver arg1) {\n\n\t}",
"void setAlwaysOnTop(boolean alwaysOnTop);",
"public static void main(String[] args) {\n\t\tChromeMaximize();\r\n\t\tbrowserMaximize();\r\n\t\tbrowserMaximize1();\r\n\t}",
"public static void initialization() {\n\t\tSystem.out.println(\"**Open initialization**\");\r\n\t\tString browserName = props.getProperty(\"browser\");\r\n\t\tSystem.out.println(\"Browser User = \" + browserName + \" URL = \" + props.getProperty(\"url\"));\r\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/Selenium Automation/chromedriver/chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\r\n\t\tdriver.get(props.getProperty(\"url\"));\r\n\t\tSystem.out.println(\"**Close initialization**\");\r\n\t}",
"public void setToDefault();",
"public void setMonochrome(boolean monochrome) {\n this.monochrome = monochrome;\n }",
"public static void browserMax() {\r\n\tdriver.manage().window().maximize();\r\n}",
"private static void forceBasicEditorConfiguration() {\n Game.graphics().setBaseRenderScale(1.0f);\n Game.config().debug().setDebugEnabled(true);\n Game.config().graphics().setGraphicQuality(Quality.VERYHIGH);\n Game.config().graphics().setReduceFramesWhenNotFocused(false);\n }",
"@Given(\"^the user launch chrome application$\")\r\n\tpublic void the_user_launch_chrome_application() throws Throwable {\n\t w.browser();\r\n\t}",
"public static String getBrowser() {\n if (System.getProperty(\"browser\") == null) {\n return \"chrome\";\n } else {\n return System.getProperty(\"browser\").toLowerCase();\n }\n }",
"@Test\n @Given(\"I launch browser\")\n public void s01_BrowserMaximizeLaunch() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/ChromeDriver.exe\");\n// Init new instance of ChromeDriver.\n driver = new ChromeDriver();\n// Maximise browser window\n driver.manage().window().maximize();\n System.out.println(\"Step01 PASSED\");\n }",
"@Override\r\npublic void setOnScreen(boolean os) {\n}"
]
| [
"0.70932883",
"0.6968",
"0.65217507",
"0.63897175",
"0.63251996",
"0.6278405",
"0.6255089",
"0.61688733",
"0.6133632",
"0.6100878",
"0.59832966",
"0.5952738",
"0.5858301",
"0.58465016",
"0.5802641",
"0.58002883",
"0.57554555",
"0.57484704",
"0.57440954",
"0.57439524",
"0.5732158",
"0.5721383",
"0.5712551",
"0.5688553",
"0.5672277",
"0.566101",
"0.56557226",
"0.56415606",
"0.562847",
"0.56186444",
"0.5599812",
"0.5586314",
"0.5581446",
"0.5541147",
"0.55347097",
"0.5479854",
"0.5476334",
"0.5474747",
"0.54676783",
"0.546213",
"0.5458015",
"0.5430085",
"0.541491",
"0.54147404",
"0.5409375",
"0.5408696",
"0.5393722",
"0.53927666",
"0.5391748",
"0.5378922",
"0.5377277",
"0.53664565",
"0.5359926",
"0.5352739",
"0.5330839",
"0.5328851",
"0.53194666",
"0.5309954",
"0.5308082",
"0.53047323",
"0.5294409",
"0.52832526",
"0.5282908",
"0.5277103",
"0.52723604",
"0.5250443",
"0.52502644",
"0.5246418",
"0.52407247",
"0.5223219",
"0.52175677",
"0.5217282",
"0.5210375",
"0.5207799",
"0.5203728",
"0.5197616",
"0.5188958",
"0.5186825",
"0.5185391",
"0.5174196",
"0.51673555",
"0.51600647",
"0.51598966",
"0.5156518",
"0.5154667",
"0.5151928",
"0.5119659",
"0.51121014",
"0.51112187",
"0.5107132",
"0.5102635",
"0.509525",
"0.5094036",
"0.50864536",
"0.5082701",
"0.5076317",
"0.5071575",
"0.50688285",
"0.50668174",
"0.506224",
"0.50614774"
]
| 0.0 | -1 |
Explicit wait encapsulated in a method | private void waitForElement(WebDriver driver, int timeToWaitInSeconds, By ElementLocater) {
WebDriverWait wait = new WebDriverWait(driver, timeToWaitInSeconds);
wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(ElementLocater));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void beforeWait();",
"protected abstract void afterWait();",
"public abstract void onWait();",
"private void customWait() throws InterruptedException {\n while (!finished) {\n Thread.sleep(1);\n }\n finished = false;\n }",
"public void doWait(){\n\t\tsynchronized(m){\n\t\t\ttry{\n\t\t\t\tm.wait(32000,0);\n\t\t\t} catch(InterruptedException e){}\n\t\t}\n\t}",
"protected int getWait() \t\t\t\t{\treturn wait;\t\t}",
"public void doWait() {\n\t\tsynchronized(lock) {\n\t\t\twhile(!wasSignalled) {\n\t\t\t\ttry {\n\t\t\t\t\tlock.wait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\twasSignalled = false;\n\t\t}\n\t}",
"protected abstract long waitToTravel();",
"public void callTheWaiter();",
"void waitToRead();",
"protected void waitUntilCommandFinished() {\n }",
"public void CondWait(){\n try {\r\n trainCond.await();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Area.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public Status waitUntilFinished();",
"@Override\n public boolean waitToProceed() {\n return false;\n }",
"protected abstract long waitOnQueue();",
"void waitAll();",
"private void waitFor() {\n if (done) {\n return;\n }\n\n synchronized (waitObj) {\n while (!done) {\n try {\n waitObj.wait();\n } catch (InterruptedException ex) {\n ex.printStackTrace(System.err);\n }\n }\n }\n if (excpetion != null) {\n throw excpetion;\n }\n }",
"public void waitingForPartner();",
"private void _wait() {\n\t\tfor (int i = 1000; i > 0; i--)\n\t\t\t;\n\t}",
"public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}",
"public void waitToFinish()\n {\n while(!this.finished)\n {\n try\n {\n Thread.sleep(1);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}",
"public void wait(Integer id) throws DynamicCallException, ExecutionException{\n call(\"wait\", id).get();\n }",
"synchronized void askForCritical() {\n\nSC=true;\n\nwhile(!Jeton){\n\ttry{\nthis.wait();\n\t}catch( InterruptedException ie ){\n\t\t\n\t}\n}\n}",
"public void implicitWait(){\r\n\t\tdriver.manage().timeouts().implicitlyWait(Integer.parseInt(FilesAndFolders.getPropValue(\"implicitWaitTime\")), TimeUnit.SECONDS);\r\n\t}",
"public void Wait(){\r\n\t\ttry { worker.join(); }\r\n\t\tcatch (InterruptedException e) { e.printStackTrace(); }\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (a) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int waitFor(String variable);",
"static void onSpinWait() {\n }",
"public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"public void waitUntilStarted() {\n mStarted.block();\n }",
"public final void waitFor() {\r\n for (;;) {\r\n synchronized (this) {\r\n if (this.m_b)\r\n return;\r\n try {\r\n this.wait();\r\n } catch (Throwable tt) {\r\n tt.printStackTrace();\r\n }\r\n }\r\n }\r\n }",
"public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}",
"public void waitForData() {\n waitForData(1);\n }",
"void waitingForMyTurn();",
"public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }",
"protected void setWait(int _wait)\t\t{\twait = _wait;\t\t}",
"public void doWait() {\n\t\tsynchronized(lockObject){\n\t\t\t//Now even if the notify() is called earlier without a pre-wait() call then it will check the condition\n\t\t\t//and will found \"resumeSignal\" to be true hence, will not enter the waiting state.\n\t\t\tif(!resumeSignal){\n\t\t\t\ttry{\n\t\t\t\t\tlockObject.wait();\n\t\t\t\t} catch(InterruptedException e){}\n\t\t\t}\n\t\t\t//Waiting state is over. So, clear the signal flag and continue running.\n\t\t\tresumeSignal = false;\n\t\t}\n\t}",
"public void waitToFinish()\n/* */ {\n/* 473 */ synchronized (this) {\n/* 474 */ while (getIterationsToGo() > 0) {\n/* */ try {\n/* 476 */ wait();\n/* */ }\n/* */ catch (InterruptedException e) {\n/* 479 */ e.printStackTrace();\n/* */ }\n/* */ }\n/* */ }\n/* */ }",
"private void waitForBuyersAction() throws InterruptedException\n {\n while(waiting)\n {\n Thread.sleep(100);\n }\n waiting = true;\n }",
"public void wait(int time) {\r\n\t\t\tsuper.sleep(time);\r\n\t\t}",
"public String waitThread() throws InterruptedException {\n return \"Not Waiting Yet\";\n }",
"public synchronized void waitForDone() {\n\twhile (!done) myWait();\n }",
"private void await() {\n try {\n Thread.sleep(10 * 1000L);\n } catch (InterruptedException e) {\n // ignore\n }\n }",
"private void waitForElementToBeLoad(String string) {\n\t\n}",
"public void waitForDecision(){\n if(gameOver) {\n return;\n }\n if(!decisionActive) {\n try {\n uiWaiting = true;\n synchronized(uiWait) {\n uiWait.wait();\n }\n } catch (Exception e) { logger.log(\"\"+e); }\n }\n }",
"public void waitLoadPage() {\n WebDriverHelper.waitUntil(inputTeamName);\n }",
"public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"private static void waiting(int time) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"private void status() {\n Thread blockTread = new Thread() {\n @Override\n public void run() {\n synchronizedMethod();\n }\n };\n blockTread.start();\n\n Thread blockTread2 = new Thread() {\n @Override\n public void run() {\n synchronizedMethod();\n waitWithTimeMethod();\n }\n };\n log.info(blockTread2.getState().name());\n blockTread2.start();\n log.info(blockTread2.getState().name());\n while (true) {\n State state = blockTread2.getState();\n if (state == State.BLOCKED) {\n log.info(state.name());\n break;\n }\n }\n while (true) {\n State state = blockTread2.getState();\n if (state == State.TIMED_WAITING) {\n log.info(state.name());\n notifyMethod();\n break;\n }\n }\n while (true) {\n State state = blockTread2.getState();\n if (state == State.WAITING) {\n log.info(state.name());\n notifyMethod();\n break;\n }\n }\n while (true) {\n State state = blockTread2.getState();\n if (state == State.TERMINATED) {\n log.info(state.name());\n break;\n }\n }\n }",
"public void wait4arriving() throws InterruptedException {\n \n // your code here\t\n }",
"public Future<Void> wait(Integer id) throws DynamicCallException, ExecutionException{\n return call(\"wait\", id);\n }",
"public static void waitForAI(){\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void waitUntilReady() {\n\t\t\twhile (deque.isEmpty() && loadThread.isAlive()) {\n//\t\t\t\ttry {\n//\t\t\t\t\tThread.sleep(100);\n//\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\tExceptionUtils.throwAsRuntimeException(e);\n//\t\t\t\t}\n\t\t\t}\n\t\t}",
"public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"private void await() {\n try {\n game.getBarrier().await();\n } catch (InterruptedException | BrokenBarrierException e) {\n e.printStackTrace();\n }\n }",
"public void wbbarrierWait()\n {\n try{\n waitLock.lock();\n while(wbbarrierTag != -1){\n \t wbbarrier.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }",
"public static void waitForElementVisiblity(WebElement element) {\n\t\t\t\n\t\t}",
"public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}",
"void waitStartGameString();",
"public void handlingWaitToElement(By locator){\n WebDriverWait wait = new WebDriverWait(appiumDriver, 60);\n wait.until(ExpectedConditions.presenceOfElementLocated(locator));\n }",
"public static WebDriverWait getWait(){\n WebDriverWait wait = new WebDriverWait(driver,Constants.EXPLICIT_WAIT);\n return wait;\n }",
"@Override public void run() {\n waitUntil(\"message\", new Condition() {\n @Override public boolean isMet() {\n return false;\n }\n }, 0);\n }",
"private void waitForSignal(Object obj, String comment) {\r\n\t\tif (comment != null) log(mName + \": \" + comment);\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tobj.wait();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n public void run() {\n try {\r\n synchronized (lock) {\r\n System.out.println(\"begin wait\");\r\n lock.wait();\r\n System.out.println(\"end wait\");\r\n }\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }",
"static final void wait(Object obj, long ms, int ns)\n throws InterruptedException\n {\n int res = wait0(obj, ms, ns);\n if (res < 0)\n throw new IllegalMonitorStateException();\n if (res != 0)\n throw new InterruptedException();\n }",
"public void callTheWaiter(){\n Student s = (Student) Thread.currentThread();\n\n \tCommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n \tObject[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n \tstate_fields[0] = s.getID();\n \tstate_fields[1] = s.getStudentState();\n \t\n Message m_toServer = new Message(7, params, 0, state_fields, 2, null); \n Message m_fromServer; \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n \n s.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"public void waitForLoad() {\n\tExpectedCondition<Boolean> pageLoadCondition = new ExpectedCondition<Boolean>()\r\n\t { \r\n public Boolean apply(WebDriver driver) \r\n {\r\n\t return ((JavascriptExecutor)driver).executeScript(\"return document.readyState\").equals(\"complete\");\r\n\t\t }\r\n\t\t };\r\n\t// a\r\n\t\t if((new WebDriverWait(driver, 0.1).until(PageLoadCondition))==false){\r\n\t\t \t \t\r\n\t\t \t//Takesscreenshot is a java class - screenshot code\r\n\t\t \tTakesScreenshot scrShot=((TakesScreenshot)driver);\r\n\t\t \tFile SrcFile=scrShot.getScreenshotAs(OutputType.FILE);\r\n\t\t \tFile DestFile=new File(fileWithPath);\r\n\t\t \tFileUtils.copyFile(SrcFile, DestFile);\r\n\t\t \tSyso(\"page failed to load in 0.1 sec, refer screenshot saved in ___\");\r\n\t\t }\r\n\t\t// b \r\n\t\t if ((new WebDriverWait(driver, 5).until(PageLoadCondition))==true)){\r\n\t\t System.out.println(\"page loaded in 5 sec\");\t\r\n\t\t }\r\n\t}",
"public void waitServersReady() {\n }",
"protected void awaitResult(){\t\n\t\ttry {\n\t\t\t/*place thread/tuple identifier in waitlist for future responses from web service*/\n\t\t\tResponses.getInstance().addToWaitList(this.transId, this);\n\t\t\tthis.latch.await();\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\n\t\t\tLogger.getLogger(\"RSpace\").log(Level.WARNING, \"Transaction #\" + transId + \" response listener was terminated\");\n\t\t}\n\t}",
"protected void waitFor(Function waitConditions) {\n new WebDriverWait(webDriver, waitingTime).until(waitConditions);\n }",
"public boolean mustWait() {\n return mustWait;\n }",
"public interface ExplicitWait extends SearchScope{\n default Element await(Supplier<By> by) {\n return await((SearchScope e) -> e.findElement(by));\n }\n\n default void await(Predicate<SearchScope> predicate) {\n await((Function<SearchScope, Boolean>) predicate::test);\n }\n\n default <T> T await(Function<SearchScope, T> function) {\n return new FluentWait<>(this)\n .withTimeout(1, SECONDS)\n .pollingEvery(10, MILLISECONDS)\n .ignoring(Exception.class)\n .until(\n (SearchScope where) -> function.apply(where)\n );\n }\n\n default String getText(Supplier<By> by) {\n return await(by).getText();\n }\n\n default String getUpperText(Supplier<By> by) {\n return await(by).getText().toUpperCase();\n }\n\n default void click(Supplier<By> by) {\n await(by).click();\n }\n\n default Element untilFound(Supplier<By> by) {\n waitForPageToLoad();\n return new FluentWait<>(this)\n .withTimeout(30, TimeUnit.SECONDS)\n .pollingEvery(5, TimeUnit.MILLISECONDS)\n .ignoring(Exception.class)\n .until((ExplicitWait e) -> e.findElement(by));\n }\n\n default Element untilFound(Supplier<By> by, int duration) {\n waitForPageToLoad();\n return new FluentWait<>(this)\n .withTimeout(duration, TimeUnit.SECONDS)\n .pollingEvery(5, TimeUnit.MILLISECONDS)\n .ignoring(Exception.class)\n .until((ExplicitWait e) -> e.findElement(by));\n }\n\n default Wait<WebDriver> fluentWait() {\n return new FluentWait<>(TestBase.driver())\n .withTimeout(1, TimeUnit.MINUTES)\n .pollingEvery(5, TimeUnit.MILLISECONDS)\n .ignoreAll(new ArrayList<Class<? extends Throwable>>() {\n {\n add(StaleElementReferenceException.class);\n add(NoSuchElementException.class);\n add(TimeoutException.class);\n add(InvalidElementStateException.class);\n add(WebDriverException.class);\n }\n }).withMessage(\"The message you will see in if a TimeoutException is thrown\");\n }\n\n default void waitForPageToLoad() {\n waitForLoaderToComplete();\n waitForAjaxToComplete();\n waitForJavaScriptToComplete();\n }\n\n default void waitForLoaderToComplete() {\n Wait<WebDriver> wait = fluentWait();\n wait.until(loaderHasFinishProcessing());\n }\n\n default void waitForJavaScriptToComplete() {\n Wait<WebDriver> wait = fluentWait();\n wait.until(javaScriptHasFinishProcessing());\n }\n\n default void waitForAjaxToComplete() {\n Wait<WebDriver> wait = fluentWait();\n wait.until(jQuryHasFinishedProcessing());\n }\n\n default void waitForAngularToComplete() {\n Wait<WebDriver> wait = fluentWait();\n wait.until(angularHasFinishedProcessing());\n }\n\n default ExpectedCondition<Boolean> javaScriptHasFinishProcessing() {\n return driver -> (Boolean) ((JavascriptExecutor) driver)\n .executeScript(\"return document.readyState\").equals(\"complete\");\n }\n\n default ExpectedCondition<Boolean> loaderHasFinishProcessing() {\n return driver -> (Boolean) ((JavascriptExecutor) driver)\n .executeScript(\"return (window.show===false) || (window.show===undefined);\");\n }\n\n default ExpectedCondition<Boolean> jQuryHasFinishedProcessing() {\n return driver -> (Boolean) ((JavascriptExecutor) driver)\n .executeScript(\"return (window.jQuery != null) && (jQuery.active === 0);\");\n }\n\n default ExpectedCondition<Boolean> angularHasFinishedProcessing() {\n return driver -> Boolean.valueOf(((JavascriptExecutor) driver)\n .executeScript(\"return (window.angular !== undefined) &&\" +\n \" (angular.element(document).injector() !== undefined) &&\" +\n \" (angular.element(document).injector().get('$http')\" +\n \".pendingRequests.length === 0)\").toString());\n }\n}",
"private String waitPrint(){return \"waiting for other players...\";}",
"int waitFor(String variable, int count);",
"public void waitTillObjectAppears(By locator) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, TIMEOUT_S);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\t\t} catch (TimeoutException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public WebElement wait(WebElement webElement) {\n WebDriverWait webDriverWait = new WebDriverWait(driver, Integer.parseInt(testData.timeout));\n return webDriverWait.until(ExpectedConditions.visibilityOf(webElement));\n }",
"public static void waitForElement(WebDriver driver, WebElement element) throws Exception {\n\t\tWebDriverWait wait = new WebDriverWait(driver, 80);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\tThread.sleep(1000);\n\t}",
"void waitForAddStatusIsDisplayed() {\n\t\tSeleniumUtility.waitElementToBeVisible(driver, homepageVehiclePlanning.buttonTagAddStatusHomepageVehiclePlanning);\n\t}",
"protected void waitThePageToLoad() {\n ExpectedCondition pageLoadCondition = new ExpectedCondition<Boolean>() {\n public Boolean apply(WebDriver driver) {\n return ((JavascriptExecutor) driver).executeScript(\"return document.readyState\").equals(\"complete\");\n }\n };\n WaitUtils.waitUntil(driver, pageLoadCondition);\n }",
"public abstract void await() throws InterruptedException;",
"public static void waitToGo() {\r\n try {\r\n sendMessageToMaster(SocketMessage.SLAVE_READY_TO_GO);\r\n wait_to_run.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }",
"protected void waitDownloads() throws Exception {\n runtimeWrapper.newCommand();\n }",
"public void signalTheWaiter();",
"private void waitOnFabric(int additional) {\n try {\n out(\"Wait %d milliseconds for peers to sync with each other\", gossipWaitTime + additional);\n TimeUnit.MILLISECONDS.sleep(gossipWaitTime + additional);\n } catch (InterruptedException e) {\n fail(\"should not have jumped out of sleep mode. No other threads should be running\");\n }\n }",
"public void waitForElementVisibility(WebDriver driver, WebElement element)\n\t\t{\n\t\t\tWebDriverWait wait = new WebDriverWait(driver,20);\n\t\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\t}",
"@Override\n protected void waitThePageToLoad() {\n WaitUtils.waitUntil(driver, ExpectedConditions.visibilityOf(driver\n .findElement(By.xpath(SEARCH_XPATH))));\n }",
"public void waitCompletion()\n {\n\n if (isThreadEnabled())\n {\n try\n {\n executionThread.join();\n }\n catch (InterruptedException ex)\n {\n throw new RuntimeException(ex);\n }\n }\n }",
"protected void afterLockWaitingForBooleanCondition() {\n }",
"@Override\n public void waitUntilPageObjectIsLoaded() {\n }",
"public void waitForElementPresent(By locator){\n \tWebDriverWait wait=new WebDriverWait(driver,20);\n \twait.until(ExpectedConditions.presenceOfElementLocated(locator));\n }",
"public void waitForThread() {\n monitorState = true;\n while (monitorState) {\n synchronized (monitor) {\n try {\n monitor.wait(); // wait until notified\n } catch (Exception e) {}\n }\n }\n }",
"public boolean wait(final String title) {\n\t\treturn wait(title, (String) null);\n\t}",
"public static void explicitWaitTillVisible(WebDriver driver, int sec, WebElement element) {\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, sec);\r\n\t\twait.until(ExpectedConditions.visibilityOf(element));\r\n\t}",
"public void waitUntil(long x){\n\n Machine.interrupt().disable(); //disable interrupts\n\n\t long wakeTime; \n wakeTime = Machine.timer().getTime() ;\n wakeTime = wakeTime + x; //calculate wakeTime\n\n //pass through wakeTime and current thread as instance variables for a\n ThreadWait a;\n a = new ThreadWait(wakeTime, KThread.currentThread());\n\n waitingQueue.add(a); //add a to the waitingQueue \n\n KThread.currentThread().sleep(); //sleep current thread\n\n Machine.interrupt().enable(); //enable interrupts\n }",
"protected boolean waitBeforeExecution() throws InterruptedException {\n/* 112 */ Integer mx = ((IncomingSearchRequest)getInputMessage()).getMX();\n/* */ \n/* 114 */ if (mx == null) {\n/* 115 */ log.fine(\"Invalid search request, did not contain MX header: \" + getInputMessage());\n/* 116 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 122 */ if (mx.intValue() > 120 || mx.intValue() <= 0) mx = MXHeader.DEFAULT_VALUE;\n/* */ \n/* */ \n/* 125 */ if (getUpnpService().getRegistry().getLocalDevices().size() > 0) {\n/* 126 */ int sleepTime = this.randomGenerator.nextInt(mx.intValue() * 1000);\n/* 127 */ log.fine(\"Sleeping \" + sleepTime + \" milliseconds to avoid flooding with search responses\");\n/* 128 */ Thread.sleep(sleepTime);\n/* */ } \n/* */ \n/* 131 */ return true;\n/* */ }",
"public void waitUntilReady() throws IOException, InterruptedException {\n while (ready() == 0) {\n Thread.sleep(10);\n }\n }",
"void sleep()\r\n\t{\r\n\t\t\r\n\t}",
"public void waitUntil(long x) {\n\n\tlong wakeTime = Machine.timer().getTime() + x;\n\tboolean intrState = Machine.interrupt().disable();\n\tKThread.currentThread().time = wakeTime;\n\tsleepingThreads.add(KThread.currentThread());\n\tKThread.currentThread().sleep();\n Machine.interrupt().restore(intrState);\n \n }",
"private synchronized boolean waitResume() {\n return true;\n }",
"protected WebElement waitForElementToBeVisible(WebElement element) {\n actionDriver.moveToElement(element);\n WebDriverWait wait = new WebDriverWait(driver, 5);\n wait.until(ExpectedConditions.visibilityOf(element));\n return element;\n }"
]
| [
"0.7300922",
"0.7232305",
"0.72168773",
"0.70242155",
"0.701552",
"0.6933906",
"0.6870752",
"0.6827173",
"0.67749375",
"0.6746962",
"0.6736198",
"0.6728785",
"0.67257327",
"0.6650963",
"0.6577195",
"0.6575304",
"0.6502406",
"0.6472323",
"0.64708024",
"0.64580244",
"0.6439228",
"0.6432572",
"0.640211",
"0.639537",
"0.63488406",
"0.63358897",
"0.6326043",
"0.63216805",
"0.63211113",
"0.6319649",
"0.6290047",
"0.62738854",
"0.62672216",
"0.62557006",
"0.62525505",
"0.6238626",
"0.62363505",
"0.62329066",
"0.62317014",
"0.61486864",
"0.6129148",
"0.6122491",
"0.6119594",
"0.609323",
"0.60832465",
"0.60821474",
"0.6078276",
"0.60599345",
"0.6059493",
"0.6037178",
"0.60142094",
"0.60099643",
"0.6008524",
"0.6006062",
"0.5981547",
"0.59786576",
"0.59776145",
"0.5964733",
"0.596213",
"0.59592545",
"0.5948338",
"0.594763",
"0.5943615",
"0.5930972",
"0.5928294",
"0.59278053",
"0.59172505",
"0.59172237",
"0.5915697",
"0.5915667",
"0.5905834",
"0.5902758",
"0.5896737",
"0.58936864",
"0.5892982",
"0.58914745",
"0.5884253",
"0.5880574",
"0.58675677",
"0.5866215",
"0.58586985",
"0.58469874",
"0.58247465",
"0.58216935",
"0.5821152",
"0.5814334",
"0.58078456",
"0.57992315",
"0.5799198",
"0.5795822",
"0.5789564",
"0.57827604",
"0.5782144",
"0.5778674",
"0.57730895",
"0.5766319",
"0.5765071",
"0.5760268",
"0.57539195",
"0.5751216",
"0.5748472"
]
| 0.0 | -1 |
super.onPostExecute(aVoid); Dismissing the progress dialog | protected void onPostExecute(Void aVoid) {
progressDialog.dismiss();
//Showing a success message
Toast.makeText(context, R.string.toast_complete, Toast.LENGTH_SHORT).show();
act.finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\t protected void onPostExecute(Void result)\n\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tif (progressDialog != null)\n\t\t\t\t\t\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t\t }",
"@Override\n\t\t\t protected void onPostExecute(Void result)\n\t\t\t {\n\t\t\t\t\t\t\t\t\tif (progressDialog != null)\n\t\t\t\t\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t }",
"@Override\n \t\tprotected void onPostExecute(Void result) \n \t\t{\n\t\t\t//close the progress dialog\n\t\t\tprogressDialog.dismiss();\n\t\t\tprogressDialog = null;\n \t\t}",
"@Override\r\n protected void onPostExecute(Void result) {\n mProgressDialog.dismiss();\r\n }",
"@Override\r\n\tprotected void onPostExecute(String result)\r\n\t{\r\n\t\tprogress.dismiss();\r\n\t\tsuper.onPostExecute(result);\r\n\t}",
"@Override\n protected void onPostExecute(Void result) {\n // This is where we would process the results if needed.\n this.progressDialog.dismiss();\n }",
"@Override\n\t\t\tprotected void onPostExecute(JSONObject result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\t\n\t\t\t\tmProgressDialog.dismiss();\n\t\t\t\t\n\t\t\t}",
"@Override\n protected void onPostExecute(String temp) {\n\n progressDialog.dismiss();\n }",
"@Override\n\t\t\tprotected void onPostExecute(JSONObject result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\tmProgressDialog.dismiss();\n\t\t\t}",
"@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\td.dismiss();\n\t\t}",
"@Override\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\n\t\tmDialog.dismiss();\n\t}",
"@Override\r\n\tprotected void onPostExecute(String result) {\r\n\t\tprogressDialog.setMessage(\"Finalizado!\");\r\n\t\t// fecha o dialog\r\n\t\tprogressDialog.dismiss();\r\n\t\tsuper.onPostExecute(result);\r\n\t}",
"@Override\n protected void onPostExecute(String file_url) {\n dismissDialog(progress_bar_type);\n //pDialog.dismiss();\n }",
"@Override\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\t\t\n\t\t\tprogressDialog.dismiss();\n\t\t\tsetAllValues();\n\t\t}",
"@Override\r\n protected void onPostExecute(String message) {\n this.progressDialog.dismiss();\r\n Toast.makeText(getApplicationContext(),\r\n message, Toast.LENGTH_LONG).show();\r\n }",
"@Override\n protected void onPostExecute(Void aVoid) {\n super.onPostExecute(aVoid);\n progressDialog.dismiss();\n Toast.makeText(context,\"下载完成!\",Toast.LENGTH_SHORT).show();\n }",
"@Override\n protected void onPostExecute(BackgroundTaskResult result)\n {\n taskCompleted = true;\n dismissProgressDialog();\n notifyTaskCompletion(result);\n }",
"protected void onPostExecute(Double result){\n\n dialog.dismiss();\n super.onPostExecute(result);\n }",
"protected void onPostExecute(Void v) {\n }",
"@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }",
"protected void onPostExecute(Void v) {\n\n }",
"protected void onPostExecute(Void v) {\n\n }",
"@Override\n\t\t protected void onPostExecute(Void result) {\n\t\t \t\n\t\t super.onPostExecute(result); \n\t\t }",
"@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n if (pd.isShowing()) {\n pd.dismiss();\n }\n }",
"@SuppressLint(\"NewApi\") @Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t// Shows Progress Bar Dialog and then call doInBackground method\n\t\t\t\t\t\tshowDialog(progress_bar_type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tprgDialog.setProgress(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// \n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t// ===============================================\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"protected void onPostExecute() {\r\n\t}",
"protected void onPostExecute(Void v) {\n\n\n }",
"@Override\n protected void onPreExecute()\n {\n taskCompleted = false;\n\n //display the progress dialog\n showProgressDialog();\n }",
"@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (dl != null) {\n\t\t\t\tdl.dismiss();\n\t\t\t}\n\t\t}",
"@Override\n\tprotected void onPostExecute(HashMap<String, String> result) {\n\t\tsuper.onPostExecute(result);\n\t\tpleaseWait.dismiss();\n\t}",
"protected void onPostExecute(String resultado) {\n dismissProgressDialog();\n showResult(resultado);\n }",
"protected void onPostExecute(String resultado) {\n dismissProgressDialog();\n showResult(resultado);\n }",
"public void onPreExecute() {\n progressDialog.show();\n }",
"protected void onPreExecute(){\n // Display the progress dialog on async task start\n // mProgressDialog.show();\n }",
"@Override\n protected void onPostExecute(Boolean result)\n {\n super.onPostExecute(result);\n\n //isValid=result;\n delegate.onTaskCompleted(result);\n\n try\n {\n\n if ((this.pDialog != null) && this.pDialog.isShowing())\n {\n this.pDialog.dismiss();\n }\n\n\n }\n catch (final IllegalArgumentException e)\n {\n // Handle or log or ignore\n }\n catch (final Exception e)\n {\n // Handle or log or ignore\n }\n finally\n {\n this.pDialog = null;\n }\n\n\n }",
"@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t}",
"@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t}",
"protected void onPostExecute() {\n }",
"protected void onPostExecute() {\n }",
"@Override\n\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t}",
"@Override\n\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t}",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tmProgressDialog = new ProgressDialog(getActivity());\n\t\t\t\tmProgressDialog.setCanceledOnTouchOutside(false);\n\t\t\t\tmProgressDialog.setCancelable(false);\n\t\t\t\tmProgressDialog.show();\n\t\t\t}",
"@Override\n protected void onPreExecute() {\n pd = ProgressDialog. show(Evento.this, \"Eliminar Evento\", \"ESPERE UN MOMENTO\");\n pd.setCancelable( false);\n }",
"@Override\n\t\t\t\tprotected void onPostExecute(Void result)\n\t\t\t\t{\n\t\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\t}",
"protected void onPostExecute() {\n }",
"protected void onPostExecute(Integer result){\n\t Utils.logThreadSignature(this.tag);\n\t r.reportBack(tag, \"onPostExecute result:\" + result);\n\t pd.cancel();\n\t r.allDone(0);\n }",
"@Override\n protected void onPostExecute(Void aVoid) {\n }",
"@Override\r\n\t\t\tpublic void onFinish() {\n\t\t\t\tsuper.onFinish();\r\n\t\t\t\tLog.i(\"finish\", \"finish\");\r\n\t\t\t\tdismissProgress();\r\n\t\t\t}",
"protected void onPreExecute() {\n // Display the progress dialog on async task start\n // mProgressDialog.show();\n }",
"@Override\n\tprotected void onPostExecute() {\n\n\t\tprogressDialog.dismiss();\n\n\t\ttry {\n\n\t\t\tgetResult();\n\n\t\t\tif (completionListener != null) {\n\t\t\t\tcompletionListener.onDownloadAllDataComplete(true);\n\t\t\t}\n\n\t\t} catch (Exception error) {\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\t\tbuilder.setTitle(string.error)\n\t\t\t\t\t.setMessage(context.getString(string.datasync_dialog_cantsync) + error.getMessage())\n\t\t\t\t\t.setCancelable(false).setPositiveButton(string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tif (completionListener != null) {\n\t\t\t\t\t\t\t\tcompletionListener.onDownloadAllDataComplete(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}).show();\n\t\t}\n\n\t}",
"@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n \t\t\n\t\t\t//close the dialog and the activity\n\t\t\tsave.dismiss();\n \t\tfinish();\n\t\t}",
"protected void onPostExecute(Void result) {\n\t\t\tif (progressDialog.isShowing()) {\n if(isInUserBoard) {\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n progressDialog.dismiss();\n startActivity(intent);\n }\n else {\n alertDialog.setMessage(PROGRESS_ERROR);\n alertDialog.show();\n progressDialog.dismiss();\n\n }\n\t\t\t}\n\t\t\telse {\n\t alertDialog.setMessage(PROGRESS_ERROR);\n\t alertDialog.show();\n progressDialog.dismiss();\n\n }\n\t\t}",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\r\n\t\t\tprogressDialog = ProgressDialog.show(getActivity(), \"\", StaticVariables.progressBarText, false);\r\n\t\t\tprogressDialog.setCancelable(false);\r\n\t\t}",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\r\n\t\t\tprogressDialog = ProgressDialog.show(getActivity(), \"\", StaticVariables.progressBarText, false);\r\n\t\t\tprogressDialog.setCancelable(false);\r\n\t\t}",
"@Override\n\t\t\tprotected void onPostExecute(Boolean result) {\n\t\t\t\tparent.loaderUtils.dismissLoading();\n\t\t\t\tif (result) updateSaveAndShareState(true);\n\t\t\t}",
"@Override\n\t\t\tprotected void onPostExecute(Boolean result) {\n\t\t\t\tparent.loaderUtils.dismissLoading();\n\t\t\t\tif (result) updateSaveAndShareState(true);\n\t\t\t}",
"@Override\n protected void onPreExecute() {\n if (mProgressDialog != null) {\n mProgressDialog.show();\n }\n }",
"protected void onPostExecute(Void result) {\n }",
"@Override\r\n protected void onPreExecute() {\r\n super.onPreExecute();\r\n this.progressDialog = ProgressDialog.show(SelectFBForDGPSActivity.this, \"\", \"Please wait...Your CMV data is downloading\", false);\r\n this.progressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\r\n this.progressDialog.setCancelable(false);\r\n }",
"@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (result != null) {\n\t\t\t\tToast.makeText(getActivity(), \"Tai thanh cong!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(getActivity(), \"That bai\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t\ttoggleShowProgressDialog(false);\n\t\t}",
"@Override\r\n\t\tprotected void onPostExecute(Void result)\r\n\t\t{\n\t\t}",
"@Override\n protected void onPreExecute() {\n progressBar.setProgress(0);\n super.onPreExecute();\n }",
"@Override\r\n\t\tprotected void onPostExecute(Void result) \r\n\t\t{\n\t\t}",
"@Override\n protected void onPreExecute() {\n myProgress = 0;\n }",
"@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progressDialog = new ProgressDialog(AiutaGliAltri.this);\n progressDialog.setMessage(\"Sto Cercando!\");\n progressDialog.setIndeterminate(true);\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.show();\n }",
"@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t \n\t progressDialog= new Dialog(ListKotaActivity.this);\n\t progressDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);\n\t progressDialog.setContentView(R.layout.progress);\n\t progressDialog.setCancelable(false);\n\t progressDialog.show();\t \n\t }",
"@Override\n\t\t protected void onPostExecute(Boolean result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\t\n\t\t }",
"@Override\n protected void onPostExecute(Void result) {\n\n }",
"protected void onPostExecute(String file_url) {\n // dismiss the dialog once done\n pDialog.dismiss();\n }",
"@Override\n protected void onPostExecute(String result) {\n super.onPostExecute(result);\n\n spinner.setVisibility(View.VISIBLE);\n // dialog.dismiss();\n // Do things like hide the progress bar or change a TextView\n }",
"@Override\n protected void onPostExecute(String result){\n finish();\n }",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\t\t\tpDialog = new ProgressDialog(SingleRecord.this);\r\n\t\t\tpDialog.setMessage(\"downloading...\");\r\n\t\t\tpDialog.setIndeterminate(false);\r\n\t\t\tpDialog.setCancelable(true);\r\n\t\t\r\n\t\t\tpDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\r\n\t\t\tpDialog.show();\r\n\t\t\tpDialog.getWindow().setGravity(Gravity.BOTTOM);\r\n\t\t}",
"@Override\n protected void onPostExecute(String file_url) {\n mContext.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n MyApplication.getContext().stopProgress(mContext);\n MyApplication.getContext().showCustomProgress(mContext, R.drawable.complete, Constants.DOWNLOAD_COMPLETE);\n MyApplication.getContext().scheduleDismiss();\n mAdapter.notifyDataSetChanged();\n }\n });\n\n }",
"protected void onPostExecute(Void result) {\n mNotificationHelper.completed();\r\n// \tmsc.connect();\r\n }",
"@Override\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tView rootView =(View)result;\n\t\t\ttry {\n\t\t\t\tThread.sleep(400);\n\t\t\t} catch (InterruptedException e) {\t\t\t\t\n\t\t\t}\n\t\t\tsetContentView(rootView);\t\t\t\n\t\t\tgetProgressDialog().hide();\n\t\t}",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progressDialog = ProgressDialog.show(QuizActivity.this, \"Downloading Quiz\",\"Wait....\", true);\n }",
"@Override\r\n protected void onPostExecute(Void result) {\n\r\n }",
"@Override protected void onPostExecute(String[] result) {\n mWaveSwipeRefreshLayout.setRefreshing(false);\n super.onPostExecute(result);\n }",
"@Override\n\t protected void onPostExecute(String result) \n\t {\n\t \tmHandler.post(updateList);\n\t \t\n\t //mProgress.setVisibility(View.GONE);\n\n\t }",
"@Override\n protected void onPostExecute(String s) {\n super.onPostExecute(s);\n dialog.dismiss(); // to stop showing the progressbar After process is completed\n tvResult.setText(s);\n tvResult.setVisibility(View.VISIBLE);\n Toast.makeText(MainActivity.this, \"Process Done\", Toast.LENGTH_SHORT).show();\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 protected void onPreExecute() {\n dialog= ProgressDialog.show(DetailsActivity.this, \"Please wait...\",\"Your connection speed is bad\", true);\n dialog.setCancelable(true);\n dialog.setOnCancelListener(new DialogInterface.OnCancelListener(){\n public void onCancel(DialogInterface dialog) {\n task.cancel(true);\n finish();\n }\n });\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressDialog = ProgressDialog.show(SearchView.this, \"Espere...\", \"Recebendo dados\", true, true);\n\t\t\tprogressDialog.setOnCancelListener(new CancelTaskOnCancelListener(this));\n\t\t}",
"@Override\n protected void onPostExecute(Void result) {\n super.onPostExecute(result);//Run the generic code that should be ran when the task is complete\n onCompleteListener.onAsyncTaskComplete(result);//Run the code that should occur when the task is complete\n }",
"@Override\n protected void onPreExecute() {\n progressDialog= new ProgressDialog(getActivity());\n progressDialog.setMessage(\"loading..\");\n progressDialog.setIndeterminate(false);\n progressDialog.show();\n }",
"protected void onPostExecute(String file_url) {\r\n\t\t\t// dismiss the dialog once done\r\n\t\t\tpDialog.dismiss();\r\n\t\t}",
"@Override\r\n\tprotected void onPostExecute(Integer result) {\n\t\tsuper.onPostExecute(result);\r\n\t}",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n this.dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n this.dialog.setCancelable(false);\n this.dialog.show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n mprogress = new ProgressDialog(LoginActivity.this);\n mprogress.setTitle(\"Checking/Downloading Update.\");\n mProgress.setMessage(\"Please Wait\");\n mprogress.setCancelable(false);\n mprogress.setIndeterminate(false);\n mprogress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n mprogress.setMax(100);\n mprogress.show();\n\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\t\tprotected void onPreExecute()\n\t\t{\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog = new ProgressDialog(TwitterActivity.this);\n\t\t\tpDialog.setMessage(\"Updating to twitter...\");\n\t\t\tpDialog.setIndeterminate(false);\n\t\t\tpDialog.setCancelable(false);\n\t\t\tpDialog.show();\n\t\t}",
"@Override\n protected void onPostExecute(Integer result) {\n super.onPostExecute(result);\n }",
"@Override\n protected void onPreExecute() {\n\n dialog = new ProgressDialog(AddFoodAdvActivity.this);\n dialog.setMessage(\"Please Wait...!\");\n dialog.show();\n super.onPreExecute();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n showProgressDialog(R.string.please_wait);\n //showDialog(progress_bar_type);\n }",
"@Override\n protected void onPreExecute() {\n String msg = \"Please Wait....\";\n cd.showProgressDialog(msg);\n\n }",
"@Override\n \tprotected final void onPostExecute(final Boolean result) {\n \t\tAndGMXsms.dialogString = null;\n \t\tif (AndGMXsms.dialog != null) {\n \t\t\ttry {\n \t\t\t\tAndGMXsms.dialog.dismiss();\n \t\t\t\tAndGMXsms.dialog = null;\n \t\t\t} catch (Exception e) {\n \t\t\t\t// nothing to do\n \t\t\t}\n \t\t}\n \t}",
"@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n\n\t\t\tif (dialog != null)\n\t\t\t\tdialog.dismiss();\n\n\t\t\tOpenActivty();\n\t\t}",
"@Override\n protected void onPostExecute(Bitmap result) {\n image.setImageBitmap(result);\n // Close progressdialog\n mProgressDialog.dismiss();\n }",
"@Override\n protected void onPostExecute(String adf_dataset_uuid) {\n if (mProgressDialog != null) {\n mProgressDialog.dismiss();\n }\n if (mCallbackListener != null) {\n mCallbackListener.onSaveAdfFinished(mAdfName, adf_dataset_uuid);\n }\n }"
]
| [
"0.9013991",
"0.8991949",
"0.8888326",
"0.8635657",
"0.86225647",
"0.8573389",
"0.8296732",
"0.82932067",
"0.8252248",
"0.8070662",
"0.80704546",
"0.8068305",
"0.80625325",
"0.80037504",
"0.79426396",
"0.7912894",
"0.7856545",
"0.78306586",
"0.77396446",
"0.7716978",
"0.76987046",
"0.76987046",
"0.7685056",
"0.7625762",
"0.7572557",
"0.7567843",
"0.7562449",
"0.75561416",
"0.7555845",
"0.7553293",
"0.7546533",
"0.7546533",
"0.7541455",
"0.7487352",
"0.7476095",
"0.74710745",
"0.74710745",
"0.74672353",
"0.74672353",
"0.74595386",
"0.74595386",
"0.744849",
"0.7427803",
"0.74256206",
"0.74199474",
"0.7418568",
"0.7397603",
"0.7384023",
"0.7381648",
"0.735778",
"0.73507565",
"0.73491406",
"0.73288804",
"0.73288804",
"0.7320121",
"0.7320121",
"0.7318267",
"0.7312676",
"0.7297705",
"0.7295818",
"0.7283091",
"0.7282723",
"0.72807616",
"0.7272806",
"0.727173",
"0.72702104",
"0.72669494",
"0.7266278",
"0.72468954",
"0.7246718",
"0.72453725",
"0.72381264",
"0.72294843",
"0.7214477",
"0.7209388",
"0.72048515",
"0.72012776",
"0.7181737",
"0.7171416",
"0.71584547",
"0.71543604",
"0.71502787",
"0.7146389",
"0.71427363",
"0.71426576",
"0.71347266",
"0.7127027",
"0.7126688",
"0.7111055",
"0.7105991",
"0.71059424",
"0.7105854",
"0.71057063",
"0.70919144",
"0.708671",
"0.70834917",
"0.70832556",
"0.7082559",
"0.70822644",
"0.70811605"
]
| 0.78265345 | 18 |
/ 20140623 bind image buttons | private void initWidgets() {
spots = new ImageButton[MAX_SPOTS];
for(int i=0; i<MAX_SPOTS; i++) {
final int temp = i;
spots[i] = (ImageButton) findViewById(R.id.stamp01 + i);
spots[i].setOnClickListener(new OnClickListener() {
public void onClick(View v) {
toSpotActivity(temp);
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageButton generateItemButton(Texture image) {\n\t\tTextureRegion imgRegion = new TextureRegion(image);\n\t\tTextureRegionDrawable imgDraw = new TextureRegionDrawable(imgRegion);\n\t\treturn new ImageButton(imgDraw);\n\t}",
"public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void initializeImageButtons()\n\t{\n\t\t/* hook up refresh button to fetch data from Parse and populate views */\n\t\trefreshImageView = (ImageView)findViewById(R.id.refreshImageView);\n\t\trefreshImageView.setOnClickListener(new OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tupdateCheeseCountData(v);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t/* hook up rankings button to fetch ranking info from Parse and populate views */\n\t\trankingsImageView = (ImageView)findViewById(R.id.rankingImageView);\n\t\trankingsImageView.setOnClickListener(new OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(TheftActivity.this, RankingsActivity.class);\n\t\t\t\tupdateType = UpdateType.NOUPDATE;\n\t\t\t\tstartActivity(intent);\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t});\n\t}",
"public void ImageView(ActionEvent event) {\n\t}",
"private void setCaptureButtonImages()\n\t{\n\t\tif(m_CaptureButtons == null)\n\t\t\treturn;\n\t\tCameraActivity camaraActivity = this.getCameraActivity();\n\t\tif(!Handle.isValid(m_CaptureButtonBgHandle))\n\t\t\tm_CaptureButtonBgHandle = m_CaptureButtons.setPrimaryButtonBackground(camaraActivity.getDrawable(R.drawable.capture_button_slow_motion_border), 0);\n\t\tif(!Handle.isValid(m_CaptureButtonIconHandle))\n\t\t\tm_CaptureButtonIconHandle = m_CaptureButtons.setPrimaryButtonIcon(camaraActivity.getDrawable(R.drawable.capture_button_slow_motion_icon), 0);\n\t}",
"PreViewPopUpPage clickImageLink();",
"public abstract ImageIcon getButtonIcon();",
"JButton getProcessImageButton() {\n return processImageButton;\n }",
"@Override\n protected void initEvents() {\n super.initEvents();\n picture1.setOnClickListener(this);\n picture2.setOnClickListener(this);\n }",
"protected void addImageIcons(String key) {\n Image normal = ResourceManager.getImage(\"orderButton.normal.\" + key);\n Image highlighted = ResourceManager.getImage(\"orderButton.highlighted.\" + key);\n Image pressed = ResourceManager.getImage(\"orderButton.pressed.\" + key);\n Image disabled = ResourceManager.getImage(\"orderButton.disabled.\" + key);\n orderButtonImageCount = ((normal == null) ? 0 : 1)\n + ((highlighted == null) ? 0 : 1)\n + ((pressed == null) ? 0 : 1)\n + ((disabled == null) ? 0 : 1);\n if (hasOrderButtons()) {\n putValue(BUTTON_IMAGE, new ImageIcon(normal));\n putValue(BUTTON_ROLLOVER_IMAGE, new ImageIcon(highlighted));\n putValue(BUTTON_PRESSED_IMAGE, new ImageIcon(pressed));\n putValue(BUTTON_DISABLED_IMAGE, new ImageIcon(disabled));\n } else {\n logger.warning(\"Missing \" + (4-orderButtonImageCount)\n + \" orderButton images for \" + getId());\n }\n }",
"private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==imgBtn) {\n\t\t\t\n\t\t\timgBtn.setSize(INT_VALUE*10, INT_VALUE*10);\n\t\t}\n\t}",
"public interface ImageSelectClicked {\n void clickImage(int position);\n}",
"@FXML\r\n public void imageButtonClicked() {\r\n File file = fileChooser.showOpenDialog(viewHandler.getPrimaryStage());\r\n if (file != null) {\r\n try {\r\n viewModel.setImageurl(ImageConverter.ImageToByte(file));\r\n Image img = new Image(new ByteArrayInputStream(viewModel.getImageurl()));\r\n dogPicture.setFill(new ImagePattern(img));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public TextButton (BufferedImage bi)\n { \n updateValue(bi);\n }",
"private void initImage() {\n BufferedImage closebtn = null;\n BufferedImage mulaiBtn = null;\n try {\n mulaiBtn = ImageIO.read(new File(\"image\\\\button\\\\mulai_btn.png\"));\n closebtn = ImageIO.read(new File(\"image\\\\button\\\\closeX_btn.png\"));\n ImageIcon mulaiBtnImage = new ImageIcon(mulaiBtn.getScaledInstance(126, 32, Image.SCALE_SMOOTH));\n ImageIcon closeBtnImage = new ImageIcon(closebtn.getScaledInstance(42, 42, Image.SCALE_SMOOTH));\n button_mulai.setIcon(mulaiBtnImage);\n button_close.setIcon(closeBtnImage);\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n button_mulai.setText(\"\");\n button_close.setText(\"\");\n }\n }",
"public void handleActionChosenImageView(MouseEvent event){\n Integer actionSelected = buttonAction.get(event.getSource());\n System.out.println(\"input sent from gameboard Controller : execute action \" + actionSelected.toString());\n sender.sendInput(\"execute action \" + actionSelected.toString());\n\n for (Map.Entry<Integer, ImageView> entry : coverImages.entrySet()) {\n\n entry.getValue().setVisible(false);\n }\n\n }",
"public interface ImageClickedListener {\n void onImageClicked(int position);\n}",
"@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }",
"public void toggleButton(){\r\n\t\tImageIcon xImage = new ImageIcon(\"image/x.png\");\t//Inserting image to the button\r\n\t\tImageIcon oImage = new ImageIcon(\"image/o.png\");\t//Inserting image to the button\r\n\t\tfor(int i=0;i<3;i++){\t\t\t\t\t//Update the buttons' text base on array of state\r\n\t\t\tfor(int j=0;j<3;j++){\r\n\t\t\t\t this.b[i][j].setIcon(Exer10.state[i][j]==1?xImage:(Exer10.state[i][j]==2?oImage:null));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void initializeButtons(){\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 6; j++){\n\t\t\t\tString s = \"Cards\"+File.separator + i +\",\"+ j + \".jpg\";\n\t\t\t\tImageIcon icon = new ImageIcon(s);\n\t\t\t\tImage img = icon.getImage();\n\t\t\t\tImage newImg = img.getScaledInstance(130, 160, java.awt.Image.SCALE_SMOOTH);\n\t\t\t\tbuttons[i][j] = new JButton(new ImageIcon(newImg));\n\t\t\t}\n\t\t}\n\t\tString s = \"Cards\"+File.separator+\"initial.jpg\";\n\t\tImageIcon icon = new ImageIcon(s);\n\t\tImage img = icon.getImage();\n\t\tImage newImg = img.getScaledInstance(130, 160, java.awt.Image.SCALE_SMOOTH);\n\t\tlastcard1 = new JLabel(new ImageIcon(newImg));\n\t\tlastcard2 = new JLabel(new ImageIcon(newImg));\n\t}",
"private void itemBrowseTextureActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }",
"public Controls()\n {\n string = \"Controls\";\n getButtonImage();\n }",
"private void changeGraphic(ToggleButton toggleButton, Image diceImage){\n\t toggleButton.setGraphic(new ImageView(diceImage));\n\t}",
"private void addButtonActionPerformed() {//GEN-FIRST:event_addButtonActionPerformed\r\n this.controller.OnAddPhoto();\r\n }",
"public void addListeners() {\n\t\timages[TOP].setOnClickListener(top);\t\n\t\timages[BOTTOM].setOnClickListener(bottom);\n\t\timages[TOP].setOnLongClickListener(topsave);\t\n\t\timages[BOTTOM].setOnLongClickListener(bottomsave);\n }",
"private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n scrollPane = new javax.swing.JScrollPane();\n previewLabel = new javax.swing.JLabel();\n rbProjectImages = new javax.swing.JRadioButton();\n rbExternalImages = new javax.swing.JRadioButton();\n lblFile = new javax.swing.JLabel();\n lblUrl = new javax.swing.JLabel();\n cbFile = new javax.swing.JComboBox();\n rbNoImage = new javax.swing.JRadioButton();\n txtUrl = new javax.swing.JTextField();\n btnBrowseImage = new javax.swing.JButton();\n\n previewLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n scrollPane.setViewportView(previewLabel);\n\n buttonGroup1.add(rbProjectImages);\n rbProjectImages.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbProjectImages.text\")); // NOI18N\n rbProjectImages.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbProjectImages.toolTipText\")); // NOI18N\n rbProjectImages.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbProjectImages.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbProjectImagesActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(rbExternalImages);\n rbExternalImages.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbExternalImages.text\")); // NOI18N\n rbExternalImages.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbExternalImages.toolTipText\")); // NOI18N\n rbExternalImages.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbExternalImages.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbExternalImagesActionPerformed(evt);\n }\n });\n\n lblFile.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.lblFile.text\")); // NOI18N\n\n lblUrl.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.lblUrl.text\")); // NOI18N\n\n cbFile.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbFileActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(rbNoImage);\n rbNoImage.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbNoImage.text\")); // NOI18N\n rbNoImage.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbNoImage.toolTipText\")); // NOI18N\n rbNoImage.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbNoImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbNoImageActionPerformed(evt);\n }\n });\n\n txtUrl.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtUrlActionPerformed(evt);\n }\n });\n\n btnBrowseImage.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.btnBrowseImage.text\")); // NOI18N\n btnBrowseImage.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.btnBrowseImage.toolTipText\")); // NOI18N\n btnBrowseImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBrowseImageActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(scrollPane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 453, Short.MAX_VALUE)\n .addComponent(rbProjectImages, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rbExternalImages, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblFile)\n .addComponent(lblUrl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(txtUrl, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE)\n .addGap(46, 46, 46))\n .addGroup(layout.createSequentialGroup()\n .addComponent(cbFile, 0, 357, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBrowseImage))))\n .addComponent(rbNoImage, javax.swing.GroupLayout.Alignment.LEADING))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(rbProjectImages)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblFile)\n .addComponent(cbFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBrowseImage))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rbExternalImages)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblUrl)\n .addComponent(txtUrl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rbNoImage)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)\n .addContainerGap())\n );\n }",
"private void initUI() {\n\t\timageview = (ImageView) v.findViewById(R.id.shezhi);\r\n\t\timageview.setOnClickListener(this);\r\n\r\n\t\tmytaobao = (ImageView) v.findViewById(R.id.taobao_go);\r\n\t\tmytaobao.setOnClickListener(this);\r\n\r\n\t\twuliu = (ImageView) v.findViewById(R.id.wuliu);\r\n\t\twuliu.setOnClickListener(this);\r\n\r\n\t\tgouwuche = (ImageView) v.findViewById(R.id.gouwuche);\r\n\t\tgouwuche.setOnClickListener(this);\r\n\r\n\t\tchadingdan = (ImageView) v.findViewById(R.id.dingdan);\r\n\t\tchadingdan.setOnClickListener(this);\r\n\r\n\t\tshoucang = (ImageView) v.findViewById(R.id.shoucang);\r\n\t\tshoucang.setOnClickListener(this);\r\n\t}",
"private void bindButtons() {\n \n \t\tbuttons = new ArrayList<ImageView>();\n \t\tbuttons.add((ImageView) findViewById(R.id.upload));\n \t\tbuttons.add((ImageView) findViewById(R.id.connect_remote));\n \n \t\tbuttons.add((ImageView) findViewById(R.id.show_all_apps));\n \t\tbuttons.get(2).setOnClickListener(new ShowApplications());\n \n \t\tmGrid.setOnItemClickListener(new ApplicationLauncher());\n \n \t\tbuttons.add((ImageView) findViewById(R.id.play_vod));\n \t\tbuttons.add((ImageView) findViewById(R.id.play_tv));\n \t\tbuttons.add((ImageView) findViewById(R.id.parameters));\n \n \t\tmButtonClickedListener = new OnClickListener() {\n \n \t\t\tpublic void onClick(View v) {\n \t\t\t\tString packageName = \"\";\n \t\t\t\tSharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(MediaHome.this);\n \t\t\t\tswitch (v.getId()) {\n \t\t\t\tcase R.id.upload:\n \t\t\t\t\tpackageName = getString(R.string.package_upload);\n \t\t\t\t\tbreak;\n \t\t\t\tcase R.id.connect_remote:\n \t\t\t\t\tpackageName = getString(R.string.package_remote);\n \t\t\t\t\tbreak;\n \t\t\t\tcase R.id.play_vod:\n \t\t\t\t\tboolean useVlc = preferences.getBoolean(\"useVlcForVOD\", false);\n \t\t\t\t\tif(useVlc) {\n \t\t\t\t\t\tpackageName = getString(R.string.package_vlc);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tpackageName = getString(R.string.package_play_vod);\n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase R.id.play_tv:\n \t\t\t\t\tpackageName = getString(R.string.package_play_tv);\n \t\t\t\t}\n \t\t\t\ttry {\n \t\t\t\t\tIntent launchAppIntent = getPackageManager().getLaunchIntentForPackage(packageName);\n \t\t\t\t\tString key = getString(R.string.server_ip_extra_name);\n \t\t\t\t\tlaunchAppIntent.putExtra(key,preferences.getString(key,\"\"));\n \t\t\t\t\tstartActivity(launchAppIntent);\n \t\t\t\t}\n \t\t\t\tcatch (Exception e) {\n \t\t\t\t\tToast.makeText(MediaHome.this, packageName + \" is not installed\", Toast.LENGTH_LONG).show();\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \t\tbuttons.get(0).setOnClickListener(mButtonClickedListener);\n \t\tbuttons.get(1).setOnClickListener(mButtonClickedListener);\n \t\tbuttons.get(3).setOnClickListener(mButtonClickedListener);\n \t\tbuttons.get(4).setOnClickListener(mButtonClickedListener);\n \t\tmButtonTouchFeedbackListener = new OnTouchListener() {\n \n \t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n \t\t\t\tswitch (event.getAction()) {\n \t\t\t\tcase MotionEvent.ACTION_DOWN:\n \t\t\t\t\tv.setAlpha(0.5f);\n \t\t\t\t\tbreak;\n \t\t\t\tcase MotionEvent.ACTION_UP:\n \t\t\t\t\tv.setAlpha(1.0f);\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t};\n \t\tfor(ImageView button : buttons) {\n \t\t\tbutton.setOnTouchListener(mButtonTouchFeedbackListener);\n \t\t}\n \n \t\tbuttons.get(5).setOnClickListener(new OnClickListener() {\n \n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent goToParameters = new Intent(MediaHome.this, Parameters.class);\n \t\t\t\tstartActivity(goToParameters);\n \t\t\t}\n \t\t});\n \n \t}",
"@Override\n\tprotected Button createPushButton(Composite parent, String label, Image image) {\n\t\treturn super.createPushButton(parent, label, image);\n\t}",
"private void boundButtons() {\r\n \tsingleplayer = (Button) findViewById(R.id.single);\r\n \tsingleplayer.setTypeface(tf);\r\n \tsingleplayer.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Start a drawing surface for one player*/\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, DrawingActivitySingle.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}});\r\n \t\r\n \tmultiplayer = (Button) findViewById(R.id.multi);\r\n \tmultiplayer.setTypeface(tf);\r\n \tmultiplayer.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Connect to other users to start a drawing surface*/\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tif (multiplayer.isEnabled()) {\r\n\t\t\t\t\tmultiplayer.setEnabled(false);\r\n\t\t\t\t\t\r\n\t\t\t\t\tinitMultiPlayer();\r\n\t\t\t\t}\r\n\t\t}});\r\n \t\r\n \toptions = (Button) findViewById(R.id.options);\r\n \toptions.setTypeface(tf);\r\n \toptions.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Start the options menu */\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, Options.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}});\r\n }",
"public void setImages() {\n\n imgBlock.removeAll();\n imgBlock.revalidate();\n imgBlock.repaint();\n labels = new JLabel[imgs.length];\n for (int i = 0; i < imgs.length; i++) {\n\n labels[i] = new JLabel(new ImageIcon(Toolkit.getDefaultToolkit().createImage(imgs[i].getSource())));\n imgBlock.add(labels[i]);\n\n }\n\n SwingUtilities.updateComponentTreeUI(jf); // refresh\n initialized = true;\n\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t {\n\t\tint btnId = Integer.parseInt(e.getActionCommand());\n\n\t\tJButton bttn = btn[btnId];\n\n\t\tif (bttn.getIcon().equals(icons[6]))\n\t\t{\n\t\t bttn.setIcon(icons[pairs[btnId]]);\n\t\t} else\n\t\t{\n\t\t bttn.setIcon(icons[6]);\n\t\t}\n\t }",
"@Override\n\tprotected void InitButtonListener() {\n\t\timgbtnOK.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickOK();\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t\timgbtnPlus.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickPlus();\n\t\t\t\tCursurIndex = 2;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t\timgbtnMinus.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickMinus();\n\t\t\t\tCursurIndex = 1;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t}",
"public void setImage(ButtonBase button, String fileName) {\n String imagePath = FILE_PROTOCOL + PATH_IMAGES + fileName;\n Image buttonImage = new Image(imagePath);\n\t\n\t// SET THE IMAGE IN THE BUTTON\n button.setGraphic(new ImageView(buttonImage));\t\n }",
"private void galleryAddPic() {\n\t}",
"private void drawImages() {\n\t\t\r\n\t}",
"public interface Clickable {\n\n String getName();\n\n void initIcon(int iconSize);\n\n Bitmap getIcon();\n\n int onClick(InputManager manager, CImageView view);\n\n}",
"protected JButton makeImageButton(String imageName, String action, String tooltip, String alt) {\n String imgLocation = \"/Rewind24.gif\";\n URL imageURL = Menu.class.getResource(\"/home/jon/Desktop/boner.desktop\");\n\n\n\n JButton button = new JButton();\n // button.setAction(action);\n button.setToolTipText(tooltip);\n // button.addActionListener(this);\n\n button.setIcon(new ImageIcon(imageURL, alt));\n\n return button;\n }",
"public void initComp(){\n\n\n mResultImg = (ImageView) findViewById(R.id.result_imageView);\n\n mResultImg.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mNormalImg){\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n mNormalImg = false;\n }\n else {\n mResultImg.setImageBitmap(PicSingleton.getInstance().getPicToShape());\n mNormalImg = true;\n }\n }\n });\n\n mResultImg.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n\n showSaveDialog();\n return true;\n }\n });\n\n }",
"private ImageButton makeImageButton(XmlNode node, String imagePath,\n String action) {\n if (imagePath == null) {\n imagePath = node.getAttribute(ATTR_IMAGE, \"no path\");\n }\n try {\n Image image = IfcApplet.getImage(imagePath);\n Image overImage =\n IfcApplet.getImage(node.getAttribute(ATTR_OVERIMAGE,\n (String) null));\n Image downImage =\n IfcApplet.getImage(node.getAttribute(ATTR_DOWNIMAGE,\n (String) null));\n int w = node.getAttribute(ATTR_WIDTH, -1);\n int h = node.getAttribute(ATTR_HEIGHT, -1);\n boolean border = node.getAttribute(ATTR_BORDER, false);\n boolean onPress = node.getAttribute(ATTR_EVENT,\n \"onclick\").equals(\"onpress\");\n Dimension dim = null;\n\n if ((w > 0) && (h > 0)) {\n dim = new Dimension(w, h);\n }\n ImageButton tb = new ImageButton(image, overImage, downImage,\n dim, border, onPress);\n String key = node.getAttribute(ATTR_KEY);\n if (key != null) {\n keyToComponent.put(key.toLowerCase(), tb);\n }\n\n if (action == null) {\n action = node.getAttribute(ATTR_ACTION, (String) null);\n }\n if (action != null) {\n tb.setActionListener(this);\n tb.setAction(action);\n }\n\n return tb;\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n\n return null;\n }",
"public LiveBtn() {\n\t\tsuper(\"L\");\n\t\tURL iconUrlLive = getClass().getResource(\"/res/icons/record.png\");\n\t\tif (iconUrlLive != null) {\n\t\t\tImageIcon icon = new ImageIcon(iconUrlLive);\n\t\t\tImage img = icon.getImage();\n\t\t\tImage newimg = img.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\n\t\t\tImageIcon newIcon = new ImageIcon(newimg);\n\t\t\tthis.setIcon(newIcon);\n\t\t\tthis.setText(\"\");\n\t\t\tthis.setBorderPainted(false);\n\t\t}\n\t}",
"public void showButtonIcon( boolean b ) {\n if ( b ) {\n URL url = getClass().getClassLoader().getResource( \"images/Play16.gif\" );\n Icon icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _run_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Zoom16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _trace_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Edit16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _edit_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Information16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _props_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Properties16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _options_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Refresh16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _reload_btn.setIcon( icon );\n }\n else {\n _run_btn.setIcon( null );\n _trace_btn.setIcon( null );\n _edit_btn.setIcon( null );\n _props_btn.setIcon( null );\n _options_btn.setIcon( null );\n _reload_btn.setIcon( null );\n }\n }",
"public void Back(){\n setImage(\"button-blue.png\");\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t{\n\t\t\t\t\tpath = getLinkOfFoto();\n\t\t\t\t\tif(path.equals(\"\"))\n\t\t\t\t\t\treturn;\n\t\t\t\t\tactualCat.addFoto(path,actualCat.pathToImage(path));\n\t\t\t\t\tredraw(actualCat, panel);\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tprotected void setOperation() {\n\t\tbt1.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTextHttp();\n\t\t\t}\n\t\t});\n\t\tbt2.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tActivityDataRequest.getImage(MainActivity.this, img1);\n\t\t\t}\n\t\t});\n\t}",
"private void createImages(){\n icon=new ImageIcon(PATH_TO_FOLDER+\"guiResourses\\\\icon.jpg\").getImage();\n /*\n Image resizedImage=null;\n try {\n resizedImage =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\Gold_Button_009.png\"))\n .getScaledInstance(100, 50, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n buttonStart.setIcon(new ImageIcon(resizedImage));\n buttonStart.setRolloverIcon(new ImageIcon(resizedImage1));\n buttonStart.setBorderPainted(false);\n buttonStart.setFocusPainted(false);\n buttonStart.setContentAreaFilled(false);\n */\n Image resizedImageF=null;\n Image resizedImageFP=null;\n Image resizedImageFF=null;\n Image resizedImageT=null;\n Image resizedImageTP=null;\n Image resizedImageTF=null;\n Image resizedImageB=null;\n Image resizedImageBP=null;\n Image resizedImageBF=null;\n Image resizedImageR=null;\n Image resizedImageRP=null;\n Image resizedImageRF=null;\n try {\n resizedImageF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlight.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageT =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrain.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageTP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageTF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageB =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBus.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageBP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageBF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageR =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoom.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageRP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageRF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n flightButton.setFocusPainted(false);\n flightButton.setRolloverEnabled(true);\n flightButton.setRolloverIcon(new ImageIcon(resizedImageFF));\n flightButton.setIcon(new ImageIcon(resizedImageF));\n flightButton.setPressedIcon(new ImageIcon(resizedImageFP));\n\n trainButton.setFocusPainted(false);\n trainButton.setRolloverEnabled(true);\n trainButton.setRolloverIcon(new ImageIcon(resizedImageTF));\n trainButton.setIcon(new ImageIcon(resizedImageT));\n trainButton.setPressedIcon(new ImageIcon(resizedImageTF));\n busButton.setFocusPainted(false);\n busButton.setRolloverEnabled(true);\n busButton.setRolloverIcon(new ImageIcon(resizedImageBF));\n busButton.setIcon(new ImageIcon(resizedImageB));\n busButton.setPressedIcon(new ImageIcon(resizedImageBF));\n roomButton.setFocusPainted(false);\n roomButton.setRolloverEnabled(true);\n roomButton.setRolloverIcon(new ImageIcon(resizedImageRF));\n roomButton.setIcon(new ImageIcon(resizedImageR));\n roomButton.setPressedIcon(new ImageIcon(resizedImageRF));\n }",
"public instructionButton()\n {\n getImage().scale(getImage().getWidth()/10, getImage().getHeight()/10);\n }",
"private void initImages() {\n mImageView1WA = findViewById(R.id.comment_OWA);\n mImageView6DA = findViewById(R.id.comment_btn_6DA);\n mImageView5DA = findViewById(R.id.comment_btn_5DA);\n mImageView4DA = findViewById(R.id.comment_btn_4DA);\n mImageView3DA = findViewById(R.id.comment_btn_3DA);\n mImageView2DA = findViewById(R.id.comment_btn_2DA);\n mImageViewY = findViewById(R.id.comment_btn_1DA);\n\n imageList.add(mImageViewY);\n imageList.add(mImageView2DA);\n imageList.add(mImageView3DA);\n imageList.add(mImageView4DA);\n imageList.add(mImageView5DA);\n imageList.add(mImageView6DA);\n imageList.add(mImageView1WA);\n\n }",
"@Override\n\tpublic void initGui()\n {\n this.controlList.clear();\n //Keyboard.enableRepeatEvents(true);\n\n int var1 = (this.width - this.bookImageWidth) / 2;\n int var2 = (this.height - this.bookImageHeight - 40) / 2;\n this.controlList.add(this.buttonNextPage = new GuiButtonNextPage(1, var1 + 120, var2 + 154, true));\n this.controlList.add(this.buttonPreviousPage = new GuiButtonNextPage(2, var1 + 38, var2 + 154, false));\n this.controlList.add(this.buttonIndex = new GuiButtonNextPage(8, var1 + 28, var2 + 10, false));\n this.controlList.add(this.buttonMenu1 = new GuiButtonSelect(3, var1 + 35, var2 + 30, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu2 = new GuiButtonSelect(4, var1 + 35, var2 + 55, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu3 = new GuiButtonSelect(5, var1 + 35, var2 + 80, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu4 = new GuiButtonSelect(6, var1 + 35, var2 + 105, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu5 = new GuiButtonSelect(7, var1 + 35, var2 + 130, 110, 20, \"\"));\n this.controlList.add(this.bookmark = new GuiButtonBookmark(9, var1 + 142, var2 + 7, false));\n this.updateButtons();\n }",
"@Override\n\t\tpublic void onImageClick(ADInfo info, int position, View imageView) {\n\t\t}",
"@Override\n public void setPressed()\n {\n setImage(\"MinusPressed.png\");\n }",
"public void populateImages() {\n\t\t// Check if the recipe has any images saved on the sd card and get\n\t\t// the bitmap for the imagebutton\n\n\t\tArrayList<Image> images = ImageController.getAllRecipeImages(\n\t\t\t\tcurrentRecipe.getRecipeId(), currentRecipe.location);\n\n\t\tLog.w(\"*****\", \"outside\");\n\t\tLog.w(\"*****\", String.valueOf(currentRecipe.getRecipeId()));\n\t\tLog.w(\"*****\", String.valueOf(currentRecipe.location));\n\t\tImageButton pictureButton = (ImageButton) findViewById(R.id.ibRecipe);\n\n\t\t// Set the image of the imagebutton to the first image in the folder\n\t\tif (images.size() > 0) {\n\t\t\tpictureButton.setImageBitmap(images.get(0).getBitmap());\n\t\t}\n\n\t}",
"public void qImageBtnAddListener(ActionListener listener)\r\n\t{\r\n\t\tqImage.addActionListener(listener);\r\n\t}",
"private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }",
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tselectImageMethod();\n\t\t\t}",
"private void showImageDetail() {\n }",
"@Override\n\t\t\t\t\t\tpublic void onComplete(Bundle values) {\n\t\t\t\t\t\t\tupdateButtonImage();\n\t\t\t\t\t\t}",
"public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }",
"@Override\n protected void addControls() {\n super.addControls(); //Adds parent controls\n //adds the button for our 2016 filter (VisionFilter2016.java)\n addImageProcessingButton(\"No Filter\", new TargetFilter(0)); \n addImageProcessingButton(\"Color Filter\", new TargetFilter(1));\n addImageProcessingButton(\"Classic Filter\", new TargetFilter(3));\n addImageProcessingButton(\"Bounding Filter\", new TargetFilter(4));\n addImageProcessingButton(\"Cube Filter\", new TargetFilter(5));\n \n JButton button = new JButton(createSaveConfig());\n\t\taddControl(button);\n }",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"@Override\n public void onClick(View v) {\n int id= Integer.parseInt(Global.getId());\n mydb.update_user(1,id);\n mydb.insertImage(num,id);\n mydb.close();\n Global.setImage(num);\n startActivity(new Intent(CharSetUp.this,Buttons.class)); // metabainei sthn Buttons\n }",
"public void draw(Categoria cat,Integer i,ImageIcon img)\n { \t\n \t GridBagConstraints c = new GridBagConstraints();\n\t\t\ttemp= new JButton(i.toString());\n\t\t\ttemp.setIcon(img);\n\t\t\ttemp.setBackground(Color.GREEN);\t\n\t\t\t\t\t c.fill = GridBagConstraints.NONE;\n\t\t\t\t\t c.weightx = 0.0;\n\t\t\t\t\t c.gridy = i/4;\n\t\t\t\t\t c.gridx = i % 4;\n\t\t\t\t\t temp.setText(\"\");\n\t\t\t\t\t panel.add(temp, c);\t\t \n\t\t\t\t\t \n\t\t\t\t\t temp.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\t\n\t\t\t\t\t\tsetSelectedFoto(i);\t\n\t\t\t\t \t\n\t\t\t\t\t\tframe.setTitle(cat.getNome() + \" - \" + cat.getLink(i));\n\t\t\t\t\t\tif(getPrevClick()==getSelectedFoto())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsetFotoOnDisplay(i);\n\t\t\t\t\t\t\tshow(actualCat.getLink(i));\n\t\t\t\t\t\t\tsetSelectedFoto(-1);\n\t\t\t\t\t\t\tsetPrevClick(-2);\n\t\t\t\t\t\t\tframe.setTitle(actualCat.getNome());\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t \n\n\t\t\n\t panel.revalidate();\n\n\n }",
"public interface OnImageSingleClickListener {\n void onImageSingleClick(int position, String path, PhotoView photoView, ImageViewer imageViewer);\n}",
"public JPanel getImageButtonsPanel() {\r\n\t\treturn imageButtonsPanel;\r\n\t}",
"private void initListButton(){\n ImageButton ibList = findViewById(R.id.imageButtonList);\n ibList.setEnabled(false);\n }",
"private void initFavoriteButtonUI() {\n if (mNeighbour.isFavorite())\n mFavoriteBtn.setImageResource(R.drawable.ic_star_yellow_24dp);\n else\n mFavoriteBtn.setImageResource(R.drawable.ic_star_grey_24dp);\n }",
"@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int position,\r\n\t\t\t\t\t\tlong id) {\n\t\t\t\t\timgID=(int)imgadapter.getItemId(position);\r\n\t\t\t\t\timgv.setImageResource(imgID);\r\n\t\t\t\t\t//imgv.setId(imgID);\r\n\t\t\t\t}",
"private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }",
"@Override\n public void handle(MouseEvent event)\n {\n ArrayList<ImageView> tmpArrayList= (ArrayList<ImageView>) imageList.clone();\n ImageView tmpLeft = tmpArrayList.get(0);\n ImageView tmpMiddle = tmpArrayList.get(1);\n ImageView tmpRight = tmpArrayList.get(2);\n\n ArrayList<Integer> tmpOrder= (ArrayList<Integer>) pictureOrder.clone();\n Integer first=tmpOrder.get(0);\n Integer second=tmpOrder.get(1);\n Integer third=tmpOrder.get(2);\n\n pictureOrder.clear();\n pictureOrder.add(second);\n pictureOrder.add(third);\n pictureOrder.add(first);\n System.out.print(pictureOrder.get(0));\n System.out.print(pictureOrder.get(1));\n System.out.print(pictureOrder.get(2));\n\n\n leftToRight(tmpLeft);\n middleToLeft(tmpMiddle);\n rightToMiddle(tmpRight);\n\n imageList.clear();\n imageList.add(tmpMiddle);\n imageList.add(tmpRight);\n imageList.add(tmpLeft);\n\n anchorPane1.getChildren().clear();\n anchorPane1.getChildren().addAll(tmpLeft, tmpMiddle, tmpRight);\n // im1.setImage(tmpLeft.getImage());\n //im2.setImage(tmpMiddle.getImage());\n //im3.setImage(tmpRight.getImage());\n }",
"public AlternateImageRenderer() {\r\n super(\"\");\r\n images = new Image[2];\r\n try {\r\n Resources imageRes = UIDemoMain.getResource(\"images\");\r\n images[0] = imageRes.getImage(\"sady.png\");\r\n images[1] = imageRes.getImage(\"smily.png\");\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n setUIID(\"ListRenderer\");\r\n }",
"public interface QueueImageClickListener {\n /**\n * Called when thumbnail is clicked\n * @param pos Position of {@link com.python.pythonator.structures.queue.ImageQueueItem} which thumbnail was clicked\n */\n void onThumbnailClick(int pos);\n\n /**\n * Called when sendbutton is clicked\n * @param pos Position of {@link com.python.pythonator.structures.queue.ImageQueueItem} which sendbutton was clicked\n */\n void onSendClicked(int pos);\n}",
"public void viewAnswerImageBtnAddListener(ActionListener listener)\r\n\t{\r\n\t\tbtnViewAnswerImage.addActionListener(listener);\r\n\t}",
"private void buttonDemo(Stage stage) {\n // this demonstrates how to create a button and attach a foreground and\n // background image to it.\n Button button = new Button();\n Image laserImg = new Image(getClass().getResourceAsStream(\"resources/laser.png\"));\n ImageView laserIcon = new ImageView(laserImg);\n button.setGraphic(laserIcon);\n setButtonBackground(button, \"yellow.png\");\n button.setOnAction(e -> {\n // toggles background between yellow and red\n if (!status) {\n setButtonBackground(button, \"yellow.png\");\n } else {\n setButtonBackground(button, \"red.png\");\n }\n status = !status;\n });\n\n Scene scene = new Scene(button);\n stage.setScene(scene);\n }",
"public void addTagButton(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttagNameLabel.setVisible(true);\n \ttagValueLabel.setVisible(true);\n \tsubmitNewTagButton.setVisible(true);\n \tcancelNewTagButton.setVisible(true);\n \tnewTagName.setVisible(true);\n \tnewTagValue.setVisible(true);\n\t}",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"private void init(){\r\n\t\tImageIcon newTaskImg = new ImageIcon(\"resources/images/New.png\");\r\n\t\tImageIcon pauseImg = new ImageIcon(\"resources/images/Pause.png\");\r\n\t\tImageIcon resumeImg = new ImageIcon (\"resources/images/Begin.png\");\r\n\t\tImageIcon stopImg = new ImageIcon(\"resources/images/Stop.png\");\r\n\t\tImageIcon removeImg = new ImageIcon(\"resources/images/Remove.gif\");\r\n\t\tImageIcon shareImg = new ImageIcon(\"resources/images/Share.png\");\r\n\t\tImageIcon inboxImg = new ImageIcon(\"resources/images/Inbox.png\");\r\n\t\t\r\n\t\tnewTask = new JButton(newTaskImg);\r\n\t\tnewTask.setToolTipText(\"New Task\");\r\n\t\tpause = new JButton (pauseImg);\r\n\t\tpause.setToolTipText(\"Pause\");\r\n\t\trestart = new JButton (resumeImg);\r\n\t\trestart.setToolTipText(\"Restart\");\r\n\t\tstop = new JButton(stopImg);\r\n\t\tstop.setToolTipText(\"Stop\");\r\n\t\tremove = new JButton(removeImg);\r\n\t\tremove.setToolTipText(\"Remove\");\r\n\t\tshare = new JButton(shareImg);\r\n\t\tshare.setToolTipText(\"Share\");\r\n\t\tinbox = new JButton(inboxImg);\r\n\t\tinbox.setToolTipText(\"Inbox\");\r\n\t\t\r\n\t}",
"@Override\n public void bindViewsListener() {\n mGrideviewUpload.setOnItemClickListener(this);\n r3.setOnClickListener(this);\n mOkTv.setOnClickListener(this);\n }",
"@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tNoteEditView.this.addPicture();\n \t\t\t}",
"public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }",
"private void setIcons() {\r\n \t\r\n \tbackground = new ImageIcon(\"images/image_mainmenu.png\").getImage();\r\n \tstart = new ImageIcon(\"images/button_start.png\");\r\n \thowto = new ImageIcon(\"images/button_howtoplay.png\");\r\n \toptions = new ImageIcon(\"images/button_options.png\");\r\n \tlboards = new ImageIcon(\"images/button_lboards.png\");\r\n \texit = new ImageIcon(\"images/button_exit.png\");\t\r\n }",
"public interface ImageSelectionListener {\n\n void selected (ImageActor actor);\n\n}",
"public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new picture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"picture\"){\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n }",
"void addImageViewListeners() {\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.get(i).setOnClickListener(this); //OnClickListener for rotation \n\t\t\tpieceViews.get(i).setOnLongClickListener(this); //OnLongClickListener to start dragging\n\t\t\tpieceViews.get(i).setOnDragListener(new DragListener()); //OnDragListener for dragging\t\t\t\n\t\t}\n\t}",
"public void clickListenTank(String imgName, JButton j) {\r\n\t\trequestFocus();\r\n\t\tiii = new ImageIcon(this.getClass().getResource(imgName));\r\n\t\ttextF = null;\r\n\t\tsaveName = imgName;\r\n\t\ttankBut = j;\r\n\t}",
"public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }",
"void mo36483b(int i, ImageView imageView, Uri uri);",
"public interface ImageModListener {\n void setImage(ArrayList<Integer> image);\n }",
"@Override\n public void onClick(View v) {\n chooseImage();\n }",
"private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd);\n\n // Create a group to contain the RGB and HSB radio buttons.\n Group colorGroup = new Group(comp1, SWT.NONE);\n colorGroup.setText(\" Use color model: \");\n\n RowLayout groupRowLayout = new RowLayout();\n groupRowLayout.marginLeft = 10;\n groupRowLayout.marginRight = 10;\n groupRowLayout.spacing = 10;\n colorGroup.setLayout(groupRowLayout);\n\n // Create the RGB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the RGB\n // sliders.\n rgbRdo = new Button(colorGroup, SWT.RADIO);\n rgbRdo.setText(\"RGB\");\n rgbRdo.setSelection(true);\n rgbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n\n // Create the HSB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the HSB\n // sliders.\n hsbRdo = new Button(colorGroup, SWT.RADIO);\n hsbRdo.setText(\"HSB\");\n hsbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n \n Composite catComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 20;\n catComp.setLayout(gl);\n gd = new GridData(GridData.CENTER);\n gd.horizontalAlignment = SWT.CENTER;\n \n catComp.setLayoutData(gd);\n\n Label selCatLbl = new Label( catComp, SWT.None );\n selCatLbl.setText(\"Category\");\n \n final Combo selCmapCatCombo = new Combo( catComp, SWT.DROP_DOWN | SWT.READ_ONLY );\n selCmapCatCombo.setItems( availColorMapCats );\n selCmapCatCombo.select(0);\n \n selCmapCatCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCat = selCmapCatCombo.getText();\n \t\tif( seldCat.equals( seldCmapCat ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapCat = seldCat;\n \t\tseldCmapName = null;\n \t\tavailColorMaps.clear();\n \t\t\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n \t\n createSliderData();\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n Composite cmapComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 10;\n cmapComp.setLayout(gl);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n cmapComp.setLayoutData(gd);\n\n Label selCmapLbl = new Label( cmapComp, SWT.None );\n selCmapLbl.setText(\"Colormap\");\n \n selCmapCombo = new Combo( cmapComp, SWT.DROP_DOWN );\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n \n selCmapCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCmap = selCmapCombo.getText();\n \t\tif( seldCmap.equals( seldCmapName ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapName = seldCmap;\n\n \t\tif( initColorMap() ) {\n createSliderData();\n \t\t}\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n// selCmapCombo.addModifyListener( new ModifyListener() {\n//\t\t\t@Override\n//\t\t\tpublic void modifyText(ModifyEvent e) { \n//\t\t\t\tseldCmapName = selCmapCombo.getText();\n//\t\t\t}\n// });\n }",
"public void onClick(View v) {\n currentIndex++;\n // Check If index reaches maximum then reset it\n if (currentIndex == count)\n currentIndex = 0;\n simpleImageSwitcher.setImageResource(imageIds[currentIndex]); // set the image in ImageSwitcher\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void jMenuItem5ActionPerformed(ActionEvent evt) {\n\t\tif (!entry.isDisabled && entry.RedoImages.size() > 0) {\n\n\t\t\tImage tmg = createImage(((Image) entry.RedoImages.peek()).getWidth(this), ((Image) entry.RedoImages.peek()).getHeight(this));\n\t\t\tGraphics tg = tmg.getGraphics();\n\t\t\ttg.drawImage((Image) entry.RedoImages.peek(), 0, 0, null);\n\t\t\tentry.showImage(tmg);\n\t\t\tentry.SavedImages.push(entry.RedoImages.pop());\n\n\t\t\tentry.setPreferredSize(new Dimension(entryImage.getWidth(this), entryImage.getHeight(this)));\n\t\t\tint w = Math.min(entryImage.getWidth(this) + 3, getContentPane().getWidth());\n\t\t\tint h = Math.min(entryImage.getHeight(this) + 3, getContentPane().getHeight());\n\t\t\tpictureScrollPane.setBounds((getContentPane().getWidth() - w) / 2, (getContentPane().getHeight() - h) / 2, w, h);\n\t\t\tpictureScrollPane.setViewportView(entry);\n\t\t}\n\t}",
"public void changeDirection(int image){\n this.image = image; \n }",
"@Override\n\tpublic void onClick(ClickEvent event) {\n\t\tImage image=(Image)event.getSource();\n\t\tif (image.getAltText().equals(\"nonotice\")) {\n\t\t\timage.setUrl(\"images/notice.jpg\");\n\t\t\timage.setAltText(\"notice\");\n\t\t} else {\n\t\t\timage.setUrl(\"images/nonotice.jpg\");\n\t\t\timage.setAltText(\"nonotice\");\n\t\t}\n\t\treadFeed();\n\t}",
"ImageViewer(){\n\t\tJFrame frame = new JFrame();\n\t\tJPanel north = new JPanel(); //host two buttons\n\t\topen = new JButton(\"Open\");\n\t\tclose = new JButton(\"Close\");\n\t\tnorth.add(open);\n\t\tnorth.add(close);\n\t\t\n\t\t//register event handler to the buttons\n\t\tClickHandler handler = new ClickHandler();\n\t\topen.addActionListener(handler);\n\t\tclose.addActionListener(handler);\n\t\t\n\t\t//make our viewr canvas\n\t\tcanvas = new MyCanvas();\n\t\tframe.add(canvas, BorderLayout.CENTER);\n\t\t\n\t\t//populate the bottom panel\n\t\tJPanel south = new JPanel();\n\t\tgreeting = new JTextField(20);\n\t\tapply = new JButton(\"Apply\");\n\t\tsouth.add(greeting);\n\t\tsouth.add(apply);\n\t\tframe.add(south, BorderLayout.SOUTH);\n\t\tapply.addActionListener(handler);\n\t\t\n\t\tframe.add(north, BorderLayout.NORTH);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(400,400);\n\t\tframe.setVisible(true);\n\t}",
"@Override\n public void onClick(View view) {\n\n photoStorage.addImage(currentLabel, currentVisibleImagePath);\n addImage.setEnabled(false);\n }",
"private void botaoImagemClienteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botaoImagemClienteMouseClicked\n\n // Instancia seletor de arquivo.\n JFileChooser arquivo = new JFileChooser();\n\n // Insere filtro para png e jgp.\n arquivo.setFileFilter(filtro);\n\n // Inicia variavel para parametrizar imagem.\n BufferedImage img;\n\n // Variavel para receber imagem.\n Icon novaImg = null;\n\n // Parametro para seletor selecionar somente o pre determinado\n arquivo.setAcceptAllFileFilterUsed(false);\n\n // Instancia seletor no frame.\n arquivo.showOpenDialog(painelCadastrarCliente);\n\n // Titulo.\n arquivo.setDialogTitle(\"Escolha imagem: extensao jpg e png\");\n\n // Impede mais de uma selecao.\n arquivo.setMultiSelectionEnabled(true);\n\n // Se alguma imagem for selecionada.\n if (arquivo.getSelectedFile() != null) {\n\n // Verifica erro de Io\n try {\n\n // Parametriza a dimensao de imagem.\n int largura = 161, altura = 158;\n\n // Recebe arquivo selecionado.\n img = ImageIO.read(arquivo.getSelectedFile());\n\n // Recebe imagem parametrizada.\n novaImg = new ImageIcon(img.getScaledInstance(largura, altura,\n java.awt.Image.SCALE_SMOOTH));\n\n // Insere imagem na tela por um label.\n imgCaminho = arquivo.getSelectedFile().getAbsolutePath();\n\n } catch (IOException ex) {\n\n // Mensagem de erro.\n JOptionPane.showMessageDialog(null, \"Erro na imagem\", \"Erro\", JOptionPane.ERROR);\n\n }\n\n // Substitui label por imagem.\n imagemCliente.setIcon(novaImg);\n imagemCliente.setVisible(true);\n\n }\n }",
"private void actionComboboxChangedImage ()\r\n\t{\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tif (isDisplaySamples) { helperDisplayDetectedSamples(); }\r\n\t\t\telse { helperDisplayInputImage(); }\r\n\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t\thelperDisplayResults();\r\n\t\t\thelperDisplayChart(true);\r\n\t\t}\r\n\t}",
"@OnClick(R.id.hinhanh_dangtin)\n void ChooseImage(View v) {\n onPickPhoto(v);\n }"
]
| [
"0.6630655",
"0.65333414",
"0.6459373",
"0.63440806",
"0.6328019",
"0.63263077",
"0.6321902",
"0.6313193",
"0.6307008",
"0.62958795",
"0.6261942",
"0.62591535",
"0.6237073",
"0.62236255",
"0.62091064",
"0.6178164",
"0.61600447",
"0.6158618",
"0.61487377",
"0.61387825",
"0.6116303",
"0.61148846",
"0.6106991",
"0.60878503",
"0.6077496",
"0.6072005",
"0.6066939",
"0.60591966",
"0.6040709",
"0.6018248",
"0.60165024",
"0.6015917",
"0.6005919",
"0.59807634",
"0.5942314",
"0.5932032",
"0.591176",
"0.5908821",
"0.59028715",
"0.5896643",
"0.5885897",
"0.58813745",
"0.58724016",
"0.5872271",
"0.5850347",
"0.5844495",
"0.58375144",
"0.5832723",
"0.58168507",
"0.58153147",
"0.5808237",
"0.58011115",
"0.5796931",
"0.5795258",
"0.5793587",
"0.578764",
"0.5787463",
"0.57775944",
"0.57724524",
"0.5768107",
"0.5767283",
"0.57624334",
"0.57539034",
"0.5753373",
"0.5748747",
"0.5747793",
"0.5743878",
"0.57437575",
"0.5741454",
"0.5740995",
"0.5739619",
"0.5738134",
"0.5728637",
"0.5716884",
"0.5715454",
"0.57147366",
"0.5711272",
"0.5707959",
"0.5701167",
"0.569912",
"0.5695626",
"0.5695378",
"0.5692024",
"0.5691057",
"0.5688505",
"0.56853026",
"0.567911",
"0.56788117",
"0.56776315",
"0.56743497",
"0.56726736",
"0.5668243",
"0.5666971",
"0.56621355",
"0.56565154",
"0.5650647",
"0.564918",
"0.56470615",
"0.56412446",
"0.56402445",
"0.56378"
]
| 0.0 | -1 |
/ 20140623 bind image buttons | private void toSpotActivity(int spotId) {
Intent mIntent = new Intent(getApplicationContext(), SpotActivity.class);
mIntent.putExtra("spot_number", spotId+1);
mIntent.putExtra("user_info", user);
startActivity(mIntent);
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ImageButton generateItemButton(Texture image) {\n\t\tTextureRegion imgRegion = new TextureRegion(image);\n\t\tTextureRegionDrawable imgDraw = new TextureRegionDrawable(imgRegion);\n\t\treturn new ImageButton(imgDraw);\n\t}",
"public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void initializeImageButtons()\n\t{\n\t\t/* hook up refresh button to fetch data from Parse and populate views */\n\t\trefreshImageView = (ImageView)findViewById(R.id.refreshImageView);\n\t\trefreshImageView.setOnClickListener(new OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tupdateCheeseCountData(v);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t/* hook up rankings button to fetch ranking info from Parse and populate views */\n\t\trankingsImageView = (ImageView)findViewById(R.id.rankingImageView);\n\t\trankingsImageView.setOnClickListener(new OnClickListener(){\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(TheftActivity.this, RankingsActivity.class);\n\t\t\t\tupdateType = UpdateType.NOUPDATE;\n\t\t\t\tstartActivity(intent);\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t});\n\t}",
"public void ImageView(ActionEvent event) {\n\t}",
"private void setCaptureButtonImages()\n\t{\n\t\tif(m_CaptureButtons == null)\n\t\t\treturn;\n\t\tCameraActivity camaraActivity = this.getCameraActivity();\n\t\tif(!Handle.isValid(m_CaptureButtonBgHandle))\n\t\t\tm_CaptureButtonBgHandle = m_CaptureButtons.setPrimaryButtonBackground(camaraActivity.getDrawable(R.drawable.capture_button_slow_motion_border), 0);\n\t\tif(!Handle.isValid(m_CaptureButtonIconHandle))\n\t\t\tm_CaptureButtonIconHandle = m_CaptureButtons.setPrimaryButtonIcon(camaraActivity.getDrawable(R.drawable.capture_button_slow_motion_icon), 0);\n\t}",
"PreViewPopUpPage clickImageLink();",
"public abstract ImageIcon getButtonIcon();",
"JButton getProcessImageButton() {\n return processImageButton;\n }",
"@Override\n protected void initEvents() {\n super.initEvents();\n picture1.setOnClickListener(this);\n picture2.setOnClickListener(this);\n }",
"protected void addImageIcons(String key) {\n Image normal = ResourceManager.getImage(\"orderButton.normal.\" + key);\n Image highlighted = ResourceManager.getImage(\"orderButton.highlighted.\" + key);\n Image pressed = ResourceManager.getImage(\"orderButton.pressed.\" + key);\n Image disabled = ResourceManager.getImage(\"orderButton.disabled.\" + key);\n orderButtonImageCount = ((normal == null) ? 0 : 1)\n + ((highlighted == null) ? 0 : 1)\n + ((pressed == null) ? 0 : 1)\n + ((disabled == null) ? 0 : 1);\n if (hasOrderButtons()) {\n putValue(BUTTON_IMAGE, new ImageIcon(normal));\n putValue(BUTTON_ROLLOVER_IMAGE, new ImageIcon(highlighted));\n putValue(BUTTON_PRESSED_IMAGE, new ImageIcon(pressed));\n putValue(BUTTON_DISABLED_IMAGE, new ImageIcon(disabled));\n } else {\n logger.warning(\"Missing \" + (4-orderButtonImageCount)\n + \" orderButton images for \" + getId());\n }\n }",
"private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==imgBtn) {\n\t\t\t\n\t\t\timgBtn.setSize(INT_VALUE*10, INT_VALUE*10);\n\t\t}\n\t}",
"public interface ImageSelectClicked {\n void clickImage(int position);\n}",
"@FXML\r\n public void imageButtonClicked() {\r\n File file = fileChooser.showOpenDialog(viewHandler.getPrimaryStage());\r\n if (file != null) {\r\n try {\r\n viewModel.setImageurl(ImageConverter.ImageToByte(file));\r\n Image img = new Image(new ByteArrayInputStream(viewModel.getImageurl()));\r\n dogPicture.setFill(new ImagePattern(img));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public TextButton (BufferedImage bi)\n { \n updateValue(bi);\n }",
"private void initImage() {\n BufferedImage closebtn = null;\n BufferedImage mulaiBtn = null;\n try {\n mulaiBtn = ImageIO.read(new File(\"image\\\\button\\\\mulai_btn.png\"));\n closebtn = ImageIO.read(new File(\"image\\\\button\\\\closeX_btn.png\"));\n ImageIcon mulaiBtnImage = new ImageIcon(mulaiBtn.getScaledInstance(126, 32, Image.SCALE_SMOOTH));\n ImageIcon closeBtnImage = new ImageIcon(closebtn.getScaledInstance(42, 42, Image.SCALE_SMOOTH));\n button_mulai.setIcon(mulaiBtnImage);\n button_close.setIcon(closeBtnImage);\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n button_mulai.setText(\"\");\n button_close.setText(\"\");\n }\n }",
"public void handleActionChosenImageView(MouseEvent event){\n Integer actionSelected = buttonAction.get(event.getSource());\n System.out.println(\"input sent from gameboard Controller : execute action \" + actionSelected.toString());\n sender.sendInput(\"execute action \" + actionSelected.toString());\n\n for (Map.Entry<Integer, ImageView> entry : coverImages.entrySet()) {\n\n entry.getValue().setVisible(false);\n }\n\n }",
"public interface ImageClickedListener {\n void onImageClicked(int position);\n}",
"@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }",
"public void toggleButton(){\r\n\t\tImageIcon xImage = new ImageIcon(\"image/x.png\");\t//Inserting image to the button\r\n\t\tImageIcon oImage = new ImageIcon(\"image/o.png\");\t//Inserting image to the button\r\n\t\tfor(int i=0;i<3;i++){\t\t\t\t\t//Update the buttons' text base on array of state\r\n\t\t\tfor(int j=0;j<3;j++){\r\n\t\t\t\t this.b[i][j].setIcon(Exer10.state[i][j]==1?xImage:(Exer10.state[i][j]==2?oImage:null));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void initializeButtons(){\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 6; j++){\n\t\t\t\tString s = \"Cards\"+File.separator + i +\",\"+ j + \".jpg\";\n\t\t\t\tImageIcon icon = new ImageIcon(s);\n\t\t\t\tImage img = icon.getImage();\n\t\t\t\tImage newImg = img.getScaledInstance(130, 160, java.awt.Image.SCALE_SMOOTH);\n\t\t\t\tbuttons[i][j] = new JButton(new ImageIcon(newImg));\n\t\t\t}\n\t\t}\n\t\tString s = \"Cards\"+File.separator+\"initial.jpg\";\n\t\tImageIcon icon = new ImageIcon(s);\n\t\tImage img = icon.getImage();\n\t\tImage newImg = img.getScaledInstance(130, 160, java.awt.Image.SCALE_SMOOTH);\n\t\tlastcard1 = new JLabel(new ImageIcon(newImg));\n\t\tlastcard2 = new JLabel(new ImageIcon(newImg));\n\t}",
"private void itemBrowseTextureActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }",
"public Controls()\n {\n string = \"Controls\";\n getButtonImage();\n }",
"private void changeGraphic(ToggleButton toggleButton, Image diceImage){\n\t toggleButton.setGraphic(new ImageView(diceImage));\n\t}",
"private void addButtonActionPerformed() {//GEN-FIRST:event_addButtonActionPerformed\r\n this.controller.OnAddPhoto();\r\n }",
"public void addListeners() {\n\t\timages[TOP].setOnClickListener(top);\t\n\t\timages[BOTTOM].setOnClickListener(bottom);\n\t\timages[TOP].setOnLongClickListener(topsave);\t\n\t\timages[BOTTOM].setOnLongClickListener(bottomsave);\n }",
"private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n scrollPane = new javax.swing.JScrollPane();\n previewLabel = new javax.swing.JLabel();\n rbProjectImages = new javax.swing.JRadioButton();\n rbExternalImages = new javax.swing.JRadioButton();\n lblFile = new javax.swing.JLabel();\n lblUrl = new javax.swing.JLabel();\n cbFile = new javax.swing.JComboBox();\n rbNoImage = new javax.swing.JRadioButton();\n txtUrl = new javax.swing.JTextField();\n btnBrowseImage = new javax.swing.JButton();\n\n previewLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n scrollPane.setViewportView(previewLabel);\n\n buttonGroup1.add(rbProjectImages);\n rbProjectImages.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbProjectImages.text\")); // NOI18N\n rbProjectImages.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbProjectImages.toolTipText\")); // NOI18N\n rbProjectImages.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbProjectImages.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbProjectImagesActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(rbExternalImages);\n rbExternalImages.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbExternalImages.text\")); // NOI18N\n rbExternalImages.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbExternalImages.toolTipText\")); // NOI18N\n rbExternalImages.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbExternalImages.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbExternalImagesActionPerformed(evt);\n }\n });\n\n lblFile.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.lblFile.text\")); // NOI18N\n\n lblUrl.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.lblUrl.text\")); // NOI18N\n\n cbFile.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbFileActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(rbNoImage);\n rbNoImage.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbNoImage.text\")); // NOI18N\n rbNoImage.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbNoImage.toolTipText\")); // NOI18N\n rbNoImage.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbNoImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbNoImageActionPerformed(evt);\n }\n });\n\n txtUrl.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtUrlActionPerformed(evt);\n }\n });\n\n btnBrowseImage.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.btnBrowseImage.text\")); // NOI18N\n btnBrowseImage.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.btnBrowseImage.toolTipText\")); // NOI18N\n btnBrowseImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBrowseImageActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(scrollPane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 453, Short.MAX_VALUE)\n .addComponent(rbProjectImages, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rbExternalImages, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblFile)\n .addComponent(lblUrl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(txtUrl, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE)\n .addGap(46, 46, 46))\n .addGroup(layout.createSequentialGroup()\n .addComponent(cbFile, 0, 357, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBrowseImage))))\n .addComponent(rbNoImage, javax.swing.GroupLayout.Alignment.LEADING))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(rbProjectImages)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblFile)\n .addComponent(cbFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBrowseImage))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rbExternalImages)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblUrl)\n .addComponent(txtUrl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rbNoImage)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)\n .addContainerGap())\n );\n }",
"private void initUI() {\n\t\timageview = (ImageView) v.findViewById(R.id.shezhi);\r\n\t\timageview.setOnClickListener(this);\r\n\r\n\t\tmytaobao = (ImageView) v.findViewById(R.id.taobao_go);\r\n\t\tmytaobao.setOnClickListener(this);\r\n\r\n\t\twuliu = (ImageView) v.findViewById(R.id.wuliu);\r\n\t\twuliu.setOnClickListener(this);\r\n\r\n\t\tgouwuche = (ImageView) v.findViewById(R.id.gouwuche);\r\n\t\tgouwuche.setOnClickListener(this);\r\n\r\n\t\tchadingdan = (ImageView) v.findViewById(R.id.dingdan);\r\n\t\tchadingdan.setOnClickListener(this);\r\n\r\n\t\tshoucang = (ImageView) v.findViewById(R.id.shoucang);\r\n\t\tshoucang.setOnClickListener(this);\r\n\t}",
"private void bindButtons() {\n \n \t\tbuttons = new ArrayList<ImageView>();\n \t\tbuttons.add((ImageView) findViewById(R.id.upload));\n \t\tbuttons.add((ImageView) findViewById(R.id.connect_remote));\n \n \t\tbuttons.add((ImageView) findViewById(R.id.show_all_apps));\n \t\tbuttons.get(2).setOnClickListener(new ShowApplications());\n \n \t\tmGrid.setOnItemClickListener(new ApplicationLauncher());\n \n \t\tbuttons.add((ImageView) findViewById(R.id.play_vod));\n \t\tbuttons.add((ImageView) findViewById(R.id.play_tv));\n \t\tbuttons.add((ImageView) findViewById(R.id.parameters));\n \n \t\tmButtonClickedListener = new OnClickListener() {\n \n \t\t\tpublic void onClick(View v) {\n \t\t\t\tString packageName = \"\";\n \t\t\t\tSharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(MediaHome.this);\n \t\t\t\tswitch (v.getId()) {\n \t\t\t\tcase R.id.upload:\n \t\t\t\t\tpackageName = getString(R.string.package_upload);\n \t\t\t\t\tbreak;\n \t\t\t\tcase R.id.connect_remote:\n \t\t\t\t\tpackageName = getString(R.string.package_remote);\n \t\t\t\t\tbreak;\n \t\t\t\tcase R.id.play_vod:\n \t\t\t\t\tboolean useVlc = preferences.getBoolean(\"useVlcForVOD\", false);\n \t\t\t\t\tif(useVlc) {\n \t\t\t\t\t\tpackageName = getString(R.string.package_vlc);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tpackageName = getString(R.string.package_play_vod);\n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase R.id.play_tv:\n \t\t\t\t\tpackageName = getString(R.string.package_play_tv);\n \t\t\t\t}\n \t\t\t\ttry {\n \t\t\t\t\tIntent launchAppIntent = getPackageManager().getLaunchIntentForPackage(packageName);\n \t\t\t\t\tString key = getString(R.string.server_ip_extra_name);\n \t\t\t\t\tlaunchAppIntent.putExtra(key,preferences.getString(key,\"\"));\n \t\t\t\t\tstartActivity(launchAppIntent);\n \t\t\t\t}\n \t\t\t\tcatch (Exception e) {\n \t\t\t\t\tToast.makeText(MediaHome.this, packageName + \" is not installed\", Toast.LENGTH_LONG).show();\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \t\tbuttons.get(0).setOnClickListener(mButtonClickedListener);\n \t\tbuttons.get(1).setOnClickListener(mButtonClickedListener);\n \t\tbuttons.get(3).setOnClickListener(mButtonClickedListener);\n \t\tbuttons.get(4).setOnClickListener(mButtonClickedListener);\n \t\tmButtonTouchFeedbackListener = new OnTouchListener() {\n \n \t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n \t\t\t\tswitch (event.getAction()) {\n \t\t\t\tcase MotionEvent.ACTION_DOWN:\n \t\t\t\t\tv.setAlpha(0.5f);\n \t\t\t\t\tbreak;\n \t\t\t\tcase MotionEvent.ACTION_UP:\n \t\t\t\t\tv.setAlpha(1.0f);\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t};\n \t\tfor(ImageView button : buttons) {\n \t\t\tbutton.setOnTouchListener(mButtonTouchFeedbackListener);\n \t\t}\n \n \t\tbuttons.get(5).setOnClickListener(new OnClickListener() {\n \n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent goToParameters = new Intent(MediaHome.this, Parameters.class);\n \t\t\t\tstartActivity(goToParameters);\n \t\t\t}\n \t\t});\n \n \t}",
"private void boundButtons() {\r\n \tsingleplayer = (Button) findViewById(R.id.single);\r\n \tsingleplayer.setTypeface(tf);\r\n \tsingleplayer.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Start a drawing surface for one player*/\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, DrawingActivitySingle.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}});\r\n \t\r\n \tmultiplayer = (Button) findViewById(R.id.multi);\r\n \tmultiplayer.setTypeface(tf);\r\n \tmultiplayer.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Connect to other users to start a drawing surface*/\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tif (multiplayer.isEnabled()) {\r\n\t\t\t\t\tmultiplayer.setEnabled(false);\r\n\t\t\t\t\t\r\n\t\t\t\t\tinitMultiPlayer();\r\n\t\t\t\t}\r\n\t\t}});\r\n \t\r\n \toptions = (Button) findViewById(R.id.options);\r\n \toptions.setTypeface(tf);\r\n \toptions.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Start the options menu */\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, Options.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}});\r\n }",
"@Override\n\tprotected Button createPushButton(Composite parent, String label, Image image) {\n\t\treturn super.createPushButton(parent, label, image);\n\t}",
"public void setImages() {\n\n imgBlock.removeAll();\n imgBlock.revalidate();\n imgBlock.repaint();\n labels = new JLabel[imgs.length];\n for (int i = 0; i < imgs.length; i++) {\n\n labels[i] = new JLabel(new ImageIcon(Toolkit.getDefaultToolkit().createImage(imgs[i].getSource())));\n imgBlock.add(labels[i]);\n\n }\n\n SwingUtilities.updateComponentTreeUI(jf); // refresh\n initialized = true;\n\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t {\n\t\tint btnId = Integer.parseInt(e.getActionCommand());\n\n\t\tJButton bttn = btn[btnId];\n\n\t\tif (bttn.getIcon().equals(icons[6]))\n\t\t{\n\t\t bttn.setIcon(icons[pairs[btnId]]);\n\t\t} else\n\t\t{\n\t\t bttn.setIcon(icons[6]);\n\t\t}\n\t }",
"@Override\n\tprotected void InitButtonListener() {\n\t\timgbtnOK.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickOK();\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t\timgbtnPlus.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickPlus();\n\t\t\t\tCursurIndex = 2;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t\timgbtnMinus.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickMinus();\n\t\t\t\tCursurIndex = 1;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t}",
"public void setImage(ButtonBase button, String fileName) {\n String imagePath = FILE_PROTOCOL + PATH_IMAGES + fileName;\n Image buttonImage = new Image(imagePath);\n\t\n\t// SET THE IMAGE IN THE BUTTON\n button.setGraphic(new ImageView(buttonImage));\t\n }",
"private void galleryAddPic() {\n\t}",
"private void drawImages() {\n\t\t\r\n\t}",
"public interface Clickable {\n\n String getName();\n\n void initIcon(int iconSize);\n\n Bitmap getIcon();\n\n int onClick(InputManager manager, CImageView view);\n\n}",
"protected JButton makeImageButton(String imageName, String action, String tooltip, String alt) {\n String imgLocation = \"/Rewind24.gif\";\n URL imageURL = Menu.class.getResource(\"/home/jon/Desktop/boner.desktop\");\n\n\n\n JButton button = new JButton();\n // button.setAction(action);\n button.setToolTipText(tooltip);\n // button.addActionListener(this);\n\n button.setIcon(new ImageIcon(imageURL, alt));\n\n return button;\n }",
"public void initComp(){\n\n\n mResultImg = (ImageView) findViewById(R.id.result_imageView);\n\n mResultImg.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mNormalImg){\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n mNormalImg = false;\n }\n else {\n mResultImg.setImageBitmap(PicSingleton.getInstance().getPicToShape());\n mNormalImg = true;\n }\n }\n });\n\n mResultImg.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n\n showSaveDialog();\n return true;\n }\n });\n\n }",
"private ImageButton makeImageButton(XmlNode node, String imagePath,\n String action) {\n if (imagePath == null) {\n imagePath = node.getAttribute(ATTR_IMAGE, \"no path\");\n }\n try {\n Image image = IfcApplet.getImage(imagePath);\n Image overImage =\n IfcApplet.getImage(node.getAttribute(ATTR_OVERIMAGE,\n (String) null));\n Image downImage =\n IfcApplet.getImage(node.getAttribute(ATTR_DOWNIMAGE,\n (String) null));\n int w = node.getAttribute(ATTR_WIDTH, -1);\n int h = node.getAttribute(ATTR_HEIGHT, -1);\n boolean border = node.getAttribute(ATTR_BORDER, false);\n boolean onPress = node.getAttribute(ATTR_EVENT,\n \"onclick\").equals(\"onpress\");\n Dimension dim = null;\n\n if ((w > 0) && (h > 0)) {\n dim = new Dimension(w, h);\n }\n ImageButton tb = new ImageButton(image, overImage, downImage,\n dim, border, onPress);\n String key = node.getAttribute(ATTR_KEY);\n if (key != null) {\n keyToComponent.put(key.toLowerCase(), tb);\n }\n\n if (action == null) {\n action = node.getAttribute(ATTR_ACTION, (String) null);\n }\n if (action != null) {\n tb.setActionListener(this);\n tb.setAction(action);\n }\n\n return tb;\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n\n return null;\n }",
"public LiveBtn() {\n\t\tsuper(\"L\");\n\t\tURL iconUrlLive = getClass().getResource(\"/res/icons/record.png\");\n\t\tif (iconUrlLive != null) {\n\t\t\tImageIcon icon = new ImageIcon(iconUrlLive);\n\t\t\tImage img = icon.getImage();\n\t\t\tImage newimg = img.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\n\t\t\tImageIcon newIcon = new ImageIcon(newimg);\n\t\t\tthis.setIcon(newIcon);\n\t\t\tthis.setText(\"\");\n\t\t\tthis.setBorderPainted(false);\n\t\t}\n\t}",
"public void showButtonIcon( boolean b ) {\n if ( b ) {\n URL url = getClass().getClassLoader().getResource( \"images/Play16.gif\" );\n Icon icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _run_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Zoom16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _trace_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Edit16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _edit_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Information16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _props_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Properties16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _options_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Refresh16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _reload_btn.setIcon( icon );\n }\n else {\n _run_btn.setIcon( null );\n _trace_btn.setIcon( null );\n _edit_btn.setIcon( null );\n _props_btn.setIcon( null );\n _options_btn.setIcon( null );\n _reload_btn.setIcon( null );\n }\n }",
"public void Back(){\n setImage(\"button-blue.png\");\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t{\n\t\t\t\t\tpath = getLinkOfFoto();\n\t\t\t\t\tif(path.equals(\"\"))\n\t\t\t\t\t\treturn;\n\t\t\t\t\tactualCat.addFoto(path,actualCat.pathToImage(path));\n\t\t\t\t\tredraw(actualCat, panel);\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tprotected void setOperation() {\n\t\tbt1.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTextHttp();\n\t\t\t}\n\t\t});\n\t\tbt2.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tActivityDataRequest.getImage(MainActivity.this, img1);\n\t\t\t}\n\t\t});\n\t}",
"private void createImages(){\n icon=new ImageIcon(PATH_TO_FOLDER+\"guiResourses\\\\icon.jpg\").getImage();\n /*\n Image resizedImage=null;\n try {\n resizedImage =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\Gold_Button_009.png\"))\n .getScaledInstance(100, 50, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n buttonStart.setIcon(new ImageIcon(resizedImage));\n buttonStart.setRolloverIcon(new ImageIcon(resizedImage1));\n buttonStart.setBorderPainted(false);\n buttonStart.setFocusPainted(false);\n buttonStart.setContentAreaFilled(false);\n */\n Image resizedImageF=null;\n Image resizedImageFP=null;\n Image resizedImageFF=null;\n Image resizedImageT=null;\n Image resizedImageTP=null;\n Image resizedImageTF=null;\n Image resizedImageB=null;\n Image resizedImageBP=null;\n Image resizedImageBF=null;\n Image resizedImageR=null;\n Image resizedImageRP=null;\n Image resizedImageRF=null;\n try {\n resizedImageF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlight.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageT =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrain.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageTP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageTF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageB =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBus.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageBP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageBF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageR =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoom.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageRP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageRF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n flightButton.setFocusPainted(false);\n flightButton.setRolloverEnabled(true);\n flightButton.setRolloverIcon(new ImageIcon(resizedImageFF));\n flightButton.setIcon(new ImageIcon(resizedImageF));\n flightButton.setPressedIcon(new ImageIcon(resizedImageFP));\n\n trainButton.setFocusPainted(false);\n trainButton.setRolloverEnabled(true);\n trainButton.setRolloverIcon(new ImageIcon(resizedImageTF));\n trainButton.setIcon(new ImageIcon(resizedImageT));\n trainButton.setPressedIcon(new ImageIcon(resizedImageTF));\n busButton.setFocusPainted(false);\n busButton.setRolloverEnabled(true);\n busButton.setRolloverIcon(new ImageIcon(resizedImageBF));\n busButton.setIcon(new ImageIcon(resizedImageB));\n busButton.setPressedIcon(new ImageIcon(resizedImageBF));\n roomButton.setFocusPainted(false);\n roomButton.setRolloverEnabled(true);\n roomButton.setRolloverIcon(new ImageIcon(resizedImageRF));\n roomButton.setIcon(new ImageIcon(resizedImageR));\n roomButton.setPressedIcon(new ImageIcon(resizedImageRF));\n }",
"public instructionButton()\n {\n getImage().scale(getImage().getWidth()/10, getImage().getHeight()/10);\n }",
"private void initImages() {\n mImageView1WA = findViewById(R.id.comment_OWA);\n mImageView6DA = findViewById(R.id.comment_btn_6DA);\n mImageView5DA = findViewById(R.id.comment_btn_5DA);\n mImageView4DA = findViewById(R.id.comment_btn_4DA);\n mImageView3DA = findViewById(R.id.comment_btn_3DA);\n mImageView2DA = findViewById(R.id.comment_btn_2DA);\n mImageViewY = findViewById(R.id.comment_btn_1DA);\n\n imageList.add(mImageViewY);\n imageList.add(mImageView2DA);\n imageList.add(mImageView3DA);\n imageList.add(mImageView4DA);\n imageList.add(mImageView5DA);\n imageList.add(mImageView6DA);\n imageList.add(mImageView1WA);\n\n }",
"@Override\n\tpublic void initGui()\n {\n this.controlList.clear();\n //Keyboard.enableRepeatEvents(true);\n\n int var1 = (this.width - this.bookImageWidth) / 2;\n int var2 = (this.height - this.bookImageHeight - 40) / 2;\n this.controlList.add(this.buttonNextPage = new GuiButtonNextPage(1, var1 + 120, var2 + 154, true));\n this.controlList.add(this.buttonPreviousPage = new GuiButtonNextPage(2, var1 + 38, var2 + 154, false));\n this.controlList.add(this.buttonIndex = new GuiButtonNextPage(8, var1 + 28, var2 + 10, false));\n this.controlList.add(this.buttonMenu1 = new GuiButtonSelect(3, var1 + 35, var2 + 30, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu2 = new GuiButtonSelect(4, var1 + 35, var2 + 55, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu3 = new GuiButtonSelect(5, var1 + 35, var2 + 80, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu4 = new GuiButtonSelect(6, var1 + 35, var2 + 105, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu5 = new GuiButtonSelect(7, var1 + 35, var2 + 130, 110, 20, \"\"));\n this.controlList.add(this.bookmark = new GuiButtonBookmark(9, var1 + 142, var2 + 7, false));\n this.updateButtons();\n }",
"@Override\n\t\tpublic void onImageClick(ADInfo info, int position, View imageView) {\n\t\t}",
"@Override\n public void setPressed()\n {\n setImage(\"MinusPressed.png\");\n }",
"public void populateImages() {\n\t\t// Check if the recipe has any images saved on the sd card and get\n\t\t// the bitmap for the imagebutton\n\n\t\tArrayList<Image> images = ImageController.getAllRecipeImages(\n\t\t\t\tcurrentRecipe.getRecipeId(), currentRecipe.location);\n\n\t\tLog.w(\"*****\", \"outside\");\n\t\tLog.w(\"*****\", String.valueOf(currentRecipe.getRecipeId()));\n\t\tLog.w(\"*****\", String.valueOf(currentRecipe.location));\n\t\tImageButton pictureButton = (ImageButton) findViewById(R.id.ibRecipe);\n\n\t\t// Set the image of the imagebutton to the first image in the folder\n\t\tif (images.size() > 0) {\n\t\t\tpictureButton.setImageBitmap(images.get(0).getBitmap());\n\t\t}\n\n\t}",
"public void qImageBtnAddListener(ActionListener listener)\r\n\t{\r\n\t\tqImage.addActionListener(listener);\r\n\t}",
"private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }",
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tselectImageMethod();\n\t\t\t}",
"private void showImageDetail() {\n }",
"@Override\n\t\t\t\t\t\tpublic void onComplete(Bundle values) {\n\t\t\t\t\t\t\tupdateButtonImage();\n\t\t\t\t\t\t}",
"public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }",
"@Override\n protected void addControls() {\n super.addControls(); //Adds parent controls\n //adds the button for our 2016 filter (VisionFilter2016.java)\n addImageProcessingButton(\"No Filter\", new TargetFilter(0)); \n addImageProcessingButton(\"Color Filter\", new TargetFilter(1));\n addImageProcessingButton(\"Classic Filter\", new TargetFilter(3));\n addImageProcessingButton(\"Bounding Filter\", new TargetFilter(4));\n addImageProcessingButton(\"Cube Filter\", new TargetFilter(5));\n \n JButton button = new JButton(createSaveConfig());\n\t\taddControl(button);\n }",
"@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}",
"@Override\n public void onClick(View v) {\n int id= Integer.parseInt(Global.getId());\n mydb.update_user(1,id);\n mydb.insertImage(num,id);\n mydb.close();\n Global.setImage(num);\n startActivity(new Intent(CharSetUp.this,Buttons.class)); // metabainei sthn Buttons\n }",
"public void draw(Categoria cat,Integer i,ImageIcon img)\n { \t\n \t GridBagConstraints c = new GridBagConstraints();\n\t\t\ttemp= new JButton(i.toString());\n\t\t\ttemp.setIcon(img);\n\t\t\ttemp.setBackground(Color.GREEN);\t\n\t\t\t\t\t c.fill = GridBagConstraints.NONE;\n\t\t\t\t\t c.weightx = 0.0;\n\t\t\t\t\t c.gridy = i/4;\n\t\t\t\t\t c.gridx = i % 4;\n\t\t\t\t\t temp.setText(\"\");\n\t\t\t\t\t panel.add(temp, c);\t\t \n\t\t\t\t\t \n\t\t\t\t\t temp.addActionListener(new ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\t\n\t\t\t\t\t\tsetSelectedFoto(i);\t\n\t\t\t\t \t\n\t\t\t\t\t\tframe.setTitle(cat.getNome() + \" - \" + cat.getLink(i));\n\t\t\t\t\t\tif(getPrevClick()==getSelectedFoto())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsetFotoOnDisplay(i);\n\t\t\t\t\t\t\tshow(actualCat.getLink(i));\n\t\t\t\t\t\t\tsetSelectedFoto(-1);\n\t\t\t\t\t\t\tsetPrevClick(-2);\n\t\t\t\t\t\t\tframe.setTitle(actualCat.getNome());\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t \n\n\t\t\n\t panel.revalidate();\n\n\n }",
"public interface OnImageSingleClickListener {\n void onImageSingleClick(int position, String path, PhotoView photoView, ImageViewer imageViewer);\n}",
"private void initListButton(){\n ImageButton ibList = findViewById(R.id.imageButtonList);\n ibList.setEnabled(false);\n }",
"public JPanel getImageButtonsPanel() {\r\n\t\treturn imageButtonsPanel;\r\n\t}",
"private void initFavoriteButtonUI() {\n if (mNeighbour.isFavorite())\n mFavoriteBtn.setImageResource(R.drawable.ic_star_yellow_24dp);\n else\n mFavoriteBtn.setImageResource(R.drawable.ic_star_grey_24dp);\n }",
"@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int position,\r\n\t\t\t\t\t\tlong id) {\n\t\t\t\t\timgID=(int)imgadapter.getItemId(position);\r\n\t\t\t\t\timgv.setImageResource(imgID);\r\n\t\t\t\t\t//imgv.setId(imgID);\r\n\t\t\t\t}",
"private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }",
"@Override\n public void handle(MouseEvent event)\n {\n ArrayList<ImageView> tmpArrayList= (ArrayList<ImageView>) imageList.clone();\n ImageView tmpLeft = tmpArrayList.get(0);\n ImageView tmpMiddle = tmpArrayList.get(1);\n ImageView tmpRight = tmpArrayList.get(2);\n\n ArrayList<Integer> tmpOrder= (ArrayList<Integer>) pictureOrder.clone();\n Integer first=tmpOrder.get(0);\n Integer second=tmpOrder.get(1);\n Integer third=tmpOrder.get(2);\n\n pictureOrder.clear();\n pictureOrder.add(second);\n pictureOrder.add(third);\n pictureOrder.add(first);\n System.out.print(pictureOrder.get(0));\n System.out.print(pictureOrder.get(1));\n System.out.print(pictureOrder.get(2));\n\n\n leftToRight(tmpLeft);\n middleToLeft(tmpMiddle);\n rightToMiddle(tmpRight);\n\n imageList.clear();\n imageList.add(tmpMiddle);\n imageList.add(tmpRight);\n imageList.add(tmpLeft);\n\n anchorPane1.getChildren().clear();\n anchorPane1.getChildren().addAll(tmpLeft, tmpMiddle, tmpRight);\n // im1.setImage(tmpLeft.getImage());\n //im2.setImage(tmpMiddle.getImage());\n //im3.setImage(tmpRight.getImage());\n }",
"public AlternateImageRenderer() {\r\n super(\"\");\r\n images = new Image[2];\r\n try {\r\n Resources imageRes = UIDemoMain.getResource(\"images\");\r\n images[0] = imageRes.getImage(\"sady.png\");\r\n images[1] = imageRes.getImage(\"smily.png\");\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n setUIID(\"ListRenderer\");\r\n }",
"public interface QueueImageClickListener {\n /**\n * Called when thumbnail is clicked\n * @param pos Position of {@link com.python.pythonator.structures.queue.ImageQueueItem} which thumbnail was clicked\n */\n void onThumbnailClick(int pos);\n\n /**\n * Called when sendbutton is clicked\n * @param pos Position of {@link com.python.pythonator.structures.queue.ImageQueueItem} which sendbutton was clicked\n */\n void onSendClicked(int pos);\n}",
"public void viewAnswerImageBtnAddListener(ActionListener listener)\r\n\t{\r\n\t\tbtnViewAnswerImage.addActionListener(listener);\r\n\t}",
"private void buttonDemo(Stage stage) {\n // this demonstrates how to create a button and attach a foreground and\n // background image to it.\n Button button = new Button();\n Image laserImg = new Image(getClass().getResourceAsStream(\"resources/laser.png\"));\n ImageView laserIcon = new ImageView(laserImg);\n button.setGraphic(laserIcon);\n setButtonBackground(button, \"yellow.png\");\n button.setOnAction(e -> {\n // toggles background between yellow and red\n if (!status) {\n setButtonBackground(button, \"yellow.png\");\n } else {\n setButtonBackground(button, \"red.png\");\n }\n status = !status;\n });\n\n Scene scene = new Scene(button);\n stage.setScene(scene);\n }",
"public void addTagButton(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttagNameLabel.setVisible(true);\n \ttagValueLabel.setVisible(true);\n \tsubmitNewTagButton.setVisible(true);\n \tcancelNewTagButton.setVisible(true);\n \tnewTagName.setVisible(true);\n \tnewTagValue.setVisible(true);\n\t}",
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"private void init(){\r\n\t\tImageIcon newTaskImg = new ImageIcon(\"resources/images/New.png\");\r\n\t\tImageIcon pauseImg = new ImageIcon(\"resources/images/Pause.png\");\r\n\t\tImageIcon resumeImg = new ImageIcon (\"resources/images/Begin.png\");\r\n\t\tImageIcon stopImg = new ImageIcon(\"resources/images/Stop.png\");\r\n\t\tImageIcon removeImg = new ImageIcon(\"resources/images/Remove.gif\");\r\n\t\tImageIcon shareImg = new ImageIcon(\"resources/images/Share.png\");\r\n\t\tImageIcon inboxImg = new ImageIcon(\"resources/images/Inbox.png\");\r\n\t\t\r\n\t\tnewTask = new JButton(newTaskImg);\r\n\t\tnewTask.setToolTipText(\"New Task\");\r\n\t\tpause = new JButton (pauseImg);\r\n\t\tpause.setToolTipText(\"Pause\");\r\n\t\trestart = new JButton (resumeImg);\r\n\t\trestart.setToolTipText(\"Restart\");\r\n\t\tstop = new JButton(stopImg);\r\n\t\tstop.setToolTipText(\"Stop\");\r\n\t\tremove = new JButton(removeImg);\r\n\t\tremove.setToolTipText(\"Remove\");\r\n\t\tshare = new JButton(shareImg);\r\n\t\tshare.setToolTipText(\"Share\");\r\n\t\tinbox = new JButton(inboxImg);\r\n\t\tinbox.setToolTipText(\"Inbox\");\r\n\t\t\r\n\t}",
"@Override\n public void bindViewsListener() {\n mGrideviewUpload.setOnItemClickListener(this);\n r3.setOnClickListener(this);\n mOkTv.setOnClickListener(this);\n }",
"@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tNoteEditView.this.addPicture();\n \t\t\t}",
"public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }",
"private void setIcons() {\r\n \t\r\n \tbackground = new ImageIcon(\"images/image_mainmenu.png\").getImage();\r\n \tstart = new ImageIcon(\"images/button_start.png\");\r\n \thowto = new ImageIcon(\"images/button_howtoplay.png\");\r\n \toptions = new ImageIcon(\"images/button_options.png\");\r\n \tlboards = new ImageIcon(\"images/button_lboards.png\");\r\n \texit = new ImageIcon(\"images/button_exit.png\");\t\r\n }",
"public interface ImageSelectionListener {\n\n void selected (ImageActor actor);\n\n}",
"public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new picture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"picture\"){\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n }",
"void addImageViewListeners() {\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.get(i).setOnClickListener(this); //OnClickListener for rotation \n\t\t\tpieceViews.get(i).setOnLongClickListener(this); //OnLongClickListener to start dragging\n\t\t\tpieceViews.get(i).setOnDragListener(new DragListener()); //OnDragListener for dragging\t\t\t\n\t\t}\n\t}",
"public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }",
"public void clickListenTank(String imgName, JButton j) {\r\n\t\trequestFocus();\r\n\t\tiii = new ImageIcon(this.getClass().getResource(imgName));\r\n\t\ttextF = null;\r\n\t\tsaveName = imgName;\r\n\t\ttankBut = j;\r\n\t}",
"void mo36483b(int i, ImageView imageView, Uri uri);",
"public interface ImageModListener {\n void setImage(ArrayList<Integer> image);\n }",
"@Override\n public void onClick(View v) {\n chooseImage();\n }",
"public void onClick(View v) {\n currentIndex++;\n // Check If index reaches maximum then reset it\n if (currentIndex == count)\n currentIndex = 0;\n simpleImageSwitcher.setImageResource(imageIds[currentIndex]); // set the image in ImageSwitcher\n }",
"private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd);\n\n // Create a group to contain the RGB and HSB radio buttons.\n Group colorGroup = new Group(comp1, SWT.NONE);\n colorGroup.setText(\" Use color model: \");\n\n RowLayout groupRowLayout = new RowLayout();\n groupRowLayout.marginLeft = 10;\n groupRowLayout.marginRight = 10;\n groupRowLayout.spacing = 10;\n colorGroup.setLayout(groupRowLayout);\n\n // Create the RGB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the RGB\n // sliders.\n rgbRdo = new Button(colorGroup, SWT.RADIO);\n rgbRdo.setText(\"RGB\");\n rgbRdo.setSelection(true);\n rgbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n\n // Create the HSB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the HSB\n // sliders.\n hsbRdo = new Button(colorGroup, SWT.RADIO);\n hsbRdo.setText(\"HSB\");\n hsbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n \n Composite catComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 20;\n catComp.setLayout(gl);\n gd = new GridData(GridData.CENTER);\n gd.horizontalAlignment = SWT.CENTER;\n \n catComp.setLayoutData(gd);\n\n Label selCatLbl = new Label( catComp, SWT.None );\n selCatLbl.setText(\"Category\");\n \n final Combo selCmapCatCombo = new Combo( catComp, SWT.DROP_DOWN | SWT.READ_ONLY );\n selCmapCatCombo.setItems( availColorMapCats );\n selCmapCatCombo.select(0);\n \n selCmapCatCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCat = selCmapCatCombo.getText();\n \t\tif( seldCat.equals( seldCmapCat ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapCat = seldCat;\n \t\tseldCmapName = null;\n \t\tavailColorMaps.clear();\n \t\t\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n \t\n createSliderData();\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n Composite cmapComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 10;\n cmapComp.setLayout(gl);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n cmapComp.setLayoutData(gd);\n\n Label selCmapLbl = new Label( cmapComp, SWT.None );\n selCmapLbl.setText(\"Colormap\");\n \n selCmapCombo = new Combo( cmapComp, SWT.DROP_DOWN );\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n \n selCmapCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCmap = selCmapCombo.getText();\n \t\tif( seldCmap.equals( seldCmapName ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapName = seldCmap;\n\n \t\tif( initColorMap() ) {\n createSliderData();\n \t\t}\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n// selCmapCombo.addModifyListener( new ModifyListener() {\n//\t\t\t@Override\n//\t\t\tpublic void modifyText(ModifyEvent e) { \n//\t\t\t\tseldCmapName = selCmapCombo.getText();\n//\t\t\t}\n// });\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void jMenuItem5ActionPerformed(ActionEvent evt) {\n\t\tif (!entry.isDisabled && entry.RedoImages.size() > 0) {\n\n\t\t\tImage tmg = createImage(((Image) entry.RedoImages.peek()).getWidth(this), ((Image) entry.RedoImages.peek()).getHeight(this));\n\t\t\tGraphics tg = tmg.getGraphics();\n\t\t\ttg.drawImage((Image) entry.RedoImages.peek(), 0, 0, null);\n\t\t\tentry.showImage(tmg);\n\t\t\tentry.SavedImages.push(entry.RedoImages.pop());\n\n\t\t\tentry.setPreferredSize(new Dimension(entryImage.getWidth(this), entryImage.getHeight(this)));\n\t\t\tint w = Math.min(entryImage.getWidth(this) + 3, getContentPane().getWidth());\n\t\t\tint h = Math.min(entryImage.getHeight(this) + 3, getContentPane().getHeight());\n\t\t\tpictureScrollPane.setBounds((getContentPane().getWidth() - w) / 2, (getContentPane().getHeight() - h) / 2, w, h);\n\t\t\tpictureScrollPane.setViewportView(entry);\n\t\t}\n\t}",
"public void changeDirection(int image){\n this.image = image; \n }",
"@Override\n\tpublic void onClick(ClickEvent event) {\n\t\tImage image=(Image)event.getSource();\n\t\tif (image.getAltText().equals(\"nonotice\")) {\n\t\t\timage.setUrl(\"images/notice.jpg\");\n\t\t\timage.setAltText(\"notice\");\n\t\t} else {\n\t\t\timage.setUrl(\"images/nonotice.jpg\");\n\t\t\timage.setAltText(\"nonotice\");\n\t\t}\n\t\treadFeed();\n\t}",
"@Override\n public void onClick(View view) {\n\n photoStorage.addImage(currentLabel, currentVisibleImagePath);\n addImage.setEnabled(false);\n }",
"ImageViewer(){\n\t\tJFrame frame = new JFrame();\n\t\tJPanel north = new JPanel(); //host two buttons\n\t\topen = new JButton(\"Open\");\n\t\tclose = new JButton(\"Close\");\n\t\tnorth.add(open);\n\t\tnorth.add(close);\n\t\t\n\t\t//register event handler to the buttons\n\t\tClickHandler handler = new ClickHandler();\n\t\topen.addActionListener(handler);\n\t\tclose.addActionListener(handler);\n\t\t\n\t\t//make our viewr canvas\n\t\tcanvas = new MyCanvas();\n\t\tframe.add(canvas, BorderLayout.CENTER);\n\t\t\n\t\t//populate the bottom panel\n\t\tJPanel south = new JPanel();\n\t\tgreeting = new JTextField(20);\n\t\tapply = new JButton(\"Apply\");\n\t\tsouth.add(greeting);\n\t\tsouth.add(apply);\n\t\tframe.add(south, BorderLayout.SOUTH);\n\t\tapply.addActionListener(handler);\n\t\t\n\t\tframe.add(north, BorderLayout.NORTH);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(400,400);\n\t\tframe.setVisible(true);\n\t}",
"private void botaoImagemClienteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botaoImagemClienteMouseClicked\n\n // Instancia seletor de arquivo.\n JFileChooser arquivo = new JFileChooser();\n\n // Insere filtro para png e jgp.\n arquivo.setFileFilter(filtro);\n\n // Inicia variavel para parametrizar imagem.\n BufferedImage img;\n\n // Variavel para receber imagem.\n Icon novaImg = null;\n\n // Parametro para seletor selecionar somente o pre determinado\n arquivo.setAcceptAllFileFilterUsed(false);\n\n // Instancia seletor no frame.\n arquivo.showOpenDialog(painelCadastrarCliente);\n\n // Titulo.\n arquivo.setDialogTitle(\"Escolha imagem: extensao jpg e png\");\n\n // Impede mais de uma selecao.\n arquivo.setMultiSelectionEnabled(true);\n\n // Se alguma imagem for selecionada.\n if (arquivo.getSelectedFile() != null) {\n\n // Verifica erro de Io\n try {\n\n // Parametriza a dimensao de imagem.\n int largura = 161, altura = 158;\n\n // Recebe arquivo selecionado.\n img = ImageIO.read(arquivo.getSelectedFile());\n\n // Recebe imagem parametrizada.\n novaImg = new ImageIcon(img.getScaledInstance(largura, altura,\n java.awt.Image.SCALE_SMOOTH));\n\n // Insere imagem na tela por um label.\n imgCaminho = arquivo.getSelectedFile().getAbsolutePath();\n\n } catch (IOException ex) {\n\n // Mensagem de erro.\n JOptionPane.showMessageDialog(null, \"Erro na imagem\", \"Erro\", JOptionPane.ERROR);\n\n }\n\n // Substitui label por imagem.\n imagemCliente.setIcon(novaImg);\n imagemCliente.setVisible(true);\n\n }\n }",
"private void actionComboboxChangedImage ()\r\n\t{\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tif (isDisplaySamples) { helperDisplayDetectedSamples(); }\r\n\t\t\telse { helperDisplayInputImage(); }\r\n\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t\thelperDisplayResults();\r\n\t\t\thelperDisplayChart(true);\r\n\t\t}\r\n\t}",
"@OnClick(R.id.hinhanh_dangtin)\n void ChooseImage(View v) {\n onPickPhoto(v);\n }"
]
| [
"0.6629938",
"0.65322",
"0.646014",
"0.63444006",
"0.6328613",
"0.63269275",
"0.63223714",
"0.63134974",
"0.63069636",
"0.629743",
"0.6262487",
"0.6258696",
"0.62377924",
"0.62235504",
"0.62092847",
"0.6178559",
"0.6160174",
"0.61593574",
"0.61490506",
"0.61385494",
"0.61157024",
"0.6114114",
"0.61079943",
"0.6088068",
"0.60772616",
"0.6071827",
"0.606754",
"0.6059299",
"0.6040766",
"0.60184187",
"0.60160977",
"0.60160583",
"0.60065246",
"0.5981209",
"0.59427726",
"0.59325796",
"0.5913117",
"0.5909902",
"0.59039026",
"0.589705",
"0.58870834",
"0.58815515",
"0.58743125",
"0.5873466",
"0.5851073",
"0.5845431",
"0.5839371",
"0.58327806",
"0.58171487",
"0.5815844",
"0.58085",
"0.580214",
"0.5797924",
"0.57950914",
"0.57932776",
"0.57879955",
"0.57875943",
"0.577893",
"0.57731205",
"0.5769269",
"0.5768676",
"0.57620615",
"0.5755219",
"0.5753942",
"0.57492435",
"0.5748542",
"0.5743546",
"0.5743203",
"0.5741955",
"0.5741617",
"0.57394433",
"0.5737608",
"0.5729204",
"0.57182294",
"0.5715177",
"0.5714026",
"0.5711403",
"0.5708291",
"0.5701587",
"0.5700225",
"0.5696691",
"0.5696115",
"0.5693418",
"0.5691308",
"0.5688729",
"0.56858355",
"0.5679322",
"0.56791043",
"0.5678528",
"0.56746566",
"0.5673559",
"0.56680006",
"0.56677866",
"0.56624264",
"0.56559396",
"0.5652966",
"0.56487375",
"0.5648275",
"0.56420714",
"0.56407154",
"0.5638148"
]
| 0.0 | -1 |
/ 20140608 set image on imagebuttons | private void setImage() {
for(int i=0; i<user.getIsVisited().length; i++) {
if(user.getIsVisited()[i])
spots[i].setBackgroundResource(R.drawable.num1_certified + i*2);
else
spots[i].setBackgroundResource(R.drawable.num1 + i*2);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setImage(ButtonBase button, String fileName) {\n String imagePath = FILE_PROTOCOL + PATH_IMAGES + fileName;\n Image buttonImage = new Image(imagePath);\n\t\n\t// SET THE IMAGE IN THE BUTTON\n button.setGraphic(new ImageView(buttonImage));\t\n }",
"private void initImage() {\n BufferedImage closebtn = null;\n BufferedImage mulaiBtn = null;\n try {\n mulaiBtn = ImageIO.read(new File(\"image\\\\button\\\\mulai_btn.png\"));\n closebtn = ImageIO.read(new File(\"image\\\\button\\\\closeX_btn.png\"));\n ImageIcon mulaiBtnImage = new ImageIcon(mulaiBtn.getScaledInstance(126, 32, Image.SCALE_SMOOTH));\n ImageIcon closeBtnImage = new ImageIcon(closebtn.getScaledInstance(42, 42, Image.SCALE_SMOOTH));\n button_mulai.setIcon(mulaiBtnImage);\n button_close.setIcon(closeBtnImage);\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n button_mulai.setText(\"\");\n button_close.setText(\"\");\n }\n }",
"private void changeGraphic(ToggleButton toggleButton, Image diceImage){\n\t toggleButton.setGraphic(new ImageView(diceImage));\n\t}",
"public void Back(){\n setImage(\"button-blue.png\");\n }",
"public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}",
"public void setImage(ImageIcon img_bouton, ImageIcon img_bouton_ok)\n {\n this.remove(label_img_bouton);\n this.remove(label_img_bouton_ok);\n \n this.img_bouton = img_bouton;\n this.img_bouton_ok = img_bouton_ok;\n this.label_img_bouton = new JLabel(img_bouton);\n this.label_img_bouton_ok = new JLabel(img_bouton_ok);\n \n this.add(label_img_bouton);\n this.revalidate();\n repaint();\n }",
"private void setCaptureButtonImages()\n\t{\n\t\tif(m_CaptureButtons == null)\n\t\t\treturn;\n\t\tCameraActivity camaraActivity = this.getCameraActivity();\n\t\tif(!Handle.isValid(m_CaptureButtonBgHandle))\n\t\t\tm_CaptureButtonBgHandle = m_CaptureButtons.setPrimaryButtonBackground(camaraActivity.getDrawable(R.drawable.capture_button_slow_motion_border), 0);\n\t\tif(!Handle.isValid(m_CaptureButtonIconHandle))\n\t\t\tm_CaptureButtonIconHandle = m_CaptureButtons.setPrimaryButtonIcon(camaraActivity.getDrawable(R.drawable.capture_button_slow_motion_icon), 0);\n\t}",
"private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }",
"private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }",
"public abstract ImageIcon getButtonIcon();",
"private void setButtonIcon(JButton button, ImageIcon myIcon1) {\n //button.setBackground(Color.black);\n button.setBorderPainted(false);\n button.setBorder(null);\n button.setFocusable(false);\n button.setMargin(new Insets(0, 0, 0, 0));\n button.setContentAreaFilled(false);\n button.setIcon(myIcon1);\n button.setOpaque(false);\n }",
"private void setIcons() {\r\n \t\r\n \tbackground = new ImageIcon(\"images/image_mainmenu.png\").getImage();\r\n \tstart = new ImageIcon(\"images/button_start.png\");\r\n \thowto = new ImageIcon(\"images/button_howtoplay.png\");\r\n \toptions = new ImageIcon(\"images/button_options.png\");\r\n \tlboards = new ImageIcon(\"images/button_lboards.png\");\r\n \texit = new ImageIcon(\"images/button_exit.png\");\t\r\n }",
"public void toggleButton(){\r\n\t\tImageIcon xImage = new ImageIcon(\"image/x.png\");\t//Inserting image to the button\r\n\t\tImageIcon oImage = new ImageIcon(\"image/o.png\");\t//Inserting image to the button\r\n\t\tfor(int i=0;i<3;i++){\t\t\t\t\t//Update the buttons' text base on array of state\r\n\t\t\tfor(int j=0;j<3;j++){\r\n\t\t\t\t this.b[i][j].setIcon(Exer10.state[i][j]==1?xImage:(Exer10.state[i][j]==2?oImage:null));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void updateButtonImage() {\n\t\tif(fb.isSessionValid())\n\t\t{\n\t\t\tbutton.setImageResource(R.drawable.logout_button);\n\t\t}\n\t\telse\n\t\t\t\n\t\t{\n\t\t\tbutton.setImageResource(R.drawable.login_button);\n\t\t}\n\t}",
"public void setIcon(Image i) {icon = i;}",
"public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }",
"private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }",
"private void setImageButtonImage(int typeIconId) {\n ImageButton btn = (ImageButton) findViewById(R.id.btn_typeIcon);\n\n TypeIcon typeIcon = MainActivity.getTypeIconById(typeIconId);\n\n // Gets the id of the actual image to display, using the name of the TypeIcon\n String name = typeIcon.getDrawablePath();\n final int id = getResources().getIdentifier(name, \"drawable\", getPackageName());\n btn.setImageResource(id);\n\n iconId = typeIconId;\n }",
"private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }",
"public void setIcon(Button buttonPlayed){\n if(game.getPlayerTurn() == player1){\n buttonPlayed.setBackgroundResource(drawable.o);\n buttonPlayed.setEnabled(false);\n }\n else{\n buttonPlayed.setBackgroundResource(drawable.cross);\n buttonPlayed.setEnabled(false);\n }\n }",
"public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }",
"public void setImage(ImageIcon image){\n\t\tthis.image = image;\n\t}",
"public void showButtonIcon( boolean b ) {\n if ( b ) {\n URL url = getClass().getClassLoader().getResource( \"images/Play16.gif\" );\n Icon icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _run_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Zoom16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _trace_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Edit16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _edit_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Information16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _props_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Properties16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _options_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Refresh16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _reload_btn.setIcon( icon );\n }\n else {\n _run_btn.setIcon( null );\n _trace_btn.setIcon( null );\n _edit_btn.setIcon( null );\n _props_btn.setIcon( null );\n _options_btn.setIcon( null );\n _reload_btn.setIcon( null );\n }\n }",
"private void createImages(){\n icon=new ImageIcon(PATH_TO_FOLDER+\"guiResourses\\\\icon.jpg\").getImage();\n /*\n Image resizedImage=null;\n try {\n resizedImage =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\Gold_Button_009.png\"))\n .getScaledInstance(100, 50, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n buttonStart.setIcon(new ImageIcon(resizedImage));\n buttonStart.setRolloverIcon(new ImageIcon(resizedImage1));\n buttonStart.setBorderPainted(false);\n buttonStart.setFocusPainted(false);\n buttonStart.setContentAreaFilled(false);\n */\n Image resizedImageF=null;\n Image resizedImageFP=null;\n Image resizedImageFF=null;\n Image resizedImageT=null;\n Image resizedImageTP=null;\n Image resizedImageTF=null;\n Image resizedImageB=null;\n Image resizedImageBP=null;\n Image resizedImageBF=null;\n Image resizedImageR=null;\n Image resizedImageRP=null;\n Image resizedImageRF=null;\n try {\n resizedImageF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlight.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageT =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrain.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageTP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageTF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageB =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBus.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageBP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageBF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageR =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoom.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageRP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageRF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n flightButton.setFocusPainted(false);\n flightButton.setRolloverEnabled(true);\n flightButton.setRolloverIcon(new ImageIcon(resizedImageFF));\n flightButton.setIcon(new ImageIcon(resizedImageF));\n flightButton.setPressedIcon(new ImageIcon(resizedImageFP));\n\n trainButton.setFocusPainted(false);\n trainButton.setRolloverEnabled(true);\n trainButton.setRolloverIcon(new ImageIcon(resizedImageTF));\n trainButton.setIcon(new ImageIcon(resizedImageT));\n trainButton.setPressedIcon(new ImageIcon(resizedImageTF));\n busButton.setFocusPainted(false);\n busButton.setRolloverEnabled(true);\n busButton.setRolloverIcon(new ImageIcon(resizedImageBF));\n busButton.setIcon(new ImageIcon(resizedImageB));\n busButton.setPressedIcon(new ImageIcon(resizedImageBF));\n roomButton.setFocusPainted(false);\n roomButton.setRolloverEnabled(true);\n roomButton.setRolloverIcon(new ImageIcon(resizedImageRF));\n roomButton.setIcon(new ImageIcon(resizedImageR));\n roomButton.setPressedIcon(new ImageIcon(resizedImageRF));\n }",
"void setImage(String image);",
"public void setImage(Image img) {\r\n this.img = img;\r\n }",
"private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }",
"@Override\n public void setPressed()\n {\n setImage(\"MinusPressed.png\");\n }",
"private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }",
"public void setqImage(JButton qImage) {\r\n\t\tthis.qImage = qImage;\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==imgBtn) {\n\t\t\t\n\t\t\timgBtn.setSize(INT_VALUE*10, INT_VALUE*10);\n\t\t}\n\t}",
"public void toggleButtonImageCamera() {\n if (isCameraOn) {\n btnCamera.setImageResource(R.drawable.cam_on);\n } else {\n btnCamera.setImageResource(R.drawable.cam_off);\n }\n }",
"public void setHotImage (Image image) {\r\n\tcheckWidget();\r\n\tif (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);\r\n\tif ((style & SWT.SEPARATOR) != 0) return;\r\n\r\n\t/* TEMPORARY CODE: remove when when FLAT tool bars are implemented */\r\n\tif ((parent.style & SWT.FLAT) != 0) setImage (image);\r\n\r\n\thotImage = image;\r\n}",
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }",
"public void setActiveImage() {\n\t\tsetGraphic(new ImageView(activePiece));\n\t\tisActiveImageOn = true;\t\t\n\t}",
"public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }",
"protected JButton makeImageButton(String imageName, String action, String tooltip, String alt) {\n String imgLocation = \"/Rewind24.gif\";\n URL imageURL = Menu.class.getResource(\"/home/jon/Desktop/boner.desktop\");\n\n\n\n JButton button = new JButton();\n // button.setAction(action);\n button.setToolTipText(tooltip);\n // button.addActionListener(this);\n\n button.setIcon(new ImageIcon(imageURL, alt));\n\n return button;\n }",
"public void setImage(ImageIcon image) {\n this.image = image;\n }",
"public void setActionIcons(Image close,Image minimize,Image maximize,Image restore){\n if(close!=null){\n Platform.runLater(()-> btnClose.setGraphic(new ImageView(close)));\n }\n if(minimize!=null){\n Platform.runLater(()-> btnMin.setGraphic(new ImageView(minimize)));\n }\n if(maximize!=null){\n Platform.runLater(()-> btnMax.setGraphic(new ImageView(maximize)));\n imgMaximize=maximize;\n }\n if(restore!=null){\n imgRestore=restore;\n }\n }",
"private void initFavoriteButtonUI() {\n if (mNeighbour.isFavorite())\n mFavoriteBtn.setImageResource(R.drawable.ic_star_yellow_24dp);\n else\n mFavoriteBtn.setImageResource(R.drawable.ic_star_grey_24dp);\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }",
"private void setButtonBackground(Button button, String bgImgName) {\n BackgroundImage backgroundImage = new BackgroundImage(\n new Image( getClass().getResource(\"resources/\" + bgImgName).toExternalForm()),\n BackgroundRepeat.NO_REPEAT,\n BackgroundRepeat.NO_REPEAT,\n BackgroundPosition.CENTER,\n BackgroundSize.DEFAULT);\n Background background = new Background(backgroundImage);\n button.setBackground(background);\n }",
"public void testGetSetImageImage() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE\n\t\ttestNormal.setImage(testImage);\n\t\tassertEquals(testNormal.getImage(), testImage);\n\t}",
"public void toggleButtonImageSwitch() {\n if (isFlashOn) {\n btnSwitch.setImageResource(R.drawable.btn_on);\n } else {\n btnSwitch.setImageResource(R.drawable.btn_off);\n }\n }",
"private void setImageOnGUI() {\n\n // Capture position and set to the ImageView\n if (AppConstants.fullScreenBitmap != null) {\n fullScreenSnap.setImageBitmap(AppConstants.fullScreenBitmap);\n }\n\n }",
"public static void addImageToButton(JButton button, String imgName) {\r\n\t\tString imgPath = \"resources/icons/gui/\" + imgName;\r\n\t\tBufferedImage img = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\timg = ImageIO.read(new File(imgPath));\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"[ImageUtilities.getImageAsIcon]: Failed to get image as an icon! Path: \" + imgPath);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tDimension size = button.getSize();\r\n\t\tInsets insets = button.getInsets();\r\n\t\tsize.width -= insets.left + insets.right;\r\n\t\tsize.height -= insets.top + insets.bottom;\r\n\t\t\r\n\t\tif (size.width > size.height) {\r\n\t\t\tsize.width = -1;\r\n\t\t} else {\r\n\t\t\tsize.height = -1;\r\n\t\t}\r\n\t\t\r\n\t\tbutton.setBorder(BorderFactory.createEmptyBorder());\r\n\t\tbutton.setContentAreaFilled(false);\r\n\t\t\r\n\t\tImage scaled = img.getScaledInstance(size.width, size.height, java.awt.Image.SCALE_SMOOTH);\r\n\t\tbutton.setIcon(new ImageIcon(scaled));\r\n\t}",
"private ImageButton generateItemButton(Texture image) {\n\t\tTextureRegion imgRegion = new TextureRegion(image);\n\t\tTextureRegionDrawable imgDraw = new TextureRegionDrawable(imgRegion);\n\t\treturn new ImageButton(imgDraw);\n\t}",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }",
"public void setImage(Image img, boolean setVisible) {\n setImage(img);\n setImageVisible(setVisible);\n }",
"protected void addImageIcons(String key) {\n Image normal = ResourceManager.getImage(\"orderButton.normal.\" + key);\n Image highlighted = ResourceManager.getImage(\"orderButton.highlighted.\" + key);\n Image pressed = ResourceManager.getImage(\"orderButton.pressed.\" + key);\n Image disabled = ResourceManager.getImage(\"orderButton.disabled.\" + key);\n orderButtonImageCount = ((normal == null) ? 0 : 1)\n + ((highlighted == null) ? 0 : 1)\n + ((pressed == null) ? 0 : 1)\n + ((disabled == null) ? 0 : 1);\n if (hasOrderButtons()) {\n putValue(BUTTON_IMAGE, new ImageIcon(normal));\n putValue(BUTTON_ROLLOVER_IMAGE, new ImageIcon(highlighted));\n putValue(BUTTON_PRESSED_IMAGE, new ImageIcon(pressed));\n putValue(BUTTON_DISABLED_IMAGE, new ImageIcon(disabled));\n } else {\n logger.warning(\"Missing \" + (4-orderButtonImageCount)\n + \" orderButton images for \" + getId());\n }\n }",
"public void initializeButtons(){\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 6; j++){\n\t\t\t\tString s = \"Cards\"+File.separator + i +\",\"+ j + \".jpg\";\n\t\t\t\tImageIcon icon = new ImageIcon(s);\n\t\t\t\tImage img = icon.getImage();\n\t\t\t\tImage newImg = img.getScaledInstance(130, 160, java.awt.Image.SCALE_SMOOTH);\n\t\t\t\tbuttons[i][j] = new JButton(new ImageIcon(newImg));\n\t\t\t}\n\t\t}\n\t\tString s = \"Cards\"+File.separator+\"initial.jpg\";\n\t\tImageIcon icon = new ImageIcon(s);\n\t\tImage img = icon.getImage();\n\t\tImage newImg = img.getScaledInstance(130, 160, java.awt.Image.SCALE_SMOOTH);\n\t\tlastcard1 = new JLabel(new ImageIcon(newImg));\n\t\tlastcard2 = new JLabel(new ImageIcon(newImg));\n\t}",
"public void setImages() {\n\n imgBlock.removeAll();\n imgBlock.revalidate();\n imgBlock.repaint();\n labels = new JLabel[imgs.length];\n for (int i = 0; i < imgs.length; i++) {\n\n labels[i] = new JLabel(new ImageIcon(Toolkit.getDefaultToolkit().createImage(imgs[i].getSource())));\n imgBlock.add(labels[i]);\n\n }\n\n SwingUtilities.updateComponentTreeUI(jf); // refresh\n initialized = true;\n\n }",
"@FXML\r\n public void imageButtonClicked() {\r\n File file = fileChooser.showOpenDialog(viewHandler.getPrimaryStage());\r\n if (file != null) {\r\n try {\r\n viewModel.setImageurl(ImageConverter.ImageToByte(file));\r\n Image img = new Image(new ByteArrayInputStream(viewModel.getImageurl()));\r\n dogPicture.setFill(new ImagePattern(img));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public void setPowerToggleButtonImages(String imageFilename, String imageOverFilename) {\r\n\t\tthis.powerToggleButton.setIcon(imageFilename);\r\n\t\tthis.powerToggleButton.setPressedIcon(imageOverFilename);\r\n\t}",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }",
"void lSetImage(Image img);",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }",
"public SearchFlight() {\n initComponents();\n Icon img1=new ImageIcon(\"Images\\\\click.jpg\");\n Icon img2=new ImageIcon(\"Images\\\\279844-alexfas01.jpg\");\n jButton2.setIcon(img1);\n jLabel8.setIcon(img2);\n }",
"protected void setPic() {\n }",
"private void backBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_backBtnMouseEntered\n //backBtn.setIcon(new ImageIcon(\"C:\\\\Users\\\\Farhan\\\\Documents\\\\NetBeansProjects\\\\SuperMart\\\\Resources\\\\Images/backGreen.png\"));\n ImageIcon ii = new ImageIcon(getClass().getResource(\"/Images/backGreen.png\"));\n backBtn.setIcon(ii);\n }",
"public void m2262J() {\n try {\n if (this.f2513n != null) {\n this.f2513n.setImageResource(17170445);\n }\n } catch (Exception e) {\n C5017f.m3256a(mo61159b(), C5015d.EXCEPTION, \"MraidMode.removeDefaultCloseButton\", e.getMessage(), \"\");\n }\n }",
"public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }",
"void setImageResource(String imageResource) throws IOException;",
"public void defaultImageDisplay(){\n ClassLoader cl = this.getClass().getClassLoader();\n ImageIcon icon = new ImageIcon(cl.getResource(\"pictures/NewInventory/defaultPic.png\"));\n // this.finalImage = icon.getImage();\n Image img = icon.getImage().getScaledInstance(entryImage.getWidth(), entryImage.getHeight(), Image.SCALE_SMOOTH);\n entryImage.setIcon(new ImageIcon(img));\n }",
"private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }",
"private void generateButtonIcons(JToolButton button, BufferedImage image) {\n \n // set up the scaling transform\n AffineTransform at = AffineTransform.getScaleInstance(\n (double)iconSize.width/image.getWidth(),\n (double)iconSize.height/image.getHeight());\n\n // create the gradient\n GradientPaint gradient = new GradientPaint(\n 0, 0, backgroundColor, 0, iconSize.height, selectedColor, true);\n \n //\n // set up the inactive icon\n //\n BufferedImage buffered_image =\n new BufferedImage(iconSize.width, iconSize.height, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2 = buffered_image.createGraphics();\n g2.setPaint(gradient);\n g2.fillRect(0, 0, iconSize.width, iconSize.height);\n g2.setPaint(Color.BLACK); \n g2.drawRenderedImage(image, at);\n \n button.setIcon(new ImageIcon(buffered_image));\n\n //\n // set up the highlighted icon\n // \n buffered_image =\n new BufferedImage(iconSize.width, iconSize.height, BufferedImage.TYPE_INT_ARGB);\n g2 = buffered_image.createGraphics();\n g2.setPaint(gradient);\n g2.fillRect(0, 0, iconSize.width, iconSize.height);\n g2.setPaint(Color.BLACK); \n g2.drawRenderedImage(image, at);\n g2.setColor(highlightColor);\n g2.setStroke(new BasicStroke(2));\n g2.drawRect(1, 1, iconSize.width - 2, iconSize.height - 2);\n button.setRolloverIcon(new ImageIcon(buffered_image));\n \n }",
"private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }",
"public instructionButton()\n {\n getImage().scale(getImage().getWidth()/10, getImage().getHeight()/10);\n }",
"public void highlightButton(ImageButton imageButtonClicked) {\n imageButtonClicked.setColorFilter(0x77000000, PorterDuff.Mode.SRC_ATOP);\n\n if (buttonNemo(imageButtonClicked))\n AppController.getInstance().setCover(1);\n else if (buttonPets(imageButtonClicked))\n AppController.getInstance().setCover(0);\n }",
"public void setDisabledImage (Image image) {\r\n\tcheckWidget();\r\n\tif (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);\r\n\tif ((style & SWT.SEPARATOR) != 0) return;\r\n\tdisabledImage = image;\r\n}",
"private void showImage() {\n this.animalKind = (String) imageCbox.getSelectedItem();\n try {\n ImageIcon imageIcon = new ImageIcon(getClass().getResource(\"/\" + animalKind + \"E.png\")); // load the image to a imageIcon\n Image image = imageIcon.getImage(); // transform it\n Image newImg = image.getScaledInstance(120, 120, Image.SCALE_SMOOTH); // scale it the smooth way\n imageIcon = new ImageIcon(newImg);// transform it back\n imgLabel.setIcon(imageIcon);\n this.add(imgLabel, gbc);\n\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n repaint();\n }",
"public void setBackground(Image i)\n {\n background=i;\n imageLabel.setIcon(new ImageIcon(i));\n imageLabel.setBounds(0,0,700,600);\n add(imageLabel);\n }",
"private ImageButton makeImageButton(XmlNode node, String imagePath,\n String action) {\n if (imagePath == null) {\n imagePath = node.getAttribute(ATTR_IMAGE, \"no path\");\n }\n try {\n Image image = IfcApplet.getImage(imagePath);\n Image overImage =\n IfcApplet.getImage(node.getAttribute(ATTR_OVERIMAGE,\n (String) null));\n Image downImage =\n IfcApplet.getImage(node.getAttribute(ATTR_DOWNIMAGE,\n (String) null));\n int w = node.getAttribute(ATTR_WIDTH, -1);\n int h = node.getAttribute(ATTR_HEIGHT, -1);\n boolean border = node.getAttribute(ATTR_BORDER, false);\n boolean onPress = node.getAttribute(ATTR_EVENT,\n \"onclick\").equals(\"onpress\");\n Dimension dim = null;\n\n if ((w > 0) && (h > 0)) {\n dim = new Dimension(w, h);\n }\n ImageButton tb = new ImageButton(image, overImage, downImage,\n dim, border, onPress);\n String key = node.getAttribute(ATTR_KEY);\n if (key != null) {\n keyToComponent.put(key.toLowerCase(), tb);\n }\n\n if (action == null) {\n action = node.getAttribute(ATTR_ACTION, (String) null);\n }\n if (action != null) {\n tb.setActionListener(this);\n tb.setAction(action);\n }\n\n return tb;\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n\n return null;\n }",
"void setImage(BufferedImage i);",
"private void backBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_backBtnMouseExited\n //backBtn.setIcon(new ImageIcon(\"C:\\\\Users\\\\Farhan\\\\Documents\\\\NetBeansProjects\\\\SuperMart\\\\Resources\\\\Images/backWhite.png\")); \n ImageIcon ii = new ImageIcon(getClass().getResource(\"/Images/backWhite.png\"));\n backBtn.setIcon(ii);\n }",
"public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new picture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"picture\"){\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n }",
"public void setImg( String address, JLabel jlbl ) {\n jlbl.setIcon( new ImageIcon(address) );\n jlbl.setHorizontalAlignment( JLabel.CENTER );\n }",
"JButton getProcessImageButton() {\n return processImageButton;\n }",
"public void setIcon(boolean b){\n \ttry{\n \t\tsuper.setIcon(b);\n \t}\n \tcatch(java.lang.Exception ex){\n \t\tSystem.out.println (ex);\n \t}\n \tif(!b){\n \t\tgetRootPane().setDefaultButton(jButton1);\n \t}\n }",
"private void setImage(Bitmap image) {\n }",
"private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }",
"private void initTabImage() {\n firstImage.setImageResource(R.drawable.home);\n secondImage.setImageResource(R.drawable.profile);\n// thirdImage.setImageResource(R.drawable.addcontent);\n fourthImage.setImageResource(R.drawable.channels);\n fifthImage.setImageResource(R.drawable.search);\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t {\n\t\tint btnId = Integer.parseInt(e.getActionCommand());\n\n\t\tJButton bttn = btn[btnId];\n\n\t\tif (bttn.getIcon().equals(icons[6]))\n\t\t{\n\t\t bttn.setIcon(icons[pairs[btnId]]);\n\t\t} else\n\t\t{\n\t\t bttn.setIcon(icons[6]);\n\t\t}\n\t }",
"private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\n\tpublic void loadImages() {\n\t\tsuper.setImage((new ImageIcon(\"pacpix/QuestionCandy.png\")).getImage());\t\n\t}",
"void setImage(Bitmap bitmap);",
"public void setMainImage(int resource) {\n this.imgMain.setImageResource(resource);\n }",
"public void setImage(BufferedImage i) {\n // Paint image object\n paint = true;\n image = i;\n this.repaint();\n }",
"public void setImage (Product product) {\n\t\t//TODO beh�ver hj�lp. hur s�tter jag mha referens till objektet bilden?\n\t\tpictureLbl.setText(\"\");\n\t\t//picLbl.setIcon(product.getImageName());\n\t\tpictureLbl.repaint();\n\t}",
"private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }",
"private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }",
"private void init(){\r\n\t\tImageIcon newTaskImg = new ImageIcon(\"resources/images/New.png\");\r\n\t\tImageIcon pauseImg = new ImageIcon(\"resources/images/Pause.png\");\r\n\t\tImageIcon resumeImg = new ImageIcon (\"resources/images/Begin.png\");\r\n\t\tImageIcon stopImg = new ImageIcon(\"resources/images/Stop.png\");\r\n\t\tImageIcon removeImg = new ImageIcon(\"resources/images/Remove.gif\");\r\n\t\tImageIcon shareImg = new ImageIcon(\"resources/images/Share.png\");\r\n\t\tImageIcon inboxImg = new ImageIcon(\"resources/images/Inbox.png\");\r\n\t\t\r\n\t\tnewTask = new JButton(newTaskImg);\r\n\t\tnewTask.setToolTipText(\"New Task\");\r\n\t\tpause = new JButton (pauseImg);\r\n\t\tpause.setToolTipText(\"Pause\");\r\n\t\trestart = new JButton (resumeImg);\r\n\t\trestart.setToolTipText(\"Restart\");\r\n\t\tstop = new JButton(stopImg);\r\n\t\tstop.setToolTipText(\"Stop\");\r\n\t\tremove = new JButton(removeImg);\r\n\t\tremove.setToolTipText(\"Remove\");\r\n\t\tshare = new JButton(shareImg);\r\n\t\tshare.setToolTipText(\"Share\");\r\n\t\tinbox = new JButton(inboxImg);\r\n\t\tinbox.setToolTipText(\"Inbox\");\r\n\t\t\r\n\t}",
"private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }",
"public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void setImage(BufferedImage valueImage, BufferedImage BackImage);",
"private void setImage() {\r\n\t\ttry{\r\n\r\n\t\t\twinMessage = ImageIO.read(new File(\"obstacles/win.gif\"));\r\n\t\t\tcoin = ImageIO.read(new File(\"obstacles/Coin.gif\"));\r\n\t\t\toverMessage = ImageIO.read(new File(\"obstacles/over.gif\"));\r\n\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.err.println(\"Image file not found\");\r\n\t\t}\r\n\r\n\t}",
"private JButton getIcoButton() {\r\n\t\tif (icoButton == null) {\r\n\t\t\ticoButton = new JButton();\r\n\t\t\ticoButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/tileimg.png\")));\r\n\t\t\ticoButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\ticoButton.setLocation(new Point(72, 1));\r\n\t\t\ticoButton.setSize(new Dimension(23, 23));\r\n\t\t\ticoButton.setToolTipText(\"图片编辑\");\r\n\t\t\ticoButton.setActionCommand(\"icoButton\");\r\n\t\t\tbuttonAction = new ButtonAction(this);\r\n\t\t\ticoButton.addActionListener(buttonAction);\r\n\t\t}\r\n\t\treturn icoButton;\r\n\t}"
]
| [
"0.7424208",
"0.7244411",
"0.7069812",
"0.701345",
"0.70031583",
"0.6948565",
"0.6827668",
"0.6805442",
"0.67924327",
"0.6760761",
"0.6738526",
"0.6737455",
"0.6737038",
"0.6727595",
"0.6698689",
"0.66431016",
"0.66364473",
"0.6620832",
"0.66096723",
"0.6586125",
"0.65634",
"0.6546881",
"0.6546735",
"0.6535393",
"0.6522347",
"0.65172994",
"0.6517013",
"0.65133613",
"0.64993167",
"0.64975315",
"0.64940286",
"0.64922863",
"0.6491501",
"0.64735943",
"0.6470456",
"0.64568025",
"0.6455655",
"0.64511824",
"0.6434658",
"0.64321923",
"0.6426234",
"0.6425941",
"0.6425388",
"0.6419723",
"0.6412587",
"0.6412422",
"0.64084953",
"0.64042693",
"0.6389911",
"0.6389911",
"0.6374075",
"0.6353539",
"0.63238794",
"0.6323279",
"0.63195485",
"0.63105667",
"0.63087225",
"0.6305283",
"0.6304852",
"0.62905073",
"0.6284581",
"0.6259023",
"0.6256597",
"0.62530833",
"0.6249325",
"0.62341815",
"0.62295175",
"0.62276405",
"0.6227515",
"0.6223145",
"0.62186736",
"0.62179536",
"0.6217385",
"0.6216936",
"0.62153333",
"0.6209579",
"0.62077516",
"0.6204439",
"0.6198052",
"0.6196738",
"0.61926985",
"0.61913514",
"0.6190594",
"0.61861604",
"0.6180728",
"0.61767626",
"0.61767626",
"0.6164631",
"0.6161009",
"0.6159782",
"0.61594653",
"0.6155001",
"0.6153474",
"0.6144186",
"0.61411315",
"0.614045",
"0.61309177",
"0.6129799",
"0.6129148",
"0.612357"
]
| 0.6251547 | 64 |
TODO Autogenerated method stub | @Override
public String toString() {
return BLACKLIST_FILE_PATH+"|"+API_KEY+"|"+KEY; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
This method recursively gathers all the leaf nodes and unlinks them from its parent . | private void addLeaves(TreeNode node, TreeNode parent, int direction, List<Integer> list) {
if (node == null) {
return;
}
if (node.left == null && node.right == null) {
list.add(node.val);
if (parent != null) {
if (direction == 0) {
parent.left = null;
} else {
parent.right = null;
}
}
return;
}
addLeaves(node.left, node, 0, list);
addLeaves(node.right, node, 1, list);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clear() {\n\t\t\tfor (AbstractTreeNode node : children) {\n\t\t\t\tnode.setParent(null);\n\t\t\t}\n\t\t\t\n\t\t\t// clear children\n\t\t\tchildren.clear();\n\t\t}",
"public void resetParents() {\r\n }",
"public void unmemoize() {\n\t\tif (children != null) {\t\n\t\t\tfor (Item i : children) {\n\t\t\t\t((TreeItem)i).unmemoize();\n\t\t\t}\n\t\t}\n\t\ttreeLeaves = null;\n\t\tleaves = null;\n\t}",
"public void flatten()\r\n\t\t{\r\n\t\t\tif (_children.size() > 0) \r\n\t\t\t{\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile(i < _children.size())\r\n\t\t\t\t{\r\n\t\t\t\t\tExpressionNode subExpr = _children.get(i);\r\n\t\t\t\t\tsubExpr.flatten();\r\n\t\t\t\t\tif (_data.equals(subExpr._data)) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_children.addAll(subExpr._children);\r\n\t\t\t\t\t\t_children.remove(subExpr);\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t}",
"private static void delTree(BoardTree root) {\n if (root.children == null) return;\n for (BoardTree child : root.children) {\n delTree(child);\n }\n root.children.clear();\n root = null;\n }",
"public void clear() {\n\t\troot.left = null;\n\t\troot.right = null;\n\t\troot = null;\n\t\tsize = 0;\n\t}",
"synchronized void detachParent() {\n if (!isRoot()) {\n Neighbor neighbor = node.getParent();\n if (neighbor != null) {\n neighbor.detach();\n node.parent = null;\n }\n node.makeRoot();\n }\n }",
"@Override\r\n public void clear(){\r\n root = null;\r\n }",
"public void prune() {\n this.getTree().prune();\n }",
"public void clearChildren() {\r\n this.children = null;\r\n }",
"private void backToParent(){\n\t\tList<Node> tmp = new ArrayList<Node>();\n\t\t\n\t\tfor(int i = 0; i < r.size(); i++){\n\t\t\tif(r.get(i).getNodeType() == Node.ATTRIBUTE_NODE){\n\t\t\t\tNode localNode = ((Attr)r.get(i)).getOwnerElement();\n\t\t\t\tif(localNode != null)\n\t\t\t\t\ttmp.add(localNode);\n\t\t\t} else {\n\t\t\t\tNode localNode = r.get(i).getParentNode();\n\t\t\t\tif(localNode != null && localNode.getNodeType() != Node.DOCUMENT_NODE && !listContainsElement(tmp, localNode)){\n\t\t\t\t\ttmp.add(localNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tr = tmp;\n\t}",
"public void clear()\t{nodes.clear(); allLinks.clear();}",
"public void unCover() {\n linkLR();\n DataNode tmp = this.U;\n while (tmp != this) {\n //select each row and go through all the left nodes and link from respective columns.\n DataNode l = tmp.L;\n while (l!= tmp) {\n l.linkUD();\n l.C.count++;\n l = l.L;\n }\n tmp = tmp.U;\n }\n }",
"public void removeChildren() {\r\n this.children.clear();\r\n childNum = 0;\r\n }",
"private void fixTreeRecursive(WordTree<StructureTag> tree) {\n\t\tfixTree(tree);\n\t\tif(!tree.isLeaf()) {\n\t\t\tfor(WordTree<StructureTag> child : tree.getChildren()) {\n\t\t\t\tfixTreeRecursive(child);\n\t\t\t}\n\t\t}\n\t}",
"public void clear() {\n tree.clear();\n }",
"public void clear(){\n root = null;\n count = 0;\n }",
"void unsetFurtherRelations();",
"public void clear()\n\t\t{ while (!children.isEmpty()) remove(children.get(0)); }",
"public void decreaseCurrentDepth(){\n currentDepth--;\n if (this.children == null) generateChildren();\n else {\n for (Node child : this.children) child.decreaseCurrentDepth();\n }\n }",
"public void makeEmpty() {\r\n\t\troot = null;\r\n\t\tleftChild = null;\r\n\t\trightChild= null;\r\n\t}",
"void freeTree(treeNode root){\n\n\t\twhile(!treeFinished(root)){\n\t\t\tif(root.lc == null && root.rc == null){\n\t\t\t\troot = root.parent;\n\t\t\t} else if(root.lc == null && root.rc != null){\n\t\t\t\t//Schau ob rc ein Blatt ist\n\t\t\t\tif(isLeaf(root.rc)){\n\t\t\t\t\t//Gebe rechtes Kind frei\n\t\t\t\t\troot.rc.free();\n\t\t\t\t\troot.rc = null;\n\t\t\t\t} else {\n\t\t\t\t\t//Fahre mit rechtem Kind fort\n\t\t\t\t\troot = root.rc;\n\t\t\t\t}\n\t\t\t} else if(root.lc != null) {\n\t\t\t\tif(isLeaf(root.lc)){\n\t\t\t\t\troot.lc.free();\n\t\t\t\t\troot.lc = null;\n\t\t\t\t} else {\n\t\t\t\t\troot = root.lc;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\troot.free();\n\n\t}",
"@Override\n public void clear() {\n root = null;\n }",
"private void Clean(){\n \t NodeIterable nodeit = graphModel.getGraph().getNodes();\n \t\n \t for (Node node : nodeit) {\n\t\t\t\n \t\t \n \t\t \n\t\t}\n \t\n }",
"public void clearChildren() {\n //View parent = getParent();\n //children.forEach(child -> child.setParent(parent));\n children.clear();\n this.invalidate();\n }",
"@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }",
"public void clear() {\n\t\troot = null;\n\t\tcount = 0;\n\t}",
"public void recomputeTree() {\n\t\tsuperRoot = factory.createTreeNode(null, this);\n\t\tlayoutToTree.put(null, superRoot);\n\t\tcreateTrees(context.getNodes());\n\t}",
"public void flatten (TreeNode root) {\n while (root != null) {\n TreeNode left = root.left;\n if (left != null) {\n while (left.right != null) {\n left = left.right;\n }\n left.right = root.right;\n root.right = root.left;\n root.left = null;\n }\n root = root.right;\n }\n }",
"public void updateChildNodes() {\n\t\tList<FTNonLeafNode> nodesToRemove = new ArrayList<FTNonLeafNode>();\n\t\tfor (FTNonLeafNode intermediateNode : intermediateNodes.values()) {\n\t\t\tList<FTNode> childNodesToRemove = new ArrayList<FTNode>();\n\t\t\tfor (String childName : intermediateNode.childNodes.keySet()) {\n\t\t\t\tif (intermediateNodes.containsKey(childName)) {\n\t\t\t\t\t// update child node if it has child node\n\t\t\t\t\tFTNonLeafNode childNode = intermediateNodes.get(childName);\n\t\t\t\t\tif ((childNode instanceof FTOrNode) || (childNode instanceof FTAndNode)) {\n\t\t\t\t\t\tintermediateNode.addChildNode(childName, intermediateNodes.get(childName));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// if parent node is an OR node\n\t\t\t\t\t\t// remove this child\n\t\t\t\t\t\tif (intermediateNode instanceof FTOrNode) {\n\t\t\t\t\t\t\tchildNodesToRemove.add(childNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if parent node is an AND node\n\t\t\t\t\t\t// remove the parent node and child node\n\t\t\t\t\t\t// and set their values to false in case they are referenced by other nodes\n\t\t\t\t\t\telse if (intermediateNode instanceof FTAndNode) {\n\t\t\t\t\t\t\tnodesToRemove.add(intermediateNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t\t// mark the nodes as they are not getting removed till after the loop\n\t\t\t\t\t\t\tintermediateNode.resolved = true;\n\t\t\t\t\t\t\tintermediateNode.nodeValue = false;\n\t\t\t\t\t\t\tchildNode.resolved = true;\n\t\t\t\t\t\t\tchildNode.nodeValue = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tintermediateNode.removeChildNodes(childNodesToRemove);\n\t\t\t// if no child node left for this intermediate node,\n\t\t\t// then its parent node should remove this intermediate node as well\n\t\t}\n\t\t// remove the no child nodes\n\t\tfor (FTNonLeafNode node : nodesToRemove) {\n\t\t\tintermediateNodes.remove(node.nodeName);\n\t\t}\n\t}",
"@Generated(hash = 1311440767)\r\n public synchronized void resetTrees() {\r\n trees = null;\r\n }",
"private void clearNodes()\r\n\t{\r\n\t clearMetaInfo();\r\n\t nodeMap.clear();\r\n\t}",
"private void deleteTree(tnode root){\n if (root != null)\n root = null;\n }",
"private void clearEdgeLinks() {\n edges.clear();\n //keep whole tree to maintain its position when it is expanded (within scroll pane bounds)\n Node rootNode = nodes.get(0);\n VBox rootVBox = (VBox) rootNode.getContainerPane().getParent();\n rootVBox.layout();\n Bounds rootNodeChildrenVBoxBounds = rootNode.getChildrenVBox().getBoundsInLocal();\n rootVBox.setLayoutY(Math.abs(rootVBox.getLayoutY() - ((rootNodeChildrenVBoxBounds.getHeight()) - rootNode.getHeight()) / 2 + rootNode.getLayoutY()));\n rootVBox.layout();\n\n for (int i = 0; i < nodes.size(); i++) {\n Pane containerPane = nodes.get(i).getContainerPane();\n //reposition node to the center of its children\n ObservableList<javafx.scene.Node> genericNodes = nodes.get(i).getChildrenVBox().getChildren();\n if (!genericNodes.isEmpty()) {\n nodes.get(i).setLayoutY(((nodes.get(i).getChildrenVBox().getBoundsInLocal().getHeight()) - rootNode.getHeight()) / 2);\n }\n\n for (int j = 0; j < containerPane.getChildren().size(); j++) {\n if (containerPane.getChildren().get(j) instanceof Edge) {\n containerPane.getChildren().remove(j);\n j--;\n }\n }\n }\n redrawEdges(rootNode);\n }",
"void deleteTree(TreeNode node) \n {\n root = null; \n }",
"public void clear() {\n\t\tthis.root = new Node();\n\t}",
"public void resetVisited() {\r\n\t\tvisited = false;\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tif (!visited)\r\n\t\t\t\tcontinue;\r\n\t\t\tchild.resetVisited();\r\n\t\t}\r\n\t}",
"public static void RemoveLeaves(Node node){\r\n \r\n //Pre-Order removal of leaves is done here\r\n \r\n //First iterate of children from last so that we can use .remove functionality of ArrayList else we will face \r\n //NullPointerException if traversed from front \r\n for(int i=node.children.size()-1; i>=0; i--){\r\n Node child = node.children.get(i);\r\n if(child.children.size() == 0){\r\n node.children.remove(child);\r\n }\r\n }\r\n \r\n //Now traverse for child of node\r\n for(Node child : node.children){\r\n RemoveLeaves(child);\r\n }\r\n }",
"public void clear() {\n root = null;\n }",
"public void clear() {\n root = null;\n }",
"public void finalizeChildren() {\n finalizeAllNestedChildren(this);\n }",
"void updateAllParentsBelow();",
"public void clear()\n\t{\n\t\tthis.getChildren().clear();\n\t}",
"public void recursiveClean(Node n, HashSet<Node> h, int l){\n if (n == null || h.contains(n))return;\n n.getTrace().clear();\n h.add(n);\n n.setMark(false);\n n.setcRT(0);\n n.setcTR(100000);\n n.setcRE(1);\n n.setcAV(1);\n for (Instance i: n.getOutput().keySet()){\n for (Node n1: n.getOutput().get(i))\n recursiveClean(n1, h, l + 1);\n //System.out.println(\"Done \" + n.getOutput().keySet().size());\n }\n }",
"protected void clearParentReference(BSTNode n) {\n\n\t\tassert (n != null);\n\t\tassert (n.parent != null);\n\n\t\tif (n == n.parent.left) {\n\t\t\tn.parent.left = null;\n\t\t} else if (n == n.parent.right) {\n\t\t\tn.parent.right = null;\n\t\t} else {\n\t\t\tassert (false);\n\t\t}\n\t}",
"private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }",
"public void combine() {\n\t\t// differences with leafNode: need to address ptrs, and need to demote parent\n\t\tif (next == null) {\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"combine internal:\\t\" + Arrays.toString(keys) + lastindex + \"\\t\" + Arrays.toString(next.keys) + next.lastindex);\n\t\tNode nextNode = next;\n\n\t\t// demote parent\n\t\tNode parentNode = nextNode.parentref.getNode();\n\t\tint parentIndex = nextNode.parentref.getIndex();\n\t\tlastindex += 1;\n\t\tkeys[lastindex] = parentNode.keys[parentIndex];\n\t\tptrs[lastindex] = next.ptrs[0];\n\t\tptrs[lastindex].parentref = new Reference(this, lastindex, false);\n\n\t\tparentNode.delete(parentIndex); // delete parent\n\n\t\t// transfer next sibling node's date into current node\n\t\tfor (int i = 1; i <= next.lastindex; i++) { // start from 1\n\t\t\tlastindex += 1;\n\t\t\tkeys[lastindex] = next.keys[i];\n\t\t\tptrs[lastindex] = next.ptrs[i];\n\t\t\tptrs[lastindex].parentref = new Reference(this, lastindex, false); // set parent\n\t\t}\n\t\t// connect node, delete nextNode\n\t\tNode nextNextNode = nextNode.next;\n\t\tthis.next = nextNextNode;\n\t\tif (nextNextNode != null) {\n\t\t\tnextNextNode.prev = this;\n\t\t}\n\t}",
"public void postorder()\r\n {\r\n postorder(root);\r\n }",
"public void clear() {\n count = 0;\n root = null;\n }",
"private void updateCategoryTree() {\n categoryTree.removeAll();\r\n fillTree(categoryTree);\r\n\r\n }",
"public void clear() {\r\n\t\troot = null;\r\n\t\tsize = 0;\r\n\t}",
"@Override\n\tpublic void clear() {\n\t\tsize = 0;\n\t\troot = null;\n\t}",
"private static void doMirrorTreeRecursive(Node root) {\n Queue<Node> lvlQueue = new LinkedList<>();\n lvlQueue.add(root);\n while (!lvlQueue.isEmpty()) {\n Node poppedNode = lvlQueue.poll();\n if (poppedNode.left != null){\n lvlQueue.add(poppedNode.left);\n }\n if (poppedNode.right != null){\n lvlQueue.add(poppedNode.right);\n }\n Node temp = poppedNode.left;\n poppedNode.left = poppedNode.right;\n poppedNode.right = temp;\n }\n }",
"public void clear() {\r\n\t\t\r\n\t\ttopNode = null; // Sets topNode pointer to null.\r\n\t\t\r\n\t}",
"@Override\n public void removeChildren()\n {\n children.clear();\n }",
"protected void recursiveInitialize(List<JoinPath> joinPaths, Object rootObj) throws OgnlException\n {\n\n Map<String, Object> joinPathMap = new HashMap<String, Object>();\n Map<String, Object> flatIndex = new HashMap<String, Object>();\n HashMap parentMap = new HashMap();\n parentMap.put(\"alias\",\"this\");\n parentMap.put(\"joinType\", JoinType.LEFT_JOIN);\n joinPathMap.put(\"this\", parentMap);\n flatIndex.put(\"this\", parentMap);\n\n for (JoinPath joinPath : joinPaths)\n {\n if(StringUtils.isBlank(joinPath.alias))\n {\n //kalo kosong lewati\n/*\n String[] pathArray = joinPath.path.split(\"[.]\");\n HashMap mapMember = new HashMap();\n mapMember.put(\"joinType\", joinPath.joinType);\n String key = pathArray[pathArray.length - 1];\n if(flatIndex.get(key)!=null)//ada alias kembar tolak !!\n {\n throw new RuntimeException(\"Alias dari Join Path :\"+key+\" terdefinisi lebih dari sekali\");\n }\n flatIndex.put(key, mapMember);\n*/\n }\n else\n {\n HashMap mapMember = new HashMap();\n mapMember.put(\"joinType\", joinPath.joinType);\n String key = joinPath.alias;\n if(flatIndex.get(key)!=null)//ada alias kembar tolak !!\n {\n throw new RuntimeException(\"Alias dari Join Path :\"+key+\" terdefinisi lebih dari sekali\");\n }\n flatIndex.put(key, mapMember);\n }\n }\n for (JoinPath joinPath : joinPaths)\n {\n String[] pathArray = joinPath.path.split(\"[.]\");\n if(pathArray.length>1)\n {\n //gabung alias ke pathnya\n //cari parent\n Map mapParent = (Map) flatIndex.get(pathArray[0]);\n if(mapParent==null)\n continue;\n //cari alias child\n Map mapChild;\n //ambil dari alias dari looping atas\n if(StringUtils.isNotBlank(joinPath.alias))\n {\n mapChild = (Map) flatIndex.get(joinPath.alias);\n }\n else\n {\n mapChild = (Map) flatIndex.get(pathArray[1]);\n }\n mapParent.put(pathArray[1], mapChild);\n }\n else\n {\n //gabung alias ke pathnya\n //cari parent -- this\n Map mapParent = (Map) flatIndex.get(\"this\");\n if(mapParent==null)\n continue;\n //cari alias child\n Map mapChild;\n //ambil dari alias dari looping atas\n if(StringUtils.isNotBlank(joinPath.alias))\n {\n mapChild = (Map) flatIndex.get(joinPath.alias);\n }\n else\n {\n mapChild = (Map) flatIndex.get(pathArray[0]);\n }\n mapParent.put(pathArray[0], mapChild);\n }\n }\n if(cleanUp((Map<String, Object>) joinPathMap.get(\"this\")))\n {\n if (Collection.class.isAssignableFrom(rootObj.getClass()))\n {\n for (Object rootObjIter : ((Collection) rootObj))\n {\n recursiveInitialize((Map<String, Object>) joinPathMap.get(\"this\"), rootObjIter, true);\n }\n }\n else\n {\n recursiveInitialize((Map<String, Object>) joinPathMap.get(\"this\"), rootObj, false);\n }\n }\n }",
"@Override\n public void clearAst() {\n this.root = null;\n }",
"public void rebuild() {\n\t\tif (!divided) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint totalChildren = 0;\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\t// If there is a divided child then we cant do anything\n\t\t\tif (q.isDivided()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\ttotalChildren += q.numPoints();\n\t\t}\n\t\t\n\t\t// If the sum of all the children contained in the sub nodes\n\t\t// is greater than allowed then we cant do anything\n\t\tif (totalChildren > QUADTREE_NODE_CAPACITY) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add all the nodes from the children to this node then remvoe the nodes\n\t\tpoints = new HashMap<Point, E>();\n\t\tfor (QuadTreeNode<E> q : nodes) {\n\t\t\tpoints.putAll(q.points);\n\t\t}\n\t\t\n\t\tnodes.clear();\n\t\tdivided = false;\n\t}",
"private void clearFullTree()\r\n {\r\n fullXmlTree = new StringBuilder();\r\n }",
"public void clear() {\n\t\t//System.err.println(\"FCache::clear() dont know how to clear m_leafCache\");\n\t\tfor (int i = 0; i < m_TopOfBranche.size(); i++) {\n\t\t\tCacheObject o = m_TopOfBranche.elementAt(i);\n\t\t\tif (o != null) {\n\t\t\t\to.m_F = null;\n\t\t\t}\n\t\t}\n\t\t//m_TopOfBranche.removeAllElements();\n\t\tfor (int iNode = 0; iNode < m_BottomOfBrancheID.length; iNode++) {\n\t\t\tclearNode(iNode);\n\t\t}\n\t\tg_nID = 0;\n\t}",
"public void reverseLevelOrderTraversel(TreeNode root)\r\n\t{\r\n\t\tif(root == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tQueue<TreeNode> que = new LinkedList<>();\r\n\t\tStack<TreeNode> stack = new Stack<TreeNode>();\r\n\t\t\r\n\t\tque.add(root);\r\n\t\twhile(que.size()>0)\r\n\t\t{\r\n\t\t\tTreeNode element=que.remove();\r\n\t\t\tif(element.right!=null)\r\n\t\t\t{\r\n\t\t\t\tque.add(element.right);\r\n\t\t\t}\r\n\t\t\tif(element.left!=null)\r\n\t\t\t{\r\n\t\t\t\tque.add(element.left);\r\n\t\t\t}\r\n\t\t\tstack.push(element);\r\n\t\t}\r\n\t\twhile(stack.size()>0)\r\n\t\t{\r\n\t\t\tSystem.out.print(stack.pop().data+\" \");\r\n\t\t}\r\n\t\t\t\r\n\t}",
"public static void Reset() {\n\t\t\n\t\tArrayList<KDNode> root_buff = new ArrayList<KDNode>();\n\t\tfor(KDNode k : KDNode.RootSet()) {\n\t\t\troot_buff.add(k);\n\t\t}\n\t\t\n\t\troot_map.clear();\n\t\t\n\t\tfor(int i=0; i<root_buff.size(); i++) {\n\t\t\tKDNode ptr = root_buff.get(i);\n\t\t\t\n\t\t\tKDNode prev_ptr = ptr;\n\t\t\twhile(ptr != null) {\n\t\t\t\tptr.is_node_set = false;\n\t\t\t\tptr.space.sample_buff.clear();\n\t\t\t\tprev_ptr = ptr;\n\t\t\t\tptr = ptr.parent_ptr;\n\t\t\t}\n\t\t\t\n\t\t\troot_map.add(prev_ptr);\n\t\t}\n\t\t\n\t}",
"public void clearRetained() {\n retained_nodes.clear();\n newBundlesRoot(getRTParent().getRootBundles());\n }",
"private static void traversals(Node root) {\n\t\tSystem.out.println(\"Node Pre \" + root.data);\n\t\tfor(Node child : root.children) {\n\t\t\tSystem.out.println(\"Edge Pre \" + root.data + \"--\" + child.data);\n\t\t\ttraversals(child);\n\t\t\tSystem.out.println(\"Edge Post \" + root.data + \"--\" + child.data);\n\t\t}\n\t\tSystem.out.println(\"Node Post \" + root.data);\n\t}",
"@Override\n public void clear() {\n root = null;\n size = 0;\n }",
"@Override\n public void clear() {\n root = null;\n size = 0;\n }",
"@Override\n public void clear() {\n root = null;\n size = 0;\n }",
"public void clearChildren() throws RemoteException;",
"public void clear()\r\n\t{\r\n\t\tdata = new IterativeBinarySearchTree<Entry>();\r\n\t}",
"public synchronized void clearResources()\r\n {\r\n // create a new root, making old tree eligible for GCing\r\n createRootNode();\r\n\r\n // clear all registered objects\r\n unRegisterAll();\r\n }",
"public void clear() {\n root = null;\n size = 0;\n }",
"public void clear() {\n root = null;\n size = 0;\n }",
"private void modifyLeafNodes(List<Top> roots) {\n\t\troots.stream()\n\t\t\t.forEach(y -> y.getMiddles()\n\t\t\t//.stream()\n\t\t\t.forEach(z -> z.getLeafs()\n\t\t\t//.stream()\n\t\t\t.forEach(x -> x.setAttribute(x.getAttribute().toLowerCase()))));\n\t\troots\n\t\t\t.forEach(x -> x.getMiddles()\n\t\t\t.forEach(y -> y.getLeafs()\n\t\t\t.forEach(i -> System.out.println(i.getId() + \",\" + i.getAttribute()))));\n\t}",
"private void RemoveRootNode() {\n\t\t\n\t\troot_map.remove(this);\n\t\tis_node_set = false;\n\t\tif(left_ptr == null && right_ptr == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tleft_ptr.RemoveRootNode();\n\t\tright_ptr.RemoveRootNode();\n\t}",
"public void clear(){\n firstNode = null;\n lastNode = null;\n }",
"public void unifyAccessPaths(Set roots) {\n LinkedList worklist = new LinkedList();\n for (Iterator i = roots.iterator(); i.hasNext(); ) {\n worklist.add(i.next());\n }\n while (!worklist.isEmpty()) {\n Node n = (Node) worklist.removeFirst();\n if (n instanceof UnknownTypeNode) continue;\n unifyAccessPathEdges(n);\n for (Iterator i = n.getAccessPathEdges().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n FieldNode n2 = (FieldNode) e.getValue();\n Assert._assert(n2 != null);\n if (roots.contains(n2)) continue;\n worklist.add(n2); roots.add(n2);\n }\n for (Iterator i=n.getNonEscapingEdges().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n Object o = e.getValue();\n if (o instanceof Node) {\n Node n2 = (Node)o;\n Assert._assert(n2 != null);\n if (roots.contains(n2)) continue;\n worklist.add(n2); roots.add(n2);\n } else {\n Set s = NodeSet.FACTORY.makeSet((Set) o);\n for (Iterator j = s.iterator(); j.hasNext(); ) {\n Object p = j.next();\n Assert._assert(p != null);\n if (roots.contains(p)) j.remove();\n }\n if (!s.isEmpty()) {\n worklist.addAll(s); roots.addAll(s);\n }\n }\n }\n }\n }",
"public void levelOrderTraversal() {\n LinkedList<Node> queue = new LinkedList<>();\n queue.add(root);\n\n while (!queue.isEmpty()) {\n Node removed = queue.removeFirst();\n System.out.print(removed.data + \" \");\n if (removed.left != null) queue.add(removed.left);\n if (removed.right != null) queue.add(removed.right);\n }\n\n System.out.println();\n }",
"public void makeEmpty() {\r\n\t\troot = null;\r\n\t}",
"public void clear() {\n this.root_.setNw(null);\n this.root_.setNe(null);\n this.root_.setSw(null);\n this.root_.setSe(null);\n this.root_.setNodeType(NodeType.EMPTY);\n this.root_.setPoint(null);\n this.count_ = 0;\n }",
"public RedBlackTree()\n { \n \t root = null;\n }",
"public void delete() {\n this.root = null;\n }",
"public void traverseLevelOrder() {\n\t\tif (root == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tLinkedList<Node> ls = new LinkedList<>();\n\t\tls.add(root);\n\t\twhile (!ls.isEmpty()) {\n\t\t\tNode node = ls.remove();\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t\tif (node.left != null) {\n\t\t\t\tls.add(node.left);\n\t\t\t}\n\t\t\tif (node.right != null) {\n\t\t\t\tls.add(node.right);\n\t\t\t}\n\t\t}\n\t}",
"public void clear()\n {\n if (nodes != null)\n {\n detachNodes(nodes);\n nodes = null;\n namedNodes = null;\n }\n }",
"public void clear()\n {\n nodes.clear();\n }",
"public void clearNodeVisitedMarking() {\n\tfor (Node n : nodes)\n\t n.clearVisitedMark();\n }",
"public void markAllNodesAsUnvisited() {\r\n visitedToken++;\r\n }",
"static void inOrderWithoutRecursion(Node root) {\n if (root == null) {\n return;\n }\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n while (curr != null) {\n stack.push(curr);\n curr = curr.left;\n }\n curr = stack.pop();\n System.out.print(curr.data + \" \");\n curr = curr.right;\n }\n\n }",
"@Override\n public void clear() {\n size = 0;\n root = null;\n }",
"public ArrayList<TreeNode> flatternTree(TreeNode root){\n ArrayList<TreeNode> queue = new ArrayList<TreeNode>();\n ArrayList<TreeNode> returnList = new ArrayList<TreeNode>();\n // if empty tree\n if (root == null){\n return null;\n }\n // else\n queue.add(root);\n while(!queue.isEmpty()){\n TreeNode obj = queue.get(0);\n returnList.add(obj);\n if (obj.left != null){\n queue.add(obj.left);\n }\n if (obj.right != null){\n queue.add(obj.right);\n }\n queue.remove(0);\n }\n return returnList;\n }",
"public void clear() {\n\t\tnodeList.clear();\n\t}",
"@Override\n\tpublic void clear() {\n\t\tNode currentNode = firstNode;\n\t\tNode previousNode = firstNode;\n\t\t\n\t\twhile(firstNode.getNextNode() != null){\n\t\t\t\n\t\t\t\tpreviousNode = currentNode;\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tpreviousNode.next = currentNode.getNextNode();\n\t\t}\n\t\tfirstNode = null;\n\t\tnumberOfEntries = 0;\n\t}",
"public void clear(){\n this.entities.clear();\n /*for(QuadTree node: this.getNodes()){\n node.clear();\n this.getNodes().remove(node);\n }*/\n this.nodes.clear();\n }",
"protected void xremove(Node<T> u) {\n\t\tif (u == r) {\n\t\t\tremove();\n\t\t} else {\n\t\t\tif (u == u.parent.left) {\n\t\t\t\tu.parent.left = nil;\n\t\t\t} else {\n\t\t\t\tu.parent.right = nil;\n\t\t\t}\n\t\t\tu.parent = nil;\n\t\t\tr = merge(r, u.left);\n\t\t\tr = merge(r, u.right);\n\t\t\tr.parent = nil;\n\t\t\tn--;\n\t\t}\n\t}",
"public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }",
"public void clearChildren() {\n internalGroup.clearChildren();\n }",
"public void dumpChildren ()\r\n {\r\n dumpChildren(0);\r\n }",
"public void removeTopLevels() {\n for (Map.Entry<Hierarchy,HierarchyAccessImpl> entry\n : hierarchyGrants.entrySet())\n {\n final HierarchyAccessImpl hierarchyAccess = entry.getValue();\n if (hierarchyAccess.topLevel != null) {\n final HierarchyAccessImpl hierarchyAccessClone =\n new HierarchyAccessImpl(\n hierarchyAccess.hierarchy,\n hierarchyAccess.access,\n null,\n hierarchyAccess.bottomLevel,\n hierarchyAccess.rollupPolicy);\n hierarchyAccessClone.memberGrants.putAll(\n hierarchyAccess.memberGrants);\n entry.setValue(hierarchyAccessClone);\n }\n }\n }",
"public void makeEmpty() {\n\t\troot = null;\n\t}",
"public Node flatten(Node head) {\n Node p = head;\n while (p != null) {\n if (p.child != null) {\n Node tmp = p.child;\n while (tmp.next != null) {\n tmp = tmp.next;\n }\n Node next = p.next;\n /** add the head of the child linked list to the original. **/\n p.next = p.child;\n p.child.prev = p;\n tmp.next = next;\n if (next != null) {\n next.prev = tmp;\n }\n p.child = null;\n }\n p = p.next;\n }\n return head;\n }",
"public void fixup(Node root, Node z)\n {\n \t //root = this.root;\n// \t System.out.println(\"The starting root is: \" + root.data);\n \t if(z.data == root.data)\n \t {\n \t\t root.color = BLACK;\n \t\t return;\n \t }\n \t //PRINT OUT NUMBER ONE\n// \t System.out.println(\"z.parent.data is \" + z.parent.data);\n// \t System.out.println(\"z.data is \" + z.data);\n// \t \n// \t if(z.parent.right != null)\n// \t\t System.out.println(\"z.parent.right.data is \" + z.parent.right.data);\n\n \t while(z.parent.color == RED)\n \t {\n\n \t\t //System.out.println(root.left.data);\n \t\t if( z.parent == z.parent.parent.left)\n \t\t {\n\n \t\t\t Node y = z.parent.parent.right;\n\n \t\t\t if(y != null &&y.color == RED)\n \t\t\t {\n \t\t\t\t z.parent.color = BLACK;\n \t\t\t\t y.color = BLACK;\n \t\t\t\t z.parent.parent.color = RED;\n \t\t\t\t z = z.parent.parent;\n \t\t\t }\n \t\t\t else {\n \t\t\t\t //PRINT OUT NUMBER ONE IN WHILE\n// \t\t\t\t System.out.println(\"(in while) z.parent.data is \" + z.parent.data);\n// \t\t\t\t System.out.println(\"(in while) z.data is \" + z.data);\n// \t\t\t\t if(z.parent.right != null)\n// \t\t\t\t\t System.out.println(\"(in while) z.parent.right.data is \" + z.parent.right.data);\n \t\t\t\t if(z == z.parent.right)\n \t\t\t\t {\n \t\t\t\t\t z.parent.color = BLACK;\n \t\t\t\t\t z.parent.parent.color = RED;\n \t\t\t\t\t // left rotate\n// \t\t\t\t\t System.out.println(\"I am ready to rotate left around: \" + z.parent.data);\n \t\t\t\t\t rotateLeft(z.parent);\n \t\t\t\t\t root = this.root;\n \t\t\t\t }\n \t\t\t\t else {\n \t\t\t\t\t z.parent.color = BLACK;\n \t\t\t\t\t z.parent.parent.color = RED;\n \t\t\t\t\t // right rotate\n// \t\t\t\t\t System.out.println(\"I am ready to rotate right around : \" + z.parent.data);\n\n \t\t\t\t\t rotateRight(z.parent);\n \t\t\t\t\t root = this.root;\n \t\t\t\t }\n\n \t\t\t }\n \t\t }\n \t\t else\n \t\t {\n \t\t\t //PRINT OUT NUMBER TWO\n// \t\t\t System.out.println(\"z.parent.parent.left's data is: \" +z.parent.parent.left.data);\n// \t\t\t System.out.println(\"z.parent.parent.right data is: \" +z.parent.parent.right.data);\n \t\t\t Node y = z.parent.parent.left;\n \t\t\t if(y != null && y.color == RED)\n \t\t\t {\n \t\t\t\t z.parent.color = BLACK;\n \t\t\t\t y.color = BLACK;\n \t\t\t\t z.parent.parent.color = RED;\n \t\t\t\t z = z.parent.parent;\n\n \t\t\t }\n\n \t\t\t else\n \t\t\t {\n \t\t\t\t if(z == z.parent.left)\n \t\t\t\t {\n \t\t\t\t\t z = z.parent;\n// \t\t\t\t\t System.out.println(\"I entered the right rotate methods at the bottom\");\n \t\t\t\t\t rotateRight(z.parent);\n \t\t\t\t }\n \t\t\t\t z.parent.color = BLACK;\n \t\t\t\t z.parent.parent.color = RED;\n// \t\t\t\t System.out.println(\"I entered the left rotate methods at the bottom\");\n \t\t\t\t rotateLeft(z.parent);\n \t\t\t }\n \t\t }\n \t }\n \t this.root.color = BLACK;\n// \t System.out.println(\"The ending root is: \" + root.data);\n \t //System.out.println(BTreePrinter.printNode(root));\n }",
"public List<Component> getAllTree() {\n\t\tList<Component> ret = new ArrayList<>();\n\t\tret.add(this);\n\t\tfor (Component c : getChilds()) {\n\t\t\tList<Component> childs = c.getAllTree();\n\t\t\t// retire les doublons\n\t\t\tfor (Component c1 : childs) {\n\t\t\t\tif (!ret.contains(c1)) {\n\t\t\t\t\tret.add(c1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}"
]
| [
"0.6406098",
"0.63658494",
"0.63554925",
"0.63519967",
"0.6236392",
"0.618329",
"0.6156053",
"0.61504406",
"0.614496",
"0.6139068",
"0.6134023",
"0.6056808",
"0.6053066",
"0.60475963",
"0.6042995",
"0.6023681",
"0.6018002",
"0.6011581",
"0.60096216",
"0.6000952",
"0.59830755",
"0.59589475",
"0.5953485",
"0.59527993",
"0.5944483",
"0.5932507",
"0.59300065",
"0.59190714",
"0.59146905",
"0.5877053",
"0.5875183",
"0.58723056",
"0.58696496",
"0.5855624",
"0.5843041",
"0.5834064",
"0.5827393",
"0.582536",
"0.58136874",
"0.58136874",
"0.5798403",
"0.5781429",
"0.5774978",
"0.5757332",
"0.5756994",
"0.57541555",
"0.57481885",
"0.5742368",
"0.5742048",
"0.5732619",
"0.5731592",
"0.57295555",
"0.57254696",
"0.5718717",
"0.57094526",
"0.57080156",
"0.5702398",
"0.5681098",
"0.5678609",
"0.56781995",
"0.567545",
"0.56716067",
"0.5669626",
"0.56558156",
"0.565574",
"0.565574",
"0.565574",
"0.56423724",
"0.5636519",
"0.5634732",
"0.56252706",
"0.56252706",
"0.56247324",
"0.562438",
"0.5623306",
"0.56176317",
"0.56158775",
"0.560329",
"0.5599999",
"0.5594927",
"0.55936414",
"0.55883247",
"0.55859166",
"0.55816823",
"0.5577462",
"0.55760944",
"0.557519",
"0.55690914",
"0.55654705",
"0.5561425",
"0.55606425",
"0.5558464",
"0.5555915",
"0.55541736",
"0.55515176",
"0.55475223",
"0.5544815",
"0.55382115",
"0.5531912",
"0.5519719",
"0.55173504"
]
| 0.0 | -1 |
Create a new instance. | public IngredientMapSingleClassified(IngredientComponent<T, M> component,
Supplier<IIngredientMapMutable<T, M, V>> mapCreator,
IngredientComponentCategoryType<T, M, C> categoryType) {
super(component);
this.classifiedMaps = categoryType.isReferenceEqual() ? Maps.newIdentityHashMap() : Maps.newHashMap();
this.mapCreator = mapCreator;
this.categoryType = categoryType;
this.size = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Instance createInstance();",
"public void create(){}",
"public Instance() {\n }",
"private Instantiation(){}",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"void create(T instance) throws IOException;",
"Reproducible newInstance();",
"public void create() {\n\t\t\n\t}",
"public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}",
"public T newInstance();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"T create();",
"T create();",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public CMObject newInstance();",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }",
"@Override\n\tpublic void create() {\n\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}",
"public abstract void create();",
"@Override\n\tpublic void create () {\n\n\t}",
"public Instance() {\n super(Routing.NAMESPACE, \"instance\");\n }",
"InstanceModel createInstanceOfInstanceModel();",
"public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }",
"public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }",
"private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }",
"public Factory() {\n\t\tsuper();\n\t}",
"@SuppressWarnings(\"unchecked\")\n public T newInstance()\n throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n if (constructor_ == null) {\n constructor_ = getRawClass().getConstructor();\n }\n\n return (T)constructor_.newInstance();\n }",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}",
"public abstract boolean create(T newInstance);",
"<T> T newInstance(URI description) throws EnvironmentException;",
"public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}",
"private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}",
"public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}",
"public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}",
"@Override\r\n public void instantiate() {\r\n }",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"protected abstract void construct();",
"public ApplicationCreator() {\n }",
"public SingleRequest<?> create() {\n return new SingleRequest<>();\n }",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}",
"T create() throws PersistException;",
"public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"public ObjectFactory() {\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public Open() {\n //creates a new open instance\n }",
"public ObjectFactory() {\r\n\t}",
"public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }",
"For createFor();",
"private static void createInstance() {\n if (mApiInterface == null) {\n synchronized(APIClient.class) {\n if (mApiInterface == null) {\n mApiInterface = buildApiClient();\n }\n }\n }\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"Snapshot create();",
"public void test_ctor() {\n assertNotNull(\"instance should be created.\", instance);\n }",
"@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}",
"void create( State state );",
"public Produto() {}",
"public static void main(String[] args) throws IOException {\n \n CreateInstance createInstance = new CreateInstance();\n\n try {\n createInstance.init(args);\n Flavor flavor = createInstance.getFlavor();\n createInstance.createInstance(flavor);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n createInstance.close();\n }\n }",
"public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }",
"public static synchronized void constructInstance()\n {\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, false );\n\n if ( ourInstance != null )\n {\n throw new IllegalStateException( myName + \" Already Constructed\" );\n }\n ourInstance = new ElbowSubsystem();\n\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, true );\n }",
"Klassenstufe createKlassenstufe();",
"DynamicInstance createDynamicInstance();",
"public void testConstructor() {\r\n assertNotNull(\"unable to create instance\", instance);\r\n }",
"public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }",
"void create(T t);",
"public static IPCGCallDetailCreator instance()\r\n {\r\n if (instance == null)\r\n {\r\n instance = new IPCGCallDetailCreator();\r\n }\r\n return instance;\r\n }",
"public Activator() {\r\n\t}",
"@Override\r\n\tpublic ItemInstance createItemInstance() {\n\t\treturn new HpInstance();\r\n\t}",
"T newInstance(Object... args);",
"public T safeNewInstance() {\n try {\n return newInstance();\n } catch (NoSuchMethodException e) {\n throw new IllegalArgumentException(e);\n } catch (IllegalAccessException e) {\n throw new IllegalArgumentException(e);\n } catch (InvocationTargetException e) {\n throw new IllegalArgumentException(e);\n } catch (InstantiationException e) {\n throw new IllegalArgumentException(e);\n }\n }",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"public Model() {\n\t}",
"public Model() {\n\t}",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
]
| [
"0.7856344",
"0.7297506",
"0.7190777",
"0.7127816",
"0.70360863",
"0.69051784",
"0.6813679",
"0.67574406",
"0.6720743",
"0.67055887",
"0.66634166",
"0.66509396",
"0.66509396",
"0.66497475",
"0.6614444",
"0.656769",
"0.6566887",
"0.652523",
"0.6489371",
"0.64792",
"0.6469803",
"0.64636576",
"0.64393514",
"0.6321882",
"0.6275043",
"0.62730247",
"0.6260265",
"0.6240543",
"0.6209885",
"0.61780596",
"0.61729485",
"0.616454",
"0.6157075",
"0.61501217",
"0.6111954",
"0.60838616",
"0.6040035",
"0.6025259",
"0.6012407",
"0.5999213",
"0.5979572",
"0.59750104",
"0.5967036",
"0.5955364",
"0.5955364",
"0.5955364",
"0.5947893",
"0.5933223",
"0.59014374",
"0.59010714",
"0.5900167",
"0.5899628",
"0.5898611",
"0.58976215",
"0.58948785",
"0.58926153",
"0.58899117",
"0.58886194",
"0.5879765",
"0.58792996",
"0.58736473",
"0.58511376",
"0.58511376",
"0.5848479",
"0.58465594",
"0.5842973",
"0.5839303",
"0.5833458",
"0.5830305",
"0.58247954",
"0.5808021",
"0.58075076",
"0.5807484",
"0.5806005",
"0.5803778",
"0.58007973",
"0.5791398",
"0.5790655",
"0.5789477",
"0.5787487",
"0.5780606",
"0.5769286",
"0.5762539",
"0.5762539",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392",
"0.5754392"
]
| 0.0 | -1 |
Called when the activity is first created. | public void handleMessage(Message msg) {
if (msg.what < 0) {
MyOrder.getFlaovorFromSetting();
} else {
MyOrder.saveFlavorToSetting();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }",
"protected void onCreate() {\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}",
"@Override\n public void onCreate()\n {\n\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n initData();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void onCreate() {\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}",
"@Override\n public void onCreate() {\n\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}",
"public void onCreate() {\n }",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}",
"@Override\n\tpublic void onCreate() {\n\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}",
"@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }",
"@Override\n public void onCreate()\n {\n\n\n }",
"@Override\n\tprotected void onCreate() {\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}",
"public void onCreate();",
"public void onCreate();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }",
"@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }",
"@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}",
"@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }",
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}",
"@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }"
]
| [
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",
"0.74805456",
"0.7475343",
"0.7469598",
"0.7469598",
"0.7455178",
"0.743656",
"0.74256307",
"0.7422192",
"0.73934627",
"0.7370002",
"0.73569906",
"0.73569906",
"0.7353011",
"0.7347353",
"0.7347353",
"0.7333878",
"0.7311508",
"0.72663945",
"0.72612154",
"0.7252271",
"0.72419256",
"0.72131634",
"0.71865886",
"0.718271",
"0.71728176",
"0.7168954",
"0.7166841",
"0.71481615",
"0.7141478",
"0.7132933",
"0.71174103",
"0.7097966",
"0.70979583",
"0.7093163",
"0.7093163",
"0.7085773",
"0.7075851",
"0.7073558",
"0.70698684",
"0.7049258",
"0.704046",
"0.70370424",
"0.7013127",
"0.7005552",
"0.7004414",
"0.7004136",
"0.69996923",
"0.6995201",
"0.69904065",
"0.6988358",
"0.69834954",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69820535",
"0.69783133",
"0.6977392",
"0.69668365",
"0.69660246",
"0.69651115",
"0.6962911",
"0.696241",
"0.6961096",
"0.69608897",
"0.6947069",
"0.6940148",
"0.69358927",
"0.6933102",
"0.6927288",
"0.69265485",
"0.69247025"
]
| 0.0 | -1 |
Gets the clssCd value for this ForeignPatentDocumentsInfo. | public java.lang.String getClssCd() {
return clssCd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCntryCd()\n\t{\n\t\treturn mCntryCd;\n\t}",
"public java.lang.Integer getCDS() {\n return CDS;\n }",
"public String getPstlCd()\n\t{\n\t\treturn mPstlCd;\n\t}",
"public StrColumn getJournalIdCSD() {\n return delegate.getColumn(\"journal_id_CSD\", DelegatingStrColumn::new);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getCdcs() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(CDCS_PROP.get());\n }",
"public java.lang.String getScat_cd() {\n\t\treturn scat_cd;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getCdcs() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(CDCS_PROP.get());\n }",
"public String getContCD() {\n return contCD;\n }",
"public java.lang.String getDsCPF() {\n return dsCPF;\n }",
"public java.lang.String getDsCidade() {\n return dsCidade;\n }",
"public String getS_c_n() {\n return s_c_n;\n }",
"public String getCpnyCd() {\n\t\tif (_CpnyCd.equalsIgnoreCase(\"TMT\"))\n\t\t\treturn \"T\";\n\t\telse if (_CpnyCd.equalsIgnoreCase(\"TABT\"))\n\t\t\treturn \"B\";\n\t\telse if (_CpnyCd.equalsIgnoreCase(\"TAW\"))\n\t\t\treturn \"W\";\n\t\telse\n\t\t\treturn _CpnyCd;\n\t}",
"public void setClssCd(java.lang.String clssCd) {\n this.clssCd = clssCd;\n }",
"public String getDomainCd() {\n return this.domainCd;\n }",
"public java.lang.String getCat_cd() {\n\t\treturn cat_cd;\n\t}",
"public StrColumn getDatabaseIdCSD() {\n return delegate.getColumn(\"database_id_CSD\", DelegatingStrColumn::new);\n }",
"public String getLocationCd() {\n return _locationCd;\n }",
"public String getSublineCd() {\n\t\treturn sublineCd;\n\t}",
"public String getCsc() {\r\n\t\treturn csc;\r\n\t}",
"public int getCLNO() {\n return clno;\n }",
"public customerdetails getCsd() {\n return cd;\n }",
"public java.lang.String couponDC()\n\t{\n\t\treturn _lsPeriod.get (0).periods().get (0).couponDC();\n\t}",
"public Integer getSeriesCd() {\n\t\treturn seriesCd;\n\t}",
"public String getCompanyCd() {\r\n return companyCd;\r\n }",
"public String getCompanyCd() {\r\n return companyCd;\r\n }",
"public String getCountyCd() {\n\t\treturn countyCd;\n\t}",
"java.lang.String getCdkey();",
"public java.lang.String getCdkey() {\n java.lang.Object ref = cdkey_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n cdkey_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getCsNumber() {\n return csNumber;\n }",
"public java.lang.String getMchntCd () {\n\t\treturn mchntCd;\n\t}",
"public java.lang.String getDocdbContryCode() {\n return docdbContryCode;\n }",
"public String getShopCd() {\n\t\treturn shopCd;\n\t}",
"public ContratOffreDTO getCdd(){\n\t\tcdd = null;\n\t\tList<ContratOffreDTO> l = getNomenclatureDomainService().getContrats();\n\t\tfor(ContratOffreDTO c : l){\n\t\t\tif(c.getCodeCtrl().equalsIgnoreCase(DonneesStatic.CONTRAT_OFFRE_CODE_CTRL_CDD)){\n\t\t\t\tcdd=c;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn cdd;\n\t}",
"public java.lang.String getCdkey() {\n java.lang.Object ref = cdkey_;\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 cdkey_ = s;\n }\n return s;\n }\n }",
"public int CCID() {\n\t\treturn this.creditCardIDNum;\n\t}",
"public String getClId() {\r\n return clId;\r\n }",
"@Override\n\t@Field(offset=37, length=1, paddingChar=' ', align=Align.LEFT)\n\tpublic String getDvContaCedente() {\n\t\treturn super.getDvContaCedente();\n\t}",
"public String getCn() {\n return (String)getAttributeInternal(CN);\n }",
"public String getCid() {\n return cid;\n }",
"public String getClId() {\r\n\t\treturn clId;\r\n\t}",
"public int getDSCP() {\r\n\t\treturn this.DSCP;\r\n\t}",
"public long getCpf() {\n return this.CPF;\n }",
"public long getcNum() {\n return cNum;\n }",
"public int getCCN(){\n\t\treturn ccn;\n\t}",
"public String getCurrencyCd() {\n return (String) getAttributeInternal(CURRENCYCD);\n }",
"public java.lang.String getMSCD() {\n return MSCD;\n }",
"public java.lang.String getSzCdCounty()\r\n {\r\n return this._szCdCounty;\r\n }",
"public String getStateCd() {\n\t\treturn stateCd;\n\t}",
"public Integer getcId() {\n return cId;\n }",
"public com.google.protobuf.ByteString\n getCdkeyBytes() {\n java.lang.Object ref = cdkey_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n cdkey_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getSzCdSvcDtlService()\r\n {\r\n return this._szCdSvcDtlService;\r\n }",
"Integer getChnlCde();",
"public String getDsCode() {\n return dsCode;\n }",
"public String getOrgCd() {\r\n return orgCd;\r\n }",
"public java.lang.String getC660000021()\n {\n return this.c660000021;\n }",
"public String getValueCd() {\n return this.valueCd;\n }",
"public String getCpf() {\n return cpf;\n }",
"public java.lang.String getDSCRLONGF() {\n return DSCRLONGF;\n }",
"public com.google.protobuf.ByteString\n getCdkeyBytes() {\n java.lang.Object ref = cdkey_;\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 cdkey_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public StringDt getClinicalInformation() { \n\t\tif (myClinicalInformation == null) {\n\t\t\tmyClinicalInformation = new StringDt();\n\t\t}\n\t\treturn myClinicalInformation;\n\t}",
"public String getCname() {\n return cname;\n }",
"@Override\n\tpublic String getResProjectCd() {\n\t\treturn applCenterCd;\n\t}",
"public java.lang.String getDSCRLONGD() {\n return DSCRLONGD;\n }",
"private int getcd(){\r\n\t\tswitch(type){\r\n\t\tcase single: return new peashooter(pointer).getcd();\r\n\t\tcase sunflower:return new sunflower(pointer).getcd();\r\n\t\tcase nutwall: return new nutwall(pointer).getcd();\r\n\t\tcase cherry: return new cherry(pointer).getcd();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public int getCDR() {\n\t\t\n\t\treturn cdr;\n\t}",
"public String getCorpConsitutionDoc() {\n return corpConsitutionDoc;\n }",
"public String getCname() {\r\n return cname;\r\n }",
"public String getStatusCd() {\n\t\treturn null;\n\t}",
"public final IHlNmClCl getHldFdCls() {\n return this.hldFdCls;\n }",
"public String getCDT() {\n\t\treturn CDT;\n\t}",
"public String getSCusCategoryID() {\n return sCusCategoryID;\n }",
"public java.lang.String getCorgPatno() {\n return corgPatno;\n }",
"public String getCfNo() {\n\t\treturn cfNo;\n\t}",
"public int getJursdCd() {\n return jursdCd;\n }",
"public Integer getCarCompanyCd() {\n\t\treturn carCompanyCd;\n\t}",
"public java.lang.CharSequence getSRCCDCOPERNM() {\n return SRC_CDC_OPER_NM;\n }",
"public java.lang.CharSequence getSRCCDCOPERNM() {\n return SRC_CDC_OPER_NM;\n }",
"public java.lang.CharSequence getSRCCDCOPERNM() {\n return SRC_CDC_OPER_NM;\n }",
"public String getDcpoNo() {\n return (String)getAttributeInternal(DCPONO);\n }",
"public String getDcrp() {\n\t\treturn dcrp;\n\t}",
"public Number getDssNotifIdFk() {\r\n return (Number) getAttributeInternal(DSSNOTIFIDFK);\r\n }",
"public java.lang.String getC660000025()\n {\n return this.c660000025;\n }",
"public java.lang.CharSequence getSRCCDCOPERNM() {\n return SRC_CDC_OPER_NM;\n }",
"public java.lang.CharSequence getSRCCDCOPERNM() {\n return SRC_CDC_OPER_NM;\n }",
"public java.lang.CharSequence getSRCCDCOPERNM() {\n return SRC_CDC_OPER_NM;\n }",
"public String getContinuationFinChrtOfAcctCd() {\n return continuationFinChrtOfAcctCd;\n }",
"public String getDc()\n {\n return dc;\n }",
"public String getCfdaNumber() {\n return cfdaNumber;\n }",
"public Integer getMakeCd() {\n\t\treturn makeCd;\n\t}",
"public Integer getCid() {\n return cid;\n }",
"public Integer getCid() {\n return cid;\n }",
"public java.lang.String getC660000024()\n {\n return this.c660000024;\n }",
"public String getStCodeSpC() {\n return stCodeSpC;\n }",
"public String getJurisdictionCd() {\n\t\treturn null;\n\t}",
"public Integer getC_d_i() {\n return c_d_i;\n }",
"public Date getcDt() {\r\n\t\treturn cDt;\r\n\t}",
"public String getCidade() {\n\t\treturn cidade;\n\t}",
"public String getCif() {\n return cif;\n }",
"public int getContrcdId() {\n return contrcdId;\n }",
"public Integer getSchFileId() {\n\t\treturn schFileId;\n\t}"
]
| [
"0.63424164",
"0.62994426",
"0.61095667",
"0.61089015",
"0.607274",
"0.60280764",
"0.6020666",
"0.6014168",
"0.5990674",
"0.59886336",
"0.58788747",
"0.58672214",
"0.5764658",
"0.57530224",
"0.5751409",
"0.5737978",
"0.5686347",
"0.564166",
"0.5641056",
"0.56344",
"0.560066",
"0.5541447",
"0.5530184",
"0.54270935",
"0.54270935",
"0.5417535",
"0.5405722",
"0.53927016",
"0.5388107",
"0.5385801",
"0.5372314",
"0.53686786",
"0.5352427",
"0.5317679",
"0.5315725",
"0.5294559",
"0.52917486",
"0.52816993",
"0.52772844",
"0.52656573",
"0.52610064",
"0.52377534",
"0.5232168",
"0.52179027",
"0.5217793",
"0.5208107",
"0.5203431",
"0.5199671",
"0.51945496",
"0.51933706",
"0.5186986",
"0.5186943",
"0.51780903",
"0.51671094",
"0.5160649",
"0.5158134",
"0.5155724",
"0.51516163",
"0.51461995",
"0.5132999",
"0.5132103",
"0.51285386",
"0.51251066",
"0.51237816",
"0.5122627",
"0.511964",
"0.51140124",
"0.51016545",
"0.50960225",
"0.5088159",
"0.50878036",
"0.5076868",
"0.5060213",
"0.50508803",
"0.50452465",
"0.5044739",
"0.5044739",
"0.5044739",
"0.50403064",
"0.50397027",
"0.5032841",
"0.50265115",
"0.50142485",
"0.50142485",
"0.50142485",
"0.5010482",
"0.5007829",
"0.50041837",
"0.5001476",
"0.4995699",
"0.4995699",
"0.49886757",
"0.4988071",
"0.49849555",
"0.49848104",
"0.4983943",
"0.49830648",
"0.49817008",
"0.49809793",
"0.4980082"
]
| 0.769247 | 0 |
Sets the clssCd value for this ForeignPatentDocumentsInfo. | public void setClssCd(java.lang.String clssCd) {
this.clssCd = clssCd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCntryCd(String cntryCd) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MAX_LEN, PARM_NM_CNTRY_CD, \n\t\t\tcntryCd, MAX_PARM_LEN_CNTRY_CD, EXC_CD_CNTRY_CD);\n\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_CNTRY_CD, \n\t\t\tcntryCd, MIN_PARM_LEN_CNTRY_CD, EXC_CD_CNTRY_CD);\n\n\t\tmCntryCd = cntryCd;\n\t}",
"public void setScat_cd(final java.lang.String scat_cd) {\n\t\tthis.scat_cd = scat_cd;\n\t}",
"public java.lang.String getClssCd() {\n return clssCd;\n }",
"public void setCDS(java.lang.Integer CDS) {\n this.CDS = CDS;\n }",
"public void updateSCId(int sCid){\n\t\tthis.sCiD = sCid;\n\t}",
"public void setCpnyCd(String CpnyCd) {\n\t\t_CpnyCd = CpnyCd;\n\t}",
"public void setPstlCd(String pstlCd) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_PSTL_CD, pstlCd, \n\t\t\tMIN_PARM_LEN_PSTL_CD, EXC_CD_PSTL_CD);\n\n\t\tmPstlCd = createLikeSQLValue(pstlCd.substring(0, MIN_PARM_LEN_PSTL_CD));\n\t}",
"public void setValueCd(String valueCd) {\n this.valueCd = valueCd;\n }",
"public void setCdcs(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(CDCS_PROP.get(), value);\n }",
"public void setCdcs(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(CDCS_PROP.get(), value);\n }",
"public void setSeriesCd(Integer seriesCd) {\n\t\tthis.seriesCd = seriesCd;\n\t}",
"public void setSsDir(String ssdir) {\n \t\tthis.ssdir = \"$\" + ssdir;\n \t}",
"public void setDsCidade(java.lang.String dsCidade) {\n this.dsCidade = dsCidade;\n }",
"public void setDomainCd(String domainCd) {\n this.domainCd = domainCd;\n }",
"public void setS_c_n(String s_c_n) {\n this.s_c_n = s_c_n == null ? null : s_c_n.trim();\n }",
"public void setSzCdCounty(java.lang.String szCdCounty)\r\n {\r\n this._szCdCounty = szCdCounty;\r\n }",
"public void setContCD(String contCD) {\n this.contCD = contCD;\n }",
"public void setCsc(String csc) {\r\n\t\tthis.csc = csc;\r\n\t}",
"public void setCat_cd(final java.lang.String cat_cd) {\n\t\tthis.cat_cd = cat_cd;\n\t}",
"public void setDsCPF(java.lang.String dsCPF) {\n this.dsCPF = dsCPF;\n }",
"public void setDSCP(int dSCP) {\r\n\t\tthis.DSCP = dSCP;\r\n\t}",
"public void setJursdCd(int jursdCd) {\n this.jursdCd = jursdCd;\n }",
"public void setMSCD(java.lang.String MSCD) {\n this.MSCD = MSCD;\n }",
"public void setScdx(Integer scdx) {\n this.scdx = scdx;\n }",
"public void setASSMBL_CD( String aSSMBL_CD ) {\n ASSMBL_CD = aSSMBL_CD;\n }",
"public void setSublineCd(String sublineCd) {\n\t\tthis.sublineCd = sublineCd;\n\t}",
"public void setMchntCd (java.lang.String mchntCd) {\n\t\tthis.mchntCd = mchntCd;\n\t}",
"public void setLocationCd(String locationCd) {\n _locationCd = locationCd;\n }",
"public void setLocTypCd(String locTypCd) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_LOC_TYP,\n\t\t\tlocTypCd, MIN_PARM_LEN_LOC_TYP, EXC_CD_LOC_TYP);\n\t\t\n\t\tvalidateParameter(VAL_MAX_LEN, PARM_NM_LOC_TYP, \n\t\t\tlocTypCd, MAX_PARM_LEN_LOC_TYP, EXC_CD_LOC_TYP);\n\n\t\tmLocTypCd = locTypCd;\n\t}",
"public void setShopCd(String shopCd) {\n\t\tthis.shopCd = shopCd;\n\t}",
"public void setColorCd(Integer colorCd) {\n\t\tthis.colorCd = colorCd;\n\t}",
"public void setCLNO(int value) {\n this.clno = value;\n }",
"public void setOrgCd(String orgCd) {\r\n this.orgCd = orgCd;\r\n }",
"public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }",
"public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }",
"public void setSzCdSvcDtlService(java.lang.String szCdSvcDtlService)\r\n {\r\n this._szCdSvcDtlService = szCdSvcDtlService;\r\n }",
"public void setClStaffId(String clStaffId) {\r\n\t\tthis.clStaffId = clStaffId;\r\n\t}",
"public void setcDt(Date cDt) {\r\n\t\tthis.cDt = cDt;\r\n\t}",
"public void setCidade(String cidade) {// Altera o nome da cidade.\r\n\t\tthis.cidade = cidade;\r\n\t}",
"public void setMakeCd(Integer makeCd) {\n\t\tthis.makeCd = makeCd;\n\t}",
"public void setClId(String clId) {\r\n this.clId = clId;\r\n }",
"public void setSsds(String ssds) {\n this.ssds = ssds == null ? null : ssds.trim();\n }",
"public void setCurrencyCd(String value) {\n setAttributeInternal(CURRENCYCD, value);\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[11], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[11] = true;\n return this;\n }",
"public void setSccj(String sccj) {\n this.sccj = sccj == null ? null : sccj.trim();\n }",
"public void setIsCxjd(String isCxjd) {\r\n\t\tthis.isCxjd = isCxjd;\r\n\t}",
"public void setDPISSN(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPISSN)));\n\t\tthis.m_sDPISSN=value;\n\t}",
"public void setSNbrSvcDtlToDay(int sNbrSvcDtlToDay)\r\n {\r\n this._sNbrSvcDtlToDay = sNbrSvcDtlToDay;\r\n this._has_sNbrSvcDtlToDay = true;\r\n }",
"public Builder setCdkey(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n cdkey_ = value;\n onChanged();\n return this;\n }",
"public void setSclj(String sclj) {\n this.sclj = sclj == null ? null : sclj.trim();\n }",
"public void setSsdsmc(String ssdsmc) {\n this.ssdsmc = ssdsmc == null ? null : ssdsmc.trim();\n }",
"public void setCDSMODULES(java.lang.String CDSMODULES) {\n this.CDSMODULES = CDSMODULES;\n }",
"public void setCorgPatno(java.lang.String corgPatno) {\n this.corgPatno = corgPatno;\n }",
"public void setStCodeSpC(String stCodeSpC) {\n this.stCodeSpC = stCodeSpC;\n }",
"public void setClId(String clId) {\r\n\t\tthis.clId = clId;\r\n\t}",
"public void setDSCRLONGF(java.lang.String DSCRLONGF) {\n this.DSCRLONGF = DSCRLONGF;\n }",
"public java.lang.Integer getCDS() {\n return CDS;\n }",
"public void set(int s, long value) {\n\t\t\tif (sign * s < 0) {\n\t\t\t\tdc.setStart(value);\n\t\t\t} else {\n\t\t\t\tdc.setEnd(value);\n\t\t\t}\n\t\t}",
"public void setDSCRLONGD(java.lang.String DSCRLONGD) {\n this.DSCRLONGD = DSCRLONGD;\n }",
"public String getPstlCd()\n\t{\n\t\treturn mPstlCd;\n\t}",
"public void setCpf(String cpf) {\r\n\t\tthis.cpf = cpf;\r\n\t}",
"public static void setClID(String clID) {\n CLTRID.clID = clID;\n val = 0;\n }",
"public void setFileStrc(edu.umich.icpsr.ddi.FileStrcType fileStrc)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileStrcType target = null;\n target = (edu.umich.icpsr.ddi.FileStrcType)get_store().find_element_user(FILESTRC$4, 0);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileStrcType)get_store().add_element_user(FILESTRC$4);\n }\n target.set(fileStrc);\n }\n }",
"public void setCpscCase(int cpscCase) { this.cpscCase = cpscCase; }",
"public void setcLsh(String cLsh) {\n this.cLsh = cLsh == null ? null : cLsh.trim();\n }",
"public void setcLsh(String cLsh) {\n this.cLsh = cLsh == null ? null : cLsh.trim();\n }",
"public void setcLsh(String cLsh) {\n this.cLsh = cLsh == null ? null : cLsh.trim();\n }",
"public void setJurisdictionCd(String jurisdictionCd) {\n\t\t\n\t}",
"public String getCntryCd()\n\t{\n\t\treturn mCntryCd;\n\t}",
"public void setSchFileId(Integer schFileId) {\n\t\tthis.schFileId = schFileId;\n\t}",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setCNCRNCYVRSN(java.lang.Long value) {\n validate(fields()[3], value);\n this.CNCRNCY_VRSN = value;\n fieldSetFlags()[3] = true;\n return this;\n }",
"public java.lang.String getScat_cd() {\n\t\treturn scat_cd;\n\t}",
"public ImagingStudy setClinicalInformation(StringDt theValue) {\n\t\tmyClinicalInformation = theValue;\n\t\treturn this;\n\t}",
"@Override\n\tpublic br.ce.Disciplina.entity.Disciplina recuperar(Long cdId) {\n\t\treturn null;\n\t}",
"protected void setDpc(int dpc) {\n this.dpc = dpc;\n }",
"public void setC660000021(java.lang.String c660000021)\n {\n this.c660000021 = c660000021;\n }",
"public void setBranchCd(String branchCd) {\r\n this.branchCd = branchCd;\r\n }",
"public void setSDI( DbKey sdi )\n\t{\n\t\tthis.sdi = sdi;\n\t}",
"public Integer getSeriesCd() {\n\t\treturn seriesCd;\n\t}",
"public void setSipDscp(int dscp);",
"void setCit(java.lang.String cit);",
"public void setC660000022(java.lang.String c660000022)\n {\n this.c660000022 = c660000022;\n }",
"public void setStatusCd(String statusCd) {\n\t\t\n\t}",
"public void setDossierId(long dossierId);",
"public void setItemcd(String itemcd) {\r\n this.itemcd = itemcd;\r\n }",
"public void setSfyGdcz(Integer sfyGdcz) {\r\n this.sfyGdcz = sfyGdcz;\r\n }",
"public void setDscDominioUrl(String dscDominioUrl) {\n\t\tthis.dscDominioUrl = dscDominioUrl;\n\t}",
"public void setTestSetDiscrepancyReportId(String testSetDiscrepancyReportId) {\n this.testSetDiscrepancyReportId = testSetDiscrepancyReportId;\n }",
"@Override\r\n\tpublic void setCID(boolean CID) {\n\t\tthis.CID=CID;\r\n\t}",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setSRCSCHEMANM(java.lang.CharSequence value) {\n validate(fields()[14], value);\n this.SRC_SCHEMA_NM = value;\n fieldSetFlags()[14] = true;\n return this;\n }",
"public void setCzyDlaNiepelnosprawnych(boolean czyDlaNiepelnosprawnych) {\n this.czyDlaNiepelnosprawnych = czyDlaNiepelnosprawnych;\n }",
"public void setcId(Integer cId) {\n this.cId = cId;\n }",
"public StrColumn getJournalIdCSD() {\n return delegate.getColumn(\"journal_id_CSD\", DelegatingStrColumn::new);\n }",
"public void setC(CCode c) {\n \t\tthis.c = c;\n \t}",
"public void setScid(String scid) {\n this.scid = scid == null ? null : scid.trim();\n }",
"public void setDsCode(String dsCode) {\n this.dsCode = dsCode == null ? null : dsCode.trim();\n }",
"public void setZycd(String zycd) {\n this.zycd = zycd == null ? null : zycd.trim();\n }",
"public String getDomainCd() {\n return this.domainCd;\n }",
"public void setDisplay(Display dspl) {\n this.display = dspl;\n }",
"public void setC_d_i(Integer c_d_i) {\n this.c_d_i = c_d_i;\n }"
]
| [
"0.63679624",
"0.62019765",
"0.6022242",
"0.5983753",
"0.5954528",
"0.58961",
"0.5763031",
"0.56344575",
"0.55612516",
"0.5540029",
"0.552706",
"0.5518517",
"0.54199415",
"0.53938246",
"0.5365367",
"0.5266897",
"0.5229215",
"0.5185715",
"0.51844007",
"0.5178327",
"0.5169069",
"0.5096729",
"0.5083671",
"0.50346667",
"0.5025767",
"0.49949697",
"0.49848467",
"0.49376273",
"0.48837405",
"0.4860511",
"0.48431322",
"0.48199853",
"0.47798094",
"0.47792083",
"0.47792083",
"0.47749853",
"0.4757845",
"0.47552267",
"0.47482952",
"0.47409034",
"0.47227445",
"0.47075462",
"0.47073227",
"0.47062823",
"0.4648787",
"0.46419954",
"0.46369785",
"0.46288148",
"0.46092772",
"0.4604021",
"0.4601815",
"0.4597579",
"0.45949614",
"0.45914292",
"0.4583461",
"0.45754376",
"0.45752004",
"0.45751095",
"0.45730904",
"0.4572935",
"0.45499057",
"0.45366666",
"0.45225328",
"0.4515663",
"0.45154437",
"0.45154437",
"0.45154437",
"0.4510983",
"0.45090148",
"0.45044544",
"0.4501366",
"0.44876325",
"0.44663772",
"0.4465747",
"0.4462261",
"0.446052",
"0.44572142",
"0.44479042",
"0.44467586",
"0.44452378",
"0.44270426",
"0.44249412",
"0.44215563",
"0.44118953",
"0.44040373",
"0.43992928",
"0.43902645",
"0.43893072",
"0.4386362",
"0.43840817",
"0.43775883",
"0.43766809",
"0.43765014",
"0.43742004",
"0.43701822",
"0.43538252",
"0.43523115",
"0.43491444",
"0.43396425",
"0.43375438"
]
| 0.73108137 | 0 |
Gets the corgPatno value for this ForeignPatentDocumentsInfo. | public java.lang.String getCorgPatno() {
return corgPatno;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCorgPatno(java.lang.String corgPatno) {\n this.corgPatno = corgPatno;\n }",
"public int getPatron_num()\n\t{\n\t\treturn cust_num;\n\t}",
"public double getPatN() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n return jcasType.ll_cas.ll_getDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN);}",
"public Integer getPatentNum() {\r\n return patentNum;\r\n }",
"public String getp_recpt_no() {\n return (String)getNamedWhereClauseParam(\"p_recpt_no\");\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent getPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId getPatentSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public String getPatientDocEmail() {\n\t\treturn this.patientDoctorEmail;\n\t}",
"public String getRfrtDocNo() {\r\n return (String) getAttributeInternal(RFRTDOCNO);\r\n }",
"public java.lang.String getPatTpcd() {\n return patTpcd;\n }",
"public String getOrgNo() {\r\n return orgNo;\r\n }",
"public int getCPTLNO() {\n return cptlno;\n }",
"public String getp_org_id() {\n return (String)getNamedWhereClauseParam(\"p_org_id\");\n }",
"public java.lang.String getContactNo() {\r\n return contactNo;\r\n }",
"public java.lang.String getDoc_No() {\r\n return doc_No;\r\n }",
"public int getPersonOrgID() {\n return personOrgID;\n }",
"public String getDcpoNo() {\n return (String)getAttributeInternal(DCPONO);\n }",
"public java.lang.String getLOCNO()\n {\n \n return __LOCNO;\n }",
"public String getDocNo() {\r\n return docNo;\r\n }",
"public long getCpf() {\n return this.CPF;\n }",
"public java.lang.CharSequence getKdOrg() {\n return kd_org;\n }",
"public StringWithCustomFacts getRecFileNumber() {\n return recFileNumber;\n }",
"public java.lang.CharSequence getKdOrg() {\n return kd_org;\n }",
"public int getPRDNO() {\n return PRDNO;\n }",
"public String getCfdaNumber() {\n return cfdaNumber;\n }",
"public String getJdOrg() {\r\n\t\treturn jdOrg;\r\n\t}",
"public Number getDocId() {\n return (Number)getAttributeInternal(DOCID);\n }",
"public Number getDocId() {\n return (Number)getAttributeInternal(DOCID);\n }",
"public String getOrgCd() {\r\n return orgCd;\r\n }",
"public String getCpf() {\n return cpf;\n }",
"public java.lang.String getPatDt() {\n return patDt;\n }",
"public String getCnpjPossuidor() {\n return cnpjPossuidor;\n }",
"public int getPRDNO() {\n return prdno;\n }",
"public java.lang.String getDocdbLiteratureNumber() {\n return docdbLiteratureNumber;\n }",
"public java.lang.String getDsCPF() {\n return dsCPF;\n }",
"public java.lang.String getCertiNo() {\n return certiNo;\n }",
"public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }",
"public String getCnpj() {\n return cnpj;\n }",
"public String getPersonNum() {\r\n\t\treturn personNum;\r\n\t}",
"public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }",
"public String getCPF() {\n return this.CPF;\n }",
"public String getCfNo() {\n\t\treturn cfNo;\n\t}",
"public PersonalNumber getPersonalNum() {\n\t\treturn personalNumber;\n\t}",
"public String getDocumentNo() {\n return documentNo;\n }",
"public String getPrefContactId() {\n return getContact().getUid();\n }",
"public long getCedulaPersonaRecido() {\r\n\t\treturn cedulaPersonaRecive;\r\n\t}",
"public String getAgcProCertiNum() {\n\t\treturn agcProCertiNum;\n\t}",
"Integer getFntLID();",
"public java.lang.Integer getPRTNO() {\n return PRTNO;\n }",
"public BigDecimal getREF_NO() {\r\n return REF_NO;\r\n }",
"public String getDireccionPersonaRecive() {\r\n\t\treturn direccionPersonaRecive;\r\n\t}",
"public String getCorpConsitutionDoc() {\n return corpConsitutionDoc;\n }",
"public String getProjContactPhone() {\n return projContactPhone;\n }",
"public String getCpnID() {\n\t\treturn this.CpnID;\n\t}",
"public String getDcrp() {\n\t\treturn dcrp;\n\t}",
"@Override\r\n\tpublic String getParty_no() {\n\t\treturn super.getParty_no();\r\n\t}",
"public java.lang.String getPstnphone() {\n\treturn pstnphone;\n}",
"public String getPaternalID();",
"public long getcNum() {\n return cNum;\n }",
"public JAXBElement<Long> getDirPartyRecId() {\r\n return getCustomer().getDirParty().get(0).getRecId();\r\n }",
"public JAXBElement<Long> getDirPartyPostalAddressViewRecId() {\r\n return getCustomer().getDirParty().get(0).getDirPartyPostalAddressView().get(0).getRecId();\r\n }",
"public Number getDssNotifIdFk() {\r\n return (Number) getAttributeInternal(DSSNOTIFIDFK);\r\n }",
"public java.lang.String getRefnum() {\n return refnum;\n }",
"public String getSRefNo() {\n return sRefNo;\n }",
"public FSArray getContactRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec)));}",
"public java.lang.String getStudent_contactRelationship() {\n\t\treturn _primarySchoolStudent.getStudent_contactRelationship();\n\t}",
"public String getContinuationFinChrtOfAcctCd() {\n return continuationFinChrtOfAcctCd;\n }",
"public java.lang.String getPaymentRefNo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYMENTREFNO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public int getFrcationId() {\n return frcationId;\n }",
"public java.lang.String getNrDoc() {\n return nrDoc;\n }",
"public StrColumn getPdbxDatabaseIdPatent() {\n return delegate.getColumn(\"pdbx_database_id_patent\", DelegatingStrColumn::new);\n }",
"public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }",
"public String getPatientCode() {\r\n\t\treturn patientCode;\r\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }",
"public Number getGisLocationIdFk() {\r\n return (Number) getAttributeInternal(GISLOCATIONIDFK);\r\n }",
"public String getPhnLoclNbr()\n\t{\n\t\treturn mPhnLoclNbr;\n\t}",
"public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }",
"public java.lang.String getDocdbContryCode() {\n return docdbContryCode;\n }",
"public long getOrgId() {\r\n return orgId;\r\n }",
"public String getREF_TASK_CD() {\n return REF_TASK_CD;\n }",
"public Long getPdid() {\n return pdid;\n }",
"public Integer getPdfId() {\r\n return pdfId;\r\n }",
"public int getC_DocType_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_DocType_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public IdentifierDt getAccessionNo() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}",
"public int getDocpositioncode() {\n\treturn docpositioncode;\n}",
"public StringWithCustomFacts getRecIdNumber() {\n return recIdNumber;\n }",
"public int getCustomerref() {\n\t\treturn custref;\n\t}",
"public long getIdentificationDocumentID(){\n\t\treturn identificationDocumentID;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getContact() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CONTACT_PROP.get());\n }",
"public int getCLNO() {\n return clno;\n }",
"@Override // Métodos que fazem a anulação\n\tpublic String getCPF() {\n\t\treturn null;\n\t}",
"public Short getnNumdep() {\n return nNumdep;\n }",
"public Integer getOrgCode() {\n\t\treturn orgCode;\n\t}",
"public int getCCN(){\n\t\treturn ccn;\n\t}",
"public int getFECHAOPRCN() {\n return fechaoprcn;\n }",
"public java.lang.String getStudent_contactPhoneNumber() {\n\t\treturn _primarySchoolStudent.getStudent_contactPhoneNumber();\n\t}",
"public int getAD_Tree_Org_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Org_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public final String getRefPK() {\n\t\tString str = getRequest().getParameter(\"RefPK\");\n\t\treturn str;\n\t}",
"public String getOrgCode() {\n return orgCode;\n }",
"public String getOrgCode() {\n return orgCode;\n }"
]
| [
"0.6715053",
"0.60719806",
"0.6061763",
"0.58910686",
"0.5776796",
"0.5724395",
"0.5715282",
"0.5646207",
"0.5565844",
"0.55559033",
"0.55446523",
"0.5404154",
"0.53748065",
"0.53436977",
"0.5333202",
"0.53293943",
"0.5268547",
"0.52268624",
"0.5218624",
"0.51890606",
"0.51832646",
"0.51796913",
"0.5179603",
"0.517218",
"0.51581424",
"0.51419985",
"0.513706",
"0.513706",
"0.51296455",
"0.5122263",
"0.51220065",
"0.5121989",
"0.5115728",
"0.5115626",
"0.5105693",
"0.5089951",
"0.50717473",
"0.5064749",
"0.5054072",
"0.5044594",
"0.50348467",
"0.5033287",
"0.5029912",
"0.49847016",
"0.49707034",
"0.49553433",
"0.49476856",
"0.4947168",
"0.49462447",
"0.4924074",
"0.49209464",
"0.49153438",
"0.49150681",
"0.49068582",
"0.49055487",
"0.48911026",
"0.48889893",
"0.48839808",
"0.48823407",
"0.4880419",
"0.4877981",
"0.48751795",
"0.48737797",
"0.48537186",
"0.4844448",
"0.48442745",
"0.4827953",
"0.4810396",
"0.48093307",
"0.48028046",
"0.47963706",
"0.47958106",
"0.4794563",
"0.47895333",
"0.4789193",
"0.4784108",
"0.47776115",
"0.47729677",
"0.4765596",
"0.4759112",
"0.4750899",
"0.47495243",
"0.47492462",
"0.47456256",
"0.47359294",
"0.47309563",
"0.47269163",
"0.4722774",
"0.4719924",
"0.47100303",
"0.47043544",
"0.4702112",
"0.47017643",
"0.46922737",
"0.46912804",
"0.46886343",
"0.46882468",
"0.46870923",
"0.4685773",
"0.4685773"
]
| 0.80171114 | 0 |
Sets the corgPatno value for this ForeignPatentDocumentsInfo. | public void setCorgPatno(java.lang.String corgPatno) {
this.corgPatno = corgPatno;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getCorgPatno() {\n return corgPatno;\n }",
"public void setPatN(double v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n jcasType.ll_cas.ll_setDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN, v);}",
"public void setPatentNum(Integer patentNum) {\r\n this.patentNum = patentNum;\r\n }",
"public void setPatent(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent patent)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().add_element_user(PATENT$16);\r\n }\r\n target.set(patent);\r\n }\r\n }",
"public void setRfrtDocNo(String value) {\r\n setAttributeInternal(RFRTDOCNO, value);\r\n }",
"public void setp_recpt_no(String value) {\n setNamedWhereClauseParam(\"p_recpt_no\", value);\n }",
"public void setPersonOrgID(int value) {\n this.personOrgID = value;\n }",
"public void setKdOrg(java.lang.CharSequence value) {\n this.kd_org = value;\n }",
"public void setOrgNo(String orgNo) {\r\n this.orgNo = orgNo;\r\n }",
"public void setLOCNO(java.lang.String value)\n {\n if ((__LOCNO == null) != (value == null) || (value != null && ! value.equals(__LOCNO)))\n {\n _isDirty = true;\n }\n __LOCNO = value;\n }",
"public Value.Builder setKdOrg(java.lang.CharSequence value) {\n validate(fields()[12], value);\n this.kd_org = value;\n fieldSetFlags()[12] = true;\n return this;\n }",
"public void setDoc_No(java.lang.String doc_No) {\r\n this.doc_No = doc_No;\r\n }",
"public void setDocNo(String docNo) {\r\n this.docNo = docNo == null ? null : docNo.trim();\r\n }",
"public void setPatTpcd(java.lang.String patTpcd) {\n this.patTpcd = patTpcd;\n }",
"public void setPatronAutorizacion(String patronAutorizacion)\r\n/* 219: */ {\r\n/* 220:369 */ this.patronAutorizacion = patronAutorizacion;\r\n/* 221: */ }",
"public void setPstnphone(java.lang.String newPstnphone) {\n\tpstnphone = newPstnphone;\n}",
"public void setR_PnRef(String R_PnRef) {\n super.setR_PnRef(R_PnRef);\n if (R_PnRef != null) {\n setDocumentNo(R_PnRef);\n }\n }",
"public void setNrDoc(java.lang.String nrDoc) {\n this.nrDoc = nrDoc;\n }",
"public void setPatentSeqId(gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId patentSeqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().add_element_user(PATENTSEQID$0);\r\n }\r\n target.set(patentSeqId);\r\n }\r\n }",
"public void setnNumdep(Short nNumdep) {\n this.nNumdep = nNumdep;\n }",
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public int getPatron_num()\n\t{\n\t\treturn cust_num;\n\t}",
"public void setFamilyRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)\n jcasType.jcas.throwFeatMissing(\"familyRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setPatDt(java.lang.String patDt) {\n this.patDt = patDt;\n }",
"public void setContactRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)\n jcasType.jcas.throwFeatMissing(\"contactRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public double getPatN() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n return jcasType.ll_cas.ll_getDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN);}",
"public Integer getPatentNum() {\r\n return patentNum;\r\n }",
"public void setNoTelp(final String noTelp) {\r\n\t\tthis.noTelp = noTelp;\r\n\t}",
"public Builder clearPatStatusCode() {\n bitField0_ = (bitField0_ & ~0x00000004);\n patStatusCode_ = getDefaultInstance().getPatStatusCode();\n onChanged();\n return this;\n }",
"public void setp_org_id(String value) {\n setNamedWhereClauseParam(\"p_org_id\", value);\n }",
"public String getOrgNo() {\r\n return orgNo;\r\n }",
"public void setPRDNO(int PRDNO) {\n this.PRDNO = PRDNO;\n }",
"public Builder clearPatStatusCode() {\n bitField0_ = (bitField0_ & ~0x00000008);\n patStatusCode_ = getDefaultInstance().getPatStatusCode();\n onChanged();\n return this;\n }",
"public void setfaxNum(String faxNum) {\n\t\t_faxNum = faxNum;\n\t}",
"public void setApellidoPaterno(String apellidoPaterno);",
"public void setFaxNo(String faxNo) {\n this.faxNo = faxNo;\n }",
"public void setDocument(CorrelatorDocument doc) {\n\t\tm_document = doc;\n\t}",
"public void setCnpj(String cnpj) {\n String oldCnpj = this.cnpj;\n this.cnpj = cnpj;\n propertyChangeSupport.firePropertyChange(PROP_CNPJ, oldCnpj, cnpj);\n }",
"public void setRegno(String regno)\n {\n if(checker.acceptRegno(regno))\n this.regno = regno;\n else\n this.regno = \"\";\n }",
"public void setPrf(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf prf)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf)get_store().find_element_user(PRF$26, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf)get_store().add_element_user(PRF$26);\r\n }\r\n target.set(prf);\r\n }\r\n }",
"public void setprop_no(String value) {\n setNamedWhereClauseParam(\"prop_no\", value);\n }",
"public void setCpf(String cpf) {\r\n\t\tthis.cpf = cpf;\r\n\t}",
"public void setFltrPrd(String fltrPrd) {\r\n this.fltrPrd = fltrPrd;\r\n }",
"public Builder setPatStatusCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n patStatusCode_ = value;\n onChanged();\n return this;\n }",
"public void setContactPerson(String newValue) {\n String oldValue = _contactPerson;\n if (!oldValue.equals(newValue)) {\n _contactPerson = newValue;\n firePropertyChange(CONTACT_PERSON_PROP, oldValue, newValue);\n }\n }",
"public void setOrgNm(String orgNm, boolean partialSearch) \n\t\tthrows CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_ORG_NM, orgNm, \n\t\t\tMIN_PARM_LEN_ORG_NM, EXC_CD_ORG_NM);\n\n\t\tmOrgNm = orgNm;\n\n\t\tif(partialSearch)\n\t\t{\n\t\t\tmOrgNm = createLikeSQLValue(mOrgNm);\n\t\t}\n\t}",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public Builder setPatStatusCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n patStatusCode_ = value;\n onChanged();\n return this;\n }",
"public void setDcpoNo(String value) {\n setAttributeInternal(DCPONO, value);\n }",
"public void setDocId(Number value) {\n setAttributeInternal(DOCID, value);\n }",
"public void setDocId(Number value) {\n setAttributeInternal(DOCID, value);\n }",
"public void setOrgCustomer(java.lang.String newOrgCustomer) {\n\torgCustomer = newOrgCustomer;\n}",
"@Override\n\tpublic void setDeptno(Integer deptno) {\n\t\tsuper.setDeptno(deptno);\n\t}",
"public void setPRDNO(int value) {\n this.prdno = value;\n }",
"public void setDPWeiterePersonen(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPWeiterePersonen)));\n\t\tthis.m_sDPWeiterePersonen=value;\n\t}",
"public void setDocument(int docid) {\n leafLookup.setDocument(docid);\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setDEALPNTFEATLNCMNTTXT(java.lang.CharSequence value) {\n validate(fields()[9], value);\n this.DEAL_PNT_FEAT_LN_CMNT_TXT = value;\n fieldSetFlags()[9] = true;\n return this;\n }",
"public void setnNumdepdest(Short nNumdepdest) {\n this.nNumdepdest = nNumdepdest;\n }",
"@Override\n public void setRfc(java.lang.String rfc) {\n _entityCustomer.setRfc(rfc);\n }",
"public Builder clearPatStatus() {\n bitField0_ = (bitField0_ & ~0x00000002);\n patStatus_ = getDefaultInstance().getPatStatus();\n onChanged();\n return this;\n }",
"public void setCPTLNO(int value) {\n this.cptlno = value;\n }",
"public void setJdOrg(String jdOrg) {\r\n\t\tthis.jdOrg = jdOrg;\r\n\t}",
"public void setCod_perfil(java.lang.String newCod_perfil) {\n\t\tif (instanceExtension.needValuesOnMarkDirty())\n\t\t\tinstanceExtension.markDirty(4,getCod_perfil(),newCod_perfil);\n\t\telse\n\t\t\tinstanceExtension.markDirty(4);\n\t\tdataCacheEntry.setCod_perfil(newCod_perfil);\n\t}",
"private void setDocumentNo() {\n //\tCash Transfer\n if (\"X\".equals(getTenderType())) {\n return;\n }\n //\tCurrent Document No\n String documentNo = getDocumentNo();\n //\tExisting reversal\n if (documentNo != null\n && documentNo.indexOf(REVERSE_INDICATOR) >= 0) {\n return;\n }\n\n //\tIf external number exists - enforce it\n if (getR_PnRef() != null && getR_PnRef().length() > 0) {\n if (!getR_PnRef().equals(documentNo)) {\n setDocumentNo(getR_PnRef());\n }\n return;\n }\n\n documentNo = \"\";\n\n /* Begin e-Evolution\n //\tCredit Card\n if (TENDERTYPE_CreditCard.equals(getTenderType()))\n {\n documentNo = getCreditCardType()\n + \" \" + Obscure.obscure(getCreditCardNumber())\n + \" \" + getCreditCardExpMM()\n + \"/\" + getCreditCardExpYY();\n }\n //\tOwn Check No\n else\n // End e-Evolution */\n\n if (TENDERTYPE_Check.equals(getTenderType())\n && !isReceipt()\n && getCheckNo() != null && getCheckNo().length() > 0) {\n documentNo = getCheckNo();\n }\n //\tCustomer Check: Routing: Account #Check\n //begin e-evolution vpj-cd 11 MAy 2006\n\t\t/*else if (TENDERTYPE_Check.equals(getTenderType())\n && isReceipt())\n {\n if (getRoutingNo() != null)\n documentNo = getRoutingNo() + \": \";\n if (getAccountNo() != null)\n documentNo += getAccountNo();\n if (getCheckNo() != null)\n {\n if (documentNo.length() > 0)\n documentNo += \" \";\n documentNo += \"#\" + getCheckNo();\n }\n }\n // End e-Evolution */\n //\tSet Document No\n documentNo = documentNo.trim();\n if (documentNo.length() > 0) {\n setDocumentNo(documentNo);\n }\n }",
"public void setPaymentRefNo(java.lang.String paymentRefNo)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYMENTREFNO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYMENTREFNO$0);\n }\n target.setStringValue(paymentRefNo);\n }\n }",
"public void setFECHAOPRCN(int value) {\n this.fechaoprcn = value;\n }",
"public Builder clearPatStatus() {\n bitField0_ = (bitField0_ & ~0x00000001);\n patStatus_ = getDefaultInstance().getPatStatus();\n onChanged();\n return this;\n }",
"public void setFrstNm(String frstNm, boolean partialSearch) \n\t\tthrows CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_FRST_NM, frstNm, \n\t\t\tMIN_PARM_LEN_FRST_NM, EXC_CD_FRST_NM);\n\n\t\tmFrstNm = frstNm;\n\n\t\tif(partialSearch)\n\t\t{\n\t\t\tmFrstNm = createLikeSQLValue(mFrstNm);\n\t\t}\n\t}",
"public void setDocumentNo(String documentNo) {\n this.documentNo = documentNo == null ? null : documentNo.trim();\n }",
"public void setApellidoPaternoDefensor(String apellidoPaternoDefensor) {\n\t\tthis.apellidoPaternoDefensor = apellidoPaternoDefensor;\n\t}",
"public Builder setPatStatus(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"public void setPatientDocEmail(String email) {\n\t\tthis.patientDoctorEmail=email;\n\t}",
"public void setGrnNo (java.lang.String grnNo) {\n\t\tthis.grnNo = grnNo;\n\t}",
"public void setContactNo(java.lang.String contactNo) {\r\n this.contactNo = contactNo;\r\n }",
"public void setContact(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CONTACT_PROP.get(), value);\n }",
"void setSeqLoc(gov.nih.nlm.ncbi.www.SeqLocDocument.SeqLoc seqLoc);",
"public void setPRTNO(java.lang.Integer PRTNO) {\n this.PRTNO = PRTNO;\n }",
"public void setDEALPNTFEATLNCMNTTXT(java.lang.CharSequence value) {\n this.DEAL_PNT_FEAT_LN_CMNT_TXT = value;\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setSRCCDCOPERNM(java.lang.CharSequence value) {\n validate(fields()[11], value);\n this.SRC_CDC_OPER_NM = value;\n fieldSetFlags()[11] = true;\n return this;\n }",
"public void setlbr_CPF (String lbr_CPF);",
"public void setUpdprgid(String updprgid) {\r\n this.updprgid = updprgid;\r\n }",
"public void setCCN(int ccn0){\n\t\tccn = ccn0;\n\t}",
"public void setCfNo(String cfNo) {\n\t\tthis.cfNo = cfNo;\n\t}",
"public void setDssNotifIdFk(Number value) {\r\n setAttributeInternal(DSSNOTIFIDFK, value);\r\n }"
]
| [
"0.62114114",
"0.55518717",
"0.55194944",
"0.5382347",
"0.5064555",
"0.5064437",
"0.5026656",
"0.49704927",
"0.49567905",
"0.48730063",
"0.48477772",
"0.47687557",
"0.47550777",
"0.46991798",
"0.46954367",
"0.46881738",
"0.4684734",
"0.46475217",
"0.46324578",
"0.46150413",
"0.46084636",
"0.46084636",
"0.46060848",
"0.4591299",
"0.45537546",
"0.45520574",
"0.4525686",
"0.4525686",
"0.4525686",
"0.4522097",
"0.45145726",
"0.44863135",
"0.44764727",
"0.4464769",
"0.44640884",
"0.44563767",
"0.44485712",
"0.443085",
"0.44210333",
"0.44155857",
"0.44151145",
"0.43859297",
"0.43842626",
"0.43562007",
"0.43395975",
"0.43234357",
"0.431988",
"0.4311881",
"0.4311441",
"0.43051872",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4297766",
"0.4293119",
"0.4286233",
"0.42720824",
"0.42720824",
"0.42708138",
"0.4250386",
"0.42481223",
"0.42465866",
"0.4243932",
"0.4241969",
"0.4207759",
"0.41978067",
"0.4197088",
"0.41944563",
"0.41941917",
"0.418967",
"0.41789058",
"0.41687497",
"0.41638651",
"0.4159413",
"0.4158006",
"0.4154715",
"0.4153781",
"0.41526824",
"0.41513327",
"0.4147372",
"0.41397858",
"0.41375917",
"0.41307843",
"0.4126969",
"0.412485",
"0.41239452",
"0.41231856",
"0.41227302",
"0.4122478",
"0.41191196",
"0.41186965"
]
| 0.7690866 | 0 |
Gets the countryCode value for this ForeignPatentDocumentsInfo. | public java.lang.String getCountryCode() {
return countryCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String countryCode() {\n return countryCode;\n }",
"public int getCountryCode() {\r\n\t\treturn countryCode;\r\n\t}",
"@Nonnull public CountryCode getCountry() { return country; }",
"public int getCountryCallingCode() {\n return countryCallingCode;\n }",
"public String getCountryCode() {\n return countryCode_;\n }",
"public String getCountryCode() {\n\t\treturn countryCode;\n\t}",
"public com.google.protobuf.ByteString\n getCountryCodeBytes() {\n return instance.getCountryCodeBytes();\n }",
"public java.lang.String getCountryId() {\r\n return countryId;\r\n }",
"public String getcountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"public final String getCountry() {\n\t\treturn country;\n\t}",
"public long getCountryId() {\n return countryId;\n }",
"@Override\n\tpublic long getCountryId() {\n\t\treturn _candidate.getCountryId();\n\t}",
"public com.google.protobuf.ByteString\n getCountryCodeBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(countryCode_);\n }",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public Long getCountryId() {\n return this.countryId;\n }",
"public String getCountryId() {\r\n return countryId;\r\n }",
"public Integer getCountryId() {\n return countryId;\n }",
"public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCountry_id() {\n return country_id;\n }",
"public java.lang.String getCountry() {\n java.lang.Object ref = country_;\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 country_ = s;\n }\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\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 country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCountryCode()\r\n\t{\r\n\t\treturn this.countryCode;\r\n\t}",
"public String getCountryCode() {\n return instance.getCountryCode();\n }",
"public java.lang.String getCountry() {\n return country;\n }",
"public Integer getCountry() {\n return country;\n }",
"public Integer getCountry() {\n return country;\n }",
"public java.lang.String getCountry() {\n java.lang.Object ref = country_;\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 country_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getCountry () {\n\t\treturn country;\n\t}",
"@ApiModelProperty(example = \"null\", value = \"Country resource corresponding to the dial-in number\")\n public DialInNumbersCountryInfo getCountry() {\n return country;\n }",
"public CountryCode getCountry() {\n return country;\n }",
"public String getCountryID() {\n return countryID;\n }",
"public java.lang.String getCountry() {\r\n return country;\r\n }",
"public CountryEntry getCountry(){\n\t\treturn (CountryEntry)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_COUNTRY_LINK);\n\t}",
"public String getCountry() {\n return country;\n }",
"com.google.protobuf.ByteString\n getCountryCodeBytes();",
"com.google.protobuf.ByteString\n getCountryBytes();",
"public CountryType getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getContactCountry() {\n return contactCountry;\n }",
"public Integer getOriginCountryId() {\r\n\t\treturn originCountryId;\r\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').\")\n\n public String getCountryCode() {\n return countryCode;\n }",
"public int getId() {\n\t\treturn (m_country_id);\n\t}",
"public java.lang.String getCountry() {\n return Country;\n }",
"public java.lang.CharSequence getCountry() {\n return country;\n }",
"public String getCountry() {\r\n return country;\r\n }",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"public String getCountry() {\n return (String)getAttributeInternal(COUNTRY);\n }",
"@ApiModelProperty(value = \"Two-letter country code of IP address\")\n public String getCountryCode() {\n return countryCode;\n }",
"public java.lang.CharSequence getCountry() {\n return country;\n }",
"public String getCountryCode() {\n return (String)getAttributeInternal(COUNTRYCODE);\n }",
"public String getCountryCode() {\n return (String)getAttributeInternal(COUNTRYCODE);\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry(){\n\t\treturn country;\n\t}",
"public String getCountry(){\n\t\treturn country;\n\t}",
"public int getCountryId() {\n return countryId;\n }",
"com.google.protobuf.ByteString\n getCountryCodeBytes();",
"com.google.protobuf.ByteString\n getCountryCodeBytes();",
"public String getCountryAccessCode() {\n return countryAccessCode;\n }",
"public IsoCountry getCountry() {\n return country;\n }",
"public String getCountryCode() {\r\n return (String) getAttributeInternal(COUNTRYCODE);\r\n }",
"com.google.protobuf.ByteString\n getCountryBytes();",
"public String getLanguagesCountryCode() {\n return mLanguagesCountryCode;\n }",
"public String getCountry() {\n return country;\n }",
"public String getCountry() {\r\n return this.country;\r\n }",
"public String getCountry() {\n return Country;\n }",
"public String getCountryCode() {\n return normalizedBic.substring(COUNTRY_CODE_INDEX, COUNTRY_CODE_INDEX + COUNTRY_CODE_LENGTH);\n }",
"public java.lang.String getOriginatingCountry() {\r\n return originatingCountry;\r\n }",
"public String getCountryCode() {\n // Always extract from phone number object instead of using mCurrentRegionCode just in case\n return mCurrentPhoneNumber == null ? null : PhoneNumberUtil.getInstance().getRegionCodeForCountryCode(mCurrentPhoneNumber.getCountryCode());\n }",
"public String getCountryFieldName() {\n return getStringProperty(COUNTRY_FIELD_NAME_KEY);\n }",
"public String getCountryLink(){\n\t\treturn (String)this.entryMap.get(GeoKeys.LOCAL_GEO_COUNTRY_LINK);\n\t}",
"public String getAuthyCountryCode () {\n\t\treturn this.authyCountryCode;\n\t}",
"public String getCountryName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_COUNTRY_NAME);\n\t}",
"java.lang.String getCountryCode();",
"java.lang.String getCountryCode();",
"public StrColumn getCountry() {\n return delegate.getColumn(\"country\", DelegatingStrColumn::new);\n }",
"java.lang.String getCountry();",
"java.lang.String getCountry();",
"public String getCountryName() {\n return countryName;\n }",
"public String getCountryName() {\n return countryName;\n }",
"public String getCountryName() {\n return countryName;\n }",
"public String getCountry()\n {\n return country;\n }",
"public String getCountryIso() {\n return mCountryIso;\n }",
"com.google.protobuf.ByteString\n getCountryNameBytes();",
"public String getCompanyCountry() {\n return companyCountry;\n }",
"public String getCountry() {\n\t\treturn addressFormat;\n\t}",
"String getCountryCode();",
"public static String getCountrySetting() {\r\n\t\treturn countrySetting;\r\n\t}",
"public java.lang.String getCountryName() {\n java.lang.Object ref = countryName_;\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 countryName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getCountryFeature() {\n\n return (String) this.getAdditionalTagValue(\n GeographicErrorTest.MAPPED_FEATURE_TAG_ID, BGConcepts.COUNTRY);\n }",
"public java.lang.String getCountryName() {\n java.lang.Object ref = countryName_;\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 countryName_ = s;\n return s;\n }\n }"
]
| [
"0.6989021",
"0.6942704",
"0.69130826",
"0.68158054",
"0.68147904",
"0.6756273",
"0.67328465",
"0.6732836",
"0.6715479",
"0.6712454",
"0.6712454",
"0.6641006",
"0.66312146",
"0.65908694",
"0.6574836",
"0.6564465",
"0.6564465",
"0.6564465",
"0.65640455",
"0.65268224",
"0.65163946",
"0.6510344",
"0.64944965",
"0.6488295",
"0.6472313",
"0.64658725",
"0.6444992",
"0.64263797",
"0.64238894",
"0.64238894",
"0.6419471",
"0.64174414",
"0.64091444",
"0.63927186",
"0.63732785",
"0.6361132",
"0.63507456",
"0.63494563",
"0.6335989",
"0.63357675",
"0.6319295",
"0.6315211",
"0.63145196",
"0.63101137",
"0.62869287",
"0.62696797",
"0.6256724",
"0.62541693",
"0.62504923",
"0.62504923",
"0.62504923",
"0.62093216",
"0.6196011",
"0.6190406",
"0.6190406",
"0.61900145",
"0.61900145",
"0.61900145",
"0.61900145",
"0.61900145",
"0.61900145",
"0.61900145",
"0.61891437",
"0.61891437",
"0.6170084",
"0.613976",
"0.613976",
"0.6129867",
"0.6122397",
"0.6112083",
"0.611145",
"0.609012",
"0.60880303",
"0.6075029",
"0.6072189",
"0.6023865",
"0.6022373",
"0.60018146",
"0.59595484",
"0.5956271",
"0.5949725",
"0.5946077",
"0.5942112",
"0.5942112",
"0.5934652",
"0.5933942",
"0.5933942",
"0.59324205",
"0.59324205",
"0.59324205",
"0.58634305",
"0.5828008",
"0.5794337",
"0.5794137",
"0.57940036",
"0.57794785",
"0.5742952",
"0.57249475",
"0.57231104",
"0.5715761"
]
| 0.67657197 | 5 |
Sets the countryCode value for this ForeignPatentDocumentsInfo. | public void setCountryCode(java.lang.String countryCode) {
this.countryCode = countryCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setcountryCode(String countryCode) {\n this.countryCode = countryCode;\n }",
"public void setCountryCode(String countryCode)\r\n\t{\r\n\t\tthis.countryCode = countryCode;\r\n\t}",
"public void setCountryCode(String countryCode) {\r\n\t\t\tthis.countryCode = countryCode;\r\n\t\t}",
"public void setCountryCode(String countryCode) {\n this.countryCode = countryCode;\n }",
"public void setCountryCode(@Nullable String countryCode) {\n this.countryCode = countryCode;\n api.setCountryCode(this.countryCode);\n }",
"public void setCOUNTRY_CODE(java.lang.String COUNTRY_CODE) {\r\n\t\tthis._COUNTRY_CODE = COUNTRY_CODE;\r\n\t}",
"public void setCountryCallingCode(int countryCallingCode) {\n this.countryCallingCode = countryCallingCode;\n }",
"public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setCountry(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.country = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}",
"public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}",
"public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}",
"public void setCountry(Integer country) {\n this.country = country;\n }",
"public void setCountry(Integer country) {\n this.country = country;\n }",
"public final void setCountry(final String ccountry) {\n\t\tthis.country = ccountry;\n\t}",
"public void setCountryCode(String value) {\n setAttributeInternal(COUNTRYCODE, value);\n }",
"public void setCountryCode(String value) {\n setAttributeInternal(COUNTRYCODE, value);\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setAuthyCountryCode (String countrycode) {\n\t\tthis.authyCountryCode = countrycode;\n\t}",
"public void setCountry(String country) {\n\t\tthis.country = country;\n\t}",
"public void setCountryCode(String value) {\r\n setAttributeInternal(COUNTRYCODE, value);\r\n }",
"public void setCountry(String country) {\n this.country = country;\n }",
"public void setCountryCode(int value) {\r\n\t\tthis.countryCode = value;\r\n\t}",
"public void setCountry(java.lang.String country) {\r\n this.country = country;\r\n }",
"public void setCountry(Country country) {\n this.country = country;\n }",
"public void setCountry(java.lang.String country) {\n this.country = country;\n }",
"public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }",
"public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }",
"public void setCountry(String value) {\n setAttributeInternal(COUNTRY, value);\n }",
"public Builder setCountryBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n country_ = value;\n onChanged();\n return this;\n }",
"public void setCountryId(long countryId) {\n this.countryId = countryId;\n }",
"public void setCountry (java.lang.String country) {\n\t\tthis.country = country;\n\t}",
"public void setCountry(java.lang.CharSequence value) {\n this.country = value;\n }",
"public Builder setCountry(CountryCode country) {\n this.country = country;\n return this;\n }",
"public DocumentLifecycleWorkflowRequest setCountryID(String countryID) {\n\t\tthis.countryID = countryID;\n\t\treturn this;\n\t}",
"public void setCountryAccessCode(String countryAccessCode) {\n this.countryAccessCode = countryAccessCode;\n }",
"public Builder setCountry(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n country_ = value;\n onChanged();\n return this;\n }",
"public void setCountryId(String countryId) {\r\n this.countryId = countryId;\r\n }",
"public void setCountry_id(String country_id) {\n this.country_id = country_id;\n }",
"public void setCountry(String country) {\r\n this.country = country.trim();\r\n }",
"public void setContactCountry(String contactCountry) {\n this.contactCountry = contactCountry;\n }",
"public void setCountryId(int value);",
"private void setCountryCodeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n countryCode_ = value.toStringUtf8();\n }",
"public void setCountryId(java.lang.String countryId) {\r\n this.countryId = countryId;\r\n }",
"private void setCountryCode(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n countryCode_ = value;\n }",
"public void setCountry(String country) {\n this.country = country == null ? null : country.trim();\n }",
"public void setCountry(String country) {\n this.country = country == null ? null : country.trim();\n }",
"public void setCountry(java.lang.String Country) {\n this.Country = Country;\n }",
"public DocumentLifecycleWorkflowRequest setCountryName(String countryName) {\n\t\tthis.countryName = countryName;\n\t\treturn this;\n\t}",
"public void setCountryFieldName(final String value) {\n setProperty(COUNTRY_FIELD_NAME_KEY, value);\n }",
"public void setAddressCountry(String addressCountry) {\n this.addressCountry = addressCountry;\n }",
"public Builder setCountryCode(\n String value) {\n copyOnWrite();\n instance.setCountryCode(value);\n return this;\n }",
"@Nonnull public CountryCode getCountry() { return country; }",
"public Builder setCountryCodeBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setCountryCodeBytes(value);\n return this;\n }",
"@ApiModelProperty(example = \"null\", value = \"Country resource corresponding to the dial-in number\")\n public DialInNumbersCountryInfo getCountry() {\n return country;\n }",
"public void setId(int p_id) {\n\t\tm_country_id = p_id;\n\t}",
"public void setCurrentCountry(CountryFilter currentCountry) {\n\t\tthis.currentCountry = currentCountry;\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL').\")\n\n public String getCountryCode() {\n return countryCode;\n }",
"public String getcountryCode() {\n return countryCode;\n }",
"public void setSenderCountry(java.lang.String senderCountry) {\r\n this.senderCountry = senderCountry;\r\n }",
"@Override\n\tpublic void setCountryId(long countryId) {\n\t\t_candidate.setCountryId(countryId);\n\t}",
"public void updateCountry (Country country, String code, Country newCountry){\n HibernateDAO dao = new HibernateDAO();\n try {\n dao.load(country, code);\n \n if(newCountry.getCode2()!= null)\n country.setCode2(newCountry.getCode2()); \n else if(newCountry.getGovernmentform()!= null)\n country.setGovernmentform(newCountry.getGovernmentform());\n else if(newCountry.getSurfacearea()!= 0)\n country.setSurfacearea(newCountry.getSurfacearea());\n else if(newCountry.getPopulation() != 0)\n country.setPopulation(newCountry.getPopulation());\n else if(newCountry.getLifeexpectancy()!= null)\n country.setLifeexpectancy(newCountry.getLifeexpectancy());\n else if(newCountry.getHeadofstate()!= null)\n country.setHeadofstate(newCountry.getHeadofstate());\n \n \n dao.update(country);\n transaction = dao.getSession().beginTransaction();\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n dao.closeSession();\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n return countryCode;\n }",
"public void setCountryName(String value);",
"public String getCountryCode() {\n return countryCode_;\n }",
"public int getCountryCode() {\r\n\t\treturn countryCode;\r\n\t}",
"public Address country(String country) {\n this.country = country;\n return this;\n }",
"public void setCountryName(String countryName) {\n this.countryName = countryName;\n }",
"public void setCountryName(String countryName) {\n this.countryName = countryName;\n }",
"public String countryCode() {\n return countryCode;\n }",
"public String getCountry_id() {\n return country_id;\n }",
"public void setCountryCode(final String newCountryCode) {\n if (TextUtils.isEmpty(mPhoneNumberInput.getText())) {\n updateCountryCode(newCountryCode);\n } else {\n // Clear old prefix from phone before assigning new one\n String updatedPhone = mPhoneNumberInput.getText().toString();\n if (mCurrentPhonePrefix != null && updatedPhone.startsWith(mCurrentPhonePrefix)) {\n updatedPhone = updatedPhone.substring(mCurrentPhonePrefix.length());\n }\n updateCountryCode(newCountryCode);\n\n if (!TextUtils.isEmpty(updatedPhone)) {\n formatPhoneNumber(updatedPhone);\n } else if (mCountryCodeInput.getVisibility() == View.VISIBLE) {\n initPhoneWithPrefix();\n }\n }\n }",
"public CountryCode getCountry() {\n return country;\n }",
"public String getCountryId() {\r\n return countryId;\r\n }",
"@ApiModelProperty(value = \"Two-letter country code of IP address\")\n public String getCountryCode() {\n return countryCode;\n }",
"public String getCountryCode() {\n\t\treturn countryCode;\n\t}",
"public Long getCountryId() {\n return this.countryId;\n }",
"public long getCountryId() {\n return countryId;\n }",
"public Builder setCountryNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n countryName_ = value;\n onChanged();\n return this;\n }",
"public void setDestinationCountry(String value) {\r\n this.destinationCountry = value;\r\n }",
"public Builder setCountryName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n countryName_ = value;\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getCountryBytes() {\n java.lang.Object ref = country_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n country_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getCountryId() {\r\n return countryId;\r\n }",
"public Integer getCountryId() {\n return countryId;\n }",
"public void setCountry(Country v) throws TorqueException\n {\n if (v == null)\n {\n setCustCountryId( 999);\n }\n else\n {\n setCustCountryId(v.getCountryId());\n }\n aCountry = v;\n }",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public String getCountry() {\r\n\t\treturn country;\r\n\t}",
"public void setCountries(List<Country> countries)\n {\n this.countries = countries;\n\n countriesMap = countries.stream().\n filter(c -> !\"-99\".equals(c.getIsoCode())).\n collect(Collectors.toMap(Country::getIsoCode, Function.identity()));\n\n LOGGER.info(\"Stored {} countries with valid code ( != -99) \", countriesMap.size());\n\n regions = new WorldRegions(countries);\n }",
"public String getCountryID() {\n return countryID;\n }",
"public void setCurrentJobCountry(CountryFilter currentJobCountry) {\n\t\tthis.currentJobCountry = currentJobCountry;\n\t}",
"public void setReceiverCountry(java.lang.String receiverCountry) {\r\n this.receiverCountry = receiverCountry;\r\n }",
"public int getCountryCallingCode() {\n return countryCallingCode;\n }",
"public String getCountry() {\r\n return this.country;\r\n }",
"private void setCountryCode( Office office ) {\n String country = null;\n switch ( office ) {\n case BRISTOL:\n case EDINBURGH:\n case GLASGOW:\n case LONDON:\n case MANCHESTER:\n case TAUNTON:\n country = Country.UK.getLongName();\n break;\n case PERTH:\n case SYDNEY:\n country = Country.AUSTRALIA.getLongName();\n break;\n case SINGAPORE:\n country = Country.SINGAPORE.getLongName();\n break;\n }\n\n countryCode.setText( new StringBuilder()\n .append( country )\n .append( \" \" )\n .append( \"(\" )\n .append( Country.getCountryFromName( country ).getIntCode() )\n .append( \")\" )\n .toString() );\n }"
]
| [
"0.70408005",
"0.7032269",
"0.70274603",
"0.700668",
"0.6923707",
"0.68581975",
"0.6626316",
"0.632678",
"0.6317132",
"0.6317132",
"0.6317132",
"0.62617487",
"0.62617487",
"0.62612927",
"0.62494254",
"0.62494254",
"0.6249011",
"0.6249011",
"0.6249011",
"0.6249011",
"0.6249011",
"0.6249011",
"0.62412053",
"0.6233445",
"0.623258",
"0.62284696",
"0.6227667",
"0.6225069",
"0.6224587",
"0.62232935",
"0.62026453",
"0.62026453",
"0.62026453",
"0.6200756",
"0.61617076",
"0.6131943",
"0.61118454",
"0.61106765",
"0.6083977",
"0.6068854",
"0.605769",
"0.60377496",
"0.60337406",
"0.5979199",
"0.5950125",
"0.59405196",
"0.5938557",
"0.59267426",
"0.59239084",
"0.59042144",
"0.59042144",
"0.5900191",
"0.5740058",
"0.5736632",
"0.5735463",
"0.56974936",
"0.5659069",
"0.56377167",
"0.5630214",
"0.560162",
"0.55850846",
"0.55765057",
"0.5548464",
"0.5535336",
"0.5507724",
"0.55036336",
"0.5503519",
"0.5503519",
"0.55023026",
"0.5500895",
"0.54989964",
"0.5489255",
"0.546608",
"0.546608",
"0.54411906",
"0.54305303",
"0.5427372",
"0.54158956",
"0.5413655",
"0.5411961",
"0.5363886",
"0.5351156",
"0.5324629",
"0.5314717",
"0.5287954",
"0.5244092",
"0.5226161",
"0.52258414",
"0.52249914",
"0.52204156",
"0.52169746",
"0.52169746",
"0.52169746",
"0.5194343",
"0.5181197",
"0.51646286",
"0.51516837",
"0.51384133",
"0.5133607",
"0.512378"
]
| 0.703653 | 1 |
Gets the exam value for this ForeignPatentDocumentsInfo. | public java.lang.String getExam() {
return exam;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getExamId() {\r\n\t\treturn examId;\r\n\t}",
"public double getFinalExam()\n\t{\n\t\treturn this.finalExam;\n\t}",
"public double getMidtermExam()\n\t{\n\t\treturn this.midtermExam;\n\t}",
"public ArrayList<QuestionInExam> getQuestionInExam() {\r\n\t\treturn questionInExam;\r\n\t}",
"public int getExamId();",
"@Override\n\tpublic Exam getModel() {\n\t\treturn exam;\n\t}",
"public Integer getHasExamine() {\n return hasExamine;\n }",
"public String getPatientDocEmail() {\n\t\treturn this.patientDoctorEmail;\n\t}",
"public String getReassessment() {\r\n return reassessment;\r\n }",
"public Answer getAnswer(){\n\t\treturn answer; /** use relation -> DecideAnswer.java */\n\t}",
"@javax.persistence.Column(name = \"medal\", nullable = false, length = 1)\n\tpublic java.lang.String getMedal() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.MEDAL);\n\t}",
"public Integer getCoursePassScoreIncludeExam() {\n\t\treturn coursePassScoreIncludeExam;\n\t}",
"public ArrayList<Integer> getStudentAnswer() {\r\n return this.studentAnswer;\r\n }",
"public ro.ghasachi.bt.persistence.tables.pojos.Exam fetchOneById(Integer value) {\n\t\treturn fetchOne(Exam.EXAM.ID, value);\n\t}",
"public Integer getAdmSexual() {\n return admSexual;\n }",
"public Long getAnswds() {\r\n return answds;\r\n }",
"public ExaminationType_type1 getExaminationType(){\n return localExaminationType;\n }",
"public Short getCoursePassRequirePassExamIncludeExam() {\n\t\treturn coursePassRequirePassExamIncludeExam;\n\t}",
"public String getQuestionNo() {\n return questionNo;\n }",
"public void setExam(java.lang.String exam) {\n this.exam = exam;\n }",
"@Override\n\tpublic java.lang.String getPaperValue() {\n\t\treturn _scienceAppPaper.getPaperValue();\n\t}",
"public double getAcademicPerformance()\n {\n return academicPerformance;\n }",
"public String getAdmRemarks() {\n return admRemarks;\n }",
"public String retA()\n\t{\n\t\treturn answers[correctAns]; \t\n\t}",
"public double getQuiz1()\n\t{\n\t\treturn this.quiz1;\n\t}",
"public String getEvidence() {\n\t\treturn evidence;\r\n\t}",
"public double getPatN() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n return jcasType.ll_cas.ll_getDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN);}",
"public String getConsultDetail() {\n return consultDetail;\n }",
"public Integer getRemarkPro() {\n return remarkPro;\n }",
"public double getExamMark(Result r) {\n\t\tfor (int i = 0; i < r.getAllGrades().size(); i ++) {\n\t\t\tGrade tempG = r.getAllGrades().get(i);\n\t\t\t// Exam\n\t\t\tif (Objects.equals(gradeType.EXAM, tempG.getType())) {\n\t\t\t\treturn tempG.getMark();\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public String getAnalysis()\n\t{\n\t\treturn m_analysis;\n\t}",
"public String getFaculty() {\n return this.faculty;\n }",
"public String getExplanation() {\n\n\t\treturn explanation;\n\t}",
"public String getEvidence() {\n\t\treturn evidence;\n\t}",
"public int getExamGradeId() {\n return examGradeId;\n }",
"public Number getValue() {\n return ((ADocument) getDocument()).getValue();\n }",
"public java.lang.String getStudent_note() {\n\t\treturn _primarySchoolStudent.getStudent_note();\n\t}",
"public double getAnswer() {\n return answer;\n }",
"public java.lang.String getApellido() {\n return apellido;\n }",
"public String getSelectedAnswer() {\n\t\tList<Integer> selected = getSelectedIndexes();\n\t\treturn this.value.get(selected.get(0));\n\t}",
"public Integer getSex() {\n return sex;\n }",
"public Integer getSex() {\n return sex;\n }",
"public Integer getSex() {\n return sex;\n }",
"public Integer getSex() {\n return sex;\n }",
"public Integer getSex() {\n return sex;\n }",
"public Integer getSex() {\r\n return sex;\r\n }",
"public String getCalDetails() {\n return calDetails;\n }",
"public String getAnswer() {\n return answer;\n }",
"public java.lang.String getSex() {\r\n return localSex;\r\n }",
"public java.lang.String getStudent_sex() {\n\t\treturn _primarySchoolStudent.getStudent_sex();\n\t}",
"public String getQuestion() {\n return mQuestion;\n }",
"public String getCorrect() {\n\t\treturn new String(correctAnswer);\n\t}",
"public Assessment getAssesment() {\n return assessment;\n }",
"public int getCorrectAnsNum() {\n\t\treturn CorrectAnsNum;\n\t}",
"public Integer getAnswerid() {\n return answerid;\n }",
"public String getAnswercontent() {\n return answercontent;\n }",
"public Short getSex() {\n return sex;\n }",
"public double getNoteEquilibre() {\n\t\treturn noteEquilibre;\n\t}",
"public String getAdmissionFees() {\n return mAdmissionFees;\n }",
"public String getDetail() {\r\n return detail;\r\n }",
"public String getDetail() {\r\n return detail;\r\n }",
"public String getQuestion() {\n\t\treturn question;\n\t}",
"public ProxyList<Exam> getExams() {\n return exams;\n }",
"public qf m38588a() {\n return this.f31332a;\n }",
"public double getAnomalyScore() {\n\t\treturn anomalyScore;\n\t}",
"public Integer getExpertId() {\n return expertId;\n }",
"public String getPatientSex(){\n\t\treturn patientSex;\n\t}",
"public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }",
"public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }",
"public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }",
"public String getRemarks() {\n return (String)getAttributeInternal(REMARKS);\n }",
"public Object getCollectionsAssessmentInstanceAnalysisRecord() {\n return collectionsAssessmentInstanceAnalysisRecord;\n }",
"public String getFetalposition() {\n return fetalposition;\n }",
"public String getAttendNum() {\n return attendNum;\n }",
"public String getApellido() {\n\t\treturn apellido;\n\t}",
"public String getConsultationDetail() {\n String consultationDetail = \"\";\n if (!symptoms.isEmpty()) {\n consultationDetail += extractField(\"Symptoms\", symptoms);\n }\n if (!diagnoses.isEmpty()) {\n consultationDetail += extractField(\"Diagnoses\", diagnoses);\n }\n if (!prescriptions.isEmpty()) {\n consultationDetail += extractField(\"Prescriptions\", prescriptions);\n }\n return consultationDetail;\n }",
"public Student getApplicant() {\n\t\treturn applicant;\n\t}",
"public java.lang.String getDoc_No() {\r\n return doc_No;\r\n }",
"public int getDaf() {\r\n\t\treturn daf;\r\n\t}",
"public String getSex() {\n return sex;\n }",
"public String getSex() {\n return sex;\n }",
"public String getSex() {\n return sex;\n }",
"public String getSex() {\n return sex;\n }",
"public String getSex() {\n return sex;\n }",
"public String getSex() {\n return sex;\n }",
"public String getSex() {\n return sex;\n }",
"public String getSex() {\n return sex;\n }",
"public String getDocumentNo();",
"public String getDocumentNo();",
"public String getDocumentNo();",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public int getAnswer() {\n\t\treturn answer;\n\t}",
"public String getSex() {\r\n return sex;\r\n }",
"public Short getCoursePassRequirePassExam() {\n\t\treturn coursePassRequirePassExam;\n\t}",
"public String getQuestion() {\n return question;\n }",
"public String getQuestion() {\n return question;\n }",
"public java.util.Date getDateExamine () {\n\t\treturn dateExamine;\n\t}"
]
| [
"0.64101636",
"0.6202183",
"0.6178206",
"0.5921542",
"0.56992745",
"0.54520524",
"0.54496723",
"0.5424556",
"0.53012085",
"0.5266529",
"0.52378976",
"0.52312165",
"0.5223136",
"0.5210284",
"0.51741505",
"0.5156548",
"0.51483655",
"0.51209575",
"0.5098683",
"0.5077798",
"0.5072332",
"0.5038122",
"0.5012571",
"0.5011384",
"0.49921304",
"0.49845687",
"0.49818572",
"0.49768192",
"0.4975155",
"0.49680114",
"0.49630255",
"0.49627617",
"0.49548492",
"0.4952238",
"0.4942566",
"0.49367902",
"0.49341744",
"0.4924777",
"0.49223867",
"0.49187344",
"0.49111152",
"0.49111152",
"0.49111152",
"0.49111152",
"0.49111152",
"0.49078295",
"0.49026605",
"0.49013",
"0.48994377",
"0.48938805",
"0.48892313",
"0.48887667",
"0.48809278",
"0.48798516",
"0.48766705",
"0.48705253",
"0.48696452",
"0.48681587",
"0.48666373",
"0.48662516",
"0.48662516",
"0.4865654",
"0.48627308",
"0.485812",
"0.4852523",
"0.48504463",
"0.4843092",
"0.48396468",
"0.48396468",
"0.48396468",
"0.48396468",
"0.4833886",
"0.48331192",
"0.48322076",
"0.48245022",
"0.4822587",
"0.4821134",
"0.4811874",
"0.48106214",
"0.48088902",
"0.48088902",
"0.48088902",
"0.48088902",
"0.48088902",
"0.48088902",
"0.48088902",
"0.48088902",
"0.48063993",
"0.48063993",
"0.48063993",
"0.48055714",
"0.48055714",
"0.48055714",
"0.48055714",
"0.4803359",
"0.480208",
"0.4800712",
"0.48000857",
"0.47991827",
"0.47960636"
]
| 0.7014463 | 0 |
Sets the exam value for this ForeignPatentDocumentsInfo. | public void setExam(java.lang.String exam) {
this.exam = exam;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getExamId() {\r\n\t\treturn examId;\r\n\t}",
"@Override\n\tpublic void updateExam(ExamBean exam) {\n\t\t\n\t}",
"public void setExamDate(String examDate) {\n this.examDate = examDate;\r\n }",
"public void setExamDate(String examDate) {\n this.examDate = examDate;\r\n }",
"public void setExamEventListener(ExamEventListener listener) {\n mExamEventListener = listener;\n }",
"public java.lang.String getExam() {\n return exam;\n }",
"public void setExamId(String examId) {\r\n\t\tthis.examId = examId;\r\n\t}",
"public void setHasExamine(Integer hasExamine) {\n this.hasExamine = hasExamine;\n }",
"public void setQuestionInExam(ArrayList<QuestionInExam> questionInExam) {\r\n\t\tthis.questionInExam = questionInExam;\r\n\t}",
"public void setExaminer (User examiner) {\n\t\tthis.examiner = examiner;\n\t}",
"public boolean setMidtermExam(double midtermExam)\n\t{\n\t\tboolean isValid;\n\t\t\n\t\tisValid = isValidMidtermExam(midtermExam);\n\t\t\n\t\tif(isValid)\n\t\t{\n\t\t\tthis.midtermExam = midtermExam;\n\t\t}\n\t\t\n\t\t\treturn isValid;\n\t}",
"public boolean isSetExam_id() {\n return this.exam_id != null;\n }",
"public boolean isSetExam_id() {\n return this.exam_id != null;\n }",
"public boolean setFinalExam(double finalExam)\n\t{\n\t\tboolean isValid;\n\t\t\n\t\tisValid = isValidFinalExam(finalExam);\n\t\t\n\t\tif(isValid)\n\t\t{\n\t\t\tthis.finalExam = finalExam;\n\t\t}\n\t\t\t\n\t\t\treturn isValid;\n\t}",
"private void setAnswer() {\n DbHelper dbhelper = new DbHelper(context);\n questionNo = questionNo + 1;\n QuizAnswer answer = new QuizAnswer();\n answer.setQuizId(quizId);\n answer.setQuestionId(questionId);\n int optionId = shareprefs.getInt(\"optionId\", 0);\n answer.setOptionId(optionId);\n int correctAns = shareprefs.getInt(\"correctAns\", 0);\n answer.setAnswer(correctAns);\n answer.setContentId(contentId);\n boolean flage = dbhelper.upsertQuizAnswerEntity(answer);\n if (flage) {\n shareprefs.edit().clear().commit();//clear select OptionPreferences\n setValue();\n }\n }",
"void save(Exam exam);",
"public com.example.DNSLog.Builder setAnswers(java.util.List<java.lang.CharSequence> value) {\n validate(fields()[20], value);\n this.Answers = value;\n fieldSetFlags()[20] = true;\n return this;\n }",
"@Override\r\n\tpublic boolean addExam(IExam exam) {\n\t\treturn false;\r\n\t}",
"@Override\n public void setCurrentMeasure(int beat) {\n if (beat >= this.getHeadNotes().size() && beat != 0) {\n throw new IllegalArgumentException(\"Beat out of bound\");\n }\n this.currentMeasure = beat;\n }",
"public ro.ghasachi.bt.persistence.tables.pojos.Exam fetchOneById(Integer value) {\n\t\treturn fetchOne(Exam.EXAM.ID, value);\n\t}",
"@Override\n\tpublic void setPaperSeq(long paperSeq) {\n\t\t_scienceAppPaper.setPaperSeq(paperSeq);\n\t}",
"public void setAssesment(Assessment assesment) {\n this.assessment = assesment;\n }",
"public boolean isSetExam_date() {\n return this.exam_date != null;\n }",
"public void setSecurity_question(String security_question);",
"public void setDaf(int daf) {\r\n\t\tthis.daf = daf;\r\n\t}",
"public ExamHolder(MainController controller, Exam exam) {\n this(controller);\n setExam(exam);\n }",
"public ArrayList<QuestionInExam> getQuestionInExam() {\r\n\t\treturn questionInExam;\r\n\t}",
"Exam(String examType, int maxMarks ,float contribution ,float obtainedMarks ,boolean proctored, String courseName){\n this.examType = examType;\n this.maxMarks = maxMarks;\n this.contribution = contribution;\n this.obtainedMarks = obtainedMarks;\n this.proctored = proctored;\n this.courseName = courseName;\n }",
"public void setPatientDocEmail(String email) {\n\t\tthis.patientDoctorEmail=email;\n\t}",
"public void setAnswer(String newAnswer){\n this.answer = newAnswer; \n }",
"protected void setFixture(BooleanExp fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"public void set(Applicant applicant) {\n\t\tArrayList<Integer> ratings = applicant.getReferenceRatings();\n\t\tif (ratings.size() == 0) {\n\t\t} else {\n\t\t\tif (ratings.size() == 1) {\n\t\t\t\tref1Rating.setText(ratings.get(0).toString());\n\t\t\t}\n\t\t\tif (ratings.size() == 2) {\n\t\t\t\tref1Rating.setText(ratings.get(0).toString());\n\t\t\t\tref2Rating.setText(ratings.get(1).toString());\n\t\t\t} \n\t\t\tif (ratings.size() >= 3) {\n\t\t\t\tref1Rating.setText(ratings.get(0).toString());\n\t\t\t\tref2Rating.setText(ratings.get(1).toString());\n\t\t\t\tref3Rating.setText(ratings.get(2).toString());\n\t\t\t}\n\t\t}\n\t\tif (applicant.getReviewerRating() != null) {\n\t\t\trevRating.setText(applicant.getReviewerRating().toString());\n\t\t}\n\t\tif (applicant.getReviewerComment() != null && !applicant.getReviewerComment().equals(\"\")) {\n\t\t\trevComment.setText(applicant.getReviewerComment());\n\t\t}\n\t}",
"@Override\n\tpublic Exam getModel() {\n\t\treturn exam;\n\t}",
"protected void setFixture(Axiom fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"public void setFaculty(Faculty faculty) {\n this.faculty = faculty;\n }",
"@Override\n\tpublic void setScienceAppId(long scienceAppId) {\n\t\t_scienceAppPaper.setScienceAppId(scienceAppId);\n\t}",
"public void setDocumentNote (String DocumentNote);",
"public void setDateExamine (java.util.Date dateExamine) {\n\t\tthis.dateExamine = dateExamine;\n\t}",
"public void setApellidoPaterno(String apellidoPaterno);",
"@Override\n\tpublic int countExam() {\n\t\treturn 0;\n\t}",
"public void setAlignedSequence( Sequence alseq ) {\n\t\tthis.alignedsequence = alseq;\n\t\tif(alseq.id == null) alseq.id = id;\n\t\tif(seq != null) alseq.name = seq.getGroup();\n\t\tif(alseq.group == null) alseq.group = group;\n\t}",
"public void setAnswds(Long answds) {\r\n this.answds = answds;\r\n }",
"public boolean isSetExam_records() {\n return this.exam_records != null;\n }",
"public void setIdQuestion(int value) {\n this.idQuestion = value;\n }",
"public void editAssessment(String faValue, String tpValue) {\n cmbFunctionalArea.select(faValue);\n selectType(tpValue);\n typeScore(scoreEdit);\n }",
"public Optional<Exam> partialUpdate(Exam exam) {\n log.debug(\"Request to partially update Exam : {}\", exam);\n\n return examRepository\n .findById(exam.getId())\n .map(\n existingExam -> {\n if (exam.getName() != null) {\n existingExam.setName(exam.getName());\n }\n\n return existingExam;\n }\n )\n .map(examRepository::save);\n }",
"public void setExamGrade()\n {\n examGrade = gradeCalculator();\n }",
"public void setAnswer(MCQChoice answer)\n\t{\n\t\tmcqAnswer = answer;\n\t}",
"public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }",
"protected void setFixture(JournalStatement fixture) {\n\t\tthis.fixture = fixture;\n\t}",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public void setQuestion(Question q)\n {\n currentQuestion=q;\n questionLabel.setText(q.getQuestion());\n feedbackLabel.setVisible(false);\n }",
"public void question() {\n\t\tlead.answer(this);\n\t}",
"public void setExaminationType(ExaminationType_type1 param){\n \n this.localExaminationType=param;\n \n\n }",
"public void set2320MOA07RemarkCode$1(java.lang.CharSequence value) {\n this._2320MOA07RemarkCode = value;\n }",
"public void setAnswers(java.util.List<java.lang.CharSequence> value) {\n this.Answers = value;\n }",
"private void setCurrentQuestion(){\n\tfor(int i=0; i<QuestionsTree.length;i++){\n\t\tif(QuestionsTree[i][0].equals(currentRule)){\n\t\t\tcurrentQuestion = QuestionsTree[i][1];\n\t\t}\n\t}\n}",
"public void setCorrectAnswer(TriviaAnswer correctAnswer)\n\t{ It's important not to load this from the database and overwrite\n\t\t// whatever values may have been set in memory by the callers\n\t\t//\n\t\tcorrectAnswerFk.get(false).setCorrect(false);\n\t\tcorrectAnswerFk.set(correctAnswer);\n\t\tcorrectAnswerFk.get(false).setCorrect(true);\n\t}",
"public void setAnswers(FSArray v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_answers == null)\n jcasType.jcas.throwFeatMissing(\"answers\", \"hw1.qa.Problem\");\n jcasType.ll_cas.ll_setRefValue(addr, ((Problem_Type)jcasType).casFeatCode_answers, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setQueryEntryDocFilenmae (java.lang.String queryEntryDocFilenmae) {\n\t\tthis.queryEntryDocFilenmae = queryEntryDocFilenmae;\n\t}",
"public void setQuestion(Question v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_question == null)\n jcasType.jcas.throwFeatMissing(\"question\", \"hw1.qa.Problem\");\n jcasType.ll_cas.ll_setRefValue(addr, ((Problem_Type)jcasType).casFeatCode_question, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setAccidentDetail(typekey.AccidentDetailPEL value);",
"public Builder setExplanations(\n int index, com.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation value) {\n if (explanationsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureExplanationsIsMutable();\n explanations_.set(index, value);\n onChanged();\n } else {\n explanationsBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public void setSecurity_answer(String security_answer);",
"public void setAssessSetview(String assessSetview) {\r\n this.assessSetview = assessSetview == null ? null : assessSetview.trim();\r\n }",
"public void setQuestion(String newQuestion) {\n question = newQuestion;\n }",
"public void setCorrectFlag(){\n\t\tcorrectFlag = true;\n\t}",
"public void setAnswer(String answer) {\r\n this.answer = answer;\r\n }",
"public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }",
"public void setAnswer(Answer v) {\n if (AnswerScore_Type.featOkTst && ((AnswerScore_Type)jcasType).casFeat_answer == null)\n jcasType.jcas.throwFeatMissing(\"answer\", \"edu.cmu.lti.f13.hw1.sji.AnswerScore\");\n jcasType.ll_cas.ll_setRefValue(addr, ((AnswerScore_Type)jcasType).casFeatCode_answer, jcasType.ll_cas.ll_getFSRef(v));}",
"public void setDificulty(int dificulty) {\n this.ACTUAL_DIFICULTY = dificulty;\n }",
"public void setFlexEngProofFlag(Character aFlexEngProofFlag) {\n flexEngProofFlag = aFlexEngProofFlag;\n }",
"@Override\n\tpublic void setSurvey(int id, int survey) {\n\t\t\n\t}",
"public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }",
"public hu.advancedweb.model.ExamConfig updateExamConfig(\n hu.advancedweb.model.ExamConfig examConfig)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _examConfigLocalService.updateExamConfig(examConfig);\n }",
"public double getMidtermExam()\n\t{\n\t\treturn this.midtermExam;\n\t}",
"public void setAnswerFields (LSPField[] answerFields) {\r\n this.answerFields = answerFields;\r\n }",
"public void setRemark(String remark)\n/* */ {\n/* 267 */ this.remark = remark;\n/* */ }",
"public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}",
"public ProxyList<Exam> getExams() {\n return exams;\n }",
"public ProvisionableStemFinder assignDirectAssignment(Boolean directAssignment) {\n this.directAssignment = directAssignment;\n return this;\n }",
"public void setAdmSexual(Integer admSexual) {\n this.admSexual = admSexual;\n }",
"public void setQuestion(String question) {\n this.question = question;\n }",
"public ElementDefinitionDt setFormal(StringDt theValue) {\n\t\tmyFormal = theValue;\n\t\treturn this;\n\t}",
"public double getFinalExam()\n\t{\n\t\treturn this.finalExam;\n\t}",
"public int getExamId();",
"public void answer(Properties answers) {\n/* 56 */ setAnswer(answers);\n/* 57 */ QuestionParser.parseManageAllianceQuestion(this);\n/* */ }",
"public void setExplainability(DriftCheckExplainability explainability) {\n this.explainability = explainability;\n }",
"public void setStudent(Student s) {\r\n student = s;\r\n }",
"public void setCurrentQuestion(Question question) {\n\t\tcurrentQuestion = question;\n\t}",
"@Override\n\tpublic boolean addExam(Exam exam) {\n\t\tString sql = \"insert into exam (name, edesc, edue, etype, lid, uid, ispractice) values (?,?,?,?,?,?,?)\";\n\t\tConnection connection = JDBCUtil.getConnection();\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tps = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tps.setString(1, exam.getName());\n\t\t\tps.setString(2, exam.getEdesc());\n\t\t\tps.setTimestamp(3, new Timestamp(exam.getEdue().getTime()));\n\t\t\tps.setInt(4, exam.getEtype());\n\t\t\tps.setInt(5, exam.getLid());\n\t\t\tps.setInt(6, exam.getUid());\n\t\t\tps.setInt(7, exam.getIfPractice());\n\t\t\tint result = ps.executeUpdate();\n\t\t\treturn result > 0;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\tJDBCUtil.close(connection, ps);\n\t\t}\n\t}",
"public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }",
"public void setReferral( boolean referral )\n {\n this.referral = referral;\n }",
"public void setNumAnswer(int value) {\n this.numAnswer = value;\n }",
"public void setPatientSex(String patientSex){\n\t\tthis.patientSex = patientSex;\n\t}",
"public void setConsultDetail(String consultDetail) {\n this.consultDetail = consultDetail;\n }",
"@Override\n\tpublic void deleteExam(ExamBean exam) {\n\t\t\n\t}",
"public void setStaffID() {\r\n\t\t\t staffID = IDFactory.getID(\"ST\");\r\n\t\t}"
]
| [
"0.54904526",
"0.5455845",
"0.5436066",
"0.5436066",
"0.5415938",
"0.52204466",
"0.519841",
"0.5043969",
"0.49403206",
"0.4861317",
"0.48221475",
"0.48046055",
"0.48046055",
"0.47674075",
"0.47555378",
"0.4717717",
"0.46413496",
"0.46380356",
"0.46287313",
"0.46017975",
"0.45752206",
"0.4524659",
"0.4523501",
"0.45051315",
"0.44935647",
"0.4471429",
"0.44673637",
"0.44661203",
"0.44551256",
"0.44547176",
"0.4453167",
"0.4439576",
"0.4429016",
"0.43975264",
"0.43895373",
"0.43879506",
"0.43842065",
"0.4380119",
"0.43793705",
"0.4360173",
"0.4359843",
"0.43595058",
"0.4358895",
"0.43558243",
"0.43512374",
"0.4349951",
"0.43486565",
"0.43417144",
"0.43271086",
"0.43264875",
"0.43259615",
"0.43259615",
"0.43259615",
"0.43208075",
"0.43169805",
"0.4316427",
"0.43141827",
"0.43103594",
"0.43054324",
"0.43043235",
"0.43038926",
"0.428986",
"0.4288835",
"0.427137",
"0.4262783",
"0.4260811",
"0.42587185",
"0.4256949",
"0.42567796",
"0.42492753",
"0.424592",
"0.42444417",
"0.4239431",
"0.42351443",
"0.42256534",
"0.42158014",
"0.42117327",
"0.420888",
"0.4199448",
"0.41946697",
"0.41936165",
"0.4192516",
"0.41861692",
"0.4182429",
"0.41788712",
"0.4178326",
"0.41706657",
"0.41646135",
"0.4160028",
"0.41578537",
"0.41535",
"0.41533113",
"0.41519505",
"0.41484377",
"0.41468304",
"0.4137917",
"0.41315877",
"0.41301554",
"0.41297722",
"0.41241458"
]
| 0.660563 | 0 |
Gets the patDt value for this ForeignPatentDocumentsInfo. | public java.lang.String getPatDt() {
return patDt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPatDt(java.lang.String patDt) {\n this.patDt = patDt;\n }",
"public java.lang.String getPatTpcd() {\n return patTpcd;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent getPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public double getPatN() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n return jcasType.ll_cas.ll_getDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN);}",
"public Date getDirDate() {\r\n Date dirDate = dtUtil.getFileDateDPWIN007(this.getDirectory()); \r\n return dirDate;\r\n }",
"public java.lang.String getCorgPatno() {\n return corgPatno;\n }",
"public java.lang.String getDyf() {\r\n return localDyf;\r\n }",
"public String getDsdate() {\n return dsdate;\n }",
"public String getDatePattern()\r\n\t{\r\n\t\treturn datePattern;\r\n\t}",
"public gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId getPatentSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }",
"public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }",
"public java.util.Calendar getDDepDate() {\n return dDepDate;\n }",
"List<DocPatRelation> selectRelationPatInfoByPatId(String patId);",
"public LocalDate getDateDebut() {\n\t\treturn dateDebut;\n\n\t}",
"private JFormattedTextField getTxtDtDocPendente() {\r\n\t\tif (txtDtDocPendente == null) {\r\n\t\t\ttxtDtDocPendente = new JFormattedTextField(setMascara(\"##/##/####\"));\r\n\t\t\ttxtDtDocPendente.setBounds(new Rectangle(307, 12, 80, 22));\r\n\t\t\ttxtDtDocPendente.setToolTipText(\"Data da pendência\");\r\n\t\t}\r\n\t\treturn txtDtDocPendente;\r\n\t}",
"public String getDydj() {\n return dydj;\n }",
"public Date getcDt() {\r\n\t\treturn cDt;\r\n\t}",
"public Reference patient() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_PATIENT);\n }",
"public String getPatientDocEmail() {\n\t\treturn this.patientDoctorEmail;\n\t}",
"public java.util.Date getPatientBirthDate(){\n\t\treturn patientBirthDate;\n\t}",
"public final Date getDat() {\n return this.dat;\n }",
"private Patrol getDroidPatrol() {\n\t\treturn this.droidPatrol;\n\t}",
"public Date getFileDate()\r\n {\r\n return dFileDate;\r\n }",
"public String getAskProcDt() {\r\n\t\treturn askProcDt;\r\n\t}",
"public String getMSDT() {\r\n for (int i = 0; i < eventFields.size(); i++) {\r\n EventDataEntry currentEntry = eventFields.get(i);\r\n if (currentEntry.getColumnName().equalsIgnoreCase(\"msdt\")) {\r\n return currentEntry.getValues().getFirst().toString();\r\n }\r\n }\r\n return null;\r\n }",
"public Integer getPatentNum() {\r\n return patentNum;\r\n }",
"public Date getRegistDt() {\n return registDt;\n }",
"public Date getDeldte() {\r\n return deldte;\r\n }",
"public java.lang.String getPOSTNG_DATE() {\r\n return POSTNG_DATE;\r\n }",
"public void setPatTpcd(java.lang.String patTpcd) {\n this.patTpcd = patTpcd;\n }",
"public String getDepartingDate() {\r\n return departingDate;\r\n }",
"public int getIdpat() {\r\n return idpat;\r\n }",
"public java.util.Calendar getDArrDate() {\n return dArrDate;\n }",
"public java.lang.String getDsCPF() {\n return dsCPF;\n }",
"public Date getDELETED_DATE() {\r\n return DELETED_DATE;\r\n }",
"public java.math.BigDecimal getPatSum() {\r\n return localPatSum;\r\n }",
"public String deceasedDate() {\n return getString(FhirPropertyNames.PROPERTY_DECEASED_DATE);\n }",
"public static String getDatePattern() {\n\t\treturn DATE_PATTERN;\n\t}",
"public java.util.Date getDisbursmentDate () {\n\t\treturn disbursmentDate;\n\t}",
"public String[] getDelDocFileId() {\n\t\treturn delDocFileIds;\n\t}",
"private IDAOPatente getDaoPatente() {\n return this.daoPatente;\n }",
"public java.util.Calendar getDT() {\n return DT;\n }",
"public double getDAmtSvcDtlFeePaid()\r\n {\r\n return this._dAmtSvcDtlFeePaid;\r\n }",
"@Override\r\n\tpublic Date getAttr_reg_dt() {\n\t\treturn super.getAttr_reg_dt();\r\n\t}",
"public String getPatientId() {\n\t\treturn patientId;\n\t}",
"public Long getPdid() {\n return pdid;\n }",
"public String getAccessionDeaccessionToDate() {\n return accessionDeaccessionToDate;\n }",
"public String getDepartDate() {\n\t\treturn departDateElement.getAttribute(\"value\");\n\t}",
"public String getp_recpt_no() {\n return (String)getNamedWhereClauseParam(\"p_recpt_no\");\n }",
"public Date getRecdate() {\n return recdate;\n }",
"public String getAccessionDeaccessionFromDate() {\n return accessionDeaccessionFromDate;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent addNewPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().add_element_user(PATENT$16);\r\n return target;\r\n }\r\n }",
"public long getDeltaDate() {\n\t\t/* TODO : delay 0 or delay max ? */\n\t\tlong l = 0;\n\t\tif (isDeltaValid()){\n\t\t\tl = deltaDate;\n\t\t}\n\t\treturn l;\n\t}",
"public double getDtOutput() {\r\n return dtOutput;\r\n }",
"public String getDptName() {\n return dptName;\n }",
"public String getPatronymic() {\n return patronymic;\n }",
"public Date getUpdateDt() {\n return updateDt;\n }",
"public Date getUpdateDt() {\n return updateDt;\n }",
"public int getPatientId() {\n\t\t\n\t\treturn this.patientId;\n\t}",
"public int getPatientID() {\r\n\t\treturn patientID;\r\n\t}",
"public java.lang.String getPatChargeListResult() {\r\n return localPatChargeListResult;\r\n }",
"public Date getDelTime() {\n return delTime;\n }",
"public LocalDate getDtNascimento() {\n\t\treturn dtNascimento;\n\t}",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd getTpd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().find_element_user(TPD$34, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public List getDos() {\n\t\tif (dos == null) {\n\t\t\tdos = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/dos\");\n\t\t}\n\t\treturn dos;\n\t}",
"public String getDireccionPersonaRecive() {\r\n\t\treturn direccionPersonaRecive;\r\n\t}",
"public LocalDate getFecha() {\n\t\treturn fecha;\n\t}",
"public com.google.protobuf.ByteString\n getPatStatusBytes() {\n java.lang.Object ref = patStatus_;\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 patStatus_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getPatStatusBytes() {\n java.lang.Object ref = patStatus_;\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 patStatus_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.sql.Timestamp getRecdate() {\n\treturn recdate;\n}",
"public String getPatientId(){\n\t\treturn patientId;\n\t}",
"public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}",
"public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}",
"public java.lang.String getStudent_dob() {\n\t\treturn _primarySchoolStudent.getStudent_dob();\n\t}",
"public com.google.protobuf.ByteString\n getPatStatusBytes() {\n java.lang.Object ref = patStatus_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n patStatus_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getPatStatusBytes() {\n java.lang.Object ref = patStatus_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n patStatus_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Date getAccessionDateDate() {\n\t\tString t = doc.get(\"collaccessiondate\");\n\n\t\tif (t == null)\n\t\t\treturn null;\n\n\t\ttry {\n\t\t\t// Stored in the form 20090207080305\n\t\t\treturn new Date(DateFieldTools.stringToTime(t));\n\t\t} catch (Throwable e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public java.sql.Date getDEPARTURE_FROM_LOC_DATE()\n {\n \n return __DEPARTURE_FROM_LOC_DATE;\n }",
"public Date getfPeticion() {\r\n return fPeticion;\r\n }",
"@Override\n\tpublic java.util.Date getPaymentDate() {\n\t\treturn _esfShooterAffiliationChrono.getPaymentDate();\n\t}",
"public LocalDate getDato() {\n\t\treturn dato;\n\t}",
"@GetMapping(\"/last-chart-by-patient/{facId}/{patId}\")\n public Chart getLastChartByPatient(@PathVariable Long facId, @PathVariable Long patId) {\n log.debug(\"Finding the list of chart by patient\");\n List<Chart> list = chartService.findAllByPatient(facId, patId);\n if (list.size() > 0)\n return list.get(0);\n else\n return new Chart();\n }",
"@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }",
"public java.lang.String getPymt_beg_dt() {\n\t\treturn pymt_beg_dt;\n\t}",
"public LocalDateTime getFim() {\n\t\treturn this.fim;\n\t}",
"public String getDptCode() {\n return dptCode;\n }",
"public java.lang.String getDate_stamp_descr() {\n return date_stamp_descr;\n }",
"public JCMSTextField getSpecialDateTxt() {\n return this.txtSpclDate;\n }",
"public Date getDjsj() {\n return djsj;\n }",
"public DATE getDebutService(){\n\t\treturn debutService;\n\t}",
"public String getDm() {\n return dm;\n }",
"Path getDoctorRecordsFilePath();",
"public FDRData getFDRData() {\n\t\treturn proteinModeller.getFDRData();\n\t}",
"public String getD() {\n return d;\n }",
"public Date getFsWarningTime() {\n return fsWarningTime;\n }",
"public IDrugDAC getDrugDAC()\r\n\t{\r\n\t\treturn drugDAC;\r\n\t}",
"public Date getCreateDt() {\n\t\treturn this.createDt;\n\t}",
"public Date getUpdatedDt() {\n\t\treturn updatedDt;\n\t}",
"public String getReportDirecty(){\n return this.reporter.getDic();\n }"
]
| [
"0.6752409",
"0.60726565",
"0.58976144",
"0.5721018",
"0.55477107",
"0.5498952",
"0.5262204",
"0.52287346",
"0.5210878",
"0.5159472",
"0.51270664",
"0.51270664",
"0.499013",
"0.49753326",
"0.49716842",
"0.4955453",
"0.49519286",
"0.49415904",
"0.49375668",
"0.49311137",
"0.49211705",
"0.49085256",
"0.4873694",
"0.48725486",
"0.4869706",
"0.48344716",
"0.47950983",
"0.4789923",
"0.47645542",
"0.47605494",
"0.47463876",
"0.47315103",
"0.47305197",
"0.47287464",
"0.47158206",
"0.47046056",
"0.47034162",
"0.46997067",
"0.46817034",
"0.46593994",
"0.46593922",
"0.4658146",
"0.4646488",
"0.46430475",
"0.46373427",
"0.46371874",
"0.4635545",
"0.4632285",
"0.46262908",
"0.4605021",
"0.46015066",
"0.45951554",
"0.45937213",
"0.45893717",
"0.45870888",
"0.45741433",
"0.4567777",
"0.45619953",
"0.45619953",
"0.45557612",
"0.45550108",
"0.45543152",
"0.45511383",
"0.45340893",
"0.4530968",
"0.4530274",
"0.45173982",
"0.45173866",
"0.45037082",
"0.45037082",
"0.4502907",
"0.4501266",
"0.44994813",
"0.44994813",
"0.4498269",
"0.4476768",
"0.4476768",
"0.445625",
"0.4448782",
"0.44436002",
"0.44340765",
"0.4432827",
"0.4428845",
"0.44252336",
"0.4424193",
"0.4423948",
"0.44197783",
"0.4415406",
"0.44128874",
"0.44096255",
"0.44042882",
"0.44009048",
"0.43994355",
"0.439464",
"0.43791866",
"0.43785685",
"0.43778735",
"0.4376278",
"0.43737808",
"0.4372274"
]
| 0.7960571 | 0 |
Sets the patDt value for this ForeignPatentDocumentsInfo. | public void setPatDt(java.lang.String patDt) {
this.patDt = patDt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getPatDt() {\n return patDt;\n }",
"public void setPatTpcd(java.lang.String patTpcd) {\n this.patTpcd = patTpcd;\n }",
"public void setPatent(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent patent)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().add_element_user(PATENT$16);\r\n }\r\n target.set(patent);\r\n }\r\n }",
"public void applyPattern(final String pat) {\n\t\tthis.pattern = pat;\n\t\tsetLocale(null, null);\n\t\t// reset parsed pattern items\n\t\tpatternItems = null;\n\t}",
"public void setRegistDt(Date registDt) {\n this.registDt = registDt;\n }",
"public void applyLocalizedPattern(final String pat) {\n\t\tthis.pattern = translatePattern(pat, formatData.localPatternChars, DateFormatSymbols.patternChars);\n\t\tsetLocale(null, null);\n\t}",
"public void setCorgPatno(java.lang.String corgPatno) {\n this.corgPatno = corgPatno;\n }",
"public void setIdpat(int idpat) {\r\n this.idpat = idpat;\r\n }",
"public void setUpdateDt(Date updateDt) {\n this.updateDt = updateDt;\n }",
"public void setUpdateDt(Date updateDt) {\n this.updateDt = updateDt;\n }",
"public void setPatN(double v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n jcasType.ll_cas.ll_setDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN, v);}",
"public void setPatronymic(String patronymic) {\n this.patronymic = patronymic;\n }",
"@NoProxy\n public void updateDtstamp() {\n setDtstamp(new DtStamp(new DateTime(true)).getValue());\n }",
"public ImagingStudy setDateTime(DateTimeDt theValue) {\n\t\tmyDateTime = theValue;\n\t\treturn this;\n\t}",
"List<DocPatRelation> selectRelationPatInfoByPatId(String patId);",
"public void setcDt(Date cDt) {\r\n\t\tthis.cDt = cDt;\r\n\t}",
"public void setDate(String ymd) throws RelationException;",
"public Builder setPatStatus(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"public void setUpdatedDt(Date updatedDt) {\n\t\tthis.updatedDt = updatedDt;\n\t}",
"public void setDate(int dt) {\n date = dt;\n }",
"public Builder setPatStatus(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"public void setFileDate(Date fileDate)\r\n {\r\n dFileDate = fileDate;\r\n }",
"@Override\n public void setFecha(java.util.Date fecha) {\n _partido.setFecha(fecha);\n }",
"public void setDatePattern(String datePattern)\r\n\t{\r\n\t\tthis.datePattern = datePattern;\r\n\t}",
"public void setDyf(java.lang.String param) {\r\n localDyfTracker = param != null;\r\n\r\n this.localDyf = param;\r\n }",
"public void setPatentSeqId(gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId patentSeqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().add_element_user(PATENTSEQID$0);\r\n }\r\n target.set(patentSeqId);\r\n }\r\n }",
"public void setPatronAutorizacion(String patronAutorizacion)\r\n/* 219: */ {\r\n/* 220:369 */ this.patronAutorizacion = patronAutorizacion;\r\n/* 221: */ }",
"void setPatientRecordsFilePath(Path patientRecordsFilePath);",
"void setDoctorRecordsFilePath(Path doctorRecordsFilePath);",
"public void setAskProcDt(String askProcDt) {\r\n\t\tthis.askProcDt = askProcDt;\r\n\t}",
"public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }",
"@Transactional(readOnly = true)\n\tpublic void seekPatient(TreeManager docMtl) {\n//\t\tpublic void seekPatient(SchemaMtl schemaMtl) {\n\t\t\n\t\tlog.debug(docMtl.getEditPatientC());\n\t\tString sql = \"FROM Patient p \",sql2=\"\";\n\t\tint sl = sql.length();\n\t\tint fl = docMtl.getEditPatientC().getForename().length();\n\t\tif(fl>0){\n\t\t\tsql2+=sql2.length()==0?\"\":\" OR \";\n\t\t\tsql2+=\" lower(substring(p.forename,1,\" +fl +\"))='\" \n\t\t\t+docMtl.getEditPatientC().getForename().toLowerCase() +\"'\";\n\t\t}\n\t\tint pl = docMtl.getEditPatientC().getPatient().length();\n\t\tif(pl>0){\n\t\t\tsql2+=sql2.length()==0?\"\":\" OR \";\n\t\t\tsql2+=\" lower(substring(p.patient,1,\" +pl +\"))='\" \n\t\t\t+docMtl.getEditPatientC().getPatient().toLowerCase() +\"'\";\n\t\t\tif(fl==0){\n\t\t\t\tsql2+=\" OR lower(substring(p.forename,1,\" +pl +\"))='\" \n\t\t\t\t+docMtl.getEditPatientC().getPatient().toLowerCase() +\"'\";\n\t\t\t}\n\t\t}\n\t\tif(docMtl.getEditPatientC().getSex()!=null){\n\t\t\tsql+=sql.length()==sl?\" WHERE \":\" AND \";\n\t\t\tsql+=\" p.sex = '\" +docMtl.getEditPatientC().getSex() +\"' \";\n\t\t}\n\t\tif(sql2.length()>0){\n\t\t\tsql+=sql.length()==sl?\" WHERE \":\" AND \";\n\t\t\tsql+=\"(\" +sql2 +\")\";\n\t\t}\n\t\tlog.debug(sql);\n\t\tdocMtl.setPatientL(em.createQuery(sql).setMaxResults(10).getResultList());\n\t}",
"public Series setDateTime(DateTimeDt theValue) {\n\t\tmyDateTime = theValue;\n\t\treturn this;\n\t}",
"public void setDateDebut(LocalDate dateDebut_) {\n\t\tdateDebut = dateDebut_;\n\t}",
"public boolean editData(int index, Patient pat)\r\n\t{\r\n\t\ttry\r\n\t\t{\t\r\n\t\t\t//replaces the data at the current index with the patient data passed\r\n\t\t\tarrayPatients[index] = pat;\r\n\t\t\twritePatientListToFile();// rewrite the file\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void setDsdate(String dsdate) {\n this.dsdate = dsdate == null ? null : dsdate.trim();\n }",
"public void setFechaExclusion(Date fechaExclusion)\r\n/* 165: */ {\r\n/* 166:182 */ this.fechaExclusion = fechaExclusion;\r\n/* 167: */ }",
"public void setPatrolPath(ArrayList<Point> patrolPath) {\n\t\tthis.patrolPath = patrolPath;\n\t}",
"public void setData(final D dt) {\n this.data = dt;\n }",
"public void setDate(String d) {\n\t\tdate = d;\n\t\tif (super.getPubDate() != null)\n\t\t\tsuper.setPubDate(d);\n\t\tdate = d;\n\t}",
"public Builder clearPatStatus() {\n bitField0_ = (bitField0_ & ~0x00000002);\n patStatus_ = getDefaultInstance().getPatStatus();\n onChanged();\n return this;\n }",
"public void setfPeticion(Date fPeticion) {\r\n this.fPeticion = fPeticion;\r\n }",
"public void setPymt_beg_dt(final java.lang.String pymt_beg_dt) {\n\t\tthis.pymt_beg_dt = pymt_beg_dt;\n\t}",
"public void setPatChargeListResult(java.lang.String param) {\r\n localPatChargeListResultTracker = param != null;\r\n\r\n this.localPatChargeListResult = param;\r\n }",
"public Builder clearPatStatus() {\n bitField0_ = (bitField0_ & ~0x00000001);\n patStatus_ = getDefaultInstance().getPatStatus();\n onChanged();\n return this;\n }",
"public java.lang.String getPatTpcd() {\n return patTpcd;\n }",
"public Builder setPatStatusBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"public void setPatentNum(Integer patentNum) {\r\n this.patentNum = patentNum;\r\n }",
"public ElementDefinitionDt setPath(StringDt theValue) {\n\t\tmyPath = theValue;\n\t\treturn this;\n\t}",
"public void setProcessDt(Date processDt) {\n _processDt = processDt;\n }",
"public Builder setPatStatusBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"public void setDatepr( java.sql.Date newValue ) {\n __setCache(\"datepr\", newValue);\n }",
"abstract public void setServiceAppointment(Date serviceAppointment);",
"public void setDateDoc (Timestamp DateDoc);",
"public void setDateDoc (Timestamp DateDoc);",
"public void setDateDoc (Timestamp DateDoc);",
"public void setDtRegistro(int dtRegistro) {\n this.dtRegistro = dtRegistro;\n }",
"public ValidatorFactory setDateFormat(String pattern) {\n this.datePattern = pattern == null ? null : new SimpleDateFormat(pattern).toPattern();\n return this;\n }",
"public void setRegdate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.regdate != null && (newVal.compareTo(this.regdate) == 0)) || \n (newVal == null && this.regdate == null && regdate_is_initialized)) {\n return; \n } \n this.regdate = newVal; \n regdate_is_modified = true; \n regdate_is_initialized = true; \n }",
"public void setDate(DateInfo dates) {\r\n\t\tsuper.setDate(dates);\r\n\t\t//maturityDate = new DateInfo(dates);\r\n\t}",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent addNewPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().add_element_user(PATENT$16);\r\n return target;\r\n }\r\n }",
"public void setDtNascimento(LocalDate dtNascimento) {\n\t\tthis.dtNascimento = dtNascimento;\n\t}",
"@NoProxy\n public void setDtstamps(final Timestamp val) {\n DateTime dt = new DateTime(val);\n setDtstamp(new DtStamp(dt).getValue());\n setLastmod(new LastModified(dt).getValue());\n setCtoken(getLastmod() + \"-\" + hex4FromNanos(val.getNanos()));\n\n if (getCreated() == null) {\n setCreated(new Created(dt).getValue());\n }\n }",
"public void setRentDate(String d) throws RentPeriodException {\r\n \tif(Helper.isValidDate(d)) {\r\n \t\tthis.rentDate = d;\r\n \t} \t\r\n \telse {\r\n \t\tthrow new RentPeriodException();\r\n \t}\r\n }",
"public void setDT(java.util.Calendar DT) {\n this.DT = DT;\n }",
"public void setDrugDAC(IDrugDAC drugDAC)\r\n\t{\r\n\t\tthis.drugDAC = drugDAC;\r\n\t}",
"public void setTpd(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd tpd)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().find_element_user(TPD$34, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().add_element_user(TPD$34);\r\n }\r\n target.set(tpd);\r\n }\r\n }",
"public void setRecdate(java.sql.Timestamp newValue) {\n\tthis.recdate = newValue;\n}",
"public void setDateAppointment(MyDate dateAppointment) {\n\t\tthis.dateAppointment = dateAppointment;\n\t}",
"public void setDateDebut(String newDateDebut) {\n\t\tthis.dateDebut = newDateDebut;\n\t}",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"public void setPatientBirthDate(java.util.Date patientBirthDate){\n\t\tthis.patientBirthDate = patientBirthDate;\n\t}",
"public ElementDefinitionDt setPattern(IDatatype theValue) {\n\t\tmyPattern = theValue;\n\t\treturn this;\n\t}",
"void setDate(java.lang.String date);",
"public GlobFileSet setDirectoryPattern(String pattern)\n\t\t{\n\t\tm_dirPattern = Pattern.compile(pattern);\n\t\treturn (this);\n\t\t}",
"void setDate(Date data);",
"public void setDeletePatientResponse(eu.aladdin_project.storagecomponent.DeletePatientResponseDocument.DeletePatientResponse deletePatientResponse)\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.DeletePatientResponseDocument.DeletePatientResponse target = null;\n target = (eu.aladdin_project.storagecomponent.DeletePatientResponseDocument.DeletePatientResponse)get_store().find_element_user(DELETEPATIENTRESPONSE$0, 0);\n if (target == null)\n {\n target = (eu.aladdin_project.storagecomponent.DeletePatientResponseDocument.DeletePatientResponse)get_store().add_element_user(DELETEPATIENTRESPONSE$0);\n }\n target.set(deletePatientResponse);\n }\n }",
"public void setFecha(LocalDate fecha) {\n\t\tthis.fecha = fecha;\n\t}",
"public void setLastUpdateDt(Date lastUpdateDt) {\n\t\tthis.lastUpdateDt = lastUpdateDt;\n\t}",
"public void setCreatedDt(Date createdDt) {\n\t\tthis.createdDt = createdDt;\n\t}",
"private void preparePat(String pat) {\n this.pat = pat;\n\n // build DFA from pattern\n int M = pat.length();\n dfa = new int[R][M];\n dfa[pat.charAt(0)][0] = 1;\n for (int X = 0, j = 1; j < M; j++) {\n for (int c = 0; c < R; c++)\n dfa[c][j] = dfa[c][X]; // Copy mismatch cases.\n dfa[pat.charAt(j)][j] = j+1; // Set match case.\n X = dfa[pat.charAt(j)][X]; // Update restart state.\n }\n }",
"public void setCurrentDate(String d) {\n currentDate = d;\n }",
"public void setPatient(org.hl7.fhir.ResourceReference patient)\n {\n generatedSetterHelperImpl(patient, PATIENT$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"@Override\n\tpublic void setPaymentDate(java.util.Date paymentDate) {\n\t\t_esfShooterAffiliationChrono.setPaymentDate(paymentDate);\n\t}",
"public void setDtStart(Date dtStart) {\r\n this.dtStart = dtStart;\r\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent getPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public void setDYPT(java.lang.String param) {\r\n localDYPTTracker = param != null;\r\n\r\n this.localDYPT = param;\r\n }",
"public void setDYPT(java.lang.String param) {\r\n localDYPTTracker = param != null;\r\n\r\n this.localDYPT = param;\r\n }",
"public void setDate(DateTime \n date) {\n this.date = date;\n }",
"public ElementDefinitionDt setPath( String theString) {\n\t\tmyPath = new StringDt(theString); \n\t\treturn this; \n\t}",
"public void setFechaInclusion(Date fechaInclusion)\r\n/* 155: */ {\r\n/* 156:174 */ this.fechaInclusion = fechaInclusion;\r\n/* 157: */ }",
"public void setUpdateDatetime(Date updateDatetime);",
"public void setFltrPrd(String fltrPrd) {\r\n this.fltrPrd = fltrPrd;\r\n }",
"public void setFechaModificacion(String p) { this.fechaModificacion = p; }",
"public void setFechaModificacion(String p) { this.fechaModificacion = p; }",
"void setDateOfBirth(LocalDate dateOfBirth);",
"public void setDtMotivoLlamadoAtencion(DataTable dtMotivoLlamadoAtencion)\r\n/* 139: */ {\r\n/* 140:144 */ this.dtMotivoLlamadoAtencion = dtMotivoLlamadoAtencion;\r\n/* 141: */ }",
"public void setFechaPresentacion(es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.RangoFechaPresentacionType fechaPresentacion) {\r\n this.fechaPresentacion = fechaPresentacion;\r\n }",
"public void setDtVencimento(int dtVencimento) {\n this.dtVencimento = dtVencimento;\n }",
"public void setPatSum(java.math.BigDecimal param) {\r\n this.localPatSum = param;\r\n }"
]
| [
"0.6400707",
"0.57135826",
"0.54643375",
"0.50529623",
"0.50361186",
"0.4904412",
"0.48808324",
"0.48773435",
"0.48709342",
"0.48709342",
"0.47961938",
"0.47756672",
"0.47657275",
"0.4719163",
"0.46705535",
"0.46702012",
"0.4648926",
"0.46463415",
"0.46360108",
"0.460825",
"0.4593743",
"0.45887646",
"0.4539916",
"0.45192167",
"0.4502432",
"0.4501022",
"0.44837347",
"0.4483207",
"0.44804713",
"0.44664514",
"0.44642818",
"0.44489285",
"0.44428363",
"0.44344926",
"0.44220737",
"0.44120076",
"0.4408237",
"0.44021818",
"0.43958458",
"0.43726462",
"0.43625692",
"0.43509176",
"0.43492213",
"0.43438035",
"0.4323174",
"0.4288785",
"0.4285982",
"0.42825824",
"0.42636618",
"0.42595908",
"0.42545912",
"0.4251284",
"0.42483303",
"0.42475682",
"0.42475682",
"0.42475682",
"0.4242504",
"0.4223132",
"0.4221243",
"0.42016676",
"0.42013264",
"0.4200372",
"0.41889507",
"0.4187037",
"0.4185326",
"0.41851473",
"0.416777",
"0.41607818",
"0.4158121",
"0.41561094",
"0.41357023",
"0.41281146",
"0.41205314",
"0.41125926",
"0.41105756",
"0.41105545",
"0.41104236",
"0.41046545",
"0.40998444",
"0.40997937",
"0.40902323",
"0.4090197",
"0.40837735",
"0.4080158",
"0.4069879",
"0.40651265",
"0.4057656",
"0.4057656",
"0.40497792",
"0.4048824",
"0.40482712",
"0.40455288",
"0.4042807",
"0.40386456",
"0.40386456",
"0.4036463",
"0.4036362",
"0.40326747",
"0.40320337",
"0.40312877"
]
| 0.7788433 | 0 |
Gets the patTpcd value for this ForeignPatentDocumentsInfo. | public java.lang.String getPatTpcd() {
return patTpcd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getPatN() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n return jcasType.ll_cas.ll_getDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN);}",
"public java.lang.String getPatDt() {\n return patDt;\n }",
"public java.lang.String getCorgPatno() {\n return corgPatno;\n }",
"public void setPatTpcd(java.lang.String patTpcd) {\n this.patTpcd = patTpcd;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent getPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public Long getPdid() {\n return pdid;\n }",
"public Reference patient() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_PATIENT);\n }",
"public P getPattern() {\n return this.slp.getProduction(patter);\n }",
"public gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId getPatentSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public String getp_recpt_no() {\n return (String)getNamedWhereClauseParam(\"p_recpt_no\");\n }",
"public Integer getPdfId() {\r\n return pdfId;\r\n }",
"public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }",
"public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd getTpd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().find_element_user(TPD$34, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public String getPd_img() {\n\t\treturn pd_img;\n\t}",
"public Integer getPatentNum() {\r\n return patentNum;\r\n }",
"public java.lang.String getPatStatus() {\n java.lang.Object ref = patStatus_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n patStatus_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getPatStatus() {\n java.lang.Object ref = patStatus_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n patStatus_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.math.BigDecimal getPatSum() {\r\n return localPatSum;\r\n }",
"private Patrol getDroidPatrol() {\n\t\treturn this.droidPatrol;\n\t}",
"public com.google.protobuf.ByteString\n getPatStatusBytes() {\n java.lang.Object ref = patStatus_;\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 patStatus_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getPatStatusBytes() {\n java.lang.Object ref = patStatus_;\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 patStatus_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getPatStatus() {\n java.lang.Object ref = patStatus_;\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 patStatus_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getPatStatus() {\n java.lang.Object ref = patStatus_;\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 patStatus_ = s;\n }\n return s;\n }\n }",
"public String getPatronymic() {\n return patronymic;\n }",
"public com.google.protobuf.ByteString\n getPatStatusBytes() {\n java.lang.Object ref = patStatus_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n patStatus_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getPatStatusBytes() {\n java.lang.Object ref = patStatus_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n patStatus_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public CP getTPValuePP() { \r\n\t\tCP retVal = this.getTypedField(35, 0);\r\n\t\treturn retVal;\r\n }",
"public int getIdpat() {\r\n return idpat;\r\n }",
"public String getDireccionTI() {\n return this.direccionTI;\n }",
"public java.lang.String getDsCPF() {\n return dsCPF;\n }",
"public String getPattern() {\r\n return this.currPattern;\r\n }",
"public UploadedFile getPdf() {\n\t\treturn pdf;\n\t}",
"public int getPatientID() {\r\n\t\treturn patientID;\r\n\t}",
"public String getPatientId() {\n\t\treturn patientId;\n\t}",
"public Long getPiid() {\n return piid;\n }",
"public int getPatientId() {\n\t\t\n\t\treturn this.patientId;\n\t}",
"public String getDPURL(){\n\t\treturn this.m_sDPURL;\n\t}",
"public int getTempoPatrulha() {\n return tempoPatrulha;\n }",
"public String getDireccionPersonaRecive() {\r\n\t\treturn direccionPersonaRecive;\r\n\t}",
"public java.lang.String getPatChargeListResult() {\r\n return localPatChargeListResult;\r\n }",
"public java.lang.String getCreateCardPatInfoResult() {\r\n return localCreateCardPatInfoResult;\r\n }",
"public String getPicturePathPro() {\n return picturePathPro;\n }",
"public String getPatientDocEmail() {\n\t\treturn this.patientDoctorEmail;\n\t}",
"public String getPatientId(){\n\t\treturn patientId;\n\t}",
"com.google.protobuf.ByteString\n getPatStatusBytes();",
"com.google.protobuf.ByteString\n getPatStatusBytes();",
"java.lang.String getPatStatus();",
"java.lang.String getPatStatus();",
"public String getDcrp() {\n\t\treturn dcrp;\n\t}",
"public java.lang.Integer getPRTNO() {\n return PRTNO;\n }",
"public Integer get_pdcount()\r\n\t{\r\n\t\treturn this.pdcount;\r\n\t}",
"public int getP() {\r\n\t\treturn this.p;\r\n\t}",
"public String getPattern() {\n return pattern == null ? null : pattern.pattern();\n }",
"public String getPatientCode() {\r\n\t\treturn patientCode;\r\n\t}",
"public String getPFDataPath() {\n\t\t// TODO Auto-generated method stub\n\t\tString path = pfDir.getPath()+\"/data/\";\n\t\treturn path;\n\t}",
"public String getCPF() {\n return this.CPF;\n }",
"public String getDptCode() {\n return dptCode;\n }",
"public byte[] getP() {\n return p;\n }",
"public String getPath() {\n\t\treturn pfDir.getPath();\n\t}",
"public String getDPIndex(){\n\t\treturn this.m_sDPIndex;\n\t}",
"public int getCPTLNO() {\n return cptlno;\n }",
"public String getPeriode() {\n return this.periode;\n }",
"public com.google.protobuf.ByteString\n getPatStatusCodeBytes() {\n java.lang.Object ref = patStatusCode_;\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 patStatusCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getPatStatusCodeBytes() {\n java.lang.Object ref = patStatusCode_;\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 patStatusCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getplantCd() {\n\t\treturn _PlantCd;\n\t}",
"public int getPRDNO() {\n return prdno;\n }",
"public java.lang.String getPatch() {\n java.lang.String ref = \"\";\n if (patternCase_ == 6) {\n ref = (java.lang.String) pattern_;\n }\n return ref;\n }",
"public Path getPath() {\n return p;\n }",
"public void setCorgPatno(java.lang.String corgPatno) {\n this.corgPatno = corgPatno;\n }",
"public final String getPattern() {\n/* 187 */ return this.m_pattern;\n/* */ }",
"public String getPatientId()\n {\n return patientId;\n }",
"public String getDireccion() {\n return direccion;\n }",
"public String getDireccion() {\n return direccion;\n }",
"public com.google.protobuf.ByteString\n getPatStatusCodeBytes() {\n java.lang.Object ref = patStatusCode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n patStatusCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getPatStatusCodeBytes() {\n java.lang.Object ref = patStatusCode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n patStatusCode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getPId() {\n return (String)getAttributeInternal(PID);\n }",
"public String getDPVerfassertyp(){\n\t\treturn this.m_sDPVerfassertyp;\n\t}",
"List<DocPatRelation> selectRelationPatInfoByPatId(String patId);",
"public String getCpf() {\n return cpf;\n }",
"public PDFDestination getDestination() {\n return dest;\n }",
"public StrColumn getPdbxDatabaseIdPatent() {\n return delegate.getColumn(\"pdbx_database_id_patent\", DelegatingStrColumn::new);\n }",
"public java.lang.String getPatStatusCode() {\n java.lang.Object ref = patStatusCode_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n patStatusCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getPatStatusCode() {\n java.lang.Object ref = patStatusCode_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n patStatusCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Patient getProprietaire() {\n\t\treturn proprietaire;\n\t}",
"public java.lang.Float getPt() {\n return pt;\n }",
"public StringWithCustomFacts getRecFileNumber() {\n return recFileNumber;\n }",
"public java.lang.String getCod_perfil() {\n\t\treturn dataCacheEntry.getCod_perfil();\n\t}",
"public String getRptinfo() {\n return rptinfo;\n }",
"private PiattoModulo getModuloPiatto() {\n return (PiattoModulo)Progetto.getModulo(Ristorante.MODULO_PIATTO);\n }",
"public long getCpf() {\n return this.CPF;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf getPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf)get_store().find_element_user(PRF$26, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public java.lang.String getPatStatusCode() {\n java.lang.Object ref = patStatusCode_;\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 patStatusCode_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getPatStatusCode() {\n java.lang.Object ref = patStatusCode_;\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 patStatusCode_ = s;\n }\n return s;\n }\n }",
"public String getREF_TASK_CD() {\n return REF_TASK_CD;\n }",
"public int getPRDNO() {\n return PRDNO;\n }",
"public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}",
"public String getPicpath() {\n return picpath;\n }",
"public void setPatDt(java.lang.String patDt) {\n this.patDt = patDt;\n }",
"public Perfil getPerfil() {\r\n\t\tif(perfil == null){\r\n\t\t\tperfil = new Perfil();\r\n\t\t}\r\n\t\treturn perfil;\r\n\t}"
]
| [
"0.6323682",
"0.6213506",
"0.6202927",
"0.6192151",
"0.6164226",
"0.5825717",
"0.56282955",
"0.5618403",
"0.55099815",
"0.53370863",
"0.52565557",
"0.5242558",
"0.5242558",
"0.5231468",
"0.52197385",
"0.51970214",
"0.51499134",
"0.51499134",
"0.5141524",
"0.5132747",
"0.51165825",
"0.51165825",
"0.51035994",
"0.51035994",
"0.51003945",
"0.5087043",
"0.5087043",
"0.5062893",
"0.504962",
"0.5045076",
"0.50449723",
"0.5042499",
"0.50419337",
"0.5032844",
"0.5031075",
"0.5026573",
"0.50160193",
"0.4983158",
"0.4981236",
"0.49794647",
"0.49648613",
"0.4959645",
"0.49495745",
"0.49449345",
"0.49395704",
"0.493329",
"0.493329",
"0.49261782",
"0.49261782",
"0.49246886",
"0.4900347",
"0.48975167",
"0.4892854",
"0.48885703",
"0.4884309",
"0.48839542",
"0.48818123",
"0.48605505",
"0.48435855",
"0.48363605",
"0.48232543",
"0.48231703",
"0.4816354",
"0.48144093",
"0.48144093",
"0.4803165",
"0.4788283",
"0.4786629",
"0.47838888",
"0.47760057",
"0.47724268",
"0.47647",
"0.47632894",
"0.47632894",
"0.4755024",
"0.4755024",
"0.4752023",
"0.4751749",
"0.47391427",
"0.47236583",
"0.4721148",
"0.47154903",
"0.47149423",
"0.47149423",
"0.4706523",
"0.47051296",
"0.47042358",
"0.4689518",
"0.46886414",
"0.46782628",
"0.46764532",
"0.4675884",
"0.46724698",
"0.46724698",
"0.46700874",
"0.46684626",
"0.4665328",
"0.46636283",
"0.46583843",
"0.46582302"
]
| 0.7632657 | 0 |
Sets the patTpcd value for this ForeignPatentDocumentsInfo. | public void setPatTpcd(java.lang.String patTpcd) {
this.patTpcd = patTpcd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPatDt(java.lang.String patDt) {\n this.patDt = patDt;\n }",
"public void setCorgPatno(java.lang.String corgPatno) {\n this.corgPatno = corgPatno;\n }",
"public void setPatN(double v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n jcasType.ll_cas.ll_setDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN, v);}",
"public void setPatent(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent patent)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().add_element_user(PATENT$16);\r\n }\r\n target.set(patent);\r\n }\r\n }",
"public java.lang.String getPatTpcd() {\n return patTpcd;\n }",
"public void setPatronymic(String patronymic) {\n this.patronymic = patronymic;\n }",
"public void setPatrolPath(ArrayList<Point> patrolPath) {\n\t\tthis.patrolPath = patrolPath;\n\t}",
"public void applyPattern(final String pat) {\n\t\tthis.pattern = pat;\n\t\tsetLocale(null, null);\n\t\t// reset parsed pattern items\n\t\tpatternItems = null;\n\t}",
"public void setPdid(Long pdid) {\n this.pdid = pdid;\n }",
"public void setTpd(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd tpd)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().find_element_user(TPD$34, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().add_element_user(TPD$34);\r\n }\r\n target.set(tpd);\r\n }\r\n }",
"public void setIdpat(int idpat) {\r\n this.idpat = idpat;\r\n }",
"void setPatientRecordsFilePath(Path patientRecordsFilePath);",
"public Builder setPatStatus(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"public void setPatChargeListResult(java.lang.String param) {\r\n localPatChargeListResultTracker = param != null;\r\n\r\n this.localPatChargeListResult = param;\r\n }",
"public java.lang.String getPatDt() {\n return patDt;\n }",
"public Builder setPatStatus(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"public void setPattern(boolean[][] p)\n {\n pattern = p;\n }",
"public void setDireccion(String direccion);",
"public void transferPatty(Patty p)\r\n {\r\n if (stillRunning)\r\n {\r\n // stop cooking it\r\n p.cooking = false;\r\n p.draggable = false;\r\n \r\n // change the img to a 150x15 rectangle of the right color (side view)\r\n GreenfootImage newPattyImage = new GreenfootImage(150, 15);\r\n newPattyImage.setColor(pickPattyColor(p));\r\n newPattyImage.fillRect(0, 0, 150, 15);\r\n p.setImage(newPattyImage);\r\n \r\n // put it in the right place\r\n p.setLocation(prepTable.burger.getX(), prepTable.burger.getY());\r\n \r\n // remove it from the grill\r\n grill.patties[p.index] = null;\r\n \r\n // put it on the table\r\n prepTable.burger.patty = p;\r\n }\r\n }",
"public void setFltrPrd(String fltrPrd) {\r\n this.fltrPrd = fltrPrd;\r\n }",
"public Builder setPatStatusBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"List<DocPatRelation> selectRelationPatInfoByPatId(String patId);",
"public void setPatient(org.hl7.fhir.ResourceReference patient)\n {\n generatedSetterHelperImpl(patient, PATIENT$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setPatronAutorizacion(String patronAutorizacion)\r\n/* 219: */ {\r\n/* 220:369 */ this.patronAutorizacion = patronAutorizacion;\r\n/* 221: */ }",
"public void applyLocalizedPattern(final String pat) {\n\t\tthis.pattern = translatePattern(pat, formatData.localPatternChars, DateFormatSymbols.patternChars);\n\t\tsetLocale(null, null);\n\t}",
"public Builder setPatStatusBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n patStatus_ = value;\n onChanged();\n return this;\n }",
"public void setApellidoPaterno(String apellidoPaterno);",
"public void setFltrPtk(String fltrPtk) {\r\n this.fltrPtk = fltrPtk;\r\n }",
"public void setDPURL(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPURL)));\n\t\tthis.m_sDPURL=value;\n\t}",
"public void setDYPT(java.lang.String param) {\r\n localDYPTTracker = param != null;\r\n\r\n this.localDYPT = param;\r\n }",
"public void setDYPT(java.lang.String param) {\r\n localDYPTTracker = param != null;\r\n\r\n this.localDYPT = param;\r\n }",
"public void setPattern(String pPattern) {\n pattern = Pattern.compile(pPattern);\n }",
"public void setPatentNum(Integer patentNum) {\r\n this.patentNum = patentNum;\r\n }",
"public void setDireccion(Direccion direccion) {\n this.direccion = direccion;\n }",
"public Builder setPatStatusCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n patStatusCode_ = value;\n onChanged();\n return this;\n }",
"public void setDireccion(String direccion) {\r\n this.direccion = direccion;\r\n }",
"public double getPatN() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_PatN == null)\n jcasType.jcas.throwFeatMissing(\"PatN\", \"hw1.qa.Problem\");\n return jcasType.ll_cas.ll_getDoubleValue(addr, ((Problem_Type)jcasType).casFeatCode_PatN);}",
"public Builder setPatStatusCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n patStatusCode_ = value;\n onChanged();\n return this;\n }",
"public boolean isSetPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PATENT$16) != 0;\r\n }\r\n }",
"public void setPattern(String pattern)\n/* */ {\n/* 71 */ setPatterns(new String[] { pattern });\n/* */ }",
"public void setDireccion(String direccion) {\n this.direccion = direccion;\n }",
"public void setDireccion(String direccion) {\n this.direccion = direccion;\n }",
"@Transactional(readOnly = true)\n\tpublic void seekPatient(TreeManager docMtl) {\n//\t\tpublic void seekPatient(SchemaMtl schemaMtl) {\n\t\t\n\t\tlog.debug(docMtl.getEditPatientC());\n\t\tString sql = \"FROM Patient p \",sql2=\"\";\n\t\tint sl = sql.length();\n\t\tint fl = docMtl.getEditPatientC().getForename().length();\n\t\tif(fl>0){\n\t\t\tsql2+=sql2.length()==0?\"\":\" OR \";\n\t\t\tsql2+=\" lower(substring(p.forename,1,\" +fl +\"))='\" \n\t\t\t+docMtl.getEditPatientC().getForename().toLowerCase() +\"'\";\n\t\t}\n\t\tint pl = docMtl.getEditPatientC().getPatient().length();\n\t\tif(pl>0){\n\t\t\tsql2+=sql2.length()==0?\"\":\" OR \";\n\t\t\tsql2+=\" lower(substring(p.patient,1,\" +pl +\"))='\" \n\t\t\t+docMtl.getEditPatientC().getPatient().toLowerCase() +\"'\";\n\t\t\tif(fl==0){\n\t\t\t\tsql2+=\" OR lower(substring(p.forename,1,\" +pl +\"))='\" \n\t\t\t\t+docMtl.getEditPatientC().getPatient().toLowerCase() +\"'\";\n\t\t\t}\n\t\t}\n\t\tif(docMtl.getEditPatientC().getSex()!=null){\n\t\t\tsql+=sql.length()==sl?\" WHERE \":\" AND \";\n\t\t\tsql+=\" p.sex = '\" +docMtl.getEditPatientC().getSex() +\"' \";\n\t\t}\n\t\tif(sql2.length()>0){\n\t\t\tsql+=sql.length()==sl?\" WHERE \":\" AND \";\n\t\t\tsql+=\"(\" +sql2 +\")\";\n\t\t}\n\t\tlog.debug(sql);\n\t\tdocMtl.setPatientL(em.createQuery(sql).setMaxResults(10).getResultList());\n\t}",
"protected void setDpc(int dpc) {\n this.dpc = dpc;\n }",
"public void setIdperfil(int pIdperfil){\n this.idperfil = pIdperfil;\n }",
"public boolean editData(int index, Patient pat)\r\n\t{\r\n\t\ttry\r\n\t\t{\t\r\n\t\t\t//replaces the data at the current index with the patient data passed\r\n\t\t\tarrayPatients[index] = pat;\r\n\t\t\twritePatientListToFile();// rewrite the file\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void setPerUriPath(Boolean perUriPath) {\n this.perUriPath = perUriPath;\n }",
"public void setDSCP(int dSCP) {\r\n\t\tthis.DSCP = dSCP;\r\n\t}",
"public Patient(nf.Patient p) {\n initComponents();\n this.pack();\n Patient.setDefaultLookAndFeelDecorated(true);\n this.setExtendedState(Patient.MAXIMIZED_BOTH);\n setDefaultCloseOperation(Patient.DO_NOTHING_ON_CLOSE);\n \n this.pat = p;\n initRenderer();\n buildTree();\n }",
"private void setPatch(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n patternCase_ = 6;\n pattern_ = value;\n }",
"void setDoctorRecordsFilePath(Path doctorRecordsFilePath);",
"public void setTempoPatrulha(int tempoPatrulha) {\n this.tempoPatrulha = tempoPatrulha;\n }",
"protected abstract void setPpl();",
"public GlobFileSet setDirectoryPattern(String pattern)\n\t\t{\n\t\tm_dirPattern = Pattern.compile(pattern);\n\t\treturn (this);\n\t\t}",
"public void setPatSum(java.math.BigDecimal param) {\r\n this.localPatSum = param;\r\n }",
"public void setDsCPF(java.lang.String dsCPF) {\n this.dsCPF = dsCPF;\n }",
"public void setDeletePatientResponse(eu.aladdin_project.storagecomponent.DeletePatientResponseDocument.DeletePatientResponse deletePatientResponse)\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.DeletePatientResponseDocument.DeletePatientResponse target = null;\n target = (eu.aladdin_project.storagecomponent.DeletePatientResponseDocument.DeletePatientResponse)get_store().find_element_user(DELETEPATIENTRESPONSE$0, 0);\n if (target == null)\n {\n target = (eu.aladdin_project.storagecomponent.DeletePatientResponseDocument.DeletePatientResponse)get_store().add_element_user(DELETEPATIENTRESPONSE$0);\n }\n target.set(deletePatientResponse);\n }\n }",
"public void unsetPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PATENT$16, 0);\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent getPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public void setDireccionTI(String direccionTI) {\n this.direccionTI = direccionTI;\n }",
"public void setDPWeiterePersonen(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPWeiterePersonen)));\n\t\tthis.m_sDPWeiterePersonen=value;\n\t}",
"public void setPiid(Long piid) {\n this.piid = piid;\n }",
"public Builder clearPatStatus() {\n bitField0_ = (bitField0_ & ~0x00000002);\n patStatus_ = getDefaultInstance().getPatStatus();\n onChanged();\n return this;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent addNewPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().add_element_user(PATENT$16);\r\n return target;\r\n }\r\n }",
"private static void changePatient(){\r\n // opretter ny instans af tempPatinet som overskriver den gamle\r\n Patient p = new Patient(); // det her kan udskiftes med en nulstil funktion for at forsikre at der altid kun er en patient.\r\n Patient.setCprNumber((Long) null);\r\n }",
"public void setDcrp(String dcrp) {\n\t\tthis.dcrp = dcrp == null ? null : dcrp.trim();\n\t}",
"public void setCpf(String cpf) {\r\n\t\tthis.cpf = cpf;\r\n\t}",
"public void setPatentSeqId(gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId patentSeqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().add_element_user(PATENTSEQID$0);\r\n }\r\n target.set(patentSeqId);\r\n }\r\n }",
"public void setPredicateBasedTriplePattern( String pred, TriplePattern tp ) ;",
"public void setPrf(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf prf)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf)get_store().find_element_user(PRF$26, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Prf)get_store().add_element_user(PRF$26);\r\n }\r\n target.set(prf);\r\n }\r\n }",
"public void setP(boolean p) {\n\tthis.p = p;\n }",
"public void setPath(String path)\r\n/* 21: */ {\r\n/* 22:53 */ this.path = path;\r\n/* 23: */ }",
"public Builder clearPatStatus() {\n bitField0_ = (bitField0_ & ~0x00000001);\n patStatus_ = getDefaultInstance().getPatStatus();\n onChanged();\n return this;\n }",
"public void setDPVerfassertyp(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPVerfassertyp)));\n\t\tthis.m_sDPVerfassertyp=value;\n\t}",
"public void setPC(int loc) {\n pc = loc;\n }",
"@Override\n public void set(DP value) {\n if (value == null || \"\".equals(value)) {\n isValid.set(true);\n source.set(null);\n return;\n }\n final SP parsed;\n try {\n parsed = formatter.parse(value);\n } catch (Exception e) {\n isValid.set(false);\n // we failed to parse the value, but still treat this as touching the source property\n source.setTouched(true);\n return;\n }\n isValid.set(true);\n source.set(parsed);\n }",
"public void setPattern(String pattern) {\n\t\tthis.patterns.clear();\n\t\tthis.entries.clear();\n\t\taddPattern(pattern);\n\t}",
"public Builder clearPatStatusCode() {\n bitField0_ = (bitField0_ & ~0x00000004);\n patStatusCode_ = getDefaultInstance().getPatStatusCode();\n onChanged();\n return this;\n }",
"public void setDPIndex(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPIndex)));\n\t\tthis.m_sDPIndex=value;\n\t}",
"public Target setJspUrlPattern(String pattern) {\n if (Strings.isValid(pattern)) {\n this.jspUrlPattern = Strings.trim(pattern);\n }\n logger.trace(\"target '{}' has URL pattern '{}'\", id, this.jspUrlPattern);\n return this;\n }",
"public void setParagraph(String paragraph){\r\n\t\tthis.paragraph = paragraph;\r\n\t}",
"public void setPc(int pc) {\n this.pc = pc;\n }",
"void setDeltaPInfo(String dpLoadcase, Double refDP);",
"public void setDireccion(String direccion){\n if(direccion == null){\n throw new IllegalArgumentException(\"Direccion de domicilio igual a null\");\n }\n this.direccion = direccion;\n }",
"public void setPattern(Pattern pattern) {\n this.pattern = pattern;\n }",
"public void setR_PnRef(String R_PnRef) {\n super.setR_PnRef(R_PnRef);\n if (R_PnRef != null) {\n setDocumentNo(R_PnRef);\n }\n }",
"public Builder clearPatStatusCode() {\n bitField0_ = (bitField0_ & ~0x00000008);\n patStatusCode_ = getDefaultInstance().getPatStatusCode();\n onChanged();\n return this;\n }",
"public ProvisionableStemFinder assignDirectAssignment(Boolean directAssignment) {\n this.directAssignment = directAssignment;\n return this;\n }",
"private void setPattern(Settings set) {\n PATTERN_JAVA = Pattern.compile(set.getValue(\"pattern.java\"));\n PATTERN_TODAY = Pattern.compile(set.getValue(\"pattern.today\"));\n PATTERN_YESTERDAY = Pattern.compile(set.getValue(\"pattern.yesterday\"));\n }",
"public void setSeed2DPt(Point seedPt) {\r\n this.seed2DPt = seedPt;\r\n }",
"@Override\n\tpublic void setPID(int pid) {\n\t\tthis.pID = pid;\n\t\t\n\t}",
"public final void setFoundUIP(java.lang.Boolean founduip)\r\n\t{\r\n\t\tsetFoundUIP(getContext(), founduip);\r\n\t}",
"public ElementDefinitionDt setPath( String theString) {\n\t\tmyPath = new StringDt(theString); \n\t\treturn this; \n\t}",
"public Builder setPatStatusCodeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n patStatusCode_ = value;\n onChanged();\n return this;\n }",
"public void setCod_perfil(java.lang.String newCod_perfil) {\n\t\tif (instanceExtension.needValuesOnMarkDirty())\n\t\t\tinstanceExtension.markDirty(4,getCod_perfil(),newCod_perfil);\n\t\telse\n\t\t\tinstanceExtension.markDirty(4);\n\t\tdataCacheEntry.setCod_perfil(newCod_perfil);\n\t}",
"public PDVisibleSigProperties setPdVisibleSignature(PDVisibleSignDesigner pdVisibleSignature)\n {\n this.pdVisibleSignature = pdVisibleSignature;\n return this;\n }",
"private void setDrivingPIDS(PID pid) {\n driverFR.setPid(pid);\n driverFL.setPid(pid);\n driverFL.setPid(pid);\n driverBL.setPid(pid);\n }",
"public baconhep.TTau.Builder setPt(float value) {\n validate(fields()[0], value);\n this.pt = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public java.lang.String getCorgPatno() {\n return corgPatno;\n }",
"public void setPatientId(int patientId) {\n\t\t\t\n\t\tthis.patientId=patientId;\t\t\n\t}"
]
| [
"0.58925337",
"0.5635852",
"0.56195974",
"0.55032265",
"0.5487723",
"0.5246877",
"0.51796657",
"0.50330615",
"0.49844104",
"0.4977298",
"0.49711743",
"0.481466",
"0.47825968",
"0.4755378",
"0.47219083",
"0.4715421",
"0.47006273",
"0.4684803",
"0.46695894",
"0.46677276",
"0.46052435",
"0.4601375",
"0.4579794",
"0.4578173",
"0.456785",
"0.45552447",
"0.4532762",
"0.45225453",
"0.45085412",
"0.4502662",
"0.4502662",
"0.44982845",
"0.44699004",
"0.44651496",
"0.44309363",
"0.44167328",
"0.4410061",
"0.44083026",
"0.44024748",
"0.43998393",
"0.43676987",
"0.43676987",
"0.43653655",
"0.4297996",
"0.42900997",
"0.42877662",
"0.42758942",
"0.4268747",
"0.42657134",
"0.4264731",
"0.4258937",
"0.4254393",
"0.4246063",
"0.42396528",
"0.4238744",
"0.42355305",
"0.42258602",
"0.42217904",
"0.42154166",
"0.4211949",
"0.42114934",
"0.4204716",
"0.4203787",
"0.4200803",
"0.41969374",
"0.41836098",
"0.41807246",
"0.4178987",
"0.4166651",
"0.41616726",
"0.4154901",
"0.4153361",
"0.4149284",
"0.414729",
"0.41461527",
"0.41426837",
"0.41423115",
"0.41375083",
"0.413706",
"0.4134547",
"0.41294152",
"0.4127918",
"0.41177267",
"0.41134962",
"0.41116562",
"0.41064522",
"0.41053134",
"0.41034114",
"0.41030598",
"0.40999702",
"0.40988126",
"0.40928933",
"0.40852714",
"0.4070477",
"0.40676633",
"0.4065841",
"0.40598273",
"0.40592423",
"0.40555018",
"0.40535805"
]
| 0.73885834 | 0 |
Return type metadata object | public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MetadataType getType();",
"public MetadataType getType() {\n return type;\n }",
"public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }",
"private Metadata getMetadata(RubyModule type) {\n for (RubyModule current = type; current != null; current = current.getSuperClass()) {\n Metadata metadata = (Metadata) current.getInternalVariable(\"metadata\");\n \n if (metadata != null) return metadata;\n }\n \n return null;\n }",
"public Metadata getMetadata( MetadataType type )\n\t{\n\t\tfor( Metadata metadata: mMetadata )\n\t\t{\n\t\t\tif( metadata.getMetadataType() == type )\n\t\t\t{\n\t\t\t\treturn metadata;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"Metadata getMetaData();",
"public List<TypeMetadata> getTypeMetadata() {\n return types;\n }",
"@Override\n public Class<? extends Metadata> getMetadataType() {\n throw new RuntimeException( \"Not yet implemented.\" );\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 MetaData getMetaData();",
"private Class<?> getType(final Object metadata, final ValueNode node) throws ParseException {\n if (node.type != null) {\n return readType(node);\n }\n Class type;\n if (metadata instanceof ReferenceSystemMetadata || metadata instanceof Period || metadata instanceof AbstractTimePosition || metadata instanceof Instant) {\n final Method getter = ReflectionUtilities.getGetterFromName(node.name, metadata.getClass());\n return getter.getReturnType();\n } else {\n type = standard.asTypeMap(metadata.getClass(), KeyNamePolicy.UML_IDENTIFIER, TypeValuePolicy.ELEMENT_TYPE).get(node.name);\n }\n final Class<?> special = specialized.get(type);\n if (special != null) {\n return special;\n }\n return type;\n }",
"public Map<String, Variant<?>> GetMetadata();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public TypeSummary getTypeSummary() {\r\n return type;\r\n }",
"String provideType();",
"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();",
"public Type getType();",
"@Override\n public String toString() {\n return metaObject.getType().toString();\n }",
"public String metadataClass() {\n return this.metadataClass;\n }",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"abstract public Type getType();",
"public String type();",
"private String getType(){\r\n return type;\r\n }",
"protected abstract String getType();",
"Coding getType();",
"@Override\n TypeInformation<T> getProducedType();",
"type getType();",
"TypeDefinition createTypeDefinition();",
"abstract public String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract Type getType();",
"protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }",
"String getTypeAsString();",
"public gov.niem.niem.structures._2_0.MetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"TypeRef getType();",
"String getMetadataClassName();"
]
| [
"0.7969707",
"0.7373198",
"0.7358018",
"0.7090138",
"0.67353225",
"0.67259765",
"0.66725683",
"0.65644145",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6510972",
"0.648206",
"0.6352795",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.62937546",
"0.6285329",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.627527",
"0.6265675",
"0.6235292",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6221452",
"0.6209023",
"0.6196509",
"0.61801785",
"0.6180045",
"0.6168281",
"0.61679584",
"0.6166462",
"0.6161522",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6141369",
"0.6140734",
"0.6133515",
"0.61228573",
"0.6116976",
"0.6111749"
]
| 0.0 | -1 |
Initialize the DeepWalk model with a given graph. | public void initialize(IGraph<V, E> graph) {
int nVertices = graph.numVertices();
int[] degrees = new int[nVertices];
for (int i = 0; i < nVertices; i++)
degrees[i] = graph.getVertexDegree(i);
initialize(degrees);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initializeFromGraph(Graph<HyperNode, DefaultEdge> graph) {\n Map<HyperNode, Node> nodesMap = addNodes(graph);\n addEdges(graph, nodesMap);\n }",
"public Graph() {\r\n\t\tinit();\r\n\t}",
"public CycleDetector(Graph<V, E> graph)\n {\n this.graph = GraphTests.requireDirected(graph);\n }",
"void initialize(Graph graph, Node targetStart, Node searchStart, ExpandCounter counter);",
"public Graph() {\n }",
"public BegsBuilder(Graph graph) {\n this.graph = graph;\n }",
"@Override\r\n public void init(weighted_graph g) {\r\n this.Graph = g;\r\n }",
"private void initFromGraph() {\n CHPreparationGraph prepareGraph;\n if (chConfig.getTraversalMode().isEdgeBased()) {\n TurnCostStorage turnCostStorage = graph.getTurnCostStorage();\n if (turnCostStorage == null) {\n throw new IllegalArgumentException(\"For edge-based CH you need a turn cost storage\");\n }\n logger.info(\"Creating CH prepare graph, {}\", getMemInfo());\n CHPreparationGraph.TurnCostFunction turnCostFunction = CHPreparationGraph.buildTurnCostFunctionFromTurnCostStorage(graph, chConfig.getWeighting());\n prepareGraph = CHPreparationGraph.edgeBased(graph.getNodes(), graph.getEdges(), turnCostFunction);\n nodeContractor = new EdgeBasedNodeContractor(prepareGraph, chBuilder, pMap);\n } else {\n logger.info(\"Creating CH prepare graph, {}\", getMemInfo());\n prepareGraph = CHPreparationGraph.nodeBased(graph.getNodes(), graph.getEdges());\n nodeContractor = new NodeBasedNodeContractor(prepareGraph, chBuilder, pMap);\n }\n maxLevel = nodes;\n // we need a memory-efficient priority queue with an efficient update method\n // TreeMap is not memory-efficient and PriorityQueue does not support an efficient update method\n // (and is not memory efficient either)\n sortedNodes = new MinHeapWithUpdate(prepareGraph.getNodes());\n logger.info(\"Building CH prepare graph, {}\", getMemInfo());\n StopWatch sw = new StopWatch().start();\n CHPreparationGraph.buildFromGraph(prepareGraph, graph, chConfig.getWeighting());\n logger.info(\"Finished building CH prepare graph, took: {}s, {}\", sw.stop().getSeconds(), getMemInfo());\n nodeContractor.initFromGraph();\n }",
"public void init(weighted_graph g);",
"public void setGraph(Graph<V,E> graph);",
"public SAP(Digraph graph) {\n this.graph = graph;\n ancestor = -1;\n distance = Integer.MAX_VALUE;\n }",
"@Override\n\tpublic void init(directed_weighted_graph g) {\n\t\tthis.dwg = g;\n\t}",
"public BreadthFirstTraversal(Graph<V> graph) {\n super(graph);\n }",
"public Graphs() {\n graph = new HashMap<>();\n }",
"public Graph(boolean p_isDirectedGraph) {\n\t\tisDirectedGraph = p_isDirectedGraph;\n\t}",
"private GraphParser(){ \n\t}",
"public Builder<T> copyIn(FlowGraph<T> graph) {\n basicBuilder.copyIn(graph);\n return this;\n }",
"public DepthFirstSearch(Graph graph, int[] order) {\n // Same as constructor above except for the if statement.\n }",
"public Graph(Scanner scanner) {\n this(scanner.nextInt());\n int m = scanner.nextInt();\n for (int i = 0; i < m; i++) {\n int v = scanner.nextInt();\n int w = scanner.nextInt();\n int d = scanner.nextInt();\n addEdge(v, w, d);\n addEdge(w, v, d);\n }\n }",
"@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void initializeGraph() {\n checkpointPrefix = Tensors.create((getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath() + \"final_model.ckpt\").toString());\n checkpointDir = getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath();\n graph = new Graph();\n sess = new Session(graph);\n InputStream inputStream;\n try {\n inputStream = getAssets().open(\"final_graph_hdd.pb\");\n byte[] buffer = new byte[inputStream.available()];\n int bytesRead;\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n output.write(buffer, 0, bytesRead);\n }\n graphDef = output.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n }\n graph.importGraphDef(graphDef);\n try {\n sess.runner().feed(\"save/Const\", checkpointPrefix).addTarget(\"save/restore_all\").run();\n Toast.makeText(this, \"Checkpoint Found and Loaded!\", Toast.LENGTH_SHORT).show();\n }\n catch (Exception e) {\n sess.runner().addTarget(\"init\").run();\n Log.i(\"Checkpoint: \", \"Graph Initialized\");\n }\n }",
"public DFSGraph() {\n this(new HashMap<>(), HashMap::new, HashSet::new, HashSet::new);\n }",
"private void initializeGraph() {\r\n map = new HashMap<>();\r\n graph = new List[n];\r\n for (int i = 0; i < n; i++) graph[i] = new ArrayList<>();\r\n\r\n\r\n }",
"public Graph() {\n\t\tdictionary=new HashMap<>();\n\t}",
"public void initialise(Graph graph) {\n Entry[][] matrix = graph.matrix();\n matrix[START_INDEX][0] = new Entry(0.0, 0.0);\n double initial = 1.0 / graph.size();\n\n for (int i = 1; i < graph.size(); i++) {\n matrix[i][0] = new Entry(initial, initial);\n }\n }",
"public Population(Graph graph)\r\n/* 13: */ {\r\n/* 14:36 */ g = graph.cloneGraph();\r\n/* 15: */ }",
"public void setGraph(String graph) {\n this.graph = graph;\n }",
"public Graph(){//constructor\n //edgemap\n srcs=new LinkedList<>();\n maps=new LinkedList<>();\n chkIntegrity(\"edgemap\");\n \n nodes=new LinkedList<>();\n //m=new EdgeMap();\n }",
"@Before\n public void setUp() {\n a = new Graph(5);\n \n }",
"public void fit(IGraph<V, E> graph, int walkLength) {\n if (!initCalled)\n initialize(graph);\n //First: create iterators, one for each thread\n\n GraphWalkIteratorProvider<V> iteratorProvider = new RandomWalkGraphIteratorProvider<>(graph, walkLength, seed,\n NoEdgeHandling.SELF_LOOP_ON_DISCONNECTED);\n\n fit(iteratorProvider);\n }",
"@Override\n\tpublic void init(graph g) {\n\t\tthis.GA = g;\n\t}",
"public void buildGraph(){\n\t}",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"protected void setUpGraph() {\n mAppComponent = DaggerAppComponent\n .builder()\n .appModule(new AppModule(this))\n .build();\n }",
"public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}",
"public DotGraph(String graphname) {\n this.graphname = graphname;\n this.isSubGraph = false;\n this.nodes = new HashMap<String, DotGraphNode>(100);\n this.drawElements = new LinkedList<Renderable>();\n this.attributes = new LinkedList<DotGraphAttribute>();\n }",
"public DiGraphReader() {\n // Configure the graph reader here\n g = null;\n e = null;\n }",
"public MutableNodeSet(Graph graph) {\n\t\tsuper(graph);\n\t\tthis.members = new TreeSet<Integer>();\n\t\tinitializeInOutWeights();\n\t}",
"public DepthFirstSearch(Graph graph) throws Exception {\n\n this.graph = graph;\n int n = graph.getNumV();\n\n parent = new int[n];\n Arrays.fill( parent , -1);\n\n visited = new boolean[n];\n Arrays.fill( visited , false );\n\n discoveryOrder = new int[n];\n finishOrder = new int[n];\n\n for (int i = 0; i < n; i++) {\n if (!visited[i])\n depthFirstSearch(i);\n }\n\n }",
"public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"public LPGActionGraph(LPGActionGraph actionGraph) {\n\t\n\t\tthis.maxLevel = actionGraph.maxLevel;\n\t\tthis.inconsistencyCount = actionGraph.inconsistencyCount;\n\t\tthis.rand = new Random();\n\t\tthis.steps = DeepCloneMap.deepClone(actionGraph.steps);\n\t\tthis.facts = DeepCloneMap.deepClone(actionGraph.facts);\n\t\tthis.inconsistencies = DeepCloneMap.deepClone(actionGraph.inconsistencies);\n\t\tthis.graph = actionGraph.graph;\n\t\tthis.graphQuality = actionGraph.graphQuality;\n\t}",
"public DefaultDirectedWeightedFlowGraph(DefaultDirectedWeightedGraph<V, E> dWG) {\r\n this.graph = dWG;\r\n\r\n }",
"public DirectedAcyclicGraphImpl() {\r\n super();\r\n topologicalsorting = new TopologicalSorting( this );\r\n }",
"private Graph<Node, DefaultEdge> initialiseSpaceGraph() {\n Graph<Node, DefaultEdge> g = new SimpleGraph<>(DefaultEdge.class);\n g = addNodes(g);\n g = addEdges(g);\n return g;\n }",
"private DGraph initFactory(DGraph g) {\n\t\tg= new DGraph();\n\t\tNodeData d0 = new NodeData(0);\n\t\tNodeData d1 = new NodeData(1);\n\t\tNodeData d2 = new NodeData(2);\n\t\tNodeData d3 = new NodeData(3);\n\t\tNodeData d4 = new NodeData(4);\n\t\tg.addNode(d0);\n\t\tg.addNode(d1);\n\t\tg.addNode(d2);\n\t\tg.addNode(d3);\n\t\tg.addNode(d4);\n\t\tg.connect(1, 2, 3);\n\t\tg.connect(2, 1, 4);\n\t\tg.connect(3, 4, 5);\n\t\tg.connect(4,3, 7);\n\t\tg.connect(3,2, 4);\n\t\tg.connect(3,1, 5);\n\t\tg.connect(1,3, 2);\n\t\treturn g;\n\t}",
"@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}",
"private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}",
"public Dijkstra(Graph graph)\n\t{\n\t\tthis.listNode = graph.getListNode();\n\t\tthis.listEdge = graph.getListEdge();\n\t}",
"public DSAGraph()\n\t{\n\t\tvertices = new DSALinkedList();\n\t\tedgeCount = 0;\n\t}",
"public void init(weighted_graph g) {\n this.ga = g;\n }",
"public void setGraph(Graph2D graph) {\n mBI = null;\n mGraph = graph;\n updateUI();\n }",
"public SimAbstractGraph(GraphConfig graphConfig, SimpleDirectedGraph innerGraph) {\n super(innerGraph);\n referenceGraph = new JungAdapterGraph<Agent, TestbedEdge>((SimpleDirectedGraph) innerGraph.clone());\n this.graphConfig = graphConfig;\n }",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"Graph(){\n\t\tadjlist = new HashMap<String, Vertex>();\n\t\tvertices = 0;\n\t\tedges = 0;\n\t\tkeys = new ArrayList<String>();\n\t}",
"public GraphWrapper() {\n\t\tthis.graph = new Graph<T,E>();\n\t}",
"protected GraphNode() {\n }",
"protected GraphNode() {\n }",
"public GraphInfo(){}",
"public void init() {\n\t\tfor (Node node : nodes)\n\t\t\tnode.init();\n\t}",
"public void initialize(Node currentNode) {\n\t\tthis.currentNode = currentNode;\n\t}",
"public static PartialTreeList initialize(Graph graph) {\n\t\t\n\t\tPartialTreeList ptl= new PartialTreeList();\n\t\tfor(int i=0; i<graph.vertices.length;i++)\n\t\t{\n\t\t\tPartialTree x= new PartialTree(graph.vertices[i]);\n\t\t\tgraph.vertices[i].parent=x.getRoot();\n\t\t\tVertex.Neighbor ptr= graph.vertices[i].neighbors;\n\t\t\twhile(ptr!=null)\n\t\t\t{\n\t\t\t\tPartialTree.Arc A= new PartialTree.Arc(graph.vertices[i], ptr.vertex, ptr.weight);\n\t\t\t\tx.getArcs().insert(A);\n\t\t\t\tptr=ptr.next;\n\t\t\t}\n\t\t\t\n\t\t\tptl.append(x);\n\t\t}\n\t\treturn ptl;\n\t}",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"public Graph(Map<Vertex<? extends Position>, List<Vertex<? extends Position>>> graph){\n\t\tthis.mapGraph = graph;\n\t}",
"public void initGraph(GraphView graph) {\n graph.getViewport().setXAxisBoundsManual(true);\n graph.getViewport().setMinX(0);\n graph.getViewport().setMaxX(graphWidth); //ici il faut setter maxWidth\n\n graph.getGridLabelRenderer().setLabelVerticalWidth(100);\n for(CustomPair<String, CustomPair<Integer, Integer>> can:cans)\n {\n graph.addSeries(series.get(can.getKey()));\n series.get(can.getKey()).setTitle(can.getKey());\n }\n graph.getLegendRenderer().setVisible(true);\n graph.getLegendRenderer().setBackgroundColor(Color.TRANSPARENT);\n graph.setTitle(name);\n graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.MIDDLE);\n graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.BOTTOM);\n\n graph.getGridLabelRenderer().setGridColor(themeColor);\n graph.getGridLabelRenderer().setHorizontalLabelsColor(themeColor);\n graph.getGridLabelRenderer().setVerticalLabelsColor(themeColor);\n graph.getGridLabelRenderer().setVerticalAxisTitleColor(themeColor);\n graph.getLegendRenderer().setTextColor(themeColor);\n }",
"public Graph() {\r\n\t\tnodePos = new HashMap<Integer, Vec2D>();\r\n\t\tconnectionLists = new HashMap<Integer, List<Connection>>();\r\n\t\t//screenWidth = Config.SCREEN_WIDTH;\r\n\t}",
"public GraphImpl(int[][] g) {\n\t\tanzKnoten = g.length;\n\t\tgraph = g;\n\t}",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic Graph() {\r\n \tthis.vertex = new HashMap<T, Vertex>();\r\n \tthis.edge = new HashMap<Integer, Edge>();\r\n }",
"public void loadOrCreateGraph(String graphPath, String dumpPath) {\n setGraphPath(graphPath);\n setDumpsDirectoryToCreateGraph(dumpPath);\n loadOrCreateGraph();\n }",
"public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }",
"public Adamax(Graph graph) {\n this(graph, LEARNING_RATE_DEFAULT, BETA_ONE_DEFAULT, BETA_TWO_DEFAULT, EPSILON_DEFAULT);\n }",
"public SAP(Digraph G) {\n\n if (G == null) throw new IllegalArgumentException(\"Null graph\");\n\n dg = new Digraph(G);\n\n }",
"@Override protected void onPreExecute() { g = new UndirectedGraph(10); }",
"public HashGraph()\n {\n graph = new HashMap <>();\n }",
"public SesameMGraph setUp(String testName) throws RepositoryException, IOException {\n final File dataDir= File.createTempFile(\"SesameGraph\", \"Test\");\n dataDir.delete();\n dataDir.mkdirs();\n cleanDirectory(dataDir);\n \n\n \n graph= new SesameMGraph();\n graph.initialize(dataDir);\n //graph.activate(cCtx);\n return graph;\n }",
"public void initialize() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\tHPNUlilities.dumpLocalGraph(subNetwork, subNetFile);\n\t\t/* Create level file for the original graph */\n\t\tHPNUlilities.createLevelFile(codePath, oriGraphFile, oriLevel,\n\t\t\t\tglobalLevelFile, penaltyType, partitionSize);\n\n\t}",
"public JmiModelView(JmiModelGraph modelGraph)\n {\n this.modelGraph = modelGraph;\n classVertexAttributes = new HashMap<JmiClassVertex, ClassAttributes>();\n deriveAttributes();\n }",
"public Builder() {\n this(Graphs.<N, E>createUndirected());\n }",
"public ConsoleView(GraphModel g) {\n this.graphModel = g;\n g.addObserver(this);\n }",
"public WGraph_DS()\n {\n modeCount=0;\n edges=0;\n HashMap<Integer,node_info>nodesHash=new HashMap<>();\n HashMap<Integer,Neighbors>edgesHash=new HashMap<>();\n }",
"public void initialize() {\n // add direct connections to routing table\n for (Bunker neighbour : neighbours) {\n routing.put(neighbour.getId(), neighbour);\n }\n // add yourself\n routing.put(id, this);\n bunkerIdToCount.put(id, count);\n // kick off the algo\n initiate();\n }",
"public AdjacencyListGraph(boolean isDirected) {\r\n\t\tthis.isDirected = isDirected;\r\n\t\tvertices = new HashMap<>();\r\n\t\tadjacencyLists = new HashMap<>();\r\n\t}",
"public void initialize(int[] graphVertexDegrees) {\n log.info(\"Initializing: Creating Huffman tree and lookup table...\");\n GraphHuffman gh = new GraphHuffman(graphVertexDegrees.length);\n gh.buildTree(graphVertexDegrees);\n lookupTable = new InMemoryGraphLookupTable(graphVertexDegrees.length, vectorSize, gh, learningRate);\n initCalled = true;\n log.info(\"Initialization complete\");\n }",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"public FollowGraph() {\r\n users = new ArrayList<>();\r\n connections = new boolean[MAX_USERS][MAX_USERS];\r\n }",
"public void visit(DirectedGraph graph) {\n if (!graph.getNodes().isEmpty()) {\n layoutSubgraphs(graph);\n\n for (int i = 0; i < steps.size(); i++) {\n GraphVisitor visitor = steps.get(i);\n visitor.visit(graph);\n }\n for (int i = steps.size() - 1; i >= 0; i--) {\n GraphVisitor visitor = steps.get(i);\n visitor.revisit(graph);\n }\n\n // System.out.println();\n // System.out.println(\"height: \" + graph.getLayoutSize().height);\n // System.out.println(\"width: \" + graph.getLayoutSize().width);\n }\n }",
"private TbusRoadGraph() {}",
"Graph testGraph();",
"public SAP(Digraph G) {\n if (G == null) throw new IllegalArgumentException();\n wordGraph = new Digraph(G);\n }",
"protected void resetGraph() {\n for (List<Edge> path : graph) {\r\n for (Edge e : path) {\r\n e.flow = 0;\r\n }\r\n }\r\n }",
"public void startGraph (String graph) throws NotExistingGraphException {\n // Check if an execution handler is associated to this graph\n executionHandlers.computeIfAbsent(graph, k -> new FlowExecutionHandler(graph, this, this.flow));\n FlowExecutionHandler executionHandler = executionHandlers.get(graph);\n\n executionHandler.run();\n }",
"private void initializeEdges() {\n for (NasmInst inst : nasm.listeInst) {\n if (inst.source == null || inst.destination == null)\n return;\n Node from = inst2Node.get(label2Inst.get(inst.source.toString()));\n Node to = inst2Node.get(label2Inst.get(inst.destination.toString()));\n if (from == null || to == null)\n return;\n graph.addEdge(from, to);\n }\n }",
"public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }",
"public UGraph()\r\n {\r\n uNodes = new HashMap<Integer , UNode>();\r\n uEdges = new HashMap<Integer, UEdge>();\r\n }",
"private void initGraph() {\n nodeMap = Maps.newIdentityHashMap();\n stream.forEach(t -> {\n Object sourceKey = sourceId.extractValue(t.get(sourceId.getTableId()));\n Object targetKey = targetId.extractValue(t.get(targetId.getTableId()));\n ClosureNode sourceNode = nodeMap.get(sourceKey);\n ClosureNode targetNode = nodeMap.get(targetKey);\n if (sourceNode == null) {\n sourceNode = new ClosureNode(sourceKey);\n nodeMap.put(sourceKey, sourceNode);\n }\n if (targetNode == null) {\n targetNode = new ClosureNode(targetKey);\n nodeMap.put(targetKey, targetNode);\n }\n sourceNode.next.add(targetNode);\n });\n\n }",
"public CC(final Graph graph) {\n marked = new boolean[graph.vertices()];\n id = new int[graph.vertices()];\n size = new int[graph.vertices()];\n for (int v = 0; v < graph.vertices(); v++) {\n if (!marked[v]) {\n dfs(graph, v);\n count++;\n }\n }\n }",
"public void initFromModel(final BBFatheredPatPathoArray src)\n\t{\n\t\tinit() ;\n\t\t\n\t\tif (null == src)\n\t\t\treturn ;\n\n\t\t_PatPatho = new LdvModelNodeArray(src._PatPatho) ;\n\t\t_FatherNode = new LdvModelNode(src._FatherNode) ;\n\t}",
"private void initializeGraphAsEmpty() {\n int max = getNumNodes();\n\n parentMatrix = new int[getNumNodes()][max];\n childMatrix = new int[getNumNodes()][max];\n\n for (int i = 0; i < getNumNodes(); i++) {\n parentMatrix[i][0] = 1; //set first node\n childMatrix[i][0] = 1;\n }\n\n for (int i = 0; i < getNumNodes(); i++) {\n for (int j = 1; j < max; j++) {\n parentMatrix[i][j] = -5; //set first node\n childMatrix[i][j] = -5;\n }\n }\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 }",
"public JdbNavTree(TreeModel treeModel) {\r\n super(treeModel);\r\n commonInit();\r\n }",
"public void constructGraph(){\r\n\t\tmyGraph = new Graph();\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tmyGraph.addVertex(allSpots[i]);\r\n\t\t}\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tint th = i;\r\n\t\t\twhile(th%6!=0) {\r\n\t\t\t\tth--;\r\n\t\t\t}\r\n\t\t\tfor(int h=th;h<=th+5;h++) {\r\n\t\t\t\tif(h!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[h])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[h]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint tv=i;\r\n\t\t\twhile(tv-6>0) {\r\n\t\t\t\ttv=tv-6;\r\n\t\t\t}\r\n\t\t\tfor(int v=tv;v<36; v=v+6) {\r\n\t\t\t\tif(v!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[v])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[v]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Add verticies that store the Spot objects\r\n\t\t//Add edges to connect spots that share a property along an orthogonal direction\r\n\r\n\t\t//This is the ONLY time it is ok to iterate the array.\r\n\t\t\r\n\t\t//myGraph.addVert(...);\r\n\t\t//myGraph.addEdge(...);\r\n\t}"
]
| [
"0.6611742",
"0.62020046",
"0.61904454",
"0.59934175",
"0.5931497",
"0.5913265",
"0.589355",
"0.5713806",
"0.56949234",
"0.5626837",
"0.56157047",
"0.5594604",
"0.55901295",
"0.5573625",
"0.556309",
"0.5513538",
"0.54978234",
"0.5473571",
"0.5459021",
"0.5457998",
"0.54430234",
"0.54331225",
"0.5420905",
"0.5399312",
"0.5394221",
"0.5360852",
"0.5357988",
"0.5330495",
"0.5318332",
"0.5315478",
"0.5301438",
"0.5280255",
"0.52787274",
"0.52715063",
"0.5267396",
"0.52608955",
"0.5248794",
"0.52479047",
"0.5244553",
"0.52365136",
"0.52259064",
"0.52042556",
"0.51910126",
"0.51674",
"0.5153681",
"0.5147804",
"0.51459146",
"0.51455367",
"0.51403993",
"0.51258487",
"0.51098675",
"0.51066256",
"0.51034755",
"0.51001173",
"0.5094936",
"0.50880396",
"0.50880396",
"0.5084475",
"0.5080466",
"0.506904",
"0.5057858",
"0.50417686",
"0.50376815",
"0.50302464",
"0.5007503",
"0.50068194",
"0.5005173",
"0.50019515",
"0.49561462",
"0.49555275",
"0.49312207",
"0.4915354",
"0.49130344",
"0.48987448",
"0.4891817",
"0.486937",
"0.486874",
"0.48558953",
"0.48524225",
"0.48305756",
"0.4827636",
"0.48234287",
"0.4821427",
"0.48066908",
"0.48026392",
"0.4800302",
"0.47955313",
"0.4787326",
"0.47842684",
"0.47765318",
"0.47700414",
"0.47585174",
"0.4757374",
"0.47545192",
"0.47457206",
"0.47456133",
"0.47443023",
"0.4742771",
"0.47425175",
"0.4740252"
]
| 0.58548033 | 7 |
Initialize the DeepWalk model with a list of vertex degrees for a graph. Specifically, graphVertexDegrees[i] represents the vertex degree of the ith vertex vertex degrees are used to construct a binary (Huffman) tree, which is in turn used in the hierarchical softmax implementation | public void initialize(int[] graphVertexDegrees) {
log.info("Initializing: Creating Huffman tree and lookup table...");
GraphHuffman gh = new GraphHuffman(graphVertexDegrees.length);
gh.buildTree(graphVertexDegrees);
lookupTable = new InMemoryGraphLookupTable(graphVertexDegrees.length, vectorSize, gh, learningRate);
initCalled = true;
log.info("Initialization complete");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initialize(IGraph<V, E> graph) {\n int nVertices = graph.numVertices();\n int[] degrees = new int[nVertices];\n for (int i = 0; i < nVertices; i++)\n degrees[i] = graph.getVertexDegree(i);\n initialize(degrees);\n }",
"Graph(int vertices) {\r\n this.numVertices = vertices;\r\n adjacencylist = new LinkedList[vertices];\r\n //initialize adjacency lists for all the vertices\r\n for (int i = 0; i <vertices ; i++) {\r\n adjacencylist[i] = new LinkedList<>();\r\n }\r\n }",
"public static ArrayList<Vertex> initializeGraph() {\n\t\tVertex uVertex = new Vertex('u');\n\t\tVertex vVertex = new Vertex('v');\n\t\tVertex wVertex = new Vertex('w');\n\t\tVertex xVertex = new Vertex('x');\n\t\tVertex yVertex = new Vertex('y');\n\t\tVertex zVertex = new Vertex('z');\n\t\t\n\t\tVertex[] uAdjacencyList = {xVertex, vVertex};\n\t\tuVertex.setAdjacencyList(createArrayList( uAdjacencyList ));\n\t\t\n\t\tVertex[] vAdjacencyList = {yVertex};\n\t\tvVertex.setAdjacencyList(createArrayList( vAdjacencyList ));\n\t\t\n\t\tVertex[] wAdjacencyList = {zVertex, yVertex};\n\t\twVertex.setAdjacencyList(createArrayList( wAdjacencyList ));\n\t\t\n\t\tVertex[] xAdjacencyList = {vVertex};\n\t\txVertex.setAdjacencyList(createArrayList( xAdjacencyList ));\n\t\t\n\t\tVertex[] yAdjacencyList = {xVertex};\n\t\tyVertex.setAdjacencyList(createArrayList( yAdjacencyList ));\n\t\t\n\t\tVertex[] zAdjacencyList = {zVertex};\n\t\tzVertex.setAdjacencyList(createArrayList( zAdjacencyList ));\n\n\t\tVertex[] graph = { uVertex, vVertex, wVertex, xVertex, yVertex, zVertex};\n\t\treturn createArrayList( graph );\n\n\t}",
"public Graph(int numberOfVertices){\r\n this.numberOfVertices = numberOfVertices;\r\n this.adjacencyList = new TreeMap<>();\r\n }",
"public Graph(ArrayList<Vertex> vertices){\r\n this.vertices = new HashMap<String, Vertex>();\r\n this.edges = new HashMap<Integer, Edge>();\r\n \r\n for(Vertex v: vertices){\r\n this.vertices.put(v.getLabel(), v);\r\n }\r\n \r\n }",
"public Graph(int numVertices) {\n myAdjLists = new LinkedList[numVertices];\n myStartVertex = 0;\n for (int k = 0; k < numVertices; k++) {\n myAdjLists[k] = new LinkedList<Edge>();\n }\n myVertexCount = numVertices;\n }",
"public Graph(int numVertices) {\n adjLists = new LinkedList[numVertices];\n startVertex = 0;\n for (int k = 0; k < numVertices; k++) {\n adjLists[k] = new LinkedList<Edge>();\n }\n vertexCount = numVertices;\n }",
"public Graph(int numVertices) {\r\n myAdjLists = new LinkedList[numVertices];\r\n myStartVertex = 0;\r\n for (int k = 0; k < numVertices; k++) {\r\n myAdjLists[k] = new LinkedList<Edge>();\r\n }\r\n myVertexCount = numVertices;\r\n }",
"Graph(){\n\t\tadjlist = new HashMap<String, Vertex>();\n\t\tvertices = 0;\n\t\tedges = 0;\n\t\tkeys = new ArrayList<String>();\n\t}",
"protected AbstractGraph(List<Edges> edges,List<V> vertices){\n\t\t\n\t\tfor(int i=0;i<vertices.size();i++)\n\t\t\tthis.vertices.add(vertices.get(i));\n\t\t\n\t\tcreateAdjacencyLists(edges,vertices.size());\t\t\n\t}",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"public Graph(ArrayList<Town> verticesList){\n\t\tthis.vertices = new HashMap<String, Vertex>();\n\t\tthis.edges = new HashMap<Integer, Edge>();\n\t\t\n\t\tfor(Town v : verticesList){\n\t\t\tthis.vertices.put(v.getName(), v);\n\t\t}\n\t}",
"public Graph(int V) {\r\n \t \t\r\n if (V < 0) throw new IllegalArgumentException(\"Number of vertices in a Digraph must be nonnegative\");\r\n this.V = V;\r\n this.E = 0;\r\n this.indegree = new int[V];\r\n adj = (Bag<Edge>[]) new Bag[V];\r\n for (int v = 0; v < V; v++)\r\n adj[v] = new Bag<Edge>();\r\n }",
"NetworkGraph(int Vertex) {\n this.Vertex = Vertex;\n\n // Size == # of Vertices\n myNetwork = new LinkedList[Vertex];\n\n // Create a new list for each vertex\n // such that adjacent nodes can be stored\n for (int i = 0; i < Vertex; i++) {\n myNetwork[i] = new LinkedList<>();\n }\n }",
"public DjkstraAlgo(int vertices) {\n\n\t\tthis.vertices = vertices;\n\t\tthis.graph = new LinkedList[vertices];\n\t\tdist = new int[vertices];\n\t\tq = new PriorityQueue(vertices, new Node()); // to order priority queue based on comparator we use 2 argument constructor\n\t\tvisited = new HashSet<>();\n\n\t\tfor (int i = 0; i < vertices; i++) {\n\t\t\tgraph[i] = new LinkedList<>(); // initialised to make new list here instead of null\n\t\t}\n\t}",
"Graph(int n){\r\n numberOfVertices = n;\r\n adjacentVertices = new LinkedList[numberOfVertices];\r\n for (int i = 0; i < numberOfVertices; i++){\r\n adjacentVertices[i] = new LinkedList<>();\r\n }\r\n }",
"Graph() {\r\n\t\tvertices = new LinkedList<Vertex>();\r\n\t\tedges = 0;\r\n\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\t// ASCII value of 'A' is 65\r\n\t\t\tVertex vertex = new Vertex((char) (i + 65));\r\n\t\t\tvertices.add(vertex);\r\n\t\t}\r\n\t\tcurrentVertex = vertices.get(0);\r\n\t\tseen = new boolean[26];\r\n\t}",
"public Graph() // constructor\n{\n vertexList = new Vertex[MAX_VERTS];\n // adjacency matrix\n adjMat = new int[MAX_VERTS][MAX_VERTS];\n nVerts = 0;\n for (int j = 0; j < MAX_VERTS; j++) // set adjacency\n for (int k = 0; k < MAX_VERTS; k++) // matrix to 0\n adjMat[j][k] = INFINITY;\n}",
"VertexNetwork() {\r\n /* This constructor creates an empty list of vertex locations. \r\n read The transmission range is set to 0.0. */\r\n transmissionRange = 0.0;\r\n location = new ArrayList<Vertex>(0);\r\n }",
"public Graph(int V) {\n if (V < 0) throw new RuntimeException(\"Number of vertices must be nonnegative\");\n this.V = V;\n this.E = 0;\n\n\n adj = (LinkedList<Edge>[])new LinkedList[V];\n for (int v = 0; v < V; v++) adj[v] = new LinkedList<Edge>();\n }",
"AdjacencyGraph(){\r\n vertices = new HashMap<>();\r\n }",
"public void depthFirstOrder(Graph graph) {\n\t\tQueue<Vertex> zeroDegreeVertex = findZeroIndegrees(graph);\n\t\tint index = 1;\n\n\t\twhile (!zeroDegreeVertex.isEmpty()) {\n\t\t\tVertex vertex = zeroDegreeVertex.remove();\n\n\t\t\tfor (Edge edge : vertex.Adj) {\n\t\t\t\tVertex adjacentVertex = edge.otherEnd(vertex);\n\t\t\t\tadjacentVertex.indegree -= 1;\n\n\t\t\t\tif (adjacentVertex.indegree == 0) {\n\t\t\t\t\tzeroDegreeVertex.add(adjacentVertex);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvertices[index++] = vertex;\n\t\t}\n\n\t\t// We need make sure all the verrtices are in the toplogical sorted\n\t\t// graph\n\t\t\n\t\tif(isAllVertciesInTopologicalOrder(index, graph.V.length)) {\n\t\t\tvertices = null;\n\t\t}\n\t}",
"public Vertex (String name)\n\t{\n\t vertexName = name ;\n\t adjacencyList = new DoublyLinkedList<>();\n\t indegree = 0;\n\t\t\n\t}",
"Graph(int v) {\n V = v;\n adj = new LinkedList[v];\n for (int i = 0; i < v; ++i)\n adj [i] = new LinkedList();\n }",
"public CPP(int vertices) {\t\n\t\tif( (N = vertices) <= 0 ) throw new Error(\"Graph is empty\");\n\t\tdelta = new int[N];\n\t\tdefined = new boolean[N][N];\n\t\tlabel = new Vector[N][N];\n\t\tc = new float[N][N];\n\t\tf = new int[N][N];\n\t\tarcs = new int[N][N];\n\t\tcheapestLabel = new Integer[N][N];\n\t\tpath = new int[N][N];\n\t\tbasicCost = 0;\n\t}",
"public AdjacencyListGraph(boolean isDirected) {\r\n\t\tthis.isDirected = isDirected;\r\n\t\tvertices = new HashMap<>();\r\n\t\tadjacencyLists = new HashMap<>();\r\n\t}",
"public DirectedGraph(int n){\n\t\tdGraph = new SLLSparseM(n,n); //sparse M for outnodes\n\t\tdGraphin = new SLLSparseM(n,n);//Sparse M for in nodes\n\t\tnumofvert = n;\n\t\toutdegree = new int [n];//array to count out degrees\n\t\tindegree = new int [n];//array to count in degrees\n\t\tArrays.fill(outdegree,0);\n\t\tArrays.fill(indegree, 0);\n\t}",
"private void setDegreesForCities() {\r\n\r\n\t\t//Retrieve the staring vertex city\r\n\t\tLinkedList<CityByDegrees> linkedList = new LinkedList<CityByDegrees>();\r\n\t\tgetStartingVertexCity().setVisited(true);\r\n\t\tlinkedList.add(getStartingVertexCity());\r\n\r\n\t\t//Go through and determine the degrees to the vertext city for each city\r\n\t\twhile(linkedList.size() > 0) {\r\n\t\t\tCityByDegrees cityByDegrees = (CityByDegrees)linkedList.remove();\r\n\t\t\tHashSet <CityByDegrees>adjacentCities = cityByDegrees.getAdjacentCities();\r\n\t\t\tIterator iterator = adjacentCities.iterator();\r\n\r\n\t\t\twhile(iterator.hasNext()) {\r\n\t\t\t\tCityByDegrees currentCity = (CityByDegrees)iterator.next();\r\n\t\t\t\tif(!currentCity.isVisited()) {\r\n\t\t\t\t\tcurrentCity.setVisited(true);\r\n\t\t\t\t\tif(cityByDegrees.getDegrees() >= 0) {\r\n\t\t\t\t\t\tcurrentCity.setDegrees(cityByDegrees.getDegrees() + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlinkedList.add(currentCity);\r\n\t\t\t\t}\r\n\t\t\t}//end inner while\r\n\t\t}//end outer while\r\n\t}",
"public Graphs(int maxNumVertices) {\n\t\tthis.maxNumVertices = maxNumVertices + 1;\n\t\tthis.adjListMap = new HashMap<Integer, ArrayList<Integer>>();\n\t\tfor (int i = 0; i < this.maxNumVertices; i++) {\n\t\t\tadjListMap.put(i, new ArrayList<Integer>());\n\t\t}\n\t\t// Reachability matrix so that isLinked() look ups are O(1)\n\t\tthis.reachabilityMatrix = new boolean[this.maxNumVertices + 1][this.maxNumVertices + 1];\n\t}",
"public Graph(Map<Vertex<? extends Position>, List<Vertex<? extends Position>>> graph){\n\t\tthis.mapGraph = graph;\n\t}",
"public Graph(int vertices, int[][] edges) {\n this.vertices = vertices;\n this.edges = edges;\n childToParentMap = new HashMap<>();\n\n // initialize map\n for (int i = 0; i < vertices; i++) {\n // put parent as null for each of the vertices\n childToParentMap.put(i, null);\n }\n }",
"Graph(List<Edge> edges) {\n\n //one pass to find all vertices\n // this step avoid add isolated coordinates to the graph\n for (Edge e : edges) {\n if (!graph.containsKey(e.startNode)) {\n graph.put(e.startNode, new Node(e.startNode));\n }\n if (!graph.containsKey(e.endNode)) {\n graph.put(e.endNode, new Node(e.endNode));\n }\n }\n\n //another pass to set neighbouring vertices\n for (Edge e : edges) {\n graph.get(e.startNode).neighbours.put(graph.get(e.endNode), e.weight);\n //graph.get(e.v2).neighbours.put(graph.get(e.v1), e.dist); // also do this for an undirected graph\n }\n }",
"Graph(int size) {\n n = size;\n V = new Vertex[size + 1];\n // create an array of Vertex objects\n for (int i = 1; i <= size; i++)\n V[i] = new Vertex(i);\n }",
"private void initializeGraph() {\r\n map = new HashMap<>();\r\n graph = new List[n];\r\n for (int i = 0; i < n; i++) graph[i] = new ArrayList<>();\r\n\r\n\r\n }",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"private void degrees() {\n\t\tnodesWithDegree = new TreeMap<Integer, IntOpenHashSet>();\n\n\t\t// fill the HashMap nodesWithDegree\n\t\tfor (Sommet entry : adjVertices) {\n\n\t\t\tif (entry == null)\n\t\t\t\tcontinue;\n\n\t\t\tint size = entry.listeAdjacence.size();\n\n\t\t\tif (nodesWithDegree.containsKey(size)) {\n\t\t\t\tnodesWithDegree.get(size).add(entry.numSommet);\n\t\t\t} else {\n\t\t\t\tIntOpenHashSet temp = new IntOpenHashSet();\n\t\t\t\ttemp.add(entry.numSommet);\n\t\t\t\tnodesWithDegree.put(size, temp);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"end of degree method\");\n\t}",
"GraphObj() {\n this._V = 0;\n this._E = 0;\n inListArray = new ArrayList<>();\n inListArray.add(null);\n outListArray = new ArrayList<>();\n outListArray.add(null);\n selfEdges = new ArrayList<>();\n selfEdges.add(-1);\n edgeList = new ArrayList<>();\n edgeList.add(null);\n }",
"public Graph(Collection<LabeledEdge> edges, Collection<Vertex> vertices) {\n\t\tthis.edges = new HashSet<>(edges);\n\t\tthis.vertices = new HashSet<>(vertices);\n\t\tthis.edgesByStart = new HashMap<>();\n\t\tthis.edgesByEnd = new HashMap<>();\n\t\tthis.edgesByAction = new HashMap<>();\n\t\tthis.searcher = null;\n\t\tfor(Vertex vertex : vertices){\n\t\t\tthis.edgesByStart.put(vertex, new HashSet<LabeledEdge>());\n\t\t\tthis.edgesByEnd.put(vertex, new HashSet<LabeledEdge>());\n\t\t}\n\t\tfor(LabeledEdge trans : edges){\n\t\t\tassert(edgesByStart.keySet().contains(trans.getStart()));\n\t\t\tassert(edgesByEnd.keySet().contains(trans.getEnd()));\n\t\t\tthis.edgesByStart.get(trans.getStart()).add(trans);\n\t\t\tthis.edgesByEnd.get(trans.getEnd()).add(trans);\n\t\t\tif(edgesByAction.get(trans.getLabel()) == null)\n\t\t\t\tedgesByAction.put(trans.getLabel(), new HashSet<LabeledEdge>());\n\t\t\tthis.edgesByAction.get(trans.getLabel()).add(trans);\n\t\t}\n\t}",
"DFS(int vertices) {\n\t\tlist = new ArrayList<ArrayList<Integer>>(vertices);\n\t\tvis = new boolean[vertices];\n\n\t\tfor (int i = 0; i < vertices; i++) {\n\t\t\tlist.add(new ArrayList<Integer>());\n\t\t}\n\t}",
"public ListGraph(int numberOfVertex, boolean directed) throws Exception {\n super(numberOfVertex, directed);\n\n edges = new List[numberOfVertex];\n\n for(int index = 0; index < numberOfVertex; ++index)\n this.edges[index] = new LinkedList<Edge>();\n }",
"public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}",
"private Queue<Vertex> findZeroIndegrees(Graph graph) {\n\t\tQueue<Vertex> vertices = new LinkedList<Vertex>();\n\n\t\tfor (Vertex v : graph) {\n\t\t\tif (v.indegree == 0) {\n\t\t\t\tvertices.add(v);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If there is no vertices in the queue then the\n\t\t//graph has cycles. So no topological ordering is possible\n\t\tif(vertices.size() == Globals.ZERO) {\n\t\t\tthrow new UnsupportedOperationException(\"Graph has cycles\");\n\t\t}\n\t\t\n\t\treturn vertices;\n\t}",
"public DSAGraph()\n\t{\n\t\tvertices = new DSALinkedList();\n\t\tedgeCount = 0;\n\t}",
"public ListGraph(int numV, boolean directed) {\r\n super(numV, directed);\r\n edges = new List[numV];\r\n for (int i = 0; i < numV; i++) {\r\n edges[i] = new LinkedList < Edge > ();\r\n }\r\n }",
"public AdjacentListGraph(String[] vertexes) {\n this.vertexes = Arrays.copyOf(vertexes, vertexes.length);\n this.heads = new LinkedList[vertexes.length];\n\n // init the heads to save code: if(heads != null)\n for (int i = 0; i < heads.length; i++) {\n this.heads[i] = new LinkedList<>();\n }\n }",
"public DFSGraph() {\n this(new HashMap<>(), HashMap::new, HashSet::new, HashSet::new);\n }",
"public Graph(int V){\n this.V = V;\n this.E = 0;//no edge at initial condition.\n //initialize the adjacency list\n this.adj = new Queue[V];\n //initialize the Queue\n for(int i=0;i<adj.length;i++) {\n //each element in adj is a Queue that stores all vertexes connected with the index i of adj.\n adj[i] = new Queue<Integer>();\n }\n }",
"public EdgeListGraph(int V) {\n\t\t// TODO Auto-generated constructor stub\n\t\tthis.V = V;\n\t\tthis.edgeList = new ArrayList<>();\n\t}",
"Vertex(){}",
"public void topologicalSort() {\n HashMap<Integer, Integer> inDegrees = new HashMap<>();\n Queue<Integer> queue = new LinkedList<>();\n int numTotalNodes = 0;\n\n // Build the inDegree HashMap\n for (Entry<Integer, LinkedList<Edge<Integer>>> entry : g.adj.entrySet()) {\n LinkedList<Edge<Integer>> vList = entry.getValue();\n int currentVertex = entry.getKey();\n\n inDegrees.put(currentVertex, inDegrees.getOrDefault(currentVertex, 0));\n for (Edge<Integer> e : vList) {\n inDegrees.put(e.dest, inDegrees.getOrDefault(e.dest, 0) + 1);\n numTotalNodes++;\n }\n }\n\n // Add Elements with inDegree zero toe the queue\n for (int v : inDegrees.keySet()) {\n if (inDegrees.get(v) > 0)\n continue;\n queue.add(v);\n }\n\n int visitedNodes = 0;\n\n while (!queue.isEmpty()) {\n int v = queue.remove();\n System.out.print(v + \" \");\n for (int u : g.getNeighbors(v)) {\n int inDeg = inDegrees.get(u) - 1;\n if (inDeg == 0)\n queue.add(u);\n inDegrees.put(u, inDeg);\n }\n visitedNodes++;\n }\n\n if (visitedNodes != numTotalNodes) {\n System.out.println(\"Graph is not a DAG\");\n }\n }",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"public WeightedAdjacencyGraph() {\n this.vertices = new HashMap<>();\n }",
"public WeightedGraph(List<K> v)\n\t{\n\t // make ourselves a private copy of the vertex set\n\t verts = new HashSet<K>(v);\n\n\t // set up empty adkacency lists for each vertex\n\t adjLists = new HashMap<K, List<HashMap<K, Integer>>>();\n\t for (K src : verts)\n\t\t{\n\t\t adjLists.put(src, new ArrayList<HashMap<K, Integer>>());\n\t\t}\n\t}",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"public Vertex[] createGraph(){\n\t\t /* constructing a graph using matrices\n\t\t * If there is a connection between two adjacent LETTERS, the \n\t * cell will contain a num > 1, otherwise a 0. A value of -1 in the\n\t * cell denotes that the cities are not neighbors.\n\t * \n\t * GRAPH (with weights b/w nodes):\n\t * E+---12-------+B--------18-----+F----2---+C\n\t * +\t\t\t\t+\t\t\t\t +\t\t +\n\t * |\t\t\t\t|\t\t\t\t/\t\t |\n\t * |\t\t\t\t|\t\t\t |\t\t |\n\t * |\t\t\t\t|\t\t\t |\t\t 10\n\t * 24\t\t\t\t8\t\t\t 8\t |\n\t * |\t\t\t\t|\t\t\t |\t\t +\n\t * |\t\t\t\t|\t\t\t | H <+---11---I\n\t * |\t\t\t\t|\t\t\t /\n\t * +\t\t\t\t+\t\t\t +\n\t * G+---12----+A(start)+---10--+D\n\t * \n\t * NOTE: I is the only unidirectional node\n\t */\n\t\t\n\t\tint cols = 9;\n\t\tint rows = 9;\n\t\t//adjacency matrix\n\t\t\t\t //A B C D E F G H I\n\t int graph[][] = { {0,8,0,10,0,0,12,0,0}, //A\n\t {8,0,0,0,12,18,0,0,0}, //B\n\t {0,0,0,0,0,2,0,10,0}, //C\n\t {10,0,0,0,0,8,0,0,0}, //D\n\t {0,12,0,0,0,0,24,0,0}, //E\n\t {0,18,2,8,0,0,0,0,0}, //F\n\t {12,0,0,0,0,0,24,0,0}, //G\n\t {0,0,10,0,0,0,0,0,11}, //H\n\t {0,0,0,0,0,0,0,11,0}}; //I\n\t \n\t //initialize stores vertices\n\t Vertex[] vertices = new Vertex[rows]; \n\n\t //Go through each row and collect all [i,col] >= 1 (neighbors)\n\t int weight = 0; //weight of the neighbor\n\t for (int i = 0; i < rows; i++) {\n\t \tVector<Integer> vec = new Vector<Integer>(rows);\n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\tif (graph[i][j] >= 1) {\n\t\t\t\t\tvec.add(j);\n\t\t\t\t\tweight = j;\n\t\t\t\t}//is a neighbor\n\t\t\t}\n\t\t\tvertices[i] = new Vertex(Vertex.getVertexName(i), vec);\n\t\t\tvertices[i].state = weight;\n\t\t\tvec = null; // Allow garbage collection\n\t\t}\n\t return vertices;\n\t}",
"public void constructGraph(){\r\n\t\tmyGraph = new Graph();\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tmyGraph.addVertex(allSpots[i]);\r\n\t\t}\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tint th = i;\r\n\t\t\twhile(th%6!=0) {\r\n\t\t\t\tth--;\r\n\t\t\t}\r\n\t\t\tfor(int h=th;h<=th+5;h++) {\r\n\t\t\t\tif(h!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[h])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[h]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint tv=i;\r\n\t\t\twhile(tv-6>0) {\r\n\t\t\t\ttv=tv-6;\r\n\t\t\t}\r\n\t\t\tfor(int v=tv;v<36; v=v+6) {\r\n\t\t\t\tif(v!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[v])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[v]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Add verticies that store the Spot objects\r\n\t\t//Add edges to connect spots that share a property along an orthogonal direction\r\n\r\n\t\t//This is the ONLY time it is ok to iterate the array.\r\n\t\t\r\n\t\t//myGraph.addVert(...);\r\n\t\t//myGraph.addEdge(...);\r\n\t}",
"public void updateIndegree()\n\t{\n\t\tint deg = 0 ;\n\t\tint numOfVertex = getAdjacencyList().size();\n\t\tdeg = adjacencyList.get(numOfVertex-1).getIndegree();\n\t\tadjacencyList.get(numOfVertex-1).setIndegree(deg + 1);\t\t\t\n\t}",
"@Before\n public void setUp() {\n for (int i = 0; i < 6; i++) {\n\n Vertex tempV1 = new Vertex(i + \"\", \"Location number \" + i);\n\n testVertices.add(tempV1);\n\n }\n\n //Build Edges that connect each vertex and put edges into ArrayList\n for (int i = 0; i < 5; i++) {\n\n Edge tempE = new Edge(i + \"\",testVertices.get(i),testVertices.get(i+1) ,(i*10));\n\n testEdges.add(tempE);\n }\n\n //Graph created with complete ArrayLists of all Edges and Vertices\n testGraph = new Graph(testVertices, testEdges);\n }",
"@SuppressWarnings(\"unchecked\")\n public GrafoDirigido(int numVertices) {\n numV = numVertices; \n numA = 0;\n elArray = new ListaConPI[numVertices]; \n for (int i = 0; i < numV; i++) {\n elArray[i] = new LEGListaConPI<Adyacente>();\n }\n }",
"public FlowNetwork(int V) {\n this.V = V-1;\n adj = (List<FlowEdge>[]) new List[V];\n for (int v=0; v < V; v++)\n adj[v] = new ArrayList<>();\n }",
"Graph(int v) {\n this.v = v;\n array = new ArrayList[v];\n\n // Add linkedList to array\n for (int i = 0; i < v; i++) {\n array[i] = new ArrayList<>();\n }\n }",
"private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B\");\n\t\tVertex vertexC = new Vertex(\"C\");\n\t\tVertex vertexD = new Vertex(\"D\");\n\t\tVertex vertexE = new Vertex(\"E\");\n\t\tVertex vertexF = new Vertex(\"F\");\n\t\tVertex vertexG = new Vertex(\"G\");\n\n\t\tList<Edge> edges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 2));\n\t\tedges.add(new Edge(vertexD, 6));\n\t\tedges.add(new Edge(vertexF, 5));\n\t\tvertexA.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 2));\n\t\tedges.add(new Edge(vertexC, 7));\n\t\tvertexB.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 7));\n\t\tedges.add(new Edge(vertexD, 9));\n\t\tedges.add(new Edge(vertexF, 1));\n\t\tvertexC.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 6));\n\t\tedges.add(new Edge(vertexC, 9));\n\t\tedges.add(new Edge(vertexE, 4));\n\t\tedges.add(new Edge(vertexG, 8));\n\t\tvertexD.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 4));\n\t\tedges.add(new Edge(vertexF, 3));\n\t\tvertexE.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 5));\n\t\tedges.add(new Edge(vertexC, 1));\n\t\tedges.add(new Edge(vertexE, 3));\n\t\tvertexF.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 8));\n\t\tvertexG.incidentEdges = edges;\n\n\t\tgraph.add(vertexA);\n\t\tgraph.add(vertexB);\n\t\tgraph.add(vertexC);\n\t\tgraph.add(vertexD);\n\t\tgraph.add(vertexE);\n\t\tgraph.add(vertexF);\n\t\tgraph.add(vertexG);\n\n\t\treturn graph;\n\t}",
"public ParentVertex(){\n Random rand = new Random();\n key = rand.nextInt(Integer.MAX_VALUE);\n xPos = rand.nextDouble();\n yPos = rand.nextDouble();\n connectedKeys = new ArrayList<>();\n degree = 0;\n fitness = 0;\n }",
"public void updateGraphVertices(Vertex[] vertexList) {\n graph.updateVertices(vertexList);\n }",
"public Polygon4D(ArrayList<Vertex> vertices){\n\t\t\n\t\tthis.vertices = vertices;\n\t\tsetFaces();\n\t}",
"public Graph() {\r\n\t\tinit();\r\n\t}",
"private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}",
"private void initFromGraph() {\n CHPreparationGraph prepareGraph;\n if (chConfig.getTraversalMode().isEdgeBased()) {\n TurnCostStorage turnCostStorage = graph.getTurnCostStorage();\n if (turnCostStorage == null) {\n throw new IllegalArgumentException(\"For edge-based CH you need a turn cost storage\");\n }\n logger.info(\"Creating CH prepare graph, {}\", getMemInfo());\n CHPreparationGraph.TurnCostFunction turnCostFunction = CHPreparationGraph.buildTurnCostFunctionFromTurnCostStorage(graph, chConfig.getWeighting());\n prepareGraph = CHPreparationGraph.edgeBased(graph.getNodes(), graph.getEdges(), turnCostFunction);\n nodeContractor = new EdgeBasedNodeContractor(prepareGraph, chBuilder, pMap);\n } else {\n logger.info(\"Creating CH prepare graph, {}\", getMemInfo());\n prepareGraph = CHPreparationGraph.nodeBased(graph.getNodes(), graph.getEdges());\n nodeContractor = new NodeBasedNodeContractor(prepareGraph, chBuilder, pMap);\n }\n maxLevel = nodes;\n // we need a memory-efficient priority queue with an efficient update method\n // TreeMap is not memory-efficient and PriorityQueue does not support an efficient update method\n // (and is not memory efficient either)\n sortedNodes = new MinHeapWithUpdate(prepareGraph.getNodes());\n logger.info(\"Building CH prepare graph, {}\", getMemInfo());\n StopWatch sw = new StopWatch().start();\n CHPreparationGraph.buildFromGraph(prepareGraph, graph, chConfig.getWeighting());\n logger.info(\"Finished building CH prepare graph, took: {}s, {}\", sw.stop().getSeconds(), getMemInfo());\n nodeContractor.initFromGraph();\n }",
"private void setUpCLRSGraph() {\n\t\tvertices = new HashMap<Character, DirectedOrderedDfsVertex>();\n\t\tfor (char i = 'a'; i <= 'h'; i++) {\n\t\t\tvertices.put(i, new DirectedOrderedDfsVertex());\n\t\t}\n\t\tgraph = new DirectedSimpleGraph<DirectedOrderedDfsVertex>(vertices.values());\n\t\tvertices.get('a').addAdjacency(vertices.get('b'));\n\t\tvertices.get('b').addAdjacency(vertices.get('f'));\n\t\tvertices.get('b').addAdjacency(vertices.get('e'));\n\t\tvertices.get('b').addAdjacency(vertices.get('c'));\n\t\tvertices.get('c').addAdjacency(vertices.get('d'));\n\t\tvertices.get('c').addAdjacency(vertices.get('g'));\n\t\tvertices.get('d').addAdjacency(vertices.get('c'));\n\t\tvertices.get('d').addAdjacency(vertices.get('h'));\n\t\tvertices.get('e').addAdjacency(vertices.get('a'));\n\t\tvertices.get('e').addAdjacency(vertices.get('f'));\n\t\tvertices.get('f').addAdjacency(vertices.get('g'));\n\t\tvertices.get('g').addAdjacency(vertices.get('f'));\n\t\tvertices.get('g').addAdjacency(vertices.get('h'));\n\t\tvertices.get('h').addAdjacency(vertices.get('h'));\n\t}",
"public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}",
"private static void criaListaDeVertices(Graph graph) {\r\n\t\tfor (int i = 0; i < graph.getArestas().size(); i++) {\r\n\t\t\tif (!graph.getArestas().get(i).getV1().statusVertice()) {\r\n\t\t\t\tgraph.getVerticesGraph().add( graph.getArestas().get(i).getV1() );\r\n\t\t\t\tgraph.getArestas().get(i).getV1().alteraStatusVertice(true);\r\n\t\t\t}\r\n\r\n\t\t\tif (!graph.getArestas().get(i).getV2().statusVertice()) {\r\n\t\t\t\tgraph.getVerticesGraph().add( graph.getArestas().get(i).getV2() );\r\n\t\t\t\tgraph.getArestas().get(i).getV2().alteraStatusVertice(true);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic Graph() {\r\n \tthis.vertex = new HashMap<T, Vertex>();\r\n \tthis.edge = new HashMap<Integer, Edge>();\r\n }",
"public Graph(){//constructor\n //edgemap\n srcs=new LinkedList<>();\n maps=new LinkedList<>();\n chkIntegrity(\"edgemap\");\n \n nodes=new LinkedList<>();\n //m=new EdgeMap();\n }",
"public Graph() {\n }",
"public DepthFirstSearch(Graph graph) throws Exception {\n\n this.graph = graph;\n int n = graph.getNumV();\n\n parent = new int[n];\n Arrays.fill( parent , -1);\n\n visited = new boolean[n];\n Arrays.fill( visited , false );\n\n discoveryOrder = new int[n];\n finishOrder = new int[n];\n\n for (int i = 0; i < n; i++) {\n if (!visited[i])\n depthFirstSearch(i);\n }\n\n }",
"public void initialize(int[][] graphConnectivity, int[] edgeLabel) {\n\t\tthis.vertices = new int[graphConnectivity.length][];\n\t\tthis.connectivity = graphConnectivity;\n\t\tthis.edgeLabel = edgeLabel;\n\t\t// Initialize this.vertices\n\t\tfor (int nodeI = 0; nodeI < graphConnectivity.length; nodeI++) {\n\t\t\tint degree = 0;\n\t\t\tfor (int nodeJ = 0; nodeJ < graphConnectivity.length; nodeJ++)\n\t\t\t\tif (connectivity[nodeI][nodeJ] != -1 && nodeI != nodeJ)\n\t\t\t\t\tdegree++;\n\t\t\tvertices[nodeI] = new int[degree];\n\t\t\tfor (int nodeJ = 0, j = 0; nodeJ < graphConnectivity.length; nodeJ++)\n\t\t\t\tif (connectivity[nodeI][nodeJ] != -1 && nodeI != nodeJ) {\n\t\t\t\t\tvertices[nodeI][j] = nodeJ;\n\t\t\t\t\t++j;\n\t\t\t\t}\n\t\t}\n\t}",
"public Vertex(){\n\n }",
"private void initializeFromGraph(Graph<HyperNode, DefaultEdge> graph) {\n Map<HyperNode, Node> nodesMap = addNodes(graph);\n addEdges(graph, nodesMap);\n }",
"DFS(int ver){\n // assign the nu,mber of vertex\n v = ver;\n // assign the number of boolean at it's vertex\n visited = new boolean[ver];\n // assisgn the array with the vertex length\n pre = new int[ver];\n // asssigning the adjList length\n adjList = new ArrayList[ver];\n\n // now going throgh the loop and adding the newList to adjList each index , in pre making all -1, and false in all visited\n for (int x=0; x<ver; x+=1){\n adjList[x] = new ArrayList();\n\n // for the visited boolean value false\n visited[x] = false;\n\n // pre \n pre[x]=-1;\n }\n }",
"Digraph(int v) {\n this.V = v;\n adj = (List<Integer>[]) new ArrayList[V];\n for (int i = 0; i < V; i++) {\n adj[i] = new ArrayList<>();\n }\n }",
"public Mesh(final float[] vertices) {\n vertexCount = vertices.length / COORDS_PER_VERTEX;\n vertexBuffer = Core.arrayAsBuffer(vertices);\n }",
"public AdjacencyLists(int num)\n {\n numVertices = num;\n clearGraph();\n }",
"public Graph(int V, int E) {\n this(V);\n if (E < 0) throw new RuntimeException(\"Number of edges must be nonnegative\");\n for (int i = 0; i < E; i++) {\n int v = (int) (Math.random() * V);\n int w = (int) (Math.random() * V);\n double weight = Math.round(100 * Math.random()) / 100.0;\n Edge e = new Edge(v, w, weight,0);\n //addEdge(e);\n }\n }",
"public DynamicGraph(int pintVCount, int pintEdgeCount) {\n this.hmpGraphsAtTimeframes = new HashMap<>();\n mapAllVertices = new DynamicArray<>(pintVCount);\n mapAllEdges = new DynamicArray<>(pintEdgeCount);\n darrGlobalAdjList = new DynamicArray<>(pintVCount);\n \n icommunityColors = new CommunityColors();\n }",
"public Graph(int nNodes) {\n\t\tthis.nodeArray = new ArrayList<Node>(nNodes);\n\t\tthis.edges = new LinkedList<Edge>();\n\t}",
"public Dijkstra(Graph graph)\n\t{\n\t\tthis.listNode = graph.getListNode();\n\t\tthis.listEdge = graph.getListEdge();\n\t}",
"@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void initializeGraph() {\n checkpointPrefix = Tensors.create((getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath() + \"final_model.ckpt\").toString());\n checkpointDir = getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath();\n graph = new Graph();\n sess = new Session(graph);\n InputStream inputStream;\n try {\n inputStream = getAssets().open(\"final_graph_hdd.pb\");\n byte[] buffer = new byte[inputStream.available()];\n int bytesRead;\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n output.write(buffer, 0, bytesRead);\n }\n graphDef = output.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n }\n graph.importGraphDef(graphDef);\n try {\n sess.runner().feed(\"save/Const\", checkpointPrefix).addTarget(\"save/restore_all\").run();\n Toast.makeText(this, \"Checkpoint Found and Loaded!\", Toast.LENGTH_SHORT).show();\n }\n catch (Exception e) {\n sess.runner().addTarget(\"init\").run();\n Log.i(\"Checkpoint: \", \"Graph Initialized\");\n }\n }",
"public Graph(int V)\n {\n this.V = V;\n adj = (Bag<Integer>[]) new Bag[V];\n for (int v = 0; v < V; v++)\n adj[v] = new Bag<Integer>();\n }",
"public AtomGraph(IAtomContainer container, IAtomContainer skipVertices, boolean weighted) {\n this();\n adjacencyMatrix = new AdjacencyAtomMatrix(container.getAtomCount());\n for (IAtom atom : skipVertices.atoms()) {\n this.skipVertices.add(atom);\n }\n setAtomContainer(container, weighted);\n }",
"public WeightedGraph(List<E> v, List<WeightedEdge> edges) {\n this();\n for (E e : v) {\n addVertex(e);\n }\n for (WeightedEdge e : edges) {\n addEdge(e);\n }\n }",
"public Graph createGraph() {\n String fileName;\n// fileName =\"./428333.edges\";\n String line;\n Graph g = new Graph();\n// List<String> vertexNames = new ArrayList<>();\n// try\n// {\n// BufferedReader in=new BufferedReader(new FileReader(fileName));\n// line=in.readLine();\n// while (line!=null) {\n////\t\t\t\tSystem.out.println(line);\n// String src = line.split(\" \")[0];\n// String dst = line.split(\" \")[1];\n//// vertexNames.add(src);\n//// vertexNames.add(dst);\n//// System.out.println(src+\" \"+dst);\n// g.addEdge(src, dst, 1);\n// line=in.readLine();\n// }\n// in.close();\n// } catch (Exception e) {\n//\t\t\te.printStackTrace();\n// }\n\n fileName=\"./788813.edges\";\n// List<String> vertexNames = new ArrayList<>();\n try\n {\n BufferedReader in=new BufferedReader(new FileReader(fileName));\n line=in.readLine();\n while (line!=null) {\n//\t\t\t\tSystem.out.println(line);\n String src = line.split(\" \")[0];\n String dst = line.split(\" \")[1];\n g.addEdge(src, dst, 1);\n line=in.readLine();\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n// Graph g = new Graph(new String[]{\"v0\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\", \"v7\", \"v8\"});\n// // Add the required edges.\n// g.addEdge(\"v0\", \"v1\", 4); g.addEdge(\"v0\", \"v7\", 8);\n// g.addEdge(\"v1\", \"v2\", 8); g.addEdge(\"v1\", \"v7\", 11); g.addEdge(\"v2\", \"v1\", 8);\n// g.addEdge(\"v2\", \"v8\", 2); g.addEdge(\"v2\", \"v5\", 4); g.addEdge(\"v2\", \"v3\", 7);\n// g.addEdge(\"v3\", \"v2\", 7); g.addEdge(\"v3\", \"v5\", 14); g.addEdge(\"v3\", \"v4\", 9);\n// g.addEdge(\"v4\", \"v3\", 9); g.addEdge(\"v4\", \"v5\", 10);\n// g.addEdge(\"v5\", \"v4\", 10); g.addEdge(\"v5\", \"v3\", 9); g.addEdge(\"v5\", \"v2\", 4);\n// g.addEdge(\"v5\", \"v6\", 2);\n// g.addEdge(\"v6\", \"v7\", 1); g.addEdge(\"v6\", \"v8\", 6); g.addEdge(\"v6\", \"v5\", 2);\n// g.addEdge(\"v7\", \"v0\", 8); g.addEdge(\"v7\", \"v8\", 7); g.addEdge(\"v7\", \"v1\", 11);\n// g.addEdge(\"v7\", \"v6\", 1);\n// g.addEdge(\"v8\", \"v2\", 2); g.addEdge(\"v8\", \"v7\", 7); g.addEdge(\"v8\", \"v6\", 6);\n\n//\n return g;\n }",
"public Graph(int n) {\n this.n = n;\n edge = new List[n];\n for (int i = 0; i < n; i++)\n edge[i] = new List(0, 0, 0); // dummy node\n }",
"private void initializeGraphAsEmpty() {\n int max = getNumNodes();\n\n parentMatrix = new int[getNumNodes()][max];\n childMatrix = new int[getNumNodes()][max];\n\n for (int i = 0; i < getNumNodes(); i++) {\n parentMatrix[i][0] = 1; //set first node\n childMatrix[i][0] = 1;\n }\n\n for (int i = 0; i < getNumNodes(); i++) {\n for (int j = 1; j < max; j++) {\n parentMatrix[i][j] = -5; //set first node\n childMatrix[i][j] = -5;\n }\n }\n }",
"private void buildGraph(String[] words,int indegree[], HashMap<Character, Set<Character>> adjList){\n // initialise the adj list graph with all charac ters in all words\n for(String word:words ){\n for(char c: word.toCharArray()){\n adjList.putIfAbsent(c, new HashSet());\n }\n }// once u fill with init, then u eatblish relationships\n \n // wrt and er \n for(int i=1; i<words.length;i++){\n String first = words[i-1];\n String second = words[i];\n // now compare each char in thos words\n for(int j=0; j< Math.min(first.length(),second.length());j++){\n if(first.charAt(j) != second.charAt(j)){\n // a->b here out=a, in=b\n char out = first.charAt(j);\n char in = second.charAt(j);\n // a->b , so in adj list. we need to insert the valiue if not present\n // if the graph does not contains dependecny, which is in set, u add it else u dont add// since hashset, we can check usinhg contains i guess\n if(! adjList.get(out).contains(in)){\n adjList.get(out).add(in);\n \n indegree[in -'a']++;\n }\n // once it is found , u can break out th e loop\n break;\n \n }// if eqaual we mmove to next char and do the process\n }\n }\n }",
"void addVertex(Vertex v, ArrayList<Vertex> neighbors, ArrayList<Double> weights) throws VertexNotInGraphException;",
"private void createAdjacencyLists(List<Edges> edges,int numberOfVertices){\n\t\t\n\t\tfor(int i=0;i<numberOfVertices;i++){\n\t\t\tneighbors.add(new ArrayList<Integer>());\n\t\t}\n\t\tfor(Edges edge:edges){\n\t\t\tneighbors.get(edge.u).add(edge.v);\n\t\t}\n\t\t\n\t}",
"public static PartialTreeList initialize(Graph graph) {\n\t\t\n\t\tPartialTreeList ptl= new PartialTreeList();\n\t\tfor(int i=0; i<graph.vertices.length;i++)\n\t\t{\n\t\t\tPartialTree x= new PartialTree(graph.vertices[i]);\n\t\t\tgraph.vertices[i].parent=x.getRoot();\n\t\t\tVertex.Neighbor ptr= graph.vertices[i].neighbors;\n\t\t\twhile(ptr!=null)\n\t\t\t{\n\t\t\t\tPartialTree.Arc A= new PartialTree.Arc(graph.vertices[i], ptr.vertex, ptr.weight);\n\t\t\t\tx.getArcs().insert(A);\n\t\t\t\tptr=ptr.next;\n\t\t\t}\n\t\t\t\n\t\t\tptl.append(x);\n\t\t}\n\t\treturn ptl;\n\t}",
"public DepthFirstSearch(Graph graph, int[] order) {\n // Same as constructor above except for the if statement.\n }",
"@SuppressWarnings(\"hiding\")\n\tprivate static void createNavGraph(List<Node> nodeList, Node[][] nodes, int columns, int rows)\n\t{\n\t\t// Build the navigation graph. 0,0 = bottom left.\n\t\t// For now, the navigation graph has one node per map cell, but this may change in the future.\n\t\tfor (int row = 0; row < rows; ++row)\n\t\t{\n\t\t\tfor (int column = 0; column < columns; ++column)\n\t\t\t{\n\t\t\t\tNode node = new Node((int)(column * Node.Size + Screen.Zero.x), (int)(row * Node.Size + Screen.Zero.y));\n\t\t\t\tnodeList.add(node);\n\t\t\t\tnodes[column][row] = node;\n\t\t\t\taddEdges(nodes, row, column, columns);\n\t\t\t}\n\t\t}\n\t\t\n\t\tsetPassability();\n\t}",
"private void generateVertexSignatures() {\n \t this.create(0);\n \t this.vertexSignatures = new ArrayList<String>();\n \t this.vertexSignatures.add(this.toCanonicalVertexString());\n \t int count = this.getVertexCount();\n \t for (int vertexIndex = 1; vertexIndex < count; vertexIndex++) {\n \t this.resetDAG(vertexIndex);\n \t this.vertexSignatures.add(this.toCanonicalVertexString());\n \t }\n \t}"
]
| [
"0.67277694",
"0.66773593",
"0.6284042",
"0.6263226",
"0.61863524",
"0.61203676",
"0.61108404",
"0.6103681",
"0.6059719",
"0.603233",
"0.5989259",
"0.5831848",
"0.5807011",
"0.5806367",
"0.57783616",
"0.57676965",
"0.5762898",
"0.5727765",
"0.5720529",
"0.5695788",
"0.56763166",
"0.5664833",
"0.55726415",
"0.5572538",
"0.55519015",
"0.5527079",
"0.55244434",
"0.55219924",
"0.55059814",
"0.5499749",
"0.5492134",
"0.54752946",
"0.54730475",
"0.5464654",
"0.54547805",
"0.5448899",
"0.5441205",
"0.54346293",
"0.53952587",
"0.5393363",
"0.5377807",
"0.5361758",
"0.5356735",
"0.5355581",
"0.5349131",
"0.53490096",
"0.5348054",
"0.53362733",
"0.5334678",
"0.53254473",
"0.5317678",
"0.5312438",
"0.53105015",
"0.53077763",
"0.5291762",
"0.5288038",
"0.52856827",
"0.5284059",
"0.5277874",
"0.527518",
"0.52610666",
"0.5252463",
"0.5223102",
"0.5222264",
"0.5191124",
"0.5181333",
"0.5159869",
"0.5155115",
"0.5153626",
"0.5116131",
"0.51100296",
"0.5095962",
"0.50951874",
"0.50884986",
"0.5084273",
"0.5060846",
"0.50515",
"0.5048908",
"0.5040846",
"0.50358516",
"0.5030134",
"0.5028824",
"0.5027695",
"0.5025394",
"0.50177217",
"0.50168496",
"0.5013256",
"0.5012907",
"0.5011889",
"0.501145",
"0.50059307",
"0.50019836",
"0.49956647",
"0.49951512",
"0.49878713",
"0.49849388",
"0.49775794",
"0.49771842",
"0.49716157",
"0.4968833"
]
| 0.71511143 | 0 |
Fit the model, in parallel. This creates a set of GraphWalkIterators, which are then distributed one to each thread | public void fit(IGraph<V, E> graph, int walkLength) {
if (!initCalled)
initialize(graph);
//First: create iterators, one for each thread
GraphWalkIteratorProvider<V> iteratorProvider = new RandomWalkGraphIteratorProvider<>(graph, walkLength, seed,
NoEdgeHandling.SELF_LOOP_ON_DISCONNECTED);
fit(iteratorProvider);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void train() {\n\n\t\tint D = Os.length;\n\t\tint T_n = 0;\n\t\tdouble log_likelihood = 0;\n\t\tdouble log_likelihood_new = 0;\n\t\tdouble epsilon = this.epsilon;\n\t\tint maxIter = this.maxIter;\n\n\t\t// Initialization\n\n\t\tclearVector(pi);\n\t\tclearMatrix(A);\n\t\tclearMatrix(B);\n\n\t\tdouble[] a = allocateVector(N);\n\t\tdouble[] b = allocateVector(N);\n\n\t\tint[] Q_n = null;\n\t\tint[] O_n = null;\n\t\t\n\t\tif (Qs == null) {\n\t\t\t\n\t\t\tpi = initializePi();\n\t\t\tA = initializeA();\n\t\t\tB = initializeB();\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tfor (int n = 0; n < D; n++) {\n\t\t\t\tQ_n = Qs[n];\n\t\t\t\tO_n = Os[n];\n\t\t\t\tT_n = Os[n].length;\n\t\t\t\tfor (int t = 0; t < T_n; t++) {\n\t\t\t\t\tif (t < T_n - 1) {\n\t\t\t\t\t\tA[Q_n[t]][Q_n[t + 1]] += 1;\n\t\t\t\t\t\ta[Q_n[t]] += 1;\n\t\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\t\tpi[Q_n[0]] += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tB[Q_n[t]][O_n[t]] += 1;\n\t\t\t\t\tb[Q_n[t]] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdivideAssign(pi, D);\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdivideAssign(A[i], a[i]);\n\t\t\t\tdivideAssign(B[i], b[i]);\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tint s = 0;\n\t\tdouble[] pi_new = allocateVector(N);\n\t\tdouble[][] A_new = allocateMatrix(N, N);\n\t\tdouble[][] B_new = allocateMatrix(N, M);\n\t\tdouble[] temp_pi = null;\n\t\tdouble[][] temp_A = null;\n\t\tdouble[][] temp_B = null;\n\t\tdouble[][] alpha_hat = null;\n\t\tdouble[][] beta_hat = null;\n\t\tdouble[] c_n = null;\n\t\tdouble[][] xi = allocateMatrix(N, N);\n\t\tdouble[] gamma = allocateVector(N);\n\t\tdo {\n\n\t\t\t// Clearance\n\t\t\tclearVector(pi_new);\n\t\t\tclearMatrix(A_new);\n\t\t\tclearMatrix(B_new);\n\t\t\tclearVector(a);\n\t\t\tclearVector(b);\n\t\t\t/*clearMatrix(xi);\n\t\t\tclearVector(gamma);*/\n\t\t\tlog_likelihood_new = 0;\n\n\t\t\tfor (int n = 0; n < D; n++) {\n\n\t\t\t\t// Q_n = Qs[n];\n\t\t\t\tO_n = Os[n];\n\t\t\t\tT_n = Os[n].length;\n\t\t\t\tc_n = allocateVector(T_n);\n\t\t\t\talpha_hat = allocateMatrix(T_n, N);\n\t\t\t\tbeta_hat = allocateMatrix(T_n, N);\n\n\t\t\t\t// Forward Recursion with Scaling\t\t\t\n\n\t\t\t\tfor (int t = 0; t <= T_n - 1; t++) {\n\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\talpha_hat[0][i] = pi[i] * B[i][O_n[0]];\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\t\talpha_hat[t][j] += alpha_hat[t - 1][i] * A[i][j] * B[j][O_n[t]];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tc_n[t] = 1.0 / sum(alpha_hat[t]);\n\t\t\t\t\ttimesAssign(alpha_hat[t], c_n[t]);\n\t\t\t\t}\n\n\t\t\t\t// Backward Recursion with Scaling\n\n\t\t\t\tfor (int t = T_n + 1; t >= 2; t--) {\n\t\t\t\t\tif (t == T_n + 1) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tbeta_hat[t - 2][i] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (t <= T_n) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\t\tbeta_hat[t - 2][i] += A[i][j] * B[j][O_n[t - 1]] * beta_hat[t - 1][j];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttimesAssign(beta_hat[t - 2], c_n[t - 2]);\n\t\t\t\t}\n\n\t\t\t\t// Expectation Variables and Updating Model Parameters\n\n\t\t\t\tfor (int t = 0; t <= T_n - 1; t++) {\n\t\t\t\t\tif (t < T_n - 1) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\t\txi[i][j] = alpha_hat[t][i] * A[i][j] * B[j][O_n[t + 1]] * beta_hat[t + 1][j];\n\t\t\t\t\t\t\t\t// A_new[i][j] += xi[i][j];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tplusAssign(A_new[i], xi[i]);\n\t\t\t\t\t\t\tgamma[i] = sum(xi[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\t\tplusAssign(pi_new, gamma);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tplusAssign(a, gamma);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassignVector(gamma, alpha_hat[t]);\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\tB_new[j][O_n[t]] += gamma[j];\n\t\t\t\t\t}\n\t\t\t\t\tplusAssign(b, gamma);\n\t\t\t\t\tlog_likelihood_new += -Math.log(c_n[t]);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Normalization (Sum to One)\n\n\t\t\tsum2one(pi_new);\n\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdivideAssign(A_new[i], a[i]);\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tdivideAssign(B_new[j], b[j]);\n\t\t\t}\n\n\t\t\ttemp_pi = pi;\n\t\t\tpi = pi_new;\n\t\t\tpi_new = temp_pi;\n\n\t\t\ttemp_A = A;\n\t\t\tA = A_new;\n\t\t\tA_new = temp_A;\n\n\t\t\ttemp_B = B;\n\t\t\tB = B_new;\n\t\t\tB_new = temp_B;\n\t\t\t// display(B);\n\n\t\t\ts = s + 1;\n\n\t\t\tif (s > 1) {\n\t\t\t\tif (Math.abs((log_likelihood_new - log_likelihood) / log_likelihood) < epsilon) {\n\t\t\t\t\tfprintf(\"log[P(O|Theta)] does not increase.\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlog_likelihood = log_likelihood_new;\n\t\t\tfprintf(\"Iter: %d, log[P(O|Theta)]: %f\\n\", s, log_likelihood);\n\n\t\t} while (s < maxIter);\n\n\t}",
"public void train(){\r\n\t\tdouble output = 0.0;\r\n\t\tList<Integer> teacher = null;\r\n\t\tdouble adjustedWeight = 0.0;\r\n\t\tdouble error = 0.0;\r\n\t\tdouble deltaK = 0.0;\r\n\r\n\t\tfor(int counter = 0; counter < maxEpoch; counter++){\r\n\t\t\tfor(Instance inst : trainingSet){\r\n\t\t\t\tcalculateOutputForInstance(inst);\r\n\t\t\t\tteacher = inst.classValues;\r\n\t\t\t\t//jk weight\r\n\t\t\t\tfor(int i = 0; i < outputNodes.size(); i++){\r\n\t\t\t\t\tNode kNode = outputNodes.get(i);\r\n\t\t\t\t\toutput = kNode.getOutput();\r\n\t\t\t\t\terror = teacher.get(i) - output;\r\n\t\t\t\t\tdeltaK = error*getReLU(kNode.getSum());\r\n\t\t\t\t\tfor(int j = 0; j < kNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair jkWeight = kNode.parents.get(j);\r\n\t\t\t\t\t\tNode jNode = jkWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getJK(jNode, deltaK);\r\n\t\t\t\t\t\tjkWeight.weight += adjustedWeight;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//ij weight\r\n\t\t\t\tfor(int i = 0; i < hiddenNodes.size(); i++){\r\n\t\t\t\t\tNode jNode = hiddenNodes.get(i);\r\n\t\t\t\t\tif(jNode.parents == null) continue;\r\n\t\t\t\t\tfor(int j = 0; j < jNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair ijWeight = jNode.parents.get(j);\r\n\t\t\t\t\t\tNode iNode = ijWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getIJ(iNode, jNode, teacher, i);\r\n\t\t\t\t\t\tijWeight.weight += adjustedWeight;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void bsp(\n BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer)\n throws IOException, SyncException, InterruptedException {\n LongWritable key = new LongWritable();\n FloatVectorWritable value = new FloatVectorWritable();\n while (peer.readNext(key, value)) {\n FloatVector v = value.getVector();\n trainingSet.add(v);\n }\n\n if (peer.getPeerIndex() != peer.getNumPeers() - 1) {\n LOG.debug(peer.getPeerName() + \": \" + trainingSet.size() + \" training instances loaded.\");\n }\n \n while (this.iterations++ < maxIterations) {\n this.inMemoryModel.setIterationNumber(iterations);\n \n // each groom calculate the matrices updates according to local data\n if (peer.getPeerIndex() != peer.getNumPeers() - 1) {\n calculateUpdates(peer);\n } else {\n // doing summation received updates\n if (peer.getSuperstepCount() > 0) {\n // and broadcasts previous updated weights\n mergeUpdates(peer);\n }\n }\n\n peer.sync();\n\n if (maxIterations == Long.MAX_VALUE && isConverge) {\n if (peer.getPeerIndex() == peer.getNumPeers() - 1)\n peer.sync();\n break;\n }\n }\n\n peer.sync();\n if (peer.getPeerIndex() == peer.getNumPeers() - 1)\n mergeUpdates(peer); // merge last updates\n }",
"public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }",
"public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}",
"public void train() {\r\n // For each epoch, call setInputValue on input nodes\r\n for (int i = 0; i < maxEpoch; i++) {\r\n Collections.shuffle(trainingSet, random);\r\n\r\n // get each training instance\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n\r\n Instance instance = trainingSet.get(k);\r\n\r\n // set the input value in the input nodes from the training instance\r\n for (int j = 0; j < instance.attributes.size(); j++) {\r\n inputNodes.get(j).setInput(instance.attributes.get(j));\r\n }\r\n\r\n //set the target value in output nodes\r\n for (int j = 0; j < instance.classValues.size(); j++) {\r\n outputNodes.get(j).setTargetValue((double) instance.classValues.get(j));\r\n }\r\n\r\n // calculate values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n // for each hidden node\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateOutput();\r\n }\r\n\r\n //calculate values for output nodes\r\n double sumOfExponents = 0.0;\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n // for each output node\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateOutput();\r\n sumOfExponents += outputNode.getOutput();\r\n }\r\n\r\n //update output values of output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateOutputValue(sumOfExponents);\r\n }\r\n\r\n // calculate delta values for output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateDelta();\r\n }\r\n\r\n // calculate delta values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateDelta();\r\n hiddenNode.resetSumOfPartialDelta();\r\n }\r\n\r\n // update weights going from input layer to hidden layer\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.updateWeight(learningRate);\r\n }\r\n\r\n // update weights going from hidden layer to output layer\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateWeight(learningRate);\r\n }\r\n\r\n /*if (k == 0 && i==0) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n\r\n if (k == 0 && i == 0) {\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n if (hiddenNode.parents != null) {\r\n for (NodeWeightPair pair : hiddenNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n }*/\r\n }\r\n\r\n /* if (i==29) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }*/\r\n\r\n double totalLoss = 0.0;\r\n // Calculate loss and sum for each training instance, and then take average\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n Instance instance = trainingSet.get(k);\r\n totalLoss += loss(instance);\r\n }\r\n totalLoss /= trainingSet.size();\r\n System.out.println(\"Epoch: \" + i + \", \" + \"Loss: \" + String.format(\"%.3e\", totalLoss));\r\n }\r\n }",
"public void train()\r\n\t{\r\n\t\tfor(int i=0; i < this.maxEpoch; i++)\r\n\t\t{\r\n\t\t\tfor(Instance temp_example: this.trainingSet)\r\n\t\t\t{\r\n\t\t\t\tdouble O = calculateOutputForInstance(temp_example);\r\n\t\t\t\tdouble T = temp_example.output;\r\n\t\t\t\tdouble err = T - O;\r\n\r\n\t\t\t\t//w_jk (hidden to output)\r\n\t\t\t\tdouble g_p_out = (outputNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(this.learningRate*\r\n\t\t\t\t\t\t\thiddenNode.node.getOutput()*err*g_p_out);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//w_ij (input to hidden)\r\n\t\t\t\tint hid_count =0;\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tdouble g_p_hid = (hiddenNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\t\tif(hiddenNode.getType()==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tdouble a_i = inputNode.node.getOutput();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\tthis.learningRate*\r\n\t\t\t\t\t\t\t\t\ta_i*g_p_hid*(err*\r\n\t\t\t\t\t\t\t\t\toutputNode.parents.get(hid_count).weight*\r\n\t\t\t\t\t\t\t\t\tg_p_out)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\thid_count++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// for all w_pq, update weights\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tif(hiddenNode.getType()==2){\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tinputNode.weight += inputNode.get_deltaw_pq();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq(new Double (0.00));\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\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.weight += hiddenNode.get_deltaw_pq();\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t}\r\n\r\n\t\t\t} // end of an instance \r\n\t\t} // end of an epoch\r\n\t}",
"public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\tbackwardCalculation(records.get(j).output);\n\t\t\t}\n//\t\t\tpostprocessOutputs();\n\t\t}\n\t}",
"private void trainNetwork(long iterations) {\n\t\ttrainer.startTraining(network, iterations);\r\n\r\n\t}",
"private void evaluate(ArrayList<Individual> children){\n for(Individual i: children){\n RunExperiment runExperiment = new RunExperiment(i, number_cycle + 1);\n runExperiment.run();\n// Thread myThread = new Thread(runExperiment);\n// myThread.start();\n// threads.add(myThread);\n }\n// for(Thread t: threads){\n// try{\n// t.join();\n// }\n// catch(InterruptedException e){\n// System.out.println(\"Could not join: \"+e.getMessage());\n// }\n// }\n }",
"public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void trainData() throws IOException {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttestingFold = i;\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Training Tree-Augmented Naive Bayes for writing Fold\");\n\t\t\t}\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Calculating Class Priors across Data set.\\n\");\n\t\t\t}\n\t\t\tbuildPriors();\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Priors built.\\n Discretizing data into Naive Bin Estimator...\\n\" +\n\t\t\t\t\t\t\"Generating Completed Graph...\\nWeighting Edges...\\n\");\n\t\t\t}\n\t\t\tdiscretizeData();\n\t\t\ttest();\n\t\t}\n\n\t}",
"private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }",
"private void recalculateAllRoutes() {\n robotModels.parallelStream().forEach(m -> m.recalculateRoute(target, obstacles));\n }",
"public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }",
"@Override\n\tpublic TimeSeriesForestClassifier call()\n\t\t\tthrows InterruptedException, AlgorithmExecutionCanceledException, TimeoutException, AlgorithmException {\n\t\t\n\t\tTimeSeriesDataset dataset = this.getInput();\n\t\t\n\t\t// Perform Training\n\t\tfinal TimeSeriesTree[] trees = new TimeSeriesTree[this.numTrees];\n\t\tExecutorService execService = Executors.newFixedThreadPool(this.cpus);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tFuture<TimeSeriesTree>[] futures = new Future[this.numTrees];\n\t\tfor (int i = 0; i < this.numTrees; i++) {\n\t\t\tTimeSeriesTree tst = new TimeSeriesTree(this.maxDepth, this.seed + i, this.useFeatureCaching);\n\t\t\tfutures[i] = execService.submit(new Callable<TimeSeriesTree>() {\n\t\t\t\t@Override\n\t\t\t\tpublic TimeSeriesTree call() throws Exception {\n\n\t\t\t\t\ttst.train(dataset);\n\t\t\t\t\ttst.setTrained(true);\n\t\t\t\t\treturn tst;\n\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t// Wait for completion\n\t\texecService.shutdown();\n\t\texecService.awaitTermination(this.timeout.seconds(), TimeUnit.SECONDS);\n\t\tfor (int i = 0; i < this.numTrees; i++) {\n\t\t\ttry {\n\t\t\t\tTimeSeriesTree tst = futures[i].get();\n\t\t\t\ttrees[i] = tst;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tthrow new AlgorithmException(\n\t\t\t\t\t\t\"Could not train time series tree due to training exception: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\tthis.model.setTrees(trees);\n\t\tthis.model.setTrained(true);\n\n\t\treturn this.model;\n\t}",
"public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }",
"public ParallelApply() {\n super.setParallel(true);\n }",
"public void buildAllPossibleTrain() {\n while (depotOnThisLine.checkOnPossibilityCreatingTrain()) {\n try {\n trains.add(Factory.buildNewTrain(depotOnThisLine));\n } catch (DepotNotExistException e) {\n e.printStackTrace();\n }\n }\n }",
"public void runExploration() {\n List<Queue<String>> smallSkierQueues = partitionQueue(skierQueue);\n List<Queue<String>> smallLiftQueues = partitionQueue(liftQueue);\n List<Queue<String>> smallhourQueues = partitionQueue(hourQueue);\n\n // run threads here\n long startTime = System.nanoTime();\n for(int i = 0; i < 8; i++) {\n SmallSkierThread runSmallSkier = new SmallSkierThread(smallSkierQueues.get(i));\n SmallLiftThread runSmallLift = new SmallLiftThread(smallLiftQueues.get(i));\n SmallHourThread runSmallHour = new SmallHourThread(smallhourQueues.get(i));\n runSmallSkier.start();\n runSmallHour.start();\n runSmallLift.start();\n }\n // -> Aggregate results here\n // ...\n // ...\n // ...\n // <- End aggregation\n long endTime = System.nanoTime();\n long duration = endTime - startTime;\n System.out.println(\"Concurrent Solution Runtime: \" + duration/1000f + \" microseconds\");\n }",
"public static void main(String[] args) throws Exception {\n ExecutionEnvironment env = ExecutionEnvironment.createLocalEnvironment();\n env.getConfig().disableSysoutLogging();\n env.setParallelism(4);\n\n /********** DATA LOADING ***************/\n //Load the data set\n DataFlink<DataInstance> data = DataFlinkLoader.open(env,\"./datasets/BigSensorReadings.arff\");\n\n int nRooms = 10;\n\n /********** Model Definition ************/\n DAG fireDetectorModel = creatBigFireDectectorModel(data.getAttributes(),nRooms);\n\n /********** Model Learning ************/\n //Define the learning engine (distributed Variational Message Passing) and the parameters\n dVMP svb = new dVMP();\n svb.setBatchSize(1000);\n svb.setOutput(true);\n svb.setDAG(fireDetectorModel);\n\n //Specify the associated constraints (encoding prior knowledge)\n for (int i = 0; i < nRooms; i++) {\n Variable sensorT1 = fireDetectorModel.getVariables().getVariableByName(\"SensorTemp1_\"+i);\n Variable sensorT2 = fireDetectorModel.getVariables().getVariableByName(\"SensorTemp2_\"+i);\n svb.addParameterConstraint(new Constraint(\"alpha\", sensorT1, 0.0));\n svb.addParameterConstraint(new Constraint(\"alpha\", sensorT2, 0.0));\n svb.addParameterConstraint(new Constraint(\"beta1\", sensorT1, 1.0));\n svb.addParameterConstraint(new Constraint(\"beta1\", sensorT2, 1.0));\n\n Variable temp = fireDetectorModel.getVariables().getVariableByName(\"Temperature_\"+i);\n svb.addParameterConstraint(new Constraint(\"alpha | {Fire_\"+i+\" = 0}\", temp, 0.0));\n svb.addParameterConstraint(new Constraint(\"beta1 | {Fire_\"+i+\" = 0}\", temp, 1.0));\n\n }\n\n //Set-up the learning phase\n svb.initLearning();\n\n //Perform Learning\n Stopwatch watch = Stopwatch.createStarted();\n svb.updateModel(data);\n System.out.println(watch.stop());\n\n\n //Print the learnt model\n System.out.println(svb.getLearntBayesianNetwork());\n\n }",
"public void trainModel(List<BugReport> brs){\r\n\t\t\r\n\t\tdouble startTime = System.currentTimeMillis();\r\n\t\tthis.initializeModel(brs);\r\n\t\tthis.inferenceModel(brs);\r\n\t\tdouble endTime = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"LDA training time cost: \"+(endTime-startTime)/1000.0);\r\n\t\t\r\n\t}",
"public void preSerialize(){\n\t\tfittings = new ArrayList<Fitting>();\n\t\tfor(CutSheetInfo csi : getMainThreadedList()){\n\t\t\tpreSerializeOne(csi);\n\t\t}\n\t\tfor(BranchInfo bi : getBranchMap().values()){\n\t\t\tfor(EdgeMultiplicity em : bi.getEdgeMultiplicity()){\n\t\t\t\tCutSheetInfo csi = em.getEdgeInfo();\n\t\t\t\tpreSerializeOne(csi);\n\t\t\t\t/*\n\t\t\t\tfor(int i = 0; i < 2; i++){\n\t\t\t\t\tFitting f = (i == 0) ? csi.getStartFitting() : csi.getEndFitting();\n\t\t\t\t\tint idx = fittings.indexOf(f);\n\t\t\t\t\tif(idx < 0){\n\t\t\t\t\t\tidx = fittings.size();\n\t\t\t\t\t\tfittings.add(f);\n\t\t\t\t\t}\n\t\t\t\t\tif(i == 0){\n\t\t\t\t\t\tcsi.startFittingId = idx;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tcsi.endFittingId = idx;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n for (int i = start; i < end; i++) {\n Node node = nodes.get(i);\n //Filter out nearby crime\n List<Crime> relatedCrimes = crimes.parallelStream()\n .filter((crime) -> Math.abs(crime.getLongitude() - node.getLongitude()) < 0.04) //1.72 miles in coordinate representation\n .filter((crime -> Math.abs(crime.getLatitude() - node.getLatitude()) < 0.04))\n .collect(Collectors.toList());\n for (Crime crime : relatedCrimes) {\n GKDE.gaussianKDEAccumulate(crime, node);\n }\n GKDE.gaussianKDEResult(node, 10);\n }\n //release the latch\n latch.countDown();\n }",
"public void updateModel() {\n\t\tIterator<Cell> itr = iterator();\n\t\twhile(itr.hasNext()) itr.next().update();\n\t\titr = iterator();\n\t\twhile(itr.hasNext()) {\n\t\t\t(itr.next()).nextGeneration();\n\t\t}\n\t\tupdateGraph();\n\t}",
"void fit(DataSetIterator iterator);",
"@Test\n public void testTrain_RegressionDataSet_ExecutorService() {\n System.out.println(\"train\");\n RegressionDataSet trainSet = FixedProblems.getSimpleRegression1(150, new Random(2));\n RegressionDataSet testSet = FixedProblems.getSimpleRegression1(50, new Random(3));\n\n for (boolean modification1 : new boolean[] { true, false })\n for (SupportVectorLearner.CacheMode cacheMode : SupportVectorLearner.CacheMode.values()) {\n PlattSMO smo = new PlattSMO(new RBFKernel(0.5));\n smo.setCacheMode(cacheMode);\n smo.setC(1);\n smo.setEpsilon(0.1);\n smo.setModificationOne(modification1);\n smo.train(trainSet, true);\n\n double errors = 0;\n for (int i = 0; i < testSet.size(); i++)\n errors += Math.pow(testSet.getTargetValue(i) - smo.regress(testSet.getDataPoint(i)), 2);\n assertTrue(errors / testSet.size() < 1);\n }\n }",
"public void train() {\n\t\tfor (Instance ins : arrTrainInstances) {\n\t\t\tif (ins.scorePmi_E1E2 > largestPMI)\n\t\t\t\tlargestPMI = ins.scorePmi_E1E2;\n\t\t}\n\t\tSystem.out.println(\"Largest PMI: \" + largestPMI);\n\n\t\tfor (Instance ins : arrTrainInstances) {\n\t\t\tins.scorePmi_E1E2 = ins.scorePmi_E1E2 / largestPMI;\n\t\t}\n\n\t\tfor (Instance ins : arrTestInstances) {\n\t\t\tins.scorePmi_E1E2 = ins.scorePmi_E1E2 / largestPMI;\n\t\t}\n\n\t\tint sizeD0 = arrD0.size();\n\t\tint sizeD1 = arrD1.size();\n\t\tint sizeD2 = arrD2.size();\n\t\tint sizeD3 = arrD3.size();\n\n\t\tint sizeMin = Math.min(sizeD0, Math.min(sizeD1, Math\n\t\t\t\t.min(sizeD2, sizeD3)));\n\t\tSystem.out.println(\"sizeMin=\" + sizeMin);\n\n\t\tint n = instanceNums.length;\n\n\t\tboolean flag = false;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint k = instanceNums[i];\n\n\t\t\tif (k > sizeMin) {\n\t\t\t\tk = sizeMin;\n\t\t\t\tinstanceNums[i] = k;\n\t\t\t\tflag = true;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\\nk=\" + k);\n\n\t\t\tArrayList<Instance> arrSub0 = getInstances(arrD0, k);\n\t\t\tArrayList<Instance> arrSub1 = getInstances(arrD1, k);\n\t\t\tArrayList<Instance> arrSub2 = getInstances(arrD2, k);\n\t\t\tArrayList<Instance> arrSub3 = getInstances(arrD3, k);\n\n\t\t\tArrayList<Instance> arrTrains = new ArrayList<Instance>();\n\t\t\tarrTrains.addAll(arrSub0);\n\t\t\tarrTrains.addAll(arrSub1);\n\t\t\tarrTrains.addAll(arrSub2);\n\t\t\tarrTrains.addAll(arrSub3);\n\t\t\tCollections.shuffle(arrTrains);\n\n\t\t\tSystem.out.println(\"Training size: \" + arrTrains.size());\n\n\t\t\ttrain(arrTrains);\n\n\t\t\tdouble acc = test();\n\t\t\tacc = test();\n\n\t\t\taccuracies[i] = acc;\n\n\t\t\tcount++;\n\n\t\t\tif (flag == true)\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.print(\" | \" + \"K=\" + instanceNums[i]);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int i = 0; i < count; i++) {\n\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\n\t\t\tString res = df.format(accuracies[i]);\n\t\t\tSystem.out.print(\" | \" + res);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] args) throws ParallelException {\r\n\t\tif (args.length < 2) {\r\n\t\t\tSystem.err.println(\"usage: java -cp <classpath> <graphfile> <k> \"+\r\n\t\t\t\t \"[numinitnodes] [numiterations] \"+\r\n\t\t\t\t \"[do_local_search] [num_dls_threads] \"+\r\n\t\t\t\t \"[max_allowed_time_millis] [use_N2RXP_4_DLS]\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n try {\r\n long st = System.currentTimeMillis();\r\n Graph g = DataMgr.readGraphFromFile2(args[0]);\r\n\t\t\tint k = Integer.parseInt(args[1]);\r\n double best = 0;\r\n boolean do_local_search = false;\r\n\t\t\tboolean use_N2RXP_4_ls = false;\r\n int num_threads = 1;\r\n\t\t\tlong max_time_ms = Long.MAX_VALUE; // indicates the max allowed time to run (in millis)\r\n GRASPPacker p = new GRASPPacker(g,k);\r\n Set init=null;\r\n int num_iters = 1;\r\n if (args.length>2) {\r\n int numinit = 0;\r\n try {\r\n numinit = Integer.parseInt(args[2]);\r\n if (numinit<0) numinit=0; // ignore wrong option value and continue\r\n }\r\n catch (ClassCastException e) {\r\n e.printStackTrace(); // ignore wrong option value and continue\r\n }\r\n Graph gp = p._g;\r\n int gsz = gp.getNumNodes();\r\n init = k==2 ? new TreeSet(new NodeComparator2()) : new TreeSet(new NodeComparator4());\r\n\t\t\t\tRandom rnd = RndUtil.getInstance().getRandom();\r\n for (int i=0; i<numinit; i++) {\r\n int nid = rnd.nextInt(gsz);\r\n Node n = gp.getNodeUnsynchronized(nid);\r\n init.add(n);\r\n }\r\n if (args.length>3) {\r\n try {\r\n num_iters = Integer.parseInt(args[3]);\r\n if (num_iters<0) num_iters = 0;\r\n }\r\n catch (ClassCastException e) {\r\n e.printStackTrace(); // ignore wrong option value and continue\r\n }\r\n if (args.length>4) {\r\n do_local_search = \"true\".equals(args[4]);\r\n if (args.length>5) {\r\n try {\r\n num_threads = Integer.parseInt(args[5]);\r\n\t\t\t\t\t\t\t\tif (args.length>6) {\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tmax_time_ms = Long.parseLong(args[6]);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (args.length>7)\r\n\t\t\t\t\t\t\t\t\t\tuse_N2RXP_4_ls = \"true\".equals(args[7]);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace(); // ignore wrong option and continue\r\n }\r\n }\r\n }\r\n }\r\n }\r\n Set best_found = null;\r\n\t\t\tif (max_time_ms<0) // -1 or any negative value indicates +Inf\r\n\t\t\t\tmax_time_ms = Long.MAX_VALUE;\r\n\t\t\tboolean cont = true;\r\n\t\t\tTimerThread t = new TimerThread(max_time_ms, cont);\r\n\t\t\tt.start();\r\n for (int i=0; i<num_iters && t.doContinue(); i++) {\r\n\t\t\t\tSystem.err.println(\"GRASPPacker: starting iteration \"+i);\r\n Set s = p.pack(init); // Set<Node>\r\n if (do_local_search) {\r\n // convert s to Set<Integer>\r\n Set nodeids = new IntSet();\r\n Iterator iter = s.iterator();\r\n while (iter.hasNext()) {\r\n Node n = (Node) iter.next();\r\n Integer nid = new Integer(n.getId());\r\n nodeids.add(nid);\r\n }\r\n // now do the local search\r\n DLS dls = new DLS();\r\n AllChromosomeMakerIntf movesmaker;\r\n\t\t\t\t\tif (use_N2RXP_4_ls) movesmaker = new IntSetN2RXPGraphAllMovesMaker(k);\r\n\t\t\t\t\telse movesmaker = new IntSetN1RXPFirstImprovingGraphAllMovesMakerMT(k);\r\n IntSetNeighborhoodFilterIntf filter = new GRASPPackerIntSetNbrhoodFilter2(k);\r\n //FunctionIntf f = k==2 ? new SetSizeEvalFunction() : new SetWeightEvalFunction(g);\r\n FunctionIntf f;\r\n if (k==2) f = new SetSizeEvalFunction();\r\n else f = new SetWeightEvalFunction(g);\r\n HashMap dlsparams = new HashMap();\r\n dlsparams.put(\"dls.movesmaker\",movesmaker);\r\n dlsparams.put(\"dls.x0\", nodeids);\r\n dlsparams.put(\"dls.numthreads\", new Integer(num_threads));\r\n dlsparams.put(\"dls.maxiters\", new Integer(10)); // itc: HERE rm asap\r\n dlsparams.put(\"dls.graph\", g);\r\n dlsparams.put(\"dls.intsetneighborhoodfilter\", filter);\r\n //dlsparams.put(\"dls.createsetsperlevellimit\", new Integer(100));\r\n dls.setParams(dlsparams);\r\n PairObjDouble pod = dls.minimize(f);\r\n Set sn = (Set) pod.getArg();\r\n if (sn!=null) {\r\n s.clear();\r\n Iterator sniter = sn.iterator();\r\n while (sniter.hasNext()) {\r\n Integer id = (Integer) sniter.next();\r\n Node n = g.getNode(id.intValue());\r\n s.add(n);\r\n }\r\n }\r\n }\r\n int iter_best = s.size();\r\n double iter_w_best = 0.0;\r\n Iterator it = s.iterator();\r\n while (it.hasNext()) {\r\n Node n = (Node) it.next();\r\n Double nwD = n.getWeightValueUnsynchronized(\"value\"); // used to be n.getWeightValue(\"value\");\r\n double nw = nwD==null ? 1.0 : nwD.doubleValue();\r\n iter_w_best += nw;\r\n }\r\n System.err.println(\"GRASPPacker.main(): iter: \"+i+\": soln size found=\"+iter_best+\" soln weight=\"+iter_w_best);\r\n if (iter_w_best > best) {\r\n best_found = s;\r\n best = iter_w_best;\r\n }\r\n }\r\n long tot = System.currentTimeMillis()-st;\r\n System.out.println(\"Final Best soln found=\"+best+\" total time=\"+tot+\" (msecs)\");\r\n if (p.isFeasible(best_found)) {\r\n System.out.println(\"feasible soln: \"+printNodes(best_found));\r\n }\r\n else System.err.println(\"infeasible soln\");\r\n // write solution to file\r\n PrintWriter pw = new PrintWriter(new FileWriter(\"sol.out\"));\r\n pw.println(best);\r\n Iterator it = best_found.iterator();\r\n while (it.hasNext()) {\r\n Node n = (Node) it.next();\r\n pw.println((n.getId()+1));\r\n }\r\n pw.flush();\r\n pw.close();\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n System.exit(-1);\r\n }\r\n }",
"public void run() {\n\n // Initialize control center.\n\n control = new Dispatch(parameters);\n control.run();\n linked = control.gettasks();\n\n // Initialize trains.\n\n trains = new TrainSim[parameters.numTrains];\n\n for (int i = 0; i < parameters.numTrains; i++) {\n\n trains[i] = new TrainSim(parameters, i);\n trains[i].genbasis();\n\n }\n\n // Add linked tasks to trains.\n\n for (Task each : linked) {\n\n int trainid = each.getTrain();\n each = new Task(each.getType(), each.getBeginTime(), parameters, false);\n each.setID(trainid);\n if (each.getArrTime() < parameters.numHours*60) {\n trains[trainid].linktask(each);\n }\n }\n\n // Run each train\n\n for (TrainSim each : trains) {\n\n each.run();\n\n }\n\n }",
"public void runParallel() {\n Thread[] threads = new Thread[parallelCount];\n for (int i = 1; i < parallelCount; i++) {\n final int finalI = i;\n Runnable runnable = new Runnable() {\n public void run() {\n runRepeat(finalI);\n }\n };\n threads[i] = new Thread(runnable, \"JAM-\" + i);\n System.out.println(\"Starting thread: \" + threads[i].getName());\n threads[i].start();\n }\n runRepeat(0);\n }",
"@Override\n\tpublic void run() {\n\t\tMap<Integer, Integer> roots = new TreeMap<Integer, Integer>();\n\t\t\n\t\tEdge[] edges = new Edge[this.edges.length];\n\t\tint n, weight, relevantEdges, root, lowerBound = 0;\n\t\n\t\t// Sort edges by weight.\n\t\tquickSort(0, this.edges.length - 1);\n\t\n\t\t// Compute initial lower bound (best k - 1 edges).\n\t\t// Choosing the cheapest k - 1 edges is not very intelligent. There is no guarantee\n\t\t// that this subset of edges even induces a subgraph over the initial graph.\n\t\t// TODO: Find a better initial lower bound.\n\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\tlowerBound += this.edges[i].weight;\n\t\t}\n\t\n\t\t// Iterate over all nodes in the graph and run Prim's algorithm\n\t\t// until k - 1 edges are fixed.\n\t\t// As all induced subgraphs have k nodes and are connected according to Prim, they\n\t\t// are candidate solutions and thus submitted.\n\t\tfor (root = 0; root < taken.length; root++) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\n\t\t\ttaken[root] = true;\n\t\t\tn = 0;\n\t\t\tweight = 0;\n\t\t\trelevantEdges = this.edges.length;\n\n\t\t\twhile (n < solution.length) { \n\t\t\t\tfor (int i = 0; i < relevantEdges; i++) {\n\t\t\t\t\t// XOR to check if connected and no circle.\n\t\t\t\t\tif (taken[edges[i].node1] ^ taken[edges[i].node2]) {\n\t\t\t\t\t\ttaken[taken[edges[i].node1] ? edges[i].node2 : edges[i].node1] = true;\n\t\t\t\t\t\tsolution[n++] = edges[i];\n\t\t\t\t\t\tweight += edges[i].weight;\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Check for circle.\n\t\t\t\t\telse if (taken[edges[i].node1]) {\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Sum up what we've just collected and submit this\n\t\t\t// solution to the framework.\n\t\t\tHashSet<Edge> set = new HashSet<Edge>(solution.length);\n\t\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\t\tset.add(solution[i]);\n\t\t\t}\n\t\t\tsetSolution(weight, set);\n\t\t\troots.put(weight, root);\n\t\t}\n\n\t\t// Now for the real business, let's do some Branch-and-Bound. Roots of \"k Prim Spanning Trees\"\n\t\t// are enumerated by weight to increase our chances to obtain the kMST earlier.\n\t\tfor (int item : roots.values()) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\t\t\ttaken[item] = true;\n\t\t\tbranchAndBound(edges, solution.length, 0, lowerBound);\n\t\t}\n\t}",
"private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }",
"public void run() {\n try {\n PSTableGroup.registerThread();\n //get tables\n ClientTable tableL = PSTableGroup.getTableOrDie(0);\n ClientTable tableR = PSTableGroup.getTableOrDie(1);\n ClientTable tableLoss = PSTableGroup.getTableOrDie(2);\n // Initialize MF solver\n int totalNumWorkers = getTotalNumWorker();\n int globalWorkerId = getGlobalWorkerId(localThreadId);\n\n initMF(tableL, tableR);\n PSTableGroup.globalBarrier();\n long start = System.currentTimeMillis();\n //run mf solver\n for(int iter = 0; iter < numIterations; iter++) {\n if(globalWorkerId == 0) {\n System.out.println(\"Iteration \" + String.valueOf(iter + 1) + \"/\" + String.valueOf(numIterations));\n }\n //clear loss function table\n DenseRow lossRow = (DenseRow)tableLoss.get(0);\n tableLoss.inc(0, globalWorkerId, - lossRow.get(globalWorkerId));\n // Divide matrix elements across workers, and perform SGD\n double stepSize = initStepSize * Math.pow(stepSizeOffset + iter, - stepSizePow);\n\n MatrixLoader.Element ele = dataMatrix.getNextEl(globalWorkerId);\n while(ele.isLastEl == false) {\n sgdElement(ele.row, ele.col, ele.value, stepSize, globalWorkerId, tableL, tableR, tableLoss);\n ele = dataMatrix.getNextEl(globalWorkerId);\n }\n //output loss function\n if(globalWorkerId == 0) {\n lossRow = (DenseRow)tableLoss.threadGet(0);\n double loss = 0;\n for(int t = 0; t < totalNumWorkers; t++) {\n loss += lossRow.get(t);\n }\n System.out.println(\"loss function = \" + String.valueOf(loss));\n }\n PSTableGroup.clock();\n }\n long end = System.currentTimeMillis();\n if(globalWorkerId == 0) {\n System.out.println(\"Total time is \" + String.valueOf((end - start) / 1000f));\n }\n // Let stale values finish propagating (performs staleness+1 clock()s)\n PSTableGroup.globalBarrier();\n PSTableGroup.deregisterThread();\n\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public FlowGraph parallel_append(Collection<FlowGraph> graphs){\r\n for(FlowGraph graph : graphs){\r\n this.parallel_append(graph);\r\n }\r\n return this;\r\n }",
"public void training(ArrayList<UnlockData> unlocks) {\n // Create a map to hold sub lists of clusters\n Map<Integer, ArrayList<UnlockData>> map = new HashMap<>();\n // Method to identify clusters in the training unlocks\n ArrayList<UnlockData> clusters = analyseClusters(unlocks);\n for (UnlockData unlock : clusters) {\n // Fetch the list for this object's cluster id\n ArrayList<UnlockData> temp = map.get(unlock.getClusterId());\n\n if (temp == null) {\n // If the list is null we haven't seen an\n // object with this cluster id before, so create\n // a new list and add it to the map\n temp = new ArrayList<UnlockData>();\n map.put(unlock.getClusterId(), temp);\n }\n temp.add(unlock);\n }\n // Method to create models of clusters of the same unlocks\n for (Map.Entry<Integer, ArrayList<UnlockData>> entry : map.entrySet()) {\n TrainModel model = new TrainModel();\n\n ArrayList<UnlockData> cluster = new ArrayList<>();\n\n for (UnlockData unlock : entry.getValue()) {\n cluster.add(unlock);\n }\n // Skip cluster id with 0, as they have not been assigned yet\n // Since every group of clusters has the same id, check only first\n if (cluster.get(0).cluster_id != 0) {\n try {\n model.train(cluster);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tprotected void setup(Reducer<LongWritable, Text, Text, Text>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tsuper.setup(context);\n\t\tminPnts=Long.parseLong(context.getConfiguration().get(\"minPnts\"));\n\t\tepsilon=Double.parseDouble(context.getConfiguration().get(\"epsilon\"));\n\t\toutput = new MultipleOutputs<Text,Text>(context);\n\t\tPath[] cacheFilesLocal = DistributedCache.getLocalCacheFiles(context.getConfiguration());\n\t\tfor (Path eachPath : cacheFilesLocal) {\n\t\t\t\n\t\t\tloadPartition(eachPath, context);\n\t\t\t\n\t\t}\n\t}",
"public void performTraining() {\n\tint counter = 0;\n\tint success = 0;\n\n\tdo {\n\t success = 0;\n\n\t for (int ii = 0; ii < pl.size(); ii++) {\n\t\tPattern pn = pl.get(ii);\n\t\tbp.runNetwork(pn);\n\t\tbp.trainNetwork(pn);\n\n\t\tdouble truth[] = pn.getOutput();\t\t\n\t\tdouble results[] = bp.getOutputPattern();\n\n\t\tboolean failed = false;\n\n// \t\tSystem.out.print(\"patt \" + ii + \" \");\n// \t\tdouble[] input = pn.getInput();\n// for (int jj = 0; jj < input.length; jj++) {\n// \t\t System.out.print(round2(input[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.print(\"// \");\n// for (int jj = 0; jj < truth.length; jj++) {\n// \t\t System.out.print(round2(truth[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.println();\n\n// for (int jj = 0; jj < results.length; jj++) {\n// \t\t System.out.print(results[jj] + \" \");\n// \t\t // System.out.print(round2(results[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.println();\n\t\t\n\t\tfor (int jj = 0; jj < results.length; jj++) {\n if (round1(results[jj]) != round2(truth[jj])) {\n failed = true;\n }\n\t\t}\n \n if (!failed) {\n ++success;\n } \n }\n\n\t if ((++counter % 100) == 0) {\n System.out.println(counter + \" success:\" + success + \" needed:\" + pl.size());\n }\n } while (success < pl.size());\n\t\n\tSystem.out.println(\"Training complete in \" + counter + \" cycles\");\n }",
"@Test\n public void testParallelPropagationLoopBack3Sites() {\n // Create locators\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n Integer tkPort = vm2.invoke(() -> WANTestBase.createFirstRemoteLocator(3, lnPort));\n\n // create cache and receivers on all the 3 sites\n createCacheInVMs(lnPort, vm3, vm6);\n createReceiverInVMs(vm3, vm6);\n createCacheInVMs(nyPort, vm4, vm7);\n createReceiverInVMs(vm4, vm7);\n createCacheInVMs(tkPort, vm5);\n createReceiverInVMs(vm5);\n\n\n // create senders on all the 3 sites\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 3, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny\", 3, true, 100, 10, false, false, null, true));\n\n vm5.invoke(() -> WANTestBase.createSender(\"tk\", 1, true, 100, 10, false, false, null, true));\n\n // create PR on the 3 sites\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"tk\", 0, 100,\n isOffHeap()));\n\n // start senders on all the sites\n startSenderInVMs(\"ln\", vm3, vm6);\n\n startSenderInVMs(\"ny\", vm4, vm7);\n\n vm5.invoke(() -> WANTestBase.startSender(\"tk\"));\n\n // pause senders on site1 and site3. Site2 has the sender running to pass along events\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk\"));\n\n // do puts on site1\n vm3.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n\n // do more puts on site3\n vm5.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n\n // verify queue size on site1 and site3\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln\", 100));\n vm5.invoke(() -> WANTestBase.verifyQueueSize(\"tk\", 100));\n\n // resume sender on site1 so that events reach site2 and from there to site3\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n vm6.invoke(() -> waitForSenderRunningState(\"ln\"));\n vm3.invoke(() -> waitForSenderRunningState(\"ln\"));\n\n // validate region size on site2 (should have 100) and site3 (should have 200)\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // verify queue size remains same on site3 which means event loopback did not happen\n // this means events coming from site1 are not enqueued back into the sender\n vm5.invoke(() -> WANTestBase.verifyQueueSize(\"tk\", 100));\n\n // resume sender on site3\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk\"));\n vm5.invoke(() -> waitForSenderRunningState(\"tk\"));\n\n // validate region size\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }",
"public static void main(String[] args) {\n\t\tint[] featuresRemoved = new int[]{14,15,0,3,7,8,9,13}; //removed age,education,relationship,race,sex,country\n\t\t\n\t\tCrossValidation.Allow_testSet_to_be_Appended = true;\n\t\tDataManager.SetRegex(\"?\");\n\t\tDataManager.SetSeed(0l); //debugging for deterministic random\n\t\t\n\t\tArrayList<String[]> dataSet = DataManager.ReadCSV(\"data/adult.train.5fold.csv\",false);\n\t\tdataSet = DataManager.ReplaceMissingValues(dataSet);\n\t\tDoubleMatrix M = DataManager.dataSetToMatrix(dataSet,14);\n\t\tList<DoubleMatrix> bins = DataManager.split(M, 15);\n\t\t//List<DoubleMatrix> bins = DataManager.splitFold(M, 5,true); //random via permutation debugging\n\t\t\n\t\tArrayList<String[]> testSet = DataManager.ReadCSV(\"data/adult.test.csv\",false);\n\t\ttestSet = DataManager.ReplaceMissingValues(testSet);\n\t\tDoubleMatrix test = DataManager.dataSetToMatrix(testSet,14);\n\t\tList<DoubleMatrix> testBins = DataManager.splitFold(test, 8, false);\n\t\t\n\t\t\n\t\t//initiate threads \n\t\tint threadPool = 16;\n\t\tExecutorService executor = Executors.newFixedThreadPool(threadPool);\n\t\tList<Callable<Record[]>> callable = new ArrayList<Callable<Record[]>>();\t\t\n\t\t\n\t\tlong startTime = System.currentTimeMillis(); //debugging - test for optimisation \n\t\t\n\t\t\n\t\t\n\t\t//unweighted\n\t\tSystem.out.println(\"Validating Unweighted KNN...\");\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\t\n\t\t\tDoubleMatrix Train = new DoubleMatrix(0,bins.get(0).columns);\n\t\t\tDoubleMatrix Validation = bins.get(i);\n\t\t\t\n\t\t\tfor(int j = 0; j < bins.size(); j++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tTrain = DoubleMatrix.concatVertically(Train, bins.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//build worker thread\n\t\t\tCrossValidation fold = new CrossValidation(Train, Validation,14,featuresRemoved,40,2,false);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\t//returned statistics of each fold.\n\t\tList<Record[]> unweightedRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\t//collect all work thread values \n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\tunweightedRecords.add(recordFold.get());\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\t\n\t\n\t\tcallable.clear();\n\t\t\n\t\t\n\t\t\n\t\t//weighted\n\t\tSystem.out.println(\"Validating Weighted KNN...\");\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\tDoubleMatrix Train = new DoubleMatrix(0,bins.get(0).columns);\n\t\t\tDoubleMatrix Validation = bins.get(i);\n\t\t\t\n\t\t\tfor(int j = 0; j < bins.size(); j++) {\n\t\t\t\tif(i != j) {\n\t\t\t\t\tTrain = DoubleMatrix.concatVertically(Train, bins.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//build worker thread\n\t\t\tCrossValidation fold = new CrossValidation(Train, Validation,14,featuresRemoved,40,2,true);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\t//returned statistics of each fold.\n\t\tList<Record[]> weightedRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\t//collect all work thread values \n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\tweightedRecords.add(recordFold.get());\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\t\t\n\t\t\n\t\t\n\t\t\n\t\t//find best parameter \n\t\tint bestKNN = 0;\n\t\tdouble bestAccuracy = 0;\n\t\tboolean weighted = false;\n\t\tint validationIndex = 0;\n\t\tfor(int i = 0; i < unweightedRecords.get(0).length; i++) {\n\t\t\t\n\t\t\tint currentK = 0;\n\t\t\tdouble currentAccuracy = 0;\n\t\t\t\n\t\t\tList<Record[]> a = new ArrayList<Record[]>();\n\t\t\tfor(int j = 0; j < unweightedRecords.size(); j ++) { \n\t\t\t\ta.add(new Record[]{ unweightedRecords.get(j)[i]});\n\t\t\t\tcurrentK = unweightedRecords.get(j)[i].KNN;\n\t\t\t}\n\t\t\t\n\t\t\tint[][] m = DataManager.combineMat(a);\n\t\t\tcurrentAccuracy = DataManager.getAccuracy(m);\n\t\t\t\n\t\t\tif(currentAccuracy > bestAccuracy) {\n\t\t\t\tbestKNN = currentK;\n\t\t\t\tbestAccuracy = currentAccuracy;\n\t\t\t\tweighted = false;\n\t\t\t\tvalidationIndex = i;\n\t\t\t\tSystem.out.println(bestKNN + \" : unweighted : \" +bestAccuracy + \" : Best\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(currentK + \" : unweighted : \" + currentAccuracy);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i = 0; i < weightedRecords.get(0).length; i++) {\n\t\t\t\n\t\t\tint currentK = 0;\n\t\t\tdouble currentAccuracy = 0;\n\t\t\t\n\t\t\tList<Record[]> a = new ArrayList<Record[]>();\n\t\t\tfor(int j = 0; j < weightedRecords.size(); j ++) { \n\t\t\t\ta.add(new Record[]{ weightedRecords.get(j)[i]});\n\t\t\t\tcurrentK = weightedRecords.get(j)[i].KNN;\n\t\t\t}\n\t\t\t\n\t\t\tint[][] m = DataManager.combineMat(a);\n\t\t\tcurrentAccuracy = DataManager.getAccuracy(m);\n\t\t\t\n\t\t\tif(currentAccuracy >= bestAccuracy) {\n\t\t\t\tbestKNN = currentK;\n\t\t\t\tbestAccuracy = currentAccuracy;\n\t\t\t\tweighted = true;\n\t\t\t\tvalidationIndex = i;\n\t\t\t\tSystem.out.println(bestKNN + \" : weighted :\" +bestAccuracy + \" : Best\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(currentK + \" : weighted :\" + currentAccuracy);\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t\n\t\tList<Record[]> bestValidation = new ArrayList<Record[]>();\n\t\tfor(int i = 0; i < bins.size(); i++) {\n\t\t\tif(weighted) {\n\t\t\t\tbestValidation.add(new Record[]{ weightedRecords.get(i)[validationIndex]});\n\t\t\t} else {\n\t\t\t\tbestValidation.add(new Record[]{ unweightedRecords.get(i)[validationIndex]});\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Testing...\");\n\t\t\n\t\t//KNN on test set\n\t\tcallable.clear();\n\t\t\n\t\t//build worker threads\n\t\tfor(int i = 0; i < testBins.size(); i++) {\n\t\t\tCrossValidation fold = new CrossValidation(M, testBins.get(i),14,featuresRemoved,bestKNN,bestKNN,weighted);\n\t\t\tcallable.add(fold);\n\t\t}\n\t\t\n\t\tList<Record[]> testRecords = new ArrayList<Record[]>();\n\t\t\n\t\ttry {\n\t\t\tList<Future<Record[]>> set = executor.invokeAll(callable);\n\t\t\t\n\t\t\tfor(Future<Record[]> recordFold : set) {\n\t\t\t\ttestRecords.add(recordFold.get());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\tint[][] testM = DataManager.combineMat(testRecords);\n\t\tdouble testAccuracy = DataManager.getAccuracy(testM);\n\t\t//double teststd = DataManager.GetStd(testRecords);\n\t\t\n\t\t//print stuff\n\t\tSystem.out.println(bestKNN + \" : \"+ weighted + \" : \" + testAccuracy);\n\t\tSystem.out.println(testM[0][0] + \", \" + testM[0][1] +\", \" + testM[1][0] + \", \" + testM[1][1]);\n\t\t\n\t\t//delete all worker threads\n\t\texecutor.shutdownNow();\n\t\t\n\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\tlong totalTime = endTime - startTime;\n\t\tSystem.out.println(\"Run time(millisecond): \" + totalTime );\n\t\tSystem.out.println(\"Thread pool: \" + threadPool );\n\t\tSystem.out.println(\"Cores: \" + Runtime.getRuntime().availableProcessors());\n\t\t\n\t\t//prints to file\n\t\tDataManager.saveRecord(\"data/grid.results.txt\", 14, featuresRemoved,\"<=50k\", bestKNN, weighted, bestValidation, testRecords, testRecords.get(0)[0].classType, 5, totalTime, threadPool);\n\t}",
"@Override\n public void crawl() throws IOException {\n final String seedURL = url;\n Queue<String> currentDepthQueue = new LinkedList<>();\n currentDepthQueue.add(seedURL);\n crawl(visitedURL, 1, currentDepthQueue);\n customObjectWriter.flush();\n }",
"@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}",
"public void fit(int[][] trainingData, int[][] trainingLabels) {\n\t\tfor(int epoch = 0; epoch < maxEpoch; epoch ++) {\n\t\t\tfor(int i = 0; i < trainingData.length; i++) {\n\t\t\t\ttrain(trainingData[i], trainingLabels[i]);\n\t\t\t}\n\t\t}\n\t}",
"private void learnStep(){\n Connection[][][] temp = this.connections;\r\n for(int trialIndex = 0; trialIndex< inputList.length; trialIndex++) {\r\n for (int layerIndex = 0; layerIndex < connections.length; layerIndex++) {\r\n for (int startIndex = 0; startIndex < connections[layerIndex].length; startIndex++) {\r\n for (int endIndex = 0; endIndex < connections[layerIndex][startIndex].length; endIndex++) {\r\n double weightDerivative = 0.0;\r\n double biasDerivative = 0.0;\r\n weightDerivative += learningRate* derivativeWeight(layerIndex, startIndex, endIndex, trialIndex);\r\n biasDerivative += learningRate * derivativeBias(layerIndex, startIndex, endIndex, trialIndex);\r\n double currentWeight = temp[layerIndex][startIndex][endIndex].getWeight();\r\n double currentBias = temp[layerIndex][startIndex][endIndex].getBias();\r\n temp[layerIndex][startIndex][endIndex] = new Connection(currentWeight - weightDerivative, currentBias - biasDerivative);\r\n\r\n }\r\n }\r\n }\r\n this.run();\r\n }\r\n this.connections = temp;\r\n }",
"public void solveNet()\n {\n// List<Future<?>> layerFutures = new LinkedList<>();\n// for (int i = 1; i < getNumLayers(); i++)\n// {\n// for (int j = 0; j < nodeValues_[i].length; j++)\n// {\n// layerFutures.add(SHARED_NODE_SOLVE_EXECUTOR.submit(new SolveNode(i, j)));\n// }\n// for (Future<?> f : layerFutures)\n// {\n// // Wait for the layer to complete before moving on to the next layer\n// try\n// {\n// f.get();\n// }\n// catch (Exception e)\n// {\n// e.printStackTrace();\n// }\n// }\n// layerFutures.clear();\n// }\n for (int i = 1; i < getNumLayers(); i++)\n {\n for (int j = 0; j < nodeValues_[i].length; j++)\n {\n new SolveNode(i, j).run();\n }\n }\n }",
"public void train() {\n\n int w;\n double sum = 0, avg;\n double forecast;\n double[][] trainMatrix = new double[trainPoints][2];\n double[][] valMatrix = new double[validationPoints][2];\n actual = observations.toArray();\n\n for (int i = 0; i < step * slices; i++)\n sum += actual[i];\n\n avg = sum / slices;\n\n for (int pos = 0; pos < trainPoints; pos++) {\n sum = 0;\n w = 0;\n\n if (pos >= step * slices) {\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n } else forecast = avg;\n\n trainMatrix[pos][0] = actual[pos];\n trainMatrix[pos][1] = forecast;\n }\n\n for (int pos = actual.length - validationPoints, j = 0; pos < actual.length; pos++) {\n sum = 0;\n w = 0;\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n valMatrix[j][0] = actual[pos];\n valMatrix[j][1] = forecast;\n j++;\n }\n double biasness = BiasnessHandler.handleOffset(valMatrix);\n accuracyIndicators.setBias(biasness);\n ModelUtil.computeAccuracyIndicators(accuracyIndicators, trainMatrix, valMatrix, dof);\n errorBound = ErrorBoundsHandler.computeErrorBoundInterval(trainMatrix);\n }",
"public interface MultiLabelClassifier extends Serializable{\n int getNumClasses();\n MultiLabel predict(Vector vector);\n default MultiLabel[] predict(MultiLabelClfDataSet dataSet){\n\n List<MultiLabel> results = IntStream.range(0,dataSet.getNumDataPoints()).parallel()\n .mapToObj(i -> predict(dataSet.getRow(i)))\n .collect(Collectors.toList());\n return results.toArray(new MultiLabel[results.size()]);\n }\n\n default void serialize(File file) throws Exception{\n File parent = file.getParentFile();\n if (!parent.exists()){\n parent.mkdirs();\n }\n try (\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(bufferedOutputStream);\n ){\n objectOutputStream.writeObject(this);\n }\n }\n\n default void serialize(String file) throws Exception{\n serialize(new File(file));\n }\n\n\n FeatureList getFeatureList();\n\n LabelTranslator getLabelTranslator();\n\n interface ClassScoreEstimator extends MultiLabelClassifier{\n double predictClassScore(Vector vector, int k);\n default double[] predictClassScores(Vector vector){\n return IntStream.range(0,getNumClasses()).mapToDouble(k -> predictClassScore(vector,k))\n .toArray();\n\n }\n }\n\n\n\n interface ClassProbEstimator extends MultiLabelClassifier{\n double[] predictClassProbs(Vector vector);\n\n /**\n * in some cases, this can be implemented more efficiently\n * @param vector\n * @param classIndex\n * @return\n */\n default double predictClassProb(Vector vector, int classIndex){\n return predictClassProbs(vector)[classIndex];\n }\n }\n\n interface AssignmentProbEstimator extends MultiLabelClassifier{\n double predictLogAssignmentProb(Vector vector, MultiLabel assignment);\n default double predictAssignmentProb(Vector vector, MultiLabel assignment){\n return Math.exp(predictLogAssignmentProb(vector, assignment));\n }\n\n /**\n * batch version\n * can be implemented more efficiently in individual classifiers\n * @param vector\n * @param assignments\n * @return\n */\n default double[] predictAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n return Arrays.stream(predictLogAssignmentProbs(vector, assignments)).map(Math::exp).toArray();\n }\n\n\n default double[] predictLogAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n double[] logProbs = new double[assignments.size()];\n for (int c=0;c<assignments.size();c++){\n logProbs[c] = predictLogAssignmentProb(vector, assignments.get(c));\n }\n return logProbs;\n }\n }\n\n}",
"private static void runCalculations()\n {\n // TODO Create two different empty concurrent histograms\n\n // Create a sleep time simulator, it will sleep for 10 milliseconds in each call\n BaseSyncOpSimulator syncOpSimulator = new SyncOpSimulSleep(10);\n\n // List of threads\n List<Runner> runners = new LinkedList<>();\n\n // Create the threads and start them\n for (int i = 0; i < NUM_THREADS; i ++)\n {\n // TODO Pass the proper histograms\n final Runner runner = new Runner(syncOpSimulator, null, null);\n runners.add(runner);\n new Thread(runner).start();\n }\n\n // Wait for runners to finish\n runners.forEach(Runner::waitToFinish);\n\n // TODO Show the percentile distribution of the latency calculation of each executeOp call for all threads\n }",
"private static void runAll() throws InterruptedException {\r\n\t\tSystem.out.println(RankEvaluator.printTitle() + \"\\tAvgP\\tTrain Time\\tTest Time\");\r\n\t\t\r\n\t\t// Prefetching user/item similarity:\r\n\t\tif (userSimilarityPrefetch) {\r\n\t\t\tuserSimilarity = calculateUserSimilarity(MATRIX_FACTORIZATION, ARC_COS, 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tuserSimilarity = new SparseMatrix(userCount+1, userCount+1);\r\n\t\t}\r\n\t\t\r\n\t\tif (itemSimilarityPrefetch) {\r\n\t\t\titemSimilarity = calculateItemSimilarity(MATRIX_FACTORIZATION, ARC_COS, 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\titemSimilarity = new SparseMatrix(itemCount+1, itemCount+1);\r\n\t\t}\r\n\t\t\r\n\t\t// Regularized SVD\r\n\t\tint[] svdRank = {1, 5, 10};\r\n\t\t\r\n\t\tfor (int r : svdRank) {\r\n\t\t\tdouble learningRate = 0.005;\r\n\t\t\tdouble regularizer = 0.1;\r\n\t\t\tint maxIter = 100;\r\n\t\t\t\r\n\t\t\tbaseline = new RegularizedSVD(userCount, itemCount, maxValue, minValue,\r\n\t\t\t\tr, learningRate, regularizer, 0, maxIter, false);\r\n\t\t\tSystem.out.println(\"SVD\\tFro\\t\" + r + \"\\t\" + testRecommender(\"SVD\", baseline));\r\n\t\t}\r\n\t\t\r\n\t\t// Rank-based SVD\r\n\t\tint[] rsvdRank = {1, 5, 10};\r\n\t\tfor (int r : rsvdRank) {\r\n\t\t\trunRankBasedSVD(RankEvaluator.LOGISTIC_LOSS, r, 6000, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.LOG_LOSS_MULT, r, 1700, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.LOG_LOSS_ADD, r, 1700, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.EXP_LOSS_MULT, r, 370, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.EXP_LOSS_ADD, r, 25, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.HINGE_LOSS_MULT, r, 1700, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.HINGE_LOSS_ADD, r, 1700, true);\r\n\t\t\trunRankBasedSVD(RankEvaluator.EXP_REGRESSION, r, 40, true);\r\n\t\t}\r\n\t\t\r\n\t\t// Paired Global LLORMA\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 5, 1, 1500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 5, 5, 1000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 5, 10, 500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 10, 1, 3000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 10, 5, 2000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_MULT, 10, 10, 1000, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 5, 1, 1200, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 5, 5, 1200, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 5, 10, 900, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 10, 1, 3000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 10, 5, 3000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOG_LOSS_ADD, 10, 10, 2000, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 5, 1, 450, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 5, 5, 250, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 5, 10, 110, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 10, 1, 1000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 10, 5, 400, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_MULT, 10, 10, 200, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 5, 1, 20, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 5, 5, 13, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 5, 10, 7, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 10, 1, 40, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 10, 5, 25, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_LOSS_ADD, 10, 10, 15, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 5, 1, 1000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 5, 5, 500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 5, 10, 300, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 10, 1, 2000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 10, 5, 1000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_MULT, 10, 10, 500, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 5, 1, 1200, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 5, 5, 1200, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 5, 10, 500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 10, 1, 2500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 10, 5, 2500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.HINGE_LOSS_ADD, 10, 10, 1000, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 5, 1, 60, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 5, 5, 40, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 5, 10, 20, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 10, 1, 120, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 10, 5, 80, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.EXP_REGRESSION, 10, 10, 40, true);\r\n\t\t\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 5, 1, 4500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 5, 5, 3500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 5, 10, 2500, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 10, 1, 9000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 10, 5, 7000, true);\r\n\t\trunPairedGlobalLLORMA(RankEvaluator.LOGISTIC_LOSS, 10, 10, 5000, true);\r\n\t}",
"public void evaluate(String sampleFile, String featureDefFile, int nFold, float tvs, String modelDir, String modelFile) {\n/* 854 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 855 */ List<List<RankList>> validationData = new ArrayList<>();\n/* 856 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* */ \n/* 860 */ List<RankList> samples = readInput(sampleFile);\n/* */ \n/* */ \n/* 863 */ int[] features = readFeature(featureDefFile);\n/* 864 */ if (features == null) {\n/* 865 */ features = FeatureManager.getFeatureFromSampleVector(samples);\n/* */ }\n/* 867 */ FeatureManager.prepareCV(samples, nFold, tvs, trainingData, validationData, testData);\n/* */ \n/* */ \n/* 870 */ if (normalize)\n/* */ {\n/* 872 */ for (int j = 0; j < nFold; j++) {\n/* */ \n/* 874 */ normalizeAll(trainingData, features);\n/* 875 */ normalizeAll(validationData, features);\n/* 876 */ normalizeAll(testData, features);\n/* */ } \n/* */ }\n/* */ \n/* 880 */ Ranker ranker = null;\n/* 881 */ double scoreOnTrain = 0.0D;\n/* 882 */ double scoreOnTest = 0.0D;\n/* 883 */ double totalScoreOnTest = 0.0D;\n/* 884 */ int totalTestSampleSize = 0;\n/* */ \n/* 886 */ double[][] scores = new double[nFold][]; int i;\n/* 887 */ for (i = 0; i < nFold; i++) {\n/* 888 */ (new double[2])[0] = 0.0D; (new double[2])[1] = 0.0D; scores[i] = new double[2];\n/* 889 */ } for (i = 0; i < nFold; i++) {\n/* */ \n/* 891 */ List<RankList> train = trainingData.get(i);\n/* 892 */ List<RankList> vali = null;\n/* 893 */ if (tvs > 0.0F)\n/* 894 */ vali = validationData.get(i); \n/* 895 */ List<RankList> test = testData.get(i);\n/* */ \n/* 897 */ RankerTrainer trainer = new RankerTrainer();\n/* 898 */ ranker = trainer.train(this.type, train, vali, features, this.trainScorer);\n/* */ \n/* 900 */ double s2 = evaluate(ranker, test);\n/* 901 */ scoreOnTrain += ranker.getScoreOnTrainingData();\n/* 902 */ scoreOnTest += s2;\n/* 903 */ totalScoreOnTest += s2 * test.size();\n/* 904 */ totalTestSampleSize += test.size();\n/* */ \n/* */ \n/* 907 */ scores[i][0] = ranker.getScoreOnTrainingData();\n/* 908 */ scores[i][1] = s2;\n/* */ \n/* */ \n/* 911 */ if (!modelDir.isEmpty()) {\n/* */ \n/* 913 */ ranker.save(FileUtils.makePathStandard(modelDir) + \"f\" + (i + 1) + \".\" + modelFile);\n/* 914 */ System.out.println(\"Fold-\" + (i + 1) + \" model saved to: \" + modelFile);\n/* */ } \n/* */ } \n/* 917 */ System.out.println(\"Summary:\");\n/* 918 */ System.out.println(this.testScorer.name() + \"\\t| Train\\t| Test\");\n/* 919 */ System.out.println(\"----------------------------------\");\n/* 920 */ for (i = 0; i < nFold; i++)\n/* 921 */ System.out.println(\"Fold \" + (i + 1) + \"\\t| \" + SimpleMath.round(scores[i][0], 4) + \"\\t| \" + SimpleMath.round(scores[i][1], 4) + \"\\t\"); \n/* 922 */ System.out.println(\"----------------------------------\");\n/* 923 */ System.out.println(\"Avg.\\t| \" + SimpleMath.round(scoreOnTrain / nFold, 4) + \"\\t| \" + SimpleMath.round(scoreOnTest / nFold, 4) + \"\\t\");\n/* 924 */ System.out.println(\"----------------------------------\");\n/* 925 */ System.out.println(\"Total\\t| \\t\\t| \" + SimpleMath.round(totalScoreOnTest / totalTestSampleSize, 4) + \"\\t\");\n/* */ }",
"@Test\n public void testParallelPropagationLoopBack3SitesNtoNTopologyPutFromOneDS() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n Integer tkPort = vm2.invoke(() -> WANTestBase.createFirstRemoteLocator(3, lnPort));\n\n createCacheInVMs(lnPort, vm3, vm6);\n createCacheInVMs(nyPort, vm4, vm7);\n createCacheInVMs(tkPort, vm5);\n vm3.invoke(WANTestBase::createReceiver);\n vm4.invoke(WANTestBase::createReceiver);\n vm5.invoke(WANTestBase::createReceiver);\n\n // site1\n vm3.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n\n // site2\n vm4.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n\n vm4.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n\n // site3\n vm5.invoke(() -> WANTestBase.createSender(\"tk1\", 1, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"tk2\", 2, true, 100, 10, false, false, null, true));\n\n // create PR\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"tk1,tk2\", 0,\n 1, isOffHeap()));\n\n // start all the senders\n vm3.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.startSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.startSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.startSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.startSender(\"tk2\"));\n\n // pause senders on all the sites\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk2\"));\n\n // this is required since sender pause doesn't take effect immediately\n Wait.pause(1000);\n\n // do puts on site1\n vm3.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site1 and site3\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln1\", 100));\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln2\", 100));\n\n // resume sender (from site1 to site2) on site1\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as the events from site1 should not go back to site1\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as events from site1 will reach site3 directly..site2 need not send to\n // site3 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // do more puts on site3\n vm5.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n\n // resume sender (from site3 to site2) on site3\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk2\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as the events from site3 should not go back to site3\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as events from site3 will reach site1 directly..site2 need not send to\n // site1 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // resume all senders\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk1\"));\n\n // validate region size on all sites\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }",
"@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}",
"public ANNTopology training(int repeat, double splitPercent) throws IOException, ExceptionWrongParameterClass\r\n\t{\n\t this.trainingNetwork = (networkTopology) this.originalTrainingNetwork.cloneNetwork();\r\n\t algorithm.setIn(inputTrain);\r\n algorithm.setTarget(targetTrain);\r\n\t algorithm.initializeForRNA(this.trainingNetwork, this.learnVelocity);\t\r\n\t \r\n //aca debo setear la \"trainingNetwork\" con una copia de la red original\r\n\r\n double calcValidationError = 1;\r\n double calcError = 1;\r\n\t for (int cicle = 0; cicle < repeat; cicle++) {\r\n\t\t\t//para que no salga en el 1º loop\r\n\t\t\tfor (int i=0; i < age && calcError > errorTarget ; i++) {\r\n\t\t\t\talgorithm.runAlgorithm();\r\n\t\t\t\tcalcError = algorithm.getCuadraticMediumError();\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn this.trainingNetwork;\r\n\t\r\n\t\t\r\n\t}",
"public void force_directed() {\n\n\t\tint ssize = g_heir[g_current_level];\n\t\tint fixedsize = 0;\n\t\tif (g_interpolating)\n\t\t\tfixedsize = g_heir[g_current_level + 1];\n\n\t\t// initialize index sets\n\t\tif (g_cur_iteration == g_stop_iteration) {\n\n\t\t\tfor (int i = 0; i < ssize; i++) {\n\n\t\t\t\tfor (int j = 0; j < V_SET_SIZE; j++) {\n\n\t\t\t\t\tSimpleEdge se = null;\n\t\t\t\t\tif( j > m_gm.nodeEdgeLookup.get(i).size() - 2 ) {\n\t\t\t\t\t\tse = m_gm.nodeEdgeLookup.get(i).get(1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tse = m_gm.nodeEdgeLookup.get(i).get(j+1);\n\t\t\t\t\t}\n\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se = se; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// perform the force simulation iteration\n\t\tfloat[] dir_vec = new float[g_embedding_dims];\n\t\tfloat[] relvel_vec = new float[g_embedding_dims];\n\t\tfloat diff = 0.f;\n\t\tfloat norm = 0.f;\n\t\tfloat lo = 0.f;\n\t\tfloat hi = 0.f;\n\n\t\t// compute new forces for each point\n\t\tfor (int i = fixedsize; i < ssize; i++) {\n\n\t\t\tfor (int j = 0; j < V_SET_SIZE + S_SET_SIZE; j++) {\n\n\t\t\t\t// update the S set with random entries\n\t\t\t\tif (j >= V_SET_SIZE) {\n\t\t\t\t\t\n\t\t\t\t\tSimpleEdge se = null;\n\t\t\t\t\tif( V_SET_SIZE > m_gm.nodeEdgeLookup.get(i).size() - 2 ) {\n\t\t\t\t\t\tse = m_gm.nodeEdgeLookup.get(i).get(1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tse = m_gm.nodeEdgeLookup.get(i).get(V_SET_SIZE + myRandom.nextInt(m_gm.nodeEdgeLookup.get(i).size()-V_SET_SIZE));\n\t\t\t\t\t} \n\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se = se;\n\t\t\t\t\t// g_idx[i*(V_SET_SIZE+S_SET_SIZE)+j].index =\n\t\t\t\t\t// myRandom.nextInt(g_interpolating?fixedsize:ssize);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sort index set by index\n\t\t\tArrays.sort(g_idx, i * (V_SET_SIZE + S_SET_SIZE), (i + 1)\n\t\t\t\t\t* (V_SET_SIZE + S_SET_SIZE), new IdxComp());\n\n\t\t\t// mark duplicates (with 1000)\n\t\t\tfor (int j = 0; j < V_SET_SIZE + S_SET_SIZE; j++) {\n\n\t\t\t\tif( j > 0) {\n\t\t\t\t\tif (g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.dst == g_idx[i\n\t\t\t\t\t\t\t* (V_SET_SIZE + S_SET_SIZE) + j - 1].se.dst)\n\t\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].isDuplicate = true;\n\t\t\t\t\telse {\n\t\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].isDuplicate = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.src == g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.dst ) {\n\t\t\t\t\t\n\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].isDuplicate = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sort index set by distance\n\t\t\tArrays.sort(g_idx, i * (V_SET_SIZE + S_SET_SIZE), (i + 1)\n\t\t\t\t\t* (V_SET_SIZE + S_SET_SIZE), new DistComp());\n\n\t\t\t// move the point\n\t\t\tfor (int j = 0; j < (V_SET_SIZE + S_SET_SIZE); j++) {\n\n\t\t\t\t// get a reference to the other point in the index set\n\t\t\t\tint idx = g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.dst;\n\t\t\t\tnorm = 0.f;\n\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\t\t// calculate the direction vector\n\t\t\t\t\tdir_vec[k] = m_embed[idx * g_embedding_dims + k]\n\t\t\t\t\t\t\t- m_embed[i * g_embedding_dims + k];\n\t\t\t\t\tnorm += dir_vec[k] * dir_vec[k];\n\t\t\t\t}\n\t\t\t\tnorm = (float) Math.sqrt(norm);\n\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].lowd = norm;\n\t\t\t\tif (norm > 1.e-6\n\t\t\t\t\t\t&& !g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].isDuplicate ) {\n\t\t\t\t\t\n\t\t\t\t\t// normalize direction vector\n\t\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\t\t\tdir_vec[k] /= norm;\n\t\t\t\t\t}\n\n\t\t\t\t\t// calculate relative velocity\n\t\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\t\t\t\t\t\trelvel_vec[k] = g_vel[idx *g_embedding_dims + k]\n\t\t\t\t\t\t\t\t- g_vel[i * g_embedding_dims + k];\n\t\t\t\t\t}\n\n\t\t\t\t\t// calculate difference between lo and hi distances\n\t\t\t\t\tlo = g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].lowd;\n\t\t\t\t\thi = (float) Math.pow(g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.w,POWER_FACTOR);\n\t\t\t\t\tdiff = (lo - hi) * SPRINGFORCE;\n\t\t\t\t\t// compute damping value\n\t\t\t\t\tnorm = 0.f;\n\t\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\t\t\tnorm += dir_vec[k] * relvel_vec[k];\n\t\t\t\t\t}\n\t\t\t\t\tdiff += norm * DAMPING;\n\n\t\t\t\t\t// accumulate the force\n\t\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\t\t\tg_force[i * g_embedding_dims + k] += dir_vec[k] * diff;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// scale the force by the size factor\n\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\tg_force[i * g_embedding_dims + k] *= SIZE_FACTOR;\n\t\t\t}\n\t\t}\n\n\t\t// compute new velocities for each point with Euler integration\n\t\tfor (int i = fixedsize; i < ssize; i++) {\n\n\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\tfloat foo = g_vel[i * g_embedding_dims + k];\n\t\t\t\tfloat bar = foo + g_force[i * g_embedding_dims + k] * DELTATIME;\n\t\t\t\tfloat baz = bar * FREENESS;\n\t\t\t\tg_vel[i * g_embedding_dims + k] = (float) Math.max(\n\t\t\t\t\t\tMath.min(baz, 2.0), -2.0);\n\t\t\t}\n\t\t}\n\n\t\t// compute new positions for each point with Euler integration\n\t\tfor (int i = fixedsize; i < ssize; i++) {\n\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\tm_embed[i * g_embedding_dims + k] += g_vel[i * g_embedding_dims\n\t\t\t\t\t\t+ k]\n\t\t\t\t\t\t* DELTATIME;\n\t\t\t}\n\t\t}\n\t}",
"static void start() throws IOException\n {\n cms_list = create_cms( num_cms );\n\n\n // 5.do until terminate\n\t\tfor( int iter=0; iter<num_iter; iter++ )\n\t\t{\n\t\t\tstart_t = System.currentTimeMillis();\n\n\t\t\tcms_sol_rdd = spark_selection(); //selction \n\t\t cms_list = new ArrayList( spark_transition_fitness( cms_sol_rdd ));\n\t\t\treduce_t = System.currentTimeMillis();\n\t\t for( int i=0; i<num_cms; i++ )\n if( best_objectvalue > cms_list.get(i)._2() )\n best_objectvalue = cms_list.get(i)._2();\n\n\t\t\tend_t = System.currentTimeMillis();\n\t\t\tprint_best( iter + 1 ); //print\n\t\t}\n }",
"public void runExperiment() {\n\t\tevaluator = new Evaluator(trainingSet);\n\t\tevaluator.evaluateClassifiers(classifiers);\n\t}",
"@Test\n public void testGetFitness() throws Exception {\n HeterogeneousComputingEnv envTest = nestedDependency();\n\n ScheduleChromosome chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n StatsFactory statsFact = new StatsFactory(envTest, fitnessCalc);\n Stats stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 2 - last 2 tasks in parallel\n envTest = oneRootTwoDepenendantTasks();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 3 - chained tasks in same processor\n envTest = chaindedDependency();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n\n // Test case 4 - independent tasks\n envTest = independentTasks();\n\n chromosomeTest = new ScheduleChromosome(envTest);\n\n // Guarantee that task 0 and 2 are in the same core and 1 in the other\n chromosomeTest.toSeq().get(0).mutate(ScheduleAllele.of(envTest, 0, 0));\n chromosomeTest.toSeq().get(1).mutate(ScheduleAllele.of(envTest, 1, 1));\n chromosomeTest.toSeq().get(2).mutate(ScheduleAllele.of(envTest, 2, 0));\n\n // Create the factory\n statsFact = new StatsFactory(envTest, fitnessCalc);\n stat = statsFact.ofChromosome(chromosomeTest);\n\n assertEquals(stat.getTotalTime(), stat.getFitness(chromosomeTest), EPSILON);\n }",
"private static void generate(int models) {\n\t\tIntStream.range(0, models).forEach(i -> {\n\t\t\tNetworkGenerator networkGenerator = new NetworkGenerator(capacity, dimensions, inputShape, outputShape);\n\t\t\tString code = networkGenerator.build();\n\t\t\tFileGenerator fileGenerator = new FileGenerator(String.format(\"python_model_%d.py\", i), code);\n\t\t\ttry {\n\t\t\t\tfileGenerator.generateFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"file generator failed\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t});\n\t}",
"public List<Graph> search() {\n\n long start = System.currentTimeMillis();\n TetradLogger.getInstance().log(\"info\", \"Starting ION Search.\");\n logGraphs(\"\\nInitial Pags: \", this.input);\n TetradLogger.getInstance().log(\"info\", \"Transfering local information.\");\n long steps = System.currentTimeMillis();\n\n /*\n * Step 1 - Create the empty graph\n */\n List<Node> varNodes = new ArrayList<>();\n for (String varName : variables) {\n varNodes.add(new GraphNode(varName));\n }\n Graph graph = new EdgeListGraph(varNodes);\n\n /*\n * Step 2 - Transfer local information from the PAGs (adjacencies\n * and edge orientations)\n */\n // transfers edges from each graph and finds definite noncolliders\n transferLocal(graph);\n // adds edges for variables never jointly measured\n for (NodePair pair : nonIntersection(graph)) {\n graph.addEdge(new Edge(pair.getFirst(), pair.getSecond(), Endpoint.CIRCLE, Endpoint.CIRCLE));\n }\n TetradLogger.getInstance().log(\"info\", \"Steps 1-2: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n System.out.println(\"step2\");\n System.out.println(graph);\n\n /*\n * Step 3\n *\n * Branch and prune step that blocks problematic undirectedPaths, possibly d-connecting undirectedPaths\n */\n steps = System.currentTimeMillis();\n Queue<Graph> searchPags = new LinkedList<>();\n // place graph constructed in step 2 into the queue\n searchPags.offer(graph);\n // get d-separations and d-connections\n List<Set<IonIndependenceFacts>> sepAndAssoc = findSepAndAssoc(graph);\n this.separations = sepAndAssoc.get(0);\n this.associations = sepAndAssoc.get(1);\n Map<Collection<Node>, List<PossibleDConnectingPath>> paths;\n// Queue<Graph> step3PagsSet = new LinkedList<Graph>();\n HashSet<Graph> step3PagsSet = new HashSet<>();\n Set<Graph> reject = new HashSet<>();\n // if no d-separations, nothing left to search\n if (separations.isEmpty()) {\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(graph);\n step3PagsSet.add(graph);\n }\n // sets length to iterate once if search over path lengths not enabled, otherwise set to 2\n int numNodes = graph.getNumNodes();\n int pl = numNodes - 1;\n if (pathLengthSearch) {\n pl = 2;\n }\n // iterates over path length, then adjacencies\n for (int l = pl; l < numNodes; l++) {\n if (pathLengthSearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path lengths: \" + l + \" of \" + (numNodes - 1));\n }\n int seps = separations.size();\n int currentSep = 1;\n int numAdjacencies = separations.size();\n for (IonIndependenceFacts fact : separations) {\n if (adjacencySearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path nonadjacencies: \" + currentSep + \" of \" + numAdjacencies);\n }\n seps--;\n // uses two queues to keep up with which PAGs are being iterated and which have been\n // accepted to be iterated over in the next iteration of the above for loop\n searchPags.addAll(step3PagsSet);\n recGraphs.add(searchPags.size());\n step3PagsSet.clear();\n while (!searchPags.isEmpty()) {\n System.out.println(\"ION Step 3 size: \" + searchPags.size());\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n // deques first PAG from searchPags\n Graph pag = searchPags.poll();\n // Part 3.a - finds possibly d-connecting undirectedPaths between each pair of nodes\n // known to be d-separated\n List<PossibleDConnectingPath> dConnections = new ArrayList<>();\n // checks to see if looping over adjacencies\n if (adjacencySearch) {\n for (Collection<Node> conditions : fact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, fact.getX(), fact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, fact.getX(), fact.getY(), conditions));\n }\n }\n } else {\n for (IonIndependenceFacts allfact : separations) {\n for (Collection<Node> conditions : allfact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, allfact.getX(), allfact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, allfact.getX(), allfact.getY(), conditions));\n }\n }\n }\n }\n // accept PAG go to next PAG if no possibly d-connecting undirectedPaths\n if (dConnections.isEmpty()) {\n// doFinalOrientation(pag);\n// Graph p = screenForKnowledge(pag);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(pag);\n continue;\n }\n // maps conditioning sets to list of possibly d-connecting undirectedPaths\n paths = new HashMap<>();\n for (PossibleDConnectingPath path : dConnections) {\n List<PossibleDConnectingPath> p = paths.get(path.getConditions());\n if (p == null) {\n p = new LinkedList<>();\n }\n p.add(path);\n paths.put(path.getConditions(), p);\n }\n // Part 3.b - finds minimal graphical changes to block possibly d-connecting undirectedPaths\n List<Set<GraphChange>> possibleChanges = new ArrayList<>();\n for (Set<GraphChange> changes : findChanges(paths)) {\n Set<GraphChange> newChanges = new HashSet<>();\n for (GraphChange gc : changes) {\n boolean okay = true;\n for (Triple collider : gc.getColliders()) {\n\n if (pag.isUnderlineTriple(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n\n }\n if (!okay) {\n continue;\n }\n for (Triple collider : gc.getNoncolliders()) {\n if (pag.isDefCollider(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n }\n if (okay) {\n newChanges.add(gc);\n }\n }\n if (!newChanges.isEmpty()) {\n possibleChanges.add(newChanges);\n } else {\n possibleChanges.clear();\n break;\n }\n }\n float starthitset = System.currentTimeMillis();\n Collection<GraphChange> hittingSets = IonHittingSet.findHittingSet(possibleChanges);\n recHitTimes.add((System.currentTimeMillis() - starthitset) / 1000.);\n // Part 3.c - checks the newly constructed graphs from 3.b and rejects those that\n // cycles or produce independencies known not to occur from the input PAGs or\n // include undirectedPaths from definite nonancestors\n for (GraphChange gc : hittingSets) {\n boolean badhittingset = false;\n for (Edge edge : gc.getRemoves()) {\n Node node1 = edge.getNode1();\n Node node2 = edge.getNode2();\n Set<Triple> triples = new HashSet<>();\n triples.addAll(gc.getColliders());\n triples.addAll(gc.getNoncolliders());\n if (triples.size() != (gc.getColliders().size() + gc.getNoncolliders().size())) {\n badhittingset = true;\n break;\n }\n for (Triple triple : triples) {\n if (node1.equals(triple.getY())) {\n if (node2.equals(triple.getX()) ||\n node2.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n if (node2.equals(triple.getY())) {\n if (node1.equals(triple.getX()) ||\n node1.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n }\n if (badhittingset) {\n break;\n }\n for (NodePair pair : gc.getOrients()) {\n if ((node1.equals(pair.getFirst()) && node2.equals(pair.getSecond())) ||\n (node2.equals(pair.getFirst()) && node1.equals(pair.getSecond()))) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (!badhittingset) {\n for (NodePair pair : gc.getOrients()) {\n for (Triple triple : gc.getNoncolliders()) {\n if (pair.getSecond().equals(triple.getY())) {\n if (pair.getFirst().equals(triple.getX()) &&\n pag.getEndpoint(triple.getZ(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n\n }\n if (pair.getFirst().equals(triple.getZ()) &&\n pag.getEndpoint(triple.getX(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n }\n if (badhittingset) {\n continue;\n }\n Graph changed = gc.applyTo(pag);\n // if graph change has already been rejected move on to next graph\n if (reject.contains(changed)) {\n continue;\n }\n // if graph change has already been accepted move on to next graph\n if (step3PagsSet.contains(changed)) {\n continue;\n }\n // reject if null, predicts false independencies or has cycle\n if (predictsFalseIndependence(associations, changed)\n || changed.existsDirectedCycle()) {\n reject.add(changed);\n }\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(changed);\n // now add graph to queue\n\n// Graph p = screenForKnowledge(changed);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(changed);\n }\n }\n // exits loop if not looping over adjacencies\n if (!adjacencySearch) {\n break;\n }\n }\n }\n TetradLogger.getInstance().log(\"info\", \"Step 3: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n Queue<Graph> step3Pags = new LinkedList<>(step3PagsSet);\n\n /*\n * Step 4\n *\n * Finds redundant undirectedPaths and uses this information to expand the list\n * of possible graphs\n */\n steps = System.currentTimeMillis();\n Map<Edge, Boolean> necEdges;\n Set<Graph> outputPags = new HashSet<>();\n\n while (!step3Pags.isEmpty()) {\n Graph pag = step3Pags.poll();\n necEdges = new HashMap<>();\n // Step 4.a - if x and y are known to be unconditionally associated and there is\n // exactly one trek between them, mark each edge on that trek as necessary and\n // make the tiples on the trek definite noncolliders\n // initially mark each edge as not necessary\n for (Edge edge : pag.getEdges()) {\n necEdges.put(edge, false);\n }\n // look for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n List<List<Node>> treks = treks(pag, fact.x, fact.y);\n if (treks.size() == 1) {\n List<Node> trek = treks.get(0);\n List<Triple> triples = new ArrayList<>();\n for (int i = 1; i < trek.size(); i++) {\n // marks each edge in trek as necessary\n necEdges.put(pag.getEdge(trek.get(i - 1), trek.get(i)), true);\n if (i == 1) {\n continue;\n }\n // makes each triple a noncollider\n pag.addUnderlineTriple(trek.get(i - 2), trek.get(i - 1), trek.get(i));\n }\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // Part 4.b - branches by generating graphs for every combination of removing\n // redundant undirectedPaths\n boolean elimTreks;\n // checks to see if removing redundant undirectedPaths eliminates every trek between\n // two variables known to be nconditionally assoicated\n List<Graph> possRemovePags = possRemove(pag, necEdges);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n for (Graph newPag : possRemovePags) {\n elimTreks = false;\n // looks for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n if (treks(newPag, fact.x, fact.y).isEmpty()) {\n elimTreks = true;\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // add new PAG to output unless a necessary trek has been eliminated\n if (!elimTreks) {\n outputPags.add(newPag);\n }\n }\n }\n outputPags = removeMoreSpecific(outputPags);\n// outputPags = applyKnowledge(outputPags);\n\n TetradLogger.getInstance().log(\"info\", \"Step 4: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n\n /*\n * Step 5\n *\n * Generate the Markov equivalence classes for graphs and accept only\n * those that do not predict false d-separations\n */\n steps = System.currentTimeMillis();\n Set<Graph> outputSet = new HashSet<>();\n for (Graph pag : outputPags) {\n Set<Triple> unshieldedPossibleColliders = new HashSet<>();\n for (Triple triple : getPossibleTriples(pag)) {\n if (!pag.isAdjacentTo(triple.getX(), triple.getZ())) {\n unshieldedPossibleColliders.add(triple);\n }\n }\n\n PowerSet<Triple> pset = new PowerSet<>(unshieldedPossibleColliders);\n for (Set<Triple> set : pset) {\n Graph newGraph = new EdgeListGraph(pag);\n for (Triple triple : set) {\n newGraph.setEndpoint(triple.getX(), triple.getY(), Endpoint.ARROW);\n newGraph.setEndpoint(triple.getZ(), triple.getY(), Endpoint.ARROW);\n }\n doFinalOrientation(newGraph);\n }\n for (Graph outputPag : finalResult) {\n if (!predictsFalseIndependence(associations, outputPag)) {\n Set<Triple> underlineTriples = new HashSet<>(outputPag.getUnderLines());\n for (Triple triple : underlineTriples) {\n outputPag.removeUnderlineTriple(triple.getX(), triple.getY(), triple.getZ());\n }\n outputSet.add(outputPag);\n }\n }\n }\n\n// outputSet = applyKnowledge(outputSet);\n outputSet = checkPaths(outputSet);\n\n output.addAll(outputSet);\n TetradLogger.getInstance().log(\"info\", \"Step 5: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n runtime = ((System.currentTimeMillis() - start) / 1000.);\n logGraphs(\"\\nReturning output (\" + output.size() + \" Graphs):\", output);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n return output;\n }",
"public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }",
"@Setup\n public void setup() {\n\n f = x -> {\n Blackhole.consumeCPU(1000 * busyFactor);\n return x * x;\n };\n set = new HashSet<>();\n {\n Random random = new Random();\n for (int i = 0; i < dataSize; i++) {\n set.add(random.nextInt(dataSize));\n }\n }\n list = new ArrayList<>();\n {\n Random random = new Random();\n for (int i = 0; i < dataSize; i++) {\n list.add(random.nextInt(dataSize));\n }\n }\n executor1 = Executors.newFixedThreadPool(4);\n executor2 = Executors.newFixedThreadPool(8);\n executor3 = Executors.newFixedThreadPool(16);\n forkJoinPool = new ForkJoinPool();\n\n }",
"private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }",
"public synchronized void setThreads(int threads)\n/* */ {\n/* 122 */ if (threads <= 0) {\n/* 123 */ return;\n/* */ }\n/* */ \n/* 126 */ this.threads = threads;\n/* */ \n/* */ \n/* 129 */ if (this.helpers == null) {\n/* 130 */ this.helpers = new NeighborhoodHelper[threads];\n/* 131 */ for (int i = 0; i < threads; i++)\n/* */ {\n/* 133 */ this.helpers[i] = new NeighborhoodHelper(null);\n/* 134 */ this.helpers[i].start();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 140 */ if (this.helpers.length < threads)\n/* */ {\n/* */ \n/* 143 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 146 */ for (int i = 0; i < threads; i++) {\n/* 147 */ temp[i] = (i < this.helpers.length ? this.helpers[i] : new NeighborhoodHelper(null));\n/* */ }\n/* */ \n/* 150 */ this.helpers = temp;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 155 */ else if (this.helpers.length > threads)\n/* */ {\n/* */ \n/* 158 */ NeighborhoodHelper[] temp = new NeighborhoodHelper[threads];\n/* */ \n/* */ \n/* 161 */ for (int i = 0; i < threads; i++) {\n/* 162 */ if (i < threads) {\n/* 163 */ temp[i] = this.helpers[i];\n/* */ } else {\n/* 165 */ this.helpers[i].dispose();\n/* */ }\n/* */ }\n/* 168 */ this.helpers = temp;\n/* */ }\n/* 170 */ notifyAll();\n/* */ }",
"@Override\n\tpublic void train(DataSet data) {\n\t\tArrayList<Example> examples = data.getCopyWithBias().getData();\n\t\t// initialize both weight vectors with random values between -0.1 ad 0.1\n\t\tinitWeights(examples.size());\n\n\t\t// store outputs from forward calculation for each example\n\t\t// array will have size # examples.\n\t\tArrayList<Double> nodeOutputs = calculateForward(examples);\n\n\t\t// now take error and back-propagate from output to hidden nodes\n\n\t\tfor (int j = 0; j < examples.size(); j++) {\n\t\t\tExample ex = examples.get(j);\n\n\t\t\t// get hidden node outputs for single example\n\t\t\tfor (int num = 0; num < numHidden; num++) {\n\t\t\t\tArrayList<Double> h_outputs = hiddenOutputs.get(num);\n\t\t\t\tdouble vDotH = dotProduct(h_outputs, layerTwoWeights); // calculate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// v dot\n\t\t\t\t// h for\n\t\t\t\t// this node\n\n\t\t\t\tfor (int i = 0; i < numHidden - 1; i++) {\n\t\t\t\t\tdouble oldV = layerTwoWeights.get(i);\n\t\t\t\t\tdouble hk = h_outputs.get(i);\n\t\t\t\t\t// Equation describing line below:\n\t\t\t\t\t// v_k = v_k + eta*h_k(y-f(v dot h)) f'(v dot h)\n\t\t\t\t\tlayerTwoWeights.set(i, oldV + eta * hk * (ex.getLabel() - Math.tanh(vDotH)) * derivative(vDotH));\n\t\t\t\t}\n\n\t\t\t\tSet<Integer> features = ex.getFeatureSet();\n\t\t\t\tIterator<Integer> iter = features.iterator();\n\t\t\t\tArrayList<Double> featureVals = new ArrayList<Double>();\n\t\t\t\tfor (int f : features) {\n\t\t\t\t\tfeatureVals.add((double) f);\n\t\t\t\t}\n\n\t\t\t\t// take that error and back-propagate one more time\n\t\t\t\tfor (int x = 0; x < numHidden; x++) {\n\t\t\t\t\tArrayList<Double> initWeights = hiddenWeights.get(x);\n\t\t\t\t\t// List<Object> features =\n\t\t\t\t\t// Arrays.asList(ex.getFeatureSet().toArray());\n\n\t\t\t\t\t// for (int i = 0; i < featureVals.size()-1; i++) {\n\t\t\t\t\tdouble oldWeight = initWeights.get(j);\n\t\t\t\t\tdouble thisInput = ex.getFeature(featureVals.get(x).intValue());\n\t\t\t\t\t// w_kj = w_kj + eta*xj(input)*f'(w_k dot x)*v_k*f'(v dot\n\t\t\t\t\t// h)(y-f(v dot h))\n\t\t\t\t\tdouble updateWeight = oldWeight + eta * thisInput * derivative(dotProduct(featureVals, initWeights))\n\t\t\t\t\t\t\t* layerTwoWeights.get(x) * derivative(vDotH) * (ex.getLabel() - Math.tanh(vDotH));\n\t\t\t\t\tinitWeights.set(j, updateWeight);\n\t\t\t\t\t// }\n\t\t\t\t\thiddenWeights.set(x, initWeights); // update weights for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// example\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public static void main(String[] args){\n\t\tint increment=1;\n\t\tfor(int m=0;m<=5000;m+=increment){\n\t\t\tif(m==10)\n\t\t\t\tincrement=5;\n\t\t\tif(m==100)\n\t\t\t\tincrement=100;\n\t\t\tif(m==500)\n\t\t\t\tincrement=500;\n\n\t\t\tfor(int l=0;l<30;++l){\n\t\t\t\tdouble[][][] AFFINITY3=new double[Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER];\n\t\t\t\tRandom r=new Random(l);\n\t\t\t\tdouble affinity;\n\t\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\taffinity=r.nextDouble();\n\t\t\t\t\t\t\t}while(affinity==0);\n\t\t\t\t\t\t\tAFFINITY3[i][j][k]=AFFINITY3[i][k][j]=AFFINITY3[k][i][j]=AFFINITY3[j][i][k]=AFFINITY3[k][j][i]=AFFINITY3[j][k][i]=affinity;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Node> infrastructure=new ArrayList<>();\n\t\t\t\tfor(int i=0; i<TEST_NUMBER_OF_NODES;++i)\n\t\t\t\t\tinfrastructure.add(new Node(TEST_NUMBER_OF_CORES, TEST_RAM_SIZE));\n\t\t\t\tList<Task> tasks=new ArrayList<>();\n\t\t\t\tTaskType[] types=TaskType.values();\n\t\t\t\tfor(int i=0;i<TEST_NUMBER_OF_PROCESS;++i){\n\t\t\t\t\tTaskType type=types[r.nextInt(Task.TYPES_OF_TASK_NUMBER)];\n\t\t\t\t\tint instanceNumber=r.nextInt(101)+10;//from 10 to 100 instances\n\t\t\t\t\tint coresPerInstance=r.nextInt(12)+1;//from 1 to 12\n\t\t\t\t\tint ramPerinstance=r.nextInt(12*1024+101)+100;//from 100MB to 12GB\n\t\t\t\t\tdouble baseTime=r.nextInt(10001)+1000;//from 100 cycles to 1000\n\t\t\t\t\ttasks.add(new Task(type,instanceNumber,coresPerInstance,ramPerinstance,baseTime));\n\t\t\t\t}\n\t\t\t\tList<Integer> arrivalOrder=new ArrayList<>();\n\t\t\t\tint tasksSoFar=0;\n\t\t\t\tdo{\n\t\t\t\t\ttasksSoFar+=r.nextInt(11);\n\t\t\t\t\tarrivalOrder.add((tasksSoFar<tasks.size())?tasksSoFar:tasks.size());\n\t\t\t\t}while(tasksSoFar<tasks.size());\n\t\t\t\tfinal Scheduler scheduler=new AffinityAwareFifoScheduler(tasks, arrivalOrder, infrastructure,AFFINITY3,AffinityType.NORMAL,m);\n\t\t\t\tThread t=new Thread(new Runnable() {\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tscheduler.runScheduler();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished running.\");\n\t\t\t}\n\t\t}\n\t}",
"public ModelParams optimize() throws Exception {\n\t\tint iterCount = 0;\n\t\tdivergence = KLDivergenceCalculator.calculate(cState, tState);\n\t\tSystem.out.println(\"KL Divergence : \" + divergence);\n\t\t// ((DivergenceChart) BeanFinder\n\t\t// .findBean(MetaConstants.BEAN_DIVERGENCE_CHART)).update(\n\t\t// iterCount, divergence);\n\t\tdouble delta[] = null;\n\t\tdouble theta[] = data.getParams().getParams();\n\t\tdouble newDivergence = 0.0d;\n\t\tdouble initialStep = data.getInitialStepSize();\n\t\tboolean optimized = false;\n\t\tdo {\n\t\t\tdelta = computeGradient(theta);\n\t\t\tfor (double step = initialStep; iterCount < data.getMaxIterations(); step /= 10) {\n\t\t\t\tSystem.out.println(\"Step size : \" + step);\n\t\t\t\tSystem.out.println(\"KL divergence before taking a step : \"\n\t\t\t\t\t\t+ KLDivergenceCalculator.calculate(cState, tState));\n\t\t\t\tfor (int i = 0; i < delta.length; i++) {\n\t\t\t\t\tif (Double.isNaN(delta[i]))\n\t\t\t\t\t\tSystem.out.print(\"delta is NAN!!\" + delta[i] + \", \");\n\t\t\t\t\ttheta[i] -= step * delta[i];\n\t\t\t\t\tSystem.out.print((theta[i]) + \", \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\tgetNewState(theta);\n\t\t\t\titerCount++;\n\t\t\t\tnewDivergence = KLDivergenceCalculator\n\t\t\t\t\t\t.calculate(cState, tState);\n\t\t\t\tSystem.out.println(\"KL Divergence : \" + newDivergence);\n\t\t\t\t// ((DivergenceChart) BeanFinder\n\t\t\t\t// .findBean(MetaConstants.BEAN_DIVERGENCE_CHART)).update(\n\t\t\t\t// iterCount, newDivergence);\n\t\t\t\tif (newDivergence < divergence) {\n\t\t\t\t\tdivergence = newDivergence;\n\t\t\t\t\tinitialStep = step;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// before taking the next step size, reset theta to what it was\n\t\t\t\tfor (int i = 0; i < delta.length; i++)\n\t\t\t\t\ttheta[i] += step * delta[i];\n\t\t\t\tgetNewState(theta); // Added for checking. Not required.\n\t\t\t}\n\t\t\toptimized = optimized(theta);\n\t\t} while (!optimized && iterCount < data.getMaxIterations());\n\t\tModelParams optimParams = null;\n\t\tif (optimized) {\n\t\t\toptimParams = new ModelParams();\n\t\t\toptimParams.setParams(theta);\n\t\t}\n\t\treturn optimParams;\n\t}",
"public void trainNet() {\t\t\n\t\t// Synapses contain the weights for each layer, these are randomised to begin with\n\t\tsynapse0 = new double[X[0].length][hiddenNeurons];\n\t\tpopulateRandom(synapse0, minRandomWeight, maxRandomWeight);\n\t\t\n\t\tsynapse1 = new double[hiddenNeurons][y[0].length];\n\t\tpopulateRandom(synapse1, minRandomWeight, maxRandomWeight);\n\t\t\n\t\t// The layers are the output values of each layer.\n\t\t// They are initialised to nothing to begin with, created properly in the training loop\n\t\tlayer1 = new double[0][0];\n\t\tlayer2 = new double[0][0];\n\t\t\n\t\t// Printing the initial state of the system\n\t\tm.printMatrix(\"X:\", X);\n\t\tm.printMatrix(\"y:\", y);\n\t\t\n\t\t// The training loop\n\t\tfor (int i = 0; i < trainingCycles; i++) {\n\t\t\t// calculate the values of each layer given the inputs and the weights\n\t\t\tlayer1 = forwardPropogate(X, synapse0);\n\t\t\tlayer2 = forwardPropogate(layer1, synapse1);\n\t\t\t\n\t\t\t// Calculate the delta error for each output layer, starting\n\t\t\t// with the bottom working up.\n\t\t\t// This is the difference between the expected values and actual values\n\t\t\t// times the derivative (gradient) of the sigmoid activation function\n\t\t\t// The 1st error comes from y - output\n\t\t\tdouble[][] layer2Delta = m.subtract(y, layer2);\n\t\t\tlayer2Delta = delta(layer2Delta, layer2);\n\t\t\t// subsequent layers come from the delta of the lower layer divided by the weights\n\t\t\tdouble[][] layer1Delta = m.dot(layer2Delta, m.t(synapse1));\n\t\t\tlayer1Delta = delta(layer1Delta, layer1);\n\t\t\t\n\t\t\t// Apply the error gradients to each weight, this moves the value closer to the expected\n\t\t\t// or reduces the error\n\t\t\tsynapse1 = m.add(synapse1, m.scale(m.dot(m.t(layer1), layer2Delta), trainingRate));\n\t\t\tsynapse0 = m.add(synapse0, m.scale(m.dot(m.t(X), layer1Delta), trainingRate));\n\t\t}\n\t\t// Run the input matrix through the net to get outputs for each training value on layer 2\n\t\tdouble[][] testNet = runData(X);\n\t\t// Show the results\n\t\tm.printMatrix(\"Output for X after training:\", testNet);\n\t\tm.printMatrixInts(\"Output for X after training (out of 100:\", testNet);\n\t}",
"private void setGraphParameters()\r\n\t{\r\n\r\n\t\tlogger.info(\"Setting graph parameters.\");\r\n\t\tlogger.info(\"Treating the graph as undirected.\");\r\n\r\n\t\t// Diameter is the maximum of all shortest path lengths\r\n\t\t// Average shortest path length is (as the name says) the average of the\r\n\t\t// shortest path length between all node pairs\r\n\r\n\t\tdouble maxPathLength = 0.0;\r\n\t\tdouble shortestPathLengthSum = 0.0;\r\n\t\tdouble degreeSum = 0.0;\r\n\t\tdouble clusterCoefficientSum = 0.0;\r\n\r\n\t\t// iterate over all node pairs\r\n\t\tCollection<Entity> nodes = undirectedGraph.getVertices();\r\n\r\n\t\t// a hashset of the nodes which have been the start node of the\r\n\t\t// computation process\r\n\t\t// for such nodes all path lengths have been already computed\r\n\t\tSet<Entity> wasSource = new HashSet<Entity>();\r\n\r\n\t\tint progress = 0;\r\n\t\tfor (Entity node : nodes) {\r\n\r\n\t\t\tprogress++;\r\n\t\t\tLoggingUtils.printProgressInfo(progress, nodes.size(), 100,\r\n\t\t\t\t\tLoggingUtils.ProgressInfoMode.TEXT,\r\n\t\t\t\t\t\"Getting graph parameters\");\r\n\r\n\t\t\tint nodeDegree = getDegree(node);\r\n\t\t\t// degreeSum += nodeDegree;\r\n\r\n\t\t\t// logger.info(\"Updating degree distribution.\");\r\n\t\t\t// updateDegreeDistribution(nodeDegree);\r\n\r\n\t\t\t// cluster coefficient C_v of a node v is the fraction of the\r\n\t\t\t// connections that exist between the\r\n\t\t\t// neighbor nodes (k_v) of this node and all allowable connections\r\n\t\t\t// between the neighbors (k_v(k_v -1)/2)\r\n\t\t\t// for degrees 0 or 1 there is no cluster coefficient, as there can\r\n\t\t\t// be no connections between neighbors\r\n\t\t\tif (nodeDegree > 1) {\r\n\t\t\t\tdouble numberOfNeighborConnections = getNumberOfNeighborConnections(node);\r\n\t\t\t\tclusterCoefficientSum += (numberOfNeighborConnections / (nodeDegree * (nodeDegree - 1)));\r\n\t\t\t}\r\n\r\n\t\t\t// Returns the new shortestPathLengthSum and the new maxPathLength.\r\n\t\t\t// They are returned as an double array for performance reasons.\r\n\t\t\t// I do not want to create an object, as this function is called\r\n\t\t\t// *very* often\r\n\t\t\t// logger.info(\"Computing shortest path lengths.\");\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(node,\r\n\t\t\t\t\tshortestPathLengthSum, maxPathLength, wasSource);\r\n\t\t\tshortestPathLengthSum = returnValues[0];\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\r\n\t\t\t// save the info that the node was already used as the source of\r\n\t\t\t// path computation\r\n\t\t\twasSource.add(node);\r\n\t\t}\r\n\r\n\t\tif (nodes.size() > 1) {\r\n\t\t\tthis.averageShortestPathLength = shortestPathLengthSum\r\n\t\t\t\t\t/ (nodes.size() * (nodes.size() - 1) / 2);\r\n\t\t\t// sum of path lengths / (number of node pairs)\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.averageShortestPathLength = 0; // there is only one node\r\n\t\t}\r\n\t\tthis.diameter = maxPathLength;\r\n\t\tthis.averageDegree = degreeSum / nodes.size();\r\n\t\tthis.clusterCoefficient = clusterCoefficientSum / nodes.size();\r\n\t}",
"private static void automate() {\n \tLOG.info(\"Begin automation task.\");\n \t\n \tcurrentOpticsXi = clArgs.clusteringOpticsXi;\n \tdouble opticsXiMax = (clArgs.clusteringOpticsXiMaxValue > ELKIClusterer.MAX_OPTICS_XI ? ELKIClusterer.MAX_OPTICS_XI : clArgs.clusteringOpticsXiMaxValue);\n \tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \tint opticsMinPointsMax = clArgs.clusteringOpticsMinPtsMaxValue;\n \t\n \tLOG.info(\"optics-xi-start: {}, optics-xi-min-points-start: {}, optics-xi-step-size: {}, optics-min-points-step-size: {}\",\n \t\t\tnew Object[] { \n \t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints), \n \t\t\t\tdf.format(clArgs.clusteringOpticsXiStepSize), df.format(clArgs.clusteringOpticsMinPtsStepSize)\n \t\t\t});\n \t\n \twhile (currentOpticsXi <= opticsXiMax) {\n \t\twhile (currentOpticsMinPoints <= opticsMinPointsMax) {\n \t\t\t// Run automation for each combination of opticsXi and opticsMinPoints\n \t\t\tLOG.info(\"Run automation with optics-xi: {}, optics-xi-min-points: {}\", \n \t\t\t\t\tdf.format(currentOpticsXi), df.format(currentOpticsMinPoints));\n \t\t\t\n \t\t\ttry {\n\t \t\t\t// Step 1: Clustering\n\t \t\t\tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir, currentOpticsXi, currentOpticsMinPoints);\n\t \t\t\t\n\t \t\t\t// Step 2: Build shared framework\n\t \t\t\tbuildFramework();\n\t \t\t\t\n\t \t\t\t// Step 3: Build user hierarchical graphs\n\t \t\t\tbuildHierarchicalGraphs();\n\t \t\t\t\n\t \t\t\t// Step 4: Calculate similarity between all users and create evaluation results afterwards\n\t \t\t\tcalculateSimilarity();\n \t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred during the automation task. Jumping to the next pass.\", e);\n\t\t\t\t} finally {\n\t \t\t\t// Step 5: Clean up for the next run\n\t \t\t\tcleanAutomationResults();\n\t \t\t\t\n\t \t\t\t// Increase the currentOpticsMinPoints for the next run if desired\n\t \t\t\tif (clArgs.clusteringOpticsMinPtsStepSize > 0)\n\t \t\t\t\tcurrentOpticsMinPoints += clArgs.clusteringOpticsMinPtsStepSize;\n\t \t\t\telse\n\t \t\t\t\tbreak;\n\t\t\t\t}\n \t\t}\n \t\t// Reset current values\n \t\tcurrentOpticsMinPoints = clArgs.clusteringOpticsMinPts;\n \t\t\n \t\t// Increase currentOpticsXi for the next run if desired\n \t\tif (clArgs.clusteringOpticsXiStepSize > 0)\n\t\t\t\tcurrentOpticsXi += clArgs.clusteringOpticsXiStepSize;\n\t\t\telse\n\t\t\t\tbreak;\n \t}\n \t\n \tLOG.info(\"End automation task.\");\n }",
"public static void main(String[] argv) throws Exception\n {\n String basePath = \"/data/TreeKernel/data/\";\n //basePath = \"/Users/u6042446/IdeaProjects/TreeKernels/data/\";\n\n //String readPath = basePath + argv[0];\n String index = argv[2];\n //String index = \"0\";\n int numThreads = Integer.parseInt(argv[0]);\n //int numThreads = 2;\n String readPath = argv[1];\n //String readPath = basePath + \"ANC_written_sentenceperline_v5.txt\";\n String writePath = basePath + \"stats\";\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(readPath),\"UTF-8\"));\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(writePath),\"UTF-8\"));\n\n String line;\n\n int counter = 0;\n LinkedList<Sentence> allRecords = new LinkedList<Sentence>();\n while ((line=reader.readLine())!=null)\n {\n String[] split = line.split(\"\\t\");\n String text = split[1];\n int Id = Integer.parseInt(split[0]);\n int sentLength = Integer.parseInt(split[2]);\n if (sentLength>=lowSentLengthThreshold && sentLength<=highSentLengthThreshold)\n {\n allRecords.add(new Sentence(text,sentLength,Id));\n }\n }\n reader.close();\n //slice data\n\n //ANCExperiment experiment = new ANCExperiment(allRecords,writePath+\"_\"+index+\".txt\",index);\n //experiment.run();\n\n ExecutorService pool = Executors.newFixedThreadPool(numThreads);\n List<List<Sentence>> slices = sliceList(allRecords,allRecords.size()/numThreads);\n //pool.execute(new ANCExperiment(slices.get(0),writePath+\"_\"+0+\".txt\",0));\n\n //Create a list of tasks\n //System.out.print(slices.get(1).size()+\"\\n\");\n //System.exit(0);\n int workerId = 0;\n for (List<Sentence> slice: slices)\n {\n Runnable worker = new ANCExperiment(slice,writePath+\"_\"+workerId+ \"_\" + index + \".txt\",workerId);\n workerId+=1;\n pool.execute(worker);\n }\n pool.shutdown();\n // Wait until all threads are finish\n pool.awaitTermination(100,TimeUnit.HOURS);\n writer.close();\n }",
"public void execute() {\r\n\t\tgraph = new Graph();\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\taddNeighbours(i, j);// adds neighbours/connections for each node\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t\t\r\n\t\trunning = true;// sets the simulation to running\r\n\t}",
"public void fit(double[][] data) {\n double n = data.length;\n\n double sum1 = 0;\n double sum2 = 0;\n\n // gradient descent\n for (int i = 0; i < epochs; i++) {\n\n for (double[] d : data) {\n double x = d[0];\n double y = d[1];\n double yPredicted = sigmoid((m * x) + b);\n\n sum1 += x * (y - yPredicted);\n sum2 += y - yPredicted;\n }\n\n // calculate the derivative\n double dm = (-2/n) * sum1;\n double db = (-2/n) * sum2;\n\n // update m and b\n m = m - (learningRate * dm);\n b = b - (learningRate * db);\n }\n\n }",
"public ParallelSearchManyThreads(String root, String text, List<String> exts) {\n this.root = root;\n this.text = text;\n this.exts = exts;\n this.threads = new Threads(this);\n this.threadsSaerch = new Thread[this.countSearchThreads];\n }",
"void fit(DataSet dataSet);",
"@Override\n public void run() {\n if (nearMe.size() < HelperConstants.MAX_BYZANTINE_USERS + 1) {\n // If there are less nearby neighbors than required, there is no need to ask for proofs\n return;\n }\n\n for (GridUser gridUser: nearMe) {\n int targetPort = Utils.getListenerServicePortFromId(gridUser.getId());\n\n Thread t = new Thread(() -> sendRecordAndReceive(myRequest, gridUser, targetPort));\n t.start();\n ongoingProofRequests.add(t);\n }\n\n try {\n for (Thread t: ongoingProofRequests) {\n t.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n for (Thread t: ongoingProofRequests) t.interrupt();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public static void prepareStrategy(final int nFolds, final String splitPath, final String recPath, final String outPath) {\n for (int i = 0; i < nFolds; i++) {\n File trainingFile = new File(splitPath + \"train_\" + i + \".csv\");\n File testFile = new File(splitPath + \"test_\" + i + \".csv\");\n File recFile = new File(recPath + \"recs_\" + i + \".csv\");\n DataModelIF<Long, Long> trainingModel;\n DataModelIF<Long, Long> testModel;\n DataModelIF<Long, Long> recModel;\n try {\n trainingModel = new SimpleParser().parseData(trainingFile);\n testModel = new SimpleParser().parseData(testFile);\n recModel = new SimpleParser().parseData(recFile);\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n\n Double threshold = REL_TH;\n String strategyClassName = \"net.recommenders.rival.evaluation.strategy.UserTest\";\n EvaluationStrategy<Long, Long> strategy = null;\n try {\n strategy = (EvaluationStrategy<Long, Long>) (Class.forName(strategyClassName)).getConstructor(DataModelIF.class, DataModelIF.class, double.class).\n newInstance(trainingModel, testModel, threshold);\n } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | ClassNotFoundException | InvocationTargetException e) {\n e.printStackTrace();\n }\n\n DataModelIF<Long, Long> modelToEval = DataModelFactory.getDefaultModel();\n for (Long user : recModel.getUsers()) {\n assert strategy != null;\n for (Long item : strategy.getCandidateItemsToRank(user)) {\n if (!Double.isNaN(recModel.getUserItemPreference(user, item))) {\n modelToEval.addPreference(user, item, recModel.getUserItemPreference(user, item));\n }\n }\n }\n try {\n DataModelUtils.saveDataModel(modelToEval, outPath + \"strategymodel_\" + i + \".csv\", true, \"\\t\");\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }\n }",
"private void trainCombined() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.COMPLEX);\n\t\tSystem.out.println(\"Starting reading Complex Trainingset ..\");\n\t\tPipe serialpipe = getComplexPipe(); //as reference unigram best than unigram in POS\n\t\tInstanceList complex_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Complex Trainingset ..\");\n\t\tcomplex_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Complex Training set : \" + complex_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(complex_instances, Train + \"C.bin\");\n\t\tSystem.out.println(\"Saving Complex data ..\");\n\t\tcomplex_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"complex.dat\")));\n\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Complex training set ..\");\n\t\tClassifier classifier = trainer.train(complex_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Complex_Train);\n\t\tSystem.out.println(\"Complex classifier saved to : \" + Complex_Train);\n\t}",
"public void train(){\n recoApp.training(idsToTest);\n }",
"List<String> parallelSearch(String rootPath, String textToSearch, List<String> extensions) throws InterruptedException {\n // Here the results will be put.\n List<String> results = new ArrayList<>();\n\n // Queue for intercommunication between \"file system walker\" and \"searchers\"\n BlockingQueue<File> queue = new LinkedBlockingDeque<>();\n\n // Thread that walks the file system and put files with provided extension in queue.\n Thread fileFinder = new Thread(new FileFinder(queue, new File(rootPath), extensions));\n\n List<Thread> searchers = new ArrayList<>();\n for (int i = 0; i < SEARCHERS_COUNT; i++) {\n // Searcher takes file from queue and looks for text entry in it.\n searchers.add(new Thread(new TextInFileSearcher(queue, textToSearch, results)));\n }\n\n // Run all the guys.\n fileFinder.start();\n searchers.forEach(Thread::start);\n searchers.forEach(t -> {\n try {\n t.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n });\n fileFinder.join();\n\n return results;\n }",
"public static void main(String[] args) {\n String fileName = \"data1.txt\";\n \n \n //Load the data from the dataset file\n dataSet = getDataSet(fileName);\n \n //Setting up the output file\n String outputFileName = \"\";\n if (fileName.indexOf(\".\") > 0) {\n outputFileName = fileName.substring(0, fileName.lastIndexOf(\".\"));\n }\n \n createFile(outputFileName+\".csv\");\n \n //log the time the algorithm started\n long startTime = System.currentTimeMillis();\n \n //Placeholder of the fittest individual\n fittestIndividual = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n fittestIndividual.generateRulebase(); \n \n //Setup the mating pool\n matingPool = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n \n //used to run the GA multiple times without doing it manually\n //set to 1 because we want to run the GA once\n for (int a = 0; a < 1; a++) {\n currentBest = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n currentBest.generateRulebase();\n\n //Generate a population\n generatePopulation();\n\n //Initial calculation of the fitness\n calculateFitness(population);\n\n for (int i = 0; i < GENERATION; i++) {\n average = 0; //reset the average\n currentBestArray[i] = currentBest.getFitness();\n \n tournamentSelect(population);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Perfrom crossover on the mating pool\n crossover(matingPool);\n\n //Mutation\n mutation(matingPool);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Evaluate the current population\n for (Individual individual : matingPool) {\n if (individual.getFitness() > currentBest.getFitness()) {\n currentBest = new Individual(individual);\n }\n average = average + individual.getFitness();\n }\n \n\n //Replace the population with the new generation\n for (int j = 0; j < POP_SIZE; j++) {\n population[j] = new Individual(matingPool[j]);\n }\n \n averageArray[i] = average / POP_SIZE;\n }\n \n //Check whether the current best is fitter than the global fittest individual\n if (currentBest.fitness > fittestIndividual.fitness) {\n fittestIndividual = new Individual(currentBest);\n //copy the fittest individuals performance\n fittestArray = Arrays.copyOf(currentBestArray, currentBestArray.length);\n }\n }\n\n System.out.println(\"Best fitness generated for the dataset: \" + fittestIndividual.fitness);\n \n //output the rules\n printRules(fittestIndividual.getRulebase());\n \n //Save the performance data into the output file\n for (int i = 0; i < fittestArray.length; i++) {\n addToFile(i, fittestArray[i], averageArray[i]);\n }\n \n //close the file\n close();\n \n //Evaluate the fitness agaisnt the dataset\n calculateFitness(fittestIndividual);\n double accuracyPercentage = ((double) 100 / dataSet.size()) * fittestIndividual.fitness;\n System.out.format(\"%.2f%% accuracy on the datase set.\\n\", accuracyPercentage);\n \n //Log the duration it took\n long duration = System.currentTimeMillis() - startTime;\n System.out.println(\"Completed in \" + String.format(\"%02d min, %02d.%02d sec\",\n TimeUnit.MILLISECONDS.toMinutes(duration),\n TimeUnit.MILLISECONDS.toSeconds(duration)\n - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)),\n TimeUnit.MILLISECONDS.toMillis(duration) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(duration))\n ));\n }",
"public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}",
"public void infer() {\n runTime.setStartTime(System.currentTimeMillis());\n runTime.setIter(newModel.test_iters);\n System.out.println(\"Sampling \" + newModel.test_iters + \" testing iterations!\");\n\n for (int currentIter = 1; currentIter <= newModel.test_iters; currentIter++) {\n System.out.println(\"Iteration \" + currentIter + \"...\");\n\n for (int d = 0; d < newModel.D; d++) {\n\n for (int n = 0; n < newModel.corpus.docs[d].length; n++){\n HiddenVariable hv = infSZSampling(d, n);\n newModel.sAssign[d][n] = hv.sentiment;\n newModel.zAssign[d][n] = hv.topic;\n }\n } // end for each document\n } // end iterations\n runTime.setEndTime(System.currentTimeMillis());\n System.out.println(\"Gibbs sampling for inference completed!\");\n System.out.println(\"Saving the inference outputs!\");\n\n computeNewPi();\n computeNewTheta();\n computeNewPhi();\n newModel.computePerplexity();\n newModel.evaluateSentiment();\n newModel.saveModel(oldModel.modelName + \"-inference\", runTime);\n newModel.corpus.localDict.writeWordMap(option.model_dir + File.separator + oldModel.modelName + \"-inference\" + Model.wordMapSuffix);\n\n }",
"public static void main(String[] args) throws InterruptedException {\n Plot plot = new Plot(\"Graphic\", \"x1\", \"x2\", data);\n Thread.sleep(500);\n // the loop size is depended on epochs, and the wo, w1 and w2 could change as the epochs changes\n for (int i = 0; i < epochs; i++) {\n double cost = 0;\n int m = data.get(0).size();\n for (int j = 0; j < data.get(0).size(); j++) {\n double x1_j = data.get(0).get(j);\n double x2_j = data.get(1).get(j);\n double y_j = data.get(2).get(j);\n double z = w0 + w1 * x1_j + w2 * x2_j;\n double prediction = 1 / (1 + Math.pow(Math.E, -z));\n cost += y_j * log(prediction) + (1 - y_j) * (log(1 - prediction));\n w0 += alpha * (y_j - prediction);\n w1 += alpha * (y_j - prediction) * x1_j;\n w2 += alpha * (y_j - prediction) * x2_j;\n// System.out.println(prediction);\n }\n cost = cost / -m;\n System.out.println(\"Current Cost: \" + cost/data.get(0).size());\n HypothesisFunction h_x = (x) -> (-w1 * x - w0) / w2;\n plot.updatePlot(h_x);\n Thread.sleep(50);\n }\n\n System.out.println(\"Final Equation: h(x) = (\" + w2 + \" * x2) +(\" + w1 + \" * x1) + \" + w0);\n\n }",
"private void DFS() {\n\t\tfor(Node node: nodeList) {\r\n\t\t\tif(!node.isVisited())\r\n\t\t\t\tdfsVisit(node);\r\n\t\t}\r\n\t}",
"public static void main (String[] args){\n\n Graph test = new Graph(30,\"/main/graphs/test30\");\n Graph test2 = new Graph(5,\"/main/graphs/graph5\");\n Graph g1 = new Graph(30,\"/main/graphs/graph30\");\n Graph g2 = new Graph(50,\"/main/graphs/graph50\");\n Graph g3 = new Graph(55,\"/main/graphs/graph55\");\n Graph g4 = new Graph(60,\"/main/graphs/graph60\");\n Graph g5 = new Graph(65,\"/main/graphs/graph65\");\n Graph g6 = new Graph(70,\"/main/graphs/graph70\");\n Graph g7 = new Graph(75,\"/main/graphs/graph75\");\n Graph g8 = new Graph(80,\"/main/graphs/graph80\");\n Graph g9 = new Graph(85,\"/main/graphs/graph85\");\n Graph g10 = new Graph(90,\"/main/graphs/graph90\");\n Graph g11= new Graph(100,\"/main/graphs/graph100\");\n Graph g12= new Graph(200,\"/main/graphs/graph200\");\n Graph g13= new Graph(200,\"/main/graphs/graph200_2\");\n\n Algo algo = new Algo(test);\n System.out.println(\"Graphe test : \" + algo.runNtimes((int) (10*Math.pow(2,30/2))));\n\n algo = new Algo(g1);\n System.out.println(\"Graphe a 30 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,30/2))));\n\n algo = new Algo(g2);\n System.out.println(\"Graphe a 50 sommets : \" +algo.runNtimes((int) (10*Math.pow(2,50/2))));\n\n algo = new Algo(g3);\n System.out.println(\"Graphe a 55 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,55/2))));\n\n algo = new Algo(g4);\n System.out.println(\"Graphe a 60 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,60/2))));\n\n algo = new Algo(g5);\n System.out.println(\"Graphe a 65 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,65/2))));\n\n algo = new Algo(g6);\n System.out.println(\"Graphe a 70 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,70/2))));\n\n algo = new Algo(g7);\n System.out.println(\"Graphe a 75 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,75/2))));\n\n algo = new Algo(g8);\n System.out.println(\"Graphe a 80 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,80/2))));\n\n algo = new Algo(g9);\n System.out.println(\"Graphe a 85 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,85/2))));\n\n algo = new Algo(g10);\n System.out.println(\"Graphe a 90 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,90/2))));\n\n algo = new Algo(g11);\n System.out.println(\"Graphe a 100 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,100/2))));\n\n algo = new Algo(g12);\n System.out.println(\"Graphe a 200 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,200/2))));\n\n algo = new Algo(g13);\n System.out.println(\"Graphe a 200 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,200/2))));\n\n }",
"@Override\n public Iterator<Instance> call(Iterator<FoldMaker> foldMakerIterator)\n throws DistributedWekaException {\n\n if (foldMakerIterator.hasNext()) {\n int count = 0;\n while (foldMakerIterator.hasNext()) {\n if (count > 1) {\n throw new DistributedWekaException(\n \"We seem to have more than one \"\n + \"FoldMaker in this partition!\");\n }\n FoldMaker current = foldMakerIterator.next();\n Instances training = current.getTrainingFold(foldNumber);\n m_trainingInstancesForFold = new ArrayList<>(training.size());\n for (int i = 0; i < training.numInstances(); i++) {\n m_trainingInstancesForFold.add(training.get(i));\n }\n\n count++;\n }\n }\n\n return m_trainingInstancesForFold.iterator();\n }",
"private void train() throws IOException {\n\t\thamContent = new String();// the content of ham training files\n\t\tspamContent = new String();// the content of spam training files\n\t\tvocabulary = new ArrayList<String>();// all the\n\t\t\t\t\t\t\t\t\t\t\t\t// vocabulary\n\t\t\t\t\t\t\t\t\t\t\t\t// within\n\t\t\t\t\t\t\t\t\t\t\t\t// training\n\t\t\t\t\t\t\t\t\t\t\t\t// files\n\t\thamSenderDomainHash = new HashMap<String, Integer>();\n\t\thamTimeHash = new HashMap<String, Integer>();\n\t\thamReplyHash = new HashMap<String, Integer>();\n\t\thamNonCharNumHash = new HashMap<String, Integer>();\n\t\tspamSenderDomainHash = new HashMap<String, Integer>();\n\t\tspamTimeHash = new HashMap<String, Integer>();\n\t\tspamReplyHash = new HashMap<String, Integer>();\n\t\tspamNonCharNumHash = new HashMap<String, Integer>();\n\n\t\thamWordProb = new HashMap<String, Double>();\n\t\tspamWordProb = new HashMap<String, Double>();\n\t\tclassProb = new HashMap<String, Double>();\n\n\t\tfor (int i = 0; i < 24; i++) {\n\t\t\thamTimeHash.put(String.valueOf(i), 0);\n\t\t\tspamTimeHash.put(String.valueOf(i), 0);\n\t\t}\n\t\tint numSpam = 0, numHam = 0, numFile = 0;// numbers of training files\n\t\tString buff;// file reading tmp buffer\n\n\t\t/* get all the files in the directory */\n\t\tFile directory = new File(inputDirectory);\n\t\tFile[] files = directory.listFiles();\n\n\t\t/*\n\t\t * assign the content of hams and spams while counting the number of\n\t\t * files\n\t\t */\n\t\tfor (File f : files) {\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f.getName().startsWith(\"ham\")) {\n\t\t\t\tString readbufferString = readFile(f, 0);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (File f : files) {\n\t\t\tnumFile++;\n\t\t\t// System.out.println(f.getName());\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tnumSpam++; // add to the number of spams\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 1);\n\t\t\t\telse if (spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum,\n\t\t\t\t\t\t\tspamNonCharNumHash.get(spamNonCharNum) + 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 1);\n\t\t\t\t\telse if (spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain,\n\t\t\t\t\t\t\t\tspamSenderDomainHash.get(spamSenderDomain) + 1);\n\t\t\t\t\tif (!spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime, 1);\n\t\t\t\t\telse if (spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime,\n\t\t\t\t\t\t\t\tspamTimeHash.get(spamTime) + 1);\n\t\t\t\t\tif (!spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply, 1);\n\t\t\t\t\telse if (spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply,\n\t\t\t\t\t\t\t\tspamReplyHash.get(spamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\tspamContent += readbuffer.toLowerCase();\n\t\t\t\tspamContent = spamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\n\t\t\t} else if (f.getName().startsWith(\"ham\")) { // the same thing for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ham\n\t\t\t\tnumHam++;\n\t\t\t\tString readbuffer = readFile(f, 0);\n\t\t\t\tif (!hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 1);\n\t\t\t\telse if (hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum,\n\t\t\t\t\t\t\thamNonCharNumHash.get(hamNonCharNum) + 1);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 1);\n\t\t\t\t\telse if (hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain,\n\t\t\t\t\t\t\t\thamSenderDomainHash.get(hamSenderDomain) + 1);\n\n\t\t\t\t\tif (!hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, 1);\n\t\t\t\t\telse if (hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, hamTimeHash.get(hamTime) + 1);\n\t\t\t\t\tif (!hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply, 1);\n\t\t\t\t\telse if (hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply,\n\t\t\t\t\t\t\t\thamReplyHash.get(hamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\thamContent += readbuffer.toLowerCase();\n\t\t\t\thamContent = hamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"file read complete!!!\");\n\t\t// System.out.println(hamSenderDomainHash);\n\t\t// System.out.println(hamTimeHash);\n\t\t// System.out.println(hamReplyHash);\n\t\t// System.out.println(hamNonCharNumHash);\n\t\t// System.out.println(spamSenderDomainHash);\n\t\t// System.out.println(spamTimeHash);\n\t\t// System.out.println(spamReplyHash);\n\t\t// System.out.println(spamNonCharNumHash);\n\t\t// System.out.println(spamContent);\n\t\t// System.out.println(hamContent);\n\n\t\t/* calculate probabilities */\n\t\tpHam = (double) numHam / (double) numFile;\n\t\tpSpam = (double) numSpam / (double) numFile;\n\t\t// System.out.println(numHam);\n\t\t// System.out.println(numSpam);\n\t\t// System.out.println(numFile);\n\n\t\tclassProb.put(\"hamProb\", pHam);\n\t\tclassProb.put(\"spamProb\", pSpam);\n\n\t\t/* get vocabulary and its length */\n\t\tString[] hamWord = hamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> hamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < hamWord.length; i++) {\n\t\t\tif (hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], hamWordFreq.get(hamWord[i]) + 1);\n\t\t\tif (!hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], 1);\n\t\t}\n\t\thamWordCount = hamWord.length;\n\t\tString[] spamWord = spamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> spamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < spamWord.length; i++) {\n\t\t\tif (spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq\n\t\t\t\t\t\t.put(spamWord[i], spamWordFreq.get(spamWord[i]) + 1);\n\t\t\tif (!spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq.put(spamWord[i], 1);\n\t\t}\n\t\tspamWordCount = spamWord.length;\n\t\tSystem.out.println(hamWordFreq.size());\n\t\tSystem.out.println(spamWordFreq.size());\n\t\tSystem.out.println(\"count get!!!\");\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(spamWordCount);\n\t\tfor (int i = 0; i < hamWordCount; i++) {\n\t\t\tif (!vocabulary.contains(hamWord[i]) && !hamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(hamWord[i]);\n\t\t}\n\t\t// System.out.println(hamWordFreq);\n\t\tfor (int i = 0; i < spamWordCount; i++)\n\t\t\tif (!vocabulary.contains(spamWord[i]) && !spamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(spamWord[i]);\n\t\tvocabLen = vocabulary.size();\n\t\tSystem.out.println(\"vocab init\");\n\t\t/* remove unnecessary words */\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\tif ((hamwordFreq <= 3) && (spamwordFreq <= 3)) {\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (((double) ((double) hamwordFreq / (double) hamWordCount) >= 0.005)\n\t\t\t\t\t&& ((double) ((double) spamwordFreq / (double) spamWordCount) >= 0.005)) {\n\t\t\t\t// System.out.println(vocabulary.get(i));\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"vocab complete!!!\");\n\t\tSystem.out.println(vocabulary.size());\n\t\tvocabLen = vocabulary.size();\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\thamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (hamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (hamWordCount + vocabLen)));\n\t\t\tspamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (spamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (spamWordCount + vocabLen)));\n\t\t\t// System.out.println(i);\n\n\t\t}\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(hamContent);\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(spamWordProb.size());\n\t\t// System.out.println(vocabulary.size());\n\t\t//\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(vocabulary);\n\t\t// System.out.println(vocabLen);\n\t\tSystem.out.println(\"word prob complete!!!\");\n\t}",
"public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}",
"@Test\n public void testParallelScan() throws Exception {\n WorkflowJob job = r.jenkins.createProject(WorkflowJob.class, \"Convoluted\");\n job.setDefinition(new CpsFlowDefinition(\n \"echo 'first'\\n\" +\n \"def steps = [:]\\n\" +\n \"steps['1'] = {\\n\" +\n \" echo 'do 1 stuff'\\n\" +\n \"}\\n\" +\n \"steps['2'] = {\\n\" +\n \" echo '2a'\\n\" +\n \" echo '2b'\\n\" +\n \"}\\n\" +\n \"parallel steps\\n\" +\n \"echo 'final'\",\n true));\n\n /* Flow structure (ID - type)\n 2 - FlowStartNode (BlockStartNode)\n 3 - Echostep\n 4 - ParallelStep (StepStartNode) (start branches)\n 6 - ParallelStep (StepStartNode) (start branch 1), ParallelLabelAction with branchname=1\n 7 - ParallelStep (StepStartNode) (start branch 2), ParallelLabelAction with branchname=2\n 8 - EchoStep, (branch 1) parent=6\n 9 - StepEndNode, (end branch 1) startId=6, parentId=8\n 10 - EchoStep, (branch 2) parentId=7\n 11 - EchoStep, (branch 2) parentId = 10\n 12 - StepEndNode (end branch 2) startId=7 parentId=11,\n 13 - StepEndNode (close branches), parentIds = 9,12, startId=4\n 14 - EchoStep\n 15 - FlowEndNode (BlockEndNode)\n */\n\n WorkflowRun b = r.assertBuildStatusSuccess(job.scheduleBuild2(0));\n FlowExecution exec = b.getExecution();\n Collection<FlowNode> heads = b.getExecution().getCurrentHeads();\n\n AbstractFlowScanner scanner = new LinearScanner();\n scanner.setup(heads);\n FlowTestUtils.assertNodeOrder(\"Linear\", scanner, 15, 14, 13, 9, 8, 6, 4, 3, 2);\n scanner.setup(heads, Collections.singleton(exec.getNode(\"9\")));\n FlowTestUtils.assertNodeOrder(\"Linear\", scanner, 15, 14, 13, 12, 11, 10, 7, 4, 3, 2);\n\n\n // Depth first scanner and with blacklist\n scanner = new DepthFirstScanner();\n scanner.setup(heads);\n\n // Compatibility test for ordering\n FlowTestUtils.assertNodeOrder(\"FlowGraphWalker\", new FlowGraphWalker(exec), 15, 14, 13,\n 9, 8, 6, // Branch 1\n 4, 3, 2, // Before parallel\n 12, 11, 10, 7); // Branch 2\n FlowTestUtils.assertNodeOrder(\"Depth first\", new FlowGraphWalker(exec), 15, 14, 13,\n 9, 8, 6, // Branch 1\n 4, 3, 2, // Before parallel\n 12, 11, 10, 7); // Branch 2\n scanner.setup(heads, Collections.singleton(exec.getNode(\"9\")));\n FlowTestUtils.assertNodeOrder(\"Linear\", scanner, 15, 14, 13, 12, 11, 10, 7, 4, 3, 2);\n\n scanner.setup(Arrays.asList(exec.getNode(\"9\"), exec.getNode(\"12\")));\n FlowTestUtils.assertNodeOrder(\"Depth-first scanner from inside parallels\", scanner, 9, 8, 6, 4, 3, 2, 12, 11, 10, 7);\n\n // We're going to test the ForkScanner in more depth since this is its natural use\n scanner = new ForkScanner();\n scanner.setup(heads);\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 15, 14, 13,\n 12, 11, 10, 7,// One parallel\n 9, 8, 6, // other parallel\n 4, 3, 2); // end bit\n scanner.setup(heads, Collections.singleton(exec.getNode(\"9\")));\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 15, 14, 13, 12, 11, 10, 7, 4, 3, 2);\n\n // Test forkscanner midflow\n scanner.setup(exec.getNode(\"14\"));\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 14, 13,\n 12, 11, 10, 7, // Last parallel\n 9, 8, 6, // First parallel\n 4, 3, 2); // end bit\n\n // Test forkscanner inside a parallel\n List<FlowNode> startingPoints = Arrays.asList(exec.getNode(\"9\"), exec.getNode(\"12\"));\n scanner.setup(startingPoints);\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 9, 8, 6, 12, 11, 10, 7, 4, 3, 2);\n\n startingPoints = Arrays.asList(exec.getNode(\"9\"), exec.getNode(\"11\"));\n scanner.setup(startingPoints);\n FlowTestUtils.assertNodeOrder(\"ForkedScanner\", scanner, 9, 8, 6, 11, 10, 7, 4, 3, 2);\n\n\n // Filtering at different points within branches\n List<FlowNode> blackList = Arrays.asList(exec.getNode(\"6\"), exec.getNode(\"7\"));\n Assert.assertEquals(4, scanner.filteredNodes(heads, blackList, FlowTestUtils.MATCH_ECHO_STEP).size());\n Assert.assertEquals(4, scanner.filteredNodes(heads, Collections.singletonList(exec.getNode(\"4\")), FlowTestUtils.MATCH_ECHO_STEP).size());\n blackList = Arrays.asList(exec.getNode(\"6\"), exec.getNode(\"10\"));\n Assert.assertEquals(3, scanner.filteredNodes(heads, blackList, FlowTestUtils.MATCH_ECHO_STEP).size());\n }",
"public void RunAlgo(int i,Set<Session> s, ArrayList<Set<Session>> courses){\n System.out.println(i);\n if(i==courses.size()) {\n Set<Session> temp= copySet(s);\n if(allCombinations.size()>maxSize) flag=false;\n allCombinations.add(temp);\n System.out.println(allCombinations.size());\n return;\n }\n Set<Session> current = courses.get(i);\n for (Session x : current) {\n if (isGoodMatch(x, s)) {\n s.add(x);\n if(flag)\n RunAlgo(i + 1, s, courses);\n s.remove(x);\n }\n }\n\n }",
"public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}",
"public void buildPathes() {\n\n for (Fruit fruit :game.getFruits()) {\n\n GraphNode.resetCounterId();\n changePlayerPixels();\n addBlocksVertices();\n Point3D fruitPixels = new Point3D(fruit.getPixels()[0],fruit.getPixels()[1]);\n GraphNode fruitNode = new GraphNode(fruitPixels);\n vertices.add(fruitNode);\n Target target = new Target(fruitPixels, fruit);\n\n //find the neigbours\n BFS();\n\n // build the grpah\n buildGraph(target);\n }\n }",
"public void Generator(Graph<MyNode, MyEdge> Graph, ArrayList<MySFC> S,int R,int x,int y,int z) {\n Map<MyEdge, Integer> r_e2 = new HashMap<>();\n for (MyEdge e : Graph.getEdges()) r_e2.put(e, r_e.get(e));\n Map<MyNode, Integer> r_n2 = new HashMap<>();\n for (MyNode n : Graph.getVertices()) r_n2.put(n, r_n.get(n));\n /**Sort SFC set in reverse order*/\n S.sort(new MyComparator());\n whole:for (MySFC s : S) {\n /**Deep copy of graph*/\n Graph<MyNode, MyEdge> Copy_Graph = Clone_Graph(Graph);\n /**Remove links which don't have enough capacity*/\n for (MyEdge e : Copy_Graph.getEdges()) if (s.Demand_Link_Resource > r_e.get(find_edge(e))) Copy_Graph.removeEdge(e);\n /**finding shortest path*/\n DijkstraShortestPath<MyNode, MyEdge> ds = new DijkstraShortestPath<>(Copy_Graph, new MyTransformer());\n DijkstraDistance<MyNode, MyEdge> dd = new DijkstraDistance<>(Copy_Graph);\n List<MyEdge> path;\n MyNode source = find_original_Node(Copy_Graph, s.source);\n MyNode sink = find_original_Node(Copy_Graph, s.sink);\n if (dd.getDistance(source, sink) != null) path = ds.getPath(source, sink);\n else {\n cost_link = 0;\n cost_node = 0;\n break whole;\n }\n Graph<MyNode, MyEdge> p = Dijkstra_Path(Copy_Graph, path, source);\n for (int i = 0; i < R; i++) {\n Map<MyNode, Set<MyVNF>> Deploy_List = new HashMap<>();\n ArrayList<MyNode> U = new ArrayList<MyNode>(p.getVertices());\n MyNode before = source;\n for (MyVNF f : s.VNF) {\n U = Capacity_Confirm(U, f, r_n2);\n if (U.size() != 0)before = Deploy_Value(U, Copy_Graph, p, Deploy_List, r_n2, f, s, x, y, z);\n else {\n step1:for (;;) {\n /**selecting the before and next node*/\n MyNode next = find_original_Node(Copy_Graph, Next_Generator(p, s.source, before));\n MyEdge e = Copy_Graph.findEdge(before, next);\n Copy_Graph.removeEdge(e);\n Graph_Modificator(Copy_Graph, p, before, next, s);\n step2:for (;;){\n dd = new DijkstraDistance<>(Copy_Graph,new MyTransformer());\n ds = new DijkstraShortestPath<>(Copy_Graph, new MyTransformer());\n List<MyEdge> path2 = new ArrayList<>();\n if (dd.getDistance(before, next) != null) {\n path2 = ds.getPath(before, next);\n Graph<MyNode, MyEdge> p2 = Dijkstra_Path(Copy_Graph, path2, source);\n for (MyNode n : p2.getVertices()) if(before.Node_Num!= n.Node_Num&&next.Node_Num!=n.Node_Num)U.add(n);\n if(U.size()!=0)Capacity_Confirm(U, f, r_n2);\n if (U.size() != 0) {\n List<MyEdge> path3 = new ArrayList<MyEdge>(path);\n path3.remove(e);\n path3.addAll(path2);\n Graph<MyNode, MyEdge> p3 = Dijkstra_Path(Graph, path3, source);\n before = find_original_Node(Copy_Graph,Deploy_Value(U, Graph, p3, Deploy_List, r_n2, f, s, x, y, z));\n U = List_Modificator(U, p3, before, source);\n p = p3;\n path = new ArrayList<MyEdge>(p3.getEdges());\n break step1;\n } else {\n ArrayList<MyNode> nl = new ArrayList<>(p2.getNeighbors(find_original_Node(p2,before)));\n Copy_Graph.removeEdge(Copy_Graph.findEdge(find_original_Node(Copy_Graph, nl.get(0)), find_original_Node(Copy_Graph, before)));\n }\n } else {\n before = next;\n if (before.Node_Num == s.sink.Node_Num) {\n cost_link = 0;\n cost_node = 0;\n break whole;\n } else break step2;\n }\n }\n }\n }\n }\n }\n if (cost_node != 0) for (MyEdge e : p.getEdges()) cost_link += c_e.get(find_edge(e)) * s.Demand_Link_Resource;\n }\n }",
"public static void main(String[] args) {\n\t\tArrayList<Robot> robots = new ArrayList<>();\n\t\tArrayList<Node> nodes = new ArrayList<>();\n\t\t//This allows for different home and feeder locations\n\t\tNode redFeeder = new Node(0, 10, 4, true);\n\t\tNode yelFeeder = new Node(0, 5, 10, false);\n\t\tNode home = new Node(0, 0, 0, true);\n\n\t\t//Insert the nodes listed from the homework\n\t\tnodes.add(new Node(1, 2, 2, true));\n\t\tnodes.add(new Node(2, 1, 5, false));\n\t\tnodes.add(new Node(3, 3, 7, true));\n\t\tnodes.add(new Node(4, 5, 9, false));\n\t\tnodes.add(new Node(5, 7, 3, true));\n\t\tnodes.add(new Node(6, 8, 1, true));\n\t\tnodes.add(new Node(7, 8, 5, true));\n\t\tnodes.add(new Node(8, 4, 6, false));\n\t\tnodes.add(new Node(9, 6, 8, false));\n\t\tnodes.add(new Node(10, 9, 7, false));\n\n\t\t//Set counter for while loop later\n\t\tint counter = 1;\n\n\t\t//Create initial 10 parents\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\trobots.add(new Robot());\n\n\t\t\t//Set the home and feeders\n\t\t\trobots.get(i).setHome(home.getX(), home.getY());\n\t\t\trobots.get(i).setRedFeeder(redFeeder.getX(), redFeeder.getY());\n\t\t\trobots.get(i).setYellowFeeder(yelFeeder.getX(), yelFeeder.getY());\n\n\t\t\t//Create a temp node list to shuffle\n\t\t\tArrayList<Node> tempNodes = nodes;\n\t\t\tCollections.shuffle(tempNodes);\n\n\t\t\t//Iterate through and add the nodes based on the value not the reference (caused lots of issues before\n\t\t\t//I figured that out\n\t\t\tfor (int j = 0; j < 10; j++)\n\t\t\t\trobots.get(i).in(new Node(tempNodes.get(j).getE(), tempNodes.get(j).getX(),\n\t\t\t\t\t\ttempNodes.get(j).getY(), tempNodes.get(j).isRed()));\n\t\t}\n\n\t\t//Go for 300k iterations, can be changed on a whim\n\t\twhile (counter <= 300000) {\n\n\t\t\t//Output every 10k iterations, can be changed\n\t\t\tif (counter % 10000 == 0) {\n\t\t\t\tSystem.out.println(\"Loop \" + (counter));\n\t\t\t\tfor (Robot r : robots) {\n\t\t\t\t\tr.printNodes();\n\t\t\t\t\tSystem.out.println(\" - \" + r.calcTotalDist());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tint size = robots.size();\n\t\t\t//Create children based on two parents and add them to the robots list\n\t\t\tfor (int i = 0; i < size; i += 2) {\n\t\t\t\tint x = ThreadLocalRandom.current().nextInt(1, 8);\n\t\t\t\tRobot temp = robots.get(i).getFirstHalf(x);\n\t\t\t\ttemp.addSecondHalf(robots.get(i + 1), x);\n\n\t\t\t\ttemp.setHome(home.getX(), home.getY());\n\t\t\t\ttemp.setRedFeeder(redFeeder.getX(), redFeeder.getY());\n\t\t\t\ttemp.setYellowFeeder(yelFeeder.getX(), yelFeeder.getY());\n\n\t\t\t\trobots.add(temp);\n\t\t\t}\n\n\t\t\t//Sort the list of robots based on the Comparator that uses the totalDistance\n\t\t\tCollections.sort(robots);\n\n\t\t\t//Remove the last 5 (largest) items from the list\n\t\t\tfor (int i = robots.size() - 1; i > 9; i--) {\n\t\t\t\trobots.remove(i);\n\t\t\t}\n\n\t\t\t//Shuffle the list again to hope for totally random stuff\n\t\t\tCollections.shuffle(robots);\n\t\t\tcounter++;\n\t\t}\n\n\t\t//Irrelevant but useful in testing\n\t\treturn;\n\t}",
"@Override\n\t\t\t\t\tpublic Iterator<Tuple2<FirstStageAresSolution, Tuple5<Integer,Double,Double,Double,Double>>> call(Tuple2<MobileApplication, MobileDataDistributionInfrastructure> inputValues)\n\t\t\t\t\t\t\tthrows Exception {\n\t\t\t\t\t\tArrayList<Tuple2<FirstStageAresSolution,Tuple5<Integer,Double,Double,Double,Double>>> output = \n\t\t\t\t\t\t\t\t\t\tnew ArrayList<Tuple2<FirstStageAresSolution,Tuple5<Integer,Double,Double,Double,Double>>>();\n\t\t\t\t\t\tOffloadScheduler singleSearch;\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList<FirstStageAresSolution> solutions;\n\t\t\t\t\t\t/*switch(SimulationSetup.placementAlgorithm)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tcase \"RANDOM\":\n\t\t\t\t\t\t\tRandomEdgePlanner.setupEdgeNodes(infrastructure);\n\t\t\t\t\t\t\tDefaultNetworkPlanner.setupNetworkConnections(infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ALL\":\n\t\t\t\t\t\t\tEdgeAllCellPlanner.setupEdgeNodes(infrastructure);\n\t\t\t\t\t\t\tDefaultNetworkPlanner.setupNetworkConnections(infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ares\":\n\t\t\t\t\t\t\tFirstStageAresPlanner planner = new FirstStageAresPlanner(inputValues);\n\t\t\t\t\t\t\tplanner.setupEdgeNodes(infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tFirstStageAresPlanner aresP = new FirstStageAresPlanner(inputValues);\n\t\t\t\t\t\t\taresP.setupEdgeNodes(infrastructure);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Executing planner\");\n\t\t\t\t\t\t//FirstStageAresPlanner aresP = new FirstStageAresPlanner();\n\t\t\t\t\t\tFirstStageAresPlanner aresP = new FirstStageAresPlanner();\n\t\t\t\t\t\tSystem.out.println(\"Retrieving solutions\");\n\t\t\t\t\t\t//solutions = (ArrayList<FirstStageAresSolution>) aresP.getSolutionList();\n\t\t\t\t\t\tsolutions = (ArrayList<FirstStageAresSolution>) aresP.getSolutionList();\n\t\t\t\t\t\tSystem.out.println(\"Solutions retrieved!\");\n\t\t\t\t\t\t/*switch(algoritmName){\n\t\t\t\t\t\tcase \"weighted\":\n\t\t\t\t\t\t\tsingleSearch = new HeftEchoResearch(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"heft\":\n\t\t\t\t\t\t\tsingleSearch = new HEFTResearch(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"hbatt\":\n\t\t\t\t\t\t\tsingleSearch = new HEFTBattery(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"hcost\":\n\t\t\t\t\t\t\tsingleSearch = new HEFTCostResearch(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"bforce-rt\":\n\t\t\t\t\t\t\tsingleSearch = new BruteForceRuntimeOffloader(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"nsgaIII\":\n\t\t\t\t\t\t\tsingleSearch = new NSGAIIIResearch(inputValues._1(), infrastructure);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t//ArrayList<FirstStageAresSolution> temp = new ArrayList<FirstStageAresSolution>();\n\t\t\t\t\t\t//for(FirstStageAresSolution solution : solutions) {\n\t\t\t\t\t\tArrayList<FirstStageAresSolution> temp = new ArrayList<FirstStageAresSolution>();\n\t\t\t\t\t\tfor(FirstStageAresSolution solution : solutions) {\n\t\t\t\t\t\t\t//aresP.applySolutionToInfrastructure(solution, infrastructure);\n\t\t\t\t\t\t\t//ArrayList<InfrastructureProvisioningPlan> offloads = (ArrayList<InfrastructureProvisioningPlan>) singleSearch.findScheduling();\n\t\t\t\t\t\t\t//if(offloads != null)\n\t\t\t\t\t\t\t\t//for(InfrastructureProvisioningPlan os : offloads) \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\t\t//System.out.println(solution);\n\t\t\t\t\t\t\t\t\t//plan.setInfEnergyConsumption(solution.getEnergyConsumption());\n\t\t\t\t\t\t\t\t\t//plan.setRunTime(solution.getAverageDistance());\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*if(!temp.contains(solution)) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttemp.add(solution);\n\t\t\t\t\t\t\t\toutput.add(\n\t\t\t\t\t\t\t\t\t\tnew Tuple2<FirstStageAresSolution,Tuple5<Integer,Double,Double,Double,Double>>\n\t\t\t\t\t\t\t\t\t\t(solution,\n\t\t\t\t\t\t\t\t\t\t\t\tnew Tuple5<Integer,Double,Double,Double,Double>(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsolution.getAverageDistance(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0.0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsolution.getEnergyConsumption(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0.0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)));\n\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\tif(!temp.contains(solution)) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttemp.add(solution);\n\t\t\t\t\t\t\t\toutput.add(\n\t\t\t\t\t\t\t\t\t\tnew Tuple2<FirstStageAresSolution,Tuple5<Integer,Double,Double,Double,Double>>\n\t\t\t\t\t\t\t\t\t\t(solution,\n\t\t\t\t\t\t\t\t\t\t\t\tnew Tuple5<Integer,Double,Double,Double,Double>(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsolution.getAverageDistance(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0.0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsolution.getEnergyConsumption(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0.0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn output.iterator();\n\t\t\t\t\t}",
"@Test\n public void testParallelPropagationLoopBack() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n\n // create receiver on site1 and site2\n createCacheInVMs(lnPort, vm2, vm4, vm5);\n vm2.invoke(WANTestBase::createReceiver);\n createCacheInVMs(nyPort, vm3, vm6, vm7);\n vm3.invoke(WANTestBase::createReceiver);\n\n // create senders on site1\n vm2.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm4.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n\n // create senders on site2\n vm3.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n\n // create PR on site1\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n\n // create PR on site2\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n\n // start sender on site1\n startSenderInVMs(\"ln\", vm2, vm4, vm5);\n\n\n // start sender on site2\n startSenderInVMs(\"ny\", vm3, vm6, vm7);\n\n\n // pause senders on site1\n vm2.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n vm4.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n vm5.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n\n // pause senders on site2\n vm3.invoke(() -> WANTestBase.pauseSender(\"ny\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ny\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny\"));\n\n // this is required since sender pause doesn't take effect immediately\n Wait.pause(1000);\n\n // Do 100 puts on site1\n vm2.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n // do next 100 puts on site2\n vm3.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n // verify queue size on both sites\n vm2.invoke(() -> WANTestBase.verifyQueueSize(\"ln\", 100));\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ln\", 100));\n vm5.invoke(() -> WANTestBase.verifyQueueSize(\"ln\", 100));\n\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n vm6.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n vm7.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n\n // resume sender on site1\n vm2.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n vm4.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n vm5.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n\n // validate events reached site2 from site1\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // on site2, verify queue size again\n // this ensures that loopback is not happening since the queue size is same as before\n // the event coming from site1 are not enqueued again\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n vm6.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n vm7.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n\n // resume sender on site2\n vm3.invoke(() -> WANTestBase.resumeSender(\"ny\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ny\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny\"));\n\n // validate region size on both the sites\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }",
"public void evaluate(String trainFile, double percentTrain, String testFile, String featureDefFile) {\n/* 799 */ List<RankList> train = new ArrayList<>();\n/* 800 */ List<RankList> validation = new ArrayList<>();\n/* 801 */ int[] features = prepareSplit(trainFile, featureDefFile, percentTrain, normalize, train, validation);\n/* 802 */ List<RankList> test = null;\n/* */ \n/* */ \n/* 805 */ if (!testFile.isEmpty()) {\n/* */ \n/* 807 */ test = readInput(testFile);\n/* 808 */ if (normalize) {\n/* 809 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 812 */ RankerTrainer trainer = new RankerTrainer();\n/* 813 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 815 */ if (test != null) {\n/* */ \n/* 817 */ double rankScore = evaluate(ranker, test);\n/* 818 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 820 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 822 */ System.out.println(\"\");\n/* 823 */ ranker.save(modelFile);\n/* 824 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }",
"@Override\n \tpublic Collection<Collection<Integer>> call() throws Exception {\n \t\tEdgeWeighter<HomologyEdge> weighter = new EdgeWeighter<HomologyEdge>() {\n \t\t\t@Override\n \t\t\tpublic double getWeight(HomologyEdge e) {\n \t\t\t\treturn e.getWeight();\n \t\t\t}\n \t\t};\n \t\tProbabilisticDistanceClusterer<Integer, HomologyEdge> alg = new ProbabilisticDistanceClusterer<Integer, HomologyEdge>(\n \t\t\t\tweighter, xi);\n \t\tSet<Set<Integer>> ccs = alg.transform(graph.getHomology());\n \n \t\t// now map each cluster to a root for that cluster\n \t\t// the choice of root is arbitrary and just for hashing\n \t\tMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n \t\tfor (Set<Integer> cc : ccs) {\n \t\t\tint v0 = -1;\n \t\t\tint i = 0;\n \t\t\tfor (int v : cc) {\n \t\t\t\tif (i == 0) v0 = v;\n \t\t\t\tmap.put(v, v0);\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \n \t\t// find the cliques\n \t\tBronKerboschCliqueFinder<Integer, HomologyEdge> finder = new BronKerboschCliqueFinder<>();\n \t\tCollection<Set<Integer>> cliques = finder.transform(graph.getHomology());\n \n \t\t// group the cliques by sets of interactions\n \t\tNavigableMap<String, Collection<Integer>> cliqueGroups = new TreeMap<>();\n \t\tfor (Set<Integer> clique : cliques) {\n \t\t\tfor (int v : clique) {\n \t\t\t\tCollection<Integer> neighbors = graph.getInteractionNeighbors(v);\n \t\t\t\tString hash = hashVertexInteractions(neighbors, map);\n \t\t\t\tCollection<Integer> group = cliqueGroups.get(hash);\n \t\t\t\tif (group == null) group = new TreeSet<>();\n \t\t\t\tgroup.add(v);\n \t\t\t}\n \t\t}\n \n \t\t// now we just want a set to return\n \t\tSet<Collection<Integer>> set = new TreeSet<>();\n \t\tset.addAll(cliqueGroups.values());\n \n \t\treturn set;\n \t}",
"@Override\n public void runSimulation() throws Exception {\n // Call a method that initializes the barrier\n // synchronizers and assigns them to the Beings.\n // TODO -- you fill in here.\n \n\n // Call a method that uses the common fork-join pool to run a\n // pool of threads that represent the Beings in this\n // simulation.\n // TODO -- you fill in here.\n \n }"
]
| [
"0.5641514",
"0.5481175",
"0.54663754",
"0.5457849",
"0.5411043",
"0.5402574",
"0.54012585",
"0.536539",
"0.5339618",
"0.5182087",
"0.5130238",
"0.5109051",
"0.5078253",
"0.49839413",
"0.49754038",
"0.49553093",
"0.49398223",
"0.49069047",
"0.48930633",
"0.48920533",
"0.48772576",
"0.48748717",
"0.48580572",
"0.48450205",
"0.48391348",
"0.483492",
"0.48216304",
"0.47902194",
"0.4785394",
"0.47847444",
"0.47799388",
"0.4767324",
"0.47658828",
"0.47511452",
"0.47351125",
"0.4731912",
"0.47053775",
"0.4696329",
"0.46917573",
"0.46855414",
"0.46789455",
"0.46696532",
"0.4661812",
"0.46513033",
"0.46499225",
"0.46369538",
"0.463165",
"0.46128446",
"0.45965937",
"0.4595952",
"0.45737094",
"0.45661786",
"0.45550248",
"0.45512778",
"0.45422304",
"0.45408157",
"0.45406023",
"0.45403704",
"0.45315197",
"0.45205408",
"0.45081636",
"0.44975695",
"0.44951227",
"0.44945738",
"0.44892752",
"0.4468763",
"0.44653386",
"0.4463076",
"0.44620973",
"0.4462079",
"0.4455925",
"0.44529375",
"0.44428515",
"0.44421533",
"0.44353405",
"0.4433156",
"0.44306615",
"0.44273046",
"0.44242904",
"0.44223642",
"0.44156626",
"0.44151065",
"0.44100747",
"0.44077817",
"0.43979016",
"0.4392718",
"0.43829745",
"0.43791497",
"0.43783262",
"0.43756184",
"0.43710032",
"0.4368847",
"0.4366882",
"0.43499023",
"0.4349853",
"0.4348561",
"0.4347909",
"0.43398407",
"0.43318743",
"0.43306842"
]
| 0.6211679 | 0 |
Sets the size of the vectors to be learned for each vertex in the graph | public Builder<V, E> vectorSize(int vectorSize) {
this.vectorSize = vectorSize;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setListOfEdges(int numberOfVertex) {\n this.edges = new LinkedList[numberOfVertex];\n }",
"Graph(int size) {\n n = size;\n V = new Vertex[size + 1];\n // create an array of Vertex objects\n for (int i = 1; i <= size; i++)\n V[i] = new Vertex(i);\n }",
"public int numVertices() { return numV; }",
"void setVertices(int vertices);",
"public Graph() // constructor\n{\n vertexList = new Vertex[MAX_VERTS];\n // adjacency matrix\n adjMat = new int[MAX_VERTS][MAX_VERTS];\n nVerts = 0;\n for (int j = 0; j < MAX_VERTS; j++) // set adjacency\n for (int k = 0; k < MAX_VERTS; k++) // matrix to 0\n adjMat[j][k] = INFINITY;\n}",
"public Graph(int numberOfVertices){\r\n this.numberOfVertices = numberOfVertices;\r\n this.adjacencyList = new TreeMap<>();\r\n }",
"@Override\r\n public int size() {\r\n return vertices.size();\r\n }",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"public void setSize(int size) {\n\t\tdist = new double[size];\n\t\tprev = new Node[size];\n\t\tready = new boolean[size];\n\t}",
"public AdjacencyLists(int size) {\r\n\t\tgraph = new ArrayList[size];\r\n\t}",
"private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\n }",
"public int getVertexSize() {\n\t\treturn graph.vertexSet().size();\r\n\t}",
"private void initialize(int entitySize, int relationSize,int k){\n entityVectors = new ArrayList<double[]>();\n relationVectors = new ArrayList<double[]>();\n normalVectors = new ArrayList<double[]>();\n for (int i = 0; i < entitySize; i++){\n double[] eVector = helper.initVector(k);\n double[] normedEVector = helper.norm(eVector);\n entityVectors.add(normedEVector);\n }\n for(int j =0; j < relationSize; j++){\n double[] rVector = helper.initVector(k);\n double[] normRVector = helper.norm(rVector);\n double[] nVector = helper.initVector(k);\n double[]normNVector = helper.norm(nVector);\n relationVectors.add(normRVector);\n normalVectors.add(normNVector);\n }\n }",
"public void addVertices(int num){ \n this.nrVertices += num;\n }",
"int getNumberOfVertexes();",
"public void recalculateNodesVectors(int width) {\n List<double[]> inputVectors = new ArrayList<double[]>();\n // use squar of distance\n for (ReferenceNode node : nodeList) {\n Point location = node.getLocation();\n List<ReferenceNode> neighborNodes = getNodesWithin(location, width);\n inputVectors.clear();\n for (ReferenceNode neighborNode : neighborNodes) {\n List<double[]> data = neighborNode.getInputVectors();\n if (data != null)\n inputVectors.addAll(data);\n }\n // If nothing in the inputVectors, keep the original value\n if (inputVectors.size() > 0) {\n double[] newVector = average(inputVectors);\n node.setReferenceVector(newVector);\n }\n }\n // Have to empty input nodes\n for (ReferenceNode node : nodeList) {\n node.resetInputVectors();\n node.resetLabels();\n }\n }",
"public void adaptProductVector() {\t\t\r\n\t\tHashMap<Integer, Integer> neighboursAdaption = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tdouble threshold = Parameters.adaptationThreshold / 100.0;\r\n\t\tint neighbours = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\tneighboursAdaption.put(i, 0);\r\n\t\t}\r\n\t\t\r\n\t\tfor (Object o: network.getAdjacent(this)) {\t\t\r\n\t\t\tif (o instanceof Customer) {\r\n\t\t\t\tCustomer c = (Customer)o;\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\t\t\tint count = neighboursAdaption.get(i);\r\n\t\t\t\t\tif (c.getDemandVector()[i] == 1) {\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tneighboursAdaption.put(i, count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tneighbours++;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < Parameters.vectorSpaceSize; i++) {\r\n\t\t\tif ((double)neighboursAdaption.get(i) / neighbours >= threshold ) {\r\n\t\t\t\tdemandVector[i] = 1;\r\n\t\t\t}\r\n\t\t}\t\t \r\n\t}",
"public void addVertices(int n);",
"public int getNumberOfVertices();",
"@Override\n\tpublic int graphSize() {\n\t\treturn edges.size();\n\t}",
"private void addVertexVisitConstraint(){\n\n for (int vertex=0; vertex < vertexCount; vertex++){\n Integer[] pos = new Integer[variables.length];\n for (int position =0; position < positionCount; position++){\n pos[position] = variables[position][vertex];\n }\n addExactlyOne(pos);\n }\n }",
"public void setWeights() {\n for (Square[] square : squares) {\n for (Square square1 : square) {\n try {\n int i = Integer.parseInt(square1.getText());\n square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), i));\n } catch (NumberFormatException e) {\n square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), 1));\n }\n }\n }\n }",
"Graph(int vertices) {\r\n this.numVertices = vertices;\r\n adjacencylist = new LinkedList[vertices];\r\n //initialize adjacency lists for all the vertices\r\n for (int i = 0; i <vertices ; i++) {\r\n adjacencylist[i] = new LinkedList<>();\r\n }\r\n }",
"public void setNrVertices(int nrVertices){\n this.nrVertices = nrVertices;\n }",
"public void setNumberOfVisitedNodes(int numberOfVisitedNodes) {\n NumberOfVisitedNodes = numberOfVisitedNodes;\n }",
"private final void resizeVertex(int capacity) {\n\t\tif (vertex.length < capacity) {\n\t\t\tvertex = new float[capacity];\n\t\t}\n\t}",
"private void addVertexPositionConstraint(){\n for (int vertex=0; vertex < vertexCount; vertex++){\n addExactlyOne(variables[vertex]);\n }\n }",
"public WeightedAdjMatGraph(){\n this.edges = new int[DEFAULT_CAPACITY][DEFAULT_CAPACITY];\n this.n = 0;\n this.vertices = (T[])(new Object[DEFAULT_CAPACITY]);\n }",
"private void setVertices(Vertex[] vs){\n\t\t\n\t\tvertices = new ArrayList<>();\n\t\toriginalVertices = new ArrayList<>();\n\t\tdouble scalar = ViewSettings.getScalar4();\n\n\t\tfor(Vertex v : vs){\n\t\t\tvertices.add(new Vertex(v.getX() * scalar, v.getY() * scalar, v.getZ() * scalar, v.getW() * scalar));\n\t\t\toriginalVertices.add(new Vertex(v.getX(), v.getY(), v.getZ(), v.getW()));\n\t\t}\n\t}",
"public int size() {\n\t\treturn vertices.size();\n\t}",
"public void setVertices(){\n\t\tvertices = new ArrayList<V>();\n\t\tfor (E e : edges){\n\t\t\tV v1 = e.getOrigin();\n\t\t\tV v2 = e.getDestination();\n\t\t\tif (!vertices.contains(v1))\n\t\t\t\tvertices.add(v1);\n\t\t\tif (!vertices.contains(v2))\n\t\t\t\tvertices.add(v2);\n\t\t}\n\t}",
"private void expandCapacity() {\n T[] tempVertices = (T[])(new Object[vertices.length * 2]);\n int[][] tempEdges = new int[vertices.length * 2][vertices.length * 2];\n \n for (int i = 0; i < n; i++) {\n tempVertices[i] = vertices[i];\n for (int j = 0; j < n; j++) {\n tempEdges[i][j] = edges[i][j];\n }\n }\n \n vertices = tempVertices;\n edges = tempEdges;\n }",
"private void setGraphParameters()\r\n\t{\r\n\r\n\t\tlogger.info(\"Setting graph parameters.\");\r\n\t\tlogger.info(\"Treating the graph as undirected.\");\r\n\r\n\t\t// Diameter is the maximum of all shortest path lengths\r\n\t\t// Average shortest path length is (as the name says) the average of the\r\n\t\t// shortest path length between all node pairs\r\n\r\n\t\tdouble maxPathLength = 0.0;\r\n\t\tdouble shortestPathLengthSum = 0.0;\r\n\t\tdouble degreeSum = 0.0;\r\n\t\tdouble clusterCoefficientSum = 0.0;\r\n\r\n\t\t// iterate over all node pairs\r\n\t\tCollection<Entity> nodes = undirectedGraph.getVertices();\r\n\r\n\t\t// a hashset of the nodes which have been the start node of the\r\n\t\t// computation process\r\n\t\t// for such nodes all path lengths have been already computed\r\n\t\tSet<Entity> wasSource = new HashSet<Entity>();\r\n\r\n\t\tint progress = 0;\r\n\t\tfor (Entity node : nodes) {\r\n\r\n\t\t\tprogress++;\r\n\t\t\tLoggingUtils.printProgressInfo(progress, nodes.size(), 100,\r\n\t\t\t\t\tLoggingUtils.ProgressInfoMode.TEXT,\r\n\t\t\t\t\t\"Getting graph parameters\");\r\n\r\n\t\t\tint nodeDegree = getDegree(node);\r\n\t\t\t// degreeSum += nodeDegree;\r\n\r\n\t\t\t// logger.info(\"Updating degree distribution.\");\r\n\t\t\t// updateDegreeDistribution(nodeDegree);\r\n\r\n\t\t\t// cluster coefficient C_v of a node v is the fraction of the\r\n\t\t\t// connections that exist between the\r\n\t\t\t// neighbor nodes (k_v) of this node and all allowable connections\r\n\t\t\t// between the neighbors (k_v(k_v -1)/2)\r\n\t\t\t// for degrees 0 or 1 there is no cluster coefficient, as there can\r\n\t\t\t// be no connections between neighbors\r\n\t\t\tif (nodeDegree > 1) {\r\n\t\t\t\tdouble numberOfNeighborConnections = getNumberOfNeighborConnections(node);\r\n\t\t\t\tclusterCoefficientSum += (numberOfNeighborConnections / (nodeDegree * (nodeDegree - 1)));\r\n\t\t\t}\r\n\r\n\t\t\t// Returns the new shortestPathLengthSum and the new maxPathLength.\r\n\t\t\t// They are returned as an double array for performance reasons.\r\n\t\t\t// I do not want to create an object, as this function is called\r\n\t\t\t// *very* often\r\n\t\t\t// logger.info(\"Computing shortest path lengths.\");\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(node,\r\n\t\t\t\t\tshortestPathLengthSum, maxPathLength, wasSource);\r\n\t\t\tshortestPathLengthSum = returnValues[0];\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\r\n\t\t\t// save the info that the node was already used as the source of\r\n\t\t\t// path computation\r\n\t\t\twasSource.add(node);\r\n\t\t}\r\n\r\n\t\tif (nodes.size() > 1) {\r\n\t\t\tthis.averageShortestPathLength = shortestPathLengthSum\r\n\t\t\t\t\t/ (nodes.size() * (nodes.size() - 1) / 2);\r\n\t\t\t// sum of path lengths / (number of node pairs)\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.averageShortestPathLength = 0; // there is only one node\r\n\t\t}\r\n\t\tthis.diameter = maxPathLength;\r\n\t\tthis.averageDegree = degreeSum / nodes.size();\r\n\t\tthis.clusterCoefficient = clusterCoefficientSum / nodes.size();\r\n\t}",
"public int getVertexCount();",
"public void addSize(double edgeSize)\r\n\t{\r\n\t\tsize= size + edgeSize;\r\n\t}",
"public VectorRank(SimpleVectorGraph graph){\n this.graph = graph;\n\n }",
"public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }",
"private void increaseSize(int num) {\n int increasedSize = _edges.size() + num;\n for (int i = 0; i < _edges.size(); i++) {\n for (int j = 0; j < num; j++) {\n _edges.get(i).add(new Edge(_idIncr));\n _idIncr += 1;\n }\n }\n for (int k = 0; k < num; k += 1) {\n _edges.add(new ArrayList<Edge>());\n for (int z = 0; z < increasedSize; z++) {\n _edges.get(increasedSize - num + k).add(new Edge(_idIncr));\n _idIncr += 1;\n }\n }\n }",
"public int numVertices();",
"public int numVertices();",
"public long getVertexCount(){\n return vertexCount;\n }",
"@Override\n\tpublic int edgeSize() {\n\t\treturn numOfEdges;\n\t}",
"@Override\r\n public int getSize() {\n return vs.size();\r\n }",
"public FixedGraph(int numOfVertices, int b, int seed) {\r\n super(numOfVertices);\r\n int adjVertex;\r\n double x = 0;\r\n int[] numOfEdges = new int[numOfVertices];\r\n Vector<Integer> graphVector = new Vector<Integer>();\r\n connectivity = b;\r\n\r\n\r\n Random random = new Random(seed);\r\n graphSeed = seed;\r\n\r\n for (int v = 0; v < numOfVertices; v++) {\r\n graphVector.add(new Integer(v));\r\n }\r\n\r\n for (int i = 0; i < numOfVertices; i++) {\r\n\r\n while ((numOfEdges[i] < b) && (graphVector.isEmpty() == false)) {\r\n x = random.nextDouble();\r\n do {\r\n adjVertex = (int) (x * numOfVertices);\r\n\r\n } while (adjVertex >= numOfVertices);\r\n\r\n\r\n if ((i == adjVertex) || (numOfEdges[adjVertex] >= b)) {\r\n if (numOfEdges[adjVertex] >= b) {\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n if (adjVertex == compInt) {\r\n graphVector.removeElementAt(v);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n\r\n }\r\n\r\n }\r\n if ((i != adjVertex) && (adjVertex < numOfVertices) && (numOfEdges[adjVertex] < b) && (super.isAdjacent(i, adjVertex) == false) && (numOfEdges[i] < b)) {\r\n super.addEdge(i, adjVertex);\r\n if (super.isAdjacent(i, adjVertex)) {\r\n numOfEdges[i] = numOfEdges[i] + 1;\r\n numOfEdges[adjVertex] = numOfEdges[adjVertex] + 1;\r\n }\r\n System.out.print(\"*\");\r\n\r\n }\r\n\r\n if (numOfEdges[i] >= b) {\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n if (i == compInt) {\r\n graphVector.removeElementAt(v);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n break;\r\n }\r\n if (graphVector.size() < b) {\r\n //boolean deadlock = false;\r\n System.out.println(\"Graph size= \" + graphVector.size());\r\n\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n //System.out.println(\"i:= \" + i + \" and compInt:= \" + compInt);\r\n if (super.isAdjacent(i, compInt) || (i == compInt)) {\r\n //System.out.println(\"\" + i + \" adjacent to \" + compInt + \" \" + super.isAdjacent(i, compInt));\r\n // deadlock = false;\r\n } else {\r\n if ((numOfEdges[compInt] < b) && (numOfEdges[i] < b) && (i != compInt)) {\r\n super.addEdge(i, compInt);\r\n numOfEdges[i] = numOfEdges[i] + 1;\r\n numOfEdges[compInt] = numOfEdges[compInt] + 1;\r\n if (numOfEdges[i] >= b) {\r\n for (int w = 0; w < graphVector.size(); w++) {\r\n\r\n int compW = ((Integer) graphVector.elementAt(w)).intValue();\r\n if (i == compW) {\r\n graphVector.removeElementAt(w);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n break;\r\n }\r\n if (numOfEdges[compInt] >= b) {\r\n for (int w = 0; w < graphVector.size(); w++) {\r\n\r\n int compW = ((Integer) graphVector.elementAt(w)).intValue();\r\n if (compInt == compW) {\r\n graphVector.removeElementAt(w);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n\r\n }\r\n // deadlock = true;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n\r\n System.out.println();\r\n }\r\n\r\n }",
"protected void enlarge ()\n {\n // The new capacity of the graph\n int newLength = 1 + vertices.length + ENLARGE_VALUE * vertices.length / 100;\n\n E[] newVertices = (E[]) new Object[newLength];\n Node[] newAdjacencySequences = new Node[newLength];\n \n for (int index = 0; index <= lastIndex; index++)\n {\n newVertices[index] = vertices[index];\n vertices[index] = null;\n newAdjacencySequences[index] = adjacencySequences[index];\n adjacencySequences[index] = null;\n }\n\n vertices = newVertices;\n adjacencySequences = newAdjacencySequences;\n }",
"public WeightedAdjacencyGraph() {\n this.vertices = new HashMap<>();\n }",
"public int getNumberOfVertices() {\n\t\treturn n;\n\t}",
"Graph(int v) {\n this.v = v;\n array = new ArrayList[v];\n\n // Add linkedList to array\n for (int i = 0; i < v; i++) {\n array[i] = new ArrayList<>();\n }\n }",
"public void setSizeV(long s){\n\t\tthis.sizeV = s;\n\t}",
"@Override\n public int edgeSize() {\n return this.numOfEdges;\n }",
"public int getNumVertices(){\n return numVertices;\n }",
"public void setEdgeCapacity(double capacity) {\n\t\tthis.capacity = capacity;\r\n\r\n\t}",
"public abstract int getNumberOfVertices();",
"public HashedVector(int size) {\n\t\tthis.elements = new HashMap<>(size);\n\t}",
"private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n }\n }\n }",
"public int getNumVertices();",
"public Graph(int size){\n this.size=size;\n Matrix=new boolean[size][size];\n color=new int[size];\n }",
"Graph(int n){\r\n numberOfVertices = n;\r\n adjacentVertices = new LinkedList[numberOfVertices];\r\n for (int i = 0; i < numberOfVertices; i++){\r\n adjacentVertices[i] = new LinkedList<>();\r\n }\r\n }",
"private void resize() {\n int newSize = (xs.length * 3) / 2;\n int[] newXs = new int[newSize];\n int[] newYs = new int[newSize];\n int[] newIn = new int[newSize];\n int[] newOut = new int[newSize];\n int[][] newRoads = new int[newSize][newSize];\n int[][] newDist = new int[newSize][newSize];\n boolean[] newVal = new boolean[newSize];\n System.arraycopy(xs, 0, newXs, 0, nodeCount);\n System.arraycopy(ys, 0, newYs, 0, nodeCount);\n System.arraycopy(inDegree, 0, newIn, 0, nodeCount);\n System.arraycopy(outDegree, 0, newOut, 0, nodeCount);\n System.arraycopy(invalid, 0, newVal, 0, nodeCount);\n for (int i = 0; i < nodeCount; i++) {\n System.arraycopy(roads[i], 0, newRoads[i], 0, nodeCount);\n System.arraycopy(distances[i], 0, newDist[i], 0, nodeCount);\n }\n xs = newXs;\n ys = newYs;\n inDegree = newIn;\n outDegree = newOut;\n roads = newRoads;\n distances = newDist;\n invalid = newVal;\n }",
"void reinitialize(Graph.Vertex newSource) {\n\t\tsrc = newSource;\n\t\tfor (Graph.Vertex u : g) {\n\t\t\tDFSVertex bu = getVertex(u);\n\t\t\tbu.seen = false;\n\t\t\tbu.parent = null;\n\t\t\tbu.distance = INFINITY;\n\t\t\tbu.childrenCount = 0;\n\t\t}\n\t\tgetVertex(src).distance = 0;\n\t}",
"public int getVertexCount() {\n return vertexCount;\n }",
"public int getNetSize() {\n return graph.size();\n }",
"private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }",
"public void setResizeElementCount(int v) { vboSet.setResizeElementCount(v); }",
"public void setEdgeLen(double len) {\n fEdgeLen = len;\n }",
"public AdjacencyLists(int num)\n {\n numVertices = num;\n clearGraph();\n }",
"public abstract int getVertexCount();",
"public void setNodeVector(final PhylogenyNode n) {\n\t\tassert(n != null);\n\t\tif (vec.size() > 0) {\n\t\t\tn.getNodeData().setVector(vec);\n\t\t} else {\n\t\t\tn.getNodeData().setVector(null);\n\t\t}\n\t}",
"public void force_directed() {\n\n\t\tint ssize = g_heir[g_current_level];\n\t\tint fixedsize = 0;\n\t\tif (g_interpolating)\n\t\t\tfixedsize = g_heir[g_current_level + 1];\n\n\t\t// initialize index sets\n\t\tif (g_cur_iteration == g_stop_iteration) {\n\n\t\t\tfor (int i = 0; i < ssize; i++) {\n\n\t\t\t\tfor (int j = 0; j < V_SET_SIZE; j++) {\n\n\t\t\t\t\tSimpleEdge se = null;\n\t\t\t\t\tif( j > m_gm.nodeEdgeLookup.get(i).size() - 2 ) {\n\t\t\t\t\t\tse = m_gm.nodeEdgeLookup.get(i).get(1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tse = m_gm.nodeEdgeLookup.get(i).get(j+1);\n\t\t\t\t\t}\n\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se = se; \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// perform the force simulation iteration\n\t\tfloat[] dir_vec = new float[g_embedding_dims];\n\t\tfloat[] relvel_vec = new float[g_embedding_dims];\n\t\tfloat diff = 0.f;\n\t\tfloat norm = 0.f;\n\t\tfloat lo = 0.f;\n\t\tfloat hi = 0.f;\n\n\t\t// compute new forces for each point\n\t\tfor (int i = fixedsize; i < ssize; i++) {\n\n\t\t\tfor (int j = 0; j < V_SET_SIZE + S_SET_SIZE; j++) {\n\n\t\t\t\t// update the S set with random entries\n\t\t\t\tif (j >= V_SET_SIZE) {\n\t\t\t\t\t\n\t\t\t\t\tSimpleEdge se = null;\n\t\t\t\t\tif( V_SET_SIZE > m_gm.nodeEdgeLookup.get(i).size() - 2 ) {\n\t\t\t\t\t\tse = m_gm.nodeEdgeLookup.get(i).get(1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tse = m_gm.nodeEdgeLookup.get(i).get(V_SET_SIZE + myRandom.nextInt(m_gm.nodeEdgeLookup.get(i).size()-V_SET_SIZE));\n\t\t\t\t\t} \n\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se = se;\n\t\t\t\t\t// g_idx[i*(V_SET_SIZE+S_SET_SIZE)+j].index =\n\t\t\t\t\t// myRandom.nextInt(g_interpolating?fixedsize:ssize);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sort index set by index\n\t\t\tArrays.sort(g_idx, i * (V_SET_SIZE + S_SET_SIZE), (i + 1)\n\t\t\t\t\t* (V_SET_SIZE + S_SET_SIZE), new IdxComp());\n\n\t\t\t// mark duplicates (with 1000)\n\t\t\tfor (int j = 0; j < V_SET_SIZE + S_SET_SIZE; j++) {\n\n\t\t\t\tif( j > 0) {\n\t\t\t\t\tif (g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.dst == g_idx[i\n\t\t\t\t\t\t\t* (V_SET_SIZE + S_SET_SIZE) + j - 1].se.dst)\n\t\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].isDuplicate = true;\n\t\t\t\t\telse {\n\t\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].isDuplicate = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.src == g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.dst ) {\n\t\t\t\t\t\n\t\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].isDuplicate = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sort index set by distance\n\t\t\tArrays.sort(g_idx, i * (V_SET_SIZE + S_SET_SIZE), (i + 1)\n\t\t\t\t\t* (V_SET_SIZE + S_SET_SIZE), new DistComp());\n\n\t\t\t// move the point\n\t\t\tfor (int j = 0; j < (V_SET_SIZE + S_SET_SIZE); j++) {\n\n\t\t\t\t// get a reference to the other point in the index set\n\t\t\t\tint idx = g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.dst;\n\t\t\t\tnorm = 0.f;\n\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\t\t// calculate the direction vector\n\t\t\t\t\tdir_vec[k] = m_embed[idx * g_embedding_dims + k]\n\t\t\t\t\t\t\t- m_embed[i * g_embedding_dims + k];\n\t\t\t\t\tnorm += dir_vec[k] * dir_vec[k];\n\t\t\t\t}\n\t\t\t\tnorm = (float) Math.sqrt(norm);\n\t\t\t\tg_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].lowd = norm;\n\t\t\t\tif (norm > 1.e-6\n\t\t\t\t\t\t&& !g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].isDuplicate ) {\n\t\t\t\t\t\n\t\t\t\t\t// normalize direction vector\n\t\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\t\t\tdir_vec[k] /= norm;\n\t\t\t\t\t}\n\n\t\t\t\t\t// calculate relative velocity\n\t\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\t\t\t\t\t\trelvel_vec[k] = g_vel[idx *g_embedding_dims + k]\n\t\t\t\t\t\t\t\t- g_vel[i * g_embedding_dims + k];\n\t\t\t\t\t}\n\n\t\t\t\t\t// calculate difference between lo and hi distances\n\t\t\t\t\tlo = g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].lowd;\n\t\t\t\t\thi = (float) Math.pow(g_idx[i * (V_SET_SIZE + S_SET_SIZE) + j].se.w,POWER_FACTOR);\n\t\t\t\t\tdiff = (lo - hi) * SPRINGFORCE;\n\t\t\t\t\t// compute damping value\n\t\t\t\t\tnorm = 0.f;\n\t\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\t\t\tnorm += dir_vec[k] * relvel_vec[k];\n\t\t\t\t\t}\n\t\t\t\t\tdiff += norm * DAMPING;\n\n\t\t\t\t\t// accumulate the force\n\t\t\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\t\t\tg_force[i * g_embedding_dims + k] += dir_vec[k] * diff;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// scale the force by the size factor\n\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\tg_force[i * g_embedding_dims + k] *= SIZE_FACTOR;\n\t\t\t}\n\t\t}\n\n\t\t// compute new velocities for each point with Euler integration\n\t\tfor (int i = fixedsize; i < ssize; i++) {\n\n\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\tfloat foo = g_vel[i * g_embedding_dims + k];\n\t\t\t\tfloat bar = foo + g_force[i * g_embedding_dims + k] * DELTATIME;\n\t\t\t\tfloat baz = bar * FREENESS;\n\t\t\t\tg_vel[i * g_embedding_dims + k] = (float) Math.max(\n\t\t\t\t\t\tMath.min(baz, 2.0), -2.0);\n\t\t\t}\n\t\t}\n\n\t\t// compute new positions for each point with Euler integration\n\t\tfor (int i = fixedsize; i < ssize; i++) {\n\t\t\tfor (int k = 0; k < g_embedding_dims; k++) {\n\n\t\t\t\tm_embed[i * g_embedding_dims + k] += g_vel[i * g_embedding_dims\n\t\t\t\t\t\t+ k]\n\t\t\t\t\t\t* DELTATIME;\n\t\t\t}\n\t\t}\n\t}",
"private void initializeGraph() {\r\n map = new HashMap<>();\r\n graph = new List[n];\r\n for (int i = 0; i < n; i++) graph[i] = new ArrayList<>();\r\n\r\n\r\n }",
"public abstract void updateVertices();",
"private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}",
"private void createAdjacencyLists(List<Edges> edges,int numberOfVertices){\n\t\t\n\t\tfor(int i=0;i<numberOfVertices;i++){\n\t\t\tneighbors.add(new ArrayList<Integer>());\n\t\t}\n\t\tfor(Edges edge:edges){\n\t\t\tneighbors.get(edge.u).add(edge.v);\n\t\t}\n\t\t\n\t}",
"public void setVertices (float[] vertices, int offset, int count) {\r\n \t\tthis.vertices.setVertices(vertices, offset, count);\r\n \t}",
"public FlowNetwork(int V) {\n this.V = V-1;\n adj = (List<FlowEdge>[]) new List[V];\n for (int v=0; v < V; v++)\n adj[v] = new ArrayList<>();\n }",
"public void newVertex(String name)\r\n\t{\r\n\t\t// new vertex initialized here\r\n\t\tmyGraph[graphSize] = new Vertex();\r\n\t\tmyGraph[graphSize].name = name;\r\n\t\tmyGraph[graphSize].adjVertexHead = null;\r\n\t\t// maintain the size counter\r\n\t\tgraphSize++;\r\n\t}",
"Graph(int v) {\n V = v;\n adj = new LinkedList[v];\n for (int i = 0; i < v; ++i)\n adj [i] = new LinkedList();\n }",
"private int size() {\n assert _vertices.size() == _edges.size();\n return _edges.size();\n }",
"MatrixElement(int edgesQuantity) {\r\n\t\tthis.edgesQuantity = edgesQuantity;\r\n\t}",
"public void SetVector(int[] v){ this.vector=v;}",
"NetworkGraph(int Vertex) {\n this.Vertex = Vertex;\n\n // Size == # of Vertices\n myNetwork = new LinkedList[Vertex];\n\n // Create a new list for each vertex\n // such that adjacent nodes can be stored\n for (int i = 0; i < Vertex; i++) {\n myNetwork[i] = new LinkedList<>();\n }\n }",
"public void testVerticesSet() {\n System.out.println(\"verticesSet\");\n\n Assert.assertTrue(generateGraph().verticesSet().size() == 25);\n }",
"private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}",
"private void createNVertices() {\n\t\tfor (int i = 0; i < this.numNVertices; i++) {\n\t\t\tvertices.add(new Vertex('n', this.countNID++));\n\t\t}\n\t}",
"public void initialize(int size);",
"VertexNetwork() {\r\n /* This constructor creates an empty list of vertex locations. \r\n read The transmission range is set to 0.0. */\r\n transmissionRange = 0.0;\r\n location = new ArrayList<Vertex>(0);\r\n }",
"@Override\n public int nodeSize() {\n return this.nodes.size();\n }",
"public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}",
"@Test\n void test05_checkSize() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\"); // adds three vertices\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"b\", \"c\");\n graph.addEdge(\"c\", \"b\"); // add three edges\n if (graph.size() != 3) {\n fail(\"graph has counted incorrect number of edges\");\n }\n }",
"public int getNumberOfEdges();",
"public int size()\n {\n return numEdges;\n }",
"int getVertices();",
"public void setNDVs(double localTrans){\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tthis.vVillages[i].seedNDVector(this.ndvPool);\r\n\t\t\tthis.vVillages[i].setLocalTransmission(localTrans);\r\n\t\t}\r\n\t}",
"public void setVector(int[] paramArrayOfInt)\n/* */ {\n/* 370 */ enterEvi(this.downNode, paramArrayOfInt);\n/* */ }",
"public void setTvorogGen(int initVertices, int edgesToAttach) {\n \n\t\tGenTvorogBA gen = new GenTvorogBA(graphFactory,vertexFactory,edgeFactory,edgesToAttach);\n\t\tGraph graph=gen.getGraphTvorog(initVertices, 2);\n\n\t\tContext.setGraph(graph);\n\t\tSystem.out.println(\"Nodes num =\" + graph.getVertexCount());\n\t\tSystem.out.println(\"Edges num =\" + graph.getEdgeCount());\n\t}",
"@Override\n public long numParams(boolean backwards) {\n long numParams = super.numParams(backwards);\n for (GraphVertex vertex : getVertices()) {\n numParams += vertex.numParams();\n }\n return numParams;\n }",
"public Graph(int V)\n {\n this.V = V;\n adj = (Bag<Integer>[]) new Bag[V];\n for (int v = 0; v < V; v++)\n adj[v] = new Bag<Integer>();\n }",
"public Graph(int numVertices) {\r\n myAdjLists = new LinkedList[numVertices];\r\n myStartVertex = 0;\r\n for (int k = 0; k < numVertices; k++) {\r\n myAdjLists[k] = new LinkedList<Edge>();\r\n }\r\n myVertexCount = numVertices;\r\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public FacebookGraph(int size) {\n super(size, false);\n this.vertexNames = new HashMap<>();\n }",
"public Graph(int numVertices) {\n myAdjLists = new LinkedList[numVertices];\n myStartVertex = 0;\n for (int k = 0; k < numVertices; k++) {\n myAdjLists[k] = new LinkedList<Edge>();\n }\n myVertexCount = numVertices;\n }"
]
| [
"0.6160974",
"0.60962254",
"0.6084682",
"0.60269874",
"0.602434",
"0.6015667",
"0.59932566",
"0.5963881",
"0.59520024",
"0.57961863",
"0.5763425",
"0.5760983",
"0.5738869",
"0.5725096",
"0.5716402",
"0.5693714",
"0.5626739",
"0.56109023",
"0.56061065",
"0.5605443",
"0.5590395",
"0.55719733",
"0.556326",
"0.555556",
"0.5549163",
"0.55477047",
"0.5542304",
"0.55406535",
"0.5539226",
"0.55353767",
"0.55251235",
"0.55183667",
"0.5509297",
"0.54632354",
"0.5458793",
"0.54535",
"0.54484",
"0.5443159",
"0.54375124",
"0.54375124",
"0.541702",
"0.54164904",
"0.5410172",
"0.5404801",
"0.5391317",
"0.5375467",
"0.53706795",
"0.53625345",
"0.53620976",
"0.53526205",
"0.5350117",
"0.5342082",
"0.5337252",
"0.53372234",
"0.53257394",
"0.5323848",
"0.5292668",
"0.52874845",
"0.52862805",
"0.5285929",
"0.528521",
"0.52845734",
"0.5283454",
"0.52824277",
"0.5281797",
"0.5280995",
"0.5279861",
"0.52744603",
"0.5271107",
"0.5242951",
"0.5238708",
"0.52358866",
"0.522223",
"0.52043915",
"0.52014035",
"0.5201337",
"0.5200256",
"0.5189039",
"0.51704735",
"0.51703006",
"0.5165057",
"0.51645124",
"0.51613516",
"0.5160221",
"0.51591027",
"0.515807",
"0.5156548",
"0.51486605",
"0.51464003",
"0.5145149",
"0.51341087",
"0.513162",
"0.5128524",
"0.5127342",
"0.51268715",
"0.51229703",
"0.5122615",
"0.5119813",
"0.51160556",
"0.5102669",
"0.5101243"
]
| 0.0 | -1 |
Set the learning rate | public Builder<V, E> learningRate(double learningRate) {
this.learningRate = learningRate;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLearningRate(double rate);",
"public void setLearningRate(double learningRate) {\r\n\t\tthis.learningRate = learningRate;\r\n\t}",
"public void setLearningRate(double learningRate) {\n this.learningRate = Math.max(0.0, Math.min(1.0, learningRate));\n }",
"public void setLearningRate(final double rate) {\n\t\tthis.learningRate = rate;\n\t}",
"public void SetLearnRate (double alpha) { this.alpha = alpha; }",
"@Override\n public Builder learningRate(double learningRate) {\n super.learningRate(learningRate);\n return this;\n }",
"double getLearningRate();",
"public double getLearningRate() {\n return learningRate;\n }",
"@Override\n public Builder minLearningRate(double minLearningRate) {\n super.minLearningRate(minLearningRate);\n return this;\n }",
"public double getLearningRate() {\r\n\t\treturn learningRate;\r\n\t}",
"public void setRate();",
"public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}",
"public void setRate(int rate) { this.rate = rate; }",
"NeuralNetwork mutate(float rate);",
"public void writeLearningRatio() { \r\n \r\n for (int i=0; i < hiddenLayerContainer.getHiddenLayerContainer().size(); i++){\r\n hiddenLayerContainer.getHiddenLayerContainer().get(i).setLearningRatio(learningRatio);\r\n }\r\n \r\n outputLayer.setLearningRatio(learningRatio);\r\n }",
"public abstract void setRate();",
"public void setRate(double newRate) {\n this.rate = newRate;\n }",
"@Override\n\tvoid bp_adam(double learning_rate, int epoch_num) {\n\t\t\n\t}",
"public void setSpeed(double multiplier);",
"public void setImprovementRelaxRate(double rate) {\n this.exec = this.exec.withProperty(\"sm.improve.relaxRate\", rate);\n }",
"public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }",
"public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}",
"public Builder setRate(int value) {\n \n rate_ = value;\n onChanged();\n return this;\n }",
"public void updateRate(double r){\r\n rate *= r;\r\n }",
"public void setTurnRate (float rate)\n {\n if (rate > 0) {\n _turnRate = rate;\n } else {\n clearTurnRate();\n }\n }",
"public void setAAALethalityRate(int value) {\n this.aaaLethalityRate = value;\n }",
"void setPWMRate(double rate);",
"public Adamax(Graph graph, float learningRate) {\n this(graph, learningRate, BETA_ONE_DEFAULT, BETA_TWO_DEFAULT, EPSILON_DEFAULT);\n }",
"public void updateAdaGrad(double learningRate, int batchsize) {\n\t}",
"private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }",
"public void setSamplingRate(int value) {\n this.samplingRate = value;\n }",
"public void setSpeed(float val) {speed = val;}",
"public void setCaretBlinkRate(int rate) {\n if (rate >= 0) {\n getCaret().setBlinkRate(rate);\n }\n }",
"public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }",
"public void setCurrentSpeed (double speed);",
"public void setEngineeringRate(int value) {\n this.engineeringRate = value;\n }",
"public synchronized void setRampRate(Double rampRate)\n {\n this.rampRate = rampRate;\n }",
"public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}",
"public void adjust(double learningRate, boolean layer){\r\n //Layer false == adjust hiddenLayer\r\n //Layer true == adjust outputLayer\r\n if (layer) {\r\n for (int i = 0; i < outputLayer.length; i++) {\r\n for (int j = 0; j < outputLayer[i].weights.length; j++) {\r\n outputLayer[i].weights[j] -= learningRate*outputLayer[i].dw[j];\r\n }\r\n outputLayer[i].bias -= learningRate*outputLayer[i].db;\r\n }\r\n } else {\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n for (int j = 0; j < hiddenLayer[i].weights.length; j++) {\r\n hiddenLayer[i].weights[j] -= learningRate*hiddenLayer[i].dw[j];\r\n }\r\n hiddenLayer[i].bias -= learningRate*hiddenLayer[i].db;\r\n }\r\n }\r\n }",
"public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }",
"void setSpeed(RobotSpeedValue newSpeed);",
"private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}",
"public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }",
"public RMSProp(Graph graph, float learningRate) {\n this(graph, learningRate, DECAY_DEFAULT, MOMENTUM_DEFAULT, EPSILON_DEFAULT, CENTERED_DEFAULT);\n }",
"public void setInterest(double rate)\n {\n interestRate = rate;\n }",
"public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }",
"@Override\n public void train() {\n actual = observations.toArray();\n min_val_error = Double.MAX_VALUE;\n if (findDecayConstant)\n for (float alpha = 0f; alpha <= 1f; alpha += 0.01f)\n initializeAndTrainModel(alpha);\n else\n initializeAndTrainModel(optAlpha);\n }",
"public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }",
"public Adamax(Graph graph, String name, float learningRate) {\n this(graph, name, learningRate, BETA_ONE_DEFAULT, BETA_TWO_DEFAULT, EPSILON_DEFAULT);\n }",
"public void setSpeed(int newSpeed){\n\t\tmyVaisseau=Isep.getListeVaisseau();\n\t\tspeed=newSpeed;\t\t\n\t}",
"public void setGrowthRate(int growthRate) {\n growthRate /= 100;\n this.growthRate = growthRate;\n }",
"public void setLitWeightRatio(double ratio) { this.exec = this.exec.withProperty(\"sm.improve.lwr\", ratio); }",
"private void setFrameRate(int newFPS){\n\t if(prevFrameRate != newFPS){\n\t\t prevFrameRate = newFPS;\n\t\t frameRate(newFPS);\n\t }\n }",
"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 void setDefaultStandardRate(Rate rate)\r\n {\r\n m_defaultStandardRate = rate;\r\n }",
"@Override\r\n public void init(NegotiationSession negotiationSession, Map<String, Double> parameters) {\r\n super.init(negotiationSession, parameters);\r\n this.negotiationSession = negotiationSession;\r\n if (parameters != null && parameters.get(\"l\") != null) {\r\n learnCoef = parameters.get(\"l\");\r\n } else {\r\n learnCoef = 0.2;\r\n }\r\n learnValueAddition = 1;\r\n initializeModel();\r\n }",
"Neuron setAxon(double newValue);",
"public void setDefaultOvertimeRate(Rate rate)\r\n {\r\n m_defaultOvertimeRate = rate;\r\n }",
"public abstract void setSpeed(int sp);",
"public void changeDiscountRate (double value) {\n this.discountRate = value;\n }",
"public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}",
"public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}",
"private void setBallSpeed() {\n RandomGenerator rgen = RandomGenerator.getInstance();\n vx = rgen.nextDouble(1.0, 3.0);\n if (rgen.nextBoolean(0.5)) {\n vx = - vx;\n }\n vy = BALL_SPEED;\n }",
"public RMSProp(Graph graph, String name, float learningRate) {\n this(\n graph,\n name,\n learningRate,\n DECAY_DEFAULT,\n MOMENTUM_DEFAULT,\n EPSILON_DEFAULT,\n CENTERED_DEFAULT);\n }",
"protected void setMoveRate(long moveRate) {\r\n\t\tthis.moveRate = moveRate;\r\n\t}",
"@Override\n public void setCurrentLoadWeight(double mlw) {\n currentLoadWeight = mlw;\n }",
"@Override\n public void setBaudrate(int bitrate) throws SerialError{\n\n switch(bitrate)\n {\n case 300:\n baudrate=0x2710;\n break;\n case 600:\n baudrate=0x1388;\n break;\n case 1200:\n baudrate=0x09C4;\n break;\n case 2400:\n baudrate=0x0271;\n break;\n case 4800:\n baudrate=0x4138;\n break;\n case 9600:\n baudrate=0x4138;\n break;\n case 19200:\n baudrate=0x809C;\n break;\n case 38400:\n baudrate=0xC04E;\n break;\n case 57600:\n baudrate=0x0034;\n break;\n case 115200:\n baudrate=0x001A;\n break;\n case 460800:\n baudrate=0x4006;\n break;\n case 921600:\n baudrate=0x8003;\n break;\n default :\n throw new SerialError(\"The baudrate selected is out of scope \"+bitrate);\n }\n }",
"public void setSpeed(int speed) {\n thread.setSpeed(speed);\n }",
"public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}",
"public void setMotors(double rate) {\n\t\tclimberMotor1.set(rate);\n\t}",
"public abstract void setDiscountRate(double discountRate);",
"public void setMyIncomeMultiplier(float factor) throws CallbackAIException;",
"public FlightProfile setEnergyRate( float val ) {\n EnergyRate = val;\n return this;\n }",
"public int\n setBitRate(int bitRate);",
"void BP(Double learningRate){ //call BP() on each neuron except Bias Neuron\n for (int i = 0; i < neurons.size() -1; i++){\n neurons.get(i).BP(learningRate);\n }\n }",
"public <T extends Number> void setSpeedPerFrame(T speed){\r\n\t\tif(speed.doubleValue() <= 0){\r\n\t\t\tthis.speed = 1;\r\n\t\t\tSystem.err.println(\"Negative Speed, resulting to a speed of 1!\");\r\n\t\t}else{\r\n\t\t\tthis.speed = speed.doubleValue();\r\n\t\t}\r\n\t}",
"public void setGradingWeight(double weight){\n \tgradingWeight = weight;\n }",
"public abstract void setDecimation(float decimation);",
"void changeSpeed(int speed) {\n\n this.speed = speed;\n }",
"void setCost(double cost);",
"public AnimationFX setSpeed(double value) {\n this.timeline.setRate(value);\n return this;\n }",
"public void setSampleRate(int value) {\n this.sampleRate = value;\n }",
"public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }",
"public void setBitRate(Integer bitRate) {\n this.bitRate = bitRate;\n }",
"public void setCoolingRate(final double coolingRate) {\r\n\t\tthis.coolingRate = coolingRate;\r\n\t}",
"public void setFrameRate(float aValue) { setInterval(Math.round(1000/aValue)); }",
"public void setAddSpeed(float addSpeed)\n {\n this.addSpeed = addSpeed;\n setChanged();\n notifyObservers();\n }",
"public void setMutationRate(double rate) { this.exec = this.exec.withProperty(\"svum.rate\", rate); }",
"void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }",
"public Adamax(Graph graph, float learningRate, float betaOne, float betaTwo, float epsilon) {\n super(graph);\n this.learningRate = learningRate;\n this.betaOne = betaOne;\n this.betaTwo = betaTwo;\n this.epsilon = epsilon;\n }",
"private void learn() {\n\t\tupdateValues();\n\t\tif(CFG.isUpdatedPerformanceHistory()){\n\t\t\tupdateHistory();\n\t\t}\n\t\tif(CFG.isEvaluated()) evaluate();\n\t}",
"public void setAdaptiveRateAlgorithm(String algorithm);",
"public void setSpeed(int newSpeed)\n\t{\n\t\tspeed = newSpeed;\n\t}",
"public void setEntrenchmentRate(int value) {\n this.entrenchmentRate = value;\n }",
"public boolean setDefaultBitRate(String bitrate);",
"public void setActivation(double value) {\n this.activation = value;\n }",
"public static void setInfectionRate(double newRate) {\n infectionRate = newRate;\n }",
"public void setSpeed(int newTicksMultiplier) {\r\n this.ticksMultiplier = newTicksMultiplier;\r\n }",
"public void enableAdaptiveRateControl(boolean enabled);",
"public void set(double speed) {\n climb_spark_max.set(speed);\n }"
]
| [
"0.92112005",
"0.8306426",
"0.8220671",
"0.81789356",
"0.7853932",
"0.74685335",
"0.7103334",
"0.69186944",
"0.68937176",
"0.68867725",
"0.67090815",
"0.6524281",
"0.65082157",
"0.6460435",
"0.64577776",
"0.64562523",
"0.635383",
"0.6353279",
"0.6186727",
"0.6153394",
"0.61361563",
"0.61257684",
"0.6082347",
"0.60569775",
"0.6053068",
"0.6024484",
"0.5979705",
"0.59593284",
"0.594131",
"0.5917454",
"0.5913533",
"0.5895064",
"0.5857135",
"0.58549935",
"0.583992",
"0.5833538",
"0.5820734",
"0.5813666",
"0.58027273",
"0.58019584",
"0.57662284",
"0.57477057",
"0.57185143",
"0.570072",
"0.5700578",
"0.5691079",
"0.5682343",
"0.56554216",
"0.56301343",
"0.5613536",
"0.56100655",
"0.55861586",
"0.55702734",
"0.5565943",
"0.5531574",
"0.5528463",
"0.5515302",
"0.5514503",
"0.55122745",
"0.55098736",
"0.5505476",
"0.5491729",
"0.54899365",
"0.5481558",
"0.54810303",
"0.54720664",
"0.54636246",
"0.54536897",
"0.5453261",
"0.5448962",
"0.54328495",
"0.54306394",
"0.5430392",
"0.54243374",
"0.54134774",
"0.54116005",
"0.53988844",
"0.5395269",
"0.53859264",
"0.5382195",
"0.5378611",
"0.5374403",
"0.53697604",
"0.53594923",
"0.53575414",
"0.53468615",
"0.5342472",
"0.5341707",
"0.5341537",
"0.53292775",
"0.532858",
"0.53284603",
"0.5321816",
"0.53161997",
"0.52948964",
"0.52934474",
"0.52874506",
"0.5287442",
"0.5282119",
"0.5280996"
]
| 0.72072434 | 6 |
Sets the window size used in skipgram model | public Builder<V, E> windowSize(int windowSize) {
this.windowSize = windowSize;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWindowSize(int window_size) {\n this.window_size = window_size;\n }",
"public Builder setWindowSize(long value) {\n \n windowSize_ = value;\n onChanged();\n return this;\n }",
"void setWindowSize(int s);",
"@Override\n public Builder windowSize(int windowSize) {\n super.windowSize(windowSize);\n return this;\n }",
"public void setWindowsSize(int batchSize_) {\n this.SVBEngine.setWindowsSize(batchSize_);\n }",
"public void settings() {\n int widthOfWindow = 900;\n int heightOfWindow = 900;\n\n //Size of the program window\n size(widthOfWindow, heightOfWindow);\n //making the movement smooth, i think, comes from processing\n smooth();\n }",
"public void setFrameSize();",
"int getWindowSize();",
"public void setSize(Vector2ic size){\n glfwSetWindowSize(handle, size.x(), size.y());\n this.size.set(size);\n sizeMultiplexer.handle(new WindowSizeEvent(handle, size.x(), size.y()));\n }",
"public Builder clearWindowSize() {\n \n windowSize_ = 0L;\n onChanged();\n return this;\n }",
"@Min(2)\n public int getWindowSize()\n {\n return windowSize;\n }",
"@java.lang.Override\n public long getWindowSize() {\n return windowSize_;\n }",
"@Override\n public void settings() {\n size(800, 800, P3D);\n }",
"void setPaperSize(short size);",
"@Override\n public void settings(){\n size(500, 500);\n }",
"private void setWindowWidth(int width) {\n this.width = width;\n }",
"@java.lang.Override\n public long getWindowSize() {\n return windowSize_;\n }",
"public void settings() { size(1200, 800); }",
"public void settings() {\n size(640, 384);\n }",
"public abstract Builder setOutputWidth(int value);",
"public void setWindow(Rectangle.Double w) {\n this.setWindow(w.x, w.y, w.width, w.height);\n }",
"@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }",
"@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}",
"public static void setRecorderVideoSize(Size size){\n\t}",
"public void settings() {\r\n size(750, 550);\r\n }",
"public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }",
"public void setWidth(int w) {\n this.W = w;\n }",
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public int winSize() { return winSize; }",
"@Before\n public void setDimension() {\n this.view.setDimension(new Dimension(WITDH, HEIGHT));\n }",
"@Override\n\tpublic void settings() {\n\t\tpreviewRect = WallGeometry.scaleRectangleRounded(WallGeometry.getInstance().getWallGeometry(), Preview.SCALE);\n\t\tsize(previewRect.width, previewRect.height, P3D);\n\t}",
"public void setSize(int size);",
"void setTubeUpDimension(double width, double height);",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setSize(double size) \n {\n this.size = size;\n }",
"void setDimension(double width, double height);",
"public void setSize(int size){\n this.size = size;\n }",
"public void setSize(int size) {\r\n this.size = size;\r\n }",
"public void settings() {\r\n\t\tthis.size(PlayGame.WIDTH,PlayGame.HEIGHT);\r\n\t}",
"public void setKernelSize(float s) {\r\n kernelSizeOpen = s;\r\n }",
"public void setSize(int size) {\r\n _size = size;\r\n }",
"@Override\n public void setSizeInWorkspace(com.gensym.util.Structure sizeInWorkspace) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.SIZE_IN_WORKSPACE_, sizeInWorkspace);\n }",
"public void setSize(Integer size) {\n this.size = size;\n }",
"private void setGridSize() {\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n\n int height = points.getHeight() + boardView.windowHeight() + buttonPanel.getHeight();\n\n setSize(width, height);\n }",
"public void setWindowHeight(double windowHeight) {\n this.windowHeight = windowHeight;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"private void zeichneWindow(int ypos,int xpos, int size)\r\n {\r\n ypos = ypos + size/6;\r\n xpos = xpos + size/6;\r\n size = size/4;\r\n zeichneWand(\"blau\",ypos,xpos,size); \r\n }",
"private void inputGridSize() {\n \ttest = new TextField();\n \ttest.setPrefSize(BUTTON_SIZE, TEXT_INPUT_BAR_HEIGHT);\n \tstartScreen.add(test, 2, 2);\n }",
"void setWidth(int width);",
"void setWidth(int width);",
"public void setWidth(int w) {\n this.width = w;\n }",
"void setSize(float w, float h) {\n _w = w;\n _h = h;\n }",
"private void setWindowDefaultSize(UserPrefs prefs) {\n primaryStage.setHeight(prefs.getGuiSettings().getWindowHeight());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"165\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setWidth(prefs.getGuiSettings().getWindowWidth());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"166\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n if (prefs.getGuiSettings().getWindowCoordinates() != null) {\n primaryStage.setX(prefs.getGuiSettings().getWindowCoordinates().getX());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"168\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setY(prefs.getGuiSettings().getWindowCoordinates().getY());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"169\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }\n\t\tTemplateClass.instrum(\"LineNumber: \",\"167\", \"Type: \",\"org.eclipse.jdt.core.dom.IfStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }",
"public Builder setPagesize(int value) {\n bitField0_ |= 0x00000400;\n pagesize_ = value;\n\n return this;\n }",
"public void setEventGenWindow(Integer eventGenWindow) {\n this.eventGenWindow = eventGenWindow;\n }",
"void setSize(Dimension size);",
"public LengthWindowViewRStream(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext, LengthWindowViewFactory lengthWindowViewFactory, int size) {\n if (size < 1) {\n throw new IllegalArgumentException(\"Illegal argument for size of length window\");\n }\n\n this.agentInstanceViewFactoryContext = agentInstanceViewFactoryContext;\n this.lengthWindowViewFactory = lengthWindowViewFactory;\n this.size = size;\n indexedEvents = new LinkedHashSet<EventBean>();\n }",
"public void setSizePlayingFields()\r\n {\n setPreferredSize(new Dimension(109*8,72*8));//powieżchnia o 2 m z każdej strony większa niz boisko 106 i 69 pomnożone o 8\r\n //większe boisko żeby było widać\r\n setMaximumSize(getMaximumSize());\r\n setBackground(Color.green);\r\n }",
"public abstract Builder setOutputHeight(int value);",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}",
"private void setDimension() {\n float videoProportion = getVideoProportion();\n int screenWidth = getResources().getDisplayMetrics().widthPixels;\n int screenHeight = getResources().getDisplayMetrics().heightPixels;\n float screenProportion = (float) screenHeight / (float) screenWidth;\n ViewGroup.LayoutParams lp = mVideoPlayer.getLayoutParams();\n\n if (videoProportion < screenProportion) {\n lp.height = screenHeight;\n lp.width = (int) ((float) screenHeight / videoProportion);\n } else {\n lp.width = screenWidth;\n lp.height = (int) ((float) screenWidth * videoProportion);\n }\n mVideoPlayer.setLayoutParams(lp);\n }",
"public void setW(int w) {\n\t\tthis.W = w;\n\t}",
"public float setBoxWindow(int boxNum){\n\t\tint padding = 10;\n\t\tif (game.getDifficulty() == 0)\n\t\t\treturn (screenWidth / 2) - padding ;\n\t\telse if (game.getDifficulty() == 1){\n\t\t\tif (boxNum <=6)\n\t\t\t\treturn (screenWidth / 3) - padding;\n\t\t\telse\n\t\t\t\treturn (screenWidth / 2) - padding;\n\t\t}\n\t\telse if (game.getDifficulty() == 2){\n\t\t\tif (boxNum <=9)\n\t\t\t\treturn (screenWidth / 3) - padding;\n\t\t\telse\n\t\t\t\treturn (screenWidth / 2) - padding;\n\t\t}\n\t\telse\n\t\t\treturn (screenWidth / 3) - padding;\n\t}",
"public GameSettingBuilder setMapSize(int mapSize) {\n this.mapSize = mapSize;\n return this;\n }",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"@Override\n\tpublic void settings() {\n\t\tSystem.out.println(\"settings\");\n\t\tsize(800, 800);\n\t}",
"public void setSampleSize(int n){\n\t\tsetParameters(populationSize, type1Size, n);\n\t}",
"void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}",
"private void setSize() {\n width = AppConfig.width;\n height = (int) (AppConfig.width * 0.56);\n requestOptions = new RequestOptions()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC);\n \n }",
"@Override\n\tpublic void setSize(float size) {\n\t\tthis.size = size;\n\t\trxs = new int [ Math.max(Math.round(size/calibration[0]), Math.round(size/calibration[1])) + 1 ];\t\t\n\t\treset();\n\t}",
"@Override\n\tpublic void setBoxWidth(int l) {\n\t\tmaxwid = l;\n\t}",
"@Nonnull\r\n\tpublic static <T> Observable<Observable<T>> window(\r\n\t\t\t@Nonnull Observable<? extends T> source, int size, int skip) {\r\n\t\treturn new Windowing.WithSizeSkip<T>(source, size, skip);\r\n\t}",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n\t\t _size = size;\n\t}",
"public Builder setSize(int value) {\n\n size_ = value;\n onChanged();\n return this;\n }",
"public Builder setSize(int value) {\n\n size_ = value;\n onChanged();\n return this;\n }",
"public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}",
"public BaseWindowedBolt<T> countWindow(long size) {\n ensurePositiveTime(size);\n\n setSizeAndSlide(size, DEFAULT_SLIDE);\n this.windowAssigner = TumblingCountWindows.create(size);\n return this;\n }",
"public void setSampleSize(int value) {\n this.sampleSize = value;\n }",
"public void setSampleSize(int size){\r\n\t\tSampleSize = size;\r\n\t}",
"public BaseWindowedBolt<T> sessionTimeWindow(Time size) {\n long s = size.toMilliseconds();\n ensurePositiveTime(s);\n\n setSizeAndSlide(s, DEFAULT_SLIDE);\n this.windowAssigner = ProcessingTimeSessionWindows.withGap(s);\n return this;\n }",
"@Override\n public void setAEBufferSize(int size) {\n if (size < 1000 || size > 1000000) {\n log.warning(\"ignoring unreasonable aeBufferSize of \" + size + \", choose a more reasonable size between 1000 and 1000000\");\n return;\n }\n this.aeBufferSize = size;\n prefs.putInt(\"CypressFX2.aeBufferSize\", aeBufferSize);\n }",
"@Override\n public Dimension getPreferredSize() {\n if (this.model == null)\n return super.getPreferredSize();\n else\n return new Dimension(model.getLength() * stepW + paddingLeft,\n model.getRange().length() * stepH + paddingTop);\n }",
"public void setSize(VideoSize size) {\n this.size = size;\n }",
"public void setSize(int _size)\r\n {\r\n size = _size;\r\n }",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"public void setPageSize(Rectangle pagesize) {\n\t\tthis.pagesize = pagesize;\n\t}",
"public void setWidth(int w) {\n\t\twidth = w;\n\t}",
"public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }",
"protected WindowFeaturesNodeDialog() {\n super();\n \n addDialogComponent(new DialogComponentNumber(\n new SettingsModelIntegerBounded(\n WindowFeaturesNodeModel.CFGKEY_WINDOWSIZE,\n WindowFeaturesNodeModel.DEFAULT_CFGKEY_WINDOWSIZE,\n Integer.MIN_VALUE, Integer.MAX_VALUE),\n \"Window Size:\", /*step*/ 1, /*componentwidth*/ 5));\n \n }",
"void setLinesLimit(int value);",
"public int countWindowPerLine(int line_size, int window_size) {\n\t\treturn line_size / window_size;\n\t}",
"void setTubeDownDimension(double width, double height);"
]
| [
"0.7275943",
"0.71371067",
"0.69560164",
"0.6857788",
"0.65814316",
"0.60940146",
"0.5924725",
"0.5819913",
"0.58067715",
"0.5801937",
"0.57902294",
"0.5780921",
"0.5746548",
"0.57013667",
"0.5688253",
"0.56745183",
"0.56443036",
"0.5557457",
"0.5549922",
"0.5502741",
"0.5493348",
"0.5487741",
"0.5462143",
"0.54481167",
"0.5441802",
"0.5438598",
"0.5437384",
"0.54106295",
"0.5401303",
"0.5378809",
"0.53647643",
"0.5347482",
"0.5347279",
"0.5345231",
"0.5331672",
"0.53212404",
"0.5311502",
"0.52964",
"0.52962035",
"0.5286827",
"0.52853566",
"0.5282529",
"0.5282363",
"0.52746856",
"0.5271454",
"0.5261578",
"0.5260918",
"0.5260918",
"0.5250872",
"0.5248333",
"0.52317065",
"0.5229949",
"0.5229949",
"0.52233535",
"0.5219864",
"0.5217029",
"0.5202953",
"0.520062",
"0.51968265",
"0.51940614",
"0.51903635",
"0.51884806",
"0.5172359",
"0.51609045",
"0.5159839",
"0.5152038",
"0.51473886",
"0.5146202",
"0.5146202",
"0.5146202",
"0.5146202",
"0.51456565",
"0.5144118",
"0.51437074",
"0.5134699",
"0.51327246",
"0.51257867",
"0.5118909",
"0.5113936",
"0.5112276",
"0.5104638",
"0.5104638",
"0.50845975",
"0.5083461",
"0.50744694",
"0.50677395",
"0.50656563",
"0.50652957",
"0.5063695",
"0.5060374",
"0.5055894",
"0.50540894",
"0.50540894",
"0.50451314",
"0.5035511",
"0.5027358",
"0.5026231",
"0.50255424",
"0.50229245",
"0.50148237"
]
| 0.7058043 | 2 |
Seed for random number generation (used for repeatability). Note however that parallel/async gradient descent might result in behaviour that is not repeatable, in spite of setting seed | public Builder<V, E> seed(long seed) {
this.seed = seed;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void seed(long seed) {\n }",
"public void setRNG(long seed);",
"void setSeed(long seed);",
"void setSeed(final long seed);",
"public WB_RandomPoint setSeed(final long seed);",
"public GridSimRandom(long seed) {\n random_.setSeed(seed);\n }",
"public long getSeed()\n {\n return randomSeed;\n }",
"public void setSeed(int seed){\n\t\tmyRandom = new Random(seed);\n\t}",
"public static void setSeed( long seed ) {\n random = new Random( seed );\n }",
"public void setSeed(int seed){\n this.seed = seed; \n }",
"public void setRandomSeed(long seed) {\n randomGenerator.setSeed(seed);\n }",
"public void setSeed(final long seed) {\n random.setSeed(seed);\n }",
"public static long getSeed() {\r\n return seed;\r\n }",
"public void setSeed(int seed) {\r\n this.seed = seed;\r\n }",
"public long getSeed()\r\n {\r\n return this.randomSeed;\r\n }",
"public Rng(long seed) {\n\t\tr = new Random(seed);\n\t}",
"void new_seed( Seed seed );",
"public static void setSeed(long s) {\r\n seed = s;\r\n random = new Random(seed);\r\n }",
"public long getSeed() {\n return seed;\n }",
"public int getSeed() {\r\n return seed;\r\n }",
"public void setSeed(long seed) {\n real.setSeed(seed);\n twister.setSeed(seed);\n }",
"public int getSeed() {\n return seed;\n }",
"public int getSeed() {\n return seed;\n }",
"public Random(long seed) {\n real = new UniversalGenerator(seed);\n twister = new MersenneTwister(seed);\n }",
"public CellularAutomatonRNG()\n {\n this(DefaultSeedGenerator.getInstance().generateSeed(SEED_SIZE_BYTES));\n }",
"public void initWorldGenSeed(long p_75905_1_) {\n/* 99 */ this.worldGenSeed = p_75905_1_;\n/* */ \n/* 101 */ if (this.parent != null)\n/* */ {\n/* 103 */ this.parent.initWorldGenSeed(p_75905_1_);\n/* */ }\n/* */ \n/* 106 */ this.worldGenSeed *= (this.worldGenSeed * 6364136223846793005L + 1442695040888963407L);\n/* 107 */ this.worldGenSeed += this.baseSeed;\n/* 108 */ this.worldGenSeed *= (this.worldGenSeed * 6364136223846793005L + 1442695040888963407L);\n/* 109 */ this.worldGenSeed += this.baseSeed;\n/* 110 */ this.worldGenSeed *= (this.worldGenSeed * 6364136223846793005L + 1442695040888963407L);\n/* 111 */ this.worldGenSeed += this.baseSeed;\n/* */ }",
"public long getSeed() {\n\t\treturn seed;\n\t}",
"@Override\n public void setSeed(final int seed) {\n int counterMask = 3;\n int[] status = new int[4];\n status[0] = seed;\n status[1] = parameter.getMat1();\n status[2] = parameter.getMat2();\n status[3] = parameter.getTmat();\n for (int i = 1; i < MIN_LOOP; i++) {\n status[i & counterMask] ^= i + MAGIC_NUMBER3\n * (status[(i - 1) & counterMask]\n ^ (status[(i - 1) & counterMask]\n >>> INITIALIZE_SHIFT2));\n }\n st0 = status[0];\n st1 = status[1];\n st2 = status[2];\n st3 = status[3];\n periodCertification();\n for (int i = 0; i < MIN_LOOP; i++) {\n nextState();\n }\n clear();\n }",
"@ProgrammaticProperty\n public void setSeed(String seed) {\n m_randomSeed = seed;\n }",
"public final void randomSeed(long what){\n\t\tsetSeed(what);\n\t\trandom();\n\t}",
"private PRNG() {\n java.util.Random r = new java.util.Random();\n seed = r.nextInt();\n mersenne = new MersenneTwister(seed);\n }",
"@Override\n public void setSeed(final long seed) {\n if ((seed >= 0) && (seed < LONG_LIMIT)) {\n setSeed((int) seed);\n } else {\n int[] tmp = new int[2];\n tmp[0] = (int) (seed & 0xffffffff);\n tmp[1] = (int) (seed >>> INT_SIZE);\n setSeed(tmp);\n }\n }",
"@Override\n public Builder seed(long randomSeed) {\n super.seed(randomSeed);\n return this;\n }",
"public long getSeed(){\n\t\treturn this.seed;\n\t}",
"public void setSeed(int seed) {\n this.seed = seed;\n mersenne = new MersenneTwister(seed);\n }",
"public String getSeed() {\n return m_randomSeed;\n }",
"private String getRandomSeed() {\n long newSeed = 0;\n Random randBoolean = new Random(randomSeed);\n for (int i = 0; i < 48; i++) {\n if (randBoolean.nextBoolean()) {\n newSeed += 1 << i;\n }\n }\n if (newSeed < 0) {\n newSeed = Math.abs(newSeed);\n }\n\n String s = \"\";\n if (newSeed == 0) {\n s += \"0\";\n } else {\n while (newSeed != 0) {\n long num = (newSeed & (0xF));\n if (num < 10) {\n s = num + s;\n } else {\n s = ((char) (num + 55)) + s;\n }\n newSeed = newSeed >> 4;\n }\n }\n return s;\n }",
"public XorShiftRandom(final long seed) {\n\t\tthis.seed = seed;\n\t}",
"public void setSeed(String seed) \n\t{\n\t}",
"Seed(){\r\n seedCells = new ArrayList<>();\r\n edgeCells = new ArrayList<>();\r\n }",
"public void setSeed(long seed) {\n\tif (seed < POW3_33 + 100) {\n\t seed += POW3_33 + 100;\n\t}\n\tseed &= (POW2_53 - 1L);\n\tsetSeedRaw(seed);\n }",
"void reset(int randomseed);",
"public void updateNextSeed(GMSSRandom gmssRandom)\n {\n gmssRandom.nextSeed(seedNext);\n }",
"public int getSeed(){\n return this.seed; \n }",
"String getSeed();",
"@Override\n public void setSeed(final int[] seeds) {\n// Needed if this is a subclass of java.util.Random. (Before Java 7)\n// \n// if (parameter == null) {\n// return;\n// }\n final int lag = 1;\n final int mid = 1;\n final int size = 4;\n int i, j;\n int count;\n int r;\n int keyLength = seeds.length;\n int[] status = { 0,\n parameter.getMat1(),\n parameter.getMat2(),\n parameter.getTmat() };\n if (keyLength + 1 > MIN_LOOP) {\n count = keyLength + 1;\n } else {\n count = MIN_LOOP;\n }\n r = iniFunc1(status[0] ^ status[mid % size]\n ^ status[(size - 1) % size]);\n status[mid % size] += r;\n r += keyLength;\n status[(mid + lag) % size] += r;\n status[0] = r;\n count--;\n for (i = 1, j = 0; (j < count) && (j < keyLength); j++) {\n r = iniFunc1(status[i % size] ^ status[(i + mid) % size]\n ^ status[(i + size - 1) % size]);\n status[(i + mid) % size] += r;\n r += seeds[j] + i;\n status[(i + mid + lag) % size] += r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n for (; j < count; j++) {\n r = iniFunc1(status[i % size] ^ status[(i + mid) % size]\n ^ status[(i + size - 1) % size]);\n status[(i + mid) % size] += r;\n r += i;\n status[(i + mid + lag) % size] += r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n for (j = 0; j < size; j++) {\n r = iniFunc2(status[i % size] + status[(i + mid) % size]\n + status[(i + size - 1) % size]);\n status[(i + mid) % size] ^= r;\n r -= i;\n status[(i + mid + lag) % size] ^= r;\n status[i % size] = r;\n i = (i + 1) % size;\n }\n st0 = status[0];\n st1 = status[1];\n st2 = status[2];\n st3 = status[3];\n periodCertification();\n for (i = 0; i < MIN_LOOP; i++) {\n nextState();\n }\n clear();\n }",
"public interface RandomSeed {\n\n\t/**\n\t * @return Uma semente randomica entre 0 e 1 inclusive.\n\t */\n\tpublic double getSeed();\n}",
"public CellularAutomatonRNG(SeedGenerator seedGenerator) throws SeedException\n {\n this(seedGenerator.generateSeed(SEED_SIZE_BYTES));\n }",
"public Mazealgo(long seed) {\n this.seed = seed;\n this.random = new Random(seed);\n }",
"public void setSeedRaw(final long seed) {\n\t// TBD: add check, throw exception\n\tddmuldd(expm2((double) seed - POW3_33, POW3_33), POW3_33_DIV_2, dd1);\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(Math.floor(dd2[0]), POW3_33, dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n }",
"public static void main(String[] args) {\n\t\tRandom r=new Random();\n\t\tr.setSeed(10000000);\n\t\tSystem.out.println(r.nextInt());\n\t}",
"public ScenarioGenerator(long seed) {\n rd.setSeed(seed);\n }",
"public InternalExternalTour(long seed){\n\t\t\n\t\trandom = new MersenneTwister(seed);\n\t}",
"@Test\n public void randomSeedNumTest()\n {\n int x = _city.getRandomNum(5);\n int y = _city.getRandomNum(5);\n assertEquals(x, y);\n }",
"public byte[] getSeed() {\n return seed;\n }",
"public DayTradeStrategy(int seed) {\r\n /* If you need some initialization of e.g., instance variables\r\n write here.\r\n */\r\n\r\n fRandom = new Random(seed); // Initialization of random sequence.\r\n }",
"public static void randomInit(int r) { }",
"public void initialize() {\n\t\tinitialize(seedValue0, seedValue1);\n\t}",
"public GridSimRandom(long seed, double lessFactorIO, double moreFactorIO,\n double lessFactorExec, double moreFactorExec)\n {\n random_.setSeed(seed);\n lessFactorIO_ = lessFactorIO;\n moreFactorIO_ = moreFactorIO;\n lessFactorExec_ = lessFactorExec;\n moreFactorExec_ = moreFactorExec;\n }",
"public byte[] newSeed() {\r\n return engineSpi.newSeed();\r\n }",
"private void seedCommand(String seed) {\n try {\n _randomSource.setSeed(Long.parseLong(seed));\n } catch (NumberFormatException excp) {\n error(\"Invalid number: %s\", seed);\n System.out.println();\n }\n }",
"public FlipCoin(int seed){\n this.rander = new Random(seed);\n }",
"protected final long seedRoll() {\r\n Long time = System.currentTimeMillis();\r\n String hexSeed = String.format(\"%x\", new BigInteger(1, mGame.getSeed().getBytes()));\r\n Long seed = Long.parseLong(hexSeed, 16);\r\n\r\n return time + seed;\r\n }",
"public CellularAutomatonRNG(byte[] seed)\n {\n if (seed == null || seed.length != SEED_SIZE_BYTES)\n {\n throw new IllegalArgumentException(\"Cellular Automaton RNG requires a 32-bit (4-byte) seed.\");\n }\n this.seed = seed.clone();\n\n // Set initial cell states using seed.\n cells[AUTOMATON_LENGTH - 1] = seed[0] + 128;\n cells[AUTOMATON_LENGTH - 2] = seed[1] + 128;\n cells[AUTOMATON_LENGTH - 3] = seed[2] + 128;\n cells[AUTOMATON_LENGTH - 4] = seed[3] + 128;\n\n int seedAsInt = BinaryUtils.convertBytesToInt(seed, 0);\n if (seedAsInt != 0xFFFFFFFF)\n {\n seedAsInt++;\n }\n for (int i = 0; i < AUTOMATON_LENGTH - 4; i++)\n {\n cells[i] = 0x000000FF & (seedAsInt >> (i % 32));\n }\n\n // Evolve automaton before returning integers.\n for (int i = 0; i < AUTOMATON_LENGTH * AUTOMATON_LENGTH / 4; i++)\n {\n next(32);\n }\n }",
"@Override\n protected void engineSetSeed(byte[] seed) {\n return;\n }",
"public Mazealgo() {\n Random number = new Random();\n long i = number.nextLong();\n this.random = new Random(i);\n this.seed = i;\n }",
"public int getSeed()\n {\n return map.getSeed();\n }",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"public StressChange(long seed) {\n super(seed);\n }",
"public final void seed(int s0, int s1, int s2)\r\n {\r\n d0 = s0;\r\n d1 = s1;\r\n d2 = s2;\r\n i = 0;\r\n }",
"public long getSimulationSeed()\r\n\t{\r\n\t\treturn(getParent().getSimulationSeed());\r\n\t}",
"public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}",
"void reseed();",
"public void setSeed(Square.State seed) {\n this.mySeed = seed;\n oppSeed = (mySeed == Square.State.CROSS) ? Square.State.NOUGHT : Square.State.CROSS;\n }",
"public void seedCommand(String seed) {\r\n try {\r\n _randomSource.setSeed(Long.parseLong(seed));\r\n } catch (NumberFormatException excp) {\r\n error(\"Invalid number: %s\", seed);\r\n }\r\n }",
"private static byte[] generateSeed() {\n try {\n ByteArrayOutputStream seedBuffer = new ByteArrayOutputStream();\n DataOutputStream seedBufferOut = new DataOutputStream(seedBuffer);\n seedBufferOut.writeLong(System.currentTimeMillis());\n seedBufferOut.writeLong(System.nanoTime());\n seedBufferOut.writeInt(android.os.Process.myPid());\n seedBufferOut.writeInt(Process.myUid());\n seedBufferOut.write(BUILD_FINGERPRINT_AND_DEVICE_SERIAL);\n seedBufferOut.close();\n return seedBuffer.toByteArray();\n } catch (IOException e) {\n throw new SecurityException(\"Failed to generate seed\", e);\n }\n }",
"public GoLRandomInitializer(long seed) {\n Random randomLifeOrDeath = new Random(seed);\n \n // Give life to random *predicted* cells in the board\n for (int row = 0; row < this.NUM_ROWS; row++)\n for (int column = 0; column < this.NUM_COLUMNS; column++)\n this.gameBoard[row][column] = new \n GoLCell(randomLifeOrDeath.nextBoolean());\n }",
"public static int randomNext() { return 0; }",
"public TrollGame (int seed){\n rand = new Random(seed);\n initBoard(ROWS, COLS, rand);\n }",
"public void init( int pointDimension, long randomSeed );",
"public Random() {\n real = new UniversalGenerator();\n twister = new MersenneTwister();\n }",
"public ProcessGenerator(int numProcesses, int RandomSeed) {\n // initialise instance variables\n this.numProcesses = numProcesses;\n processArrayList = new ArrayList<>();\n this.RandomSeed = RandomSeed;\n\n }",
"@Before\n public void setUp() {\n randSeeder = new Random(42);\n\n //Show we haven't seeded the test's random number generator\n randSeed = RAND_UNSEEDED;\n comp = IntPlus.getIntComparator();\n }",
"public Rng(int sides, long seed) {\n\t\tthis.sides = sides;\n\t\tr = new Random(seed);\n\t}",
"public RNGRandomImpl() {\n\t\tsetRand(new Random());\n\t}",
"public void setSeed (long seed[]) {\n // Must use long because there is no unsigned int type.\n if (seed.length < 6)\n throw new IllegalArgumentException (\"Seed must contain 6 values\");\n if (seed[0] == 0 && seed[1] == 0 && seed[2] == 0)\n throw new IllegalArgumentException\n (\"The first 3 values must not be 0\");\n if (seed[3] == 0 && seed[4] == 0 && seed[5] == 0)\n throw new IllegalArgumentException\n (\"The last 3 values must not be 0\");\n final long m1 = 4294967087L;\n if (seed[0] >= m1 || seed[1] >= m1 || seed[2] >= m1)\n throw new IllegalArgumentException\n (\"The first 3 values must be less than \" + m1);\n final long m2 = 4294944443L;\n if (seed[3] >= m2 || seed[4] >= m2 || seed[5] >= m2)\n throw new IllegalArgumentException\n (\"The last 3 values must be less than \" + m2);\n for (int i = 0; i < 6; ++i)\n Ig[i] = seed[i];\n resetStartStream();\n }",
"public static void nextNumber(int iter, int seed)\r\n {\r\n if(iter == 0) {return;}\r\n System.out.println(String.format(\"%d\\t%d\",seed,seed%2));\r\n nextNumber(iter - 1, (int)Math.pow(seed,2) % (p * q));\r\n }",
"public HashPermute(int seed) {\n\t\tthis.seed = HashFunction.getRandomSeed(seed);\n\t}",
"@Test\n public void genRandom() {\n runAndWait(() -> genRandom(10_000, 500, 1), 32, 2000);\n runAndWait(() -> genRandom(10_000, 500, 100), 32, 2000);\n runAndWait(() -> genRandom(250_000, 4000, 50), 4, 5_000);\n }",
"public DuelistRNG() {\n this((long) ((Math.random() - 0.5) * 0x10000000000000L)\n ^ (long) (((Math.random() - 0.5) * 2.0) * 0x8000000000000000L),\n (long) ((Math.random() - 0.5) * 0x10000000000000L)\n ^ (long) (((Math.random() - 0.5) * 2.0) * 0x8000000000000000L));\n }",
"public ArraySeedGenerator(long[] seedArray) {\n\t\tthis.seedArray = seedArray;\n\t\tcurrent = 0;\n\t}",
"public static int genTurnSeed(int numPlayers) {\n\t\tRandom turnRand = new Random();\n\t\treturn turnRand.nextInt(numPlayers)+1;\n\t}",
"public void setSeed(ArrayList<Cell> newSeed) {\n\t\n\t\t for (int y=0;y<MAX_Y;y++) {\n\t\t\tfor (int x=0;x<MAX_X;x++) {\n\t\t\t\tseed[x][y] = new Cell(x,y,false);\t\t \n\t\t\t}//end for x\n\t\t }//end for y\n\t\t \n\t\t for (int k=0; k<newSeed.size();k++) {\n\t\t\t int x1 = Math.abs(newSeed.get(k).getX()) % MAX_X;\n\t\t\t int y1 = Math.abs(newSeed.get(k).getY()) % MAX_Y;\n\t\t\t \n\t\t\t seed[x1][y1] = newSeed.get(k);\n\t\t }//end for k\n\t\t repaint(); //repaint's the grid with new generation\n\t\t updateUI();\n\t }",
"public void initChunkSeed(long p_75903_1_, long p_75903_3_) {\n/* 119 */ this.chunkSeed = this.worldGenSeed;\n/* 120 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 121 */ this.chunkSeed += p_75903_1_;\n/* 122 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 123 */ this.chunkSeed += p_75903_3_;\n/* 124 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 125 */ this.chunkSeed += p_75903_1_;\n/* 126 */ this.chunkSeed *= (this.chunkSeed * 6364136223846793005L + 1442695040888963407L);\n/* 127 */ this.chunkSeed += p_75903_3_;\n/* */ }",
"@Test\n\tpublic void testUpdatesSeeds() {\n\t\t//Arrange\n\t\tint startLoc[] = new int[]{2};\n\t\tint otherLocs[] = new int[]{0,1,3,4};\n\t\t\t\n\t\tMockito.when(randMock.generateRandomNumber(1, 4, seed)).thenReturn(startLoc);\n\t\tMockito.when(randMock.generateRandomNumber(10, 5, seed+1)).thenReturn(otherLocs);\n\t\t\t\n\t\t//Act\n\t\tlong seed = 2;\n\t\t\t\n\t\t//Assert\n\t\tassertEquals(seed, iteratorObj.startVisits());\n\t}",
"public static double random() {\r\n return uniform();\r\n }",
"public XxHash(long seed) {\n this.seed = seed;\n }",
"public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}",
"public ARXLogisticRegressionConfiguration setSeed(int seed) {\n this.seed = seed;\n return this;\n }",
"SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }"
]
| [
"0.795328",
"0.7844645",
"0.779218",
"0.77165896",
"0.7483983",
"0.7473918",
"0.746586",
"0.7427965",
"0.7417246",
"0.7365251",
"0.7357678",
"0.7321267",
"0.7308918",
"0.72441006",
"0.7224451",
"0.71964127",
"0.71816796",
"0.71702874",
"0.71353734",
"0.71350706",
"0.7081524",
"0.70400375",
"0.70400375",
"0.7021471",
"0.6975946",
"0.6898346",
"0.6887144",
"0.68596804",
"0.6803307",
"0.6770376",
"0.6753217",
"0.67502415",
"0.6734574",
"0.67312765",
"0.67282826",
"0.6705471",
"0.6679442",
"0.66672736",
"0.66020036",
"0.6564166",
"0.6557264",
"0.6542967",
"0.6536326",
"0.65159273",
"0.6507906",
"0.6429293",
"0.64003795",
"0.63889486",
"0.63763887",
"0.6368395",
"0.6361867",
"0.63478065",
"0.63172066",
"0.63151115",
"0.6313712",
"0.63053393",
"0.6301864",
"0.6271386",
"0.6259138",
"0.62220293",
"0.6144374",
"0.6130009",
"0.6125858",
"0.61236817",
"0.6123613",
"0.61136794",
"0.6101099",
"0.6078962",
"0.60453117",
"0.6044661",
"0.60268635",
"0.601985",
"0.60103446",
"0.6009599",
"0.6008138",
"0.59938604",
"0.5983987",
"0.59532297",
"0.5905256",
"0.5901778",
"0.5887401",
"0.5874641",
"0.5865474",
"0.58622855",
"0.58359784",
"0.5832639",
"0.5829781",
"0.5818336",
"0.5818334",
"0.58178616",
"0.5811518",
"0.5806553",
"0.576909",
"0.57393897",
"0.5734282",
"0.57298464",
"0.5715159",
"0.5670803",
"0.5658109",
"0.5652587"
]
| 0.66441655 | 38 |
The server service account name for secure name checking. | public AltsChannelBuilder withSecureNamingTarget(String targetName) {
handshakerOptionsBuilder.setTargetName(targetName);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServername() {\r\n return servername;\r\n }",
"java.lang.String getServiceAccount();",
"public String getServiceAccountName() {\n return serviceAccountName;\n }",
"public static server getNameServer(){\n return nameServer;\n }",
"public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}",
"private String getPubServerName(String serverName) throws PSPubServerServiceException {\n serverName = StringUtils.trim(serverName);\n\n if (StringUtils.isBlank(serverName)) {\n throw new PSPubServerServiceException(\"The server name cannot be empty.\");\n }\n\n return serverName;\n }",
"public String getServerName() {\n\t\treturn m_serverName;\n\t}",
"public static String onGetLocalUserName(Context context){\n return PreferencesUtils.getString(context, Config.KEY_OF_USER_NAME, \"\");\n }",
"public String getServerName(){\n return this.serverName;\n }",
"OctetString getSecurityName();",
"@Override\n public String getServerDisplayName() {\n return serverDisplayName;\n }",
"public java.lang.String getServicename() {\n\treturn servicename;\n}",
"public String get_vservername() throws Exception {\n\t\treturn this.vservername;\n\t}",
"String getServiceName();",
"String getServiceName();",
"String getUserUsername();",
"java.lang.String getServiceName();",
"java.lang.String getServiceName();",
"private void requestClientNameFromServer() {\n writeToServer(ServerAction.GET_NAME + \"\");\n }",
"public String getDescriptiveServiceName() {\n if (serviceAbbreviation != null) {\n return serviceAbbreviation;\n }\n return serviceFullName;\n }",
"public final String getUsername() {\n return properties.get(USERNAME_PROPERTY);\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n }\n return s;\n }\n }",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public String getServerAlias() {\n return serverAlias;\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String getUserCnName(String userName);",
"public String getServerName() {\n return serverName;\n }",
"public String getServerName() {\n return serverName;\n }",
"public String getAccount() {\n\t\treturn getUsername() + \":\" + getPassword() + \"@\" + getUsername();\n\t}",
"public java.lang.String getServiceName(){\n return localServiceName;\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n serviceName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String getUserName();",
"String getUserName();",
"public java.lang.String getServiceName() {\n java.lang.Object ref = serviceName_;\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 serviceName_ = s;\n return s;\n }\n }",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"public String toString() {\n return (\"Principal's username: \" + name);\n }",
"private String getServiceName(Descriptors.ServiceDescriptor descriptor ) {\r\n return descriptor.getFullName();\r\n }",
"private String getLoggedInUserName() {\n try {\n /*\n * Get the user information.\n */\n String userName = ServerUtilities.getServerUserInfo().getName();\n\n if(userName.isEmpty()) {\n return new String(\"Anonymous User\");\n }\n return userName;\n } catch (Exception ignore) {\n }\n\n return new String(\"Anonymous User\");\n }",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"public String getName() {\r\n\t\treturn username;\r\n\t}",
"public final static String getServerIdentificator() {\r\n\t\treturn serverID;\r\n\t}",
"public String getServerName();",
"protected String getUsername(MailAddress m) {\n return m.getLocalPart() + \"@localhost\";\n }",
"public String getUsername() {\n Object ref = username_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getServerName() {\n if (server == null) {\n final String version = OpenEjbVersion.get().getVersion();\n final String os = System.getProperty(\"os.name\") + \"/\" + System.getProperty(\"os.version\") + \" (\" + System.getProperty(\"os.arch\") + \")\";\n server = \"OpenEJB/\" + version + \" \" + os;\n }\n return server;\n }",
"public String getName() {\n return (String) getObject(\"username\");\n }",
"public Optional<String> tlsServerName() {\n return Codegen.stringProp(\"tlsServerName\").config(config).get();\n }",
"@NonNull\n public String getServerHostname() {\n return mServerHostname;\n }",
"String getServerConnectionChannelName();",
"public static String getUserDisplayName() {\r\n return getUsername();\r\n }",
"public String getClientName() {\r\n return clientName;\r\n }",
"public String getName() {\n\t\treturn this.username;\n\t}",
"protected String getName(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"TYPE\", sharedPref.getString(\"accountType\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_NAME, null);\n }",
"public String getClientName ()\n\t{\n\t\treturn clientName;\n\t}",
"String getServerId();",
"public String getUserRealName() {\r\n return userRealName;\r\n }",
"public String getUsername() {\n Object ref = username_;\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 username_ = s;\n return s;\n }\n }",
"public String getName() {\n return Token2Constants.AUTHENTICATOR_NAME;\n }",
"public String getName() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getString(USERNAME_KEY, null);\n\t}",
"protected static String getUsername() {\n if (username == null || username.isEmpty()) {\n Console console = System.console();\n if (console != null) {\n username = console.readLine(\"Username:\");\n } else {\n throw new UnsupportedOperationException(\n \"Username must be specified\");\n }\n }\n return username;\n }",
"public String getName() {\r\n\t\treturn this.userName;\r\n\t}",
"private String getUsername(AuthenticationContext context) {\n String username = null;\n for (Integer stepMap : context.getSequenceConfig().getStepMap().keySet())\n if (context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser() != null\n && context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedAutenticator()\n .getApplicationAuthenticator() instanceof LocalApplicationAuthenticator) {\n username = String.valueOf(context.getSequenceConfig().getStepMap().get(stepMap).getAuthenticatedUser());\n break;\n }\n return username;\n }",
"@java.lang.Deprecated\n public java.lang.String getServiceAccount() {\n java.lang.Object ref = serviceAccount_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n serviceAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private String getServerDetails() {\n String sServerLine = \"Server: Ramon's Killer \";\n String sSocketType = (bIsSecure ? \"(SECURE)\" : \"(unsecure)\");\n sServerLine = sServerLine + sSocketType + \" Server\";\n return sServerLine;\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n username_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static String getUserName() {\n return System.getProperty(\"user.name\");\n }",
"public String getClientName() {\n return clientName;\n }",
"public YangString getSrvTargetNameValue() throws JNCException {\n return (YangString)getValue(\"srv-target-name\");\n }",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"public String getAccountName() {\r\n return accountName;\r\n }",
"public java.lang.String getUsername() {\n java.lang.Object ref = username_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n username_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String getUsername();",
"String getUsername();",
"String getUsername();",
"String getUsername();",
"String getUsername();",
"String getUsername();",
"public String getClientName() {\n return (String)getAttributeInternal(CLIENTNAME);\n }",
"private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }",
"@java.lang.Override\n @java.lang.Deprecated\n public java.lang.String getServiceAccount() {\n java.lang.Object ref = serviceAccount_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n serviceAccount_ = s;\n return s;\n }\n }",
"public String getServiceName()\r\n {\r\n return serviceName;\r\n }",
"public String getServiceName();"
]
| [
"0.6786219",
"0.67483515",
"0.6715267",
"0.64450234",
"0.6337309",
"0.627734",
"0.61467624",
"0.608645",
"0.60459137",
"0.60427344",
"0.5979942",
"0.59722185",
"0.59411293",
"0.5887421",
"0.5887421",
"0.58824164",
"0.58822715",
"0.58822715",
"0.5876008",
"0.5864725",
"0.58634484",
"0.58581054",
"0.58581054",
"0.5857209",
"0.5857209",
"0.58523345",
"0.5833354",
"0.5813438",
"0.5811636",
"0.5811636",
"0.580231",
"0.57799023",
"0.5773302",
"0.5773302",
"0.57732844",
"0.57732844",
"0.57693386",
"0.57672614",
"0.57672614",
"0.57672614",
"0.5733777",
"0.57313776",
"0.57313424",
"0.57174206",
"0.57174206",
"0.57174206",
"0.57174206",
"0.57174206",
"0.57174206",
"0.57174206",
"0.57174206",
"0.57174206",
"0.5709889",
"0.5699767",
"0.5685442",
"0.5681102",
"0.5667773",
"0.56644064",
"0.5658701",
"0.5658081",
"0.5656144",
"0.56506616",
"0.5648471",
"0.5646661",
"0.5645096",
"0.564382",
"0.564047",
"0.56323403",
"0.56186664",
"0.56180936",
"0.56171453",
"0.55917907",
"0.5590674",
"0.5582754",
"0.55811554",
"0.55797637",
"0.55789",
"0.557662",
"0.557662",
"0.557662",
"0.5567856",
"0.5567856",
"0.5567856",
"0.5567856",
"0.5564296",
"0.5560564",
"0.5560488",
"0.5545247",
"0.5542351",
"0.5535102",
"0.5530702",
"0.5530702",
"0.5530702",
"0.5530702",
"0.5530702",
"0.5530702",
"0.5528163",
"0.55233103",
"0.55206084",
"0.551988",
"0.5508475"
]
| 0.0 | -1 |
Adds an expected target service accounts. One of the added service accounts should match peer service account in the handshaker result. Otherwise, the handshake fails. | public AltsChannelBuilder addTargetServiceAccount(String targetServiceAccount) {
handshakerOptionsBuilder.addTargetServiceAccount(targetServiceAccount);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void disallowVendingServiceTicketsWhenServiceIsNotAllowedToProxy_CAS1019() throws TicketException {\n CentralAuthenticationServiceImpl cas = new CentralAuthenticationServiceImpl();\n\n //Mock ST\n ServiceTicket stMock = mock(ServiceTicket.class);\n when(stMock.getId()).thenReturn(\"st-id\");\n\n //Mock TGT\n TicketGrantingTicket tgtMock = mock(TicketGrantingTicket.class);\n when(tgtMock.isExpired()).thenReturn(false);\n when(tgtMock.grantServiceTicket(anyString(), any(Service.class), any(ExpirationPolicy.class), anyBoolean())).thenReturn(stMock);\n List<Authentication> authnListMock = mock(List.class);\n when(authnListMock.size()).thenReturn(2); // <-- criteria for testing the CAS-1019 feature\n when(tgtMock.getChainedAuthentications()).thenReturn(authnListMock);\n\n //Mock TicketRegistry\n TicketRegistry ticketRegMock = mock(TicketRegistry.class);\n when(ticketRegMock.getTicket(anyString(), eq(TicketGrantingTicket.class))).thenReturn(tgtMock);\n\n //Mock ServicesManager\n RegisteredServiceImpl registeredService = new RegisteredServiceImpl();\n registeredService.setAllowedToProxy(false); // <-- criteria for testing the CAS-1019 feature\n ServicesManager smMock = mock(ServicesManager.class);\n when(smMock.findServiceBy(any(Service.class))).thenReturn(registeredService);\n\n //Set the stubbed dependencies\n cas.setTicketRegistry(ticketRegMock);\n cas.setServicesManager(smMock);\n\n //Finally, test the feature\n try{\n cas.grantServiceTicket(\"tgt-id\", TestUtils.getService());\n fail(\"Should have thrown UnauthorizedProxyingException\");\n }\n catch (UnauthorizedProxyingException e) {\n //Expected\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testAddAlreadyRegisteredPeer() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(PEER_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }",
"void accountPeerAdded(String peerId);",
"public void registerTargets(){\n synchronized(targets){\n while(targets.size()>0){\n Target target= (Target) targets.removeFirst();\n try {\n target.socketChannel.register(selector,SelectionKey.OP_CONNECT,target);\n } catch (ClosedChannelException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n try {\n target.socketChannel.close();\n } catch (IOException e1) {\n e1.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n target.failure=e;\n addFinishedTarget(target);\n }\n }\n }\n }",
"public void addRegisteredUsersFacts(\r\n usdl.Usdl_rupStub.Facts args013\r\n\r\n ) throws java.rmi.RemoteException\r\n\r\n\r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\r\n _operationClient.getOptions().setAction(\"urn:addRegisteredUsersFacts\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n //Style is Doc.\r\n usdl.Usdl_rupStub.AddRegisteredUsersFacts dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n args013,\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"addRegisteredUsersFacts\")));\r\n\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.execute(true);\r\n\r\n\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n\r\n return;\r\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testAddPeerToNonMatchingInterface() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n SW3_ETH1,\n INTERFACE_SW3_ETH1);\n }",
"@Test\n public void testInsertSharedService () {\n\n ArrayList<SharedService> sharedServicesBefore =\n given().\n header(\"AJP_eppn\", userEPPN).\n expect().\n statusCode(200).\n when().\n get(SHARED_SERVICE_ENDPOINT).\n as(ArrayList.class);\n\n int serviceId = 1;\n int userId = 102;\n int idSharedService = addSharedService(serviceId, userId);\n assertTrue(idSharedService != -1);\n ServiceLogger.log(logTag, \"inserted shared servie, id =\" + idSharedService);\n\n ArrayList<SharedService> sharedServicesAfter =\n given().\n header(\"AJP_eppn\", userEPPN).\n expect().\n statusCode(200).\n when().\n get(SHARED_SERVICE_ENDPOINT).\n as(ArrayList.class);\n\n int numBefore = (sharedServicesBefore != null) ? sharedServicesBefore.size() : 0;\n int numAfter = (sharedServicesAfter != null) ? sharedServicesAfter.size() : 0;\n int numExpected = numBefore + 1;\n assertTrue (numAfter == numExpected);\n\n ArrayList<SharedService> sharedServiceLookup =\n given().\n header(\"AJP_eppn\", userEPPN).\n expect().\n statusCode(200).\n when().\n get(SHARED_SERVICE_GET_BY_ID, idSharedService).\n as(ArrayList.class);\n int numLookup = (sharedServiceLookup != null) ? sharedServiceLookup.size() : 0;\n ServiceLogger.log(logTag, \"get shared service by id returns list of size =\" + numLookup);\n assertTrue (numLookup == 1);\n\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testAddPeerWithNameInUse() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(PEER1_NAME,\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }",
"public static void checkIfCorrect(List<IService> services, int expected) {\n\t\tfor (IService service : services) {\n\t\t\tMembershipService ms = (MembershipService) service;\n\t\t\tAssert.assertTrue(ms.getMembers().size() == expected);\n\t\t}\n\t}",
"void addPeer(Uuid peer) throws RemoteException;",
"public void testStartAddAccountSession() throws\n OperationCanceledException, AuthenticatorException, IOException, RemoteException {\n String accountName = Fixtures.PREFIX_NAME_SUCCESS + \"@\" + Fixtures.SUFFIX_NAME_FIXTURE;\n Bundle options = createOptionsWithAccountName(accountName);\n\n AccountManagerFuture<Bundle> future = mAccountManager.startAddAccountSession(\n Fixtures.TYPE_STANDARD_UNAFFILIATED,\n null /* authTokenType */,\n null /* requiredFeatures */,\n options,\n null /* activity */,\n null /* callback */,\n null /* handler */);\n\n Bundle result = future.getResult();\n assertTrue(future.isDone());\n assertNotNull(result);\n\n validateStartAddAccountSessionParameters(options);\n\n // Validate that auth token was stripped from result.\n assertNull(result.get(AccountManager.KEY_AUTHTOKEN));\n\n // Validate returned data\n validateSessionBundleAndPasswordAndStatusTokenResult(result);\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void registerParticipantFailure() throws IntegrationException, SOAPFaultException, MalformedURLException,\n JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getRegisterParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.createParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"@Test\n public void testAddPeerDetailsSuccess() {\n participantsConfig.addPeer(newPeer);\n expectLastCall().once();\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n verify(participantsConfig);\n }",
"public void addTarget(Target target) {\n SocketChannel socketChannel = null;\n try {\n socketChannel = SocketChannel.open();\n socketChannel.configureBlocking(false);\n socketChannel.connect(target.address);\n target.socketChannel = socketChannel;\n target.connectStart = System.currentTimeMillis();\n synchronized (targets) {\n targets.add(target);\n }\n selector.wakeup();\n } catch (IOException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n if (socketChannel != null) {\n try {\n socketChannel.close();\n } catch (IOException e1) {\n e1.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n target.failure = e;\n addFinishedTarget(target);\n }\n\n }",
"void addPeerEndpoint(PeerEndpoint peer);",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void updateParticipantRegistrationFailure() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException, DatatypeConfigurationException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse updateParticipantResponse = getUpdateParticipantResponse(FAILURE);\n final CaaersServiceResponse getParticipantResponse = getParticipantResponse(SUCCESS);\n EasyMock.expect(wsClient.updateParticipant((String) EasyMock.anyObject())).andReturn(updateParticipantResponse)\n .anyTimes();\n EasyMock.expect(wsClient.getParticipant((String) EasyMock.anyObject())).andReturn(getParticipantResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSUpdateRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSUpdateRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void registerParticipantSuccess() throws IntegrationException, SOAPFaultException, MalformedURLException,\n JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime());\n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n // return the value to be returned by the method (null for void)\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getRegisterParticipantResponse(SUCCESS);\n EasyMock.expect(wsClient.createParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"@Test\n public void testMultiplePasspointCandidatesWithSameFQDN() {\n // Create a Passpoint WifiConfig\n WifiConfiguration config1 = WifiConfigurationTestUtil.createPasspointNetwork();\n mScanResult2.BSSID = mScanResult1.BSSID.replace('1', '2');\n // Add candidates with different scanDetail for same passpoint WifiConfig.\n assertTrue(mWifiCandidates.add(mScanDetail1, config1, 2, 0.0, false, 100));\n assertTrue(mWifiCandidates.add(mScanDetail2, config1, 2, 0.0, false, 100));\n // Both should survive and no faults.\n assertEquals(2, mWifiCandidates.size());\n assertEquals(0, mWifiCandidates.getFaultCount());\n }",
"public void receiveResultadd(\n by.makedon.axis.HandbookServiceStub.AddResponse result) {\n }",
"public static synchronized Boolean addKnownPeers(udpSocket peer) {\n if ((knownPeers.size() - outgoing.size() + 1) <= Integer.parseInt(config.get(\"maximumIncommingConnections\"))) {\n knownPeers.add(peer);\n if (peer.type != \"client from server\") {\n outgoing.add(peer);\n }\n log.info(\"Added peer to udppeerlist\");\n return true;\n }\n log.info(\"Did not add peer to udppeerlist\");\n return false;\n }",
"private void setUpPeers() {\n SdxParticipantsConfig.PeerConfig peer1 =\n new SdxParticipantsConfig.PeerConfig(Optional.of(PEER1_NAME),\n IpAddress.valueOf(PEER_IP),\n SW1_ETH1,\n INTERFACE_SW1_ETH1);\n\n // Set up the related expectations\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(PEER_IP)))\n .andReturn(SW1_ETH1).anyTimes();\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(PEER_IP)))\n .andReturn(INTERFACE_SW1_ETH1).anyTimes();\n expect(participantsConfig.getPeerForName(Optional.of(PEER1_NAME)))\n .andReturn(peer1).anyTimes();\n expect(participantsConfig.getPeerForIp(IpAddress.valueOf(PEER_IP)))\n .andReturn(peer1).anyTimes();\n\n // Set up expectations for peers that will be added\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPeerForIp(IpAddress.valueOf(NEW_PEER1_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.\n getInterfaceNameForPeer(IpAddress.valueOf(NEW_PEER2_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPortForPeer(IpAddress.valueOf(NEW_PEER2_IP)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.getPeerForName(Optional.of(NEW_PEER_NAME)))\n .andReturn(null).anyTimes();\n expect(participantsConfig.node()).andReturn(null).anyTimes();\n }",
"@Test(expected = ItemNotFoundException.class)\n public void testAddPeerUknownIp() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(NEW_PEER2_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }",
"public boolean addService(BluetoothGattService service) {\n/* 60 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"Client addClient(Client client) throws BaseException;",
"@Test(expected = ItemNotFoundException.class)\n public void testAddPeerToUnknownInterface() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n newPeer.connectPoint(),\n \"dummy-interface\");\n }",
"public void testDefaultFinishSessiontWithStartAddAccountSessionImpl()\n throws OperationCanceledException, AuthenticatorException, IOException {\n String accountName = Fixtures.PREFIX_NAME_SUCCESS + \"@\" + Fixtures.SUFFIX_NAME_FIXTURE;\n // Creates session bundle to be returned by custom implementation of\n // startAddAccountSession of authenticator.\n Bundle sessionBundle = new Bundle();\n sessionBundle.putString(Fixtures.KEY_ACCOUNT_NAME, accountName);\n sessionBundle.putString(AccountManager.KEY_ACCOUNT_TYPE,\n Fixtures.TYPE_STANDARD_UNAFFILIATED);\n Bundle options = new Bundle();\n options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName);\n options.putBundle(Fixtures.KEY_ACCOUNT_SESSION_BUNDLE, sessionBundle);\n\n // First get an encrypted session bundle from custom startAddAccountSession implementation.\n AccountManagerFuture<Bundle> future = mAccountManager.startAddAccountSession(\n Fixtures.TYPE_STANDARD_UNAFFILIATED,\n null /* authTokenType */,\n null /* requiredFeatures */,\n options,\n null /* activity */,\n null /* callback */,\n null /* handler */);\n\n Bundle result = future.getResult();\n assertTrue(future.isDone());\n assertNotNull(result);\n\n Bundle decryptedBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);\n assertNotNull(decryptedBundle);\n\n try {\n // Call default implementation of finishSession of authenticator\n // with encrypted session bundle.\n future = mAccountManager.finishSession(\n decryptedBundle,\n null /* activity */,\n null /* callback */,\n null /* handler */);\n future.getResult();\n\n fail(\"Should have thrown AuthenticatorException if finishSession is not overridden.\");\n } catch (AuthenticatorException e) {\n }\n }",
"@Test\n public void detectSuspiciousAmountOperationsNotifyAuditService() {\n Customer customer1 = new CustomerBuilder().withId(1L).build();\n Customer customer2 = new CustomerBuilder().withId(2L).build();\n\n //Mock an instance of OrderService\n OrderService orderService = new OrderService() {\n\n @Override\n public Collection<Order> getOrdersByCustomer(Long customerId) {\n switch (customerId.toString()){\n case \"1\":\n return Arrays.asList(\n ModelFactory.getPendingOrderWithTotalValueGreaterThan10000(customer1)\n );\n case \"2\":\n return Arrays.asList(\n ModelFactory.getPendingOrderWithTotalValueLessThan10000(customer2)\n );\n default:\n return Collections.EMPTY_LIST;\n }\n }\n };\n \n //Create a mocked implementation of AuditService that collects its results\n //into a set\n final Set<SuspiciousOperation> results = new HashSet<>();\n AuditService auditService = new AuditService() {\n\n @Override\n public void notifySuspiciousOperation(SuspiciousOperation operation) {\n results.add(operation);\n }\n };\n \n //Create a session\n KieSession ksession = this.createSession(\"globals5Ksession\");\n \n //Before we insert any fact, we set the value of 'amountThreshold' global\n //to 500.0, the value of 'orderService' global to the mocked service\n //we have created and the value of 'auditService' global to the mocked\n //service we have created.\n ksession.setGlobal(\"amountThreshold\", 500.0);\n ksession.setGlobal(\"orderService\", orderService);\n ksession.setGlobal(\"auditService\", auditService);\n \n ksession.insert(customer1);\n ksession.insert(customer2);\n\n //Let's fire any activated rule now.\n ksession.fireAllRules();\n\n //After the rules are fired, 2 SuspiciousOperation objects are now \n //present in the 'results' Set.\n assertThat(results, hasSize(2));\n assertThat(\n results.stream().map(so -> so.getCustomer().getCustomerId()).collect(toList())\n , containsInAnyOrder(1L, 2L)\n );\n \n }",
"@Test\n\tpublic void testGetCACerts_simpleEnroll_TLSwPoP() {\n\t\tSystem.out.println(\"Beginning TC2024\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tX509Certificate newCert = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\t\t\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\t\n\t\t/*\n\t\t * OK, we have the new trust anchor. Let's start a new session\n\t\t * using this TA and attempt a simple enroll.\n\t\t */\n\t\tec = new ESTClient();\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(newCACerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t// get a good cert to use for tls credentials\n\t\tmyCert1 = getTrustedCert();\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authTLS, mKey, Boolean.TRUE);\n\t\t} catch (InvalidKeyException | CertificateException | IOException\n\t\t\t\t| EncodingException | EnrollException\n\t\t\t\t| EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertNotNull(newCert);\n\t\tSystem.out.println(\"Ending TC2024\");\n\t}",
"@Override\n public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {\n \n }",
"private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }",
"@Test\n\tpublic void testGetCACerts_simpleEnroll_TLS() {\n\t\tSystem.out.println(\"Beginning TC2023\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tX509Certificate newCert = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\t\t\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\t\n\t\t/*\n\t\t * OK, we have the new trust anchor. Let's start a new session\n\t\t * using this TA and attempt a simple enroll.\n\t\t */\n\t\tec = new ESTClient();\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(newCACerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t// get a good cert to use for tls credentials\n\t\tmyCert1 = getTrustedCert();\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authTLS, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException | CertificateException | IOException\n\t\t\t\t| EncodingException | EnrollException\n\t\t\t\t| EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertNotNull(newCert);\n\t\tSystem.out.println(\"Ending TC2023\");\n\t}",
"public void peersAdded(List<Response> peerList) {\n peerList.stream()\n .filter(peer -> connectionMap.get(peer.getString(\"address\")) == null &&\n !peer.getString(\"version\").isEmpty())\n .forEach(peer -> {\n connectionList.add(peer);\n connectionMap.put(peer.getString(\"address\"), peer);\n if (State.fromCode(peer.getInt(\"state\")) == State.CONNECTED)\n activeCount++;\n });\n fireTableDataChanged();\n }",
"public void serviceAdded(String serviceID, Remote service, List<?> itemList);",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void rollbackUpdateRegisterParticipantFailure() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getUpdateParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.updateParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSUpdateRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSUpdateRegistrationServiceInvocationStrategy\n .rollback(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"private void mergeServices(JsonObject originService, JsonObject targetService, JsonObject tree) {\n mergeAnnotations(originService, targetService, tree);\n List<JsonObject> targetServices = new ArrayList<>();\n\n for (JsonElement targetItem : targetService.getAsJsonArray(\"resources\")) {\n JsonObject targetResource = targetItem.getAsJsonObject();\n boolean matched = false;\n for (JsonElement originItem : originService.getAsJsonArray(\"resources\")) {\n JsonObject originResource = originItem.getAsJsonObject();\n if (matchResource(originResource, targetResource)) {\n matched = true;\n mergeAnnotations(originResource, targetResource, tree);\n }\n }\n\n if (!matched) {\n targetResource.getAsJsonObject(\"body\").add(\"statements\", new JsonArray());\n targetServices.add(targetResource);\n }\n }\n\n targetServices.forEach(resource -> {\n int startIndex = FormattingSourceGen.getStartPosition(originService, \"resources\", -1);\n FormattingSourceGen.reconcileWS(resource, originService.getAsJsonArray(\"resources\"), tree,\n startIndex);\n originService.getAsJsonArray(\"resources\").add(resource);\n });\n }",
"@Test\n public void testAddAccountToUser() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n List<AccountOfUser> accs = new ArrayList<>();\n accs.add(acc);\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n assertThat(bank.getUserAccounts(user.getPassport()), is(accs));\n }",
"private void connectToUsers() {\n\n\t\tlookUpUsers();\n\t\ttry {\n\t\t\tfor (Map.Entry<String, UserInterface> e : remoteUsers.entrySet()) {\n\t\t\t\tcryptoUtils.addCertToList(e.getKey(), e.getValue().getCertificate());\n\t\t\t\te.getValue().connectUser(this.id, getCertificate());\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void testServiceList()\n {\n ServiceList services = serviceSetup();\n\n ServiceIterator it = services.createServiceIterator();\n int i = 0;\n try\n {\n while (it.hasNext())\n {\n // Increment the service counter\n i++;\n // Get our next service\n ServiceExt service = (ServiceExt) it.nextService();\n log(\"******************************************************************\");\n log(\"* Services - Counter: (\" + i + \")\");\n dumpService(service);\n\n ServiceDetailsHandle[] handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n\n ServiceDetailsExt[] details = new ServiceDetailsExt[handles.length];\n for (int j = 0; j < handles.length; j++)\n {\n details[j] = sidb.createServiceDetails(handles[j]);\n dumpServiceDetails(details[j]);\n assertEquals(\"ServiceDetails' Service does not match expected value\", service,\n details[j].getService());\n assertEquals(\"ServiceType does not match\", service.getServiceType(), details[j].getServiceType());\n }\n log(\"******************************************************************\");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"public abstract T addService(ServerServiceDefinition service);",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void updateParticipantRegistrationSuccess() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException, DatatypeConfigurationException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse updateParticipantResponse = getUpdateParticipantResponse(SUCCESS);\n final CaaersServiceResponse getParticipantResponse = getParticipantResponse(SUCCESS);\n EasyMock.expect(wsClient.updateParticipant((String) EasyMock.anyObject())).andReturn(updateParticipantResponse)\n .anyTimes();\n EasyMock.expect(wsClient.getParticipant((String) EasyMock.anyObject())).andReturn(getParticipantResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSUpdateRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSUpdateRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"public int addPaidService(final DBPaidService service)\n\t\t\tthrows InvalidParameterException, DatabaseUnkownFailureException;",
"@Test(expected = RpcException.class)\n public void unauthorizedTarget() throws Exception {\n final String unauthorizedTarget = BaseTestImpersonation.org2Users[0];\n final Properties connectionProps = new Properties();\n connectionProps.setProperty(USER, TestInboundImpersonation.PROXY_NAME);\n connectionProps.setProperty(PASSWORD, TestInboundImpersonation.PROXY_PASSWORD);\n connectionProps.setProperty(IMPERSONATION_TARGET, unauthorizedTarget);\n BaseTestQuery.updateClient(connectionProps);// throws up\n\n }",
"@Test\n public void additionalRecipientsTest() {\n ChargeRequestAdditionalRecipient recipient = new ChargeRequestAdditionalRecipient();\n recipient.setLocationId(\"location\");\n recipient.setDescription(\"description\");\n Money money = new Money();\n money.setAmount(1L);\n money.setCurrency(\"USD\");\n recipient.setAmountMoney(money);\n new CreateCheckoutRequest().setAdditionalRecipients(new ArrayList<>(\n Arrays.asList(recipient)\n ));\n }",
"public void addService() throws Throwable\r\n\t{\r\n\t\tselServicOpt.click();\r\n\t\tverifyService();\r\n\t\twdlib.waitForElement(getSelServiceBtn());\r\n\t\tselServiceBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ServicesPage\") , \"Services Page \");\r\n\t\tServicesPage svpage=new ServicesPage();\r\n\t\tsvpage.selectServices();\r\n\t\t\r\n\t}",
"public NcrackClient onTargetService(TargetService targetService) {\n this.targetService = targetService;\n return this;\n }",
"public static void removeCurrentTargetServiceForAll() {\n DCASelectedService targetService = targetServiceMap.get(DCAUserPreference.getLoggedInUser().getUsername());\n\n if (targetService == null) {\n return;\n }\n\n if (logger.isDebugEnabled()) {\n logger.debug(String.format(\"Invalidating Cached service with UUID = %s for all the Users\",\n targetService.getUuid()));\n }\n\n List<String> usersToRemove = new ArrayList<>();\n for (Map.Entry<String, DCASelectedService> entry : targetServiceMap.entrySet()) {\n DCASelectedService selectedService = entry.getValue();\n if (selectedService.getUuid().equals(targetService.getUuid())) {\n usersToRemove.add(entry.getKey());\n }\n }\n\n for (String userName : usersToRemove) {\n targetServiceMap.remove(userName);\n }\n }",
"@Test\n public void createDuplicateAccount() {\n final String username1 = \"[email protected]\";\n final String username2 = \"[email protected]\";\n final String username3 = \"[email protected]\";\n final String firstname = \"william\";\n final String lastname = \"shakespeare\";\n final String address = \"@iaeste.org\";\n\n final CreateUserRequest request1 = new CreateUserRequest(username1, firstname, lastname);\n final CreateUserResponse response1 = administration.createUser(token, request1);\n assertThat(response1, is(not(nullValue())));\n assertThat(response1.isOk(), is(true));\n assertThat(response1.getUser(), is(not(nullValue())));\n assertThat(response1.getUser().getAlias(), is(firstname + '.' + lastname + address));\n\n final CreateUserRequest request2 = new CreateUserRequest(username2, firstname, lastname);\n final CreateUserResponse response2 = administration.createUser(token, request2);\n assertThat(response2, is(not(nullValue())));\n assertThat(response2.isOk(), is(true));\n assertThat(response2.getUser(), is(not(nullValue())));\n assertThat(response2.getUser().getAlias(), is(firstname + '.' + lastname + 2 + address));\n\n final CreateUserRequest request3 = new CreateUserRequest(username3, firstname, lastname);\n final CreateUserResponse response3 = administration.createUser(token, request3);\n assertThat(response3, is(not(nullValue())));\n assertThat(response3.isOk(), is(true));\n assertThat(response3.getUser(), is(not(nullValue())));\n assertThat(response3.getUser().getAlias(), is(firstname + '.' + lastname + 3 + address));\n }",
"public void receiveResultadd(\n org.apache.ws.axis2.WebserviceStub.AddResponse result\n ) {\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void rollbackUpdateRegisterParticipantSuccess() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getUpdateParticipantResponse(SUCCESS);\n EasyMock.expect(wsClient.updateParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSUpdateRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSUpdateRegistrationServiceInvocationStrategy\n .rollback(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void rollbackRegisterParticipantFailure() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getDeleteParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.deleteParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSRegistrationServiceInvocationStrategy\n .rollback(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"@Test\n public void testAcceptTether() throws IOException, InterruptedException {\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n // Tethering status should be PENDING\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.PENDING,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n\n // Duplicate tether initiation should be ignored\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n // Tethering status should be PENDING\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.PENDING,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n\n TetheringControlResponseV2 expectedResponse =\n new TetheringControlResponseV2(Collections.emptyList(), TetheringStatus.PENDING);\n // Tethering status on server side should be PENDING.\n expectTetheringControlResponse(\"xyz\", HttpResponseStatus.OK, GSON.toJson(expectedResponse));\n\n // User accepts tethering on the server\n acceptTethering();\n // Tethering status should become ACTIVE\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.ACCEPTED,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.ACTIVE);\n\n // Duplicate accept tethering should fail\n TetheringActionRequest request = new TetheringActionRequest(\"accept\");\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/connections/xyz\"))\n .withBody(GSON.toJson(request));\n HttpResponse response = HttpRequests.execute(builder.build());\n Assert.assertEquals(HttpResponseStatus.BAD_REQUEST.code(), response.getResponseCode());\n\n // Wait until we don't receive any control messages from the peer for upto the timeout interval.\n Thread.sleep(cConf.getInt(Constants.Tethering.CONNECTION_TIMEOUT_SECONDS) * 1000);\n // Tethering connection status should become INACTIVE\n expectTetheringStatus(\n \"xyz\",\n TetheringStatus.ACCEPTED,\n NAMESPACES,\n REQUEST_TIME,\n DESCRIPTION,\n TetheringConnectionStatus.INACTIVE);\n }",
"@Test\n public void cdsResponseV2WithUpstreamTlsContext() {\n RpcCall<DiscoveryRequest, DiscoveryResponse> call =\n startResourceWatcher(ResourceType.CDS, CDS_RESOURCE, cdsResourceWatcher);\n\n // Management server sends back CDS response with UpstreamTlsContext.\n io.envoyproxy.envoy.api.v2.auth.UpstreamTlsContext testUpstreamTlsContext =\n buildUpstreamTlsContextV2(\"secret1\", \"unix:/var/uds2\");\n List<Any> clusters = ImmutableList.of(\n Any.pack(buildClusterV2(\"cluster-bar.googleapis.com\", null, false)),\n Any.pack(buildSecureClusterV2(CDS_RESOURCE,\n \"eds-cluster-foo.googleapis.com\", true, testUpstreamTlsContext)),\n Any.pack(buildClusterV2(\"cluster-baz.googleapis.com\", null, false)));\n DiscoveryResponse response =\n buildDiscoveryResponseV2(\"0\", clusters, AbstractXdsClient.ADS_TYPE_URL_CDS_V2, \"0000\");\n call.responseObserver.onNext(response);\n\n // Client sent an ACK CDS request.\n verify(call.requestObserver)\n .onNext(eq(buildDiscoveryRequestV2(NODE, \"0\", CDS_RESOURCE,\n AbstractXdsClient.ADS_TYPE_URL_CDS_V2, \"0000\")));\n verify(cdsResourceWatcher, times(1)).onChanged(cdsUpdateCaptor.capture());\n CdsUpdate cdsUpdate = cdsUpdateCaptor.getValue();\n EnvoyServerProtoData.UpstreamTlsContext upstreamTlsContext = cdsUpdate\n .getUpstreamTlsContext();\n SdsSecretConfig validationContextSdsSecretConfig = upstreamTlsContext.getCommonTlsContext()\n .getValidationContextSdsSecretConfig();\n assertThat(validationContextSdsSecretConfig.getName()).isEqualTo(\"secret1\");\n assertThat(\n Iterables.getOnlyElement(\n validationContextSdsSecretConfig\n .getSdsConfig()\n .getApiConfigSource()\n .getGrpcServicesList())\n .getGoogleGrpc()\n .getTargetUri())\n .isEqualTo(\"unix:/var/uds2\");\n }",
"@Test\n\tpublic void testGetCACerts_simpleEnroll_TLSv6() {\n\t\tSystem.out.println(\"Beginning TC2047\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tX509Certificate newCert = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\t// ipv6\n\t\tec.setServerName(\"ip6-localhost\");\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\t\t\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\t\n\t\t/*\n\t\t * OK, we have the new trust anchor. Let's start a new session\n\t\t * using this TA and attempt a simple enroll.\n\t\t */\n\t\tec = new ESTClient();\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(newCACerts);\n\t\t// ipv6\n\t\tec.setServerName(\"ip6-localhost\");\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t// get a good cert to use for tls credentials\n\t\tmyCert1 = getTrustedCert();\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authTLS, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException | CertificateException | IOException\n\t\t\t\t| EncodingException | EnrollException\n\t\t\t\t| EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertNotNull(newCert);\n\t\tSystem.out.println(\"Ending TC2047\");\n\t}",
"public void townAssistantsAdd(Player player, String[] names, boolean matchOnline) {\n\t\tResident resident;\n\t\tTown town;\n\t\ttry {\n\t\t\tresident = plugin.getTownyUniverse().getResident(player.getName());\n\t\t\ttown = resident.getTown();\n\t\t\tif (!resident.isMayor())\n\t\t\t\tthrow new TownyException(\"You are not the mayor.\");\n\t\t} catch (TownyException x) {\n\t\t\tplugin.sendErrorMsg(player, x.getError());\n\t\t\treturn;\n\t\t}\n\n\t\ttownAssistantsAdd(player, town, (matchOnline ? plugin.getTownyUniverse().getOnlineResidents(player, names) : getResidents(player, names)));\n\t}",
"public void addTeamMembers(final Artifact artifact, final List<User> users);",
"@Test\n public void alienAttacksMultipleTargets() throws FileNotFoundException,\n URISyntaxException, DisconnectedException {\n // preparo il terreno\n MatchController matchController = new MatchController() {\n @Override\n public void initMatch(PartyController partyController)\n throws FileNotFoundException, URISyntaxException {\n this.partyController = partyController;\n this.match = new Match();\n this.turnController = new TurnController(this);\n ZoneFactory zf = new TemplateZoneFactory(\n EftaiosGame.DEFAULT_MAP);\n this.zoneController = new ZoneController(zf);\n\n }\n\n @Override\n public void checkEndGame() {\n }\n\n @Override\n protected void notifyAPlayerAbout(Player player, String about) {\n }\n\n @Override\n protected void showCardToParty(Card card) {\n }\n\n @Override\n protected void updateDeckView(Player player) {\n }\n\n @Override\n protected void sendMapVariationToPlayer(Player player, Sector sec,\n SectorHighlight highlight) {\n }\n\n @Override\n protected void sendViewModelToAPlayer(Player p, ViewModel content) {\n }\n };\n\n PlayerCard alien = new PlayerCard(PlayerRace.ALIEN, null);\n PlayerCard human = new PlayerCard(PlayerRace.HUMAN, null);\n Party party = new Party(\"test\", new EftaiosGame(), false);\n PartyController partyController = PartyController.createNewParty(party);\n party.addToParty(UUID.randomUUID(), \"player1\");\n party.addToParty(UUID.randomUUID(), \"player2\");\n party.addToParty(UUID.randomUUID(), \"player3\");\n party.addToParty(UUID.randomUUID(), \"player4\");\n party.addToParty(UUID.randomUUID(), \"player5\");\n party.addToParty(UUID.randomUUID(), \"player6\");\n List<Player> players = new ArrayList<Player>(party.getMembers()\n .keySet());\n Player player1 = players.get(0);\n Player player2 = players.get(1);\n Player player3 = players.get(2);\n Player player4 = players.get(3);\n Player player5 = players.get(4);\n Player player6 = players.get(5);\n player1.setIdentity(alien);// attaccante\n player2.setIdentity(alien);// alieno in loco\n player3.setIdentity(alien);// alieno difeso\n player4.setIdentity(human);// umano indifeso\n player5.setIdentity(human);// umano altrove\n player6.setIdentity(human);// umano difeso\n ItemCard defenseCard1 = new ItemCard(Item.DEFENSE);\n ItemCard defenseCard2 = new ItemCard(Item.DEFENSE);\n ItemCard spotlightCard = new ItemCard(Item.SPOTLIGHT);\n ItemCard card2 = new ItemCard(Item.SEDATIVES);\n ItemCard card3 = new ItemCard(Item.ATTACK);\n player3.getItemsDeck().getCards().add(defenseCard1);\n player4.getItemsDeck().getCards().add(spotlightCard);\n player4.getItemsDeck().getCards().add(card2);\n player4.getItemsDeck().getCards().add(card3);\n player6.getItemsDeck().getCards().add(defenseCard2);\n\n matchController.initMatch(partyController);\n\n Turn turn = new Turn(player1, matchController.getMatch().getTurnCount());\n matchController.getTurnController().setTurn(turn);\n matchController.getTurnController().getTurn().setMustMove(false);\n HexPoint point = HexPoint.fromOffset(1, 1);\n Sector sec = new Sector(null, point);\n HexPoint point2 = HexPoint.fromOffset(2, 3);\n Sector sec2 = new Sector(null, point2);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player1, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player2, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player3, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player4, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player5, sec2);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player6, sec);\n matchController.getTurnController().getTurn().setCanAttack(true);\n ActionRequest action = new ActionRequest(ActionType.ATTACK, null, null);\n // eseguo l'azione\n Attack atk = new Attack() {\n @Override\n protected void notifyInChatByCurrentPlayer(String what) {\n }\n\n @Override\n protected void notifyCurrentPlayerByServer(String what) {\n }\n };\n atk.initAction(matchController, action);\n if (atk.isValid())\n atk.processAction();\n // verifico gli esiti\n assertTrue(player1.getKillsCount() == 1);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player1).equals(sec));\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player2) == matchController.endingSector);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player3) == matchController.endingSector);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player4) == matchController.endingSector);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player5).equals(sec2));\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player6).equals(sec));\n assertFalse(matchController.getMatch().getDeadPlayer()\n .contains(player1));\n assertTrue(matchController.getMatch().getDeadPlayer().contains(player2));\n assertTrue(matchController.getMatch().getDeadPlayer().contains(player3));\n assertTrue(matchController.getMatch().getDeadPlayer().contains(player4));\n assertFalse(matchController.getMatch().getDeadPlayer()\n .contains(player5));\n assertFalse(matchController.getMatch().getDeadPlayer()\n .contains(player6));\n assertTrue(matchController.getMatch().getDeadPlayer().size() == 3);\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(defenseCard1));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(defenseCard2));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(spotlightCard));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(card2));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(card3));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket().size() == 5);\n assertFalse(player3.getItemsDeck().getCards().contains(defenseCard1));\n assertFalse(player4.getItemsDeck().getCards().contains(spotlightCard));\n assertFalse(player4.getItemsDeck().getCards().contains(card2));\n assertFalse(player4.getItemsDeck().getCards().contains(card3));\n assertFalse(player6.getItemsDeck().getCards().contains(defenseCard2));\n }",
"@Test\n void test008_addValidUsers() {\n // adding new user (check that allUsers has increased).\n\n // (Adding same user name but to different networks shouldnt throw any\n // exception.\n\n try {\n christmasBuddENetwork.addUser(\"Santa Claus\");\n christmasBuddENetwork.addUser(\"Grinch\");\n christmasBuddENetwork.addUser(\"Comet\");\n christmasBuddENetwork.addUser(\"Rudolph\");\n christmasBuddENetwork.addUser(\"Prancer\");\n christmasBuddENetwork.addUser(\"Blitzen\");\n christmasBuddENetwork.addUser(\"Donder\");\n christmasBuddENetwork.addUser(\"Vixen\");\n christmasBuddENetwork.addUser(\"Dancer\");\n christmasBuddENetwork.addUser(\"Cupid\");\n\n Set<User> allUsersChristmasSet = christmasBuddENetwork.getAllUsers();\n int numUsersChristmas = allUsersChristmasSet.size();\n if (numUsersChristmas != 10) {\n fail(\"test008_addValidUsers(): FAILED! Did NOT return 10 users for \"\n + \"the network, but instead: \" + numUsersChristmas);\n }\n\n\n } catch (Exception e) {\n fail(\"test008_addValidUsers(): FAILED! Threw an improper exception! :(\");\n\n }\n\n\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void updateParticipantRegistrationGetParticipantFailure() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException, DatatypeConfigurationException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse updateResponse = getUpdateParticipantResponse(SUCCESS);\n final CaaersServiceResponse getResponse = getParticipantResponse(FAILURE);\n EasyMock.expect(wsClient.updateParticipant((String) EasyMock.anyObject())).andReturn(updateResponse).anyTimes();\n EasyMock.expect(wsClient.getParticipant((String) EasyMock.anyObject())).andReturn(getResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSUpdateRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSUpdateRegistrationServiceInvocationStrategy\n .invoke(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"@Test(groups ={Slingshot,Regression,CsaAgent})\t\n\t\tpublic void verifyPartnerServiceAgentRegisterUser() throws Exception {\n\t\t\tReport.createTestLogHeader(\"PSA Journey\", \"To verify whether the Partner service agent is able to register a Broker through Partner service agent journey\");\n\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"PSABroker\");\n\t\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"SlingshotCrmDetails\"); \n\t\t\tnew PartnerServiceAgentAction()\n\t\t\t.navigateToPSARegistration()\n\t\t\t.clickRegisteraUser(userProfile);\n\t\t\t/*new SapCrmAction()\n\t\t\t .loginDetails(crmuserProfile)\n\t\t\t .searchByAccountId(crmuserProfile, userProfile);*/\n\t\t\tnew RegistrationAction()\n\t\t\t.openEncryptURL(userProfile)\n\t\t\t.fillRegistrationDetails(userProfile)\n\t\t\t.verifyThankYouPage()\n\t\t\t.clickLoginLink()\n\t\t\t.verifyAuditEntry(userProfile)\n\t\t\t.verifyEmailIdInDb(userProfile);\n\t\t\t}",
"public void serviceInstalled(String serviceID, int[] eventIDs,\r\n \t\t\tString[] resourceOptions) {\t\t\r\n \t\teventIDFilter.serviceInstalled(serviceID, eventIDs);\r\n \t}",
"public static void addComponents(AjaxRequestTarget target, Component... components) {\n if (target != null) {\n for (Component component : components) {\n target.add(component);\n }\n }\n }",
"public void addServer(Identity identity, ServerInvokerMetadata invokers[]);",
"public void addService(ServiceType service, String name, String usertoken) throws AddServiceFailException, NoUserLoggedInException{\r\n\t\ttry {\r\n\t\t\tthis.service.addService(this.getLoggedInUser().getId(), service.getId(), name, usertoken);\r\n\t\t} catch (RemoteException e) {\r\n\t\t\tthrow new AddServiceFailException(ExceptionType.WARNING);\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testGetCACerts_simpleEnroll() {\n\t\tSystem.out.println(\"Beginning TC2019\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tX509Certificate newCert = null;\n\t\tESTClient ec = new ESTClient();\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\t\t\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\t\n\t\t/*\n\t\t * OK, we have the new trust anchor. Let's start a new session\n\t\t * using this TA and attempt a simple enroll.\n\t\t */\n\t\tec = new ESTClient();\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(newCACerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setHTTPCredentials(\"estuser\", \"estpwd\");\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authHTTPonly, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException | CertificateException | IOException\n\t\t\t\t| EncodingException | EnrollException\n\t\t\t\t| EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertNotNull(newCert);\n\t\tSystem.out.println(\"Ending TC2019\");\n\t}",
"void addAnnouncedServers(ArrayList<ServerAddress> servers);",
"public void addServiceEntriesToDD(String serviceName, String serviceEndpointInterface, String serviceEndpoint);",
"@Test\n @Order(10)\n void get_account_3() {\n client2 = service.createClient(new Client(\"Test 2\"));\n int sumOfIds = 0;\n HashSet<Client> allClients = service.getAllClients();\n for(Client c : allClients) {\n sumOfIds += c.getId();\n }\n // want to give a valid account\n Account needle = client.getAccounts().iterator().next();\n\n Account check = service.getAccount(sumOfIds, needle.getId());\n Assertions.assertNull(check);\n\n // also want to return null in the event both are valid but there is a mismatch\n // client2 is a valid user and needle is a valid account but client2 doesn't own\n // needle, so should return null\n check = service.getAccount(client2.getId(), needle.getId());\n Assertions.assertNull(check);\n }",
"void addHost(Service newHost);",
"@Override\n protected void handleRequest(final Message request, final ConnectionKey connkey, final Peer peer) {\n final Message answer = new Message();\n answer.prepareResponse(request);\n AVP avp;\n avp = request.find(ProtocolConstants.DI_SESSION_ID);\n if (avp != null) {\n answer.add(avp);\n }\n node().addOurHostAndRealm(answer);\n avp = request.find(ProtocolConstants.DI_CC_REQUEST_TYPE);\n if (avp == null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_MISSING_AVP,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP,\n new AVP[]{new AVP(ProtocolConstants.DI_CC_REQUEST_TYPE, new byte[]{})})});\n return;\n }\n final int ccRequestType; // = -1;\n try {\n ccRequestType = new AVP_Unsigned32(avp).queryValue();\n } catch (final InvalidAVPLengthException ex) {\n throw new AssertionError(\"Unexpected exception: \" + ex, ex);\n }\n if (ccRequestType != ProtocolConstants.DI_CC_REQUEST_TYPE_INITIAL_REQUEST\n && ccRequestType != ProtocolConstants.DI_CC_REQUEST_TYPE_UPDATE_REQUEST\n && ccRequestType != ProtocolConstants.DI_CC_REQUEST_TYPE_TERMINATION_REQUEST\n && ccRequestType != ProtocolConstants.DI_CC_REQUEST_TYPE_EVENT_REQUEST) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n\n //This test server does not support multiple-services-cc\n avp = request.find(ProtocolConstants.DI_MULTIPLE_SERVICES_CREDIT_CONTROL);\n if (avp != null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n avp = request.find(ProtocolConstants.DI_MULTIPLE_SERVICES_INDICATOR);\n if (avp != null) {\n int indicator = -1;\n try {\n indicator = new AVP_Unsigned32(avp).queryValue();\n } catch (final InvalidAVPLengthException ex) {\n throw new AssertionError(\"Unexpected exception: \" + ex, ex);\n }\n if (indicator != ProtocolConstants.DI_MULTIPLE_SERVICES_INDICATOR_MULTIPLE_SERVICES_NOT_SUPPORTED) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n }\n\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_SUCCESS));\n avp = request.find(ProtocolConstants.DI_AUTH_APPLICATION_ID);\n if (avp != null) {\n answer.add(avp);\n }\n avp = request.find(ProtocolConstants.DI_CC_REQUEST_TYPE);\n if (avp != null) {\n answer.add(avp);\n }\n avp = request.find(ProtocolConstants.DI_CC_REQUEST_NUMBER);\n if (avp != null) {\n answer.add(avp);\n }\n\n switch (ccRequestType) {\n case ProtocolConstants.DI_CC_REQUEST_TYPE_INITIAL_REQUEST:\n case ProtocolConstants.DI_CC_REQUEST_TYPE_UPDATE_REQUEST:\n case ProtocolConstants.DI_CC_REQUEST_TYPE_TERMINATION_REQUEST:\n //grant whatever is requested\n avp = request.find(ProtocolConstants.DI_REQUESTED_SERVICE_UNIT);\n if (avp != null) {\n final AVP g = new AVP(avp);\n g.code = ProtocolConstants.DI_GRANTED_SERVICE_UNIT;\n answer.add(avp);\n }\n break;\n case ProtocolConstants.DI_CC_REQUEST_TYPE_EVENT_REQUEST:\n //examine requested-action\n avp = request.find(ProtocolConstants.DI_REQUESTED_ACTION);\n if (avp == null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_MISSING_AVP,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP,\n new AVP[]{new AVP(ProtocolConstants.DI_REQUESTED_ACTION, new byte[]{})})});\n return;\n }\n int requestedAction = -1;\n try {\n requestedAction = new AVP_Unsigned32(avp).queryValue();\n } catch (final InvalidAVPLengthException ex) {\n throw new AssertionError(\"Unexpected exception: \" + ex, ex);\n }\n switch (requestedAction) {\n case ProtocolConstants.DI_REQUESTED_ACTION_DIRECT_DEBITING:\n //nothing. just indicate success\n break;\n case ProtocolConstants.DI_REQUESTED_ACTION_REFUND_ACCOUNT:\n //nothing. just indicate success\n break;\n case ProtocolConstants.DI_REQUESTED_ACTION_CHECK_BALANCE:\n //report back that the user has sufficient balance\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_CHECK_BALANCE_RESULT,\n ProtocolConstants.DI_DI_CHECK_BALANCE_RESULT_ENOUGH_CREDIT));\n break;\n case ProtocolConstants.DI_REQUESTED_ACTION_PRICE_ENQUIRY:\n //report back a price of DKK42.17 per kanelsnegl\n answer.add(new AVP_Grouped(ProtocolConstants.DI_COST_INFORMATION,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_UNIT_VALUE,\n new AVP[]{new AVP_Integer64(ProtocolConstants.DI_VALUE_DIGITS, 4217),\n new AVP_Integer32(ProtocolConstants.DI_EXPONENT, -2)\n }),\n new AVP_Unsigned32(ProtocolConstants.DI_CURRENCY_CODE, 208),\n new AVP_UTF8String(ProtocolConstants.DI_COST_UNIT, \"kanelsnegl\")\n }));\n break;\n default: {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n\n }\n break;\n default:\n throw new AssertionError(\"Unexpected value:\" + ccRequestType);\n }\n\n Utils.setMandatory_RFC3588(answer);\n\n try {\n answer(answer, connkey);\n } catch (final NotAnAnswerException ex) {\n throw new AssertionError(\"Unexpected exception: \" + ex, ex);\n }\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void rollbackRegisterParticipantSuccess() throws IntegrationException, SOAPFaultException,\n MalformedURLException, JAXBException {\n final Date stTime = new Date(new java.util.Date().getTime()); \n\n xsltTransformer.transform(null, null, null);\n EasyMock.expectLastCall().andAnswer(new IAnswer() {\n\n public Object answer() {\n return getParticipantXMLString();\n }\n }).anyTimes();\n\n final CaaersServiceResponse caaersServiceResponse = getDeleteParticipantResponse(SUCCESS);\n EasyMock.expect(wsClient.deleteParticipant((String) EasyMock.anyObject())).andReturn(caaersServiceResponse);\n EasyMock.replay(wsClient);\n\n final ServiceInvocationMessage serviceInvocationMessage = prepareServiceInvocationMessage(REFMSGID,\n getParticipantInterimMessage(), stTime,\n caAERSRegistrationServiceInvocationStrategy.getStrategyIdentifier());\n\n final ServiceInvocationResult result = caAERSRegistrationServiceInvocationStrategy\n .rollback(serviceInvocationMessage);\n\n Assert.assertNotNull(result);\n }",
"@Test\n public void testAddAccountFromFile() throws IOException {\n\n Set<Long> accountIdsSet = Sets.newHashSet();\n\n AwReporting.addAccountsFromFile(accountIdsSet, \"src/test/resources/util/account-for-test.txt\");\n\n Assert.assertEquals(4, accountIdsSet.size());\n\n Assert.assertTrue(accountIdsSet.contains(1235431234L));\n Assert.assertTrue(accountIdsSet.contains(3492871722L));\n Assert.assertTrue(accountIdsSet.contains(5731985421L));\n Assert.assertTrue(accountIdsSet.contains(3821071791L));\n Assert.assertFalse(accountIdsSet.contains(5471928097L));\n\n }",
"private void createClientKeyStoreServerTrustStore(KeyStore clientKeyStore, KeyStore serverTrustStore) throws Exception {\n X500Principal DN = new X500Principal(\"CN=testclient2.example.com, OU=JBoss, O=Red Hat, L=Raleigh, ST=North Carolina, C=US\");\n SelfSignedX509CertificateAndSigningKey selfSignedX509CertificateAndSigningKey = SelfSignedX509CertificateAndSigningKey.builder()\n .setKeyAlgorithmName(\"DSA\")\n .setSignatureAlgorithmName(\"SHA1withDSA\")\n .setDn(DN)\n .setKeySize(1024)\n .build();\n X509Certificate certificate = selfSignedX509CertificateAndSigningKey.getSelfSignedCertificate();\n clientKeyStore.setKeyEntry(\"dnsincnclient\", selfSignedX509CertificateAndSigningKey.getSigningKey(), KEYSTORE_PASSWORD, new X509Certificate[]{certificate});\n serverTrustStore.setCertificateEntry(\"cn=testclient2.example.com,ou=jboss,o=red hat,l=raleigh,st=north carolina,c=us\", certificate);\n\n\n // Generate Test Authority self signed certificate\n final X500Principal CA_DN = new X500Principal(\"CN=Test Authority, OU=JBoss, O=Red Hat, L=Raleigh, ST=North Carolina, C=US\");\n selfSignedX509CertificateAndSigningKey = SelfSignedX509CertificateAndSigningKey.builder()\n .setDn(CA_DN)\n .setKeyAlgorithmName(\"RSA\")\n .setSignatureAlgorithmName(\"SHA256withRSA\")\n .addExtension(new BasicConstraintsExtension(false, true, -1))\n .build();\n final X509Certificate caCertificate = selfSignedX509CertificateAndSigningKey.getSelfSignedCertificate();\n final PrivateKey caKey = selfSignedX509CertificateAndSigningKey.getSigningKey();\n\n // Generate Test Client 1 self signed certificate\n DN = new X500Principal(\"CN=Test Client 1, OU=JBoss, O=Red Hat, L=Raleigh, ST=North Carolina, C=US\");\n selfSignedX509CertificateAndSigningKey = SelfSignedX509CertificateAndSigningKey.builder()\n .setDn(DN)\n .setKeyAlgorithmName(\"RSA\")\n .setSignatureAlgorithmName(\"SHA256withRSA\")\n .addExtension(false, \"SubjectAlternativeName\", \"DNS:testclient1.example.com\")\n .build();\n certificate = selfSignedX509CertificateAndSigningKey.getSelfSignedCertificate();\n clientKeyStore.setKeyEntry(\"testclient1\", selfSignedX509CertificateAndSigningKey.getSigningKey(), KEYSTORE_PASSWORD, new X509Certificate[]{certificate});\n serverTrustStore.setCertificateEntry(\"cn=test client 1,ou=jboss,o=red hat,l=raleigh,st=north carolina,c=us\", certificate);\n\n\n // Generate Signed Test Client certificate signed by Test Authority\n X500Principal subjectDN = new X500Principal(\"CN=Signed Test Client, OU=JBoss, O=Red Hat, ST=North Carolina, C=US\");\n\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n KeyPair generatedKeys = keyPairGenerator.generateKeyPair();\n PrivateKey privateKey = generatedKeys.getPrivate();\n PublicKey publicKey = generatedKeys.getPublic();\n\n /*\n * The CA certificate is added using the alias of the client it is tested with, this is not really how the trust store should\n * be populated but as the test is also relying on the truststore to back the realm it needs to find an entry for the client\n * and we do not want to add the clients actual certificate as the test is testing CA signed certs.\n */\n serverTrustStore.setCertificateEntry(\"cn=signed test client,ou=jboss,o=red hat,st=north carolina,c=us\", caCertificate);\n\n certificate = new X509CertificateBuilder()\n .setIssuerDn(CA_DN)\n .setSubjectDn(subjectDN)\n .setSignatureAlgorithmName(\"SHA256withRSA\")\n .setSigningKey(caKey)\n .setPublicKey(publicKey)\n .build();\n clientKeyStore.setKeyEntry(\"testclientsignedbyca\", privateKey, KEYSTORE_PASSWORD, new X509Certificate[]{certificate});\n }",
"@Test\n\tpublic void addOtherKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tKeyPair kp = RsaHelper.generateKeyPair();\n\t\tassertTrue(\"should have added key\", ks.addOtherKey(\"firstOther\", kp.getPublic()));\n\t\tKeyPair kpp = RsaHelper.generateKeyPair();\n\t\tassertTrue(\"should have added key\", ks.addOtherKey(\"secondOther\", kpp.getPublic()));\n\t}",
"@Test\n\tpublic void testGetCACerts_TAandTLS() {\n\t\tSystem.out.println(\"Beginning TC2002\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t// get a good cert to use for tls credentials\n\t\tmyCert1 = getTrustedCert();\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\tfor (X509Certificate c : newCACerts) {\n\t\t\t// System.out.println(c.toString());\n\t\t\tSystem.out.println(\"Issuer: \" + c.getIssuerDN().getName());\n\t\t\tassertNotNull(c.getIssuerDN().getName());\n\t\t\tassertFalse(c.getIssuerDN().getName().equals(\"\"));\n\t\t}\n\t\tSystem.out.println(\"Ending TC2002\");\n\t}",
"@Override\n public void askIntraUserForAcceptance(String intraUserToAddName, String intraUserToAddPhrase, String intraUserToAddPublicKey, byte[] OthersProfileImage,byte[] MyProfileImage, String identityPublicKey, String identityAlias) throws CantStartRequestException {\n\n try {\n\n /**\n *Call Network Service Intra User to add request connection\n */\n\n if ( this.intraWalletUserManager.getIntraUsersConnectionStatus(intraUserToAddPublicKey)!= ConnectionState.CONNECTED){\n System.out.println(\"The User you are trying to connect with is not connected\" +\n \"so we send the message to the intraUserNetworkService\");\n this.intraUserNertwokServiceManager.askIntraUserForAcceptance(identityPublicKey, identityAlias, Actors.INTRA_USER, intraUserToAddName,intraUserToAddPhrase, intraUserToAddPublicKey, Actors.INTRA_USER, MyProfileImage);\n }else{\n this.intraUserNertwokServiceManager.acceptIntraUser(identityPublicKey, intraUserToAddPublicKey);\n System.out.println(\"The user is connected\");\n }\n\n /**\n *Call Actor Intra User to add request connection\n */\n this.intraWalletUserManager.askIntraWalletUserForAcceptance(identityPublicKey, intraUserToAddName, intraUserToAddPhrase, intraUserToAddPublicKey, OthersProfileImage);\n\n\n } catch (CantCreateIntraWalletUserException e) {\n throw new CantStartRequestException(\"\", e, \"\", \"\");\n } catch (RequestAlreadySendException e) {\n throw new CantStartRequestException(\"\", e, \"\", \"Intra user request already send\");\n } catch (Exception e) {\n throw new CantStartRequestException(\"CAN'T ASK INTRA USER CONNECTION\", FermatException.wrapException(e), \"\", \"unknown exception\");\n }\n }",
"public void testStartUpdateCredentialsSession() throws\n OperationCanceledException, AuthenticatorException, IOException, RemoteException {\n String accountName = Fixtures.PREFIX_NAME_SUCCESS + \"@\" + Fixtures.SUFFIX_NAME_FIXTURE;\n Bundle options = createOptionsWithAccountName(accountName);\n\n AccountManagerFuture<Bundle> future = mAccountManager.startUpdateCredentialsSession(\n Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS,\n null /* authTokenType */,\n options,\n null /* activity */,\n null /* callback */,\n null /* handler */);\n\n Bundle result = future.getResult();\n assertTrue(future.isDone());\n assertNotNull(result);\n\n validateStartUpdateCredentialsSessionParameters(options);\n\n // Validate no auth token in result.\n assertNull(result.get(AccountManager.KEY_AUTHTOKEN));\n\n // Validate returned data\n validateSessionBundleAndPasswordAndStatusTokenResult(result);\n }",
"private void registerPairs(SantaConfig sc) {\n Set<String> keys = sc.getBaseKeys(\"paired\");\n for(String key : keys) {\n UUID owner = UUID.fromString(key);\n UUID rec = UUID.fromString(sc.getBaseString(\"paired.\" + key));\n pairedPlayers.put(owner, rec);\n }\n }",
"@Override\n public final void addCheckIsReadyToAccount(\n final Map<String, Object> pAddParam,\n final GoodsLoss pEntity) throws Exception {\n //nothing\n }",
"@Test\n\tpublic void testGetCACerts_simpleEnroll_PoP() {\n\t\tSystem.out.println(\"Beginning TC2020\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tX509Certificate newCert = null;\n\t\tESTClient ec = new ESTClient();\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\t\t\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\t\n\t\t/*\n\t\t * OK, we have the new trust anchor. Let's start a new session\n\t\t * using this TA and attempt a simple enroll.\n\t\t */\n\t\tec = new ESTClient();\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(newCACerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setHTTPCredentials(\"estuser\", \"estpwd\");\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authHTTPonly, mKey, Boolean.TRUE);\n\t\t} catch (InvalidKeyException | CertificateException | IOException\n\t\t\t\t| EncodingException | EnrollException\n\t\t\t\t| EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertNotNull(newCert);\n\t\tSystem.out.println(\"Ending TC2020\");\n\t}",
"public void receiveResultaddResponsible(\n org.apache.ws.axis2.MySQLServiceEquipmentStub.AddResponsibleResponse result) {\n }",
"public void setRootService(RootService rootService) throws CertException;",
"public void connected(Service service, String localConnectorName, int peerId) {\n \n }",
"@Test\n\tpublic void bodyUseService() {\n\t\tLOG.info(\"[#759] bodyUseService part 1\");\n\n\t\tFuture<List<Service>> asyncServices = null;\n\t\tList<Service> services = new ArrayList<Service>();\n\n\t\ttry {\n\t\t\t// Start the service\n\t\t\tLOG.info(\"[#759] Calculator service starting\");\n\t\t\tFuture<ServiceControlResult> asyncStartResult = TestCase759.serviceControl.startService(calculatorServiceId);\n\t\t\tServiceControlResult startResult = asyncStartResult.get();\n\t\t\t// Service can't be started\n\t\t\tif (!startResult.getMessage().equals(ResultMessage.SUCCESS)) {\n\t\t\t\tthrow new Exception(\"Can't start the service. Returned value: \"+startResult.getMessage());\n\t\t\t}\n\t\t\tLOG.info(\"[#759] Calculator service started\");\n\n\t\t\t// -- Test case is now ready to consume the service\n\t\t\t// The injection of ICalc will launch the UpperTester\n\t\t}\n\t\tcatch (ServiceDiscoveryException e) {\n\t\t\tLOG.info(\"[#759] ServiceDiscoveryException\", e);\n\t\t\tfail(\"[#759] ServiceDiscoveryException: \"+e.getMessage());\n\t\t\treturn;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLOG.info(\"[#759] Preamble installService: Unknown Exception\", e);\n\t\t\tfail(\"[#759] Preamble installService: Unknown Exception: \"+e.getMessage());\n\t\t\treturn;\n\t\t}\n\t}",
"@Test\n public void testMutualAuthenticationWithDNSInCNField() throws Exception {\n final SaslClientFactory clientFactory = obtainSaslClientFactory(EntitySaslClientFactory.class);\n assertNotNull(clientFactory);\n\n final KeyStore keyStore = serverKeyStore;\n final Certificate[] certificateChain = keyStore.getCertificateChain(\"dnsInCNServer\");\n final SaslServer saslServer = createSaslServer(SaslMechanismInformation.Names.IEC_ISO_9798_M_DSA_SHA1, \"testserver2.example.com\",\n serverTrustStore, (PrivateKey) keyStore.getKey(\"dnsInCNServer\", KEYSTORE_PASSWORD),\n Arrays.copyOf(certificateChain, certificateChain.length, X509Certificate[].class));\n\n final String[] mechanisms = new String[] { SaslMechanismInformation.Names.IEC_ISO_9798_M_DSA_SHA1 };\n CallbackHandler cbh = createClientCallbackHandler(mechanisms, clientKeyStore, \"dnsInCNClient\", KEYSTORE_PASSWORD, getX509TrustManager(clientTrustStore));\n final SaslClient saslClient = clientFactory.createSaslClient(mechanisms, null, \"test\", \"testserver2.example.com\",\n Collections.<String, Object>emptyMap(), cbh);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n byte[] message = saslServer.evaluateResponse(new byte[0]);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n message = saslClient.evaluateChallenge(message);\n assertFalse(saslServer.isComplete());\n assertFalse(saslClient.isComplete());\n\n message = saslServer.evaluateResponse(message);\n assertNotNull(message);\n\n message = saslClient.evaluateChallenge(message);\n assertNull(message);\n assertTrue(saslClient.isComplete());\n assertTrue(saslServer.isComplete());\n assertEquals(\"cn=testclient2.example.com,ou=jboss,o=red hat,l=raleigh,st=north carolina,c=us\", saslServer.getAuthorizationID());\n }",
"@Test\n\tpublic void testGetCACerts_simpleEnrollV6() {\n\t\tSystem.out.println(\"Beginning TC2043\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tX509Certificate newCert = null;\n\t\tESTClient ec = new ESTClient();\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\t// ipv6\n\t\tec.setServerName(\"ip6-localhost\");\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\t\t\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\t\n\t\t/*\n\t\t * OK, we have the new trust anchor. Let's start a new session\n\t\t * using this TA and attempt a simple enroll.\n\t\t */\n\t\tec = new ESTClient();\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(newCACerts);\n\t\t// ipv6\n\t\tec.setServerName(\"ip6-localhost\");\n\t\tec.setServerPort(mTestPort);\n\t\tec.setHTTPCredentials(\"estuser\", \"estpwd\");\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authHTTPonly, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException | CertificateException | IOException\n\t\t\t\t| EncodingException | EnrollException\n\t\t\t\t| EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tassertNotNull(newCert);\n\t\tSystem.out.println(\"Ending TC2043\");\n\t}",
"public void testDefaultFinishSessionWithCustomStartUpdateCredentialsSessionImpl()\n throws OperationCanceledException, AuthenticatorException, IOException {\n String accountName = Fixtures.PREFIX_NAME_SUCCESS + \"@\" + Fixtures.SUFFIX_NAME_FIXTURE;\n // Creates session bundle to be returned by custom implementation of\n // startUpdateCredentialsSession of authenticator.\n Bundle sessionBundle = new Bundle();\n sessionBundle.putString(Fixtures.KEY_ACCOUNT_NAME, accountName);\n sessionBundle.putString(AccountManager.KEY_ACCOUNT_TYPE,\n Fixtures.TYPE_STANDARD_UNAFFILIATED);\n Bundle options = new Bundle();\n options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName);\n options.putBundle(Fixtures.KEY_ACCOUNT_SESSION_BUNDLE, sessionBundle);\n\n // First get an encrypted session bundle from custom\n // startUpdateCredentialsSession implementation.\n AccountManagerFuture<Bundle> future = mAccountManager.startUpdateCredentialsSession(\n Fixtures.ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS,\n null /* authTokenType */,\n options,\n null /* activity */,\n null /* callback */,\n null /* handler */);\n\n Bundle result = future.getResult();\n assertTrue(future.isDone());\n assertNotNull(result);\n\n Bundle decryptedBundle = result.getBundle(AccountManager.KEY_ACCOUNT_SESSION_BUNDLE);\n assertNotNull(decryptedBundle);\n\n try {\n // Call default implementation of finishSession of authenticator\n // with encrypted session bundle.\n future = mAccountManager.finishSession(\n decryptedBundle,\n null /* activity */,\n null /* callback */,\n null /* handler */);\n future.getResult();\n\n fail(\"Should have thrown AuthenticatorException if finishSession is not overridden.\");\n } catch (AuthenticatorException e) {\n }\n }",
"@Test\n public void customerCanPerformTransferBetweenAccounts() {\n String ownerId = \"ownerId\";\n Account accountFrom = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n Account accountTo = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n\n // Put some money in the from account\n Transaction transaction = new Transaction.Builder().setDescription(\"Test\").setAmount(DollarAmount.fromInt(100)).setType(Transaction.Type.DEPOSIT).build();\n accountFrom.applyTransaction(transaction);\n assertEquals(accountFrom.getAccountBalance(), DollarAmount.fromInt(100));\n\n // Attempt transfer\n Account.transfer(accountFrom, accountTo, DollarAmount.fromInt(30));\n\n // Assert transfer was successful\n assertEquals(DollarAmount.fromInt(70), accountFrom.getAccountBalance());\n assertEquals(DollarAmount.fromInt(30), accountTo.getAccountBalance());\n }",
"void registerUiTestAutomationServiceLocked(IBinder owner,\n IAccessibilityServiceClient serviceClient,\n Context context, AccessibilityServiceInfo accessibilityServiceInfo,\n int id, Handler mainHandler,\n AccessibilityManagerService.SecurityPolicy securityPolicy,\n AbstractAccessibilityServiceConnection.SystemSupport systemSupport,\n WindowManagerInternal windowManagerInternal,\n GlobalActionPerformer globalActionPerfomer, int flags) {\n synchronized (mLock) {\n accessibilityServiceInfo.setComponentName(COMPONENT_NAME);\n\n if (mUiAutomationService != null) {\n throw new IllegalStateException(\"UiAutomationService \" + serviceClient\n + \"already registered!\");\n }\n\n try {\n owner.linkToDeath(mUiAutomationServiceOwnerDeathRecipient, 0);\n } catch (RemoteException re) {\n Slog.e(LOG_TAG, \"Couldn't register for the death of a UiTestAutomationService!\",\n re);\n return;\n }\n\n mSystemSupport = systemSupport;\n mUiAutomationService = new UiAutomationService(context, accessibilityServiceInfo, id,\n mainHandler, mLock, securityPolicy, systemSupport, windowManagerInternal,\n globalActionPerfomer);\n mUiAutomationServiceOwner = owner;\n mUiAutomationFlags = flags;\n mUiAutomationServiceInfo = accessibilityServiceInfo;\n mUiAutomationService.mServiceInterface = serviceClient;\n mUiAutomationService.onAdded();\n try {\n mUiAutomationService.mServiceInterface.asBinder().linkToDeath(mUiAutomationService,\n 0);\n } catch (RemoteException re) {\n Slog.e(LOG_TAG, \"Failed registering death link: \" + re);\n destroyUiAutomationService();\n return;\n }\n\n mUiAutomationService.connectServiceUnknownThread();\n }\n }",
"boolean testConnection(RemoteService service);",
"private static void testdeleteAndAddSavingsAccounts(String lineOfCreditId, List<SavingsAccount> accounts)\n\t\t\tthrows MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testdeleteAndAddSavingsAccounts for LoC=\" + lineOfCreditId);\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tString accountId = null;\n\t\tif (accounts == null || accounts.size() == 0) {\n\t\t\tSystem.out.println(\"WARNING: no Savings Account to remove for LoC=\" + lineOfCreditId);\n\t\t} else {\n\t\t\t// We have assigned accounts. Test remove and then test adding it back\n\t\t\t// Test removing Savings Account. Accounts requiring LoC cannot be removed, so try until can\n\t\t\tfor (SavingsAccount account : accounts) {\n\t\t\t\taccountId = account.getId();\n\t\t\t\ttry {\n\t\t\t\t\tboolean deleted = linesOfCreditService.deleteSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Removed Status=\" + deleted + \"\\tAccount with ID=\" + accountId\n\t\t\t\t\t\t\t+ \" deleted from LoC=\" + lineOfCreditId);\n\t\t\t\t\t;\n\t\t\t\t\t// Deleted OK, now add the same back\n\t\t\t\t\tSavingsAccount addedAccount = linesOfCreditService.addSavingsAccount(lineOfCreditId, accountId);\n\t\t\t\t\tSystem.out.println(\"Added Savings Account with ID=\" + addedAccount.getId() + \" to LoC=\"\n\t\t\t\t\t\t\t+ lineOfCreditId);\n\t\t\t\t} catch (MambuApiException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to remove account \" + accountId + \"\\tMessage=\" + e.getErrorMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}",
"private boolean canAddPeer(InetAddress candidate) {\n\t\treturn peers.size() < maximumConnections && !peers.containsKey(candidate) && !candidate.equals(externalIP) && !candidate.equals(internalIP) && !candidate.isLoopbackAddress();\n\t}",
"private static void runDelegatedTasks(SSLEngineResult result,\n SSLEngine engine) throws Exception {\n\n if (result.getHandshakeStatus() == HandshakeStatus.NEED_TASK) {\n Runnable runnable;\n while ((runnable = engine.getDelegatedTask()) != null) {\n log(\"\\trunning delegated task...\");\n runnable.run();\n }\n HandshakeStatus hsStatus = engine.getHandshakeStatus();\n if (hsStatus == HandshakeStatus.NEED_TASK) {\n throw new Exception(\n \"handshake shouldn't need additional tasks\");\n }\n log(\"\\tnew HandshakeStatus: \" + hsStatus);\n }\n }",
"public registry.ClientRegistryStub.AddUserResponse addUser(\r\n\r\n registry.ClientRegistryStub.AddUser addUser4)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"urn:addUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n addUser4,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\")), new javax.xml.namespace.QName(\"http://registry\",\r\n \"addUser\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n registry.ClientRegistryStub.AddUserResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (registry.ClientRegistryStub.AddUserResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addUser\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }",
"public void setServices(List<AService> services) {\n this.services = services;\n }",
"T addJavaAgents(JavaAgent... javaAgents);",
"@Test\n public void testDuplicateConditionsAndFulfillments() {\n final ThresholdSha256Condition condition = ThresholdSha256Condition.from(\n 2, Lists\n .newArrayList(subcondition1, subcondition1, subcondition2, subcondition3)\n );\n\n // Escrow Only (insufficient)\n ThresholdSha256Fulfillment fulfillment = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(subcondition1, subcondition2, subcondition3),\n Lists.newArrayList(subfulfillment1)\n );\n assertThat(fulfillment.verify(condition, new byte[0]), is(false));\n\n // Escrow Only (sufficient)\n fulfillment = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(subcondition2, subcondition3),\n Lists.newArrayList(subfulfillment1, subfulfillment1)\n );\n assertThat(fulfillment.verify(condition, new byte[0]), is(true));\n\n // Escrow+Party2\n fulfillment = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(subcondition1, subcondition3),\n Lists.newArrayList(subfulfillment1, subfulfillment2)\n );\n assertThat(fulfillment.verify(condition, new byte[0]), is(true));\n\n // Escrow+Party3\n fulfillment = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(subcondition1, subcondition2),\n Lists.newArrayList(subfulfillment1, subfulfillment3)\n );\n assertThat(fulfillment.verify(condition, new byte[0]), is(true));\n\n // Party2+Party3\n fulfillment = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(subcondition1, subcondition1),\n Lists.newArrayList(subfulfillment2, subfulfillment3)\n );\n assertThat(fulfillment.verify(condition, new byte[0]), is(true));\n\n // Party2+Party3 (w\\o escrow condition)\n fulfillment = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(),\n Lists.newArrayList(subfulfillment2, subfulfillment3)\n );\n assertThat(fulfillment.verify(condition, new byte[0]), is(false));\n }",
"@Test(groups ={Slingshot,Regression,CsaAgent})\t\n\t\tpublic void verifyPartnerServiceAgentLookUpUserFunctionality() throws Exception {\n\t\t\tReport.createTestLogHeader(\"CSA\", \"To verify whether the account status of broker is successfully changed by agent\");\n\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"PSABroker\");\n\t\t\t\t/*deregisterinBgbonline(userProfile); \n\t\t\t\t//Register a user \n\t\t\t\tnew PartnerServiceAgentAction()\n\t\t\t\t.navigateToPSARegistration()\n\t\t\t\t.clickRegisteraUser(userProfile);*/\n\t\t\t\t\n\t\t\t\t//verify Lookup User functionality\n\t\t\t\tnew PartnerServiceAgentAction()\n\t\t\t\t\t.navigateToPSARegistration()\n\t\t\t\t\t.verifyFindUser(userProfile)\n\t\t\t\t\t.updateAndVerifyStatus(userProfile);\n\t\t}",
"private void addAccount(ProtocolProviderService protocolProvider)\n {\n OperationSetPresence presence = (OperationSetPresence)\n protocolProvider.getOperationSet(OperationSetPresence.class);\n \n if (presence == null)\n {\n StatusSimpleSelector simpleSelector = \n new StatusSimpleSelector(parentSystray, protocolProvider);\n \n this.accountSelectors.put( protocolProvider.getAccountID(),\n simpleSelector);\n this.add(simpleSelector);\n }\n else\n {\n StatusSelector statusSelector = \n new StatusSelector( parentSystray,\n protocolProvider,\n presence);\n \n this.accountSelectors.put( protocolProvider.getAccountID(),\n statusSelector);\n this.add(statusSelector);\n \n presence.addProviderPresenceStatusListener(\n new SystrayProviderPresenceStatusListener());\n }\n }",
"public void setAccountService(AccountService accountService){\n this.accountService = accountService;\n }",
"@Before\n public void initialize() throws BeansException, MalformedURLException {\n wsClient = EasyMock.createMock(CaAERSParticipantServiceWSClient.class);\n xsltTransformer = EasyMock.createMock(XSLTTransformer.class);\n caAERSRegistrationServiceInvocationStrategy = new CaAERSRegistrationServiceInvocationStrategy(xsltTransformer,\n wsClient, RETRY_COUNT);\n caAERSUpdateRegistrationServiceInvocationStrategy = new CaAERSUpdateRegistrationServiceInvocationStrategy(\n xsltTransformer, wsClient, RETRY_COUNT);\n }"
]
| [
"0.5029415",
"0.50146616",
"0.48018807",
"0.477863",
"0.4678518",
"0.46698028",
"0.46679464",
"0.46370038",
"0.462919",
"0.46190503",
"0.45996964",
"0.45833933",
"0.4556603",
"0.44531196",
"0.44484836",
"0.44297636",
"0.4419287",
"0.44028008",
"0.44025272",
"0.4400826",
"0.43893182",
"0.4383426",
"0.43804318",
"0.43727547",
"0.43482545",
"0.4315038",
"0.43085864",
"0.43075186",
"0.4292149",
"0.4286213",
"0.4284553",
"0.4272308",
"0.42674947",
"0.4266444",
"0.42640245",
"0.4241729",
"0.42293406",
"0.42129797",
"0.4210221",
"0.42097867",
"0.4206991",
"0.42006338",
"0.41988626",
"0.41913277",
"0.4191327",
"0.41892838",
"0.418914",
"0.41884875",
"0.41805288",
"0.41741633",
"0.41720146",
"0.41683778",
"0.4155728",
"0.41541255",
"0.4149339",
"0.41482842",
"0.4147845",
"0.41458815",
"0.4141567",
"0.4141466",
"0.41241813",
"0.41059273",
"0.41036063",
"0.4101044",
"0.4100996",
"0.40999937",
"0.40964547",
"0.4094863",
"0.4090002",
"0.40842056",
"0.4061167",
"0.40527606",
"0.40496752",
"0.40489835",
"0.40459007",
"0.4045704",
"0.40438622",
"0.40403178",
"0.4034891",
"0.4031567",
"0.40303305",
"0.40294832",
"0.40213245",
"0.40147507",
"0.39939567",
"0.3981738",
"0.3977586",
"0.39764708",
"0.3974143",
"0.39730638",
"0.396853",
"0.39679798",
"0.39670974",
"0.39657158",
"0.39636534",
"0.39567256",
"0.39531147",
"0.39435852",
"0.3942042",
"0.39413297"
]
| 0.58673704 | 0 |
Enables untrusted ALTS for testing. If this function is called, we will not check whether ALTS is running on Google Cloud Platform. | public AltsChannelBuilder enableUntrustedAltsForTesting() {
enableUntrustedAlts = true;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void enableSecurity();",
"@Test\n public void trackingEnabled_updateAppNotPrivileged() throws Exception {\n configureTrackingEnabled();\n configureReliabilityConfigSettingsOk();\n configureUpdateAppPackageNotPrivileged(UPDATE_APP_PACKAGE_NAME);\n configureDataAppPackageOk(DATA_APP_PACKAGE_NAME);\n\n try {\n // Initialize the tracker.\n mPackageTracker.start();\n fail();\n } catch (RuntimeException expected) {}\n\n mFakeIntentHelper.assertNotInitialized();\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n }",
"@Test\n public void trackingEnabled_dataAppNotPrivileged() throws Exception {\n configureTrackingEnabled();\n configureReliabilityConfigSettingsOk();\n configureUpdateAppPackageOk(UPDATE_APP_PACKAGE_NAME);\n configureDataAppPackageNotPrivileged(DATA_APP_PACKAGE_NAME);\n\n try {\n // Initialize the tracker.\n mPackageTracker.start();\n fail();\n } catch (RuntimeException expected) {}\n\n mFakeIntentHelper.assertNotInitialized();\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n }",
"@Override\n\tpublic boolean needSecurityCheck() {\n\t\treturn false;\n\t}",
"public boolean requiresSecurityPolicy()\n {\n return true;\n }",
"public boolean isPreTrusted(){\n\t\treturn (this.pre_trusted);\n\t}",
"private void onProviderInstallerNotAvailable() {\n Toast.makeText(this, \"Unable to update your security settings and SSL security may not avialble\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n protected void onSetUp() {\n Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());\n }",
"@org.junit.Before\n public void turnOffAllAccessDetection() {\n Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, \"false\"); /* Not tested here. */\n Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, \"false\"); /* Not tested here. */\n }",
"@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}",
"@Override\npublic void onProviderDisabled(String provider) {\n\n}",
"@Override \n public void onProviderDisabled(String provider) { \n }",
"public void securityOn()\n {\n m_bSecurity = true;\n }",
"public static boolean allowLocalAccess() {\n return ConfigFactory.getCommonConfig().getBoolean(PERMIT_LOCAL_ACCESS_KEY, false);\n }",
"@BeforeAll\r\n public static void globalSetup() {\r\n api = new AccessibilityCheckApi(getCredentialsHeader(),AxeImpactEnum.MODERATE);\r\n }",
"@Override\r\n\tpublic void setDontSendLocalSecurityUpdates(boolean arg0)\r\n\t\t\tthrows NotesApiException {\n\r\n\t}",
"@Test\n public void testUnsupportedAuthTypeInValidateApWifiConfigurationCheck() {\n WifiConfiguration config = new WifiConfiguration();\n config.SSID = TEST_DEFAULT_HOTSPOT_SSID;\n\n config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK);\n assertFalse(WifiApConfigStore.validateApWifiConfiguration(config));\n }",
"@Override\r\n\tpublic void testPrivateWithNoViewPrivateScope() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateWithNoViewPrivateScope();\r\n\t\t}\r\n\t}",
"public void setTrusted (boolean trusted) {\n impl.setTrusted(trusted);\n }",
"@Override\r\n public void onProviderDisabled(String provider) {\n\r\n }",
"@Override\n boolean enable(Alternative alt) {\n return altingChannel.enable(alt);\n }",
"boolean hasAllowSubjectAltNamesPassthrough();",
"@Override\n public void onProviderEnabled(String s) {\n }",
"@Override\n public void onProviderEnabled(String s) {\n }",
"public jpuppeteer.util.XFuture<?> enable() {\n return connection.send(\"Security.enable\", null);\n }",
"public void beforeHookedMethod(MethodHookParam param) throws Throwable {\n param.args[0] = SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;\n }",
"@Override\npublic void onProviderEnabled(String provider) {\n\n}",
"public void onProviderEnabled(String provider) {\n // ignore\n }",
"public void onProviderEnabled(String provider) {}",
"@Override\n\tpublic String enable() throws Throwable {\n\t\treturn null;\n\t}",
"@Override\n public boolean isAIEnabled() {\n return false;\n }",
"@Before\n public void setup() throws Exception {\n ClassLoader loader = this.getClass().getClassLoader();\n try {\n loader.loadClass(\"org.wildfly.openssl.OpenSSLProvider\");\n hasWildfly = true;\n } catch (ClassNotFoundException e) {\n hasWildfly = false;\n }\n }",
"private static void addUnsafeTrust(OkHttpClient.Builder builder) {\n final TrustManager[] trustAllCerts = new TrustManager[]{\n new X509TrustManager() {\n @Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {\n }\n\n @Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {\n }\n\n @Override\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return new java.security.cert.X509Certificate[]{};\n }\n }\n };\n\n // Install the all-trusting trust manager\n SSLContext sslContext = null;\n try {\n sslContext = SSLContext.getInstance(\"SSL\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n try {\n sslContext.init(null, trustAllCerts, new java.security.SecureRandom());\n } catch (KeyManagementException e) {\n e.printStackTrace();\n }\n\n // Create an ssl socket factory with our all-trusting manager\n final SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();\n builder.sslSocketFactory(sslSocketFactory, (X509TrustManager) trustAllCerts[0]);\n builder.hostnameVerifier((hostname, session) -> true);\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"protected void enableSecurityAdvisor() {\r\n\tif (osylSecurityService.getCurrentUserRole().equals(\r\n\t\tOsylSecurityService.SECURITY_ROLE_COURSE_INSTRUCTOR)\r\n\t\t|| osylSecurityService.getCurrentUserRole().equals(\r\n\t\t\tOsylSecurityService.SECURITY_ROLE_PROJECT_MAINTAIN)) {\r\n\t securityService.pushAdvisor(new SecurityAdvisor() {\r\n\t\tpublic SecurityAdvice isAllowed(String userId, String function,\r\n\t\t\tString reference) {\r\n\t\t return SecurityAdvice.ALLOWED;\r\n\t\t}\r\n\t });\r\n\t}\r\n }",
"@Test\n public void testInvalidAuthTypeInValidateApWifiConfigurationCheck() {\n WifiConfiguration config = new WifiConfiguration();\n config.SSID = TEST_DEFAULT_HOTSPOT_SSID;\n\n config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK);\n config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);\n assertFalse(WifiApConfigStore.validateApWifiConfiguration(config));\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"@Override\n public void onProviderDisabled(String provider) {\n\n }",
"void initSafeties(){\n gyroSafety();\n tensorFlowSafety();\n\n telemetry.addLine(\"Init finalized successfully\");\n telemetry.update();\n }",
"@Override\n\tpublic boolean isDlvPassPremiumAllowedTC() {\n\t\treturn false;\n\t}",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n public void onProviderEnabled(String provider) {\n\n }",
"@Override\n protected void before() throws Throwable {\n ClassLoader oldClassLoader = ClassLoaders.setContextClassLoader(STANDALONE.getClass().getClassLoader());\n try {\n Method before = STANDALONE.getClass().getDeclaredMethod(\"before\");\n before.setAccessible(true);\n before.invoke(STANDALONE);\n } finally {\n ClassLoaders.setContextClassLoader(oldClassLoader);\n }\n }",
"@Override\r\n public void onProviderEnabled(String provider) {\n\r\n }",
"@Override\n public void onProviderDisabled(String s) {\n }",
"@Override\n public void onProviderDisabled(String s) {\n }",
"@Override\n public void onProviderEnabled(String arg0) {\n\n }",
"protected boolean isAIEnabled()\n {\n return true;\n }",
"@Override\r\n public void onProviderEnabled(String provider) {\n }",
"@Override\r\n\tpublic void testPrivateWithViewPrivateScope() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateWithViewPrivateScope();\r\n\t\t}\r\n\t}",
"protected boolean enableDNSAndTestConfigUpdate() throws Throwable {\n if (enableDNS() &&\n rebootAndWait(\"all\") &&\n verifyHivecfg() //&&\n //upgradeChecker()\n ) {\n okToProceed = true;\n return true;\n }\n return false;\n }",
"@Override\n public void onProviderDisabled(String provider) {\n }",
"@Override\n public void onProviderDisabled(String provider) {\n }",
"@Override\n public void onProviderDisabled(String provider) {\n }",
"@Override\n public void onProviderDisabled(String provider) {\n }",
"@Override\n public void onProviderDisabled(String provider) {\n }",
"public void onProviderDisabled(String provider) {\n\n\n\n }",
"@Override\n public void onProviderDisabled(String arg0) {\n\n }",
"Boolean getFallbackAET();",
"@Override\n \tpublic void onProviderDisabled(String provider) {\n \n \t}",
"ExpProtocol ensureSampleAliquotProtocol(User user) throws ExperimentException;",
"public void putSilentOn() {\n StartupService.mode.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n }",
"public static void allowAllCertificates() {\n try {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n X509Certificate[] myTrustedAnchors = new X509Certificate[0];\n return myTrustedAnchors;\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] certs,\n String authType) {}\n\n @Override\n public void checkServerTrusted(X509Certificate[] certs,\n String authType) {}\n } };\n\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new SecureRandom());\n HttpsURLConnection\n .setDefaultSSLSocketFactory(sc.getSocketFactory());\n HttpsURLConnection\n .setDefaultHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String arg0, SSLSession arg1) {\n return true;\n }\n });\n } catch (Exception e) {}\n }",
"@Override\r\n\tpublic boolean getDontSendLocalSecurityUpdates() throws NotesApiException {\n\t\treturn false;\r\n\t}",
"@Override\r\n public void onProviderDisabled(String provider) {\n }",
"@Override\n public boolean isAlwaysInjectiveInTheAbsenceOfNonInjectiveFunctionalTerms() {\n return false;\n }",
"public boolean isAcuityEnabled()\n {\n return false;\n }",
"public void onProviderEnabled(String provider) {\n\n\n\n }",
"@Override\n \tpublic void onProviderEnabled(String provider) {\n \n \t}",
"private void initializeTrustedList() {\n\n final List<WifiConfiguration> SortedConfigs = sortConfigedAPs(mWifiManager\n .getConfiguredNetworks());\n mTrustedAccessPoints = new ArrayList<TrustedAccessPoint>();\n\n if (SortedConfigs != null) {\n for (WifiConfiguration config : SortedConfigs) {\n if (config.SSID != null) {\n TrustedAccessPoint mTrustedAp = new TrustedAccessPoint(config.networkId,\n config.SSID);\n mTrustedAccessPoints.add(mTrustedAp);\n }\n }\n }\n }",
"@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\n\t}",
"protected boolean canSilkHarvest()\n {\n return true;\n }",
"protected boolean canSilkHarvest()\n {\n return true;\n }",
"public void onProviderEnabled(String provider) {\n\n }",
"@Override\r\n\tpublic void onProviderEnabled(String arg0) {\n\r\n\t}",
"boolean getAllowSubjectAltNamesPassthrough();",
"public void enableSurvivialMode()\n\t{\n\t\tthis.player.useFlyingMode = false;\n\t\tthis.player.setHealth(100f);\n\t}",
"@Override\r\n\tpublic void onProviderEnabled(String arg0) {\n\t\t\r\n\t}",
"protected boolean disableEnableSvcs() throws Throwable {\n int i = ((int)(Math.random() * nodes));\n portString = \"\" + (i + NODE_PORT_OFFSET);\n \n return (verifySvcs(\"online\") &&\n changeSvcs(\"disable\") &&\n verifySvcs(\"disabled\") &&\n changeSvcs(\"enable\") &&\n verifySvcs(\"online\"));\n }",
"@Test\n public void trackingEnabled_updateAppConfigMissing() throws Exception {\n configureTrackingEnabled();\n configureReliabilityConfigSettingsOk();\n configureUpdateAppPackageNameMissing();\n configureDataAppPackageOk(DATA_APP_PACKAGE_NAME);\n\n try {\n // Initialize the tracker.\n mPackageTracker.start();\n fail();\n } catch (RuntimeException expected) {}\n\n mFakeIntentHelper.assertNotInitialized();\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n }",
"public void setWhitelistEnabled(Boolean whitelistEnabled) {\n this.whitelistEnabled = whitelistEnabled;\n }",
"@Override\n\tpublic void onProviderEnabled(String provider) {\n\t}",
"private void checkEnabled() {\n }",
"@Test\n\tpublic void testGetCACerts_untrustedTA() {\n\t\tSystem.out.println(\"Beginning TC2013\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tESTClient ec = new ESTClient();\n\n\t\tassertNotNull(ec);\n\n\t\t// note - using untrusted trust anchor\n\t\tec.setTrustAnchor(mUntrustedCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (CACertsException cae) {\n\t\t\tSystem.out.println(\"Caught CACertsException as expected: \"\n\t\t\t\t\t+ cae.getMessage());\n\t\t}\n\t\tassertNull(newCACerts);\n\t\tSystem.out.println(\"Ending TC2013\");\n\t}",
"@Override\n\tpublic void onProviderEnabled(String provider)\n\t{\n\t}",
"@Override\n\tpublic void onProviderEnabled(String arg0) {\n\n\t}",
"@Override\n public void onProviderEnabled(String provider) {\n }",
"public static void m1386a(SSLSocket sSLSocket) {\n String[] enabledCipherSuites = sSLSocket.getEnabledCipherSuites();\n if (!(enabledCipherSuites == null || enabledCipherSuites.length == 0)) {\n ArrayList arrayList = new ArrayList();\n for (String str : enabledCipherSuites) {\n if (!m1387a(str)) {\n arrayList.add(str);\n }\n }\n sSLSocket.setEnabledCipherSuites((String[]) arrayList.toArray(new String[arrayList.size()]));\n }\n }",
"public static boolean isSecurityEnabled()\n {\n return Security.getInstance() != null || getAuthorizer() != null;\n }"
]
| [
"0.5931626",
"0.5649105",
"0.56117195",
"0.5543965",
"0.5535136",
"0.5501917",
"0.5482683",
"0.54315764",
"0.54095924",
"0.53808683",
"0.5333475",
"0.5323681",
"0.53093505",
"0.5288567",
"0.52526313",
"0.52162796",
"0.5208583",
"0.5206204",
"0.51936674",
"0.5186574",
"0.5166",
"0.51386243",
"0.5131787",
"0.5131787",
"0.51126724",
"0.5106639",
"0.51048905",
"0.50904006",
"0.5088131",
"0.5078499",
"0.50465995",
"0.50447345",
"0.5044238",
"0.5035941",
"0.5035941",
"0.5035941",
"0.5035941",
"0.5035941",
"0.503376",
"0.5033306",
"0.5027826",
"0.5027826",
"0.5027826",
"0.5027826",
"0.5027826",
"0.5025119",
"0.50248736",
"0.5011797",
"0.5011797",
"0.5011797",
"0.5011797",
"0.5010881",
"0.5007753",
"0.50026095",
"0.50026095",
"0.49909404",
"0.49895617",
"0.49841642",
"0.49758196",
"0.4974837",
"0.496538",
"0.496538",
"0.496538",
"0.496538",
"0.496538",
"0.49621278",
"0.49603444",
"0.49506187",
"0.4948692",
"0.49454832",
"0.49340853",
"0.49264222",
"0.4925782",
"0.49190322",
"0.4918014",
"0.49137306",
"0.49060136",
"0.49054208",
"0.49044633",
"0.49039078",
"0.49039078",
"0.49039078",
"0.48990807",
"0.48990807",
"0.48933804",
"0.48908418",
"0.48887426",
"0.48839155",
"0.48800364",
"0.4878833",
"0.48740095",
"0.48734778",
"0.48727635",
"0.48715606",
"0.48642674",
"0.48633835",
"0.48589188",
"0.48584232",
"0.4846265",
"0.4840238"
]
| 0.72133255 | 0 |
Sets a new handshaker service address for testing. | public AltsChannelBuilder setHandshakerAddressForTesting(String handshakerAddress) {
HandshakerServiceChannel.setHandshakerAddressForTesting(handshakerAddress);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAddress(String address) {\n try {\n if (address == null ||\n address.equals(\"\") ||\n address.equals(\"localhost\")) {\n m_Address = InetAddress.getLocalHost().getHostName();\n }\n } catch (Exception ex) {\n log.error(\"setAddress()\",ex);\n }\n m_Address = address;\n }",
"public Builder setServerAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n serverAddress_ = value;\n onChanged();\n return this;\n }",
"T setHostName(String hostName);",
"public void setAddress(String address);",
"public void setAddress(String address);",
"public void setAddress(String address);",
"public void setAddress(String address);",
"public abstract void setServiceName(String serviceName);",
"public void setAddr(String addr) {\n this.addr = addr;\n }",
"void setAdress(String generator, String address);",
"Builder setAddress(String address);",
"public void setHost(String address) {\n final String adr = address;\n new Thread() {\n @Override\n public void run() {\n try {\n if (!host.equals(InetAddress.getByName(adr))) {\n host = InetAddress.getByName(adr);\n init();\n }\n } catch (UnknownHostException e) {\n e.printStackTrace();\n }\n }\n }.start();\n }",
"void setAddress(String address) throws IllegalArgumentException;",
"void updateCustomServerAddress(String customServerAddress);",
"public static void setRemoteAddr(String serviceUrl) {\n\t\tif (null != serviceUrl) {\n\t\t\tMDC.put(ApplicationConstants.REMOTE_ADDR, serviceUrl);\n\t\t}\n\t}",
"@Override\r\n public void setIPAddress(String address) {\r\n this.address = address;\r\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"UGSRuntimeServiceXfireImplHttpPort\".equals(portName)) {\n setUGSRuntimeServiceXfireImplHttpPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setExternalAddress(String address);",
"protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }",
"public void testSetHost() {\n }",
"public void setAddress(org.xmlsoap.schemas.wsdl.soap.TAddress address)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.soap.TAddress target = null;\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().find_element_user(ADDRESS$0, 0);\n if (target == null)\n {\n target = (org.xmlsoap.schemas.wsdl.soap.TAddress)get_store().add_element_user(ADDRESS$0);\n }\n target.set(address);\n }\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"WsUserServiceImpl\".equals(portName)) {\r\n setWsUserServiceImplEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }",
"public void setAddress(java.lang.String param) {\r\n localAddressTracker = param != null;\r\n\r\n this.localAddress = param;\r\n }",
"public static void setMockSystemService(String serviceName, Object service) {\n if (service != null) {\n sMockServiceMap.put(serviceName, service);\n } else {\n sMockServiceMap.remove(serviceName);\n }\n }",
"public void setAddress(Address address) {\n this.address = address;\n }",
"public void setAddress(Address address) {\n this.address = address;\n }",
"public void setAddress(Address address) {\n this.address = address;\n }",
"public void setAddr(String addr) {\n\t\tthis.addr = addr;\n\t}",
"public void setInternalAddress(String address);",
"public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}",
"public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}",
"default void setEventService(EventService service) {\n bind(service);\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"JobSubmission2SOAP11port_http\".equals(portName)) {\n setJobSubmission2SOAP11port_httpEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"FeeCreateSOAP\".equals(portName)) {\n setFeeCreateSOAPEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"webservice_vasmanHttpPort\".equals(portName)) {\r\n setwebservice_vasmanHttpPortEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }",
"public void setAddress(final String address){\n this.address=address;\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"GarageSeller\".equals(portName)) {\n setGarageSellerEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"WSExtensionService\".equals(portName)) {\n setWSExtensionServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"SliderSvcPort\".equals(portName)) {\n setSliderSvcPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }",
"public void setAddress(String _address){\n address = _address;\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"CancelIMSHuawei_pt\".equals(portName)) {\n setCancelIMSHuawei_ptEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setSocksProxyHost(String host) {\n this.socksProxyHost = host;\n }",
"void resetToDefaultServerAddress();",
"public void setAddress(final String address) {\n this._address = address;\n }",
"public void setHost(String host);",
"public void setAddress(String adrs) {\n address = adrs;\n }",
"public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"msgserviceHttpSoap11Endpoint\".equals(portName)) {\n setmsgserviceHttpSoap11EndpointEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public io.confluent.developer.InterceptTest.Builder setReqRemoteAddr(java.lang.String value) {\n validate(fields()[3], value);\n this.req_remote_addr = value;\n fieldSetFlags()[3] = true;\n return this;\n }",
"void setHostname(String hostname);",
"public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void setAddress(String address)\n {\n this.address = address;\n }",
"public void setAddress( java.lang.String newValue ) {\n __setCache(\"address\", newValue);\n }",
"public void setAddress(String address) {\n this.address = address;\n }",
"public void setAddress(String address) {\n this.address = address;\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"PublishAPIServiceSoap\".equals(portName)) {\r\n setPublishAPIServiceSoapEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"publicService\".equals(portName)) {\n setpublicServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setAddress(InetAddress address) {\r\n\t\tthis.address = address;\r\n\t}",
"@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}",
"public void setTestSettings(String testServerAddress) {\n INDEX_NAME = testServerAddress;\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"CenterServerImplPort\".equals(portName)) {\n setCenterServerImplPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"private void setService(Service service) {\n this.service = service;\n }",
"public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}",
"public void setAddress(String address) {\n this.address = address;\n }",
"private void setPrefAddress( String addr ) {\n\t\tmPreferences.edit().putString( PREF_ADDR, addr ).commit();\n\t}",
"public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }",
"public void setAddress(String address) { this.address = address; }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"NFEServices\".equals(portName)) {\n setNFEServicesEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"PersonController\".equals(portName)) {\n setPersonControllerEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"OutboundServiceSessionEJBBeanServicePort\".equals(portName)) {\n setOutboundServiceSessionEJBBeanServicePortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setAddress(String address) {\r\n this.address = address;\r\n }",
"public void setAddress(String address) {\r\n this.address = address;\r\n }",
"public void setAddress(String address) {\r\n this.address = address;\r\n }",
"public boolean setAddress(String address){\r\n\t\ttry {\r\n\t\t\tthis.workerobj.put(WorkerController.ADDRESS, address);\r\n\t\t\treturn true;\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"EmpleadoServiciolmpl\".equals(portName)) {\r\n setEmpleadoServiciolmplEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"dipp\".equals(portName)) {\n setdippEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setBaseAddress(int targetAddress, int baseAddress);",
"void addHost(Service newHost);",
"public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"UploaderPort\".equals(portName)) {\n setUploaderPortEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"RemoteFacadeCfc\".equals(portName)) {\r\n setRemoteFacadeCfcEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }",
"@Override\n\tpublic void setAddress(String address) {\n\t\tthis.address = address;\n\t}",
"@Override\r\n\tpublic void setAddress(String address) {\n\t\tif (address == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (address.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.address = address;\r\n\t}",
"public void setAddress(String address) throws JAXRException {\n this.address = address;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r\n \r\nif (\"WSEmisionAgricolaPort\".equals(portName)) {\r\n setWSEmisionAgricolaPortEndpointAddress(address);\r\n }\r\n else \r\n{ // Unknown Port Name\r\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\r\n }\r\n }",
"public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }",
"public void setEndpointAddress(String address) {\n\t\ttry {\n\t\t\tSmartCartService smartCartService = new SmartCartService(new URL(this.address.get(ROLE_SMARTCART)));\n\t\t\tSmartCart smartCart = smartCartService.getSmartCartPort();\n\n\t\t\tString cartID = Long.toString(System.nanoTime());\n\t\t\torg.choreos.services.client.smartcart.Product productSmartCart = new org.choreos.services.client.smartcart.Product();\n\t\t\tproductSmartCart.setBarcode(\"barcode\");\n\t\t\tproductSmartCart.setBrand(\"brand\");\n\t\t\tproductSmartCart.setName(\"name\");\n\t\t\tint quantity = 3;\n\n\t\t\t//SessionID is passed with the address parameter\n\t\t\tManageProduct manageProduct = new ManageProduct(productSmartCart, address, cartID, quantity);\n\t\t Thread threadManageProduct = new Thread(manageProduct);\n\t\t threadManageProduct.start();\n\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void setHostAddress(int value) {\n this.hostAddress = value;\n }",
"public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\n \nif (\"OrderProcessingService\".equals(portName)) {\n setOrderProcessingServiceEndpointAddress(address);\n }\n else \n{ // Unknown Port Name\n throw new javax.xml.rpc.ServiceException(\" Cannot set Endpoint Address for Unknown Port\" + portName);\n }\n }",
"public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }",
"public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }",
"public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }",
"public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }"
]
| [
"0.61326176",
"0.58593976",
"0.5837173",
"0.57967895",
"0.57967895",
"0.57967895",
"0.57967895",
"0.5760651",
"0.5756953",
"0.57039714",
"0.5699651",
"0.56793267",
"0.56564665",
"0.5651146",
"0.56358856",
"0.5593841",
"0.5566378",
"0.55657685",
"0.55657595",
"0.5551518",
"0.55506563",
"0.55383",
"0.5537379",
"0.5535513",
"0.5524155",
"0.5524155",
"0.5524155",
"0.5517138",
"0.551602",
"0.5512277",
"0.5512277",
"0.5495671",
"0.54899424",
"0.54868686",
"0.54754794",
"0.5460311",
"0.54583365",
"0.5455868",
"0.5445875",
"0.5428995",
"0.54155284",
"0.5410444",
"0.540774",
"0.5405402",
"0.5399892",
"0.53961957",
"0.5364396",
"0.5359372",
"0.5355597",
"0.53554803",
"0.5348542",
"0.5348412",
"0.5342446",
"0.5342104",
"0.5339998",
"0.5338369",
"0.53326344",
"0.53326344",
"0.5328992",
"0.53263664",
"0.5325108",
"0.5322729",
"0.5318678",
"0.53178525",
"0.53168327",
"0.53137183",
"0.53134114",
"0.5311402",
"0.5307916",
"0.53064495",
"0.5306118",
"0.53029716",
"0.52930987",
"0.52908707",
"0.52908707",
"0.52908707",
"0.52848786",
"0.5281343",
"0.5279546",
"0.5277914",
"0.5264239",
"0.5261581",
"0.5254207",
"0.5242564",
"0.5241227",
"0.52380633",
"0.5235976",
"0.52305984",
"0.52305984",
"0.52305984",
"0.52279335",
"0.521854",
"0.5215758",
"0.52085006",
"0.520827",
"0.520499",
"0.5199663",
"0.5199663",
"0.51967615",
"0.51967615"
]
| 0.71588063 | 0 |
Used the shared grpc channel to connecting to the ALTS handshaker service. | @Override
public TsiHandshaker newHandshaker() {
ManagedChannel channel = HandshakerServiceChannel.get();
return AltsTsiHandshaker.newClient(
HandshakerServiceGrpc.newStub(channel), handshakerOptions);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\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 }",
"private static EventStreamRPCConnection connectToGGCOverEventStreamIPC(SocketOptions socketOptions,\n String authToken, String ipcServerSocketPath)\n throws ExecutionException, InterruptedException {\n\n try (EventLoopGroup elGroup = new EventLoopGroup(1);\n ClientBootstrap clientBootstrap = new ClientBootstrap(elGroup, null)) {\n\n final EventStreamRPCConnectionConfig config =\n new EventStreamRPCConnectionConfig(clientBootstrap, elGroup, socketOptions, null,\n ipcServerSocketPath, DEFAULT_PORT_NUMBER,\n GreengrassConnectMessageSupplier.connectMessageSupplier(authToken));\n final CompletableFuture<Void> connected = new CompletableFuture<>();\n final EventStreamRPCConnection connection = new EventStreamRPCConnection(config);\n final boolean[] disconnected = {false};\n final int[] disconnectedCode = {-1};\n //this is a bit cumbersome but does not prevent a convenience wrapper from exposing a sync\n //connect() or a connect() that returns a CompletableFuture that errors\n //this could be wrapped by utility methods to provide a more\n connection.connect(new EventStreamRPCConnection.LifecycleHandler() {\n //only called on successful connection.\n // That is full on Connect -> ConnectAck(ConnectionAccepted=true)\n @Override\n public void onConnect() {\n connected.complete(null);\n }\n\n @Override\n public void onDisconnect(int errorCode) {\n disconnected[0] = true;\n disconnectedCode[0] = errorCode;\n }\n\n //This on error is for any errors that is connection level, including problems during connect()\n @Override\n public boolean onError(Throwable t) {\n connected.completeExceptionally(t);\n return true; //hints at handler to disconnect due to this error\n }\n });\n connected.get();\n return connection;\n }\n }",
"public IOHSctpClientChannel (MuxClient agent, long connectionId, InetSocketAddress dest, Map<ReactorProvider.SctpClientOption, Object> opts){\n\tsuper (agent, agent.getIOHEngine ().sharedSctpConnect ());\n\t_connectionId = connectionId;\n\t_soTimeout = IOHEngine.getLongProperty (IOHEngine.PROP_SCTP_CONNECT_READ_TIMEOUT, agent.getProperties (), 0L);\n\t_secure = opts.get (ReactorProvider.SctpClientOption.SECURITY) != null;\n\t_remote = dest;\n\t_toString = new StringBuilder ()\n\t .append (\"SctpClientChannel[connectionId=\").append (connectionId).append (\", remote=\").append (dest).append (\", secure=\").append (_secure).append (']')\n\t .toString ();\n\tif (_engine.uniqueSctpConnect ()){\n\t _exec = _engine.getPlatformExecutor (); // agentJoined may be scheduled\n\t _connectingAgents = new HashMap<> ();\n\t _connectingAgents.put (agent, connectionId);\n\t}\n\t_logger = _engine.getSctpLogger ();\n\tif (_logger.isInfoEnabled ())\n\t _logger.info (this+\" : connect\");\n }",
"private void connectUsingToken() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\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\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\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\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(sslContext.getSocketFactory());\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private ManagedChannel connect() throws InterruptedException {\n for (int i = 0; i < 20; i++) {\n try {\n new Socket().connect(new InetSocketAddress(\"localhost\", 8081));\n break;\n } catch (IOException e) {\n Thread.sleep(500);\n }\n }\n channel = ManagedChannelBuilder.forAddress(\"localhost\", 8081)\n .usePlaintext()\n .build();\n return channel;\n }",
"public void test() throws IOException {\n SocketChannel socketChannel = SocketChannel.open();\n socketChannel.configureBlocking(false);\n socketChannel.connect(new InetSocketAddress(BuildConfig.API_URL, ServerIP.PORT));\n\n// Complete connection\n while (!socketChannel.finishConnect()) {\n // do something until connect completed\n }\n\n// Create byte buffers to use for holding application and encoded data\n SSLSession session = sslEngine.getSession();\n ByteBuffer myAppData = ByteBuffer.allocate(session.getApplicationBufferSize());\n ByteBuffer myNetData = ByteBuffer.allocate(session.getPacketBufferSize());\n ByteBuffer peerAppData = ByteBuffer.allocate(session.getApplicationBufferSize());\n ByteBuffer peerNetData = ByteBuffer.allocate(session.getPacketBufferSize());\n\n// Do initial handshake\n// doHandshake(socketChannel, sslEngine, myNetData, peerNetData);\n\n myAppData.put(\"hello\".getBytes());\n myAppData.flip();\n\n while (myAppData.hasRemaining()) {\n // Generate SSL/TLS encoded data (handshake or application data)\n SSLEngineResult res = sslEngine.wrap(myAppData, myNetData);\n\n // Process status of call\n if (res.getStatus() == SSLEngineResult.Status.OK) {\n myAppData.compact();\n\n // Send SSL/TLS encoded data to peer\n while(myNetData.hasRemaining()) {\n int num = socketChannel.write(myNetData);\n if (num == 0) {\n // no bytes written; try again later\n }\n }\n }\n\n // Handle other status: BUFFER_OVERFLOW, CLOSED\n }\n\n // Read SSL/TLS encoded data from peer\n int num = socketChannel.read(peerNetData);\n if (num == -1) {\n // The channel has reached end-of-stream\n } else if (num == 0) {\n // No bytes read; try again ...\n } else {\n // Process incoming data\n peerNetData.flip();\n SSLEngineResult res = sslEngine.unwrap(peerNetData, peerAppData);\n\n if (res.getStatus() == SSLEngineResult.Status.OK) {\n peerNetData.compact();\n\n if (peerAppData.hasRemaining()) {\n // Use peerAppData\n }\n }\n // Handle other status: BUFFER_OVERFLOW, BUFFER_UNDERFLOW, CLOSED\n }\n }",
"public ClientLoginService(){\n this(MessageConnection.CHANNEL_DEFAULT_RELIABLE);\n }",
"private Channel connect(ChannelInitializer<SocketChannel> handler) {\n // Configure worker pools and buffer allocator\n EventLoopGroup workerGroup = new NioEventLoopGroup();\n Bootstrap b = new Bootstrap();\n b.group(workerGroup);\n b.channel(NioSocketChannel.class);\n b.option(ChannelOption.SO_KEEPALIVE, true);\n // TODO(user): Evaluate use of pooled allocator\n b.option(ChannelOption.ALLOCATOR, UnpooledByteBufAllocator.DEFAULT);\n\n // Install the handler\n b.handler(handler);\n\n // Connect and wait for connection to be available\n ChannelFuture channelFuture = b.connect(host, port);\n try {\n // Wait for the connection\n channelFuture.get(5, TimeUnit.SECONDS);\n channel = channelFuture.channel();\n ChannelFuture closeFuture = channel.closeFuture();\n closeFuture.addListener(new WorkerCleanupListener(b.group()));\n return channel;\n } catch (TimeoutException te) {\n throw new IllegalStateException(\"Timeout waiting for connection to \" + host + \":\" + port, te);\n } catch (Throwable t) {\n throw new IllegalStateException(\"Error connecting to \" + host + \":\" + port, t);\n }\n }",
"private void doHandshake()throws Exception {\n\t\tHttpClient httpClient = new HttpClient();\n\t\t// Here set up Jetty's HttpClient, for example:\n\t\t// httpClient.setMaxConnectionsPerDestination(2);\n\t\thttpClient.start();\n\n\t\t// Prepare the transport\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\tClientTransport transport = new LongPollingTransport(options, httpClient);\n\n\t\t// Create the BayeuxClient\n\t\tClientSession client = new BayeuxClient(\"http://localhost:8080/childrenguard-server/cometd\", transport);\n\n\t\tclient.handshake(null,new ClientSessionChannel.MessageListener()\n\t\t{\n\t\t public void onMessage(ClientSessionChannel channel, Message message)\n\t\t {\n\t\t \tSystem.out.println(\"fail to connect to server.\");\n\t\t if (message.isSuccessful())\n\t\t {\n\t\t \tSystem.out.println(message);\n\t\t // Here handshake is successful\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t// Here set up the BayeuxClient, for example:\n\t\t//client.getChannel(Channel.META_CONNECT).addListener(new ClientSessionChannel.MessageListener() { });\n\n\t\t\n\t}",
"public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }",
"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 }",
"private void connectUsingCertificate() {\n\t\tfinal String METHOD = \"connectUsingCertificate\";\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\t\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\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\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\t\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\t/* This isn't needed as the production messaging.internetofthings.ibmcloud.com \n\t\t\t * certificate should already be in trust chain.\n\t\t\t * \n\t\t\t * See: \n\t\t\t * http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection\n\t\t\t * https://gerrydevstory.com/2014/05/01/trusting-x509-base64-pem-ssl-certificate-in-java/\n\t\t\t * http://stackoverflow.com/questions/12501117/programmatically-obtain-keystore-from-pem\n\t\t\t * https://gist.github.com/sharonbn/4104301\n\t\t\t * \n\t\t\t * CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\t * InputStream certFile = AbstractClient.class.getResourceAsStream(\"messaging.pem\");\n\t\t\t * Certificate ca = cf.generateCertificate(certFile);\n\t\t\t *\n\t\t\t * KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t * keyStore.load(null, null);\n\t\t\t * keyStore.setCertificateEntry(\"ca\", ca);\n\t\t\t * TrustManager trustManager = TrustManagerUtils.getDefaultTrustManager(keyStore);\n\t\t\t * SSLContext sslContext = SSLContextUtils.createSSLContext(\"TLSv1.2\", null, trustManager);\n\t\t\t * \n\t\t\t */\n\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\t//Validate the availability of Server Certificate\n\t\t\t\n\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tserverCert = trimedValue(options.getProperty(\"Server-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Server Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Client Certificate\n\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tclientCert = trimedValue(options.getProperty(\"Client-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t//Validate the availability of Client Certificate Key\n\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")).contains(\".key\")){\n\t\t\t\t\tclientCertKey = trimedValue(options.getProperty(\"Client-Key\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only Certificate key in .key format is supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Key is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Certificate Password\n\t\t\ttry{\n\t\t\tif (trimedValue(options.getProperty(\"Certificate-Password\")) != null){\n\t\t\t\tcertPassword = trimedValue(options.getProperty(\"Certificate-Password\"));\n\t\t\t\t} else {\n\t\t\t\t\tcertPassword = \"\";\n\t\t\t\t}\n\t\t\t} catch (Exception e){\n\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Certificate Password is missing\", e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(getSocketFactory(serverCert, clientCert, clientCertKey, certPassword));\n\n\t\t} catch (Exception e) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, \"Unable to configure TLSv1.2 connection: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public RacingTrackClientProxy(CommunicationChannelServer sc, RacingTrackInterface racingTrackInterface) {\n this.sc = sc;\n this.racingTrackInterface = racingTrackInterface;\n }",
"public Channel connect() {\n\t\tChannelFuture channel = bootstrap.connect(new InetSocketAddress(host, port));\n\n\t\t// wait for the connection to establish\n\t\tchannel.awaitUninterruptibly();\n\n\t\tif (channel.isDone() && channel.isSuccess()) {\n\t\t\treturn channel.getChannel();\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}\n\t}",
"@Override\n protected void initChannel (SocketChannel ch) throws Exception {\n // can utilize channel to push message to different client since one channel correspond to one client\n System.out.println(\"client socket channel hashcode = \" + ch.hashCode());\n ch.pipeline().addLast(new NettyServerHandler());\n }",
"protected AltingConnectionServer(AltingChannelInput altingChannel) {\n this.altingChannel = altingChannel;\n }",
"private ManagedChannel getManagedChannel() {\n return ManagedChannelBuilder.forAddress(\"localhost\", mGrpcPortNum)\n .usePlaintext()\n .build();\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}",
"GoogleAuthClient(ManagedChannel channel, CallCredentials callCredentials) {\n this.channel = channel;\n blockingStub = PublisherGrpc.newBlockingStub(channel).withCallCredentials(callCredentials);\n }",
"protected Channel connect() {\n\t\tint port = 6501;\n\t\t\n\t\tSocket socket1 = null, socket2 = null, socket3 = null;\n\t\tboolean fullyConnected = false;\n\t\t\n\t\t// Make several attempts to connect to the server\\\n\t\tlog.debug(\"Attemping connections with server [\" + hostIP + \"] on ports \" + port + \" through \" + (port + 2) + \".\");\n\t\tfor(int attempts = 0; !fullyConnected && attempts < 3; attempts++) {\n\t\t\ttry {\n\t\t\t\t// Connecting to the server using the IP address and port\n\t\t\t\tif(socket1 == null) socket1 = new Socket(InetAddress.getByName(hostIP), port);\n\t\t\t\tif(socket2 == null) socket2 = new Socket(InetAddress.getByName(hostIP), port + 1);\n\t\t\t\tif(socket3 == null) socket3 = new Socket(InetAddress.getByName(hostIP), port + 2);\n\t\t\t\tif(socket1 != null && socket2 != null && socket3 != null) fullyConnected = true;\n\t\t\t}\n\t\t\tcatch(IOException e) {\n\t\t\t\tlog.debug(\"Attempt \" + (attempts + 1) + \" failed. \" + e);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// Wait a short period before attempting to connect again\n\t\t\t\t\tThread.sleep(50);\n\t\t\t\t} catch (InterruptedException e2) {\n\t\t\t\t\tlog.error(e2.getStackTrace(), e2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(socket1 == null || socket2 == null || socket3 == null) {\n\t\t\tlog.error(\"Connection timeout. (One or more sockets is null)\");\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\tlog.debug(\"Fully Connected:\");\n\t\t\tlog.debug(\"ADD socket [Local: \" + socket1.getLocalPort() + \" Remote: \" + socket1.getPort() + \"]\");\n\t\t\tlog.debug(\"RETRIEVE socket [Local: \" + socket2.getLocalPort() + \" Remote: \" + socket2.getPort() + \"]\");\n\t\t\tlog.debug(\"STREAM socket [Local: \" + socket3.getLocalPort() + \" Remote: \" + socket3.getPort() + \"]\");\n\t\t\tlog.debug(\"Creating channel...\");\n\t\t\tChannel channel = new Channel(socket1, socket2, socket3);\n\t\t\tlog.debug(\"Done.\");\n\t\t\treturn channel;\n\t\t}\n\t}",
"protected void configureClient(ChannelHandlerContext ctx) {\n\t\tSystem.out.println(\"Checking auth\");\n\t\t\n\t\tWebSession sess = ctx.channel().attr(WebSession.webSessionKey).get();\n\t\t\n\t\tif (sess == null) {\n\t\t\tSystem.out.println(\"Closing websocket connection, no session found\");\n\t\t\tctx.writeAndFlush(new CloseWebSocketFrame(400, \"NO SESSION FOUND\")).addListener(ChannelFutureListener.CLOSE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Got session id: \"+sess.getSessionId());\n\t\t\n\t\tAppRunner ar = ctx.channel().attr(AppPlugHandler.appPlugKey).get();\n\t\tar.addCtx(ctx);\n\t\t\n\t\tci = new ClientInvocation(ctx, ar)\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void invoke(String val)\n\t\t\t{\n\t\t\t\tthis.sendToAll(val);\n\t\t\t}\n\t\t};\n\t}",
"private synchronized void doConnect() {\n try {\n String host = agent.getHost();\n int port = agent.getPort();\n log.fine(\"Connecting to server \" + host + ':' + port);\n socket = new Socket(host, port);\n input = socket.getInputStream();\n output = new OutputStreamWriter(socket.getOutputStream());\n disconnected = false;\n new Thread(this).start();\n\n // Automatically login! -> give an auth to the agent...\n TACMessage msg = new TACMessage(\"auth\");\n msg.setParameter(\"userName\", agent.getUser());\n msg.setParameter(\"userPW\", agent.getPassword());\n msg.setMessageReceiver(agent);\n sendMessage(msg);\n\n } catch (Exception e) {\n disconnected = true;\n log.log(Level.SEVERE, \"connection to server failed:\", e);\n socket = null;\n }\n }",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n ChannelPipeline pipeline = ch.pipeline();\n\n // add HTTPS client -> proxy support\n SSLEngine engine = SSLFactory.getInstance().sslContext().createSSLEngine();\n engine.setUseClientMode(false);\n pipeline.addLast(\"ssl inbound\", new SslHandler(engine));\n\n // add handler\n InetSocketAddress remoteSocketAddress = new InetSocketAddress(directRemoteHost, directRemotePort);\n pipeline.addLast(new DirectProxyUpstreamHandler(remoteSocketAddress, true, 1048576, new RequestInterceptor(remoteSocketAddress), \" -->\"));\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}",
"void connect(String channelConfig) throws IOException;",
"public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }",
"@Override\n\tpublic void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress,\n\t\t\tChannelPromise promise) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"connect\");\n\t\tsuper.connect(ctx, remoteAddress, localAddress, promise);\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 }",
"public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }",
"@Override\n public void initChannel(final SocketChannel ch) throws Exception {\n log.info(\"Initializing channel\");\n Channels.add(ch);\n\n final ChannelPipeline pipeline = ch.pipeline();\n SslContext sslCtx = SslContextHelper.createServerSslContext(config);\n if (sslCtx != null) {\n pipeline.addLast(\"ssl\", sslCtx.newHandler(ch.alloc()));\n log.info(\"Done adding SSL Context handler to the pipeline.\");\n }\n pipeline.addLast(\"logHandler\", new LoggingHandler(LogLevel.INFO));\n pipeline.remove(\"logHandler\"); // Comment this line if you do want the log handler to be used.\n pipeline.addLast(\"app\", new EchoServerHandler()); // business logic handler.\n log.info(\"Done adding App handler to the pipeline.\");\n log.info(pipeline.toString());\n }",
"public RpcClient(ManagedChannelBuilder<?> channelBuilder) {\n channel = channelBuilder.build();\n blockingStub = PredictionServiceGrpc.newBlockingStub(channel);\n asyncStub = PredictionServiceGrpc.newStub(channel);\n modelServiceBlockingStub = ModelServiceGrpc.newBlockingStub(channel);\n modelServiceStub = ModelServiceGrpc.newStub(channel);\n channelzBlockingStub = ChannelzGrpc.newBlockingStub(channel);\n }",
"public void setSocketChannel(SocketChannel socketChannel);",
"public TelemetryClientClient()\n {\n TelemetryClient tc = new TelemetryClient();\n if (!tc.getOnlineStatus())\n tc.connect(\"a connection string\");\n\n tc.send(\"some message\");\n\n String response = tc.receive();\n\n tc.disconnect();\n\n }",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n ChannelPipeline pipeline = ch.pipeline();\n\n // add HTTPS support\n SSLEngine engine = SSLFactory.getInstance().sslContext().createSSLEngine();\n engine.setUseClientMode(false);\n pipeline.addLast(new SslHandler(engine));\n\n // add HTTP decoder and encoder\n pipeline.addLast(new HttpServerCodec());\n pipeline.addLast(new HttpObjectAggregator(Integer.MAX_VALUE));\n pipeline.addLast(new MockServerServerCodec(true));\n\n // add handlers\n pipeline.addLast(new HttpProxyHandler(logFilter, HttpProxy.this, securePort != null ? new InetSocketAddress(securePort) : null));\n }",
"public abstract void onClientConnect(ClientWrapper client);",
"SocketChannel getChannel();",
"public static void main(String[] args) throws Exception {\n\n ManagedChannel channel = NettyChannelBuilder.forAddress(\"localhost\", 6565)\n .sslContext(GrpcSslContexts.forClient().trustManager(new File(\"ca.crt\")).build())\n .build();\n\n SubscriptionServiceGrpc.SubscriptionServiceStub helloServiceStub = SubscriptionServiceGrpc\n .newStub(channel)\n .withCallCredentials(CallCredentialsHelper.basicAuth(\"sai\", \"sai123\"));\n\n long start = System.currentTimeMillis();\n SubscriptionRequest rq = SubscriptionRequest.newBuilder().setId(\"Sai\")\n .setSubscriptionScheme(SubscriptionScheme.newBuilder()\n .setSubscriptionTimeInSeconds(10).build()).setTopic(\"foo\").build();\n helloServiceStub.subscribe(rq,\n new StreamObserver<>() {\n @Override\n public void onNext(SubscriptionResponse helloResponse) {\n System.out.println(\" --- \" + helloResponse.getDataJson());\n }\n\n @Override\n public void onError(Throwable throwable) {\n System.out.println(\" ***** On Error **** \"+throwable);\n }\n\n @Override\n public void onCompleted() {\n long end = System.currentTimeMillis();\n System.out.println((end - start) / 1000);\n System.exit(0);\n }\n });\n Thread.sleep(10000000);\n }",
"protected void onJoin(String channel, String sender, String login, String hostname) {}",
"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 }",
"private void initEngine() {\n // This is our usual steps for joining a channel and starting a call.\n try {\n // Initialize the Agora RtcEngine.\n mRtcEngine = RtcEngine.create(getBaseContext(), getString(R.string.agora_app_id), mRtcEventHandler);\n\n // Set the channel profile to Live Broadcast and role to Broadcaster (in order to be heard by others).\n mRtcEngine.setChannelProfile(Constants.CHANNEL_PROFILE_LIVE_BROADCASTING);\n mRtcEngine.setClientRole(Constants.CLIENT_ROLE_BROADCASTER);\n\n // Enable video capturing and rendering once at the initialization step.\n // Note: audio recording and playing is enabled by default.\n mRtcEngine.enableVideo();\n\n // Disable the local video capturer.\n mRtcEngine.enableLocalVideo(false);\n\n /*\n // This is only needed if capturing local camera, which we currently are not.\n // Please go to this page for detailed explanation\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af5f4de754e2c1f493096641c5c5c1d8f\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_640x360,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_15,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n // This is used to set a local preview.\n // The steps setting local and remote view are very similar.\n // But note that if the local user do not have a uid or do\n // not care what the uid is, he can set his uid as ZERO.\n // The Agora server will assign one and return the uid via the event\n // handler callback function (onJoinChannelSuccess) after\n // joining the channel successfully.\n mLocalView = RtcEngine.CreateRendererView(getBaseContext());\n mLocalView.setZOrderMediaOverlay(true);\n mRemoteCameraContainer.addView(mLocalView);\n mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_HIDDEN, 0));\n */\n } catch (Exception e) {\n Log.e(TAG, Log.getStackTraceString(e));\n throw new RuntimeException(\"FATAL ERROR! Check rtc sdk init\\n\" + Log.getStackTraceString(e));\n }\n }",
"public Status connect(double timeout)\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n for(int i=0; i< numChannel; ++i) {\n pvaClientChannelArray[i] = pvaClient.createChannel(channelName[i],providerName);\n pvaClientChannelArray[i].issueConnect();\n }\n Status returnStatus = statusCreate.getStatusOK();\n Status status = statusCreate.getStatusOK();\n int numBad = 0;\n for(int i=0; i< numChannel; ++i) {\n if(numBad==0) {\n status = pvaClientChannelArray[i].waitConnect(timeout);\n } else {\n status = pvaClientChannelArray[i].waitConnect(.001);\n }\n if(status.isOK()) {\n ++numConnected;\n isConnected[i] = true;\n continue;\n }\n if(returnStatus.isOK()) returnStatus = status;\n ++numBad;\n if(numBad>maxNotConnected) break;\n }\n return numBad>maxNotConnected ? returnStatus : statusCreate.getStatusOK();\n }",
"public void mo33185a(SocketChannel socketChannel, StrategyItem strategyItem) {\n C7001a aVar;\n StringBuilder sb = new StringBuilder();\n sb.append(\"ICreateSocketChannelCallback onSuccess(\");\n sb.append(socketChannel);\n sb.append(StorageInterface.KEY_SPLITER);\n sb.append(socketChannel);\n sb.append(\")\");\n C6864a.m29286a(\"TpnsChannel\", sb.toString());\n C7005b.f23270e++;\n synchronized (C7005b.this) {\n C7005b.this.f23298y = false;\n C7005b.f23283r = 0;\n try {\n if (!C7005b.f23265G.equals(strategyItem.getServerIp())) {\n byte networkType = DeviceInfos.getNetworkType(C6973b.m29776f());\n if (networkType == 1) {\n C7005b.f23279n = C7005b.f23277l;\n } else if (networkType == 2) {\n C7005b.f23279n = C7005b.f23276k;\n } else if (networkType == 3) {\n C7005b.f23279n = C7005b.f23276k;\n } else if (networkType == 4) {\n C7005b.f23279n = C7005b.f23276k;\n }\n C7005b.f23265G = strategyItem.getServerIp();\n }\n C7005b.f23266a = 0;\n C7005b bVar = C7005b.this;\n if (!strategyItem.isHttp()) {\n aVar = new C7001a(socketChannel, C7005b.m29964a());\n } else if (strategyItem.isWap()) {\n aVar = new C7004c(socketChannel, C7005b.m29964a(), strategyItem.getServerIp(), strategyItem.getServerPort());\n } else {\n aVar = new C7003b(socketChannel, C7005b.m29964a());\n }\n bVar.f23297x = aVar;\n C7005b.this.mo33390a(true);\n C7005b.this.f23295v.clear();\n C7005b.this.f23295v.put(C7005b.this.f23297x, new ConcurrentHashMap());\n C7005b.this.f23287C = true;\n C7005b.this.f23297x.start();\n } catch (Exception e) {\n C6864a.m29302d(Constants.ServiceLogTag, \"\", e);\n }\n }\n }",
"void handshake() throws SyncConnectionException;",
"@Override\r\n\tpublic void doStart() {\n\t\tbootstrap.group(this.bossEventLoopGroup, this.workerEventLoopGroup)\r\n\t\t\t\t .channel(NioServerSocketChannel.class)\r\n\t\t\t\t //允许在同一端口上启动同一服务器的多个实例,只要每个实例捆绑一个不同的本地IP地址即可\r\n .option(ChannelOption.SO_REUSEADDR, true)\r\n //用于构造服务端套接字ServerSocket对象,标识当服务器请求处理线程全满时,用于临时存放已完成三次握手的请求的队列的最大长度\r\n// .option(ChannelOption.SO_BACKLOG, 1024) // determining the number of connections queued\r\n\r\n //禁用Nagle算法,即数据包立即发送出去 (在TCP_NODELAY模式下,假设有3个小包要发送,第一个小包发出后,接下来的小包需要等待之前的小包被ack,在这期间小包会合并,直到接收到之前包的ack后才会发生)\r\n .childOption(ChannelOption.TCP_NODELAY, true)\r\n //开启TCP/IP协议实现的心跳机制\r\n .childOption(ChannelOption.SO_KEEPALIVE, true)\r\n .childHandler(newInitializerChannelHandler());\r\n\t\ttry {\r\n\t\t\tInetSocketAddress serverAddress = new InetSocketAddress(InetAddress.getLoopbackAddress(),getPort());\r\n\t\t\tchannelFuture = bootstrap.bind(getPort());\r\n//\t\t\tchannelFuture = bootstrap.bind(serverAddress).sync();\r\n\t\t\tLOGGER.info(\"connector {} started at port {},protocal is {}\",getName(),getPort(),getSchema());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tLOGGER.error(\"error happen when connector {} starting\",getName());\r\n\t\t}\r\n\t}",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n //4. Add ChannelHandler to intercept events and allow to react on them\n ch.pipeline().addLast(new ChannelHandlerAdapter() {\n @Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n //5. Write message to client and add ChannelFutureListener to close connection once message written\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }\n });\n }",
"public void connectBot() throws Exception\n\t{\n\t\tsetVerbose(true);\n\t\tconnect(this.server);\n\t\tjoinChannel(this.channel);\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 }",
"public SocketChannelTarantoolConnection() {\n\t\tthis(\"localhost\", 33013);\n\t}",
"public static void main(String[] args) throws X509SourceException, SocketEndpointAddressException, SSLException {\n X509Source x509Source = DefaultX509Source.newSource();\n KeyManager keyManager = new SpiffeKeyManager(x509Source);\n TrustManager trustManager = new SpiffeTrustManager(x509Source);\n\n SslContext sslContext =\n GrpcSslContexts\n .forClient()\n .keyManager(keyManager)\n .trustManager(trustManager)\n .clientAuth(ClientAuth.REQUIRE)\n .build();\n\n ManagedChannel channel =\n NettyChannelBuilder\n .forAddress(\"localhost\", 9000)\n .sslContext(sslContext)\n .build();\n // mTLS using Java SPIFFE //////////////\n\n /* without mTLS\n ManagedChannel channel =\n NettyChannelBuilder\n .forAddress(\"localhost\", 9000)\n .usePlaintext()\n .build();\n */\n\n GreetingServiceGrpc.GreetingServiceBlockingStub stub = GreetingServiceGrpc.newBlockingStub(channel);\n\n HelloRequest request = HelloRequest.newBuilder().setName(\"SPIFFE Service\").build();\n HelloResponse response = stub.greeting(request);\n\n log.info(\"Message from Server: \" + response.getGreeting());\n }",
"@Test\n\tpublic void testHandshakesExecuted() throws KeyManagementException, NoSuchAlgorithmException, IOException {\n\t\tExperimentalTrustManager handler = new ExperimentalTrustManager();\n\t\tinitContext(handler);\n\t\tURL fbUrl = new URL(\"https://www.facebook.com\");\n\t\tHttpsURLConnection con = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Firstime handshake should occur\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Second handshake didn't occur because of shared ssl session\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tURL ytUrl = new URL(\"https://www.youtube.com/\");\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Connection to other location is in other ssl session so handshage occurs\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Seccond session is also shared - no handshake\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\t// once again try first connection if session was forgotten or not\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"First session is still valid - no handshage\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t}",
"protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception {\n/* 207 */ if (localAddress != null) {\n/* 208 */ doBind0(localAddress);\n/* */ }\n/* */ \n/* 211 */ boolean success = false;\n/* */ try {\n/* 213 */ javaChannel().connect(remoteAddress);\n/* 214 */ success = true;\n/* 215 */ return true;\n/* */ } finally {\n/* 217 */ if (!success) {\n/* 218 */ doClose();\n/* */ }\n/* */ } \n/* */ }",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Channel channel = ctx.getChannel();\n //session.setAttachment(new Player(session));\n Client client = new Client(channel);\n channel.setAttachment(client);\n engine.addClient(client);\n }",
"public Connection(Channel channel) {\r\n this.channel = channel;\r\n }",
"public Client(String apiAccessKey, String apiSecretKey, ClientOptions options)\n throws RpcException {\n this.apiAccessKey = apiAccessKey.trim();\n this.apiSecretKey = Base64.getDecoder().decode(apiSecretKey.trim());\n this.maxRetries = this.defaultMaxRetries;\n this.baseRetryDelay = this.defaultBaseRetryDelay;\n this.maxRetryDelay = this.defaultMaxRetryDelay;\n this.exposeRateLimitErrors = options.getExposeRateLimitErrors();\n try {\n NettyChannelBuilder builder =\n NettyChannelBuilder.forAddress(options.getHost(), options.getPort());\n if (options.getInsecure()) {\n builder = builder.usePlaintext();\n } else {\n builder = builder.useTransportSecurity().sslContext(GrpcSslContexts.forClient().build());\n }\n this.channel = builder.build();\n this.accessRequests = new AccessRequests(this.channel, this);\n this.accessRequestEventsHistory = new AccessRequestEventsHistory(this.channel, this);\n this.accessRequestsHistory = new AccessRequestsHistory(this.channel, this);\n this.accountAttachments = new AccountAttachments(this.channel, this);\n this.accountAttachmentsHistory = new AccountAttachmentsHistory(this.channel, this);\n this.accountGrants = new AccountGrants(this.channel, this);\n this.accountGrantsHistory = new AccountGrantsHistory(this.channel, this);\n this.accountPermissions = new AccountPermissions(this.channel, this);\n this.accountResources = new AccountResources(this.channel, this);\n this.accountResourcesHistory = new AccountResourcesHistory(this.channel, this);\n this.accounts = new Accounts(this.channel, this);\n this.accountsHistory = new AccountsHistory(this.channel, this);\n this.activities = new Activities(this.channel, this);\n this.controlPanel = new ControlPanel(this.channel, this);\n this.nodes = new Nodes(this.channel, this);\n this.nodesHistory = new NodesHistory(this.channel, this);\n this.organizationHistory = new OrganizationHistory(this.channel, this);\n this.peeringGroupNodes = new PeeringGroupNodes(this.channel, this);\n this.peeringGroupPeers = new PeeringGroupPeers(this.channel, this);\n this.peeringGroupResources = new PeeringGroupResources(this.channel, this);\n this.peeringGroups = new PeeringGroups(this.channel, this);\n this.queries = new Queries(this.channel, this);\n this.remoteIdentities = new RemoteIdentities(this.channel, this);\n this.remoteIdentitiesHistory = new RemoteIdentitiesHistory(this.channel, this);\n this.remoteIdentityGroups = new RemoteIdentityGroups(this.channel, this);\n this.remoteIdentityGroupsHistory = new RemoteIdentityGroupsHistory(this.channel, this);\n this.replays = new Replays(this.channel, this);\n this.resources = new Resources(this.channel, this);\n this.resourcesHistory = new ResourcesHistory(this.channel, this);\n this.roleResources = new RoleResources(this.channel, this);\n this.roleResourcesHistory = new RoleResourcesHistory(this.channel, this);\n this.roles = new Roles(this.channel, this);\n this.rolesHistory = new RolesHistory(this.channel, this);\n this.secretStores = new SecretStores(this.channel, this);\n this.secretStoresHistory = new SecretStoresHistory(this.channel, this);\n this.workflows = new Workflows(this.channel, this);\n this.workflowApproversHistory = new WorkflowApproversHistory(this.channel, this);\n this.workflowAssignmentsHistory = new WorkflowAssignmentsHistory(this.channel, this);\n this.workflowRolesHistory = new WorkflowRolesHistory(this.channel, this);\n this.workflowsHistory = new WorkflowsHistory(this.channel, this);\n } catch (Exception e) {\n throw Plumbing.convertExceptionToPorcelain(e);\n }\n this.testOptions = new HashMap<String, Object>();\n }",
"public void connected(Service service, String localConnectorName, int peerId) {\n \n }",
"public ClientWorker(ServerSocketChannel serverChannel){\n this.serverChannel = serverChannel;\n }",
"@Override\n\tpublic void onOpen( ServerHandshake handshakedata ) {\n\t\tlog.info(\"opened connection\");\n\t\t// if you plan to refuse connection based on ip or httpfields overload: onWebsocketHandshakeReceivedAsClient\n\t}",
"@Override\n protected void initChannel(NioSocketChannel nioSocketChannel) throws Exception {\n nioSocketChannel.pipeline().addLast(new FirstClientHandler());\n }",
"private SocketChannel connectToJavaServer() throws IOException {\n\t\t\tSocketChannel java_server_socket_channel;\n\t\t\tjava_server_socket_channel = SocketChannel.open();\n\t\t\tjava_server_socket_channel.configureBlocking(true);\n\t\t\tjava_server_socket_channel.connect(new InetSocketAddress(JAVA_SERVER_INET_ADDRESS, JAVA_PORT));\n\t\t\tjava_server_socket_channel.configureBlocking(false);\n\t\t\treturn java_server_socket_channel;\n\t\t}",
"abstract ManagedChannel createChannel(List<ServerInfo> servers);",
"@Override\n public void channelActive(final ChannelHandlerContext ctx) throws UnknownHostException {\n System.err.println(\"处于活连接\");\n //ctx.writeAndFlush(\"Welcome to secure chat service!\\n\");\n }",
"public void startListeningForConnection() {\n startInsecureListeningThread();\n }",
"ClientConnection connection();",
"void connectServiceUnknownThread() {\n mMainHandler.post(() -> {\n try {\n final IAccessibilityServiceClient serviceInterface;\n final IBinder service;\n synchronized (mLock) {\n serviceInterface = mServiceInterface;\n mService = (serviceInterface == null) ? null : mServiceInterface.asBinder();\n service = mService;\n }\n // If the serviceInterface is null, the UiAutomation has been shut down on\n // another thread.\n if (serviceInterface != null) {\n service.linkToDeath(this, 0);\n serviceInterface.init(this, mId, mOverlayWindowToken);\n }\n } catch (RemoteException re) {\n Slog.w(LOG_TAG, \"Error initialized connection\", re);\n destroyUiAutomationService();\n }\n });\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.507 -0500\", hash_original_method = \"AB6DAC74FF8B2E5B9FEB974F6DCFF3D6\", hash_generated_method = \"87BDA9A9972ECA7310DB39F217B483FA\")\n \npublic void connect(AsyncService srcAsyncService, Messenger dstMessenger) {\n connect(srcAsyncService, srcAsyncService.getHandler(), dstMessenger);\n }",
"public void open(String address, int port, Handler<AsyncResult<AmqpBridge>> openHandler) {\n\n this.client = ProtonClient.create(this.vertx);\n\n // TODO: check correlation between MQTT and AMQP keep alive\n ProtonClientOptions clientOptions = new ProtonClientOptions();\n clientOptions.setHeartbeat(this.mqttEndpoint.keepAliveTimeSeconds() * 1000);\n\n String userName = (this.mqttEndpoint.auth() != null) ? this.mqttEndpoint.auth().getUsername() : null;\n String password = (this.mqttEndpoint.auth() != null) ? this.mqttEndpoint.auth().getPassword() : null;\n // NOTE : if username/password are null then Vert.x Proton just provides SASL ANONYMOUS as supported mechanism\n // otherwise it provides PLAIN with username/password provided here\n this.client.connect(clientOptions, address, port, userName, password, done -> {\n\n String clientIdentifier = this.mqttEndpoint.clientIdentifier();\n if (done.succeeded()) {\n\n this.connection = done.result();\n this.connection\n .closeHandler(remoteClose -> handleRemoteConnectionClose(this.connection, remoteClose))\n .disconnectHandler(this::handleRemoteDisconnect)\n .open();\n\n // setup MQTT endpoint handlers and AMQP endpoints\n this.setupMqttEndpoint();\n this.setupAmqpEndpoits();\n\n // setup a Future for completed connection steps with all services\n // with AMQP_WILL and AMQP_LIST/AMQP_SUBSCRIPTIONS or AMQP_CLOSE handled\n Future<AmqpSubscriptionsMessage> connectionFuture = Future.future();\n connectionFuture.setHandler(ar -> {\n\n try {\n if (ar.succeeded()) {\n\n this.rcvEndpoint.publishHandler(this::publishHandler);\n this.rcvEndpoint.pubrelHandler(this::pubrelHandler);\n\n AmqpSubscriptionsMessage amqpSubscriptionsMessage = ar.result();\n\n if (amqpSubscriptionsMessage != null) {\n this.mqttEndpoint.accept(!amqpSubscriptionsMessage.topicSubscriptions().isEmpty());\n // added topic subscriptions of a previous session in the local collection\n this.grantedQoSLevels = amqpSubscriptionsMessage.topicSubscriptions()\n .stream()\n .collect(Collectors.toMap(amqpTopicSubscription -> amqpTopicSubscription.topic(),\n amqpTopicSubscription -> amqpTopicSubscription.qos()));\n\n } else {\n this.mqttEndpoint.accept(false);\n this.grantedQoSLevels = new HashMap<>();\n }\n LOG.info(\"CONNACK [{}] to MQTT client {} at {}\", CONNECTION_ACCEPTED.ordinal(),\n clientIdentifier, this.remoteAddress);\n\n // open unique client publish address receiver\n this.rcvEndpoint.openPublish();\n\n openHandler.handle(Future.succeededFuture(AmqpBridge.this));\n\n } else {\n\n this.mqttEndpoint.reject(CONNECTION_REFUSED_SERVER_UNAVAILABLE);\n LOG.error(\"CONNACK [{}] to MQTT client {} at {}\", CONNECTION_REFUSED_SERVER_UNAVAILABLE.ordinal(),\n clientIdentifier, this.remoteAddress);\n\n openHandler.handle(Future.failedFuture(ar.cause()));\n }\n }\n finally\n {\n openedFuture.complete();\n }\n });\n\n // step 1 : send AMQP_WILL to Last Will and Testament Service\n Future<ProtonDelivery> willFuture = Future.future();\n // if remote MQTT has specified the will\n if (this.mqttEndpoint.will().isWillFlag()) {\n\n // sending AMQP_WILL\n MqttWill will = this.mqttEndpoint.will();\n\n AmqpWillMessage amqpWillMessage =\n new AmqpWillMessage(will.isWillRetain(),\n will.getWillTopic(),\n MqttQoS.valueOf(will.getWillQos()),\n Buffer.buffer(will.getWillMessageBytes()));\n\n // specified link name for the Last Will and Testament Service as MQTT clientid\n ProtonLinkOptions linkOptions = new ProtonLinkOptions();\n linkOptions.setLinkName(clientIdentifier);\n\n // setup and open AMQP endpoints to Last Will and Testament Service\n ProtonSender wsSender = this.connection.createSender(AmqpLwtServiceEndpoint.LWT_SERVICE_ENDPOINT, linkOptions);\n this.lwtEndpoint = new AmqpLwtServiceEndpoint(wsSender);\n\n this.lwtEndpoint.open();\n this.lwtEndpoint.sendWill(amqpWillMessage, willFuture);\n\n } else {\n\n // otherwise just complete the Future\n willFuture.complete();\n }\n\n willFuture.compose(v -> {\n\n // handling AMQP_SUBSCRIPTIONS reply from Subscription Service\n this.rcvEndpoint.subscriptionsHandler(amqpSubscriptionsMessage -> {\n\n LOG.info(\"Session present: {}\", !amqpSubscriptionsMessage.topicSubscriptions().isEmpty());\n LOG.info(amqpSubscriptionsMessage.toString());\n\n connectionFuture.complete(amqpSubscriptionsMessage);\n });\n\n // step 2 : send AMQP_CLOSE or AMQP_LIST (based on \"clean session\" flag) to Subscription Service\n Future<ProtonDelivery> sessionFuture = Future.future();\n\n if (this.mqttEndpoint.isCleanSession()) {\n\n // sending AMQP_CLOSE\n AmqpCloseMessage amqpCloseMessage =\n new AmqpCloseMessage(clientIdentifier);\n\n this.ssEndpoint.sendClose(amqpCloseMessage, closeAsyncResult -> {\n\n // in case of AMQP_CLOSE, the connection completes on its disposition\n // no other AMQP message will be delivered by Subscription Service (i.e. AMQP_SUBSCRIPTIONS)\n if (closeAsyncResult.succeeded()) {\n connectionFuture.complete();\n } else {\n connectionFuture.fail(closeAsyncResult.cause());\n }\n });\n\n } else {\n\n // sending AMQP_LIST\n AmqpListMessage amqpListMessage =\n new AmqpListMessage(clientIdentifier);\n\n this.ssEndpoint.sendList(amqpListMessage, sessionFuture);\n }\n\n return sessionFuture;\n\n }).compose(v -> {\n // nothing here !??\n }, connectionFuture);\n\n // timeout for the overall connection process\n vertx.setTimer(AMQP_SERVICES_CONNECTION_TIMEOUT, timer -> {\n if (!connectionFuture.isComplete()) {\n connectionFuture.fail(\"Timeout on connecting to AMQP services\");\n }\n });\n\n } else {\n\n LOG.error(\"Error connecting to AMQP services ...\", done.cause());\n final MqttConnectReturnCode code;\n if (done.cause() instanceof SecurityException) {\n // error on the SASL mechanism side\n code = CONNECTION_REFUSED_NOT_AUTHORIZED;\n } else {\n code = CONNECTION_REFUSED_SERVER_UNAVAILABLE;\n\n }\n this.mqttEndpoint.reject(code);\n\n openHandler.handle(Future.failedFuture(done.cause()));\n\n LOG.info(\"CONNACK [{}] to MQTT client {} at {}\", code.ordinal(),\n clientIdentifier, this.remoteAddress);\n }\n\n });\n\n }",
"String getServerConnectionChannelName();",
"public Channel authenticate(String username) throws IOException {\n\t\tif(successfullyInitialized) {\n\t\t\ttry {\n\t\t\t\tChannel aesChannel = null;\n\t\t\t\tclientChallenge = createChallenge();\n\t\t\t\t\n\t\t\t\tsendFirstMessage(username, clientChallenge);\n\t\t\t\tString receivedSecondMessage = receiveSecondMessage();\n\t\t\t\t\n\t\t\t\tif(secondMessageIsValid(receivedSecondMessage, clientChallenge)) {\n\t\t\t\t\tString[] splitSecondMessage = receivedSecondMessage.split(\"\\\\s\"); \n\t\t\t\t\t\n\t\t\t\t\taesChannel = setupClientAES(splitSecondMessage);\n\t\t\t\t\tsendThirdMessage(aesChannel, splitSecondMessage);\n\n\t\t\t\t} else {\n\t\t\t\t\tchannel.close();\n\t\t\t\t}\n\t\t\t\treturn aesChannel;\n\t\t\t} catch(Exception e) {\n\t\t\t\tchannel.close();\n\t\t\t\tthrow new IOException(\"Couldn't authenticate user: \" + e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\tthrow new IOException(\"Authentication failed: Couldn't initialize secure channel!\");\n\t}",
"void startHelloSender(Channel channel);",
"public AltsChannelBuilder setHandshakerAddressForTesting(String handshakerAddress) {\n HandshakerServiceChannel.setHandshakerAddressForTesting(handshakerAddress);\n return this;\n }",
"public abstract ManagedChannelBuilder<?> delegate();",
"protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}",
"private void initializeChannelize() {\n ChannelizeConfig channelizeConfig = new ChannelizeConfig.Builder(this)\n .setAPIKey(Config.API_KEY)\n .setLoggingEnabled(true).build();\n Channelize.initialize(channelizeConfig);\n Channelize.getInstance().setCurrentUserId(ChannelizePreferences.getCurrentUserId(getContext()));\n if (Channelize.getInstance().getCurrentUserId() != null\n && !Channelize.getInstance().getCurrentUserId().isEmpty()) {\n Channelize.connect();\n }\n\n ChannelizeUIConfig channelizeUIConfig = new ChannelizeUIConfig.Builder()\n .enableCall(true)\n .build();\n ChannelizeUI.initialize(channelizeUIConfig);\n channelize = Channelize.getInstance();\n\n ChannelizeUtils channelizeUtils = ChannelizeUtils.getInstance();\n channelizeUtils.setOnConversationClickListener(this);\n }",
"public void mo33395e() {\n if (XGPushConfig.enableDebug) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Action -> checkAndSetupClient( tpnsClient = \");\n sb.append(this.f23297x);\n sb.append(\", isClientCreating = \");\n sb.append(this.f23298y);\n sb.append(\")\");\n C6864a.m29286a(\"TpnsChannel\", sb.toString());\n }\n synchronized (this) {\n if (this.f23297x == null && !this.f23298y) {\n this.f23298y = true;\n try {\n C6938d.m29638a().mo33180a(this.f23288H);\n } catch (Exception e) {\n C6864a.m29302d(\"TpnsChannel\", \"createOptimalSocketChannel error\", e);\n }\n } else if (!this.f23298y && this.f23297x != null && !this.f23297x.mo33374d()) {\n C6864a.m29308i(\"TpnsChannel\", \"The socket Channel is unconnected\");\n try {\n this.f23297x.mo33373c();\n C6938d.m29638a().mo33180a(this.f23288H);\n } catch (Exception e2) {\n C6864a.m29302d(Constants.ServiceLogTag, \"createOptimalSocketChannel error\", e2);\n }\n }\n }\n }",
"protected void initNotificationServiceStub() {\n notificationServiceStub =\n NotificationServiceGrpc.newBlockingStub(\n ManagedChannelBuilder.forTarget(\n StringUtils.isEmpty(currentUri) ? SERVER_URI : currentUri)\n .usePlaintext()\n .build());\n if (enableHa) {\n notificationServiceStub =\n wrapBlockingStub(\n notificationServiceStub,\n StringUtils.isEmpty(currentUri) ? SERVER_URI : currentUri,\n livingMembers,\n enableHa,\n retryIntervalMs,\n retryTimeoutMs);\n }\n }",
"public void testChannelHopping() throws RemoteException {\n List<Channel> channelList = mBinder.getChannelList();\n for(Channel channel : channelList) {\n mBinder.joinChannel(channel.getId());\n }\n try {\n Thread.sleep(TEST_OBSERVATION_DELAY);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private Connection() {\n\n//==================================================//\n\n\n //==============================//\n\n // client = new AsyncHttpClient(true, 0, 443);\n client = new AsyncHttpClient();\n client.setSSLSocketFactory(MySSLSocketFactory.getFixedSocketFactory());\n contentType = \"application/json\";\n client.setUserAgent(System.getProperty(\"http.agent\"));\n //Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0\"\n // client.setUserAgent(\"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0\");\n client.setTimeout(20 * 1000);\n client.setResponseTimeout(20 * 1000);\n client.setConnectTimeout(20 * 1000);\n // client.setEnableRedirects(true);\n\n // Log.e(\"agentss\",System.getProperty(\"https.agent\"));\n gson = new GsonBuilder().serializeNulls().create();\n //client.getHttpClient().getConnectionManager().shutdown();\n/*\n try {\n KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());\n trustStore.load(null, null);\n MySSLSocketFactory sf = new MySSLSocketFactory(trustStore);\n sf.setHostnameVerifier(MySSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n client.setSSLSocketFactory(sf);\n }\n catch (Exception e) {\n }\n */\n\n }",
"public interface SocketControl {\n\n /**\n * 获取服务的IP和端口\n * @return 格式:ip:port,如127.0.0.1:8080\n */\n String getIpPort();\n\n /**\n * 获取服务的ServiceId\n * @return 服务的ServiceId\n */\n String getServiceId();\n\n /**\n * 获取服务的InstanceId\n * @return 服务的InstanceId\n */\n String getInstanceId();\n\n\n /**\n * 获取模块名称,也可以直接调用getIpPort()\n * @return 模块名称\n */\n String getModelName();\n\n\n /**\n * 模块下连接的标示\n * @param channel 管道对象\n * @return uk\n */\n String getUniqueKey(Channel channel);\n\n\n /**\n * 模块下连接的标示\n * @param ctx 管道对象\n * @return uk\n */\n String getUniqueKey(ChannelHandlerContext ctx);\n\n\n /**\n * 绑定key\n * @param ctx 当前连接对象\n * @param key key\n */\n void bindKey(ChannelHandlerContext ctx,String key);\n\n /**\n * 绑定key\n * @param ctx 当前连接对象\n * @param key key\n */\n void bindKey(Channel ctx,String key);\n\n /**\n * 获取key\n * @param ctx 当前链接对象\n * @return key\n */\n String getKey(Channel ctx);\n\n /**\n * 获取key\n * @param ctx 当前链接对象\n * @return key\n */\n String getKey(ChannelHandlerContext ctx);\n\n\n /**\n * 重置心跳时间\n * @param ctx 当前连接对象\n * @param heartTime 心跳时间(秒)\n */\n void resetHeartTime(Channel ctx,int heartTime);\n\n\n\n}",
"public void connect() throws IOException {\n this.session =\n SlackSessionFactory.createWebSocketSlackSession(this.apiToken);\n\n // Listen for when we connect\n session.addSlackConnectedListener(new SlackConnectedListener() {\n @Override\n public void onEvent(SlackConnected event, SlackSession session) {\n PlackBot.this.onConnect();\n }\n });\n\n // Listen for when we're disconnected\n session.addSlackDisconnectedListener(new SlackDisconnectedListener() {\n @Override\n public void onEvent(SlackDisconnected event, SlackSession session) {\n PlackBot.this.onDisconnect();\n }\n });\n\n // Listen for when we join a channel\n session.addChannelJoinedListener(new SlackChannelJoinedListener() {\n @Override\n public void onEvent(SlackChannelJoined event, SlackSession session) {\n SlackChannel channel = event.getSlackChannel();\n PlackBot.this.onJoin(\n channel.getName(),\n PlackBot.this.getNick(),\n PlackBot.this.getLogin(),\n PlackBot.this.getName()\n );\n }\n });\n\n // Listen for when we leave a channel\n session.addChannelLeftListener(new SlackChannelLeftListener() {\n @Override\n public void onEvent(SlackChannelLeft event, SlackSession session) {\n SlackChannel channel = event.getSlackChannel();\n PlackBot.this.onPart(\n channel.getName(),\n PlackBot.this.getNick(),\n PlackBot.this.getLogin(),\n PlackBot.this.getName()\n );\n }\n });\n\n // Listen for new messages\n session.addMessagePostedListener(new SlackMessagePostedListener() {\n @Override\n public void onEvent(SlackMessagePosted event, SlackSession session) {\n SlackChannel channel = event.getChannel();\n String messageContent = event.getMessageContent();\n SlackUser user = event.getSender();\n\n SlackMessagePosted.MessageSubType messageSubType =\n event.getMessageSubType();\n\n if (messageSubType == SlackMessagePosted.MessageSubType.CHANNEL_TOPIC) {\n // String topic = (String)event.getJsonSource().get(\"topic\");\n JSONObject jsonObject = new JSONObject(event.getJsonSource());\n\n String topic = StringEscapeUtils.unescapeHtml4(\n jsonObject.getString(\"topic\")\n );\n\n PlackBot.this.onTopic(\n channel.getName(),\n topic,\n user.getUserName(),\n 0,\n true\n );\n } else if (channel.isDirect()) {\n PlackBot.this.onPrivateMessage(\n user.getUserName(),\n user.getUserMail(),\n user.getRealName(),\n messageContent\n );\n } else if (messageSubType == SlackMessagePosted.MessageSubType.UNKNOWN) {\n PlackBot.this.onMessage(\n channel.getName(),\n user.getUserName(),\n user.getUserMail(),\n user.getRealName(),\n messageContent\n );\n }\n }\n });\n\n // Listen for new reactions added\n session.addReactionAddedListener(new ReactionAddedListener() {\n @Override\n public void onEvent(ReactionAdded event, SlackSession session) {\n String emojiName = event.getEmojiName();\n SlackUser user = event.getUser();\n SlackUser itemUser = event.getItemUser();\n SlackChannel channel = event.getChannel();\n\n // reactions don't always have a channel or item user, set defaults\n String userName = (user != null) ? user.getUserName() : null;\n String itemUserName = (itemUser != null) ? itemUser.getUserName() : null;\n String channelName = (channel != null) ? channel.getName() : null;\n\n PlackBot.this.onReactionAdded(\n channelName,\n userName,\n itemUserName,\n emojiName\n );\n }\n });\n\n // Listen for new reactions removed\n session.addReactionRemovedListener(new ReactionRemovedListener() {\n @Override\n public void onEvent(ReactionRemoved event, SlackSession session) {\n String emojiName = event.getEmojiName();\n SlackUser user = event.getUser();\n SlackUser itemUser = event.getItemUser();\n SlackChannel channel = event.getChannel();\n\n // reactions don't always have a channel or item user, set defaults\n String userName = (user != null) ? user.getUserName() : null;\n String itemUserName = (itemUser != null) ? itemUser.getUserName() : null;\n String channelName = (channel != null) ? channel.getName() : null;\n\n PlackBot.this.onReactionRemoved(\n channelName,\n userName,\n itemUserName,\n emojiName\n );\n }\n });\n\n this.session.connect();\n }",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(new TimeServerHandler());\n }",
"Channel channel() {\n return channel;\n }",
"protected abstract void onConnect();",
"private void initBinding() throws IOException {\n serverSocketChannel.bind(new InetSocketAddress(0));\n serverSocketChannel.configureBlocking(false);\n serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT);\n\n sc.configureBlocking(false);\n var key = sc.register(selector, SelectionKey.OP_CONNECT);\n uniqueContext = new ClientContext(key, this);\n key.attach(uniqueContext);\n sc.connect(serverAddress);\n }",
"public void connect() throws Exception {\n connectCount.incrementAndGet();\n LOG.trace(\"Connecting JGroups-raft Channel {} with cluster name: {}, raftHandle: {} and using config: {}\",\n getEndpointUri(), clusterName, resolvedRaftHandle, channelProperties == null ? \"default\" : channelProperties);\n resolvedRaftHandle.channel().connect(clusterName);\n }",
"private void joinChannel() {\n // Get the User Id for the current user\n final String userId = mUser.getUid();\n // User Id set to 0 for auto handling by Agora\n int uid = 0;\n // Token object\n RtcTokenBuilder token = new RtcTokenBuilder();\n // Time stamp used for length of token\n int timestamp = (int)(System.currentTimeMillis() / 1000 + expirationTimeInSeconds);\n\n String uId = Objects.requireNonNull(mAuth.getCurrentUser()).getUid();\n\n addCallToDb(uId); // Add current user to db for active calls\n\n try {\n // Create a token using Agora Sdk\n agora_token = token.buildTokenWithUid(getString(R.string.agora_app_id), getString(R.string.agora_app_certificate),\n channelName, uid, RtcTokenBuilder.Role.Role_Publisher, timestamp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n // Join the channel with the given token and channel name\n mRtcEngine.joinChannel(agora_token, channelName, \"\", uid);\n }",
"private void requestConnection() {\n getGoogleApiClient().connect();\n }",
"public static void sycNewTraderClient() {\n\t\tString key = \"123\";\n\t\ttry {\n\t\t\tif(newTradeServiceLock.tryLock(5, TimeUnit.SECONDS)){\n\t\t\t\ttry{\n\t\t\t\t\tif(mapTradeService.containsKey(key)){\n\t\t\t\t\t\t//客户端发起重连,但是服务端没有断开\n\t\t\t\t\t}\n\t\t\t\t}finally{\n\t\t\t\t\tnewTradeServiceLock.unlock();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.err.println(\"线程已经超时返回! key : \"+key);\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"public HttpServerChannelInitializer(\n final ProxyAuthorizationManager authorizationManager, \n final ChannelGroup channelGroup, \n final ChainProxyManager chainProxyManager, \n final HandshakeHandlerFactory handshakeHandlerFactory,\n final RelayChannelInitializerFactory relayChannelInitializerFactory, \n final EventLoopGroup clientWorker) {\n \n this.handshakeHandlerFactory = handshakeHandlerFactory;\n this.relayChannelInitializerFactory = relayChannelInitializerFactory;\n this.clientWorker = clientWorker;\n \n log.debug(\"Creating server with handshake handler: {}\", \n handshakeHandlerFactory);\n this.authenticationManager = authorizationManager;\n this.channelGroup = channelGroup;\n this.chainProxyManager = chainProxyManager;\n //this.ksm = ksm;\n \n if (LittleProxyConfig.isUseJmx()) {\n setupJmx();\n }\n }",
"public interface Handshaker {\n /**\n * Performs handshake. This method is blocking. After it has successfully finished, input/output\n * should be ready for normal message-based communication. In case method fails with IOException,\n * input and output are returned in undefined state.\n * @throws IOException if handshake process failed physically (input or output has unexpectedly\n * closed) or logically (if unexpected message came from remote).\n */\n void perform(LineReader input, OutputStream output) throws IOException;\n}",
"@Override\n protected void connectionEstablished()\n {\n peer.resetConnectionClosed();\n\n // send our handshake directly as it doesn't fit into peer message\n // and there is always space in send buffer on new connection\n //enqueue(pmCache.handshake(torrent.getTorrentId(), torrent.getClientId()));\n }",
"public void connect()\n {\n \tLog.d(TAG, \"connect\");\n \t\n \tif(!this.isConnected ) {\n mContext.bindService(new Intent(\"com.google.tungsten.LedService\"), mServiceConnection, \n \t\tContext.BIND_AUTO_CREATE);\n \t}\n }",
"@Override\n public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Logger.println(\"Connection from: \" + ((InetSocketAddress) ctx.getChannel().getRemoteAddress()).getAddress().getHostAddress()\n \t\t+ \" - Hostname: \" + ((InetSocketAddress) ctx.getChannel().getRemoteAddress()).getHostName());\n }",
"private Connector[] listen(final Config cfg) { OpenID and certain web-based single-sign-on products can cause\n // some very long headers, especially in the Referer header. We\n // need to use a larger default header size to ensure we have\n // the space required.\n //\n final int requestHeaderSize =\n cfg.getInt(\"httpd\", \"requestheadersize\", 16386);\n final URI[] listenUrls = listenURLs(cfg);\n final boolean reuseAddress = cfg.getBoolean(\"httpd\", \"reuseaddress\", true);\n final int acceptors = cfg.getInt(\"httpd\", \"acceptorThreads\", 2);\n final AuthType authType = ConfigUtil.getEnum(cfg, \"auth\", null, \"type\", AuthType.OPENID);\n\n reverseProxy = isReverseProxied(listenUrls);\n final Connector[] connectors = new Connector[listenUrls.length];\n for (int idx = 0; idx < listenUrls.length; idx++) {\n final URI u = listenUrls[idx];\n final int defaultPort;\n final SelectChannelConnector c;\n\n if (AuthType.CLIENT_SSL_CERT_LDAP.equals(authType) && ! \"https\".equals(u.getScheme())) {\n throw new IllegalArgumentException(\"Protocol '\" + u.getScheme()\n + \"' \" + \" not supported in httpd.listenurl '\" + u\n + \"' when auth.type = '\" + AuthType.CLIENT_SSL_CERT_LDAP.name()\n + \"'; only 'https' is supported\");\n }\n\n if (\"http\".equals(u.getScheme())) {\n defaultPort = 80;\n c = new SelectChannelConnector();\n } else if (\"https\".equals(u.getScheme())) {\n final SslSelectChannelConnector ssl = new SslSelectChannelConnector();\n final File keystore = getFile(cfg, \"sslkeystore\", \"etc/keystore\");\n String password = cfg.getString(\"httpd\", null, \"sslkeypassword\");\n if (password == null) {\n password = \"gerrit\";\n }\n ssl.setKeystore(keystore.getAbsolutePath());\n ssl.setTruststore(keystore.getAbsolutePath());\n ssl.setKeyPassword(password);\n ssl.setTrustPassword(password);\n\n if (AuthType.CLIENT_SSL_CERT_LDAP.equals(authType)) {\n ssl.setNeedClientAuth(true);\n }\n\n defaultPort = 443;\n c = ssl;\n\n } else if (\"proxy-http\".equals(u.getScheme())) {\n defaultPort = 8080;\n c = new SelectChannelConnector();\n c.setForwarded(true);\n\n } else if (\"proxy-https\".equals(u.getScheme())) {\n defaultPort = 8080;\n c = new SelectChannelConnector() {\n @Override\n public void customize(EndPoint endpoint, Request request)\n throws IOException {\n request.setScheme(\"https\");\n super.customize(endpoint, request);\n }\n };\n c.setForwarded(true);\n\n } else {\n throw new IllegalArgumentException(\"Protocol '\" + u.getScheme() + \"' \"\n + \" not supported in httpd.listenurl '\" + u + \"';\"\n + \" only 'http', 'https', 'proxy-http, 'proxy-https'\"\n + \" are supported\");\n }\n\n try {\n if (u.getHost() == null && (u.getAuthority().equals(\"*\") //\n || u.getAuthority().startsWith(\"*:\"))) {\n // Bind to all local addresses. Port wasn't parsed right by URI\n // due to the illegal host of \"*\" so replace with a legal name\n // and parse the URI.\n //\n final URI r =\n new URI(u.toString().replace('*', 'A')).parseServerAuthority();\n c.setHost(null);\n c.setPort(0 < r.getPort() ? r.getPort() : defaultPort);\n } else {\n final URI r = u.parseServerAuthority();\n c.setHost(r.getHost());\n c.setPort(0 < r.getPort() ? r.getPort() : defaultPort);\n }\n } catch (URISyntaxException e) {\n throw new IllegalArgumentException(\"Invalid httpd.listenurl \" + u, e);\n }\n\n c.setRequestHeaderSize(requestHeaderSize);\n c.setAcceptors(acceptors);\n c.setReuseAddress(reuseAddress);\n c.setStatsOn(false);\n\n connectors[idx] = c;\n }\n return connectors;\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 }",
"@Override\n\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\tserviceMessenger = new Messenger(service);\n\t\tsendMessageToService(ConnectionService.GET_MESSENGER);\n\t\tsendMessageToService(ConnectionService.CONNECT, host, port, key,\n\t\t\t\tinterval);\n\t}",
"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 }",
"public void connectApiClient()\n {\n googleApiClient.connect();\n }",
"@Test\n public void testControlResponses() throws Exception {\n createTethering(\"xyz\", NAMESPACES, REQUEST_TIME, DESCRIPTION);\n acceptTethering();\n TetheringControlResponseV2 expectedResponse =\n new TetheringControlResponseV2(Collections.emptyList(), TetheringStatus.ACCEPTED);\n\n expectTetheringControlResponse(\"xyz\", HttpResponseStatus.OK, GSON.toJson(expectedResponse));\n\n // Queue up a couple of messages for the peer\n MessagePublisher publisher =\n new MultiThreadMessagingContext(messagingService).getMessagePublisher();\n String topicPrefix = cConf.get(Constants.Tethering.CLIENT_TOPIC_PREFIX);\n String topic = topicPrefix + \"xyz\";\n TetheringLaunchMessage launchMessage =\n new TetheringLaunchMessage.Builder()\n .addFileNames(DistributedProgramRunner.LOGBACK_FILE_NAME)\n .addFileNames(DistributedProgramRunner.PROGRAM_OPTIONS_FILE_NAME)\n .addFileNames(DistributedProgramRunner.APP_SPEC_FILE_NAME)\n .addRuntimeNamespace(\"default\")\n .build();\n TetheringControlMessage message1 =\n new TetheringControlMessage(\n TetheringControlMessage.Type.START_PROGRAM, Bytes.toBytes(GSON.toJson(launchMessage)));\n publisher.publish(NamespaceId.SYSTEM.getNamespace(), topic, GSON.toJson(message1));\n ProgramRunInfo programRunInfo =\n new ProgramRunInfo.Builder()\n .setNamespace(\"ns\")\n .setApplication(\"app\")\n .setVersion(\"1.0\")\n .setProgramType(\"workflow\")\n .setProgram(\"program\")\n .setRun(\"runId\")\n .build();\n TetheringControlMessage message2 =\n new TetheringControlMessage(\n TetheringControlMessage.Type.STOP_PROGRAM, Bytes.toBytes(GSON.toJson(programRunInfo)));\n publisher.publish(NamespaceId.SYSTEM.getNamespace(), topic, GSON.toJson(message2));\n\n // Poll the server\n HttpRequest.Builder builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/channels/xyz\"))\n .withBody(GSON.toJson(new TetheringControlChannelRequest(null, null)));\n\n // Response should contain 2 messages\n HttpResponse response = HttpRequests.execute(builder.build());\n TetheringControlResponseV2 controlResponse =\n GSON.fromJson(response.getResponseBodyAsString(), TetheringControlResponseV2.class);\n List<TetheringControlMessageWithId> controlMessages = controlResponse.getControlMessages();\n\n Assert.assertEquals(HttpResponseStatus.OK.code(), response.getResponseCode());\n Assert.assertEquals(2, controlMessages.size());\n Assert.assertEquals(message1, controlMessages.get(0).getControlMessage());\n Assert.assertEquals(message2, controlMessages.get(1).getControlMessage());\n\n // Poll again with lastMessageId set to id of last message received from the server\n String lastMessageId = controlMessages.get(1).getMessageId();\n builder =\n HttpRequest.builder(HttpMethod.POST, config.resolveURL(\"tethering/channels/xyz\"))\n .withBody(GSON.toJson(new TetheringControlChannelRequest(lastMessageId, null)));\n\n // There should be no more messages queued up for this client\n response = HttpRequests.execute(builder.build());\n controlResponse =\n GSON.fromJson(response.getResponseBodyAsString(), TetheringControlResponseV2.class);\n Assert.assertEquals(HttpResponseStatus.OK.code(), response.getResponseCode());\n Assert.assertEquals(0, controlResponse.getControlMessages().size());\n }",
"public void createClientFromCredential() {\n WebPubSubServiceAsyncClient serverClient = new WebPubSubServiceClientBuilder()\n .connectionString(\"<connection-string>\")\n .hub(\"<hub>>\")\n .buildAsyncClient();\n\n // wrap WebPubSubServiceAsyncClient.getClientAccessToken as WebPubSubClientCredential\n WebPubSubClientCredential clientCredential = new WebPubSubClientCredential(Mono.defer(() ->\n serverClient.getClientAccessToken(new GetClientAccessTokenOptions()\n .setUserId(\"<user-name>\")\n .addRole(\"webpubsub.joinLeaveGroup\")\n .addRole(\"webpubsub.sendToGroup\"))\n .map(WebPubSubClientAccessToken::getUrl)));\n\n // create WebPubSub client\n WebPubSubClient client = new WebPubSubClientBuilder()\n .credential(clientCredential)\n .buildClient();\n // END: readme-sample-createClientFromCredential\n }"
]
| [
"0.578669",
"0.5729698",
"0.5695198",
"0.5691567",
"0.5610262",
"0.55960214",
"0.5593804",
"0.5546561",
"0.551364",
"0.5493506",
"0.54663825",
"0.54573154",
"0.5451318",
"0.54483575",
"0.5446184",
"0.5433207",
"0.53862494",
"0.5346873",
"0.53305477",
"0.52987903",
"0.5293167",
"0.5276288",
"0.5270161",
"0.52610457",
"0.5230275",
"0.5220238",
"0.5204518",
"0.517911",
"0.51790607",
"0.5144813",
"0.5082426",
"0.50714934",
"0.5068938",
"0.5053342",
"0.50498885",
"0.5049623",
"0.50453556",
"0.5014213",
"0.5005716",
"0.50048125",
"0.5004746",
"0.5003641",
"0.49963436",
"0.4988483",
"0.49840626",
"0.49793518",
"0.49747998",
"0.49720162",
"0.4950281",
"0.4946681",
"0.49445423",
"0.49349892",
"0.49326295",
"0.4929118",
"0.4923503",
"0.49231172",
"0.4922876",
"0.4922465",
"0.49189532",
"0.49031767",
"0.4902306",
"0.4901483",
"0.48955444",
"0.48912746",
"0.48895258",
"0.48840594",
"0.48574302",
"0.48511514",
"0.4847782",
"0.48357543",
"0.48320514",
"0.48300132",
"0.482321",
"0.48219213",
"0.48208022",
"0.4815787",
"0.48084432",
"0.48061532",
"0.48055732",
"0.4804265",
"0.47930714",
"0.47914436",
"0.47868106",
"0.4779732",
"0.47773886",
"0.47690362",
"0.4766797",
"0.4763725",
"0.47529498",
"0.4746259",
"0.47432",
"0.47424516",
"0.47423756",
"0.47422212",
"0.4741569",
"0.47395706",
"0.47366145",
"0.47337377",
"0.473261",
"0.4731494"
]
| 0.6439071 | 0 |
initialize the schedule according to user input. | public static Schedule initializeSchedule(String[] args) {
if (args.length == 5) { // Level 3
RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]),
Double.parseDouble(args[3]), Double.parseDouble(args[4]), 0);
return new Schedule(r, args[1], args[2], "1", "0", "0", "0");
} else if (args.length == 6) { // Level 4
RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]),
Double.parseDouble(args[4]), Double.parseDouble(args[5]), 0);
return new Schedule(r, args[1], args[3], args[2], "0", "0", "0");
} else if (args.length == 8) { // Level 5
RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]),
Double.parseDouble(args[4]), Double.parseDouble(args[5]),
Double.parseDouble(args[6]));
return new Schedule(r, args[1], args[3], args[2], args[7], "0", "0");
} else if (args.length == 9) { // Level 6
RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]),
Double.parseDouble(args[5]), Double.parseDouble(args[6]),
Double.parseDouble(args[7]));
return new Schedule(r, args[1], args[4], args[3], args[8], args[2], "0");
} else if (args.length == 10) { // Level 7
RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]),
Double.parseDouble(args[5]), Double.parseDouble(args[6]),
Double.parseDouble(args[7]));
return new Schedule(r, args[1], args[4], args[3], args[8], args[2], args[9]);
} else {
throw new IllegalArgumentException("Invalid Input");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Schedule() {\r\n }",
"Schedule createSchedule();",
"protected abstract void scheduler_init();",
"public void generateSchedule(){\n\t\t\n\t}",
"public Schedule() {\n this(DataManager.readAll());\n }",
"MMSchedule() {\n mScheduleID = MMUtilities.ID_DOES_NOT_EXIST;\n mOfMedicationID = 0;\n mForPersonID = 0;\n mTimeDue = 0;\n mStrategy = MMMedication.sSET_SCHEDULE_FOR_MEDICATION;\n }",
"private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}",
"void setSchedule(java.lang.String schedule);",
"public void doInitialSchedules() {\n ravenna.schedule();\n milan.schedule();\n venice.schedule();\n\n //Scheduling the public transportaton\n ravenna_milan.activate();\n milan_venice.activate();\n venice_ravenna.activate();\n }",
"@Override\r\n\tpublic void doInitialSchedules() {\n\t}",
"public Schedule() {\r\n\t\tschedule = new boolean[WEEK_DAYS][];\r\n\t\tfor(int i = 0; i < WEEK_DAYS; i++)\r\n\t\t\tschedule[i] = new boolean[SEGMENTS_PER_DAY];\r\n\t\tlisteners = new ArrayList<ScheduleChangeListener>();\r\n\t}",
"private void initialize(){\n// Schedule initializeList1, initializeList2, initializeList3, initializeList4,initializeList5,\n// initializeList6,initializeList7,initializeList8,initializeList9,\n// initializeList10,initializeList11,initializeList12,initializeList13,\n// initializeList14,initializeList15,initializeList16,initializeList17,\n// initializeList18,initializeList19,initializeList20,initializeList21,initializeList22;\n// initializeList1= new Schedule(\"A001\",\"LimKH\", 1629,\"A01\", \"pewdiepie\", \"0162313212\", \"Delivering\",\"5min\");\n// initializeList2= new Schedule(\"A002\",\"LimKW\", 1111,\"A02\", \"MsTingTT\", \"012432434\", \"Delivering\",\"5min\");\n// initializeList3= new Schedule(\"A003\",\"LowSK\",3456, \"A03\", \"AhLiao\", \"01312321213\", \"Delivering\",\"5min\");\n// initializeList4= new Schedule(\"A004\",\"NgWD\",9909, \"A04\", \"Kazuma\", \"015213797\", \"Delivering\",\"5min\"); \n// initializeList5= new Schedule(\"A005\",\"LooJW\",1233,\"A05\",\"Kalima\",\"01124356\",\"Delivering\",\"5min\");\n// initializeList6= new Schedule(\"A006\",\"LimJJ\",1012,\"A06\", \"LeongFoei\", \"01239909\", \"Delivering\",\"5min\");\n// initializeList7= new Schedule(\"A007\",\"MahHW\",3757,\"A07\",\"KongKong\",\"012283747\",\"Delivering\",\"5min\");\n// initializeList8= new Schedule(\"A008\",\"LoiKH\",9610,\"A08\",\"MigMing\",\"012636383\",\"Delivering\",\"5min\"); \n// initializeList9= new Schedule(\"A009\",\"LimNF\",5566,\"A09\",\"MsTing\",\"0192726363\",\"Delivering\",\"5min\");\n// initializeList10= new Schedule(\"A010\",\"LohKC\",6969,\"A10\",\"KitKat\",\"017265353\",\"Delivering\",\"5min\");\n// \n// initializeList11= new Schedule(\"A011\",\"LimKH\", 1629,\"A11\", \"Kari\", \"012213778\", \"Delivering\",\"5min\");\n// initializeList12= new Schedule(\"A012\",\"LimKW\", 1111,\"A12\", \"Yolo\", \"0162328212\", \"Delivering\",\"5min\");\n// initializeList13= new Schedule(\"A013\",\"LowSK\", 3456,\"A13\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList14= new Schedule(\"A015\",\"LowSK\", 3456,\"A14\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList15= new Schedule(\"A016\",\"LooJW\", 1233,\"A15\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList16= new Schedule(\"A017\",\"LimJJ\", 1012,\"A16\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList17= new Schedule(\"A018\",\"LimJJ\", 1012,\"A17\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList18= new Schedule(\"A019\",\"LoiKH\", 9610,\"A18\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList19= new Schedule(\"A020\",\"LimNF\", 5566,\"A19\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// initializeList20= new Schedule(\"A021\",\"LimNF\", 5566,\"A20\", \"Hahaha\", \"0198377213\", \"Delivering\",\"5min\");\n// \n// //completed jobs\n// initializeList21= new Schedule(\"A022\",\"LimKH\", 1629,\"A21\", \"Doggo\", \"0198377213\", \"Completed\",\"5min\");\n// initializeList22= new Schedule(\"A023\",\"LimKH\", 1629,\"A22\", \"Cloud\", \"0198377213\", \"Completed\",\"5min\");\n// scheduleList.addSchedule(initializeList1);\n// scheduleList.addSchedule(initializeList2);\n// scheduleList.addSchedule(initializeList3);\n// scheduleList.addSchedule(initializeList4);\n// scheduleList.addSchedule(initializeList5);\n// scheduleList.addSchedule(initializeList6);\n// scheduleList.addSchedule(initializeList7);\n// scheduleList.addSchedule(initializeList8);\n// scheduleList.addSchedule(initializeList9);\n// scheduleList.addSchedule(initializeList10);\n// scheduleList.addSchedule(initializeList11);\n// scheduleList.addSchedule(initializeList12);\n// scheduleList.addSchedule(initializeList13);\n// scheduleList.addSchedule(initializeList14);\n// scheduleList.addSchedule(initializeList15);\n// scheduleList.addSchedule(initializeList16);\n// scheduleList.addSchedule(initializeList17); \n// scheduleList.addSchedule(initializeList18);\n// scheduleList.addSchedule(initializeList19);\n// scheduleList.addSchedule(initializeList20);\n// scheduleList.addSchedule(initializeList21);\n// scheduleList.addSchedule(initializeList22);\n \n \n\n for(int i = 0; i<scheduleList.getNumberOfSchedule();i++){\n int staff = scheduleList.getSchedule(i).getStaffID();\n jcbDeliveryman.addItem(staff);\n \n String order = scheduleList.getSchedule(i).getOrderID();\n jcbOrderNo.addItem(order);\n\n }\n \n \n// jcbDeliveryman.addActionListener(jcbOrderNo);\n// for(int i = 0; i<scheduleList.getNumberOfSchedule();i++){\n// jcbOrderNo.addItem(scheduleList.getSchedule(i).getOrderID());\n// }\n }",
"public ScheduleEvent()\n\t{\n\n\t}",
"public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}",
"public void setSchedule(SpaceSchedule s) {\n\t\t\n\t}",
"public void doInitialSchedules() {\r\n\r\n\t\t// create the servicer, here make a vancarrier\r\n\t\tfor (int i = 0; i < vcNumber; i++) {\r\n\t\t\tVC vancarrier = new VC(this, \"Van Carrier\", true);\r\n\r\n\t\t\t// put the vancarrier on duty with placing it on the event-list\r\n\t\t\t// first\r\n\t\t\t// it will deactivate itself into waiting status\r\n\t\t\t// for the first truck right after activation\r\n\t\t\tvancarrier.activate();\r\n\t\t}\r\n\r\n\t\t// create a truck spring\r\n\t\tTruckGenerator firstarrival = new TruckGenerator(this, \"TruckArrival\", false);\r\n\r\n\t\t// place the truck generator on the event-list, in order to\r\n\t\t// start producing truck arrivals when the first truck comes\r\n\t\t// therefore we must use \"schedule\" instead of \"activate\"\r\n\t\tfirstarrival.schedule(new TimeSpan(getTruckArrivalTime()));\r\n\r\n\t}",
"public Schedule() {\n\t\tcourses = new ArrayList<Course>();\n\t}",
"public void InitialiseScheduling(StatisticsModel model) {\n DependencyGraph dg = DependencyGraph.getGraph();\n\n dg.setFilePath(_argumentsParser.getFilePath());\n dg.parse();\n System.out.println(\"Calculating schedule, Please wait ...\");\n\n // initialise store and thread pool\n RecursionStore.constructRecursionStoreSingleton(model, _argumentsParser.getProcessorNo(), dg.remainingCosts(), dg.getNodes().size(), _argumentsParser.getMaxThreads());\n _pool = Executors.newFixedThreadPool(_argumentsParser.getMaxThreads());\n\n //start greedy search\n GreedyState greedyState = new GreedyState(dg, this);\n _pool.execute(greedyState);\n\n RecursionStore.setMaxThreads(_maxThreads);\n }",
"public void initSchedule(int initCities) {\r\n availableCities = initCities;\r\n currentSchedule = new ArrayList<>();\r\n for (int i = 0; i < AVAILABLE_CITIES.length; i++) {\r\n currentSchedule.add(new Destination(AVAILABLE_CITIES[i], DISTANCE_TO_CITIES[i], experiencePerPassenger[i]));\r\n }\r\n }",
"public abstract void schedule();",
"public void buildSchedule() {\n class SimulationStep extends BasicAction {\n public void execute() {\n SimUtilities.shuffle(rabbitList);\n for (int i = 0; i < rabbitList.size(); i++) {\n RabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n rabbit.step();\n }\n\n reapDeadRabbits();\n\n displaySurf.updateDisplay();\n }\n }\n schedule.scheduleActionBeginning(0, new SimulationStep());\n\n class GrassGrowth extends BasicAction {\n public void execute() {\n space.spreadGrass(grassGrowthRate);\n }\n }\n schedule.scheduleActionBeginning(0, new GrassGrowth());\n\n class UpdatePopulationPlot extends BasicAction {\n public void execute() {\n populationPlot.step();\n }\n }\n schedule.scheduleActionAtInterval(5, new UpdatePopulationPlot());\n }",
"public Scheduler(String intro)\n\t{\n\t\tprocessTable = null;\n\t\tcycles = 0;\n\t\tturnaroundNumerator = 0;\n\t\tprocessesCompleted = 0;\n\t\tschedulerIntroduction = intro;\n\t}",
"private void buildSchedule() {\n\t\tclass RabbitsGrassSimulationStep extends BasicAction {\n\t\t\tpublic void execute() {\n\t\t\t\tSimUtilities.shuffle(rabbitList);\n\t\t\t\tfor (int i = 0; i < rabbitList.size(); i++) {\n\t\t\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\t\t\trabbit.step();\n\t\t\t\t}\n\n\t\t\t\treapDeadRabbits();\n\t\t\t\tgiveBirthToRabbits();\n\n\t\t\t\trabbitSpace.spreadGrass(growthRateGrass);\n\n\t\t\t\tdisplaySurf.updateDisplay();\n\t\t\t}\n\t\t}\n\n\t\tschedule.scheduleActionBeginning(0, new RabbitsGrassSimulationStep());\n\n\t\tclass UpdateNumberOfRabbitsInSpace extends BasicAction {\n\t\t\tpublic void execute() {\n\t\t\t\trabbitsAndGrassInSpace.step();\n\t\t\t}\n\t\t}\n\n\t\tschedule.scheduleActionAtInterval(1, new UpdateNumberOfRabbitsInSpace());\n\n\t}",
"public Scheduler()\n {\n this.id = \"\"+ hashCode();\n register();\n }",
"abstract public void computeSchedule();",
"public Roysched() {\r\n initComponents();\r\n loadRoySched();\r\n }",
"public ScheduleExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}",
"public void setSchedule(CanaryScheduleOutput schedule) {\n this.schedule = schedule;\n }",
"TimerSchedule createTimerSchedule();",
"@Override\n public void init(String planQueuePath,\n ReservationSchedulerConfiguration conf) {\n }",
"public Schedule(List<Integer> SprinklerIDs,int timeOfDay, int minute, int duration, List<Integer> daysOfWeek) {\n\t\tsuper();\n\t\tTimeOfDay = timeOfDay;\n\t\tMinute = minute;\n\t\tDuration = duration;\n\t\tDaysOfWeek = daysOfWeek;\n\t\tSprinklerIDs = SprinklerIDs;\n\t\tType=ScheduleType.TIMED;\n\t}",
"public void startScheduling() {\n new Thread(new Runnable() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(30000);\n Calendar c = Calendar.getInstance();\n int min = c.get(Calendar.MINUTE);\n if (((min % 10) == 0) || (min == 0)) {\n boolean action = getLightOnWhenMovementDetectedSchedule().getCurrentSchedule();\n if (action) {\n configureSwitchOnWhenMovement(true);\n } else {\n configureSwitchOnWhenMovement(false);\n }\n action = getLightSchedule().getCurrentSchedule();\n if (action) {\n switchOn();\n } else {\n switchOff();\n }\n saveHistoryData();\n }\n Thread.sleep(30000);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteHomeConnectionException e) {\n e.printStackTrace();\n } catch (RemoteHomeManagerException e) {\n e.printStackTrace();\n }\n }\n }\n }).start(); \n }",
"public Schedule(String id, String eventName, String description,\n\t\t\tString location, String eventType, Date startDate, Date endDate,\n\t\t\tString startTime, String endTime, Integer remindBefore, \n\t\t\tString remindTimeType, Integer repeatEvery, boolean sunday, \n\t\t\tboolean monday, boolean tuesday, boolean wednesday, \n\t\t\tboolean thursday, boolean friday, boolean saturday,String assignedUser) {\n\t\tthis.id = id;\n\t\tthis.eventName = eventName;\n\t\tthis.description = description;\n\t\tthis.location = location;\n\t\tthis.eventType = eventType;\n\t\tthis.startDate = startDate;\n\t\tthis.endDate = endDate;\n\t\tthis.startTime = startTime;\n\t\tthis.endTime = endTime;\n\t\tthis.remindBefore = remindBefore;\n\t\tthis.remindTimeType = remindTimeType;\n\t\tthis.assignedUser = assignedUser;\n\t\t//this.scheduleEventId = scheduleEventId;\n\t\t//this.scheduleEventName = scheduleEventName;\n\t\tthis.repeatEvery = repeatEvery;\n\t\tdays.setSunday(sunday);\n\t\tdays.setMonday(monday);\n\t\tdays.setTuesday(tuesday);\n\t\tdays.setWednesday(wednesday);\n\t\tdays.setThursday(thursday);\n\t\tdays.setFriday(friday);\n\t\tdays.setSaturday(saturday);\n\t}",
"public void initAlgorithm() {\n executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 1, 5,TimeUnit.MINUTES);\n// executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 2, 10,TimeUnit.SECONDS);\n\n // every day perform random thought dice roll\n // also roll for random time: 10am - 9pm\n Cron4j.scheduler.schedule(Cron4j.EVERY_DAY_AT_10_AM, () -> {\n int produceThoughtDice = (int) (Math.random() * 3); // 66% yes, 33% no\n if (produceThoughtDice < 2) {\n int timeShift = (int) (Math.random() * 12); // 0-11\n executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, timeShift, TimeUnit.HOURS);\n } else {\n System.out.println(\"Thought not produced today because of the dice: \" + produceThoughtDice);\n }\n });\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n// executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, 0, TimeUnit.SECONDS);\n// });\n\n // every week perform a statistical overview\n // should be not very long and with a lot of variations\n Cron4j.scheduler.schedule(Cron4j.EVERY_WEEK_SUNDAY_18_PM, () -> {\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n executor.schedule(scheduledThoughtsProducer::periodicalWeeklyThoughts, 0, TimeUnit.SECONDS);\n });\n\n // start the scheduler\n Cron4j.scheduler.start();\n }",
"public void setupCalendar() { \n\t\tcal = whenIsIt();\n\t\tLocale here = Locale.US;\n\t\tthisMonth = cal.getDisplayName(2, Calendar.LONG_STANDALONE, here);\n\t\tdate = cal.get(5); //lesson learned: if it's a number do this\n\t\t//ADD CODE FOR ORDINALS HERE\n\t\tyear = cal.get(1);\n\t\tthisHour = cal.get(10);\n\t\tthisMinute = cal.get(12);\n\t\tthisSecond = cal.get(13);\n\t\tamPm = cal.getDisplayName(9, Calendar.SHORT, here);\n\t\tthisDay = thisMonth +\" \"+ addOrdinal(date) + \", \" + year;\n\t\tcurrentTime = fix.format(thisHour) + \":\" + fix.format(thisMinute) + \":\" + fix.format(thisSecond) + \" \" + amPm;\n\t}",
"public void setSchedule(Schedule newSchedule) {\n\n schedule = newSchedule;\n }",
"public void setSchedule(String timeframe) {\n\t\t\n\t}",
"@Test\n public void createFormSceduleEntry(){\n ScheduleEntry entry = new ScheduleEntry(\"9;00AM\", new SystemCalendar(2018,4,25));\n }",
"public void schedule(String id, String[] schedule) {\n\t}",
"public void setTime() {\r\n\t\tArrayList<String> slots = new ArrayList<String>();\r\n\t\tString inSched = getWorkHours();\r\n\t\tswitch(inSched) {\r\n\t\tcase \"6AM-3PM\":\r\n\t\t\tArrayList<String> sched1 = new ArrayList<String>(Arrays.asList(\"06AM\",\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"12PM\",\"1PM\",\"2PM\"));\r\n\t\t\tslots = sched1;\r\n\t\t\tbreak;\r\n\t\tcase \"7AM-4PM\":\r\n\t\t\tArrayList<String> sched2 = new ArrayList<String>(Arrays.asList(\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"1PM\",\"2PM\",\"3PM\"));\r\n\t\t\tslots = sched2;\r\n\t\t\tbreak;\r\n\t\tcase \"8AM-5PM\":\r\n\t\t\tArrayList<String> sched3 = new ArrayList<String>(Arrays.asList(\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"2PM\",\"3PM\",\"4PM\"));\r\n\t\t\tslots = sched3;\r\n\t\t\tbreak;\r\n\t\tcase \"9AM-6PM\":\r\n\t\t\tArrayList<String> sched4 = new ArrayList<String>(Arrays.asList(\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"3PM\",\"4PM\",\"5PM\"));\r\n\t\t\tslots = sched4;\r\n\t\t\tbreak;\r\n\t\tcase \"10AM-7PM\":\r\n\t\t\tArrayList<String> sched5 = new ArrayList<String>(Arrays.asList(\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"2PM\",\"4PM\",\"5PM\",\"6PM\"));\r\n\t\t\tslots = sched5;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tslots.add(\"No appointments available for this date.\");\r\n\t\t}\r\n\t\tthis.timeAvailable = slots;\r\n\t}",
"public void setSchedule(String pName, int month, int hour, int day)\r\n {\r\n switch (month)\r\n {\r\n case 1:\r\n Jan[hour][day] = pName;\r\n \r\n case 2:\r\n Feb[hour][day] = pName;\r\n \r\n case 3:\r\n Mar[hour][day] = pName;\r\n \r\n case 4:\r\n Apr[hour][day] = pName;\r\n \r\n case 5:\r\n May[hour][day] = pName;\r\n \r\n case 6:\r\n Jun[hour][day] = pName;\r\n \r\n case 7:\r\n Jul[hour][day] = pName;\r\n \r\n case 8:\r\n Aug[hour][day] = pName;\r\n \r\n case 9:\r\n Sep[hour][day] = pName;\r\n \r\n case 10:\r\n Oct[hour][day] = pName;\r\n \r\n case 11:\r\n Nov[hour][day] = pName;\r\n \r\n case 12:\r\n Dec[hour][day] = pName;\r\n \r\n default:\r\n System.out.println(\"For the month you must use only the first\"\r\n + \"three letters of the month and it must be \"\r\n + \"capitalized\\n\"); \r\n } \r\n }",
"@Test\n public void createScheduleEntry(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n }",
"public Schedule(int timeOfDay, int minute, int duration, List<Integer> daysOfWeek, List<SprinklerGroup> sprinklerGroups) {\n\t\tsuper();\n\t\t\n\t\t\tTimeOfDay = timeOfDay;\n\t\t\tMinute = minute;\n\t\t\tDuration = duration;\n\t\t\tDaysOfWeek = daysOfWeek;\n\t\t\tSprinklerGroups = sprinklerGroups;\n\t\t\tType=ScheduleType.TIMED;\t\n\t\t\n\t}",
"public void applyToSchedule(Schedule sched) {\n String repeat = m_repeatCombo.getSelectedItem().toString();\n for (Schedule.Repeat r : Schedule.Repeat.values()) {\n if (r.toString().equals(repeat)) {\n sched.setRepeatUnit(r);\n break;\n }\n }\n if (m_intervalField.getText() != null\n && m_intervalField.getText().length() > 0) {\n sched.setRepeatValue(Integer.parseInt(m_intervalField.getText()));\n } else if (sched.getRepeatUnit() == Schedule.Repeat.MINUTES\n || sched.getRepeatUnit() == Schedule.Repeat.HOURS\n || sched.getRepeatUnit() == Schedule.Repeat.DAYS) {\n // set a default value of 5\n sched.setRepeatValue(5);\n m_intervalField.setText(\"5\");\n }\n\n java.util.List<Integer> dow = new java.util.ArrayList<Integer>();\n if (m_sunCheck.isSelected()) {\n dow.add(Calendar.SUNDAY);\n }\n if (m_monCheck.isSelected()) {\n dow.add(Calendar.MONDAY);\n }\n if (m_tueCheck.isSelected()) {\n dow.add(Calendar.TUESDAY);\n }\n if (m_wedCheck.isSelected()) {\n dow.add(Calendar.WEDNESDAY);\n }\n if (m_thuCheck.isSelected()) {\n dow.add(Calendar.THURSDAY);\n }\n if (m_friCheck.isSelected()) {\n dow.add(Calendar.FRIDAY);\n }\n if (m_satCheck.isSelected()) {\n dow.add(Calendar.SATURDAY);\n }\n sched.setDayOfTheWeek(dow);\n\n if (sched.getRepeatUnit() == Schedule.Repeat.MONTHLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched.setDayOfTheMonth(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n }\n }\n\n if (sched.getRepeatUnit() == Schedule.Repeat.YEARLY) {\n if (m_dayYearNumBut.isSelected()) {\n if (m_dayYearNumField.getText() != null\n && m_dayYearNumField.getText().length() > 0) {\n sched\n .setRepeatValue(Integer.parseInt(m_dayYearNumField.getText()));\n }\n } else {\n for (Schedule.OccurrenceWithinMonth o : Schedule.OccurrenceWithinMonth\n .values()) {\n if (o.equals(m_occurrenceInMonth.getSelectedItem().toString())) {\n sched.setOccurrenceWithinMonth(o);\n break;\n }\n }\n // day of the week is already set\n\n sched.setMonthOfTheYear(m_month.getSelectedIndex());\n }\n }\n }",
"public void init() {\r\n\r\n\t\t// dater collectors\r\n\t\t//trucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\t//trucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\twaitTimeHistogram = new Histogram(this, \"Truck Wait Times\", 0, 16, 10, true, false);\r\n\r\n\t\t// distributions DEFAULT\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.0, 7.0, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 3.0, true, false);\r\n\r\n\t\t// distributions PROBLEM DESCRIPTION\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.5,6.5, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\t\tserviceTime = new ContDistExponential(this, \"ServiceTimeStream\", 4.0, true, false);\r\n\t\ttruckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\r\n\t\t// queues\r\n\t\ttruckQueue = new ProcessQueue<Truck>(this, \"Truck Queue\", true, false);\r\n\t\tidleVCQueue = new ProcessQueue<VC>(this, \"idle VC Queue\", true, false);\r\n\t}",
"@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}",
"@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}",
"private MySchedule getRandomInitialSchedule() {\r\n\t\tArrayList<MyCourse> courses = new ArrayList<MyCourse>();\r\n\t\tfor (MyClass aClass : this.allClasses)\r\n\t\t\tcourses.add(new MyCourse(aClass,\r\n\t\t\t\tthis.getRandomRoom(),\r\n\t\t\t\tthis.getRandomInstructor(),\r\n\t\t\t\tthis.getRandomTimeSlot()));\r\n\t\tMySchedule result = new MySchedule(courses);\r\n\t\treturn result.getEnergy() > 0 ? result : this.getRandomInitialSchedule();\r\n\t}",
"public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}",
"public PurchaseSchedule(String shoeType, int tick) {\r\n\t\tthis.shoeType = shoeType;\r\n\t\tthis.tick = tick;\r\n\t}",
"public Schedule (Employee employee, Date startDate, Date endDate) {\n this.employee = employee;\n this.startDate = startDate;\n this.endDate = endDate;\n }",
"public Schedule(Date startTime) {\n\t\tAssert.notNull(startTime, \"Scheduled time reqd\");\n\t\tthis.startTime = startTime;\n\t\tthis.repeatAfter = -1;\n\t}",
"public static void main(String[] args) {\n\n int n = in.nextInt();\n int q = in.nextInt();\n int[] arr = new int[n];\n\n for (int i = 0; i < n; i++) {\n arr[i] = in.nextInt();\n }\n DiskSchedulerInfo dsi = new DiskSchedulerInfo(arr, q, 200);\n ISchedule[] scs = new ISchedule[]{\n new FCFS(dsi),\n new SSTF(dsi),\n new SCAN(dsi),\n new C_SCAN(dsi),\n new LOOK(dsi),\n new C_LOOK(dsi),\n new Optimized(dsi)\n };\n for (ISchedule sc : scs) {\n System.out.println(\"---------------------------\");\n System.out.println(sc.getClass().getName());\n System.out.println(\"---------------------------\");\n\n sc.simulate();\n Movement.printMovements(dsi.headStart, sc.getMovements());\n System.out.print(\"Order of processing: \");\n for (int v : sc.getOrderOfProcessing()) {\n System.out.print(v + \" \");\n }\n System.out.println();\n System.out.println(\"Total Movement is: \" + Movement.getTotalMovements(sc.getMovements()));\n }\n }",
"public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }",
"private void init() {\n setMinutes(new int[] {});\n setHours(new int[] {});\n setDaysOfMonth(new int[] {});\n setMonths(new int[] {});\n setDaysOfWeek(new int[] {});\n }",
"@Before\n public void before() {\n Study studyToCreate = TestUtils.getValidStudy(this.getClass());\n studyToCreate.setExternalIdRequiredOnSignup(false);\n studyToCreate.setExternalIdValidationEnabled(false);\n studyToCreate.setTaskIdentifiers(Sets.newHashSet(\"taskId\"));\n study = studyService.createStudy(studyToCreate);\n\n Schedule schedule = new Schedule();\n schedule.setLabel(\"Schedule Label\");\n schedule.setScheduleType(ScheduleType.RECURRING);\n schedule.setInterval(\"P1D\");\n schedule.setExpires(\"P1D\");\n schedule.addTimes(\"10:00\");\n schedule.addActivity(new Activity.Builder().withLabel(\"label\").withTask(\"taskId\").build());\n \n SimpleScheduleStrategy strategy = new SimpleScheduleStrategy(); \n strategy.setSchedule(schedule);\n \n schedulePlan = new DynamoSchedulePlan();\n schedulePlan.setLabel(\"Label\");\n schedulePlan.setStudyKey(study.getIdentifier());\n schedulePlan.setStrategy(strategy);\n schedulePlan = schedulePlanService.createSchedulePlan(study, schedulePlan);\n }",
"@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tArrayList<JCheckBox> mCheckList = sPanel.getmCheckBoxList();\r\n\t\t\t\t\t\tArrayList<JCheckBox> fCheckList = sPanel.getfCheckBoxList();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tHashMap<String,Schedule> scheduleMap = new HashMap<String,Schedule>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString fromHourStr = sPanel.getFromhour().getSelectedItem().toString();\r\n\t\t\t\t\t\tint fromHour = fromHourStr.charAt(0)=='0'?Integer.valueOf(\"\" + fromHourStr.charAt(1)):Integer.valueOf(fromHourStr);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString fromMinStr = sPanel.getFrommin().getSelectedItem().toString();\r\n\t\t\t\t\t\tint fromMin = fromMinStr.charAt(0)=='0'?Integer.valueOf(\"\" + fromMinStr.charAt(1)):Integer.valueOf(fromMinStr);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString toHourStr = sPanel.getTohour().getSelectedItem().toString();\r\n\t\t\t\t\t\tint toHour = toHourStr.charAt(0)=='0'?Integer.valueOf(\"\" + toHourStr.charAt(1)):Integer.valueOf(toHourStr);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString toMinStr = sPanel.getTomin().getSelectedItem().toString();\r\n\t\t\t\t\t\tint toMin = toMinStr.charAt(0)=='0'?Integer.valueOf(\"\" + toMinStr.charAt(1)):Integer.valueOf(toMinStr);\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(JCheckBox c: mCheckList)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(c.isSelected())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSchedule s = new Schedule();\r\n\t\t\t\t\t\t\t\ts.setHourFrom(fromHour);\r\n\t\t\t\t\t\t\t\ts.setMinuteFrom(fromMin);\r\n\t\t\t\t\t\t\t\ts.setHourTo(toHour);\r\n\t\t\t\t\t\t\t\ts.setMinuteTo(toMin);\r\n\t\t\t\t\t\t\t\tscheduleMap.put(c.getText(), s);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(JCheckBox c: fCheckList)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(c.isSelected())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSchedule s = new Schedule();\r\n\t\t\t\t\t\t\t\ts.setHourFrom(fromHour);\r\n\t\t\t\t\t\t\t\ts.setMinuteFrom(fromMin);\r\n\t\t\t\t\t\t\t\ts.setHourTo(toHour);\r\n\t\t\t\t\t\t\t\ts.setMinuteTo(toMin);\r\n\t\t\t\t\t\t\t\tscheduleMap.put(c.getText(), s);\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\ttry {\r\n\t\t\t\t\t\t\tschedulerConfig.setSectionSchedules(scheduleMap);\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tscheduler.stopThread();\r\n\t\t\t\t\t\tscheduler = new SystemScheduler(schedulerConfig, securityLayout);\r\n\t\t\t\t\t\tscheduler.start();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(securityLayout,\"Schedule is saved.\");\r\n\t\t\t\t\t\tuserSelection.remove(userSelection.getSavePanel());\r\n\t\t\t\t\t\tuserSelection.setSavePanel(blankPanel);\r\n\t\t\t\t\t\tuserSelection.add(userSelection.getSavePanel());\r\n\t\t\t\t\t\tuserSelection.repaint();\r\n\t\t\t\t\t\tuserSelection.revalidate();\r\n\t\t\t\t\t}",
"private static void initializeJob(IGoobiJob goobiJob, String configuredStartTimeProperty,Scheduler sched) throws SchedulerException{\n\t\tlogger.debug(goobiJob.getJobName());\n\t\tJobDetail jobDetail = new JobDetail(goobiJob.getJobName(), null, goobiJob.getClass());\n\t\t\n\t\t\n\t\tif (ConfigMain.getLongParameter(configuredStartTimeProperty, -1) != -1) {\n\t\t\tlong msOfToday = ConfigMain.getLongParameter(configuredStartTimeProperty, -1);\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.set(1984, 8, 11, 0, 0);\n\t\t\tcal.set(Calendar.SECOND, 0);\n\t\t\tcal.set(Calendar.MILLISECOND, 0);\n\n\t\t\tcal.setTime(new Date(cal.getTimeInMillis() + msOfToday));\n\t\t\tint hour = cal.get(Calendar.HOUR_OF_DAY);\n\t\t\tint min = cal.get(Calendar.MINUTE);\n\n\t\t\tTrigger trigger = TriggerUtils.makeDailyTrigger(hour, min);\n\t\t\ttrigger.setStartTime(new Date());\n\t\t\ttrigger.setName(goobiJob.getJobName() + \"_trigger\");\n\n\t\t\tif(logger.isInfoEnabled()){\n\t\t\t\tlogger.info(\"daily Job \" + goobiJob.getJobName() + \" start time: \" + hour + \":\" + min);\n\t\t\t}\n\t\t\tsched.scheduleJob(jobDetail, trigger);\n\t\t}\n\t}",
"public void setupTimerSchedule(GUIController controller, int startTime, int runRate){\n this.fTimer.scheduleAtFixedRate(controller, startTime, runRate);\n }",
"public Scheduler()\r\n {\r\n town = new Graph<String>();\r\n }",
"public ScheduleForm() {\n initComponents();\n }",
"public Scheduler(String scheduler_name) {\n super();\n this.scheduler_name = scheduler_name;\n this.task_set = null;\n }",
"public void scheduleMarathon()\n\t{\n\n\t\t//Create new threads\n\t\tThread h = new Thread(new ThreadRunner(HARE,H_REST,H_SPEED)); \n\t\tThread t = new Thread(new ThreadRunner(TORTOISE,T_REST,T_SPEED)); \n\n\t\tArrayList<Thread> runnerList = new ArrayList<Thread>();\n\t\trunnerList.add(h);\n\t\trunnerList.add(t);\n\n\t\tSystem.out.println(\"Get set...Go! \");\n\t\t//Start threads\n\t\tfor (Thread i: runnerList){\n\t\t\ti.start();\n\t\t}\n\n\t\twaitMarathonFinish(runnerList);\n\t}",
"public PriorityScheduler() {\n\t}",
"public PriorityScheduler() {\n }",
"public final void init(TaskSet task_set) {\n if (this.task_set != null)\n throw new IllegalStateException(\"cannot initialize a scheduler twice\");\n\n this.task_set = task_set;\n this.scheduler_init();\n }",
"public CronJobTrigger() {\n init();\n }",
"Schedule getSchedule(String departure, String arrival, int depYear, int depMonth);",
"public Schedule4Week() {\n\n\t\tm_WeekSchedule = new HashMap<String, Schedule>();\n\t\t\t\n\t\tm_WeekSchedule.put(ms_Mon, new Schedule());\n\t\tm_WeekSchedule.put(ms_Tue, new Schedule());\n\t\tm_WeekSchedule.put(ms_Wed, new Schedule());\n\t\tm_WeekSchedule.put(ms_Thu, new Schedule());\n\t\tm_WeekSchedule.put(ms_Fri, new Schedule());\n\t\tm_WeekSchedule.put(ms_Sat, new Schedule());\n\t\tm_WeekSchedule.put(ms_Sun, new Schedule());\n\t\t\n\t}",
"void doIt() throws RBEConfigObjectException, IOException\n\t{\n\t\t// Create a schedules\n\t\tSchedules schedules = new Schedules();\n\n\t\t// add a schedule that include a period for 8:00am to 6:00pm every Monday\n\t\taddMondayOnly(schedules);\n\n\t\t// Save it to a file\n\t\tsave(schedules, SAMPLE_SCHEDULES_NAME+schedules.getFileExtension());\n\n\t\t// load the schedules from and check if it is equals to the original.\n\t\tSchedules schedulesLoaded = load(SAMPLE_SCHEDULES_NAME+schedules.getFileExtension());\n\t\tif (!schedules.equals(schedulesLoaded))\n\t\t\tprintln(\"Error saving schedules to file!\");\n\t}",
"public Schedule(int numProcessors) {\n scheduledTasks = new HashMap<>();\n processors = new ArrayList<>();\n length = 0;\n\n for (int i = 1; i <= numProcessors; i++) {\n processors.add(new Processor(\"\" + i));\n }\n }",
"private void scheduleOptions(int choice) {\n switch (choice) {\n case 8:\n generate();\n if (yesNoQuestion(\"Would you like to filter through the generated schedules?\")) {\n showAllSchedulesFiltered(activeScheduleList);\n } else {\n showAllSchedules(activeScheduleList);\n }\n break;\n case 9:\n saveGeneratedSchedules();\n break;\n case 10:\n viewSavedSchedules();\n break;\n case 11:\n removeFromSavedScheduleList();\n break;\n }\n }",
"public String create(Schedule arg0) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void startCron() {\n\t\tlog.info(\"Start Schedule Manager.\");\r\n\t\tmainThread = new Thread(new Runnable() {\r\n\t\t\t\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tmainThread.start();\r\n\t}",
"public Scheduler(double speed) {\r\n\t\tsuper(\"Scheduler\");\r\n\t\t\r\n\t\t// Set game speed\r\n\t\tthis.setSpeed(speed);\r\n\t\t\r\n\t\t// Set state\r\n\t\tthis.state = GameState.CREATED;\r\n\t\t\r\n\t\tif (logger.isDebugEnabled())\r\n\t\t\tlogger.debug(\"Scheduler started.\");\r\n\t}",
"public Model(){\r\n try{\r\n File file = new File(\"./config.ini\");\r\n boolean firstRun = file.createNewFile();\r\n\r\n //If this is the first run for the application\r\n if (firstRun){\r\n //Ask user the amount of hours he wants to work per day\r\n dailyWorkload = Integer.parseInt(JOptionPane.showInputDialog(\"Enter number of hours you want to work per day\"));\r\n numDayWorkWeek = Integer.parseInt(JOptionPane.showInputDialog(\"Enter number of days you want to work per week\"));\r\n\r\n //Allocate memory for data structures\r\n unfinished = new TreeSet<>();\r\n finished = new ArrayList<>();\r\n activities = new ArrayList<>();\r\n\r\n FileWriter fw = new FileWriter(file);\r\n PrintWriter pw = new PrintWriter(fw);\r\n\r\n pw.println(dailyWorkload);\r\n pw.println(numDayWorkWeek);\r\n pw.close();\r\n fw.close();\r\n\r\n weeklySchedule = new ArrayList<>(numDayWorkWeek);\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.add(new TreeSet<Task>());\r\n }\r\n //Else if this is not the first run of the application\r\n else{\r\n FileReader fr = new FileReader(file);\r\n BufferedReader br = new BufferedReader(fr);\r\n dailyWorkload = Integer.parseInt(br.readLine());\r\n numDayWorkWeek = Integer.parseInt(br.readLine());\r\n br.close();\r\n fr.close();\r\n\r\n weeklySchedule = new ArrayList<>(numDayWorkWeek);\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.add(new TreeSet<Task>());\r\n loadFromDatabase();\r\n }\r\n\r\n }\r\n catch (Exception e){\r\n System.out.println(\"Stress is constructor: \" + e.getMessage());\r\n }\r\n }",
"public static void main(String[] args) {\n String fileName = \"C:\\\\Users\\\\me\\\\Documents\\\\Interval-Schedular-Algorithm\\\\input.txt\";\n IntervalSchedulerUtility intervalSchedulerUtility = new IntervalSchedulerUtility();\n try{\n intervalSchedulerUtility.scheduleConference(fileName);\n }catch(ConferenceSchedularException ite) {\n ite.printStackTrace();\n }catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"public ScheduleWaypoint(Context context) {\n\n schedule = new Schedule();\n freeTime = new Schedule();\n buddies = new ArrayList<Schedule>();\n readWrite = new FileIO(context);\n webcrawler = new WebScraper();\n \n finalsTerm = \" \";\n }",
"@Override\n\tpublic void start()\n\t{\n\t\tarena = \"scenarios/boxpushing/arena/pioneer.controller.arena.txt\"; \n\n\t\t\n\t\tschedule.reset();\n\n\t\tsuper.start();\n\n\t\tresetBehavior();\n\n\t}",
"public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}",
"private void initiateProject() {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.getDefault());\n\n Date startDay = null;\n Date deadlineMinPace = null;\n Date deadlineMaxPace = null;\n\n try {\n startDay = dateFormat.parse(\"21-08-2018\");\n deadlineMinPace = dateFormat.parse(\"27-08-2018\");\n deadlineMaxPace = dateFormat.parse(\"25-08-2018\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (startDay != null && deadlineMinPace != null && deadlineMaxPace != null) {\n\n smp = new SmartProject(\"Test project\", \"Test project description\",\n 35, startDay, deadlineMinPace, deadlineMaxPace);\n\n System.out.println(\"===>>>\" + smp.toString());\n\n } else {\n System.out.println(\"===>>> Some date are null!\");\n }\n\n /*\n // *** print block ***\n smp.printEntries();\n\n for (float f : smp.getYAxisChartValuesMinPace()) {\n System.out.println(f);\n }\n\n for (float f : smp.getYAxisChartValuesMaxPace()) {\n System.out.println(f);\n }\n\n for (float f : smp.getFloatNumbersForXAxis()) {\n System.out.println(f);\n }\n */\n\n }",
"public void update(Schedule arg0) {\n\t\t\n\t}",
"public boolean generateSchedule(){\r\n return true;\r\n }",
"public Schedule generateSchedule(Student student, Assignment assignment, DateTime availability){\n DateTime startTime = availability;\n DateTime endTime = availability.plusHours((int)Math.ceil(assignment.getHoursPerDay()));\n return new Schedule(student.getId(), assignment.getId(), assignment.getCourseID(),\n startTime, endTime,\n assignment.getPointsPossible() / assignment.getNumDays(), assignment.getName());\n }",
"public EnergySchedulingFactoryImpl() {\n\t\tsuper();\n\t}",
"public CronJobTrigger(String entry) throws IllegalArgumentException {\n try {\n init();\n parse(entry);\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Cron schedule \" + entry + \" is malformed: \" + e.getMessage(), e);\n }\n }",
"protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }",
"public Schedule assign()\n\t{\n\t\tif(debug) System.out.println(\"Assignment started (Lecture Random)\");\n\t\tboolean valid = assignSlot(true); //assign times to Lectures\n\t\tif(debug && valid) System.out.println(\"Assignment started (Lab Random)\");\n\t\tif(valid) valid = assignSlot(false); //assign times to Labs\n\t\tif(debug && valid) System.out.println(\"Checking constraints (Random)\");\n\t\tif(valid) \n\t\t{\n\t\t\tvalid = constr(); //check the hard constraints one more time\n\t\t\tif(debug) System.out.println(child);\n\t\t}\n\t\tif (valid) child.setValue(child.eval()); //evaluate the soft constraints\n\t\t\n\t\tif(valid) \n\t\t{\n\t\t\tif(debug) System.out.println(child);\n\t\t\treturn child; //return the completed valid schedule\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(child);\n\t\t\treturn null; //invalid schedule, return nothing\n\t\t}\n\t}",
"public void setScheduletime(Date scheduletime) {\r\n this.scheduletime = scheduletime;\r\n }",
"public Schedule(Date startTime, long repeatAfter, TimeUnit unit) {\n\t\tsuper();\n\t\tthis.startTime = startTime == null ? new Date() : startTime;\n\t\tthis.repeatAfter = repeatAfter;\n\t\tthis.unit = unit;\n\t}",
"@Override\n public void run() {\n createScheduleFile();\n createWinnerScheduleFile();\n }",
"private static void checkSchedulerProperties() throws IOException {\r\n\r\n Properties properties = new Properties();\r\n FileInputStream input = new FileInputStream(SCHEDULER_PROPERTIES_PATH);\r\n properties.load(input);\r\n\r\n if (MongoDB.getAll(Timeframe.class).isEmpty()) {\r\n\r\n int days = Integer\r\n .valueOf(properties.getProperty(\"timeframe.days\"));\r\n int timeSlots = Integer.valueOf(properties\r\n .getProperty(\"timeframe.timeSlots\"));\r\n int startHour = Integer.valueOf(properties\r\n .getProperty(\"timeframe.startHour\"));\r\n String[] weekdays = properties.getProperty(\"timeframe.weekdays\")\r\n .replace(\" \", \"\").split(\",\");\r\n\r\n Timeframe timeframe = new Timeframe(days, timeSlots, startHour,\r\n Arrays.asList(weekdays));\r\n MongoDB.store(timeframe);\r\n System.out.println(\"Created default timeframe.\");\r\n }\r\n\r\n if (MongoDB.getAll(Equipment.class).isEmpty()) {\r\n\r\n String[] items = properties.getProperty(\"equipment\")\r\n .replace(\" \", \"\").split(\",\");\r\n Equipment equipment = new Equipment(items);\r\n MongoDB.store(equipment);\r\n System.out.println(\"Created default equipment\");\r\n }\r\n }",
"public static void main(String[] args) throws IOException, FontFormatException {\n clockDesign = new display(clock.gethour(),true);\n clockDesign.setVisible(true);\n //clockDesign.getHours1().setBackground(new Color(0,0,0));\n clockDesign.getAlarm().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n alarmDesign.setVisible(true);\n alarmDesign.getSetAlarm().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n alarm.setAlarmHour(Integer.parseInt(alarmDesign.getHours().getText().toString()));\n alarm.setAlarmMinute(Integer.parseInt(alarmDesign.getMinutes().getText().toString()));\n Alarm.setFlag(1);\n clockDesign.setVisible(true);\n }\n });\n }\n });\n\n Timer timer = new Timer();\n timer.schedule(new DigitalClockProject(), 0, 1000);\n }",
"public void setSchedule_id(int schedule_id) {\r\n this.schedule_id = schedule_id;\r\n }",
"public schedulerJob() {\n }",
"public Menu(Calendar calendar) {\n this.calendar = calendar;\n input = new Scanner(System.in);\n }",
"public Schedule(Map<Node, Processor> scheduledTasks, List<Processor> processors, int length) {\n this.scheduledTasks = scheduledTasks;\n this.processors = processors;\n this.length = length;\n }",
"private void initialize() {\n toDoList = new ToDoList(\"To-Do List\");\n scanner = new Scanner(System.in);\n }",
"java.lang.String getSchedule();"
]
| [
"0.7308564",
"0.70097196",
"0.69869334",
"0.69075716",
"0.6902043",
"0.68497956",
"0.6759347",
"0.6684134",
"0.6649595",
"0.6627103",
"0.6582381",
"0.6570549",
"0.6483617",
"0.6339641",
"0.63240016",
"0.62881756",
"0.62826747",
"0.62372017",
"0.62370783",
"0.6209927",
"0.6208811",
"0.61994725",
"0.61762726",
"0.61403596",
"0.61207116",
"0.6110128",
"0.60861874",
"0.6054776",
"0.60421884",
"0.602897",
"0.6011216",
"0.60102606",
"0.597229",
"0.5964255",
"0.596127",
"0.59578925",
"0.5930134",
"0.5917775",
"0.5881541",
"0.5877214",
"0.5874198",
"0.5870676",
"0.58667296",
"0.58563685",
"0.58361536",
"0.5834643",
"0.5821671",
"0.58080643",
"0.5803165",
"0.57874787",
"0.5787133",
"0.57867754",
"0.5774445",
"0.57595444",
"0.57512456",
"0.57493097",
"0.5737795",
"0.57254255",
"0.57249707",
"0.5720529",
"0.57184047",
"0.57146144",
"0.57130873",
"0.57110894",
"0.57110626",
"0.56920385",
"0.56856674",
"0.5662532",
"0.5654455",
"0.56531596",
"0.56370956",
"0.56368744",
"0.56065595",
"0.56021386",
"0.5602104",
"0.55933666",
"0.55890644",
"0.5586191",
"0.5581191",
"0.5575807",
"0.5572806",
"0.5561571",
"0.55369186",
"0.5536081",
"0.5534516",
"0.55190986",
"0.55146253",
"0.551085",
"0.54999954",
"0.5487732",
"0.5485012",
"0.5484764",
"0.5478429",
"0.54758537",
"0.5459711",
"0.5459479",
"0.5452707",
"0.5439111",
"0.5438635",
"0.5429919"
]
| 0.7408909 | 0 |
get the numbers of Servers. | public int getNumOfServers() {
return numOfServers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer serverCount() {\n return this.serverCount;\n }",
"List<Long> getServers();",
"int getServerSocketCount();",
"long getTotalServerSocketsCount();",
"public int[] availableServers() throws RemoteException {\n\t\t\tint i = 0;\n\n\t\t\t// convert to primitives array\n\t\t\tint[] result = new int[m_services.size()];\n\t\t\tfor (Integer id : m_services.keySet())\n\t\t\t\tresult[i++] = id;\n\t\t\t\n\t\t\treturn result;\n\t\t}",
"@Exported\n public int getNumberOfSlaves() {\n if (this.slaves == null) {\n return 0;\n }\n return this.slaves.size();\n }",
"public int getClients()\r\n\t{\r\n\t\treturn numberOfClients;\r\n\t}",
"int getServicesCount();",
"int getServicesCount();",
"@Exported\n public int getNumberOfOnlineSlaves() {\n int count = 0;\n for (Slave s : slaves) {\n if (s.getComputer().isOnline()) {\n count++;\n }\n }\n return count;\n }",
"public int getServicesCount() {\n return services_.size();\n }",
"public int getServicesCount() {\n return services_.size();\n }",
"public int clientsCount(){\n return clientsList.size();\n }",
"int getConnectionsCount();",
"Integer getConnectorCount();",
"List<Server> servers() {\n return servers;\n }",
"int getPeersCount();",
"@Exported\n public int getNumberOfOfflineSlaves() {\n int count = 0;\n for (Slave s : slaves) {\n if (s.getComputer().isOffline()) {\n count++;\n }\n }\n return count;\n }",
"public int getServerPortNumber(){\n return this.serverPortNumber;\n }",
"public NetworkInstance[] getServers();",
"public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}",
"@Override\n\tpublic int getNbClients() {\n\t\t// TODO Auto-generated method stub\n\t\tint nbClients=0;\n\t\tfor (ArrayList<TC> quantite : salle.values()) {\t\t//On parcours l'ensemble de la liste pour connaître à chaque tour de\n\t\t\tnbClients += quantite.size();\t\t\t\t\t//boucle le nombre de personne prioritaire.\n\t\t}\n\t\treturn nbClients;\n\t\t\n\t\t// on cherche a donner le nombre de clients dans la salle à l'instant T, pour ce faire on fait la somme de la taille de chaque file d'attente \n// int res=0;\n// for(int i=0;i<maxPrio;i++) {\n// res += salle.get(i).size(); // on fait un get sur la salle d'indice i (correspondant a 1 niveau de priorité) ce qui rend l'ArrayList puis on prend la size de ce get. \n// }\n\t}",
"public ServerList getServers() {\r\n return this.servers;\r\n }",
"public int getNumVersions(){\n return versions.size();\n }",
"public int getNbClients() {\n\t\t\treturn nbClients;\r\n\t\t}",
"public int getPortCount() {\n return 4;\n }",
"public int countNumberClientsTotal() {\n\t\tint counter = 0;\n\t\tfor(int number : numberClients.values())\n\t\t\tcounter += number;\n\t\treturn counter;\n\t}",
"public int getCount(){\r\n\t\tif(_serverinfo != null){\r\n\t\t\treturn _serverinfo.length / 6;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public String getNumberOfInstances() {\n return numberOfInstances;\n }",
"public static int getNumberOfRowsTBLSERVERS() throws SQLException {\n\t\tstmt = conn.createStatement();\r\n\t\tStatement stmt4 = conn.createStatement();\r\n\t\tResultSet rownumber = stmt4.executeQuery(\"SELECT COUNT (*) AS count1 FROM TBLSERVERS\"); // SQL Count query\r\n\t\trownumber.next();\r\n\r\n\t\tint rnum = rownumber.getInt(1);\r\n\t\tSystem.out.println(rnum); // for debugging purposes\r\n\t\treturn rnum; //return value\r\n\r\n\t}",
"public int getWorkers() {\r\n return workers;\r\n }",
"public int numConnections(){\n return connections.size();\n }",
"public int getServicesCount() {\n if (servicesBuilder_ == null) {\n return services_.size();\n } else {\n return servicesBuilder_.getCount();\n }\n }",
"public int getServicesCount() {\n if (servicesBuilder_ == null) {\n return services_.size();\n } else {\n return servicesBuilder_.getCount();\n }\n }",
"int getPeerCount();",
"public static int getNumberOfRowsServer() throws SQLException {\n\t\tstmt = conn.createStatement();\r\n\t\tStatement stmt3 = conn.createStatement();\r\n\t\tResultSet rownumber = stmt3.executeQuery(\"SELECT COUNT (*) AS count1 FROM TBLSERVERS\"); // sql count statement\r\n\t\trownumber.next(); // move cursor to first position\r\n\r\n\t\tint rnum = rownumber.getInt(1); //store result in an integer variable\r\n\t\tSystem.out.println(rnum); // for debugging purposes\r\n\t\treturn rnum; //return integer\r\n\r\n\t}",
"public ArrayList<Server> getServers(){\n return this.serversList;\n }",
"int getTotalCreatedConnections();",
"int getRequestsCount();",
"int getRequestsCount();",
"int getReplicationCount();",
"public int getWorkersPerServer() {\n return Integer.parseInt(getOptional(\"kylin.server.sequence-sql.workers-per-server\", \"1\"));\n }",
"public List<ServerHardware> getServers();",
"public int getPortCount() throws SdpParseException {\n\t\treturn getNports();\n\t}",
"int getMonitors();",
"public Object[] getNameServerPorts() {\n\t\treturn _nameserverPorts.toArray();\n\t}",
"public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}",
"public int getEngines() {\n return engines;\n }",
"public int round_robin()\n {\n current_server++;\n current_server%=tabServerssout.size();\n return current_server;\n }",
"int getDatabasesCount();",
"public static long getConnections() {\n return connections;\n }",
"public List<ServerServices> listServerServices();",
"private int getNumPeers() {\n String[] peerIdList = skylinkConnection.getPeerIdList();\n if (peerIdList == null) {\n return 0;\n }\n // The first Peer is the local Peer.\n return peerIdList.length - 1;\n }",
"long getRequestsCount();",
"int getVersionsCount();",
"long[] getAllServerSocketIds();",
"public int getServerPort(){\n\t\treturn serverPort; \n\t}",
"int getReplicaCount(Type type);",
"int zookeeperClientPort();",
"public int getNumberOfInstances() {\n\t\treturn numberOfInstances;\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public Integer getNumberOfActiveRunners(){\n return numberOfActiveRunners;\n }",
"public static List<SkungeeServer> getServers() {\n\t\treturn ServerManager.getServers();\n\t}",
"private String getZkServers(ServletContext context){\n Configuration config = new Configuration();\n config.addResource(\"pxf-site.xml\");\n String zk_hosts = config.get(\"zookeeper\");\n if(LOG.isDebugEnabled())\n LOG.debug(\"zookeeper server is :\" + zk_hosts);\n\n return zk_hosts;\n }",
"public static int getServerPort(){\n return thisServer.getPort();\n }",
"public int getNumConnects() {\n\t\treturn numConnects;\n\t}",
"public List<Server> getAllServers(){\n\t\tlogger.info(\"Getting the all server details\");\n\t\treturn new ArrayList<Server>(servers.values());\n\t}",
"private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\n }",
"public int getNrSubscribers()\r\n {\r\n return subscriberInfos.size();\r\n }",
"public int workers() {\n return workers_;\n }",
"@Override\n public int getNumConnections()\n {\n return connections.size();\n }",
"default int getPort() {\n return getServer().getPort();\n }",
"public final int getServiceCount() {\r\n return this.m_service_count;\r\n }",
"public abstract int getNumSessions();",
"public int getSlaveCount() {\n int allSlaveCount = ZookeeperClient.getInstance().getChildren(SystemConfig.slaveRoot).size();\n if (this.slaveCount < 1 || this.slaveCount > allSlaveCount) {\n this.slaveCount = allSlaveCount / 2 + 1;\n }\n return this.slaveCount;\n }",
"public int getPortletCount()\r\n {\r\n return _portletList.size();\r\n }",
"int getPeerURLsCount();",
"protected int numPeers() {\n\t\treturn peers.size();\n\t}",
"public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }",
"int getJobsCount();",
"int getJobsCount();",
"int getJobsCount();",
"int getConnectionCount();",
"public java.lang.String[] getServerIds() {\r\n return serverIds;\r\n }",
"public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}",
"private void askForNumberOfRequests() {\n\t\tconnectToServer();\n\t\tout.println(\"How many requests have you handled ?\");\n\t\tout.flush();\n\t\tint count = 0;\n\t\ttry {\n\t\t\tcount = Integer.parseInt(in.readLine());\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot receive num requests from server\");\n\t\t}\n\t\tSystem.out.println(\"CLIENT: The number of requests are \" + count);\n\t\tdisconnectFromServer();\n\t}",
"public long getVehicleCount() {\n return send(\"\", HttpMethod.GET, VEHICLES_GET_URL, Map.of(), Long.class);\n }",
"int getPeakServerSocketCount();",
"public int getNumVisits() {\n return this.numVisits;\n }",
"@Override\n\t\tpublic int getServerPort() {\n\t\t\treturn 0;\n\t\t}",
"public java.lang.Integer getNumStandalonePorts() {\r\n return numStandalonePorts;\r\n }",
"public List<String> getTotalLaunchers() {\n return persistence.getTotalLauncherUrls();\n }",
"public int getRunningDevicesCount();",
"public Integer getServerPortValue() {\n\t\treturn Integer.decode(this.properties.getProperty(PARAM_NAME_SERVER_PORT, DEFAULT_SERVER_PORT));\n\t}",
"public static Server [] getServers(){\r\n Enumeration serversEnum = servers.elements();\r\n Server [] arr = new Server[servers.size()];\r\n for (int i = 0; i < arr.length; i++)\r\n arr[i] = (Server)serversEnum.nextElement();\r\n\r\n return arr;\r\n }",
"int countInstances();",
"public int getServerPort() {\n return serverPort;\n }",
"@Override\n\tpublic int getWeathersCount() {\n\t\treturn _weatherLocalService.getWeathersCount();\n\t}",
"public Object getNumExecutors() {\n return this.numExecutors;\n }"
]
| [
"0.722001",
"0.70747745",
"0.6945995",
"0.69269425",
"0.6890953",
"0.68158567",
"0.67553353",
"0.65355724",
"0.65355724",
"0.653196",
"0.6531319",
"0.6531319",
"0.64753675",
"0.64095706",
"0.63839316",
"0.63608575",
"0.6357092",
"0.6328256",
"0.6262943",
"0.6213963",
"0.62076473",
"0.6186488",
"0.6182615",
"0.6167785",
"0.6154603",
"0.6148234",
"0.61189777",
"0.6100092",
"0.609054",
"0.6081929",
"0.6064419",
"0.60633653",
"0.60515517",
"0.60515517",
"0.60483307",
"0.60435855",
"0.6038392",
"0.6002679",
"0.5996149",
"0.5996149",
"0.59954274",
"0.59842455",
"0.5956177",
"0.5955692",
"0.5940222",
"0.59390664",
"0.59388727",
"0.59248644",
"0.59227365",
"0.5917264",
"0.5906174",
"0.59058315",
"0.590054",
"0.589279",
"0.58766824",
"0.58689064",
"0.58517635",
"0.5848764",
"0.58417296",
"0.5835488",
"0.5820069",
"0.5820069",
"0.58189523",
"0.5813628",
"0.58092606",
"0.5806579",
"0.58057445",
"0.58035755",
"0.5796831",
"0.57922935",
"0.5791598",
"0.57794523",
"0.57668",
"0.57613134",
"0.57606465",
"0.57522047",
"0.57518804",
"0.5750132",
"0.57335925",
"0.5729494",
"0.5729172",
"0.5729172",
"0.5729172",
"0.57183176",
"0.5714305",
"0.5713259",
"0.5704886",
"0.570014",
"0.56955045",
"0.5694928",
"0.5689417",
"0.56844604",
"0.5684322",
"0.5682285",
"0.5677561",
"0.5673187",
"0.56728035",
"0.56719065",
"0.5664735",
"0.5663507"
]
| 0.7595607 | 0 |
get the list of arrivalTime of all Customers. | public List<Double> getArrivalTime() {
return new ArrayList<Double>(arrivalTime);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"[email protected]\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"[email protected]\", \"Red\"));\n customers.add(new Customer(\"Recipient\", \"Three\", \"[email protected]\", \"Blue\"));\n customers.add(new Customer(\"Recipient\", \"Four\", \"[email protected]\", \"Orange\"));\n\n return customers;\n }",
"@JsonIgnore public Collection<String> getArrivalGates() {\n final Object current = myData.get(\"arrivalGate\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<String>) current;\n }\n return Arrays.asList((String) current);\n }",
"public ArrayList<Customer> getservedCustomers()\r\n {\r\n return this.servedCustomers;\r\n }",
"@Override\n\tpublic void receiveCustomers() {\n\t\tfor(int i=interactionCounter; i<customers.size()&&customers.get(i).getArrival()<=currentTurn; i++){\n\t\t\tcustomersInLine.add(customers.get(i));\n\t\t\tcustomersInRestaurant++;\n\t\t\tinteractionCounter++;\t\n\t\t}\t\n\t}",
"java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> \n getTransitFlightsList();",
"public double[] getArrivalTime() {\n\t\treturn arrivalTime;\n\t}",
"@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}",
"public static ObservableList<Customers> getAllCustomers() {\n return allCustomers;\n }",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"java.util.List<com.google.cloud.channel.v1.Customer> \n getCustomersList();",
"private List<Number> setStatistics() {\n // the total waiting time for customers who have been served\n double totalWatingTime = 0;\n // the average waiting time for customers who have been served\n double aveWaitingTime = 0;\n // the number of customers served\n int numOfCusServed = 0;\n // the number of customers who left without being served\n int numOfCusLeft = 0;\n\n for (Event newEvent : this.eventsList) {\n // update number Of customer served\n if (newEvent instanceof ServeEvent) {\n numOfCusServed++;\n }\n // update the total waiting time\n if (newEvent instanceof WaitEvent) {\n double nextAvailableTime = newEvent.getCurrentServer().getNextAvailableTime().get();\n double customerArrivalTime = newEvent.getCustomer().getArrivalTime();\n double startTime = this.eventsList.stream()\n .filter(x -> (x instanceof ServeEvent)\n && (x.getCustomer().getId() == newEvent.getCustomer().getId()))\n .findFirst().get().getStartTime();\n double waitTime = startTime - customerArrivalTime;\n totalWatingTime += waitTime;\n }\n // update the number of customer left\n if (newEvent instanceof LeaveEvent) {\n numOfCusLeft++;\n }\n }\n\n // calculate the average waiting time\n if (numOfCusServed != 0) {\n aveWaitingTime = totalWatingTime / numOfCusServed;\n }\n\n return new ArrayList<>(Arrays.asList(aveWaitingTime, numOfCusServed, numOfCusLeft));\n }",
"public Customer (int arrives)\n {\n arrivalTime = arrives;\n departureTime = 0;\n }",
"public java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> getTransitFlightsList() {\n if (transitFlightsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(transitFlights_);\n } else {\n return transitFlightsBuilder_.getMessageList();\n }\n }",
"public List<Reservation> getAllEventsForCustomer() {\n\t\tString currentUsername = null;\n\t\ttry {\n\t\t\tcurrentUsername = customerService.getCurrentUserAccount().getUsername();\n\t\t} catch (AnonymusUserException e) {\n\t\t\tLOG.error(\"Cannot get reservations for Customer. Cause: \" + e.getMessage());\n\t\t}\n\t\treturn reservationRepository.findAllByUsername(currentUsername);\n\t}",
"public List<LocalDateTime> getAllTimes() {\n\t\tList<LocalDateTime> allTimes = new ArrayList<LocalDateTime>();\n\t\tallTimes.add(shiftStartTime);\n\t\tallTimes.add(bedtime);\n\t\tallTimes.add(shiftEndTime);\n\t\treturn allTimes;\n\t}",
"public List<Customer> getAllCustomers() {\n Query query = em.createNamedQuery(\"Customer.findAll\");\r\n // return query result\r\n return query.getResultList();\r\n }",
"public java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> getTransitFlightsList() {\n return transitFlights_;\n }",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Customer> theQuery =\n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\treturn customers;\n\t}",
"public ArrayList<Customer> getCustomers()\r\n {\r\n return this.Customers;\r\n }",
"@RequestMapping(value = \"/customer-addres\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<CustomerAddres> getAllCustomerAddres() {\n log.debug(\"REST request to get all CustomerAddres\");\n List<CustomerAddres> customerAddres = customerAddresRepository.findAll();\n return customerAddres;\n }",
"@JsonIgnore public Collection<Airport> getArrivalAirports() {\n final Object current = myData.get(\"arrivalAirport\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Airport>) current;\n }\n return Arrays.asList((Airport) current);\n }",
"public List<Customer> getCustomers() {\n\t\treturn customers;\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create the query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//get the result list\n\t\tList<Customer> customers = query.getResultList();\n\t\treturn customers;\n\t}",
"public List<Customer> getCustomerList() {\n return new ArrayList<Customer>(customersList);\n }",
"@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Customer order by lastName\", Customer.class)\n\t\t\t\t.getResultList();\n\n\t}",
"public static List<Customer> getAllCustomers() {\r\n\t\tList<Customer> customerList = new ArrayList<Customer>();\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tCustomer customer = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\r\n\t\t\t\tString customerName = rs.getString(\"customerName\");\r\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\r\n\t\t\t\tPerson primaryContact = Person.getPersonByKey(personKey);\r\n\t\t\t\tint addressKey = rs.getInt(\"addressKey\");\r\n\t\t\t\tAddress address = Address.getAddressByKey(addressKey);\r\n\t\t\t\t\r\n\t\t\t\tif (customerType.equals(\"G\")) {\r\n\t\t\t\t\tcustomer = new GovernmentCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t\tcustomerList.add(customer);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"SQLException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t} finally {\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Override\n\t@Transactional\n\tpublic List<AMOUNT> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<AMOUNT> theQuery = currentSession.createQuery(\"from Customer ORDER BY lastName\", AMOUNT.class);\n\n\t\t// execute query and get result list\n\t\tList<AMOUNT> customers = theQuery.getResultList();\n\n\t\t// return the results\n\t\treturn customers;\n\t}",
"public Map<String,Flight> getAllReturnFlights() {\n\t\tMap<String,Flight> allFlights = new HashMap<String,Flight> ();\n\t\twaitForElementToAppear(returnFlightSection);\n\t\tList<WebElement> flights = returnFlightSection.findElements(By.tagName(\"li\"));\n\t\tif (!flights.isEmpty()) {\n\t\t for (WebElement flight:flights) {\n\t\t \tString flightInformation = flight.getText();\n\t\t \tString[] flightInformationElements = flightInformation.split(\"\\n\");\n\t\t \tfor (int j = 0; j < flightInformationElements.length; j++) {\n\t\t \t\tSystem.out.println(flightInformationElements[j]);\n\t\t \t}\n\t\t \tFlight newFlight = new Flight();\n\t\t \tString flightNumber = flightInformationElements[0].trim();\n\t\t \tnewFlight.setFlightNumber(flightNumber);\n\t\t \tnewFlight.setStop(flightInformationElements[1].trim());\n\t\t \tnewFlight.setDepartureTime(flightInformationElements[2].trim());\n\t\t \tnewFlight.setArrivalTime(flightInformationElements[3].trim());\n\t\t \tnewFlight.setDuration(flightInformationElements[4].trim());\n\t\t \tnewFlight.setDurationTime(flightInformationElements[5].trim());\n\t\t \tnewFlight.setBusinessPrice(flightInformationElements[6].trim());\n\t\t \tnewFlight.setAnytimePrice(flightInformationElements[7].trim());\n\t\t \tnewFlight.setGetAwayPrice(flightInformationElements[8].trim());\n\t\t \tif (!allFlights.containsKey(flightNumber))\n\t\t \t\tallFlights.put(flightNumber , newFlight);\n\t\t }\n\t\t}\n\t\treturn allFlights;\n\t}",
"public ZonedDateTime getArrivalTime() {\n return flights.get(flights.size() - 1).getArrivalTime();\n }",
"public int getArrivalTime()\n {\n return arrivalTime;\n }",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}",
"public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t// create a query ... sort by the lastname\n\t\tQuery<Customer> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\",Customer.class);\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t}",
"ArrayList<EvCustomer> getEvCustomers ()\n {\n return evCustomers;\n }",
"java.lang.String getArrivalTime();",
"java.lang.String getArrivalTime();",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"public Map<String,Flight> getAllDepartureFlights() {\n\t\tMap<String,Flight> allFlights = new HashMap<String,Flight> ();\n\t\twaitForElementToAppear(departureFlightSection);\n\t\tList<WebElement> flights = departureFlightSection.findElements(By.tagName(\"li\"));\n\t\tif (!flights.isEmpty()) {\n\t\t for (WebElement flight:flights) {\n\t\t \tString flightInformation = flight.getText();\n\t\t \tString[] flightInformationElements = flightInformation.split(\"\\n\");\n\t\t \tfor (int j = 0; j < flightInformationElements.length; j++) {\n\t\t \t\tSystem.out.println(flightInformationElements[j]);\n\t\t \t}\n\t\t \tFlight newFlight = new Flight();\n\t\t \tString flightNumber = flightInformationElements[0].trim();\n\t\t \tnewFlight.setFlightNumber(flightNumber);\n\t\t \tnewFlight.setStop(flightInformationElements[1].trim());\n\t\t \tnewFlight.setDepartureTime(flightInformationElements[2].trim());\n\t\t \tnewFlight.setArrivalTime(flightInformationElements[3].trim());\n\t\t \tnewFlight.setDuration(flightInformationElements[4].trim());\n\t\t \tnewFlight.setDurationTime(flightInformationElements[5].trim());\n\t\t \tnewFlight.setBusinessPrice(flightInformationElements[6].trim());\n\t\t \tnewFlight.setAnytimePrice(flightInformationElements[7].trim());\n\t\t \tnewFlight.setGetAwayPrice(flightInformationElements[8].trim());\n\t\t \tif (!allFlights.containsKey(flightNumber))\n\t\t \t\tallFlights.put(flightNumber , newFlight);\n\t\t }\n\t\t}\n\t\treturn allFlights;\n\t}",
"public ArrayList<Customer> getAllCustomers();",
"List<Customer> getCustomers();",
"public double getArrivalTime(int index){\n\t\treturn arrivalTimes.get(index);\n\t}",
"public java.util.List<? extends com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder> \n getTransitFlightsOrBuilderList() {\n return transitFlights_;\n }",
"@GET\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\tpublic ArrayList<Customer> getCustomers() {\r\n\t\treturn custDao.readAll();\r\n\t}",
"List<AirlineFlightDelays> listArrivalFlightDelaysByAirlineAsAirlineFlightDelays();",
"public static ArrayList<CustomerInfoBean> getCutomers_onWait() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=0;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public java.util.List<? extends com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder> \n getTransitFlightsOrBuilderList() {\n if (transitFlightsBuilder_ != null) {\n return transitFlightsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(transitFlights_);\n }\n }",
"public long getArrivalTime()\n {\n return arrivalTime;\n }",
"@Override\n\tpublic List<FlightInfoBean> getFlights() throws AirlineException {\n\t\ttry {\n\t\t\treturn em.createQuery(\"from FlightInfoBean\").getResultList();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new AirlineException(e.getMessage());\n\t\t}\n\t}",
"@Override\r\n\tpublic List<Cita> getAppointmentList() {\r\n\r\n\t\t// find all users\r\n\t\tList<User> users = (List<User>) userService.findAll();\r\n\t\t// create a new arrayList of appointments\r\n\t\tList<Cita> appointments = new ArrayList<>();\r\n\r\n\t\t// iterate over the list of all the users\r\n\t\tfor (Iterator<User> user = users.iterator(); user.hasNext();) {\r\n\t\t\t// get the user from the forEach\r\n\t\t\tUser getUser = user.next();\r\n\r\n\t\t\t// iterate over the AppointmentList\r\n\t\t\tfor (Cita item : getUser.getCitas()) {\r\n\r\n\t\t\t\t// check if the class is not empty\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tappointments.add(item);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn appointments;\r\n\t}",
"@Override\n\t@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\treturn customerDAO.getCustomers();\n\t\t\n\t}",
"@JsonIgnore public Collection<Distance> getFlightDistanceDistances() {\n final Object current = myData.get(\"flightDistance\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Distance>) current;\n }\n return Arrays.asList((Distance) current);\n }",
"public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }",
"@GetMapping()\n public List<AgentCustomerList> findAllAgentsCustomerList() {\n return agentRepo.findAllAgentCustomerListBy();\n }",
"public int getArrivalTime() {\r\n\t\treturn arrivalTime;\r\n\t}",
"@Override\n\tpublic List<MenuItem> getMenuItemListCustomer() {\n\t\tList<MenuItem> menuItemListCustomer=new ArrayList<>();\n\t\tDate date =new Date();\n\t\tSimpleDateFormat simpleDateFormat=new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString ds=simpleDateFormat.format(date);\n\t\tDate ds1=DateUtil.convertToDate(ds);\n\t\t\n\t\tList<MenuItem> list=this.menuItemList;\n\t\tfor(MenuItem m:list)\n\t\t{\n\t\t\tDate d1=m.getDateOfLaunch();\n\t\t\tif((d1.before(ds1)||d1.equals(ds1))&& m.isActive())\n\t\t\t{\n\t\t\t\tmenuItemListCustomer.add(m);\n\t\t\t}\n\t\t}\n\t\treturn menuItemListCustomer;\n\t}",
"@JsonIgnore public Collection<String> getArrivalTerminals() {\n final Object current = myData.get(\"arrivalTerminal\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<String>) current;\n }\n return Arrays.asList((String) current);\n }",
"@Override\n\tpublic Collection<Customer> getAllCustomers() throws Exception {\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\ttry {\n\t\t\tString getAllCustomers = \"select * from customer\";\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getAllCustomers);\n\t\t\tint result = 0;\n\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tCustomer cust = new Customer();\n\t\t\t\t\tcust.setId(rs.getLong(\"ID\"));\n\t\t\t\t\tcust.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\t\tcust.setPassword(rs.getString(\"Password\"));\n\t\t\t\t\tcustomers.add(cust);\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(result + \" Customers were retrieved.\");\n \n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close the connection to the DB\");\n\t\t\t}\n\t\t}\n\t\treturn customers;\n\t}",
"public Customer[] getCustomers() {\r\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\r\n\t\ttry (ResultSet result = manager.performSql(\"SELECT id FROM Customer\")) {\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tcustomers.add(manager.getCustomer(result.getInt(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tCustomer[] ret = new Customer[customers.size()];\r\n\t\tfor (int i = 0; i < ret.length; i++) {\r\n\t\t\tret[i] = customers.get(i);\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn customerRepository.findAllCustomer();\n\t}",
"@Override\r\n\tpublic int connectingTime() {\r\n\t\tint totalTime = 0;\r\n\t\tfor (int i = 0; i < flights.size()-1; i++) {\r\n\t\t\tString time1 = \"\" + flights.get(i).getData().getArrivalTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time1.length() < 4)\r\n\t\t\t\ttime1 = \"0\" + time1;\r\n\t\t\t\r\n\t\t\tString time2 = \"\" + flights.get(i+1).getData().getDepartureTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time2.length() < 4)\r\n\t\t\t\ttime2 = \"0\" + time2;\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"HHmm\");\r\n\t\t\tDate date1 = null;\r\n\t\t\tDate date2 = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tdate1 = format.parse(time1);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tdate2 = format.parse(time2);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tlong difference = 0;\r\n\t\t\tdifference = date2.getTime() - date1.getTime();\r\n\t\t\tif(difference < 0) {\r\n\t\t\t\tdifference += 24*60*60*1000;\r\n\t\t\t}\r\n\t\t\ttotalTime += difference;\r\n\t\t}\r\n\t\treturn totalTime;\r\n\t}",
"List<Customer> getCustomerList();",
"@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}",
"public List<Customer> getAllCustomers() {\n return customerRepository.findAll();\n }",
"public List<TimeSpan> getRequestedTimes()\r\n {\r\n return myRequestedTimes;\r\n }",
"@GET\n\t@Path(\"getAllCustomer\")\n\tpublic List<Customer> getAllCustomer() {\n\t\treturn ManagerHelper.getCustomerManager().getAllCustomer();\n\t}",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"public Flight[] getFlights() {\r\n // Get all the table of flights with columns as keys mapped to an ArrayList\r\n // of ordered rows\r\n HashMap<String, ArrayList<String>> flightInfo = getAllTableContents(\"flights\");\r\n ArrayList<Flight> flights = parseFlights(flightInfo);\r\n Flight[] temp = new Flight[flightInfo.get(\"flightNumber\").size()];\r\n return flights.toArray(temp);\r\n }",
"public ArrayList<Customer> getCustomerList() {\n\t\treturn customerList;\n\t}",
"@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}",
"public int countServedCustomers()\r\n {\r\n int count = 0;\r\n //go through list and see which customers have non zero serve times--update count\r\n for(Customer c: this.Customers){\r\n if(c.getserveTime()> 0 ){\t\r\n count++;\r\n //add these customers to their own list\r\n this.servedCustomers.add(c);\r\n }\r\n }\r\n return count;\r\n }",
"@Override\n\tpublic List<Flight> listAllFlights() {\n\t\tConnection con = null;\n\t\tList<Flight> flights = new ArrayList<Flight>();\n\t\ttry {\n\t\t\tcon = getMySqlConnection();\n\t\t\tCallableStatement callableStatement = con\n\t\t\t\t\t.prepareCall(\"call listAllFlights()\");\n\t\t\tcallableStatement.executeQuery();\n\n\t\t\tResultSet result = callableStatement.getResultSet();\n\t\t\twhile (result.next()) {\n\n\t\t\t\tFlight flight = new Flight();\n\t\t\t\tflight.setFlightId(result.getLong(1));\n\t\t\t\tflight.setFlightName(result.getString(2));\n\t\t\t\tflight.setAirline(new Airline(result.getLong(1)));\n\t\t\t\tflights.add(flight);\n\t\t\t}\n\n\t\t} catch (SQLException s) {\n\t\t\ts.printStackTrace();\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn flights;\n\t}",
"private List<PurchasingOrder> getLoggedInCustomerAirlineTicketOrders() {\r\n final Customer loggedInCustomer = usersComponent.getLoggedInCustomer();\r\n return loggedInCustomer.getAirlineTicketOrders();\r\n }",
"public AdminModel[] getAllFlights() {\n\t\tflights = adminManager.getAllFlights();\n\t\t\n\t\treturn flights;\n\t}",
"@Override\n\tpublic List<MstCustomerDto> getAllCustomer() {\n\t\tList<MstCustomerDto> listMstCustomerDtos=new ArrayList<>();\n\t\tList<Object[]> obj=new ArrayList<>();\n\t\t\n\t\tobj = mstCustomerDao.getAll();\n\t\tlistMstCustomerDtos = mapperFacade.mapAsList(obj, MstCustomerDto.class);\n\t\t\n\t\treturn listMstCustomerDtos;\n\t}",
"@Accessor(qualifier = \"Customers\", type = Accessor.Type.GETTER)\n\tpublic Collection<B2BCustomerModel> getCustomers()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CUSTOMERS);\n\t}",
"@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}",
"Calendar getArrivalDateAndTime();",
"@Override\r\n\tpublic List<TravelerDto> getAllTravelers() {\r\n\t\tList<Traveler> travelers = travelerDao.getAllTravelers();\r\n\t\treturn (List<TravelerDto>) modelMapper.mapCollection(travelers, TravelerDto.class);\r\n\t}",
"List<Customer> getList();",
"private List<User> retrieveTravelContacts() {\n if (checkIfContactKeysExists()) {\n return SharedPrefsUtils.convertSharedPrefsToTravelContacts(context);\n }\n //TODO: display no contacts UI below header\n return new ArrayList<>();\n }",
"public String getArriveTime() {\n return arriveTime;\n }",
"java.util.List<? extends com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlightOrBuilder> \n getTransitFlightsOrBuilderList();",
"public List<String> getAirlines(){\n List<String> airlines = new LinkedList<String>();\n for (Flight flight : flights) {\n airlines.add(flight.getAirlineCode());\n }\n return airlines;\n }",
"public List<flight> timeSwich(List<flight> FlightInfo, List<airportInformation> airport){\n\t flight ThisInfo = new flight();\n\t airportInformation ai = new airportInformation();\n\t Iterator AllInfo = FlightInfo.iterator();\n\t \n\t SimpleDateFormat OTime = new SimpleDateFormat(\"yyyy_MM_dd HH:mm\");\n\t OTime.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t SimpleDateFormat NTime = new SimpleDateFormat(\"yyyy_MM_dd HH:mm\");\n\t String[] parts;\n\t String ThisTime;\n\t String[] airportName = ai.sortAirportName(airport);\n\t \n\t while (AllInfo.hasNext())\n\t { \n\t ThisInfo= (flight)AllInfo.next();//From this we can get the arriving airport and departing airport\n\t String date = ThisInfo.getDepartingDate()+\" \"+ThisInfo.getDepartingTime();\n\t Date FTime = null;\n\t switch (ai.getAirportRank(airportName, ThisInfo.getDepartingAirport())){\n\t case 0:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Anchorage\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 1:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 2:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 3:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 4:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 5:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 6:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 7:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 8:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 9:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 10:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 11:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 12:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Denver\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 13:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Detroit\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 14:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 15:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 16:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 17:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"Pacific/Honolulu\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 18:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 19:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 20:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Indiana/Indianapolis\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 21:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 22:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 23:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 24:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 25:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 26:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 27:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 28:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 29:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 30:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 31:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 32:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 33:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 34:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 35:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 36:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Phoenix\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 37:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 38:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 39:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 40:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Mountain\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 41:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 42:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 43:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 44:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 45:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Paciifc\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 46:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 47:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 48:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 49:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t case 50:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTime= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTime);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setDepartingDate(parts[0]);\n\t ThisInfo.setDepartingTime(parts[1]);\n\t break;\n\t \n\t }\n\t }\n\t Iterator AllInf = FlightInfo.iterator(); \n\t while (AllInf.hasNext())\n\t { ThisInfo=(flight)AllInf.next();\n\t String date = ThisInfo.getArrivingDate()+\" \"+ThisInfo.getArrivingTime();\n\t Date FTim = null;\n\t switch (ai.getAirportRank(airportName, ThisInfo.getArrivingAirport())){\n\t case 0:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Anchorage\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 1:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 2:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 3:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 4:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 5:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 6:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 7:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Chicago\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 8:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 9:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 10:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 11:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 12:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Denver\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 13:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Detroit\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 14:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 15:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 16:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 17:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"Pacific/Honolulu\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 18:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 19:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 20:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Indiana/Indianapolis\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 21:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 22:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 23:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Los_Angeles\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 24:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 25:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 26:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 27:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 28:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 29:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 30:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/New_York\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 31:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 32:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 33:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 34:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 35:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 36:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"America/Phoenix\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 37:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 38:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 39:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 40:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Mountain\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 41:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 42:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 43:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 44:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 45:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Paciifc\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 46:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Pacific\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 47:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Central\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 48:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 49:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t case 50:\n\t NTime.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t try{\n\t FTim= OTime.parse(date);\n\t } catch (ParseException e) {\n\t e.printStackTrace();\n\t }\n\t ThisTime = NTime.format(FTim);\n\t parts = ThisTime.split(\" \");\n\t ThisInfo.setArrivingDate(parts[0]);\n\t ThisInfo.setArrivingTime(parts[1]);\n\t break;\n\t \n\t }\n\t }\n\t \n\t return FlightInfo;\n\t }",
"@Override\n\tpublic List<CustomerData> getAllCustomer() {\n\t\treturn customerRepository.findAll();\n\t}",
"public void caltotaltraveltime()\n {\n \t\n \t switch(this.mLegs.size())\n \t {\n \t case 0:\n \t {\n \t\t this.mTravelTime=0;\n \t\t break;\n \t }\n \t case 1:\n \t { \n \t\t this.mTravelTime=this.mLegs.get(0).flighttime();\n \t\t break;\n \t }\n \t case 2:\n \t {\n \t\t Date arrivalt = this.mLegs.get(1).arrivaldate();\n \t\t Date departt = this.mLegs.get(0).departuredate();\n \t\t long diff = (arrivalt.getTime() - departt.getTime())/60000;\n \t\t this.mTravelTime=diff;\n \t\t break;\n \t }\n \t case 3:\n \t {\n \t Date arrivalt = this.mLegs.get(2).arrivaldate();\n \t Date departt = this.mLegs.get(0).departuredate();\n \t long diff = (arrivalt.getTime() - departt.getTime())/60000;\n \t this.mTravelTime=diff;\n \t break;\n \t }\n \t }\n }",
"public List<CustomerRequest> getCurrentRequests();",
"public List<LocalDateTime> getDateTimes() {\n return FoodListManager.convertListToLocalDateTimes(foodEntries);\n }",
"@Override\n\tpublic List<TimeInit> getAllTimeInit() {\n\t\treturn timeInitDao.getAllTimeInit();\n\t}",
"@GetMapping(\"/customers\")\r\n\tprivate List<Customer> getAllCustomers() {\r\n\t\treturn customerService.getAllCustomers();\r\n\t}",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\r\n\t\tList<Customer> allCustomers = new ArrayList<Customer>();\r\n\t\tallCustomers = customerRepository.findAll();\r\n\t\tif (!allCustomers.isEmpty()) {\r\n\t\t\treturn allCustomers;\r\n\t\t} else {\r\n\t\t\tthrow new EmptyEntityListException(\"No Customers Found.\");\r\n\t\t}\r\n\r\n\t}",
"public ArrayList<Time> getTimes() {\n\t\treturn times;\n\t}",
"public Calendar getReturnDate()\n\t{\n\t\treturn this.arrival;\n\t}",
"public List<String> getTime() {\r\n\t\treturn timeAvailable;\r\n\t}",
"public DateTime getArrivalDateTime() {\n return arrivalDateTime;\n }",
"@JsonIgnore public Collection<String> getDepartureGates() {\n final Object current = myData.get(\"departureGate\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<String>) current;\n }\n return Arrays.asList((String) current);\n }",
"public Map<Integer, GenericFlight> getFlights() {\n\t\treturn Collections.unmodifiableMap(this.flights);\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_Accepted() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id WHERE e.status=1 or e.status=6;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public int getArrivalTime(){return arrivalTime;}"
]
| [
"0.60799134",
"0.6074362",
"0.6045777",
"0.5996477",
"0.59769833",
"0.5948724",
"0.5911953",
"0.5886326",
"0.5830812",
"0.5777371",
"0.57719344",
"0.57402474",
"0.5714481",
"0.57068515",
"0.569508",
"0.5693303",
"0.5691488",
"0.56688803",
"0.5653111",
"0.5631199",
"0.56200296",
"0.5619009",
"0.5608854",
"0.560176",
"0.5601045",
"0.55984026",
"0.55942595",
"0.55904007",
"0.55754143",
"0.5571796",
"0.5568565",
"0.5527547",
"0.5523647",
"0.55215937",
"0.55122495",
"0.55121577",
"0.55121577",
"0.55049825",
"0.5498909",
"0.5494014",
"0.5477039",
"0.5472777",
"0.54481155",
"0.54432917",
"0.54388225",
"0.54368514",
"0.5436835",
"0.5434947",
"0.5428547",
"0.5428043",
"0.5420388",
"0.5417218",
"0.54006666",
"0.5394073",
"0.53916794",
"0.5376609",
"0.5373794",
"0.5362561",
"0.53488463",
"0.5345667",
"0.5332555",
"0.533115",
"0.5331005",
"0.53306806",
"0.53279334",
"0.5327788",
"0.5325175",
"0.53231245",
"0.52869374",
"0.5274091",
"0.52732235",
"0.52605283",
"0.52460444",
"0.5245068",
"0.5243278",
"0.523711",
"0.5226373",
"0.52183515",
"0.5214663",
"0.5208763",
"0.52045244",
"0.5192052",
"0.51864815",
"0.51779824",
"0.5175568",
"0.51745254",
"0.5173465",
"0.516868",
"0.5168672",
"0.51679087",
"0.51584154",
"0.51561576",
"0.51532084",
"0.5152161",
"0.5133287",
"0.5130036",
"0.5129276",
"0.5121833",
"0.51169574",
"0.51166934"
]
| 0.6492644 | 0 |
get the numbers of Customers. | public int getNumOfCustomers() {
return this.numOfCustomers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int Customers()\r\n\t{\r\n\t\treturn customers.size();\r\n\t}",
"public int getTotalCustomers()\n {\n return totalCustomers;\n }",
"int getCustomersCount();",
"private int getNumberOfCustomers(){\n FileServices fs = new FileServices();\n return fs.loadCustomers().size();\n }",
"void getTotalNumerCustomer();",
"public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}",
"@Override\n\tpublic int countCustomers() {\n\t\treturn 0;\n\t}",
"private int getNumberOfCoffees() {\n return Integer.parseInt(((TextView)findViewById(R.id.quantity_text_view)).getText().toString());\n }",
"public int countNumberClientsTotal() {\n\t\tint counter = 0;\n\t\tfor(int number : numberClients.values())\n\t\t\tcounter += number;\n\t\treturn counter;\n\t}",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"public int getNonPrunedCustomerCount() {\n return this.customers.size();\n }",
"public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}",
"public int getClients()\r\n\t{\r\n\t\treturn numberOfClients;\r\n\t}",
"public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"[email protected]\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"[email protected]\", \"Red\"));\n customers.add(new Customer(\"Recipient\", \"Three\", \"[email protected]\", \"Blue\"));\n customers.add(new Customer(\"Recipient\", \"Four\", \"[email protected]\", \"Orange\"));\n\n return customers;\n }",
"public void setTotalCustomers(int _totalCustomers){\n this.totalCustomers = _totalCustomers;\n\n }",
"public int getNumSales(){\r\n return sales;\r\n }",
"public Integer getCustomer() {\n return customer;\n }",
"public ArrayList<Customer> getCustomers()\r\n {\r\n return this.Customers;\r\n }",
"public int contactAmount()\n\t{\n\t\treturn contacts.size();\n\t}",
"private int numeroCuentas() {\r\n\t\tint cuentasCreadas = 0;\r\n\t\tfor (Cuenta cuenta : this.cuentas) {\r\n\t\t\tif (cuenta != null) {\r\n\t\t\t\tcuentasCreadas++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cuentasCreadas;\r\n\t}",
"public CustomerNumberElements getCustomerNumberAccess() {\n\t\treturn pCustomerNumber;\n\t}",
"public List<Customer> getCustomers() {\n\t\treturn customers;\n\t}",
"public int getHostCustNbr()\n\t{\n\t\treturn mHostCustNbr;\n\t}",
"private String companies() {\r\n\t\tint num=tile.getCompaniesNum();\r\n\t\tString out=\"Total Companies: \"+num;\r\n\t\treturn out;\r\n\t}",
"public int totalCompanies(){\n\treturn companyEmpWageArray.size();\n }",
"@Override\n public int getCount() {\n return customersArrayList.size();\n }",
"@Accessor(qualifier = \"Customers\", type = Accessor.Type.GETTER)\n\tpublic Collection<B2BCustomerModel> getCustomers()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CUSTOMERS);\n\t}",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"public int getCoins() {\r\n\t\treturn collectionManager.getCoins();\r\n\t}",
"public double getCustomerMoney(){\n double total = 0.0;\n for(Coin c : customerMoney){\n total += c.getValue();\n }\n return total;\n }",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"public java.lang.String getCustomerNbr() {\n return customerNbr;\n }",
"java.util.List<com.google.cloud.channel.v1.Customer> \n getCustomersList();",
"public java.lang.String getCustNo() {\n return custNo;\n }",
"public String getCustIdNbr()\n\t{\n\t\treturn mCustIdNbr;\t\n\t}",
"@Override\n\tpublic int getNbClients() {\n\t\t// TODO Auto-generated method stub\n\t\tint nbClients=0;\n\t\tfor (ArrayList<TC> quantite : salle.values()) {\t\t//On parcours l'ensemble de la liste pour connaître à chaque tour de\n\t\t\tnbClients += quantite.size();\t\t\t\t\t//boucle le nombre de personne prioritaire.\n\t\t}\n\t\treturn nbClients;\n\t\t\n\t\t// on cherche a donner le nombre de clients dans la salle à l'instant T, pour ce faire on fait la somme de la taille de chaque file d'attente \n// int res=0;\n// for(int i=0;i<maxPrio;i++) {\n// res += salle.get(i).size(); // on fait un get sur la salle d'indice i (correspondant a 1 niveau de priorité) ce qui rend l'ArrayList puis on prend la size de ce get. \n// }\n\t}",
"public String customersReceivingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getCustomer2MicroloansReceived().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of customers receiving micro loans: \" +total +\" worth a value of \"+sum;\n }",
"public Collection<Customer> listCustomer10() {\r\n\t\tfinal Collection<Customer> list = this.customerRepository.listCustomer10();\r\n\t\treturn list;\r\n\t}",
"int getDonatoriCount();",
"public int getCustomerref() {\n\t\treturn custref;\n\t}",
"public int getDonors()\n\t{\n\t\tint donors=0;\n\t\tString query=\"select count(distinct username) from donations\";\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\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tdonors=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 donors;\n\t}",
"public int clientsCount(){\n return clientsList.size();\n }",
"List<Customer> getCustomers();",
"public Collection<Customer> listCustomer10() {\n\t\tfinal Collection<Customer> list = this.customerRepository.listCustomer10();\n\t\treturn list;\n\t}",
"int getContactListCount();",
"int getContactListCount();",
"int getContactListCount();",
"int getContactListCount();",
"public int getCuerdas(){\n\treturn this.cuerdas;\n }",
"@Override\n\t@Transactional\n\tpublic List<AMOUNT> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<AMOUNT> theQuery = currentSession.createQuery(\"from Customer ORDER BY lastName\", AMOUNT.class);\n\n\t\t// execute query and get result list\n\t\tList<AMOUNT> customers = theQuery.getResultList();\n\n\t\t// return the results\n\t\treturn customers;\n\t}",
"int getContactCount();",
"com.google.cloud.channel.v1.Customer getCustomers(int index);",
"int getNumOfBuyOrders();",
"public java.lang.String getCustIdNbr() {\n return custIdNbr;\n }",
"public int getDataContactAmount() {\n\t\treturn currentUser.getContacts().size();\n\t}",
"public String getLstCustNo() {\n return lstCustNo;\n }",
"public int getNbClients() {\n\t\t\treturn nbClients;\r\n\t\t}",
"@Override\n\tpublic Integer getAllComBorrowingsCount() {\n\t\treturn comBorrowingsMapper.countByExample(new ComBorrowingsExample());\n\t}",
"public String getCustomersName()\r\n {\r\n return customersName;\r\n }",
"@RequestMapping(value = \"/country\", method = RequestMethod.GET)\n public List<CountryCustomerCount> customersInCountry() {\n return customerRepository.customerInCountry();\n }",
"@Override\r\n\tpublic int getCustomerIdCustomerDistribution(int CostomerorId) {\n\t\tList<?> resultList = null;\r\n\t\tString sql1= \"SELECT DISTINCT company_id FROM companiesusers where user_id='\"+CostomerorId+\"'\";\r\n\t\tresultList= dao.executeSQLQuery(sql1);\r\n\t\tObject l = resultList.get(0);\r\n\t\tint Customer_ID = Integer.valueOf(String.valueOf(l));\t\r\n\t\t\r\n\t\t\r\n\t\treturn Customer_ID;\r\n\t}",
"public int countServedCustomers()\r\n {\r\n int count = 0;\r\n //go through list and see which customers have non zero serve times--update count\r\n for(Customer c: this.Customers){\r\n if(c.getserveTime()> 0 ){\t\r\n count++;\r\n //add these customers to their own list\r\n this.servedCustomers.add(c);\r\n }\r\n }\r\n return count;\r\n }",
"public void getCustomerBooks() {\n\t\tfor (Book b : customerBooks) {\n\t\t\tSystem.out.println(b);\n\t\t}\n\t}",
"private static int getCustomerIndex(List<Integer> customer){\n return customer.get(0);\n }",
"public int totalAllocatedOrders();",
"public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }",
"int getPurchasableOffersCount();",
"public ArrayList<Customer> getservedCustomers()\r\n {\r\n return this.servedCustomers;\r\n }",
"public int getCountPhoneNumbers() {\n return count;\n }",
"public String customersOfferingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getCustomer2MicroloansOffered().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of customers providing micro loans: \" +total +\" worth a value of \"+sum;\n }",
"int getCustomerCount(CustomerVo vo);",
"public String getRandomCustNum() {\n\t\tString generatedCustNum = RandomStringUtils.randomAlphanumeric(Integer.valueOf(custNumLimit));\n\t\tlog.info(\"generatedCustNum: \" + generatedCustNum);\n\t\treturn generatedCustNum;\n\t}",
"List<Customer> getCustomerList();",
"@Override\n public ArrayList<IndividualCustomer> getData() {\n return customerList;\n }",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"public int getAllNumber() {\n\t\treturn ld.getAllNumber();\n\t}",
"int getPhoneCount();",
"int getPhoneCount();",
"public List<String> getCustomerIds() {\r\n\t\treturn getSingleColWithMultipleRowsList(GET_CUSTOMER_IDS);\r\n\t}",
"public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }",
"public List<String> getNumbers(){\n\t\treturn this.numberList;\n\t}",
"@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}",
"public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }",
"int getContactAddressCount();",
"@Override\n public int getItemCount() {\n return mCustomerNames.size();\n }",
"public Integer getPurchases() {\n return purchases;\n }",
"public int getPhoneNuber() {\r\n return phoneNuber;\r\n }",
"@Override\n\tpublic Iterable<Customer> displayCust() {\n\t\treturn customerRepository.findAll();\n\t}",
"public List<Integer> getDonors() {\n return donors;\n }",
"@Override\n\tpublic int numberOfAccounts() {\n\t\treturn counter;\n\t}",
"public int getCents()\r\n {\r\n return cents;\r\n }",
"public int count() {\n\t\tint count = cstCustomerDao.count();\n\t\treturn count;\n\t}",
"public List<CustomerModel> getCustomers();",
"public int getAgentCustomers(int agent_id) {\n int id = 0;\n try {\n checkAgentCustomers.setInt(1, agent_id);\n ResultSet resultset = checkAgentCustomers.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID is: \" + id + \"\\n\");\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Agent Doesn't Manage Any Customers Yet!\");\n }\n return id;\n }",
"public int numContacts();",
"public int listAmount() {\n return count;\n }",
"int getNumOfSellOrders();",
"public int getNrSubscribers()\r\n {\r\n return subscriberInfos.size();\r\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/list\", produces = \"application/json\")\r\n\tpublic List<Integer> list() {\r\n\t\treturn gcdNumbersService.getAllNumbers();\r\n\t}",
"public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }"
]
| [
"0.79372156",
"0.7554831",
"0.74755937",
"0.71072733",
"0.7057155",
"0.68688786",
"0.6785469",
"0.65848166",
"0.65546465",
"0.64361227",
"0.63999707",
"0.633985",
"0.63340145",
"0.626761",
"0.62467486",
"0.62455773",
"0.62306315",
"0.6195631",
"0.6169654",
"0.6167395",
"0.6146422",
"0.61394465",
"0.61123246",
"0.6110275",
"0.6094862",
"0.60822004",
"0.6081335",
"0.60688555",
"0.6067541",
"0.60489595",
"0.6035368",
"0.6034335",
"0.602399",
"0.60214317",
"0.59985596",
"0.5995981",
"0.59916204",
"0.5986055",
"0.59765166",
"0.59716403",
"0.5964311",
"0.5947517",
"0.59438616",
"0.5943617",
"0.593734",
"0.593734",
"0.593734",
"0.593734",
"0.59292567",
"0.59289145",
"0.5926112",
"0.59193796",
"0.5913041",
"0.59088475",
"0.589518",
"0.5890469",
"0.58842623",
"0.58812743",
"0.5876215",
"0.58692527",
"0.58684844",
"0.5863544",
"0.5860548",
"0.5850592",
"0.5843997",
"0.5831778",
"0.5826648",
"0.5824625",
"0.58172053",
"0.58075345",
"0.5806565",
"0.5787719",
"0.57844746",
"0.57835805",
"0.5774452",
"0.5771677",
"0.5766252",
"0.5766252",
"0.57638407",
"0.57555234",
"0.5753601",
"0.57460576",
"0.57459134",
"0.57328534",
"0.5727695",
"0.57219493",
"0.5718556",
"0.57120675",
"0.5711502",
"0.5705621",
"0.57034194",
"0.57027423",
"0.5700115",
"0.56951463",
"0.5689104",
"0.568786",
"0.5687535",
"0.56855035",
"0.56827545",
"0.56818384"
]
| 0.7779376 | 1 |
get the list of all Servers. | public List<Server> getServerList() {
return new ArrayList<Server>(serversList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Server> getAllServers(){\n\t\tlogger.info(\"Getting the all server details\");\n\t\treturn new ArrayList<Server>(servers.values());\n\t}",
"List<Server> servers() {\n return servers;\n }",
"public ArrayList<Server> getServers(){\n return this.serversList;\n }",
"public static List<SkungeeServer> getServers() {\n\t\treturn ServerManager.getServers();\n\t}",
"public List<ServerServices> listServerServices();",
"public ServerList getServers() {\r\n return this.servers;\r\n }",
"public List<Server> getServerList() {\n return serverList;\n }",
"public Object[] getNameServers() {\n\t\treturn _nameservers.toArray();\n\t}",
"public List<ServerHardware> getServers();",
"@Override\n @GET\n @Path(\"/servers\")\n @Produces(\"application/json\")\n public Response getServers() throws Exception {\n log.trace(\"getServers() started.\");\n JSONArray json = new JSONArray();\n for (Server server : cluster.getServerList()) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/servers/%d\", rootUri, server.getServerId());\n String serverUri = String.format(\"/providers/%d/servers/%d\", provider.getProviderId(), server.getServerId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", serverUri);\n json.put(o);\n }\n\n log.trace(\"getServers() finished successfully.\");\n return Response.ok(json.toString()).build();\n }",
"List<Long> getServers();",
"public static Server [] getServers(){\r\n Enumeration serversEnum = servers.elements();\r\n Server [] arr = new Server[servers.size()];\r\n for (int i = 0; i < arr.length; i++)\r\n arr[i] = (Server)serversEnum.nextElement();\r\n\r\n return arr;\r\n }",
"public NetworkInstance[] getServers();",
"private List<Server> getRemoteServers() {\n if (!isDas())\n throw new RuntimeException(\"Internal Error\"); // todo?\n\n List<Server> notdas = new ArrayList<Server>(targets.size());\n String dasName = serverEnv.getInstanceName();\n\n for (Server server : targets) {\n if (!dasName.equals(server.getName()))\n notdas.add(server);\n }\n\n return notdas;\n }",
"public List<String> nameServers() {\n return this.nameServers;\n }",
"List<HttpServletServer> getHttpServers();",
"public List<SkungeeServer> getServers(String... servers) {\n\t\treturn ServerManager.getServers(servers);\n\t}",
"public List<String> dnsServers() {\n return this.dnsServers;\n }",
"public List<String> getServices() {\n return runtimeClient.getServices();\n }",
"List<Service> services();",
"List<String> getHosts();",
"public List<String> getAllServices() {\n List<String> allServices = new ArrayList<>();\n for (ServiceDescription service : serviceList.values()) {\n allServices.add(service.getServiceName());\n }\n return allServices;\n }",
"@Override\n\tpublic String[] GetFileServers() {\n\t\tString fservers[]=new String[list.size()];\n\t\tint i=0;\n\t\tfor(String s:list){\n\t\t\tfservers[i++]=s;\n\t\t}\n\t\treturn fservers;\n\t}",
"public List<ServiceInstance> getAllInstances();",
"public List<String> getAddresses() throws RemoteException {\n\t\tList<String> addresses = new ArrayList<String>();\n\t\tif (this.registry != null) {\n\t\t\tfor (IServer server : this.serverList.getServers()) {\n\t\t\t\taddresses.add(server.getFullAddress());\n\t\t\t}\n\t\t}\n\t\treturn addresses;\n\t}",
"private String getZkServers(ServletContext context){\n Configuration config = new Configuration();\n config.addResource(\"pxf-site.xml\");\n String zk_hosts = config.get(\"zookeeper\");\n if(LOG.isDebugEnabled())\n LOG.debug(\"zookeeper server is :\" + zk_hosts);\n\n return zk_hosts;\n }",
"@Exported\n public ArrayList<Slave> getSlaves() {\n return this.slaves;\n }",
"public List<ApplicationGatewayBackendHealthServerInner> servers() {\n return this.servers;\n }",
"public List<FileServer> viewAllFileServer() {\n\t\tList<FileServer> fileservers=getHibernateTemplate().find(\"from FileServer\");\r\n\t\t//另外一种方法\r\n\t\t/*Session session=getHibernateTemplate().getSessionFactory().openSession();\r\n\t\tTransaction ts=session.beginTransaction();\r\n\t\tQuery query=session.createQuery(\"from FileServer\");\r\n\t\t\r\n\t\tList<FileServer> fileservers=query.list();\r\n\t\t\r\n\t\tts.commit();\r\n\t\tsession.close();\r\n\t\tsession=null;*/\r\n\t\treturn fileservers;\r\n\t}",
"@GET\t\n\t@Produces(\"application/json\")\n\t@Path(\"/\")\n\tpublic List<Site> findAllSites(){\n\t\treturn siteDaoObj.findAllSites();\n\t\t\n\t}",
"public ArrayList<String> getNameServerUrl() {\n\n if (nameListener.isServiceFound()) {\n return nameListener.getServiceURLs();\n }\n return new ArrayList<>();\n }",
"public PropertyRemoteServers getServers() {\n return this.m_Servers;\n }",
"public List<Map.Entry<String, L>> entries() {\n rwLock.readLock().lock();\n try {\n return new ArrayList<Map.Entry<String, L>>(serversToLoad.entrySet());\n } finally {\n rwLock.readLock().unlock();\n }\n }",
"ImmutableList<T> getServices();",
"public List<String> getCPanelServerList() {\n\t\tString cPanelServerList = getProperties().getProperty(\"cpanel.server.list\").trim();\n\t\tString[] cPanelServerArray= cPanelServerList.split(\"#\");\n\t\tList<String> result = new ArrayList<String>(); \n\t\tfor(String cPanelServer: cPanelServerArray){\n\t\t\tString[] params = cPanelServer.split(\",\");\n\t\t\tif(params!= null && params.length>1){\n\t\t\t\tString cpanelIP = params[0];\n\t\t\t\tresult.add(cpanelIP);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public java.lang.String[] getServerIds() {\r\n return serverIds;\r\n }",
"public Object[] getNameServerPorts() {\n\t\treturn _nameserverPorts.toArray();\n\t}",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n return services_;\n }",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n return services_;\n }",
"public List<ServiceInstance> getAllInstances(String serviceName);",
"public List<ServiceRegistry> getServiceRegistrys() {\n\t\treturn (new ServiceRegistryDAO()).getCloneList();\r\n\t}",
"Collection<? extends Service> getHost();",
"public List<String> getHosts() {\n\t\treturn hosts;\n\t}",
"@Override\n\tpublic Collection<InetSocketAddress> getAvaliableServers() {\n\t\treturn null;\n\t}",
"public List<ServerServices> searchExternalService(int servId, String dataPort, String servicePort);",
"public List<Clients> getallClients();",
"@Override\n public List<ServiceEndpoint> listServiceEndpoints() {\n return new ArrayList<>(serviceEndpoints.values());\n }",
"public List<String> getHosts() {\n return getProperty(HOSTS);\n }",
"@Override\n\tpublic List<UserServer> registry() {\n\t\tResultSet result;\n\t\tList<UserServer> listUser = new ArrayList<UserServer>();\n\t\ttry {\n\t\t\tstat = conn.prepareStatement(\"SELECT * FROM client\");\n\t\t\tresult = stat.executeQuery();\n\t\t\twhile (result.next()) {\n\t\t\t\tUserServer user = new UserServer();\n\t\t\t\tuser.setId(result.getInt(\"idclient\"));\n\t\t\t\tuser.setName(result.getString(\"name\"));\n\t\t\t\tuser.setNick(result.getString(\"nick\"));\n\t\t\t\tuser.getTypeUser().setValue(result.getInt(\"typeuser\"));\n\t\t\t\tuser.setPhone(takePhone(user.getId()));\n\t\t\t\tuser.setEmail(takeEmail(user.getId()));\n\t\t\t\tlistUser.add(user);\n\t\t\t}\n\t\t\treturn listUser;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}",
"public List<T> showAllClients();",
"public ArrayList<Service> selectAll(){\n return Database.servico;\n }",
"public ArrayList<String> getWebserverUrl() {\n\n if (webListener.isServiceFound()) {\n return webListener.getServiceURLs();\n }\n return new ArrayList<>();\n }",
"public List<VirtualHost> getHosts() {\r\n return this.hosts;\r\n }",
"public Map listServices() throws IOException\n\t{\n\t\treturn request(GET, address(null, null));\n\t}",
"Set<Client> getAllClients();",
"public int[] availableServers() throws RemoteException {\n\t\t\tint i = 0;\n\n\t\t\t// convert to primitives array\n\t\t\tint[] result = new int[m_services.size()];\n\t\t\tfor (Integer id : m_services.keySet())\n\t\t\t\tresult[i++] = id;\n\t\t\t\n\t\t\treturn result;\n\t\t}",
"public List<Service> list(){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \treturn criteria.list();\r\n }",
"List<ManagedEndpoint> all();",
"public List<String> allClients() throws IOException {\n String httpResponse = httpGet(baseUrl.resolve(\"/automation/v2/clients\"));\n return mapper.readValue(httpResponse, new TypeReference<List<String>>() {\n });\n }",
"ResponseDTO startAllServers();",
"@Override\n public List<ConsumerMember> listClients() {\n return this.soapClient.listClients(this.getTargetUrl());\n }",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n if (servicesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(services_);\n } else {\n return servicesBuilder_.getMessageList();\n }\n }",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n if (servicesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(services_);\n } else {\n return servicesBuilder_.getMessageList();\n }\n }",
"public List<String> getServices() throws IOException;",
"public List<String> listAllRemoteSites () {\r\n\t\ttry {\r\n\t\t\tList<String> urls = new ArrayList<String>();\r\n\t\t\tpstmt = conn.prepareStatement(\"SELECT * FROM RemoteSite\");\r\n\t\t\trset = pstmt.executeQuery();\r\n\t\t\twhile (rset.next()) {\r\n\t\t\t\turls.add(rset.getString(\"url\"));\r\n\t\t\t}\r\n\t\t\treturn urls;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} finally {\r\n\t\t\tDatabaseConnection.closeStmt(pstmt, rset);\r\n\t\t}\r\n\t}",
"public List<Service> getService() {\n\t\treturn ServiceInfo.listService;\n\t}",
"public List<Site> getSites() {\n SiteQuery sq = new SiteQuery.Builder().withSiteTypes(SiteType.SITE).build();\n List<Site> s = PortalRequest.getInstance().getPortal().findSites(sq);\n return s;\n }",
"public ArrayList<String> getDbSlaves() throws JsonSyntaxException, JsonIOException, IOException {\n ArrayList<String> dbslaves = new ArrayList<>();\n if (dbhosts != null) {\n for (String h : dbhosts) {\n dbslaves.add(h);\n }\n return dbslaves;\n }\n if (slavesFile != null) {\n File f = new File(slavesFile);\n FileInputStream input = new FileInputStream(f);\n Gson gson = new Gson();\n Hosts hosts = gson.fromJson(new InputStreamReader(input), Hosts.class);\n dbhosts = hosts.getHosts();\n if (hosts != null) {\n for (String host : hosts.getHosts()) {\n dbslaves.add(host);\n }\n }\n }\n return dbslaves;\n }",
"public Iterator getClients() {\n rrwl_serverclientlist.readLock().lock();\n try {\n return clientList.iterator();\n } finally {\n rrwl_serverclientlist.readLock().unlock();\n }\n }",
"public List<ServiceProvider> services() throws ConsulException {\n try {\n final Self self = self();\n final List<ServiceProvider> providers = new ArrayList<>();\n final HttpResp resp = Http.get(consul().getUrl() + EndpointCategory.Agent.getUri() + \"services\");\n final JsonNode obj = checkResponse(resp);\n for (final Iterator<String> itr = obj.fieldNames(); itr.hasNext(); ) {\n final JsonNode service = obj.get(itr.next());\n final ServiceProvider provider = new ServiceProvider();\n provider.setId(service.get(\"ID\").asText());\n provider.setName(service.get(\"Service\").asText());\n provider.setPort(service.get(\"Port\").asInt());\n // Map tags\n String[] tags = null;\n if (service.has(\"Tags\") && service.get(\"Tags\").isArray()) {\n final ArrayNode arr = (ArrayNode)service.get(\"Tags\");\n tags = new String[arr.size()];\n for (int i = 0; i < arr.size(); i++) {\n tags[i] = arr.get(i).asText();\n }\n }\n provider.setTags(tags);\n provider.setAddress(self.getAddress());\n provider.setNode(self.getNode());\n providers.add(provider);\n }\n return providers;\n } catch (IOException e) {\n throw new ConsulException(e);\n }\n }",
"@Override public Collection<String> getServerIds() {\n return getTrackedBranches().getServerIds();\n }",
"public List<ServerWorker> getWorkerList()\n {\n return workerList;\n }",
"@Override\n public List<AppServerType> getServerType()\n {\n return AppServerType.allvalues();\n }",
"public ArrayList<ServerClient> displayAll() throws SQLException\n\t{\n\t\tString SQL_P = \"SELECT * FROM Clients\";\n\t\tResultSet rs;\n\n\t\tArrayList<ServerClient> array = new ArrayList<>();\n\t\tStatement stmt = con.createStatement();\n\t\ttry\n\t\t{\n\t\t\trs = stmt.executeQuery(SQL_P);\n\t\t\twhile (rs.next())\n\t\t\t{\n\n\t\t\t}\n\t\t\treturn array;\n\t\t} finally\n\t\t{\n\t\t\tif (stmt != null)\n\t\t\t{\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<ServerSocket> getConnectedClients() {\n return connectedClients;\n }",
"protected ServiceBundler getServices() {\n return services;\n }",
"org.jacorb.imr.HostInfo[] list_hosts();",
"public List<String> getDeployments() {\n return runtimeClient.getDeployments();\n }",
"@Nullable\n public static Collection<EnvoyContainer> getAllEnvoys(){\n return envoys.values();\n }",
"java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();",
"java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();",
"Set<ServiceProducer> getAllServiceProviders();",
"@Override\n public List<String> getDnsServerAddresses()\n {\n final List<String> servers = new ArrayList<>();\n final Network network = getActiveNetwork();\n if (network == null) {\n return null;\n }\n\n LinkProperties linkProperties = connectivityManager.getLinkProperties(network);\n if (linkProperties == null) {\n return null;\n }\n\n int vpnOffset = 0;\n final NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network);\n final boolean isVpn = networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_VPN;\n final List<String> v4v6Servers = getIPv4First(linkProperties.getDnsServers());\n // Timber.d(\"hasDefaultRoute: %s activeNetwork: %s || isVpn: %s || IP: %s\",\n // hasDefaultRoute(linkProperties), network, isVpn, toListOfStrings(linkProperties.getDnsServers()));\n\n if (isVpn) {\n servers.addAll(0, v4v6Servers);\n // vpnOffset += v4v6Servers.size();\n }\n // Prioritize the DNS servers of links which have a default route\n else if (hasDefaultRoute(linkProperties)) {\n servers.addAll(vpnOffset, v4v6Servers);\n }\n else {\n servers.addAll(v4v6Servers);\n }\n\n // Timber.d(\"dns Server Addresses (linkProperty): %s\", servers);\n return servers;\n }",
"public List<ServiceInstance<InstanceDetails>> listInstances() throws Exception {\n\t\tCollection<String> serviceNames = serviceDiscovery.queryForNames();\n\t\tSystem.out.println(serviceNames.size() + \" type(s)\");\n\t\tList<ServiceInstance<InstanceDetails>> list = new ArrayList<>();\n\t\tfor (String serviceName : serviceNames) {\n\t\t\tCollection<ServiceInstance<InstanceDetails>> instances = serviceDiscovery.queryForInstances(serviceName);\n\t\t\tSystem.out.println(serviceName);\n\t\t\tfor (ServiceInstance<InstanceDetails> instance : instances) {\n\t\t\t\toutputInstance(instance);\n\t\t\t\tlist.add(instance);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public List<ServiceNode> getRelevantServices() {\n\t\treturn relevantServices;\n\t}",
"@Override\r\n\tpublic List<sn.ucad.master.assurance.bo.Service> findAllService() {\n\t\treturn serviceRepository.findAll();\r\n\t}",
"public List<ServiceInstance> lookupInstances(String serviceName);",
"public List<RegionServer> regionServers() {\n\t\tBufferedReader bufReader = null;\n\t\tInputStreamReader input = null;\n\t\tList<RegionServer> list = new ArrayList<>();\n\t\ttry {\n\t\t\tURL url = new URL(HBase.HTTP + SystemConfig.getProperty(\"hive.cube.hbase.master\") + HBase.HBASE_REGION_SERVER_JMX);\n\t\t\tHttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n\t\t\tinput = new InputStreamReader(httpConn.getInputStream(), \"UTF-8\");\n\t\t\tbufReader = new BufferedReader(input);\n\t\t\tString line = \"\";\n\t\t\tStringBuilder contentBuf = new StringBuilder();\n\t\t\twhile ((line = bufReader.readLine()) != null) {\n\t\t\t\tcontentBuf.append(line);\n\t\t\t}\n\t\t\tJSONObject tmpBuf = JSON.parseObject(contentBuf.toString());\n\t\t\tJSONObject object = (JSONObject) JSON.parseArray(tmpBuf.getString(\"beans\")).get(0);\n\t\t\tString[] liveRegionServers = object.getString(\"tag.liveRegionServers\").split(\";\");\n\t\t\tfor (String node : liveRegionServers) {\n\t\t\t\tif (node.length() != 0) {\n\t\t\t\t\tRegionServer region = new RegionServer();\n\t\t\t\t\tregion.setRegionName(node.split(\",\")[0] + \":\" + node.split(\",\")[1]);\n\t\t\t\t\tregion.setStartTime(CalendarUtils.convertUnixTime(Long.parseLong(node.split(\",\")[2])));\n\t\t\t\t\tregion.setLive(true);\n\t\t\t\t\tlist.add(region);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] deadRegionServers = object.getString(\"tag.deadRegionServers\").split(\";\");\n\t\t\tfor (String node : deadRegionServers) {\n\t\t\t\tif (node.length() != 0) {\n\t\t\t\t\tRegionServer region = new RegionServer();\n\t\t\t\t\tregion.setRegionName(node.split(\",\")[0] + \":\" + node.split(\",\")[1]);\n\t\t\t\t\tregion.setStartTime(CalendarUtils.convertUnixTime(Long.parseLong(node.split(\",\")[2])));\n\t\t\t\t\tregion.setLive(false);\n\t\t\t\t\tlist.add(region);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Filter[Region] HBase JMX has error,msg is \" + e.getMessage());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (input != null) {\n\t\t\t\t\tinput.close();\n\t\t\t\t}\n\t\t\t\tif (bufReader != null) {\n\t\t\t\t\tbufReader.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLOG.error(\"Close IO has error,msg is \" + e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"public static ArrayList<Client> getClients() {\n return clients;\n }",
"Collection<Service> getAllSubscribeService();",
"@Programmatic\n public List<Class<?>> allServiceClasses() {\n List<Class<?>> serviceClasses = Lists\n .transform(this.servicesInjector.getRegisteredServices(), new Function<Object, Class<?>>(){\n public Class<?> apply(Object o) {\n return o.getClass();\n }\n });\n // take a copy, to allow eg I18nFacetFactory to add in default implementations of missing services.\n return Collections.unmodifiableList(Lists.newArrayList(serviceClasses));\n }",
"private Iterable<Service> loadServiceData() {\n return services;\n }",
"@GET\n @Consumes({\"application/json\"})\n @Produces({\"application/json\"})\n public RestRsp<List<Tp>> getSites() throws ServiceException {\n return new RestRsp<List<Tp>>(ResultConstants.SUCCESS, service.getSites());\n }",
"@Override\r\n\tpublic List prodAllseach() {\n\t\treturn adminDAO.seachProdAll();\r\n\t}",
"public Map<String, ServiceNode> getServices() {\n\t\treturn serviceMap;\n\t}",
"public static ArrayList<MqttClient> getAllClients() {\n return clients;\n }",
"public Set list() {\n Set result = new HashSet();\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n result.addAll( catalog.list() );\n }\n return result;\n\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/apiservers\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<APIServerList, APIServer> listAPIServer();",
"public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }",
"List<AdminDomain> getDomains();"
]
| [
"0.84058523",
"0.7709752",
"0.76229703",
"0.7595031",
"0.75143313",
"0.7465655",
"0.7408925",
"0.7063343",
"0.7027366",
"0.6919082",
"0.69047725",
"0.68936396",
"0.6884487",
"0.6865052",
"0.67006654",
"0.6559255",
"0.6422148",
"0.64094436",
"0.64088744",
"0.6388468",
"0.6290939",
"0.62807375",
"0.62586135",
"0.6232766",
"0.62283534",
"0.6201711",
"0.61914796",
"0.61838",
"0.616945",
"0.608891",
"0.6083186",
"0.6072149",
"0.60529447",
"0.604459",
"0.6042711",
"0.60360324",
"0.60242426",
"0.59999025",
"0.59999025",
"0.5988716",
"0.5987603",
"0.5984094",
"0.596575",
"0.59498626",
"0.59336483",
"0.5916355",
"0.5900469",
"0.5895226",
"0.589437",
"0.5881271",
"0.587873",
"0.5872239",
"0.5870501",
"0.5868142",
"0.5867871",
"0.5865236",
"0.5858722",
"0.5855702",
"0.58551556",
"0.58271086",
"0.5826343",
"0.57931066",
"0.57931066",
"0.57914907",
"0.57749265",
"0.5773718",
"0.57680273",
"0.57598424",
"0.57573795",
"0.5755862",
"0.5751211",
"0.57146615",
"0.57143193",
"0.57066375",
"0.5695938",
"0.567777",
"0.5665978",
"0.56641185",
"0.5653167",
"0.56473804",
"0.56473804",
"0.56342447",
"0.5632266",
"0.5623823",
"0.5622367",
"0.5621983",
"0.5610012",
"0.5609288",
"0.56062776",
"0.55964816",
"0.5588446",
"0.55873",
"0.55856466",
"0.55797166",
"0.5571209",
"0.55710375",
"0.55698127",
"0.55639726",
"0.5561493",
"0.5561386"
]
| 0.7792887 | 1 |
get the list of all Customers. | public List<Customer> getCustomerList() {
return new ArrayList<Customer>(customersList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ObservableList<Customers> getAllCustomers() {\n return allCustomers;\n }",
"@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}",
"public List<Customer> getAllCustomers() {\n return customerRepository.findAll();\n }",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"@GetMapping(value = CustomerRestURIConstants.GET_ALL_CUSTOMER )\n\tpublic ResponseEntity<List<Customer>> list() {\n\t\tList<Customer> customers = customerService.getAllCustomers();\n\t\treturn ResponseEntity.ok().body(customers);\n\t}",
"public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn customerRepository.findAllCustomer();\n\t}",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"public List<Customer> getAllCustomers() {\n Query query = em.createNamedQuery(\"Customer.findAll\");\r\n // return query result\r\n return query.getResultList();\r\n }",
"public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"[email protected]\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"[email protected]\", \"Red\"));\n customers.add(new Customer(\"Recipient\", \"Three\", \"[email protected]\", \"Blue\"));\n customers.add(new Customer(\"Recipient\", \"Four\", \"[email protected]\", \"Orange\"));\n\n return customers;\n }",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}",
"@GET\n\t@Path(\"getAllCustomer\")\n\tpublic List<Customer> getAllCustomer() {\n\t\treturn ManagerHelper.getCustomerManager().getAllCustomer();\n\t}",
"@GET\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\tpublic ArrayList<Customer> getCustomers() {\r\n\t\treturn custDao.readAll();\r\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}",
"public List<Customer> getCustomers() {\n\t\treturn customers;\n\t}",
"@Override\n\t@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\treturn customerDAO.getCustomers();\n\t\t\n\t}",
"public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }",
"@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}",
"@PreAuthorize(\"#oauth2.hasAnyScope('read','write','read-write')\")\n\t@RequestMapping(method = GET)\n\tpublic Mono<ResponseEntity<List<Customer>>> allCustomers() {\n\n\t\treturn repo.findAll().collectList()\n\t\t\t.filter(customers -> customers.size() > 0)\n\t\t\t.map(customers -> ok(customers))\n\t\t\t.defaultIfEmpty(noContent().build());\n\t}",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\r\n\t\tList<Customer> allCustomers = new ArrayList<Customer>();\r\n\t\tallCustomers = customerRepository.findAll();\r\n\t\tif (!allCustomers.isEmpty()) {\r\n\t\t\treturn allCustomers;\r\n\t\t} else {\r\n\t\t\tthrow new EmptyEntityListException(\"No Customers Found.\");\r\n\t\t}\r\n\r\n\t}",
"@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}",
"public List<Customer> findAll(){\n\t\treturn custRepo.findAll();\n\t}",
"@Override\n\tpublic List<CustomerData> getAllCustomer() {\n\t\treturn customerRepository.findAll();\n\t}",
"public ArrayList<Customer> getAllCustomers();",
"@GetMapping(\"/customers\")\r\n\tprivate List<Customer> getAllCustomers() {\r\n\t\treturn customerService.getAllCustomers();\r\n\t}",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Customer order by lastName\", Customer.class)\n\t\t\t\t.getResultList();\n\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Customer> theQuery =\n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\treturn customers;\n\t}",
"java.util.List<com.google.cloud.channel.v1.Customer> \n getCustomersList();",
"@Override\n\tpublic Uni<List<Customer>> findAllCustomer() {\n\t\treturn repo.findAll().list();\n\t}",
"@Override\n\tpublic List<Customer> findAllCustomer() {\n\t\treturn customerDao.findAllCustomer();\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create the query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//get the result list\n\t\tList<Customer> customers = query.getResultList();\n\t\treturn customers;\n\t}",
"@Override\n\tpublic List<Customer> findAll() {\n\t\treturn customerRepository.findAll();\n\t}",
"List<Customer> getCustomers();",
"@RequestMapping(method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Collection<Customer>> getAllUsers() {\n\t\t\treturn service.getAllCustomers();\n\t\t}",
"@Override\n\tpublic Collection<Customer> getAllCustomers() throws Exception {\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\ttry {\n\t\t\tString getAllCustomers = \"select * from customer\";\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getAllCustomers);\n\t\t\tint result = 0;\n\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tCustomer cust = new Customer();\n\t\t\t\t\tcust.setId(rs.getLong(\"ID\"));\n\t\t\t\t\tcust.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\t\tcust.setPassword(rs.getString(\"Password\"));\n\t\t\t\t\tcustomers.add(cust);\n\t\t\t\t\tresult++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(result + \" Customers were retrieved.\");\n \n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close the connection to the DB\");\n\t\t\t}\n\t\t}\n\t\treturn customers;\n\t}",
"@RequestMapping(\"getAllCustomers\")\r\n\t @ResponseBody\r\n\t public List<Customer> getAllCustomers() {\r\n\t\t return repo.findAll();\r\n\t }",
"@RequestMapping(value = \"/customers\", method = RequestMethod.GET)\n public ResponseEntity<?> getCustomers() {\n Iterable<Customer> customerList = customerService.getCustomers();\n return new ResponseEntity<>(customerList, HttpStatus.OK);\n }",
"public static List<Customer> getAllCustomers() {\r\n\t\tList<Customer> customerList = new ArrayList<Customer>();\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\tCustomer customer = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\r\n\t\t\t\tString customerName = rs.getString(\"customerName\");\r\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\r\n\t\t\t\tPerson primaryContact = Person.getPersonByKey(personKey);\r\n\t\t\t\tint addressKey = rs.getInt(\"addressKey\");\r\n\t\t\t\tAddress address = Address.getAddressByKey(addressKey);\r\n\t\t\t\t\r\n\t\t\t\tif (customerType.equals(\"G\")) {\r\n\t\t\t\t\tcustomer = new GovernmentCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, primaryContact, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t\tcustomerList.add(customer);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"SQLException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t} finally {\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t// create a query ... sort by the lastname\n\t\tQuery<Customer> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\",Customer.class);\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t}",
"@Override\n\t@Transactional\n\tpublic List<AMOUNT> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<AMOUNT> theQuery = currentSession.createQuery(\"from Customer ORDER BY lastName\", AMOUNT.class);\n\n\t\t// execute query and get result list\n\t\tList<AMOUNT> customers = theQuery.getResultList();\n\n\t\t// return the results\n\t\treturn customers;\n\t}",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"@Override\n\t@Transactional(readOnly=true)\n\tpublic List<Customer> findAll() {\n\t\treturn (List<Customer>) customerDAO.findAll();\n\t}",
"public ArrayList<Customer> getCustomers()\r\n {\r\n return this.Customers;\r\n }",
"@RequestMapping(value = \"/customer-addres\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<CustomerAddres> getAllCustomerAddres() {\n log.debug(\"REST request to get all CustomerAddres\");\n List<CustomerAddres> customerAddres = customerAddresRepository.findAll();\n return customerAddres;\n }",
"@Override\n\tpublic List<MstCustomerDto> getAllCustomer() {\n\t\tList<MstCustomerDto> listMstCustomerDtos=new ArrayList<>();\n\t\tList<Object[]> obj=new ArrayList<>();\n\t\t\n\t\tobj = mstCustomerDao.getAll();\n\t\tlistMstCustomerDtos = mapperFacade.mapAsList(obj, MstCustomerDto.class);\n\t\t\n\t\treturn listMstCustomerDtos;\n\t}",
"public List<CustomerEntity> findAll() {\n\t\treturn customerRepository.findAll();\n\t}",
"List<Customer> getCustomerList();",
"List<Customer> getList();",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic @ResponseBody\n\tIterable<Customer> findAll() {\n\t\tLOGGER.debug(\"Rendering persons list\");\n\t\treturn customerService.findAll();\n\n\t}",
"@Override\n\tpublic Iterable<Customer> displayCust() {\n\t\treturn customerRepository.findAll();\n\t}",
"public List<CustomerModel> getCustomers();",
"@Override\n\t@Transactional\n\tpublic List<Customer> getAll() {\n\t\tList<Customer> loadAll = hibernateTemplate.loadAll(Customer.class);\n\t\treturn loadAll;\n\t}",
"@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\t\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t\t\t// create a query ... sort by last name\n\t\t\t\tQuery<Customer> theQuery = currentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t\t\t// execute query and get result list\n\t\t\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\t\t\t// return the results\n\t\t\t\treturn customers;\n\t}",
"@ApiOperation(value = \"Lists all the customers\", notes = \"\")\n @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerListDTO getCustomers() {\n\n return new CustomerListDTO(customerService.getCustomers());\n }",
"public List<Customer> findAllCustomers() throws DatabaseOperationException;",
"public List<Customer> findAll() {\n\t\t//get current session\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t//query to fetch all records\n\t\tQuery<Customer> query = currentSession.createQuery(\n\t\t\t\t\t\t\t\t\"from Customer where customerId!=:customerId\", Customer.class);\n\t\t//get account details of all accounts\n\t\tquery.setParameter(\"customerId\", 9999999);\n\t\tList<Customer> customer = query.getResultList();\n\t\t//return the result\n\t\treturn customer;\n\t}",
"@GetMapping(\"/customers\")\n public List<Customer> findAll()\n {\n return customerService.findAll();\n }",
"@GetMapping(\"/allCustomers\")\n public List<Customer> getAllCusData() {\n return customerData.showList();\n }",
"@Accessor(qualifier = \"Customers\", type = Accessor.Type.GETTER)\n\tpublic Collection<B2BCustomerModel> getCustomers()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CUSTOMERS);\n\t}",
"public ArrayList<Customer> getCustomerList() {\n\t\treturn customerList;\n\t}",
"@GetMapping(\"/customers\")\n public List<CustomerHibernate> listCustomers() {\n return customerService.findAll();\n }",
"public Collection<Customer> listCustomer10() {\r\n\t\tfinal Collection<Customer> list = this.customerRepository.listCustomer10();\r\n\t\treturn list;\r\n\t}",
"public Customer[] getCustomers() {\r\n\t\tArrayList<Customer> customers = new ArrayList<Customer>();\r\n\t\ttry (ResultSet result = manager.performSql(\"SELECT id FROM Customer\")) {\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tcustomers.add(manager.getCustomer(result.getInt(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tCustomer[] ret = new Customer[customers.size()];\r\n\t\tfor (int i = 0; i < ret.length; i++) {\r\n\t\t\tret[i] = customers.get(i);\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"public Collection<Customer> listCustomer10() {\n\t\tfinal Collection<Customer> list = this.customerRepository.listCustomer10();\n\t\treturn list;\n\t}",
"public List<CustomerCompany> getAllCustomerCompanies() \n\t{\n\t\treturn this.entityManager.createNamedQuery(\"CustomerCompany.listAll\", CustomerCompany.class).getResultList();\n\t}",
"@GetMapping()\n public List<AgentCustomerList> findAllAgentsCustomerList() {\n return agentRepo.findAllAgentCustomerListBy();\n }",
"public List<Customer> list() throws CustomerEmptyListException{\n\t\tList<Customer> customerList = new LinkedList<Customer>();\n\t\t\n\t\tif (repository.findAll() == null) {\n\t\t\tthrow new CustomerEmptyListException(\"There is no customer in the repository!\");\n\t\t}\n\t\t\n\t\tfor (Customer customer : repository.findAll()) {\n\t\t\tcustomerList.add(customer);\n\t\t}\n\t\treturn customerList;\n\t}",
"List<Customer> loadAllCustomer();",
"public List<Customer> getCustomerList() {\r\n\t\tList<Object> columnList = null;\r\n\t\tList<Object> valueList = null;\r\n\t\tList<Customer> customers = new ArrayList<Customer>();\r\n\r\n\t\tif (searchValue != null && !searchValue.trim().equals(\"\")) {\r\n\t\t\tcolumnList = new ArrayList<Object>();\r\n\t\t\tvalueList = new ArrayList<Object>();\r\n\t\t\tcolumnList.add(searchColumn);\r\n\t\t\tvalueList.add(searchValue);\r\n\t\t}\r\n\t\tcustomers = customerService.searchCustomer(columnList, valueList,\r\n\t\t\t\tfirst, pageSize);\r\n\t\t\r\n\r\n\t\treturn customers;\r\n\t}",
"@Override\n\tpublic List<Customer> findall() {\n\t\treturn (List<Customer>) h.find(\"from Customer\");\n\t}",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Customer> getCustomerFindAll() {\n return em.createNamedQuery(\"Customer.findAll\", Customer.class).getResultList();\n }",
"@Override\n\tpublic List<Customer> getCustomerList() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query=session.createQuery(\"Select c from Customer c\");\n\t\tList<Customer> list=(List<Customer>)query.getResultList();\n\t\t/*\n\t\t * Customer customer = (Customer)session.load(Customer.class,customerId);\n\t\t * */\n\t\treturn list;\n\t}",
"@GetMapping()\n public String showAllCustomers(Model model) {\n model.addAttribute(CUSTOMERS, customerService.showCustomerList());\n return CUSTOMERS_INDEX;\n }",
"public String allCustomers(){\n String outputString = \"Customer accounts:\"+\"\\n\";\n for(Customer record : bank.getName2CustomersMapping().values()){\n outputString += record.getFullName()+\" \"+record.getAccounts().toString()+\"\\n\";\n }\n return outputString;\n }",
"public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }",
"@GetMapping(\"/api/customer\")\n\tpublic ResponseEntity<List<CustomerDetails>> getAllCustomerDetails() {\n\n\t\tList<CustomerDetails> customerDetaillist = customerService.getAllCustomerDetails();\n\n\t\treturn ResponseEntity.ok().body(customerDetaillist);\n\n\t}",
"public ArrayList<Customer> getservedCustomers()\r\n {\r\n return this.servedCustomers;\r\n }",
"@Override\n public List<Customer> listAll() {\n\n\n Customer c1 = new Customer();\n Customer c2 = new Customer();\n Customer c3 = new Customer();\n\n List<Customer> list = new ArrayList<>();\n list.add(c1);\n list.add(c2);\n list.add(c3);\n\n System.out.println(\"demo\");\n System.out.println(\"Entering test\");\n\n return list;\n }",
"@Override\n\tpublic List<Client> getAll() {\n\t\treturn dao.getAll(Client.class);\n\t}",
"public List<Customer> getCustomerByName() {\n Query query = em.createNamedQuery(\"Customer.findByName\")\r\n .setParameter(\"name\", custName);\r\n // return query result\r\n return query.getResultList();\r\n }",
"public List<Customer> findAll() throws CustomerNotFoundException {\r\n return this.entityManager.createQuery(\"select customer from Customer as customer\").getResultList();\r\n }",
"@Override\n\tpublic List<CustomerLogin> findAllCustomerLogins() {\n\t\treturn dao.getAllCustomers();\n\t}",
"public List<Customer> read() {\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n ResultSet rest = null;\n List<Customer> customers = new ArrayList<>();\n try {\n ppst = conn.prepareStatement(\"SELECT * FROM customer\");\n rest = ppst.executeQuery();\n while (rest.next()) {\n Customer c = new Customer(\n rest.getInt(\"customer_key\"),\n rest.getString(\"name\"),\n rest.getString(\"id\"),\n rest.getString(\"phone\")\n );\n customers.add(c);\n }\n } catch (SQLException e) {\n throw new RuntimeException(\"Query error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst, rest);\n }\n return customers;\n }",
"com.google.cloud.channel.v1.Customer getCustomers(int index);",
"@GetMapping(path=\"/all\")\n public @ResponseBody Iterable<CustomerOrder> getAllUsers() {\n return userRepository.findAll();\n }",
"public List<Clients> getallClients();",
"public static List<CustomerItems> getCustomerItems() {\n\n\t\tList<CustomerItems> showCustomerItems = null;\n\n\t\ttry {\n\t\t\tshowCustomerItems = CustomerItemsDAO.showCustomerItemsDetails();\n\n\t\t} catch (SQLException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn showCustomerItems;\n\t}",
"@Override\n public ArrayList<IndividualCustomer> getData() {\n return customerList;\n }",
"@RequestMapping(\"/employee\")\r\n\tpublic List<Employee> getAllCustomers() throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getAllCustomers();\r\n\t\t}\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(400, e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Customer> listRecords() {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from CUSTOMER\").list();\r\n\r\n\t}",
"public List<Client> findAll() {\n\t\treturn dao.findAll();\n\t}",
"@GetMapping(\"/customers\")\n\tpublic ResponseEntity<Object> getAllCustomers(HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tList<Customer> c = cService.findAll();;\n\t\t\tMappingJacksonValue mappedCustomers = new MappingJacksonValue(c);\n\t\t\tmappedCustomers.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.filterOutAllExcept(\"id\", \"email\", \"name\")));\n\t\t\treturn new ResponseEntity<>(mappedCustomers, HttpStatus.OK);\n\t\t}\n\t}",
"List<CustomerOrder> getAllCustomerOrder();",
"public static ObservableList<Customer> getCustomerList() throws SQLException{\r\n customerList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM customers;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //creates customer and adds to list\r\n while(rs.next())\r\n {\r\n int customerID = rs.getInt(\"Customer_ID\");\r\n String customerName = rs.getString(\"Customer_Name\");\r\n String address = rs.getString(\"Address\");\r\n String state = getDivisionName(rs.getInt(\"Division_ID\"));\r\n String postalCode = rs.getString(\"Postal_Code\");\r\n String country = getCountryName(getCountryID(rs.getInt(\"Division_ID\")));\r\n String phoneNumber = rs.getString(\"Phone\");\r\n Customer customer = new Customer(customerID,customerName,address,state,postalCode,country,phoneNumber);\r\n customerList.add(customer);\r\n }\r\n return customerList;\r\n }",
"@GetMapping(value = \"/showCustomers\")\n\tpublic String getAllCustomers(Model model) {\n\t\t// AllCustomers model attribute iterated over to display Customers in table on\n\t\t// JSP page\n\t\tmodel.addAttribute(\"AllCustomers\", customerService.getCustomers());\n\t\t// Returns showCustomers.jsp (see webapp/jsp folder)\n\t\treturn \"showCustomers\";\n\t}",
"@Override\n public List<ConsumerMember> listClients() {\n return this.soapClient.listClients(this.getTargetUrl());\n }",
"public void listAllCustomers() {\n List<Customer> list = model.findAllCustomers();\n if(list != null){\n if(list.isEmpty())\n view.showMessage(not_found_error);\n else\n view.showTable(list);\n }\n else\n view.showMessage(retrieving_data_error); \n }",
"@Override\n\tpublic Customer[] readAll() {\n\n\t\tString selectQuery = String.format(\"SELECT * FROM %s ;\", TABLE_NAME);\n\t\tCustomer[] result = null;\n\n\t\ttry (Statement s = dbCon.createStatement()) {\n\t\t\tResultSet rS = s.executeQuery(selectQuery);\n\n\t\t\tArrayList<Customer> resultTmp = new ArrayList<Customer>();\n\n\t\t\twhile (rS.next()) {\n\t\t\t\tresultTmp.add(\tresultTmp.size(),\n\t\t\t\t\t\t\t\tnew Customer(rS.getInt(COLUMN_NAME_ID),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_FIRST_NAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_LAST_NAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_EMAIL),\n\t\t\t\t\t\t\t\t\t\t\trS.getString(COLUMN_NAME_KNICKNAME),\n\t\t\t\t\t\t\t\t\t\t\trS.getDate(COLUMN_NAME_BIRTHDATE).toLocalDate(),\n\t\t\t\t\t\t\t\t\t\t\trS.getDouble(COLUMN_NAME_CREDITS))\n\t\t\t\t\t\t\t\t);\n\t\t\t}\n\t\t\trS.close();\n\n\t\t\tresult = new Customer[resultTmp.size()];\n\t\t\tresultTmp.toArray(result);\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"An SQL error occured during retrieving all data from of customer table : \" + e.getMessage());\n\t\t}\n\n\t\treturn result;\n\t}",
"@RequestMapping(value = \"/viewAllCoffee\", method = RequestMethod.GET)\n\tpublic List<Coffee> viewAllCoffee() {\n\t\tCoffeeDAO cd = new CoffeeDAO();\n\t\tList<Coffee> listCoffee = cd.getAllCoffee();\n\t\treturn listCoffee;\n\t}"
]
| [
"0.8282205",
"0.82787013",
"0.8222158",
"0.82009494",
"0.8150222",
"0.8123829",
"0.8109223",
"0.8054548",
"0.804313",
"0.80082214",
"0.80054015",
"0.8001435",
"0.79755896",
"0.7925657",
"0.787143",
"0.7860948",
"0.7842967",
"0.78426546",
"0.7839991",
"0.7831882",
"0.782855",
"0.7815613",
"0.78116834",
"0.78080344",
"0.77977175",
"0.7786742",
"0.7766783",
"0.7719835",
"0.77035284",
"0.76997477",
"0.76887697",
"0.7688378",
"0.7655824",
"0.7648363",
"0.76347667",
"0.7610791",
"0.7592238",
"0.7577579",
"0.75658953",
"0.7484864",
"0.7473587",
"0.7452765",
"0.74403155",
"0.74322206",
"0.7396947",
"0.7393608",
"0.7366077",
"0.7352948",
"0.7350751",
"0.73374534",
"0.7336305",
"0.73318815",
"0.72986525",
"0.7281238",
"0.7275178",
"0.72749233",
"0.7255339",
"0.72497874",
"0.7240075",
"0.72397566",
"0.7199083",
"0.7153449",
"0.71528363",
"0.7140757",
"0.713754",
"0.7120505",
"0.7104825",
"0.7083453",
"0.7060429",
"0.7057598",
"0.705434",
"0.70328784",
"0.70278",
"0.70180017",
"0.70135814",
"0.6952968",
"0.6946249",
"0.6913886",
"0.6912522",
"0.68850523",
"0.6874",
"0.6863569",
"0.68372524",
"0.6818064",
"0.68027",
"0.6787786",
"0.6787396",
"0.6777196",
"0.6761193",
"0.6749091",
"0.6746514",
"0.6740182",
"0.6737779",
"0.67299116",
"0.67229265",
"0.6716307",
"0.666674",
"0.6649676",
"0.664158",
"0.66407603"
]
| 0.7781723 | 26 |
get all Event which store in PriorityQueue. | public PriorityQueue<Event> getEventList() {
return new PriorityQueue<Event>(eventsList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FutureEventList() {\n q = new PriorityQueue<Event>(10, new EventComperator());\n }",
"public List<PluginStatsEvent> getPastEvents() {\n\t\tsynchronized (queue) {\n\t\t\tPluginStatsEvent[] info = new PluginStatsEvent[queue.size()];\n\t\t\tList<PluginStatsEvent> returnList = new ArrayList<PluginStatsEvent>();\n\t\t\tCollections.addAll(returnList, queue.toArray(info));\n\t\t\treturn returnList;\n\t\t}\n\t}",
"public PriorityQueue<CustomerEvent> getEventList()\r\n {\r\n return this.eventSet;\r\n }",
"public List<ServiceEvent> genEventQueue(){\n for(int i=0; i<serviceNum; i++){\n genEvent(i);\n }\n Collections.sort(eventQueue, new EventComparator());\n return eventQueue;\n }",
"IEvent[] getEvents();",
"public synchronized AWTEvent peekEvent() {\n for (int i = NUM_PRIORITIES - 1; i >= 0; i--) {\n\t if (queues[i].head != null) {\n\t return queues[i].head.event;\n\t }\n\t}\n\n\treturn null;\n }",
"public Event getEvent(){\n Queue<Event> queue = null;\n Event event = null;\n for(int i = 0; i < messageQueues.size(); i++){\n queue = messageQueues.get(i);\n// System.out.println(\"Looking at Q: \" + i + \". \" + queue);\n if(queue.size() <= 0){ // if any queue is empty then remove it\n// System.out.println(\"Removing Q: \" + i);\n messageQueues.remove(queue);\n } else {\n event = queue.remove();\n if(event == null){ // the queue contains null messages\n messageQueues = backupMessageQueues;\n i--;\n continue;\n }\n break;\n }\n }\n return event;\n }",
"public abstract Event[] getInitialEvents();",
"public GameEvent[] getEvents();",
"@Override\n\tpublic Set<Event> getEvents() {\n return events;\n }",
"public abstract Map<String, Event> getEvents();",
"static Map<Integer, Event> getEvents() {\n\t\treturn events;\n\t}",
"public IEvent poll(){\r\n\t\treturn queue.poll();\r\n\t}",
"Deque<Event> getEvents(long inId);",
"public Collection<Event> getEvents() {\n\t\treturn null;\n\t}",
"public ProgressEvent [] getReceivedEvents() {\n ProgressEvent [] answer = new ProgressEvent[this.receivedEvents.size()];\n return (ProgressEvent []) this.receivedEvents.toArray(answer);\n }",
"public synchronized AWTEvent getNextEvent() throws InterruptedException {\n do {\n\t for (int i = NUM_PRIORITIES - 1; i >= 0; i--) {\n\t\tif (queues[i].head != null) {\n\t\t EventQueueItem eqi = queues[i].head;\n\t\t queues[i].head = eqi.next;\n\t\t if (eqi.next == null) {\n\t\t\tqueues[i].tail = null;\n\t\t }\n\t\t return eqi.event;\n\t\t}\n\t }\n wait();\n } while(true);\n }",
"private Collection getReleasedEvents() {\n Set events = new HashSet();\n Collection topEvents = eventPane.getTopLevelEvents();\n Set current = new HashSet();\n current.addAll(topEvents);\n Set next = new HashSet();\n GKInstance event = null;\n List values = null;\n Boolean dnr = null;\n try {\n while (current.size() > 0) {\n for (Iterator it = current.iterator(); it.hasNext();) {\n event = (GKInstance) it.next();\n dnr = (Boolean) event.getAttributeValue(DO_NOT_RELEASE);\n if (dnr != null && !dnr.booleanValue())\n events.add(event);\n if (event.getSchemClass().isValidAttribute(\"hasComponent\")) {\n values = event.getAttributeValuesList(\"hasComponent\");\n if (values != null)\n next.addAll(values);\n }\n if (event.getSchemClass().isValidAttribute(\"hasInstance\")) {\n values = event.getAttributeValuesList(\"hasInstance\");\n if (values != null)\n next.addAll(values);\n }\n }\n current.clear();\n current.addAll(next);\n next.clear();\n }\n }\n catch(Exception e) {\n System.err.println(\"EventReleaseCheckPane.getReleasedEvents(): \" + e);\n e.printStackTrace();\n }\n return events;\n }",
"public List getReleasedTopLevelEvents() {\n Collection releasedEvents = getReleasedEvents();\n try {\n return grepTopLevelEvents(releasedEvents);\n }\n catch (Exception e) {\n System.err.println(\"EventReleaseCheckPane.getReleaseTopLevelEvents(): \" + e);\n e.printStackTrace();\n }\n return new ArrayList();\n }",
"public IEvent peek(){\r\n\t\treturn queue.peek();\r\n\t}",
"public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }",
"public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}",
"public AppQueue getQueue()\r\n {\r\n return event_q;\r\n }",
"private List grepTopLevelEvents(Collection events) throws Exception {\n\t // Grep all events that are contained by other events\n\t Set containedEvents = new HashSet();\n\t GKInstance event = null;\n\t for (Iterator it = events.iterator(); it.hasNext();) {\n\t event = (GKInstance) it.next();\n\t if (event.getSchemClass().isValidAttribute(ReactomeJavaConstants.hasEvent)) {\n\t List components = event.getAttributeValuesList(ReactomeJavaConstants.hasEvent);\n\t if (components != null && components.size() > 0) { \n\t for (Iterator it1 = components.iterator(); it1.hasNext();) {\n\t GKInstance tmp = (GKInstance) it1.next();\n\t Boolean dnr = (Boolean) tmp.getAttributeValue(DO_NOT_RELEASE);\n\t if (dnr != null && !dnr.booleanValue())\n\t containedEvents.add(tmp);\n\t }\n\t }\n\t }\n\t }\n\t List topEvents = new ArrayList(events);\n\t topEvents.removeAll(containedEvents);\n\t return topEvents;\n\t}",
"public synchronized AWTEvent peekEvent(int id) {\n for (int i = NUM_PRIORITIES - 1; i >= 0; i--) {\n\t EventQueueItem q = queues[i].head;\n\t for (; q != null; q = q.next) {\n\t if (q.id == id) {\n\t\t return q.event;\n\t\t}\n\t }\n\t}\n\n return null;\n }",
"public List<KeyEvent> getKeyEvents() {\n synchronized (this) {\n int len = keyEvents.size();\n for (int i = 0; i < len; i++) {\n keyEventPool.free(keyEvents.get(i));\n }\n keyEvents.clear();\n keyEvents.addAll(keyEventsBuffer);\n keyEventsBuffer.clear();\n return keyEvents;\n }\n }",
"Collection<EventDetector> getEventsDetectors();",
"private ArrayList<Item> getEvents() {\n\t\tArrayList<Item> events = Magical.getStorage().getList(\n\t\t\t\tStorage.EVENTS_INDEX);\n\t\treturn events;\n\t}",
"@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }",
"public List<InputEvent> getEvents() {\n return new ArrayList<>(events);\n }",
"public ArrayList<Event> getEvents(){\n return this.events;\n }",
"public AbstractList<Event> getEvents() {\r\n\t\treturn (AbstractList<Event>) events;\r\n\t}",
"@NotNull\n\tpublic ArrayList<ArrayList<Event<?>>> getEvents() {\n\t\tif (events == null)\n\t\t\tevents = new ArrayList<>();\n\t\t\n\t\treturn events;\n\t}",
"public List<EventDesc> getEvents()\r\n {\r\n return Collections.unmodifiableList(events);\r\n }",
"@NonNull\n public List<HubEvent<?>> await() {\n Latch.await(latch);\n return Immutable.of(events);\n }",
"@Override\n public List<EventNotification> getList() throws EwpException {\n String sql = \"SELECT * From PFEventNotification\";\n return executeSqlAndGetEntityList(sql);\n }",
"ScheduledEvents getScheduledEvents();",
"AbstractList<Event> getEventByName(String eventName) {\r\n\t\treturn events;\r\n\t}",
"ArrayList<HabitEvent> getHabitEvents();",
"@Override\n\tpublic Set<Event> getEventsToProcess(Context baseContext) {\n\t\tSet<Event> eventsToProcess = new HashSet<Event>();\n\t\teventsToProcess.add(Event.ElectricOn);\n\t\teventsToProcess.add(Event.ElectricOff);\n\t\teventsToProcess.add(Event.Heat);\n\t\teventsToProcess.add(Event.Water);\n\t\treturn eventsToProcess;\n\t}",
"public EventQueue() {\n\t\tqueue = new LinkedList<Event>();\n\t}",
"public List<LogEvent> getEvents() {\n return publicEvents;\n }",
"Event getEvent();",
"private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }",
"@Override\n public void postPriorityEvent(Event event)\n {\n priorityQueue.offer(event);\n }",
"public List<Evento> getEventos() {\r\n\t\treturn eventos;\r\n\t}",
"public EventCondition [] getEventConditions() {\n return this.EventConditions;\n }",
"public List<Events> getAllSystemEventsListForAll();",
"public NetworkEvent poll() {\n\t\treturn eventQueue.poll();\n\t}",
"public List<Event> getParticipatedEvents() {\n return participatedEvents;\n }",
"public ArrayList<String> getEvents() {\n // TODO\n return res;\n }",
"public synchronized Event getNextEvent() {\n\t\twhile (queue.isEmpty()) {\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t\treturn queue.pop();\n\t}",
"public Collection<SapEvent> getEvents(final SessionContext ctx)\n\t{\n\t\treturn EVENTSHANDLER.getValues( ctx, this );\n\t}",
"@Override\r\n public List<Events> findAllEvents() {\r\n return em.createNamedQuery(\"Events.findAll\").getResultList();\r\n }",
"public Event dequeue() {\n\t\tif(timeoutSet.peek() == null && eventSet.peek() == null){\n\t\t\treturn null;\n\t\t}else if(timeoutSet.peek() == null && eventSet.peek() != null){\n\t\t\treturn eventSet.poll();\n\t\t}else if(eventSet.peek() == null && timeoutSet.peek() != null){\n\t\t\treturn timeoutSet.poll();\n\t\t}else if(eventSet.peek().getTime() < timeoutSet.peek().getTime()){\n\t\t\treturn eventSet.poll();\n\t\t}else if(eventSet.peek().getTime() >= timeoutSet.peek().getTime()){\n\t\t\treturn timeoutSet.poll();\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public ArrayList<Event> remainingEventsForTheWeek() {\n\t\tArrayList<Event> result = new ArrayList();\n\n\t\tLocalDateTime now = this.now.get();\n\t\tLocalDate today = now.toLocalDate();\n\t\tLocalTime moment = now.toLocalTime();\n\t\tboolean after = false;\n\n\t\tdo {\n\t\t\tTreeSet<Event> todayEvents = this.events.get(today);\n\t\t\tif (todayEvents != null) {\n\t\t\t\t// Events are sorted\n\t\t\t\tfor (Event e: todayEvents) {\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t} else if (e.startTime.compareTo(moment) >= 0) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t\tafter = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\tafter = true;\n\t\ttoday = today.plusDays(1);\n\t\t// Week ends on Sunday.\n\t\t} while (today.getDayOfWeek() != DayOfWeek.MONDAY);\n\n\t\treturn result;\n\t}",
"public int eventQueueCapacity() {\n return eventQueueCapacity_;\n }",
"public static List<Event> loadPubs() throws JSONException {\n \t\t\n \t\tString data = getJSON(Constants.PUBEVENTS);\n \t\t\n \t\tJSONObject json_obj = new JSONObject(data).getJSONObject(\"feed\");\n \t\tJSONArray json_arr = json_obj.getJSONArray(\"entry\");\n \t\t\t\n \t\tList<Event> events = new ArrayList<Event>();\n \t\t\t\n \t\t\t\n \t\tfor (int i = 0; i < json_arr.length(); i++){\n \t\t\tString title = json_arr.getJSONObject(i).getJSONObject(\"title\").optString(\"$t\");\n \t\t\tString description = json_arr.getJSONObject(i).getJSONObject(\"content\").optString(\"$t\");\n \t\t\tString time = json_arr.getJSONObject(i).getJSONArray(\"gd$when\").getJSONObject(0).optString(\"startTime\");\n \t\t\tString where = json_arr.getJSONObject(i).getJSONArray(\"gd$where\").getJSONObject(0).optString(\"valueString\");\n \t\t\t\n \t\t\t//If time is not an all day event\n \t\t\tif(time.length() > \"1967-09-03\".length()){\n \t\t\t\ttime = fromDate(time) + \" - SENT. \";\n \t\t\t}\n \t\t\t\n \n \t\t\tif (!title.equals(\"\")){\n \t\t\t\tevents.add(new Event(title, description, where, time));\n \t\t\t}\n \t\t}\n \t\t\t\n \t\treturn events;\n \t}",
"@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }",
"E[] getAll();",
"public List<Invoke> getNotification() {\n return getInvoke();\n }",
"@Override\r\n\tpublic Collection<EventHandler> getEventHandlers() {\n\t\treturn null;\r\n\t}",
"public ArrayList<Event> getAllEvents()\r\n\t{\r\n\t\treturn dataService.getAllEvents();\r\n\t}",
"private List<Event> generateEvents() {\n\t\tList<Event> events = new ArrayList<Event>();\n\t\tint numEvents = random.nextInt(2) + 1;\n\t\tfor (int i = 0; i < numEvents; i++) {\n\t\t\tEvent newEvent = null;\n\t\t\tdo {\n\t\t\t\tnewEvent = new Event(db);\n\t\t\t} while (events.contains(newEvent)); // make sure only one instance of an event occurs per turn\n\t\t\tevents.add(newEvent);\t\t\t\n\t\t}\n\t\treturn events;\n\t}",
"public ListenerRegistration[] bake() {\n ListenerRegistration[] handlers = this.handlers;\n if (handlers != null) {\n return handlers; // don't re-bake when still valid\n }\n List<ListenerRegistration> entries = new ArrayList<ListenerRegistration>();\n for (Order order : Order.values()) {\n addToEntries(entries, order);\n }\n this.handlers = handlers = entries.toArray(new ListenerRegistration[entries.size()]);\n return handlers;\n }",
"@Override\n\tpublic List<Evento> getAll() throws HibernateException {\n\t\treturn null;\n\t}",
"static HistoryEvent[] getHistoryEvents() {\n/* 73 */ HISTORY_RW_LOCK.readLock().lock();\n/* */ \n/* */ try {\n/* 76 */ return HISTORY.<HistoryEvent>toArray(new HistoryEvent[HISTORY.size()]);\n/* */ }\n/* */ finally {\n/* */ \n/* 80 */ HISTORY_RW_LOCK.readLock().unlock();\n/* */ } \n/* */ }",
"public int[] enabledEvents() {\n boolean[] userRecordableEvts0 = userRecordableEvts;\n\n int[] enabledEvts = new int[len];\n int enabledEvtsLen = 0;\n\n for (int type = 0; type < len; type++) {\n if (userRecordableEvts0[type])\n enabledEvts[enabledEvtsLen++] = type;\n }\n\n return U.unique(enabledEvts, enabledEvtsLen, inclEvtTypes, inclEvtTypes.length);\n }",
"public org.hl7.fhir.CodeableConcept[] getEventArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(EVENT$0, targetList);\n org.hl7.fhir.CodeableConcept[] result = new org.hl7.fhir.CodeableConcept[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public void doService() {\n EventManager eventManager = new EventManager();\n while (!queue.isEmpty()) {\n Event firstEvent = queue.poll();\n if (!(firstEvent instanceof ServerBackEvent) &&\n !(firstEvent instanceof ServerRestEvent)) {\n System.out.println(firstEvent);\n } \n Event nextEvent = eventManager.getNext(servers, gen, firstEvent, stats, probability);\n if (nextEvent != null) {\n queue.add(nextEvent);\n }\n }\n System.out.println(stats);\n \n\n }",
"public NetworkEvent fetch() throws InterruptedException {\n\t\treturn eventQueue.take();\n\t}",
"public org.opennms.netmgt.config.vacuumd.AutoEvent[] getAutoEvent()\n {\n int size = _autoEventList.size();\n org.opennms.netmgt.config.vacuumd.AutoEvent[] mArray = new org.opennms.netmgt.config.vacuumd.AutoEvent[size];\n for (int index = 0; index < size; index++) {\n mArray[index] = (org.opennms.netmgt.config.vacuumd.AutoEvent) _autoEventList.get(index);\n }\n return mArray;\n }",
"public AbstractIterableAssert<?, ? extends Iterable<? extends E>, E> events() {\n return Assertions.assertThat(getEvents());\n }",
"@Counted(name = \"events\", description = \"How many events were fired\")\n public List<Notification> handle(Event event) {\n logger.infov(\"Handling event {0}\", event.name());\n return captainHook.subscriptions().stream()\n .map(subscription -> subscription.yield(event))\n .filter(Optional::isPresent)\n .map(Optional::get)\n .peek(this::handle)\n .collect(Collectors.toList());\n }",
"default public Set<UpdateEvent> getCustomEvents() {\n\t\treturn Collections.emptySet();\n\t}",
"private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }",
"public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }",
"public Set<EventTO> getEvents() {\n\n Iterable<Event> events = eventRepository.findAll();\n LOGGER.info(\"Returning all events\");\n return mapperService.convertToEventTO(events);\n\n }",
"@WebMethod public List<Event> getAllEvents();",
"public void printEeventList() {\n PriorityQueue<Event> events = this.getEventList();\n while (!events.isEmpty()) {\n Event event = events.poll();\n if (!(event instanceof ServerRestEvent || event instanceof ServerBackEvent)) {\n System.out.println(event);\n }\n\n }\n }",
"public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}",
"public Collection<SapEvent> getEvents()\n\t{\n\t\treturn getEvents( getSession().getSessionContext() );\n\t}",
"public Event getEvent(String id) {\n for (Event e : eventMap.keySet()) {\n if (e.getEventId().equals(id)) {\n return e;\n }\n }\n return null;\n }",
"private static EventQueue eventQueue() {\n return Toolkit.getDefaultToolkit().getSystemEventQueue();\n }",
"public Set<T> getHistoryEvents() {\n\t\tif (historyEvents == null) {\n\t\t\tcreateHistoryEvents();\n\t\t}\n\t\treturn historyEvents;\n\t}",
"public Optional<QueuedEvent> getNextEvent() {\n if (events.size() == 0) {\n return Optional.empty();\n }\n QueuedEvent nextEvent = events.get(0);\n for (QueuedEvent e : this.events) {\n if (e.getMsLeft() < nextEvent.getMsLeft()) {\n nextEvent = e;\n }\n }\n return Optional.of(nextEvent);\n }",
"private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }",
"Event getE();",
"public Event getEvent(){\n\t\t\treturn event;\n\t\t}",
"public interface EventPipeLine {\n /**\n * Adds new event to the pipeline (queue)\n * @param e GameEvent instance\n */\n public void add(GameEvent e);\n\n /**\n * Calls all event processors and removes them from the queue\n */\n public void exec();\n\n /**\n * Removes all events. (ignore the events)\n */\n public void clear();\n\n /**\n * First event from the queue\n * @return GameEvent instance or null if empty\n */\n public GameEvent getFirst();\n\n /**\n * This method can be usefull if you want to know which events are there in the queue.\n * @return all events as GameEvent[] array\n */\n public GameEvent[] getEvents();\n\n /**\n * Number of events in the queue\n */\n public int size();\n \n}",
"public IEvent getNextEvent();",
"protected abstract List<EventType> getAllowedEventTypes();",
"public static List<Event> loadEvents() throws JSONException {\n \t\t\n \t\tString data = getJSON(Constants.GOOGLEEVENTS);\n \t\t\n \t\tJSONObject json_obj = new JSONObject(data).getJSONObject(\"feed\");\n \t\tJSONArray json_arr = json_obj.getJSONArray(\"entry\");\n \t\t\t\n \t\tList<Event> events = new ArrayList<Event>();\n \t\t\t\n \t\t//Collection the right content from JSON\n \t\tfor (int i = 0; i < json_arr.length(); i++){\n \t\t\tString title = json_arr.getJSONObject(i).getJSONObject(\"title\").optString(\"$t\");\n \t\t\tString description = json_arr.getJSONObject(i).getJSONObject(\"content\").optString(\"$t\");\n \t\t\tString time = json_arr.getJSONObject(i).getJSONArray(\"gd$when\").getJSONObject(0).optString(\"startTime\");\n \t\t\tString where = json_arr.getJSONObject(i).getJSONArray(\"gd$where\").getJSONObject(0).optString(\"valueString\");\n \t\t\t\t\n \t\t\t//If time is not an all day event\n \t\t\tif(time.length() > \"1967-09-03\".length()){\n \t\t\t\ttime = fromDate(time);\n \t\t\t}\n \t\t\t\n \t\t\t//Add events if it has i title\n \t\t\tif (!title.equals(\"\")){\n \t\t\t\tevents.add(new Event(title, description, where, time + \". \"));\n \t\t\t}\n \t\t}\t\n \t\treturn events;\n \t}",
"public EventQueue(){}",
"public Collection<Node> getTasks(Processor p) {\n return p.getScheduledTasks();\n }",
"public LiveData<List<DatabaseObject<Event>>> getAttendingEvents() {\n return mCachedEventsLiveData;\n }",
"public ArrayList<FbEvent> getOngoingEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" >= ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}",
"@Override\n public Cursor<Event> streamEvents() {\n ensureRatingCache();\n return cache.streamEvents();\n }",
"public Observable getEvents(){\n QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder();\n requestBuilder.sortDesc(\"startDate\");\n return makeObservable(requestBuilder);\n }",
"@Override\n public List<Invitation> findAllForNotificationByEventSortedByName(final Event event) {\n List<Invitation> list = findAllByEventSortedByName(event);\n \n // filter out those that do not want to receive email notifications\n Iterable<Invitation> filtered = Iterables.filter(list, new Predicate<Invitation>() {\n private List<Player> players;\n {\n players = playerManager.findAllByTeam(event.getTeam());\n }\n @Override\n public boolean apply(@Nullable final Invitation invitation) {\n if (!invitation.hasEmail()) {\n return false;\n } else {\n // check if player has opted out of email notifications\n for (Player player : players) {\n if (player.getUser().equals(invitation.getUser())) {\n return player.isNotification();\n }\n }\n // this happens for invitees who are not team-members (invitees that were later added).\n return true;\n }\n }\n });\n return ImmutableList.copyOf(filtered);\n }"
]
| [
"0.72027916",
"0.6858224",
"0.6759652",
"0.6708047",
"0.66916996",
"0.6513658",
"0.6445789",
"0.6308408",
"0.62963855",
"0.6194814",
"0.6170998",
"0.6109236",
"0.6078633",
"0.60493463",
"0.6014169",
"0.6002101",
"0.59813356",
"0.5965869",
"0.59372133",
"0.5903182",
"0.58482933",
"0.5823515",
"0.58166856",
"0.5799299",
"0.57732856",
"0.57641727",
"0.5754786",
"0.5752612",
"0.5748098",
"0.57277536",
"0.57230717",
"0.5712818",
"0.5671709",
"0.5642701",
"0.56295323",
"0.55747914",
"0.5560011",
"0.5559111",
"0.5558498",
"0.5554498",
"0.552229",
"0.5489394",
"0.5485345",
"0.54774827",
"0.54762655",
"0.5471553",
"0.5469413",
"0.5465069",
"0.54550064",
"0.5453983",
"0.5435684",
"0.5420537",
"0.5414384",
"0.5388575",
"0.5384979",
"0.5371655",
"0.53546834",
"0.53507453",
"0.53459346",
"0.53358406",
"0.53267986",
"0.5325425",
"0.5311523",
"0.5311148",
"0.5300816",
"0.529701",
"0.5296347",
"0.52871776",
"0.5286066",
"0.5276788",
"0.5274262",
"0.527262",
"0.52702475",
"0.5256148",
"0.52533394",
"0.52467626",
"0.52404344",
"0.5230302",
"0.5218705",
"0.52181417",
"0.5212119",
"0.52039033",
"0.5202562",
"0.5200186",
"0.5199671",
"0.5194391",
"0.51723623",
"0.5167424",
"0.51613736",
"0.5156144",
"0.515329",
"0.51438636",
"0.51418525",
"0.51358086",
"0.5133436",
"0.51286274",
"0.5128616",
"0.512705",
"0.5126758",
"0.5125512"
]
| 0.7484807 | 0 |
get the list of Statistics. | public List<Number> getStatistics() {
return statistics;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();",
"public List<StatsObject> getData() {\n\t\tList<StatsObject> stats = new ArrayList<StatsObject>(data.values());\n\t\treturn stats;\n\n\t}",
"Map<String, Object> getStats();",
"private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}",
"protected abstract String getStatistics();",
"void statistics();",
"public Stats2D statistics() {\n Stats2D stats = new Stats2D(data.values);\n stats.run();\n return stats;\n }",
"public Statistics getStatistics()\n throws IOException,IllegalArgumentException\n {\n Mocket.Statistics statistics = new Mocket.Statistics();\n return getStatisticsNative (statistics);\n }",
"public List<Statut> getListStatuts() {\n\t\t\treturn super.findWithNamedQuery(\"findAllStauts\");\n\t\t}",
"public abstract List<Metric> getMetrics();",
"public ArrayList<String> getStatsNames() {\n\t\tArrayList<String> arr = new ArrayList<String>();\n\t\tNodeList nl = getStats();\n\t\tint len = nl.getLength();\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tString name = ParserHelper.requiredAttributeGetter((Element) nl.item(i), \"name\");\n\t\t\tif (name != null) {\n\t\t\t\tarr.add(name);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}",
"public List<Map<String, Object>> ListStatistics(Timestamp start, Timestamp end) {\n\t\treturn statisticsMapper.ListStatistics(start,end);\n\t}",
"java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();",
"public StatValues stats() {\n this.stats.setStatsHolder(this);\n return stats;\n }",
"public static Collection<Access.AccessStatsEntry> getStatistics() {\n accessorQueueLen.count = accessorQueue.size();\n\n return stats;\n }",
"Stats<Double> stats();",
"public static ArrayList<String> getStatistics() {\n ArrayList<String> answer = new ArrayList<>();\n for (Map.Entry<String, HashMap<String, Integer>> entry1 : winStatistic.entrySet()) {\n for (Map.Entry<String, Integer> entry2 : entry1.getValue().entrySet()) {\n answer.add(entry1.getKey() + \" won \" + entry2.getKey() + \" \" + entry2.getValue() + \" times.\");\n }\n }\n for (Map.Entry<String, HashMap<String, Integer>> entry1 : drawStatistic.entrySet()) {\n for (Map.Entry<String, Integer> entry2 : entry1.getValue().entrySet()) {\n answer.add(entry1.getKey() + \" play in a draw with \" + entry2.getKey() + \" \" + entry2.getValue() + \" times.\");\n }\n }\n return answer;\n }",
"public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }",
"public CommandResult getStats() {\n return getDB().executeCommand(new BsonDocument(\"collStats\", new BsonString(getName())), getReadPreference());\n }",
"public List<Statut> getListStatut() {\n\t\treturn super.findWithNamedQuery(\"findAllStaut\");\n\t\n\t\t }",
"public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }",
"@Override\r\n public synchronized IStats getStatistics()\r\n {\r\n final IStats stats = new Stats();\r\n stats.setTypeName(\"Indexed Disk Cache\");\r\n\r\n final ArrayList<IStatElement<?>> elems = new ArrayList<>();\r\n\r\n elems.add(new StatElement<>(\"Is Alive\", Boolean.valueOf(isAlive())));\r\n elems.add(new StatElement<>(\"Key Map Size\", Integer.valueOf(this.keyHash != null ? this.keyHash.size() : -1)));\r\n try\r\n {\r\n elems.add(\r\n new StatElement<>(\"Data File Length\", Long.valueOf(this.dataFile != null ? this.dataFile.length() : -1L)));\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(e);\r\n }\r\n elems.add(new StatElement<>(\"Max Key Size\", this.maxKeySize));\r\n elems.add(new StatElement<>(\"Hit Count\", this.hitCount));\r\n elems.add(new StatElement<>(\"Bytes Free\", this.bytesFree));\r\n elems.add(new StatElement<>(\"Optimize Operation Count\", Integer.valueOf(this.removeCount)));\r\n elems.add(new StatElement<>(\"Times Optimized\", Integer.valueOf(this.timesOptimized)));\r\n elems.add(new StatElement<>(\"Recycle Count\", Integer.valueOf(this.recycleCnt)));\r\n elems.add(new StatElement<>(\"Recycle Bin Size\", Integer.valueOf(this.recycle.size())));\r\n elems.add(new StatElement<>(\"Startup Size\", Integer.valueOf(this.startupSize)));\r\n\r\n // get the stats from the super too\r\n final IStats sStats = super.getStatistics();\r\n elems.addAll(sStats.getStatElements());\r\n\r\n stats.setStatElements(elems);\r\n\r\n return stats;\r\n }",
"public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }",
"public Mono<Response<StorageServiceStats>> getStatistics() {\n return storageAsyncRawClient\n .getStatistics()\n .map(rb -> new SimpleResponse<>(rb, rb.value()));\n }",
"java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();",
"public Collection<MetricInfo> listMetrics() {\n if (!registeredMetrics.isEmpty()) {\n return registeredMetrics.values();\n }\n return null;\n }",
"java.util.List<? extends org.tensorflow.proto.profiler.XStatOrBuilder> \n getStatsOrBuilderList();",
"public String getStatistics() throws IOException{\n initiateWordCount();\n getHamStatistics(); \n getSpamStatistics();\n return printStatistics(); \n }",
"private List<Number> setStatistics() {\n // the total waiting time for customers who have been served\n double totalWatingTime = 0;\n // the average waiting time for customers who have been served\n double aveWaitingTime = 0;\n // the number of customers served\n int numOfCusServed = 0;\n // the number of customers who left without being served\n int numOfCusLeft = 0;\n\n for (Event newEvent : this.eventsList) {\n // update number Of customer served\n if (newEvent instanceof ServeEvent) {\n numOfCusServed++;\n }\n // update the total waiting time\n if (newEvent instanceof WaitEvent) {\n double nextAvailableTime = newEvent.getCurrentServer().getNextAvailableTime().get();\n double customerArrivalTime = newEvent.getCustomer().getArrivalTime();\n double startTime = this.eventsList.stream()\n .filter(x -> (x instanceof ServeEvent)\n && (x.getCustomer().getId() == newEvent.getCustomer().getId()))\n .findFirst().get().getStartTime();\n double waitTime = startTime - customerArrivalTime;\n totalWatingTime += waitTime;\n }\n // update the number of customer left\n if (newEvent instanceof LeaveEvent) {\n numOfCusLeft++;\n }\n }\n\n // calculate the average waiting time\n if (numOfCusServed != 0) {\n aveWaitingTime = totalWatingTime / numOfCusServed;\n }\n\n return new ArrayList<>(Arrays.asList(aveWaitingTime, numOfCusServed, numOfCusLeft));\n }",
"PolicyStatsManager getStats();",
"public java.util.Map<String, FieldStats> getStats() {\n if (stats == null) {\n stats = new com.amazonaws.internal.SdkInternalMap<String, FieldStats>();\n }\n return stats;\n }",
"public List<AnswerStatistics> getStatisticsbySid(int sid);",
"public String getStatistics() {\r\n \tString statistics;\r\n \tstatistics=\"Anzahl aller User: \"+ numberOfUsers() + \"\\n\"\r\n \t\t\t+ \"Anzahl aller Hotels: \" + numberOfHotels() + \"\\n\"\r\n \t\t\t+ \"Hotel mit der besten durchschnittlichen Bewertung: \" + bestHotel().getName() + \"\\n\";\r\n \treturn statistics;\r\n }",
"public CachetMetricList getMetrics() {\n throw new RuntimeException(\"Method not implemented.\");\n }",
"@Override\n\tpublic List<UserStatistics> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}",
"public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }",
"public HashMap<String, Double> getStats() {\n return playerStats; // stub\n }",
"public ResultSet getStats() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString statsRecords_sql = \"SELECT * FROM \" + stats_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(statsRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}",
"public PersistentStats getStats() {\n return _stats;\n }",
"@Embedded\n public Statistics getStatistics() {\n return statistics;\n }",
"public List<Sample> getSampleResults() {\n return sampleResults;\n }",
"public static String addToStatistics(){\n\t\tString addedStats = Start.addToStatistics();\n\t\t//add\n\t\t//e.g.: addedStats += MyReport();\n\t\treturn addedStats;\n\t}",
"public final TwoClassConfusionMatrix getStats() {\n return m_stats;\n }",
"public int getStatsCount() {\n return stats_.size();\n }",
"public static void showStats() {\n\n List<String> stats = statsList.subList(Math.max(statsList.size() - 3, 0), statsList.size());\n\n System.out.println(\"Stats:\");\n for(String stat : stats){\n System.out.println(stat);\n }\n }",
"public int[] getStats()\n {\n try\n {\n statHolder[0] = Integer.parseInt(lblSTRValue.getText());\n statHolder[1] = Integer.parseInt(lblCONValue.getText());\n statHolder[2] = Integer.parseInt(lblDEXValue.getText());\n statHolder[3] = Integer.parseInt(lblAGIValue.getText());\n statHolder[4] = Integer.parseInt(lblINTValue.getText());\n statHolder[5] = Integer.parseInt(lblWISValue.getText());\n statHolder[6] = Integer.parseInt(lblCHAValue.getText());\n statHolder[7] = Integer.parseInt(lblPERValue.getText());\n } catch (NumberFormatException e)\n {\n statHolder[0] = 10;\n statHolder[1] = 10;\n statHolder[2] = 10;\n statHolder[3] = 10;\n statHolder[4] = 10;\n statHolder[5] = 10;\n statHolder[6] = 10;\n statHolder[7] = 10;\n JOptionPane.showMessageDialog(null, \"No stats rolled\");\n }\n return statHolder;\n }",
"@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}",
"java.util.List<com.google.api.MetricDescriptor> getMetricDescriptorsList();",
"public void getStats(){\n for (Shelf shelf : this.shelves){\n if (!shelf.isEmpty()){\n shelf.printStats();\n }\n\n }\n }",
"public List<Stat> getEventStats(String siteId, List<String> events) {\n\t\treturn getEventStats(siteId, events, getInitialActivityDate(siteId), null, null, false, null, null, null, true, 0);\n\t}",
"public List<Stats> findStatsPerTime(String date) {\n\t\treturn null;\r\n\t}",
"int getStatsCount();",
"int getStatsCount();",
"int getStatsCount();",
"public DescriptiveStatistics generateStatistics() {\n\t\tdouble[] sentimentValues = new double[this.sentimentValues.size()];\n\t\t\n\t\t//Casts each value in the sentimentValues array list to a double for processing with StatUtils package.\n\t\tfor (int i = 0; i < sentimentValues.length; i++) {\n\t\t\tsentimentValues[i] = (double) this.sentimentValues.get(i);\n\t\t}\n\t\t\n\t\tthis.statistics = new DescriptiveStatistics(sentimentValues);\n\t\treturn this.statistics;\n\t}",
"public JSONObject getAllStatistics() throws UnirestException;",
"public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\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 Statistic<?> getStatistic() {\n return statistic;\n }",
"public List<Map<String, Object>> getStatisticsByStaff(String classify);",
"public List<Stat> getResourceStats(String siteId) {\n\t\treturn getResourceStats(siteId, null, null, getInitialActivityDate(siteId), null, null, false, null, null, null, true, 0);\n\t}",
"public Bag getStats(){\n\treturn stats;\n }",
"public List<Instance> getSamples(){\n\t\treturn arrIns;\n\t}",
"public SiteStatisticsVO getSiteStatistics () throws DataServiceException;",
"public StatisticsAccumulator getStatisticsAccumulator() {\n return statisticsAccumulator;\n }",
"org.tensorflow.proto.profiler.XStat getStats(int index);",
"public CacheStatistics getCacheStatistics()\n {\n return m_stats;\n }",
"public VirtualMachinesStatistics getStatistics() {\n return statistics;\n }",
"public List<String> getTelemetryList() {\n List<String> telemetryList = new ArrayList<String>();\n if (this.getTelemetrys().isEmpty()) {\n TelemetryClient client = ProjectBrowserSession.get().getTelemetryClient();\n try {\n for (TelemetryChartRef chartRef : client.getChartIndex().getTelemetryChartRef()) {\n getTelemetrys().put(chartRef.getName(), client.getChartDefinition(chartRef.getName()));\n }\n }\n catch (TelemetryClientException e) {\n this.feedback = \"Exception when retrieving Telemetry chart definition: \" + e.getMessage();\n }\n }\n telemetryList.addAll(this.getTelemetrys().keySet());\n Collections.sort(telemetryList);\n return telemetryList;\n }",
"public List<Pair<String, Integer>> getScores() {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n return new ArrayList<>(this.list.get());\n }",
"public List<StatisticsConfig> getConfigurations() {\n return configurations;\n }",
"public ArrayList<String> getStatsIds() {\n\t\tArrayList<String> arr = new ArrayList<String>();\n\t\tNodeList nl = getStats();\n\t\tint len = nl.getLength();\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tString id = ParserHelper.requiredAttributeGetter((Element) nl.item(i), \"id\");\n\t\t\tif (id != null) {\n\t\t\t\tarr.add(id);\n\t\t\t\tstr += (id + \"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}",
"public final List mo58802c() {\n List list;\n if (this.f107237h == null && (list = this.f107236g) != null) {\n this.f107237h = new ArrayList(list.size());\n List list2 = this.f107236g;\n int size = list2.size();\n for (int i = 0; i < size; i++) {\n this.f107237h.add((SourceStats) list2.get(i));\n }\n }\n return this.f107237h;\n }",
"public static Vector<String> getStati() {\n\t\t\n\t\tVector<String> statiVect = new Vector<String>();\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tScanner fileStati = new Scanner(new BufferedReader(new FileReader(\"resources/Stati.csv\")));\n\t\t\t\n\t\t\twhile (fileStati.hasNext())\n\t\t\t\tstatiVect.add(fileStati.nextLine());\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn statiVect;\n\t\t\n\t}",
"java.util.List<com.google.api.servicecontrol.v1.MetricValue> getMetricValuesList();",
"public SlopeOneStats getStatistics() { return statistics; }",
"public java.util.List<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.StatsOrBuilder> \n getStatsOrBuilderList() {\n return stats_;\n }",
"io.netifi.proteus.admin.om.Metrics getMetrics();",
"@Override\n public List<CardHitDetail> getStats(int start, int limit) {\n List<CardHitDetail> cardList = cardRepository.findStats(limit, start - 1);\n return cardList;\n }",
"Map<String, Number> toStatsMap() {\n long s = successes.get();\n long r = responseTimes.get();\n long avg = s <= 0 ? -1 : r / s;\n\n Map<String, Number> stats = new HashMap<String, Number>();\n stats.put(\"successes\", (int) s);\n stats.put(\"averageResponseTime\", avg);\n stats.put(\"httpFailures\", httpFailures.get());\n stats.put(\"readTimeouts\", readTimeouts.get());\n stats.put(\"connectTimeouts\", connectTimeouts.get());\n stats.put(\"socketErrors\", socketErrors.get());\n stats.put(\"emptyResults\", emptyResults.get());\n return stats;\n }",
"public static void showStatistics(){\n\n }",
"private void getStatistics(HttpServletRequest request, HttpServletResponse response) throws IOException {\n Map<Integer, StatisticsDataStruct> stats = SimApi.getStatistics();\n String newTableOfStat = \"<table id=\\\"statTable\\\">\";\n\n for (int i = 0; i < stats.size(); i++) {\n StatisticsDataStruct ListAndScenarioNumber = stats.get(i);\n List<String> list = ListAndScenarioNumber.newList;\n\n newTableOfStat = createStatisticsStringHtmlTable(newTableOfStat, list);\n }\n\n newTableOfStat += \"</table>\";\n response.getWriter().write(newTableOfStat);\n }",
"public static String showAllStats() {\n return showStats(allStats, \"All stats\");\n }",
"public int[] getCommonStatistics() throws SQLException {\n Connection conn = null;\n int[] stats = null;\n try {\n conn = db.getConnection();\n\n stats = new int[4];\n String[] tables = { \"pollsession\", \"polls\", \"choices\", \"users\" };\n\n for (int i = 0; i < stats.length; i++) {\n Statement st = null;\n try {\n st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select count(*) from \"\n + tables[i]);\n\n if (rs.next())\n stats[i] = rs.getInt(1);\n else\n stats[i] = -1;\n }\n finally {\n st.close();\n }\n }\n }\n catch (SQLException e) {\n throw e;\n }\n finally {\n try {\n conn.close();\n }\n catch (Exception e2) {\n }\n }\n\n return stats;\n }",
"public List<Statictics> getAllStats(User user) {\r\n if (user != null) {\r\n\r\n if (user.getRole().equals(\"ROLE_ADMIN\")) {\r\n return statsRepo.findAll();\r\n } else {\r\n return statsRepo.findAllByUser_Id(user.getId());\r\n }\r\n }\r\n return null;\r\n }",
"private static List<Double> getWeights( List<Stat> statList ) {\n \tList<Double> weights = new LinkedList<Double>();\n \t\n \tfor (Stat stat: statList) {\n \t\tweights.add( stat.weight );\n \t}\n \t\n \treturn weights;\n }",
"@java.lang.Override\n public com.google.privacy.dlp.v2.StoredInfoTypeStats getStats() {\n return stats_ == null\n ? com.google.privacy.dlp.v2.StoredInfoTypeStats.getDefaultInstance()\n : stats_;\n }",
"java.util.List<Score>\n getScoresList();",
"public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}",
"public interface Statistics {\n\n int getBrowseCount();\n\n int getSalesCount();\n}",
"public String[] getSummaries() {\n\t\tif (results == null)\n\t\t\treturn null;\n\t\tWebSearchResult[] resultsArray = results.listResults();\n\t\tString[] summaries = new String[resultsArray.length];\n\t\tfor (int i = 0; i < summaries.length; i++) {\n\t\t\tsummaries[i] = resultsArray[i].getSummary();\n\t\t}\n\t\treturn summaries;\n\t}",
"public interface StatisticsProvider {\n /**\n * Get total sum of transaction value for the time period.\n *\n * @return total sum of transaction value for the time period\n */\n double getSum();\n\n /**\n * Get the highest transaction value in the time period.\n *\n * @return the highest transaction value in the time period\n */\n double getMax();\n\n /**\n * Get the lowest transaction value in the time period.\n *\n * @return the lowest transaction value in the time period\n */\n double getMin();\n\n /**\n * Get total number of transactions happened in the time period.\n *\n * @return total number of transactions happened in the time period\n */\n long getCount();\n}",
"public Statistics() {}",
"public HashMap<String, String> getAIStatistics() {\n HashMap<String, String> stats = new HashMap<String, String>();\n HashMap<String, Long> objStats = new HashMap<String, Long>();\n Iterator<AIObject> iter = aiObjects.values().iterator();\n while (iter.hasNext()) {\n AIObject obj = iter.next();\n String className = obj.getClass().getSimpleName();\n if (objStats.containsKey(className)) {\n Long count = objStats.get(className);\n count++;\n objStats.put(className, count);\n } else {\n Long count = new Long(1);\n objStats.put(className, count);\n }\n }\n for (String k : objStats.keySet()) {\n stats.put(k, Long.toString(objStats.get(k)));\n }\n \n return stats;\n }",
"public List<TPStatsInfo> getTPStats() {\n List<TPStatsInfo> tpstats = new ArrayList<>();\n Iterator<Map.Entry<String, JMXEnabledThreadPoolExecutorMBean>> threads = nodeProbe.getThreadPoolMBeanProxies();\n while (threads.hasNext()) {\n Map.Entry<String, JMXEnabledThreadPoolExecutorMBean> thread = threads.next();\n JMXEnabledThreadPoolExecutorMBean threadPoolProxy = thread.getValue();\n tpstats.add(new TPStatsInfo(thread.getKey(), threadPoolProxy.getActiveCount(),\n threadPoolProxy.getPendingTasks(), threadPoolProxy.getCompletedTasks(),\n threadPoolProxy.getCurrentlyBlockedTasks(), threadPoolProxy.getTotalBlockedTasks()));\n }\n return tpstats;\n }",
"public List<BenchmarkResultSet> getResults() {\n return results;\n }",
"public static List<AmbientStatistics> getAllAmbientStatistics() {\n\t\tList<AmbientStatistics> ambientStats = new ArrayList<>();\n\t\tambientStats.add(AmbientStatisticsRepository.getAmbientStatistics());\n\t\t\n\t\treturn ambientStats;\n\t}",
"public static int[] getStat() {\n\t\t\n\t\tint[] grades = new int[students.size()];\n\t\tfor(int i=0;i<students.size();i++) {\n\t\t\tgrades[i] = students.get(i).getGrade().getRawGrade();\n\t\t\t\n\t\t}\n\t\tArrays.sort(grades);\n\t\tint median = 0;\n\t\tif((int)grades.length/2 == grades.length/2.0)\n\t\t\tmedian = grades[grades.length/2];\n\t\telse\n\t\t\tmedian = (grades[grades.length/2] + grades[grades.length/2 + 1])/2;\n\t\tint [] ret = {grades[0], grades[grades.length-1], grades[grades.length/4], grades[3*grades.length/4], median};\n\t\treturn ret;\n\t}",
"List<CacheHealth> getCacheHealth();",
"List<Consumption> listAll();"
]
| [
"0.7813603",
"0.7424903",
"0.7104123",
"0.7063862",
"0.6875005",
"0.67972434",
"0.6712487",
"0.6701618",
"0.6688368",
"0.66820234",
"0.6681047",
"0.6677911",
"0.6672333",
"0.6658785",
"0.6639718",
"0.6612874",
"0.65699404",
"0.6564796",
"0.65584636",
"0.65333545",
"0.6487874",
"0.6473829",
"0.64471287",
"0.63733804",
"0.6362785",
"0.6357984",
"0.6334805",
"0.63267374",
"0.63154143",
"0.6304002",
"0.6274454",
"0.6266078",
"0.62653786",
"0.62489694",
"0.62154126",
"0.6214599",
"0.62022066",
"0.61999863",
"0.6192631",
"0.6176254",
"0.6143916",
"0.6141202",
"0.6134984",
"0.61288625",
"0.6125625",
"0.6098747",
"0.60866445",
"0.6081501",
"0.6079033",
"0.60735595",
"0.60676396",
"0.6062822",
"0.6062822",
"0.6062822",
"0.6045522",
"0.60421455",
"0.6017548",
"0.6015075",
"0.60135543",
"0.60035795",
"0.5987173",
"0.59749377",
"0.5972143",
"0.5969877",
"0.59638506",
"0.5958018",
"0.5948035",
"0.59428585",
"0.59405655",
"0.59276956",
"0.59261316",
"0.59188527",
"0.5915997",
"0.5911077",
"0.58972293",
"0.58903664",
"0.58795285",
"0.58780724",
"0.5875448",
"0.5874004",
"0.5868766",
"0.5866767",
"0.58621037",
"0.58594817",
"0.58436304",
"0.58236086",
"0.5805161",
"0.58044624",
"0.57828045",
"0.5776521",
"0.5772034",
"0.5770046",
"0.5769923",
"0.57535636",
"0.57421666",
"0.5735959",
"0.57358587",
"0.57301813",
"0.57232994",
"0.5714788"
]
| 0.8057388 | 0 |
calculate the Statistics base on all the events. | private List<Number> setStatistics() {
// the total waiting time for customers who have been served
double totalWatingTime = 0;
// the average waiting time for customers who have been served
double aveWaitingTime = 0;
// the number of customers served
int numOfCusServed = 0;
// the number of customers who left without being served
int numOfCusLeft = 0;
for (Event newEvent : this.eventsList) {
// update number Of customer served
if (newEvent instanceof ServeEvent) {
numOfCusServed++;
}
// update the total waiting time
if (newEvent instanceof WaitEvent) {
double nextAvailableTime = newEvent.getCurrentServer().getNextAvailableTime().get();
double customerArrivalTime = newEvent.getCustomer().getArrivalTime();
double startTime = this.eventsList.stream()
.filter(x -> (x instanceof ServeEvent)
&& (x.getCustomer().getId() == newEvent.getCustomer().getId()))
.findFirst().get().getStartTime();
double waitTime = startTime - customerArrivalTime;
totalWatingTime += waitTime;
}
// update the number of customer left
if (newEvent instanceof LeaveEvent) {
numOfCusLeft++;
}
}
// calculate the average waiting time
if (numOfCusServed != 0) {
aveWaitingTime = totalWatingTime / numOfCusServed;
}
return new ArrayList<>(Arrays.asList(aveWaitingTime, numOfCusServed, numOfCusLeft));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void analyzeEventsQueriesAmounts() throws SQLException\r\n\t{\r\n\t\tStatement stat = conn.createStatement();\r\n \r\n ResultSet result = stat.executeQuery(\"SELECT * FROM fraud.afm_fraudeventrecord;\");\r\n \r\n while (result.next())\r\n {\r\n \tString event = result.getString(\"eventType\");\r\n \tString user = result.getString(\"userId\");\r\n \t\r\n \tif (\r\n \t\t\t(event.contains(\"LOAD\"))\r\n \t&& \t\t(user.equals(\"user40\"))\r\n \t\t\t\r\n \t\t\t){\r\n \tSystem.out.print(new Date(result.getInt(\"timestamp\")));\r\n \tSystem.out.print(\" User : \" + user);\r\n \tSystem.out.print(\" Event : \" + event);\r\n \t\r\n \tString recordId = result.getString(\"fraudScoreRecordId\");\r\n \t\r\n \tif (recordId != null)\r\n \t{\r\n \t\tStatement stat2 = conn.createStatement();\r\n \t\tResultSet s = stat2.executeQuery(\"SELECT * FROM fraud.afm_fraudscorerecord where recordId='\"+recordId+\"';\");\r\n \t\twhile (s.next())\r\n \t\t{\r\n \t\t\tSystem.out.print(\" Query Type: \" + s.getString(\"queryType\"));\r\n \t\t\tSystem.out.print(\" Amount: \" + s.getDouble(\"transactionAmount\"));\r\n \t\t}\r\n \t}\r\n \t\r\n \t\r\n \tSystem.out.println();\r\n \t} \t\r\n }\r\n stat.close();\r\n\t}",
"private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}",
"private void calculateTotalStats() {\n int totHp = calculateHp(baseStats.hp, ivStats.hp, evStats.hp);\n int totAtk = calculateStat(baseStats.atk, ivStats.atk, evStats.atk, natureStats.atk);\n int totDef = calculateStat(baseStats.def, ivStats.def, evStats.def, natureStats.def);\n int totSpAtk = calculateStat(baseStats.spAtk, ivStats.spAtk, evStats.spAtk, natureStats.spAtk);\n int totSpDef = calculateStat(baseStats.spDef, ivStats.spDef, evStats.spDef, natureStats.spDef);\n int totSpd = calculateStat(baseStats.spd, ivStats.spd, evStats.spd, natureStats.spd);\n totalStats = new Stats(totHp, totAtk, totDef, totSpAtk, totSpDef, totSpd);\n combatStats = new Stats(totHp, 0, 0, 0, 0, 0);\n }",
"void update_time_avg_stats() {\n double time_since_last_event;\n\n\t\t/* Compute time since last event, and update last-event-time marker. */\n\n time_since_last_event = sim_time - time_last_event;\n time_last_event = sim_time;\n\n\t\t/* Update area under number-in-queue function. */\n\n area_num_in_q += num_in_q * time_since_last_event;\n\n\t\t/* Update area under server-busy indicator function. */\n\n area_server_status += server_status.ordinal() * time_since_last_event;\n }",
"private void calculateOverall()\n {\n ArrayList<Integer> average = new ArrayList<Integer>(1);\n ArrayList<Integer> median = new ArrayList<Integer>(1);\n ArrayList<Integer> mode = new ArrayList<Integer>();\n ArrayList<Integer> stdDev = new ArrayList<Integer>(1);\n \n int avg = 0;\n int med = 90;\n int mod = 90;\n int dev = 0;\n \n int[] modeArray = new int[100];\n \n for (int i = 0; i < 100; i++) {\n \tmodeArray[i] = 0;\n }\n \n for (Integer score : allScores) {\n \tavg += score;\n \tmodeArray[score]++;\n }\n \n for (int i = 0; i < 100; i++) {\n \tif (modeArray[i] > mod) {\n \t\tmod = modeArray[i];\n \t}\n }\n \n avg = avg / allScores.size();\n \n Collections.sort(allScores);\n med = allScores.get(allScores.size() / 2);\n \n for (Integer score : allScores) {\n \tdev += Math.pow(score - avg, 2);\n }\n dev = (int)Math.floor(Math.sqrt(dev / allScores.size()));\n\n // TODO: Perform the actual calculations here\n average.add(avg);\n median.add(med);\n mode.add(mod);\n stdDev.add(dev);\n\n this.overallAnalytics.put(\"Average\", average);\n this.overallAnalytics.put(\"Median\", median);\n this.overallAnalytics.put(\"Mode\", mode);\n this.overallAnalytics.put(\"Standard Deviation\", stdDev);\n }",
"public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }",
"public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}",
"private void calcFinanceTotals() {\n System.out.println(\"calcFinanceTotals\");\n financeWindow.clear();\n for (int i = 0; i < clubEventList.totalSize(); i++) {\n financeWindow.calcPlus(clubEventList.getUnfiltered(i));\n }\n financeWindow.display();\n }",
"public abstract void calculateSufficientStatistics();",
"public void statistics(){\n // calculate N\n for (int k=0 ; k<K ; ++k){\n N[k] = 0.0;\n for (int n=0 ; n<X.getN() ; ++n){\n SuperVoxel sv =X.get(n);\n N[k] = N[k] + sv.getVoxels().length*r.getEntry(n, k);\n }\n N[k] = N[k] + .000001;\n }\n\n \n // calculate xBar\n for (int k=0 ; k<K ; ++k){\n xBar[k].set(0.0);\n for (int n=0 ; n<X.getN() ; ++n){\n SuperVoxel sv = X.get(n);\n double rnk = r.getEntry(n, k);\n RealVector x = sv.getCenter().mapMultiply(rnk*sv.getVoxels().length);\n xBar[k] = xBar[k].add(x);\n }\n xBar[k].mapDivideToSelf(N[k]);\n } \n \n // calculate the S\n for (int k=0 ; k<K ; ++k){\n for (int row=0 ; row<X.getD() ; ++row){\n for (int col=0 ; col<X.getD() ; ++col){\n S[k].setEntry(row, col, 0.0);\n }\n }\n for (int n=0 ; n<X.getN() ; ++n){\n SuperVoxel sv = X.get(n);\n for (RealVector vox : sv.getVoxels()){\n RealVector del = vox.subtract(xBar[k]); \n S[k] = S[k].add(del.outerProduct(del).scalarMultiply(r.getEntry(n, k))); \n }\n }\n S[k] = S[k].scalarMultiply(1.0/N[k]);\n }\n }",
"public void calculations(){\n\n int temp_size1 = fight_list.get(0).t1.members.size();\n int[] t1_counter = new int[temp_size1 + 1]; //counter for deaths: 0, 1, 2..., party size.\n float t1_avg = 0; //Average number of deaths.\n\n //We don't need to calculate for t2 right now, because t2 is just monsters.\n //temp_size = fight_list.get(0).t2.members.size();\n //int[] t2_counter = new int[temp_size + 1];\n\n for(FightResult fig : this.fight_list){\n int i = 0;\n while(i != fig.t1_deaths){\n i++;\n }\n t1_counter[i]++;\n t1_avg += fig.t1_deaths;\n }//end for\n\n System.out.println(t1_avg);\n System.out.println(Float.toString(t1_avg/fight_list.size()) + \" / \" + Integer.toString(temp_size1));\n\n String axis = \"# of deaths: \\t\";\n int axis_int = 0;\n String t1_results = \"Happened: \\t\";\n for(int i : t1_counter){\n axis += Integer.toString(axis_int++) + \"\\t\";\n t1_results += Integer.toString(i) + \"\\t\";\n }//end for\n System.out.println(axis);\n System.out.println(t1_results);\n\n float tpk_amount = t1_counter[temp_size1]; //by taking the size, we take the item at the end of the array. In this case, the number where everyone dies.\n tpk_amount = (tpk_amount/fight_list.size())*100;\n System.out.println(\"Probability of TPK: \" + Float.toString(tpk_amount) + \" %.\");\n\n System.out.println(\"\\n--------\\n\");\n }",
"private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}",
"void statistics();",
"public ArrayList<String> getCountStatics() {\n\t\tint countsPerMinute = 0;\n\t\tint countsPerHour = 0;\n\t\tint countsPerDay = 0;\n\t\tint countsPerWeek = 0;\n\t\tint countsPerMonth = 0;\n\n\t\t// get a comparison time and start comparing the times against it\n\t\tArrayList<String> myArrayString = new ArrayList<String>();\n\t\tCalendar currDate = Calendar.getInstance();\n\t\tfor (int i = 0; i < clickerCountObject.getClickerTimestamps().size(); i++) {\n\t\t\tSystem.out.println(clickerCountObject.getClickerTimestamps().get(i)\n\t\t\t\t\t.get(Calendar.MINUTE) <= currDate.get(Calendar.MINUTE));\n\t\t\tif (currDate.get(Calendar.MINUTE) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MINUTE)\n\t\t\t\t\t&& currDate.get(Calendar.MINUTE) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MINUTE)) {\n\t\t\t\tcountsPerMinute += 1;\n\t\t\t}\n\t\t\tif (currDate.get(Calendar.HOUR_OF_DAY) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.HOUR_OF_DAY)\n\t\t\t\t\t&& currDate.get(Calendar.HOUR_OF_DAY) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.HOUR_OF_DAY)) {\n\t\t\t\tcountsPerHour += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.DAY_OF_MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.DAY_OF_MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.DAY_OF_MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.DAY_OF_MONTH))) {\n\t\t\t\tcountsPerDay += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.WEEK_OF_MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.WEEK_OF_MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.WEEK_OF_MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.WEEK_OF_MONTH))) {\n\t\t\t\tcountsPerWeek += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MONTH))) {\n\t\t\t\tcountsPerMonth += 1;\n\t\t\t}\n\t\t}\n\t\tmyArrayString.add(\"Counts per Minute \"\n\t\t\t\t+ Integer.toString(countsPerMinute));\n\t\tmyArrayString.add(\"Counts per Hour \" + Integer.toString(countsPerHour));\n\t\tmyArrayString.add(\"Counts per Day \" + Integer.toString(countsPerDay));\n\t\tmyArrayString.add(\"Counts per Week \" + Integer.toString(countsPerWeek));\n\t\tmyArrayString.add(\"Counts per Month \"\n\t\t\t\t+ Integer.toString(countsPerMonth));\n\n\t\tSystem.out.println(myArrayString);\n\t\treturn myArrayString;\n\t}",
"void calculate() {\n\t\tint i;\n\t\tdouble avgVolume = 0.0;\n\t\t\n\t\tfor( i = 0; i < end; i++ ) {\n\t\t\t\n\t\t\tavgVolume += s[i].showVolume();\n\t\t\tSystem.out.println(s[i].toString());\n\t\t}\n\t\tif( end == 0 )\n\t\t\tSystem.out.println(\"Queue is empty\");\n\t\telse\n\t\t\tSystem.out.println(\"Average Volume is :- \" + avgVolume/end);\n\t}",
"private static void getStatistics() {\r\n\r\n\t\tfloat totalWaitTime = 0;\r\n\t\tfloat totalRideTime = 0;\r\n\r\n\t\t// generate info about min wait time\r\n\t\tfloat minWaitTime = people.get(0).getWaitTime();\r\n\t\tString minWaitPerson = \"\";\r\n\t\ttotalWaitTime += minWaitTime;\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getWaitTime() < minWaitTime){\r\n\t\t\t\tminWaitTime = people.get(i).getWaitTime();\r\n\t\t\t\tminWaitPerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t\ttotalWaitTime += people.get(i).getWaitTime();\r\n\t\t}\r\n\r\n\t\t// generate info about min ride time\r\n\t\tfloat minRideTime = people.get(0).getRideTime();\r\n\t\tString minRidePerson = \"\";\r\n\t\ttotalRideTime += minRideTime;\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getRideTime() < minRideTime){\r\n\t\t\t\tminRideTime = people.get(i).getRideTime();\r\n\t\t\t\tminRidePerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t\ttotalRideTime += people.get(i).getRideTime();\r\n\t\t}\r\n\r\n\t\t// generate info about max wait time\r\n\t\tfloat maxWaitTime = people.get(0).getWaitTime();\r\n\t\tString maxWaitPerson = \"\";\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getWaitTime() > maxWaitTime){\r\n\t\t\t\tmaxWaitTime = people.get(i).getWaitTime();\r\n\t\t\t\tmaxWaitPerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// generate info about max ride time\r\n\t\tfloat maxRideTime = people.get(0).getRideTime();\r\n\t\tString maxRidePerson = \"\";\r\n\t\tfor (int i=1; i<people.size(); i++) {\r\n\t\t\tif(people.get(i).getRideTime() > maxRideTime){\r\n\t\t\t\tmaxRideTime = people.get(i).getRideTime();\r\n\t\t\t\tmaxRidePerson = people.get(i).getPersonName();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.printf(\"Avg Wait Time: %.1f sec\\n\", totalWaitTime/people.size());\r\n\t\tSystem.out.printf(\"Avg Ride Time: %.1f sec\\n\\n\", totalRideTime/people.size());\r\n\r\n\t\tSystem.out.printf(\"Min Wait Time: %.1f sec (%s)\\n\", minWaitTime, minWaitPerson);\r\n\t\tSystem.out.printf(\"Min Ride Time: %.1f sec (%s)\\n\\n\", minRideTime, minRidePerson);\r\n\r\n\t\tSystem.out.printf(\"Max Wait Time: %.1f sec (%s)\\n\", maxWaitTime, maxWaitPerson);\r\n\t\tSystem.out.printf(\"Max Ride Time: %.1f sec (%s)\\n\\n\", maxRideTime, maxRidePerson);\r\n\r\n\t}",
"protected abstract String getStatistics();",
"public void getStats(){\n for (Shelf shelf : this.shelves){\n if (!shelf.isEmpty()){\n shelf.printStats();\n }\n\n }\n }",
"private void calculateAverages(){\n for (int i=0; i<40; i=i+4){\n totalGoalsScored1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored1 = totalGoalsScored1/numberItems;\n //Total and average scored goals of team 2\n for (int i=2; i<40; i=i+4){\n totalGoalsScored2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored2 = totalGoalsScored2/numberItems;\n //Total and average received goals of team 1\n for (int i=1; i<40; i=i+4){\n totalGoalsReceived1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived1 = totalGoalsReceived1/numberItems;\n //Total and average received goals of team 2\n for (int i=3; i<40; i=i+4){\n totalGoalsReceived2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived2 = totalGoalsReceived2/numberItems;\n }",
"private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\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\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}",
"public void average(){\n\t\tfor(PlayerWealthDataAccumulator w : _wealthData.values()){\n\t\t\tw.average();\n\t\t}\n\t}",
"public void calculate()\n {\n \tVector<Instructor> instructors = instructorDB.getAllInstructors();\n \tSchedule schedule = AdminGenerating.getSchedule();\n \tsections = schedule.getAllSections();\n \n for (Instructor instructor : instructors) {\n calculateIndividual(instructor);\n }\n \n calculateOverall();\n }",
"@When(\"^all the events are retrieved$\")\n public void all_the_events_are_retrieved() throws Throwable {\n consumers = 1;\n clearMetrics();\n System.gc();\n long before = System.nanoTime();\n recordCount = ryvr.getSource().stream().count();\n long after = System.nanoTime();\n double localLatencyµs = (after - before) / 1000.0;\n LOGGER.info(\"total latency: {}µs\", localLatencyµs);\n LOGGER.info(\"MTPS(local): {}\", recordCount / localLatencyµs);\n\n if (httpThroughputCounter != null) {\n double byteCount = httpThroughputCounter.getBytes();\n double latencySeconds = httpThroughputCounter.getTotalLatency();\n LOGGER.info(\"bytes: {}MB\", byteCount / 1024.0 / 1024.0);\n LOGGER.info(\"throughput (local): {}MB/s\",\n byteCount / 1024.0 / 1024.0 / localLatencyµs * 1000000);\n LOGGER.info(\"throughput: {}MB/s\", byteCount / 1024.0 / 1024.0 / latencySeconds);\n LOGGER.info(\"total latency(prom): {}µs\", latencySeconds * 1000000.0);\n LOGGER.info(\"MTPS(prom): {}\", recordCount / latencySeconds / 1000000);\n httpThroughputCounter.logLatencies();\n }\n\n }",
"public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}",
"void print_statistics(long tot_arrived, long tot_processed, Double end_time){\n\n CloudEvent cloudEvent = new CloudEvent();\n CloudletEvent cletEvent = new CloudletEvent();\n PrintFile print = new PrintFile();\n\n\n // System response time & throughput\n\n float system_response_time = (float)(sum_service_times1_clet+ sum_service_times1_cloud + sum_service_times2_clet+ sum_service_times2_cloud)/ tot_processed;\n float response_time_class1 = (float) ((sum_service_times1_clet+ sum_service_times1_cloud)/ (completition_clet_type1 + completition_cloud_type1));\n float response_time_class2 = (float) ((sum_service_times2_clet+ sum_service_times2_cloud)/ (completition_clet_type2 + completition_cloud_type2));\n\n float lambda_tot = (float) (tot_arrived/end_time);\n float lambda_1 = (float)((arrival_type1_clet+arrival_type1_cloud)/end_time);\n float lambda_2 = (float)((arrival_type2_clet+arrival_type2_cloud)/end_time);\n\n\n // per-class effective cloudlet throughput\n\n float task_rate_clet1 = (float) ((float)completition_clet_type1 / end_time);\n float task_rate_clet2 = (float) ((float)completition_clet_type2 / end_time);\n\n\n // per-class cloud throughput\n\n float lambda_cloud1 = (float) ((arrival_type1_cloud)/end_time);\n float lambda_cloud2 = (float) ((arrival_type2_cloud)/end_time);\n\n\n // class response time and mean population\n\n float response_time_cloudlet = (float) (sum_service_times1_clet+ sum_service_times2_clet)/ (completition_clet_type1 + completition_clet_type2);\n float response_time_cloudlet1 = (float) sum_service_times1_clet/ completition_clet_type1;\n float response_time_cloudlet2 = (float) (sum_service_times2_clet/ completition_clet_type2);\n\n float response_time_cloud = (float) ((sum_service_times1_cloud+ sum_service_times2_cloud)/ (completition_cloud_type1 + completition_cloud_type2));\n float response_time_cloud1 = (float) (sum_service_times1_cloud/ completition_cloud_type1);\n float response_time_cloud2 = (float) (sum_service_times2_cloud/ completition_cloud_type2);\n\n // E[N] cloudlet\n float mean_cloudlet_jobs = cletEvent.mean_cloudlet_jobs_number();\n // E[N] class 1 cloudlet\n float mean_cloudlet_jobs1 = cletEvent.mean_cloudlet_jobs_number1();\n // E[N] class 2 cloudlet\n float mean_cloudlet_jobs2 = cletEvent.mean_cloudlet_jobs_number2();\n\n // E[N] cloud\n float mean_cloud_jobs = cloudEvent.mean_cloud_jobs_number();\n // E[N] class 1 cloud\n float mean_cloud_jobs1 = cloudEvent.mean_cloud_jobs_number1();\n // E[N] class 2 cloud\n float mean_cloud_jobs2 = cloudEvent.mean_cloud_jobs_number2();\n\n\n // Altre statistiche di interesse\n\n float lambda_clet = (float) ((arrival_type1_clet+ arrival_type2_clet)/end_time);\n float lambda_clet1 = (float) ((arrival_type1_clet)/end_time);\n float lambda_clet2 = (float) ((arrival_type2_clet)/end_time);\n float lambda_cloud = (float) ((arrival_type1_cloud+ arrival_type2_cloud)/end_time);\n\n double rate1_clet = mean_cloudlet_jobs1*0.45;\n double rate2_clet = mean_cloudlet_jobs2*0.27;\n\n\n\n NumberFormat numForm = NumberFormat.getInstance();\n numForm.setMinimumFractionDigits(6);\n numForm.setMaximumFractionDigits(6);\n numForm.setRoundingMode(RoundingMode.HALF_EVEN);\n\n\n System.out.println(\"\\n\\n\\n 1) SYSTEM RESPONSE TIME & THROUGHPUT \" + \"(GLOBAL & PER-CLASS)\");\n\n System.out.println(\"\\n Global System response time ...... = \" + numForm.format( system_response_time));\n System.out.println(\" Response time class 1 ...... = \" + numForm.format( response_time_class1));\n System.out.println(\" Response time class 2 ...... = \" + numForm.format( response_time_class2));\n\n System.out.println(\"\\n Global System throughput ...... = \" + numForm.format( lambda_tot));\n System.out.println(\" Throughput class 1 ...... = \" + numForm.format( lambda_1));\n System.out.println(\" Throughput class 2 ...... = \" + numForm.format( lambda_2));\n\n\n System.out.println(\"\\n\\n\\n 2) PER_CLASS EFFECTIVE CLOUDLET THROUGHPUT \");\n System.out.println(\" Task-rate cloudlet class 1 ...... = \" + numForm.format( rate1_clet));\n System.out.println(\" Task-rate cloudlet class 2 ...... = \" + numForm.format( rate2_clet));\n\n\n System.out.println(\"\\n\\n\\n 3) PER_CLASS CLOUD THROUGHPUT \");\n System.out.println(\" Throughput cloud class 1 ...... = \" + numForm.format( lambda_cloud1));\n System.out.println(\" Throughput cloud class 2 ...... = \" + numForm.format( lambda_cloud2));\n\n\n System.out.println(\"\\n\\n\\n 4) CLASS RESPONSE TIME & MEAN POPULATION \" + \"(CLOUDLET & CLOUD)\");\n\n System.out.println(\"\\n Response Time class 1 cloudlet ...... = \" + numForm.format( response_time_cloudlet1));\n System.out.println(\" Response Time class 2 cloudlet ...... = \" + numForm.format(response_time_cloudlet2));\n System.out.println(\" Response Time class 1 cloud ...... = \" + numForm.format( response_time_cloud1));\n System.out.println(\" Response Time class 2 cloud ...... = \" + numForm.format( response_time_cloud2));\n\n System.out.println(\"\\n Mean Population class 1 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs1));\n System.out.println(\" Mean Population class 2 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs2));\n System.out.println(\" Mean Population class 1 cloud ...... = \" + numForm.format( mean_cloud_jobs1));\n System.out.println(\" Mean Population class 2 cloud ...... = \" + numForm.format( mean_cloud_jobs2));\n\n }",
"@Override\r\n\tpublic void calculateFinalData() {\n\t\tfor(TeamPO oneTeam:teams.getAllTeams()){\r\n\t\t\toneTeam.calculateTeamDataInOneSeason();\r\n\t\t}\r\n\t}",
"@Scheduled(fixedRate = 500)\n public void processStatisticsUntil() {\n List<Transaction> allByTimestampAfter = transactionRepository.findAllByTimestampAfter(Instant.now().toEpochMilli() - minuteInMillis);\n Statistics statistics = statisticsCache.getStatistics();\n DoubleSummaryStatistics amountSummaryStatistics = allByTimestampAfter.stream().mapToDouble(Transaction::getAmount).summaryStatistics();\n statistics.setAvg(amountSummaryStatistics.getAverage());\n statistics.setCount(amountSummaryStatistics.getCount());\n statistics.setMax(amountSummaryStatistics.getMax());\n statistics.setMin(amountSummaryStatistics.getMin());\n statistics.setSum(amountSummaryStatistics.getSum());\n log.debug(\"stats {} \", statistics);\n }",
"public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}",
"public void makeSampleActivitySum() {\n\t\tdouble sumActivity = 0;\n\t\tfor (int i = 0; i < SubjectsList.size(); i ++) {\n\t\t\tdouble ca = SubjectsList.get(i).getSubjectActivitySum();\n\t\t\tsumActivity += ca;\n\t\t}\n\t\t//System.out.println(sumActivity/sampleSize);\n\t}",
"@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }",
"public void computeItemStats()\n\t{\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add every item stat value.\n\t\t\titem.getValue().addItemStats(urgot);\n\t\t}\n\t\t\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add passives after all stats have been added.\n\t\t\titem.getValue().applyPassive(urgot);\n\t\t}\n\t}",
"private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}",
"public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}",
"public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }",
"public List<Stat> getEventStats(String siteId, List<String> events) {\n\t\treturn getEventStats(siteId, events, getInitialActivityDate(siteId), null, null, false, null, null, null, true, 0);\n\t}",
"void results() {\n Time t = new Time(System.currentTimeMillis());\n endTime = t;\n\n float t1gpslog, t2gpslog, t3gpslog, bhgpslog, mhgpslog, fhgpslog, nfgpslog,\n t1dtnlog, t2dtnlog, t3dtnlog, bhdtnlog, mhdtnlog, fhdtnlog, nfdtnlog;\n float t1logpercentage, t2logpercentage, t3logpercentage, bhlogpercentage,\n mhlogpercentage, fhlogpercentage, nflogpercentage;\n\n t1gpslog = t2gpslog = t3gpslog = bhgpslog = mhgpslog = fhgpslog = nfgpslog\n = t1dtnlog = t2dtnlog = t3dtnlog = bhdtnlog = mhdtnlog = fhdtnlog = nfdtnlog = 0;\n int xval, yval;\n\n for (int rbucklocationx = 0; rbucklocationx < MAX_X_GRID; rbucklocationx++) {\n for (int rbucklocationy = 0; rbucklocationy < MAX_Y_GRID; rbucklocationy++) {\n if (t1_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t1GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t1gpslog++;\n }\n\n if (t2_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t2GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t2gpslog++;\n }\n\n if (t3_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t3GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t3gpslog++;\n }\n if (bh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n bhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n bhgpslog++;\n }\n if (mh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n mhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n mhgpslog++;\n }\n if (fh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n fhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n fhgpslog++;\n }\n if (nf_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n nfgGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n nfgpslog++;\n }\n }\n }\n\n for (int resultloop = 0; resultloop < DATA_MAX_PACKETS; resultloop++)\n {\n if (d1_message[resultloop] != 0) {\n if ((d1_message[resultloop] >> 11) == t1_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t1DTNLog.add(new GPSLog(xval, yval));\n t1dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == t2_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t2DTNLog.add(new GPSLog(xval, yval));\n t2dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == t3_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t3DTNLog.add(new GPSLog(xval, yval));\n t3dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == bh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n bhDTNLog.add(new GPSLog(xval, yval));\n bhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == mh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n mhDTNLog.add(new GPSLog(xval, yval));\n mhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == fh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n fhDTNLog.add(new GPSLog(xval, yval));\n fhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == nf_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n nfgDTNLog.add(new GPSLog(xval, yval));\n nfdtnlog++;\n }\n }\n }\n\n if (t1gpslog != 0) {\n t1logpercentage = (t1dtnlog / t1gpslog) * 100;\n percentageLog.add(\"t1percentage is \" + t1logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T1\", t1logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T1\", t1logpercentage));\n });\n t1tp = t1logpercentage;\n }\n\n if (t2gpslog != 0) {\n t2logpercentage = (t2dtnlog / t2gpslog) * 100;\n percentageLog.add(\"t2percentage is \" + t2logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T2\", t2logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T2\", t2logpercentage));\n });\n t2tp = t2logpercentage;\n }\n\n if (t3gpslog != 0) {\n t3logpercentage = (t3dtnlog / t3gpslog) * 100;\n percentageLog.add(\"t3percentage is \" + t3logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T3\", t3logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T3\", t3logpercentage));\n });\n t3tp = t3logpercentage;\n }\n\n if (bhgpslog != 0) {\n bhlogpercentage = (bhdtnlog / bhgpslog) * 100;\n percentageLog.add(\"bhpercentage is \" + bhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"BH\", bhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"BH\", bhlogpercentage));\n });\n bhtp = bhlogpercentage;\n }\n\n if (mhgpslog != 0) {\n mhlogpercentage = (mhdtnlog / mhgpslog) * 100;\n percentageLog.add(\"mhpercentage is \" + mhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"MH\", mhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"MH\", mhlogpercentage));\n });\n mhtp = mhlogpercentage;\n }\n\n if (fhgpslog != 0) {\n fhlogpercentage = (fhdtnlog / fhgpslog) * 100;\n percentageLog.add(\"fhpercentage is \" + fhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"FH\", fhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"FH\", fhlogpercentage));\n });\n fhtp = fhlogpercentage;\n }\n\n if (nfgpslog != 0) {\n nflogpercentage = (nfdtnlog / nfgpslog) * 100;\n percentageLog.add(\"nfpercentage is \" + nflogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"NF\", nflogpercentage));\n tpslc.getData().add(new XYChart.Data(\"NF\", nflogpercentage));\n });\n nftp = nflogpercentage;\n }\n\n float gpslogSum = t1gpslog + t2gpslog + t3gpslog + bhgpslog + mhgpslog + fhgpslog + nfgpslog;\n float dtnlogSum = t1dtnlog + t2dtnlog + t3dtnlog + bhdtnlog + mhdtnlog + fhdtnlog + nfdtnlog;\n\n \n if (gpslogSum > 0)\n {\n float collectiveThroughput = ((dtnlogSum) / (gpslogSum)) * 100;\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"CT\", collectiveThroughput));\n tpslc.getData().add(new XYChart.Data(\"CT\", collectiveThroughput));\n });\n ct = collectiveThroughput;\n }\n\n //Add the Radio Contact Ratio value to the series\n \n if (dtnlogSum > 0)\n {\n rcratio = radioContactLog.size()/dtnlogSum;\n }\n else\n {\n rcratio = 0;\n }\n Platform.runLater(()-> {\n rcrSeries.setYValue(rcratio);\n });\n updateGPSLogSeries();\n updateDataCenterSeries();\n\n //Update the binding properties \n Platform.runLater(()-> {\n simStarted.set(false);\n simInProgress.set(false);\n simCompleted.set(true);\n simNotInProgress.set(true);\n simPaused.set(false);\n simNotStarted.set(true);\n });\n packetModels.clear();\n packetModels.add(new PacktTallyModel(t1gpslog));\n packetModels.add(new PacktTallyModel(t2gpslog));\n packetModels.add(new PacktTallyModel(t3gpslog));\n packetModels.add(new PacktTallyModel(bhgpslog));\n packetModels.add(new PacktTallyModel(mhgpslog));\n packetModels.add(new PacktTallyModel(fhgpslog));\n packetModels.add(new PacktTallyModel(nfgpslog));\n packetModels.add(new PacktTallyModel(gpslogSum));\n packetModels.add(new PacktTallyModel(t1dtnlog));\n packetModels.add(new PacktTallyModel(t2dtnlog));\n packetModels.add(new PacktTallyModel(t3dtnlog));\n packetModels.add(new PacktTallyModel(bhdtnlog));\n packetModels.add(new PacktTallyModel(mhdtnlog));\n packetModels.add(new PacktTallyModel(fhdtnlog));\n packetModels.add(new PacktTallyModel(nfdtnlog));\n packetModels.add(new PacktTallyModel(dtnlogSum));\n packetModels.add(new PacktTallyModel(ct));\n packetModels.add(new PacktTallyModel(radioContactLog.size()));\n packetModels.add(new PacktTallyModel(rcratio));\n \n }",
"private SimulationReport calculateDataPerSimulation(SimulationReport simulationReport){\n Long numerator = 0L, denominator = 0L, catalogNumerator = 0L, reportNumerator = 0L;\n\n Map<String, Map<String, Long>> maps = simulationReport.getNodeMeanResponseTimes();\n Set<Map.Entry<String, Map<String, Long>>> responseTimeEntrySet = maps.entrySet();\n for(Map.Entry<String, Map<String, Long>> nodeEntry : responseTimeEntrySet){\n Map<String, Long> means = nodeEntry.getValue();\n SimulationConfig simConf = getSimConfig(simulationReport.getSimulationConfig(), nodeEntry.getKey());\n Set<Map.Entry<String, Long>> meanEntrySet = means.entrySet();\n for(Map.Entry<String, Long> meanEntry : meanEntrySet){\n String meanKey = meanEntry.getKey();\n Long meanValue = meanEntry.getValue();\n if (meanKey.equals(\"agent\")){\n numerator += (simConf.getNumberInstances() * simConf.getNumberRepetitions()) * meanValue;\n }\n else if (meanKey.equals(\"catalog\")){\n catalogNumerator += (simConf.getNumberInstances() * simConf.getNumberRepetitions()) * meanValue;\n }\n else if (meanKey.equals(\"report\")){\n reportNumerator += (simConf.getNumberInstances() * simConf.getNumberRepetitions()) * meanValue;\n }\n }\n denominator += (long) simConf.getNumberInstances() * simConf.getNumberRepetitions();\n }\n\n if (denominator > 0){\n simulationReport.setTotalMeanAgentRunTime((numerator / denominator));\n simulationReport.setTotalMeanCatalogResponseTime((catalogNumerator / denominator));\n simulationReport.setTotalReportResponseTime((reportNumerator / denominator));\n logger.println(\"[PuppetGatling] - The Agent total mean response time for \" + simulationReport.getName() + \": \" + simulationReport.getTotalMeanAgentRunTime());\n logger.println(\"[PuppetGatling] - The Catalog total mean response time for \" + simulationReport.getName() + \": \" + simulationReport.getTotalMeanCatalogResponseTime());\n logger.println(\"[PuppetGatling] - The Report total mean response time for \" + simulationReport.getName() + \": \" + simulationReport.getTotalReportResponseTime());\n }\n\n return simulationReport;\n }",
"private int totalTime()\n\t{\n\t\t//i'm using this varaible enough that I should write a separate method for it\n\t\tint totalTime = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//get the start time\n\t\t\tString startTime = saveData.get(i).get(\"startTime\");\n\t\t\t//get the end time\n\t\t\tString endTime = saveData.get(i).get(\"endTime\");\n\t\t\t//****CONTINUE\n\t\t\t//total time in minutes\n\t\t}\n\t}",
"public void dailyStats(){\n\t\tString outputString = \"\\nTotal Money Made Today: $\" + (float)Math.round(dailyMoneyMade * 100.0) / 100.0 + \" \\n\";\n\t\toutputString = outputString + \"Catering Sales: $\" + (float)Math.round(cateringDailyMade * 100.0) / 100.0 + \" Business Sales: $\" \n\t\t+ (float)Math.round(businessDailyMade * 100.0) / 100.0 +\" Casual Sales: $\" + (float)Math.round(casualDailyMade * 100.0) / 100.0 +\"\\n\";\n\t\t\n\n\t\toutputString = outputString + \"\\nTotal Outages Today: \" + dailyDisruptions + \" \\n\";\n\t\toutputString = outputString + \"Catering Outages: \" + cateringOuttages + \" Business Outages: \" + businessOuttages +\" Casual Outages: \" + casualOuttages +\"\\n\";\n\n\t\tSystem.out.println(outputString);\n\t\tthis.status = outputString;\n\t\tsetChanged();\n notifyObservers();\n\t}",
"private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}",
"Map<String, Object> getStats();",
"public static void _generateStatistics() {\n\t\ttry {\n\t\t\t// Setup info\n\t\t\tPrintStream stats = new PrintStream(new File (_statLogFileName + \".txt\"));\n\n\t\t\tScanner scan = new Scanner(new File(_logFileName+\".txt\"));\n\t\t\twhile (scan.hasNext(SETUP.toString())) {\n\t\t\t\t// Append setup info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tstats.append(\"\\n\");\n\n\t\t\twhile (scan.hasNext(DETAILS.toString()) || scan.hasNext(RUN.toString())) {\n\t\t\t\t// Throw detailed info away\n\t\t\t\tscan.nextLine();\n\t\t\t}\n\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\t// Append post-run info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tscan.close();\n\t\t\tstats.append(\"\\n\");\n\n\t\t\t// Perf4J info\n\t\t\tReader reader = new FileReader(_logFileName+\".txt\");\n\t\t\tLogParser parser = new LogParser(reader, stats, null, 10800000, true, new GroupedTimingStatisticsTextFormatter());\n\t\t\tparser.parseLog();\n\t\t\tstats.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void process(EventData event) throws Exception {\n\t\tevent.getDoc().put(\"dimm\", memory());\n\t\tevent.getDoc().put(\"battery\", batteries());\n\t\tevent.getDoc().put(\"chassis\", chassis());\n\t\tevent.getDoc().put(\"pwrsupplies\", pwrsupplies());\n\t\tevent.getDoc().put(\"storage\", storage());\n\t\tevent.getDoc().put(\"fans\", fans());\n\n\t}",
"@VisibleForTesting\n public static void validate(Map<String, StatisticsEventConfig> eventMap,\n StatisticsConfig config) {\n for (Iterator<StatisticsEventConfig> iter = config.getEvents()\n .iterator(); iter.hasNext();) {\n StatisticsEventConfig event = iter.next();\n String eventType = event.getType();\n if (!eventMap.containsKey(eventType)) {\n try {\n Class<?> clazz = Class.forName(eventType);\n // verify the type is an Event\n event.setTypeClass(clazz.asSubclass(Event.class));\n\n // validate groupBy fields can be found\n List<StatisticsGroup> groups = event.getGroupList();\n if (groups != null) {\n List<Method> groupByMethods = new ArrayList<Method>(\n groups.size());\n Set<String> currentFields = new HashSet<String>();\n\n for (Iterator<StatisticsGroup> groupIter = groups\n .iterator(); groupIter.hasNext();) {\n StatisticsGroup group = groupIter.next();\n String fieldName = group.getName();\n if (!currentFields.contains(fieldName)) {\n try {\n Method m = ReflectionUtil.getGetterMethod(\n clazz, fieldName);\n groupByMethods.add(m);\n currentFields.add(fieldName);\n } catch (ReflectionException e) {\n groupIter.remove();\n statusHandler\n .warn(\"'\"\n + fieldName\n + \"' does not have getter method. Group being removed\");\n }\n } else {\n statusHandler\n .warn(\"'\"\n + fieldName\n + \"' already defined. Duplicate group being removed.\");\n }\n }\n\n event.setGroupByMethods(groupByMethods);\n }\n\n // validate aggregate methods can be found and are primitive\n List<StatisticsAggregate> curAggregates = event\n .getAggregateList();\n List<Method> aggregateMethods = new ArrayList<Method>(\n curAggregates.size());\n Set<String> currentFields = new HashSet<String>();\n\n for (Iterator<StatisticsAggregate> aggrIter = curAggregates\n .iterator(); aggrIter.hasNext();) {\n StatisticsAggregate aggregate = aggrIter.next();\n String aggregateField = aggregate.getField();\n\n try {\n Field field = getField(clazz, aggregateField);\n if (field.getType().isPrimitive()) {\n if (!currentFields.contains(aggregateField)) {\n try {\n Method m = ReflectionUtil\n .getGetterMethod(clazz,\n aggregateField);\n aggregateMethods.add(m);\n currentFields.add(aggregateField);\n } catch (ReflectionException e) {\n aggrIter.remove();\n statusHandler\n .warn(\"'\"\n + aggregateField\n + \"' does not have getter method. Aggregate being removed\");\n }\n } else {\n aggrIter.remove();\n statusHandler\n .warn(\"'\"\n + aggregateField\n + \"' already defined. Duplicate aggregate being removed. \");\n }\n } else {\n aggrIter.remove();\n statusHandler\n .warn(\"'\"\n + aggregateField\n + \"' not a primitive type. Aggregate being removed. \");\n }\n } catch (NoSuchFieldException e) {\n aggrIter.remove();\n statusHandler\n .warn(\"'\"\n + aggregateField\n + \"' not a valid field. Aggregate being removed. \");\n }\n }\n\n if (!curAggregates.isEmpty()) {\n event.setAggregateMethods(aggregateMethods);\n eventMap.put(eventType, event);\n } else {\n iter.remove();\n }\n } catch (ClassNotFoundException e) {\n iter.remove();\n statusHandler.warn(\"'\" + eventType\n + \"' not a valid type. Type being removed. \");\n } catch (ClassCastException e) {\n iter.remove();\n statusHandler.warn(\"'\" + eventType\n + \"' not an Event type. Type being removed. \");\n }\n } else {\n iter.remove();\n statusHandler\n .warn(\"'\"\n + eventType\n + \"' is already defined. StatisticsEvent being skipped.\");\n }\n }\n }",
"public void sumValues(){\n\t\tint index = 0;\n\t\tDouble timeIncrement = 2.0;\n\t\tDouble timeValue = time.get(index);\n\t\tDouble packetValue;\n\t\twhile (index < time.size()){\n\t\t\tDouble packetTotal = 0.0;\n\t\t\twhile (timeValue < timeIncrement && index < packets.size()){\n\t\t\t\ttimeValue = time.get(index);\n\t\t\t\tpacketValue = packets.get(index);\n\t\t\t\tpacketTotal= packetTotal + packetValue;\n\t\t\t\tindex = index + 1;\n\t\t\t}\n\t\t\tArrayList<Double> xy = new ArrayList<Double>();\n\t\t\txy.add(timeIncrement);\n\t\t\txy.add(packetTotal);\n\t\t\ttotalIncrements.add(xy);\n\t\t\t// to get max and min need separate arrays\n\t\t\ttimeIncrements.add(timeIncrement);\n\t\t\tbyteIncrements.add(packetTotal);\n\t\t\ttimeIncrement = timeIncrement + 2.0;\t\n\t\t}\n\t\treturn;\n\n\t}",
"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 }",
"public void stats() {\n\t\tSystem.out.println(\"Hash Table Stats\");\n\t\tSystem.out.println(\"=================\");\n\t\tSystem.out.println(\"Number of Entries: \" + numEntries);\n\t\tSystem.out.println(\"Number of Buckets: \" + myBuckets.size());\n\t\tSystem.out.println(\"Histogram of Bucket Sizes: \" + histogram());\n\t\tSystem.out.printf(\"Fill Percentage: %.5f%%\\n\", fillPercent());\n\t\tSystem.out.printf(\"Average Non-Empty Bucket: %.7f\\n\\n\", avgNonEmpty());\t\t\n\t}",
"public abstract Map<Object,Map<String,Integer>> getEventHandlerCounts();",
"Map<String, Number> toStatsMap() {\n long s = successes.get();\n long r = responseTimes.get();\n long avg = s <= 0 ? -1 : r / s;\n\n Map<String, Number> stats = new HashMap<String, Number>();\n stats.put(\"successes\", (int) s);\n stats.put(\"averageResponseTime\", avg);\n stats.put(\"httpFailures\", httpFailures.get());\n stats.put(\"readTimeouts\", readTimeouts.get());\n stats.put(\"connectTimeouts\", connectTimeouts.get());\n stats.put(\"socketErrors\", socketErrors.get());\n stats.put(\"emptyResults\", emptyResults.get());\n return stats;\n }",
"public static ArrayList<String> getStatistics() {\n ArrayList<String> answer = new ArrayList<>();\n for (Map.Entry<String, HashMap<String, Integer>> entry1 : winStatistic.entrySet()) {\n for (Map.Entry<String, Integer> entry2 : entry1.getValue().entrySet()) {\n answer.add(entry1.getKey() + \" won \" + entry2.getKey() + \" \" + entry2.getValue() + \" times.\");\n }\n }\n for (Map.Entry<String, HashMap<String, Integer>> entry1 : drawStatistic.entrySet()) {\n for (Map.Entry<String, Integer> entry2 : entry1.getValue().entrySet()) {\n answer.add(entry1.getKey() + \" play in a draw with \" + entry2.getKey() + \" \" + entry2.getValue() + \" times.\");\n }\n }\n return answer;\n }",
"public KeyStatsListener() {\n sortedSet = new TreeSet<Map.Entry<K, Integer>>(\n new Comparator<Map.Entry<K, Integer>>() {\n\n @Override\n public int compare(final Map.Entry<K, Integer> e1,\n final Map.Entry<K, Integer> e2) {\n\n if (e1.getValue().compareTo(e2.getValue()) != 0) {\n return -1 * e1.getValue().compareTo(e2.getValue());\n }\n\n return 1;\n }\n });\n\n freqHitMap = new TreeMap<K, Integer>();\n freqMissMap = new TreeMap<K, Integer>();\n freqPutMap = new TreeMap<K, Integer>();\n }",
"public void findavgTime(){\n findWaitingTime(ProcessesNumber, ProcessesNumber.length, BurestTime, WaitingTime, quantum);\n \n // Function to find turn around time \n findTurnAroundTime(ProcessesNumber, ProcessesNumber.length, BurestTime, WaitingTime, TurnaroundTime);\n \n \n System.out.println(\"Processes \" + \" Burst time \" +\n \" Waiting time \" + \" Turn around time\");\n \n \n // around time\n for (int i=0; i<ProcessesNumber.length; i++)\n {\n Total_WaitingTime = Total_WaitingTime + WaitingTime[i];\n Total_TurnaroundTime = Total_TurnaroundTime + TurnaroundTime[i];\n System.out.println(\" \" + (i+1) + \"\\t\\t\" + BurestTime[i] +\"\\t \" +\n WaitingTime[i] +\"\\t\\t \" + TurnaroundTime[i]);\n }\n \n Average_WaitingTime = (float)Total_WaitingTime / (float)ProcessesNumber.length ;\n Average_TurnaroundTime = (float)Total_TurnaroundTime / (float)ProcessesNumber.length ;\n \n System.out.println(\"Average waiting time = \" + (float)Average_WaitingTime);\n System.out.println(\"Average turn around time = \" + (float)Average_TurnaroundTime);\n \n\n//for ( int k = 0; k < ProcessMoved[k].length; k++) {\n// \n// for (int j = 0; j < ProcessMoved.length; j++) {\n//\n// System.out.println(ProcessMoved[j][k]);\n// }\n//\n// }\n \n Gantt_Chart_Pre per = new Gantt_Chart_Pre(ProcessMoved ,endtime ,WaitingTime , TurnaroundTime , Names ,ProcessesNumber ,Total_WaitingTime,Average_WaitingTime,Total_TurnaroundTime,Average_TurnaroundTime);\n per.setTitle(\"Solution !!\");\n per.setSize(1000,700);\n per.setLocationRelativeTo(null);\n per.setVisible(true);\n }",
"public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}",
"public void calculateScores(OutputCollector collector, List<T> observationList) {\n List<ScorePackage> packageList = getScores(observationList);\n for (ScorePackage scorePackage : packageList) {\n collector.emit(new Values(scorePackage.getId(), scorePackage.getScore(), scorePackage.getObj()));\n }\n }",
"private void summarizeTimeslot ()\n {\n if (null == brokers) {\n // first time through\n brokers = new ArrayList<>();\n stats = new HashMap<>();\n\n data.print(\"Broker Name,\");\n data.print(\"Power Type,\");\n data.print(\"Customers,\");\n data.print(\"Usage (kWh),\");\n data.println(\"Income Gained\");\n\n // set up the maps of brokers, and stats by power type\n for (Broker broker : brokerRepo.findRetailBrokers())\n {\n brokers.add(broker);\n stats.put(broker, new HashMap<>());\n for (PowerType type : powerTypes)\n {\n StatsTracked theseStats = new StatsTracked();\n HashMap<PowerType, StatsTracked> map = stats.get(broker);\n map.put(type, theseStats);\n stats.put(broker, map);\n }\n }\n\n // store customer statistics\n\n }\n\n if (ttx.size() > 0) {\n // there are some signups and withdraws here\n for (TariffTransaction tx : ttx) {\n Broker broker = tx.getBroker();\n PowerType type = tx.getTariffSpec().getPowerType();\n HashMap<PowerType, StatsTracked> brokerMap = stats.get(broker);\n StatsTracked theseStats = brokerMap.get(type);\n if (tx.getTxType() == TariffTransaction.Type.CONSUME ||\n tx.getTxType() == TariffTransaction.Type.PRODUCE) {\n theseStats.updateUsage(tx.getKWh());\n theseStats.updateProfit(tx.getCharge());\n }\n else if (tx.getTxType() == TariffTransaction.Type.SIGNUP)\n theseStats.updateCustomers(tx.getCustomerCount());\n\n // reupdate the tracking...\n brokerMap.put(type, theseStats);\n stats.put(broker, brokerMap);\n }\n }\n ttx.clear();\n }",
"public void calculateAverage() {\n\n if (turn == 1) {\n p1.setTotalScore(p1.getTotalScore() + turnScore);\n\n p1.setTotalDarts(p1.getTotalDarts() + 1);\n\n float p1Average = p1.getTotalScore() / p1.getTotalDarts();\n p1.setAverage(p1Average);\n\n } else if (turn == 2) {\n p2.setTotalDarts(p2.getTotalDarts() + 1);\n p2.setTotalScore(p2.getTotalScore() + turnScore);\n\n float p2Average = p2.getTotalScore() / p2.getTotalDarts();\n p2.setAverage(p2Average);\n }\n\n\n }",
"public String getStats() {\n String stats = \"Total running time: \" + runtime + \"\\\\\\\\\";\n int totalit = 0;\n int largestit = 0;\n int averageit = 0;\n for (Integer i : recGraphs) {\n totalit += i;\n averageit += i;\n if (i > largestit) {\n largestit = i;\n }\n }\n averageit /= recGraphs.size();\n double totalhit = 0;\n double longesthit = 0;\n double averagehit = 0;\n for (Double i : recHitTimes) {\n totalhit += i;\n averagehit += i / recHitTimes.size();\n if (i > longesthit) {\n longesthit = i;\n }\n }\n stats += \"Total iterations in step 3: \" + totalit + \"\\\\\\\\\";\n stats += \"Largest set of iterations in step 3: \" + largestit + \"\\\\\\\\\";\n stats += \"Average iterations set in step 3: \" + averageit + \"\\\\\\\\\";\n stats += \"Total hitting sets calculation time: \" + totalhit + \"\\\\\\\\\";\n stats += \"Average hitting set calculation time: \" + averagehit + \"\\\\\\\\\";\n stats += \"Longest hitting set calculation time: \" + longesthit + \"\\\\\\\\\";\n return stats;\n }",
"public CommonStatistics() {\n totalSubmissions = 0;\n lateSubmissions = 0;\n normalSubmissions = 0;\n approvedItems = 0;\n rejectedItems = 0;\n totalPendingItems = 0;\n arrearsPendingItems = 0;\n thisMonthPendingItems = 0;\n deletedItems = 0;\n confirmationPrintedItems = 0;\n confirmationApprovalPendingItems = 0;\n confirmationApprovedItems = 0;\n }",
"@Override\n\tpublic Map<Tag, Double> report() {\n\t\tMap<Tag,Double> result = new HashMap<>();\n\t\tbudget.getTags().stream()\n\t\t\t\t.forEach(t->result.put(t,ledger.getSingleTag(t.getID()).getTotalAmount()-budget.getExpected(t)));\n\t\treturn result;\n\t}",
"public void process()\n {\n for (int i = 0; i <= names.length-1; i++)\n {\n int x = 0;\n System.out.println(\"\");\n System.out.print(names[i] + \" had test scores of \");\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n System.out.print(scores[i][j] + \", \");\n \n x += scores[i][j];\n \n }\n System.out.print(\" Test average is \" + x/4 + \".\");\n }\n System.out.println(\"\");\n findL();\n findH();\n findAvg();\n }",
"public void refresh() {\n\t\t\n\t\t// init\n\t\tthis.refreshInit();\n\t\t\n\t\t// composite events refresh\n\t\tfor ( EventsProviderAbstract composite : this.getEventsProviders()) {\n\t\t\tcomposite.refreshEvents();\n\t\t}\n\t\t\n\t\t// provided events\n\t\tthis.refreshProvidedEvents();\n\t\t\n\t\t// event sequence (and moments)\n\t\tfor ( DistributionEvent event : this.getProvidedEvents()) {\n\t\t\tevent.refreshMoment();\n\t\t}\n\t\tthis.refreshSequence();\n\t\t\n\t\t// slope\n\t\tfor ( DistributionEvent event : this.getSequenceEvents()) {\n\t\t\tif ( event instanceof SlopeAbsolute ) {\n\t\t\t\tSlopeAbsolute slope_absolute = (SlopeAbsolute)event;\n\t\t\t\tslope_absolute.refreshSlopeAbsolute();\n\t\t\t} else if ( event instanceof SlopeDelta) {\n\t\t\t\tSlopeDelta slope_delta = (SlopeDelta)event;\n\t\t\t\tslope_delta.refreshSlopeDelta();\n\t\t\t}\n\t\t\tevent.refreshSlopeBefore();\n\t\t\tevent.refreshSlopeAfter();\n\t\t}\n\t\t\n\t\t// amounts\n\t\tfor ( DistributionEvent event : this.getSequenceEvents()) {\n\t\t\tif ( event instanceof AmountAbsolute ) {\n\t\t\t\tAmountAbsolute amount_absolute = (AmountAbsolute)event;\n\t\t\t\tamount_absolute.refreshAmountAbsolute();\n\t\t\t} else if ( event instanceof AmountDelta) {\n\t\t\t\tAmountDelta amount_delta = (AmountDelta)event;\n\t\t\t\tamount_delta.refreshAmountDelta();\n\t\t\t}\n\t\t\tevent.refreshAmountBefore();\n\t\t\tevent.refreshAmountAfter();\n\t\t}\n\t}",
"public int getTotalEvents() {\n\t\treturn totalEvents;\n\t}",
"private static void getStat(){\n\t\tfor(int key : Initial_sequences.keySet()){\n\t\t\tint tmNo = Initial_sequences.get(key);\n\t\t\tif (tmNo > 13){\n\t\t\t\ttmInitLarge ++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(tmInit.containsKey(tmNo)){\n\t\t\t\t\tint temp = tmInit.get(tmNo);\n\t\t\t\t\ttemp++;\n\t\t\t\t\ttmInit.put(tmNo, temp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttmInit.put(tmNo, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Go through all the proteins in SC\n\t\tfor(int key : SC_sequences.keySet()){\n\t\t\tint tmNo = SC_sequences.get(key);\n\t\t\t\n\t\t\tint loop = Loop_lengths.get(key);\n\t\t\tint tmLen = TM_lengths.get(key);\n\t\t\t\n\t\t\tLoopTotalLen = LoopTotalLen + loop;\n\t\t\tTMTotalLen = TMTotalLen + tmLen;\n\t\t\t\n\t\t\t\n\t\t\tif (tmNo > 13){\n\t\t\t\ttmSCLarge ++;\n\t\t\t\tLoopLargeLen = LoopLargeLen + loop;\n\t\t\t\tTMLargeLen = TMLargeLen + tmLen;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(tmSC.containsKey(tmNo)){\n\t\t\t\t\tint temp = tmSC.get(tmNo);\n\t\t\t\t\ttemp++;\n\t\t\t\t\ttmSC.put(tmNo, temp);\n\t\t\t\t\t\n\t\t\t\t\tint looptemp = Loop_SC.get(tmNo);\n\t\t\t\t\tlooptemp = looptemp + loop;\n\t\t\t\t\tLoop_SC.put(tmNo, looptemp);\n\t\t\t\t\t\n\t\t\t\t\tint tmlenTemp = TM_len_SC.get(tmNo);\n\t\t\t\t\ttmlenTemp = tmlenTemp + tmLen;\n\t\t\t\t\tTM_len_SC.put(tmNo, tmlenTemp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttmSC.put(tmNo, 1);\n\t\t\t\t\t\n\t\t\t\t\tLoop_SC.put(tmNo, 1);\n\t\t\t\t\tTM_len_SC.put(tmNo, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n gameData.setDayEastCounter((long)dataSnapshot.child(\"East\").child(\"Day\").child(\"Donations\").getValue());\n gameData.setDayNorthCounter((long)dataSnapshot.child(\"North\").child(\"Day\").child(\"Donations\").getValue());\n gameData.setDaySouthCounter((long)dataSnapshot.child(\"South\").child(\"Day\").child(\"Donations\").getValue());\n gameData.setDayWestCounter((long)dataSnapshot.child(\"West\").child(\"Day\").child(\"Donations\").getValue());\n\n gameData.setNightEastCounter((long)dataSnapshot.child(\"East\").child(\"Night\").child(\"Donations\").getValue());\n gameData.setNightNorthCounter((long)dataSnapshot.child(\"North\").child(\"Night\").child(\"Donations\").getValue());\n gameData.setNightSouthCounter((long)dataSnapshot.child(\"South\").child(\"Night\").child(\"Donations\").getValue());\n gameData.setNightWestCounter((long)dataSnapshot.child(\"West\").child(\"Night\").child(\"Donations\").getValue());\n\n //read donations per all area\n gameData.setEastTotal((long)dataSnapshot.child(\"East\").child(\"Donations\").getValue());\n gameData.setNorthTotal((long)dataSnapshot.child(\"North\").child(\"Donations\").getValue());\n gameData.setSouthTotal((long)dataSnapshot.child(\"South\").child(\"Donations\").getValue());\n gameData.setWestTotal((long)dataSnapshot.child(\"West\").child(\"Donations\").getValue());\n\n Log.d(\"GAME4\", \"done importing game stats update\" );\n\n gameData.computeGameStats();\n Log.d(\"GAME4\", \"done computing stats from updated data\");\n }",
"public void PushEventStatisticsFromDB() {\n\t\tmyDBUtil.open();\n\t\tCursor mCursor = myDBUtil.queryMarkIsZero();\n\t\tmCursor.moveToFirst();\n\t\tdo {\n\t\t\tfinal EventStatisticsData eventStatisticsData = new EventStatisticsData();\n\t\t\tString[] colums = new String[]{\n\t\t\t\t\t\"behavior\", \"appId\", \"appSrc\", \"packageName\", \"client\", \"listenArea\",\n\t\t\t\t\t\"listenContextId\", \"listenContextSrc\", \"clientVersion\", \"referenceId\",\n\t\t\t\t\t\"appName\", \"appVersion\"};\n\t\t\tint index;\n\t\t\tString value;\n\t\t\tfor (int i = 0; i < colums.length; i++) {\n\t\t\t\tindex = mCursor.getColumnIndex(colums[i]);\n\t\t\t\tvalue = mCursor.getString(index);\n\t\t\t\teventStatisticsData.SetParamFromApp(i, value);\n\t\t\t}\n\t\t\tindex = mCursor.getColumnIndex(\"_id\");\n\t\t\tfinal int id = mCursor.getInt(index);\n\t\t\tGetIPFromServer(new GetIpCallback() {\n\t\t\t\t@Override\n\t\t\t\tpublic void solve(String result) {\n\t\t\t\t\tif (result != null && eventStatisticsData != null) {\n\t\t\t\t\t\tpushStatisticsEvent(eventStatisticsData, false, id);\n\t\t\t\t\t\tLog.d(TAG, \"im here don't insert to db,just update\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t} while (mCursor.moveToNext());\n\t\tmCursor.close();\n\t\tmyDBUtil.close();\n\t}",
"public void processEvents(Events events) {\n\n log.info(\"events processed: [{}]\", events.toString());\n }",
"private void iterativeDataPropertyMetrics() {\n\t}",
"Measurement getAccumulation();",
"public HashMap<String, String> getAIStatistics() {\n HashMap<String, String> stats = new HashMap<String, String>();\n HashMap<String, Long> objStats = new HashMap<String, Long>();\n Iterator<AIObject> iter = aiObjects.values().iterator();\n while (iter.hasNext()) {\n AIObject obj = iter.next();\n String className = obj.getClass().getSimpleName();\n if (objStats.containsKey(className)) {\n Long count = objStats.get(className);\n count++;\n objStats.put(className, count);\n } else {\n Long count = new Long(1);\n objStats.put(className, count);\n }\n }\n for (String k : objStats.keySet()) {\n stats.put(k, Long.toString(objStats.get(k)));\n }\n \n return stats;\n }",
"private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}",
"@Override\n public void retrieveStats() throws Exception {\n if (!this.useStats) {\n throw new IllegalStateException(\"Accessor is not using statistics in current context.\");\n }\n /*\n * We are using file-level stats therefore if file has multiple splits,\n * it's enough to return count for a first split in file.\n * In case file has multiple splits - we don't want to duplicate counts.\n */\n if (context.getFragmentIndex() == 0) {\n this.count = this.orcReader.getNumberOfRows();\n rowToEmitCount = readNextObject();\n }\n statsInitialized = true;\n }",
"public static String addToStatistics(){\n\t\tString addedStats = Start.addToStatistics();\n\t\t//add\n\t\t//e.g.: addedStats += MyReport();\n\t\treturn addedStats;\n\t}",
"private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }",
"public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}",
"public Map allRatedAndAverage() {\n begin();\n\n return finalRecs;\n }",
"private int calcTotalTime() {\n\t\tint time = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttime += taxi.calcTotalTime();\n\t\t}\n\t\treturn time;\n\t}",
"Stats<Double> stats();",
"public void printStats() {\n\n System.out.println(\"Number of Users Arrived: \" + numIn);\n System.out.println(\"Number of Users Exited: \" + numOut);\n System.out.println(\"Average Time Spent Waiting for Cab: \" + (totTimeWait / numIn));\n if (numOut != 0) {\n System.out.println(\"Average Time Spent Waiting and Travelling: \" + (totTime / numOut));\n }\n }",
"public void getAvg()\n {\n this.avg = sum/intData.length;\n }",
"private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }",
"public void doService() {\n EventManager eventManager = new EventManager();\n while (!queue.isEmpty()) {\n Event firstEvent = queue.poll();\n if (!(firstEvent instanceof ServerBackEvent) &&\n !(firstEvent instanceof ServerRestEvent)) {\n System.out.println(firstEvent);\n } \n Event nextEvent = eventManager.getNext(servers, gen, firstEvent, stats, probability);\n if (nextEvent != null) {\n queue.add(nextEvent);\n }\n }\n System.out.println(stats);\n \n\n }",
"private void collectData() {\n this.collectContest();\n this.collectProblems();\n this.collectPreCollegeParticipants();\n this.collectObservers();\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}",
"public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}",
"public RequestStatistics computeStatistics() {\n // this assumes that the current time is the exact time when the response body has been fully received\n long responseTime = System.nanoTime() - httpRequestSendTime.get();\n return new RequestStatistics(connectTime.get(), firstByteTime.get(), responseTime, bytesRead.get());\n }",
"public TradeStats calculateTradeStats(List<Instruction> instructions) {\n Map<LocalDate, BigDecimal> outgoingTradeByDay = getAmountSettledByDate(selectBuyInstructions, instructions);\n Map<LocalDate, BigDecimal> incomingTradeByDay = getAmountSettledByDate(selectSellInstructions, instructions);\n\n LinkedHashMap<BigDecimal, String> entitiesByMaxOutgoingAmount = getEntityRankingByMaxAmount(selectBuyInstructions, instructions);\n\n LinkedHashMap<BigDecimal, String> entitiesByMaxIncomingAmount = getEntityRankingByMaxAmount(selectSellInstructions, instructions);\n\n return new TradeStats(outgoingTradeByDay, incomingTradeByDay, entitiesByMaxOutgoingAmount, entitiesByMaxIncomingAmount);\n }",
"public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }",
"public DescriptiveStatistics generateStatistics() {\n\t\tdouble[] sentimentValues = new double[this.sentimentValues.size()];\n\t\t\n\t\t//Casts each value in the sentimentValues array list to a double for processing with StatUtils package.\n\t\tfor (int i = 0; i < sentimentValues.length; i++) {\n\t\t\tsentimentValues[i] = (double) this.sentimentValues.get(i);\n\t\t}\n\t\t\n\t\tthis.statistics = new DescriptiveStatistics(sentimentValues);\n\t\treturn this.statistics;\n\t}",
"public static void main(String[] args) {\n\t\tAggregateSummaryStatistics aggregate = new AggregateSummaryStatistics();\n\t\tSummaryStatistics setOneStats = aggregate.createContributingStatistics();\n\t\tSummaryStatistics setTwoStats = aggregate.createContributingStatistics();\n\n\t\t \n\t\tfor( int i = 1; i <= 10; i++) {\n\t\t\tsetOneStats.addValue(i);\n\t\t\tsetTwoStats.addValue(i);\n\t\t}\n\t\t\n\t\t// Full sample data is reported by the aggregate\n\t\tdouble totalSampleSum = aggregate.getSum();\n\t\tSystem.out.println(\"totalSampleSum=\"+totalSampleSum);\n\t\tSystem.out.println(\"Count=\"+aggregate.getN());\n\t\tSystem.out.println(\"mean=\"+aggregate.getMean());\n\t\tSystem.out.println(\"std=\"+aggregate.getStandardDeviation());\n\t\t\n\t}",
"public long calulateAverageTime()\r\n {\r\n long sum = 0;\r\n long avgTime = 0;\r\n\r\n //Get the sum of all the times \r\n for(long time : this.listOfTimes)\r\n {\r\n sum += time;\r\n }//end for \r\n\r\n //calculate the average time \r\n if(this.gamesCompleted>0)\r\n avgTime = sum / this.gamesCompleted;\r\n else\r\n avgTime = sum;\r\n\r\n return avgTime;\r\n }",
"@Override\r\n\tpublic Map<String, double[]> getHallAttendance() {\n\t\tMap<String, double[]> result = new HashMap<String, double[]>();\r\n\t\tdouble[] hall1 = new double[7];\r\n\t\tdouble[] hall2 = new double[7];\r\n\t\tdouble[] hall3 = new double[7];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tCinemaCondition cinemaCondition = cinemaConditionDao.getByDate(date);\r\n\t\tif (cinemaCondition!=null) {\r\n\t\t\thall1[0] = (double)cinemaCondition.getHall1UsedCount()/cinemaCondition.getHall1()*100;\r\n\t\t\thall2[0] = (double)cinemaCondition.getHall2UsedCount()/cinemaCondition.getHall2()*100;\r\n\t\t\thall3[0] = (double)cinemaCondition.getHall3UsedCount()/cinemaCondition.getHall3()*100;\t\t\r\n\t\t}\r\n\r\n\t\tfor(int i=0;i<6;i++){\r\n\t\t\tdate = DateUtil.getDayBefore(date);\r\n\t\t\tcinemaCondition = cinemaConditionDao.getByDate(date);\r\n\t\t\tif (cinemaCondition!=null) {\r\n\t\t\t\thall1[i+1] = (double)cinemaCondition.getHall1UsedCount()/cinemaCondition.getHall1()*100;\r\n\t\t\t\thall2[i+1] = (double)cinemaCondition.getHall2UsedCount()/cinemaCondition.getHall2()*100;\r\n\t\t\t\thall3[i+1] = (double)cinemaCondition.getHall3UsedCount()/cinemaCondition.getHall3()*100;\r\n\t\t\t}\r\n\t\t}\r\n\t\tresult.put(\"一号影厅\", hall1);\r\n\t\tresult.put(\"二号影厅\", hall2);\r\n\t\tresult.put(\"三号影厅\", hall3);\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }",
"public ArrayList<OutputTimePairs<O>> RunEventSimulation(){\n ArrayList<OutputTimePairs<O>> theoutput = new ArrayList<>();\n EventScheduler<I> schedule = new EventScheduler<>();\n TwoDTime current2Dtime = new TwoDTime(0, 0);\n \n //for each model queue internal event\n for(int i = 0; i < theEventNetwork.atomics.size(); i++){\n Event<I> e = new Event<>();\n e.model = theEventNetwork.atomics.get(i);\n e.typeOfEvent = Event.type.internal;\n e.myTime = new TwoDTime(e.model.TimeAdvance()+current2Dtime.getRealTime());\n e.timeQueued = current2Dtime;\n schedule.Add(e);\n }\n //queue event for each input\n for (int i = 0; i < theCmds.size(); i++) { \n //send input to each thing hooked up to I of network\n ArrayList<EventModelInterface> ins = theEventNetwork.getExternInputModels();\n for (int j = 0; j < ins.size(); j++) {\n Event<I> e = new Event<>();\n e.input = theCmds.get(i);\n e.model = ins.get(j);\n e.myTime = theCmdsTime.get(i);\n //System.out.println(\"queued input @ \"+e.myTime.getRealTime());\n e.typeOfEvent = Event.type.external;\n e.timeQueued = current2Dtime;\n schedule.Add(e);\n }\n \n }\n theCmds.clear();\n theCmdsTime.clear();\n theOutputs.clear();\n theOutputsTime.clear();\n System.out.println(schedule.Peek().myTime.getRealTime());\n //double e;\n while(!schedule.isEmpty() && Double.isFinite(schedule.Peek().myTime.getRealTime())){\n \n //pop event\n O o = null;\n Event even = schedule.Pop();\n System.out.println(\"-------------------------------Currently working with event\"+even.Print());\n schedule.Print();\n //switch type\n try{\n //e = even.myTime.getRealTime() - current2Dtime.getRealTime();\n switch(even.typeOfEvent){\n //ext\n case external:\n \n current2Dtime = even.myTime;\n //System.out.println(\"ext evnt @ current Time: \"+current2Dtime.getRealTime()+\" e = \"+(even.myTime.getRealTime()-even.timeQueued.getRealTime()));\n //remove internals for that model\n //get the time the old int event was queued then sub and thats e\n Event oldInternalEvent = schedule.DeleteOldInternals(even.model);\n double ee = 0;\n if(oldInternalEvent != null){\n ee = current2Dtime.getRealTime() - oldInternalEvent.timeQueued.getRealTime();\n }\n //run model ext\n even.model.StateTransitionExt(even.input,ee);\n System.out.println(\"EXT Debug: \"+even.model+\" \"+even.model.GetStatus());\n //queue new internal event\n Event<I> newEven = new Event<>();\n newEven.model = even.model;\n newEven.myTime = current2Dtime.Advance(new TwoDTime(even.model.TimeAdvance(), 0));\n //System.out.println(\"queue newEven.time = \"+newEven.myTime.getRealTime());\n newEven.typeOfEvent = Event.type.internal;\n newEven.timeQueued = current2Dtime;\n schedule.Add(newEven);\n break;\n //int\n case internal:\n current2Dtime = even.myTime;\n //System.out.println(\"int evnt @ current Time: \"+current2Dtime.getRealTime());\n //remove internals for that model(dont think i need to)\n //schedule.DeleteOldInternals(even.model);\n //produce output\n o = (O)even.model.OutPut();\n //send this output to the appropriate other models\n if(theEventNetwork.isExternOutputModel(even.model)){\n //System.out.println(\"ADDING OUTPUT ----------------------------------------------------------\");\n theOutputs.add(o);\n theOutputsTime.add(current2Dtime);\n theoutput.add(new OutputTimePairs<>(current2Dtime,o)); \n }// else {//not an external output, add ext events for others bound to\n ArrayList<EventModelInterface> boundTo = theEventNetwork.getModelsOutputBoundTo(even.model);\n for (int i = 0; i < boundTo.size(); i++) {\n Event<I> newE = new Event<>();\n newE.model = boundTo.get(i);\n newE.myTime = current2Dtime.Advance(new TwoDTime(0, 0));\n //System.out.println(\"queue newEven.time = \"+newE.myTime.getRealTime());\n newE.typeOfEvent = Event.type.external;\n newE.input = (I)o;\n newE.timeQueued = current2Dtime;\n schedule.Add(newE);\n }\n //}\n //run int\n even.model.StateTransitionInt();\n System.out.println(\"INT Debug: \"+even.model+\" \"+even.model.GetStatus());\n //queue new int\n even.myTime = current2Dtime.Advance(new TwoDTime(even.model.TimeAdvance(), 0));\n even.timeQueued = current2Dtime;\n schedule.Add(even);\n break;\n //con\n case confluent:\n current2Dtime = even.myTime;\n //System.out.println(\"con evnt @ current Time: \"+current2Dtime.getRealTime());\n //remove internals for that model(dont think i need to) \n //schedule.DeleteOldInternals(even.model);\n //produce output\n o = (O)even.model.OutPut();\n //send this output to the appropriate other models\n //external output\n if(theEventNetwork.isExternOutputModel(even.model)){ \n theOutputs.add(o);\n theOutputsTime.add(current2Dtime);\n theoutput.add(new OutputTimePairs<>(current2Dtime,o));\n }// else {//not external output\n ArrayList<EventModelInterface> boundTo2 = theEventNetwork.getModelsOutputBoundTo(even.model);\n for (int i = 0; i < boundTo2.size(); i++) {\n Event<I> newE = new Event<>();\n newE.model = boundTo2.get(i);\n newE.myTime = current2Dtime.Advance(new TwoDTime(0, 0));\n //System.out.println(\"queue newEven.time = \"+newE.myTime.getRealTime());\n newE.typeOfEvent = Event.type.external;\n newE.input = (I)o;\n newE.timeQueued = current2Dtime;\n schedule.Add(newE);\n }\n //}\n //run int\n even.model.StateTransitionCon(even.input);\n System.out.println(\"CON Debug: \"+even.model+\" \"+even.model.GetStatus());\n //queue new int\n even.typeOfEvent = Event.type.internal;\n even.myTime = current2Dtime.Advance(new TwoDTime(even.model.TimeAdvance(), 0));\n even.timeQueued = current2Dtime;\n schedule.Add(even);\n break;\n }\n }catch(CantPerformAction e){\n System.err.println(e.getMessage());\n }\n \n System.out.println(\"Done with this event\\n\");\n }\n return theoutput;\n }",
"private SimulationReport calculateDataPerNode(SimulationReport simulationReport){\n // should return list, since it's per node\n int meanRunTimePerNode;\n int totalFailedRequests = 0;\n Map<String, Map<String, Long>> nodeMeanResponseTimes = new HashMap<String, Map<String, Long>>();\n\n // This seems like it may be overly complex; it seems like we're keeping a handle to several\n // different data structures when a single map might suffice. We also probably should clean\n // up the class / method names a bit to make it more clear what the cardinality is between\n // a \"Simulation\" and a \"Node\".\n List<SimulationConfig> simulationConfig = simulationReport.getSimulationConfig();\n Map<String, NodeSimulationData> simulationData = simulationReport.getNodeSimulationData();\n\n for (Map.Entry<String, NodeSimulationData> entry : simulationData.entrySet()) {\n String groupName = entry.getKey();\n NodeSimulationData nodeSimulationData = entry.getValue();\n SimulationData groupData = nodeSimulationData.getGroupData();\n List<SimulationData> requestData = nodeSimulationData.getRequestData();\n if (requestData.size() > 0){\n for (SimulationData sd : requestData){\n logger.println(\"[PuppetGatling] - Getting mean run time for: \" + sd.getKey() + \" (\" + sd.getMeanResponseTime() + \")\");\n totalFailedRequests += sd.getFailedRequests();\n\n String cat = sd.getRequestName().trim();\n if (PIE_CHART_CATEGORIES.contains(cat)) {\n addNodeMeanResponseTime(nodeMeanResponseTimes, sd.getKey(), cat, (long) sd.getMeanResponseTime());\n }\n }\n\n logger.println(\"Here are the mean response times:\");\n for (Map.Entry<String, Map<String, Long>> node : nodeMeanResponseTimes.entrySet()) {\n logger.println(\"\\tNODE: '\" + node.getKey() + \"'\");\n for (String cat : node.getValue().keySet()) {\n logger.println(\"\\t\\t\" + cat + \": '\" + node.getValue().get(cat) + \"'\");\n }\n }\n\n\n SimulationConfig localSimConfig = getSimConfig(simulationConfig, entry.getKey());\n if (localSimConfig == null){\n // needs a better way to quit out of this\n logger.println(\"[PuppetGatling] - ERROR: There is no sim config by the name '\" + entry.getKey() + \"'\");\n throw new IllegalStateException(\"[PuppetGatling] - ERROR: There is no sim config by that name\");\n }\n else{\n meanRunTimePerNode = groupData.getMeanResponseTime();\n logger.println(\"[PuppetGatling] - Here is the mean run time per node of \" + localSimConfig.getSimulationName() + \": \" + meanRunTimePerNode);\n\n\n addNodeMeanResponseTime(nodeMeanResponseTimes, getSimConfig(simulationConfig, entry.getKey()).getSimulationName(), \"agent\", meanRunTimePerNode);\n\n // TODO: I don't know if this is exactly right. I think that\n // when we're in this loop, we, are looping over the\n // Sims, and there may be multiple nodes in a sim?\n String node = getSimConfig(simulationConfig, entry.getKey()).getSimulationName();\n Map<String, Long> times = nodeMeanResponseTimes.get(node);\n int sum = 0;\n for (String cat : PIE_CHART_CATEGORIES) {\n if (times.containsKey(cat)) {\n logger.println(\"About to look up time for node '\" + node + \"', cat: '\" + cat + \"'\");\n sum += times.get(cat);\n } else {\n logger.println(\"[PuppetGatling] - ERROR: Request \\\"\" + cat + \"\\\" does not have an associated time. The request likely failed.\");\n }\n }\n long otherTime = meanRunTimePerNode - sum;\n addNodeMeanResponseTime(nodeMeanResponseTimes, node, \"other\", otherTime);\n }\n }\n }\n\n simulationReport.setNodeMeanResponseTimes(nodeMeanResponseTimes);\n\n simulationReport.setTotalFailedRequests(totalFailedRequests);\n return simulationReport;\n }",
"public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }",
"private StatisticsEvent(Manager manager, Restaurant res) {\n\t\tsuper(TYPE.STATISTICS, res);\n\t\tthis.manager = manager;\n\t}",
"public static void runStats(java.util.List<Critter> critter1s) {\r\n\t\tint averageFear = 0;\r\n\t\tint totalNumberSpawned = 0;\r\n\t\tfor (Critter c : critter1s) {\r\n\t\t\tCritter1 critter = (Critter1) c;\r\n\t\t\taverageFear += critter.fearfullness;\r\n\t\t\ttotalNumberSpawned += critter.numberSpawned;\r\n\t\t}\r\n\t\taverageFear = averageFear/(critter1s.size());\r\n\t\tSystem.out.println(\"Total number of critter1s spawned by the living critter1s: \" + totalNumberSpawned);\r\n\t\tSystem.out.println(\"Average fearfullness of critters1s: \" + averageFear + \"%\");\r\n\t}",
"public double getTotalTime()\n\t{\n\t\tdouble elapsedTime = 0. ;\n\t\tEnumeration<SpItem> children = children() ;\n\t\tSpItem child = null ;\n\t\tboolean hasObsChild = false ;\n\n\t\twhile( children.hasMoreElements() )\n\t\t{\n\t\t\tchild = children.nextElement() ;\n\t\t\tif( child instanceof SpObs )\n\t\t\t{\n\t\t\t\thasObsChild = true ;\n\t\t\t\telapsedTime += (( SpObs )child).getElapsedTime() ;\n\t\t\t}\n\t\t\telse if( child instanceof SpMSB )\n\t\t\t{\n\t\t\t\telapsedTime += (( SpMSB )child).getTotalTime() ;\n\t\t\t}\n\t\t}\n\n\t\t// If there is an Obs child, we should add a slew time as well,\n\t\t// which is just the instrument slew time times the number of\n\t\t// targets. We don't do this if the child is an MSB since this\n\t\t// already adds a slew time\n\t\tdouble slewTime = 0. ;\n\t\tif( hasObsChild )\n\t\t{\n\t\t\tSpInstObsComp inst = SpTreeMan.findInstrument( this ) ;\n\t\t\tif( inst != null )\n\t\t\t\tslewTime = inst.getSlewTime() * size() ;\n\t\t}\n\n\t\t// Get the total number of repeats for each target\n\t\tint totRemaining = 0 ;\n\t\tfor( int i = 0 ; i < size() ; i++ )\n\t\t\ttotRemaining += getRemaining( i ) ;\n\n\t\telapsedTime *= totRemaining ;\n\t\telapsedTime += slewTime ;\n\n\t\treturn elapsedTime ;\n\t}",
"@Override\n public Double average() {\n return (sum() / (double) count());\n }"
]
| [
"0.65146035",
"0.6471603",
"0.6219734",
"0.61700976",
"0.6165612",
"0.61262417",
"0.58838785",
"0.58816177",
"0.5876166",
"0.58584666",
"0.58558965",
"0.58398086",
"0.5839254",
"0.58170164",
"0.5766224",
"0.5709724",
"0.56879294",
"0.56600976",
"0.56371814",
"0.5633978",
"0.5625907",
"0.5606046",
"0.5597272",
"0.55870986",
"0.5548509",
"0.5523625",
"0.55090916",
"0.550847",
"0.5499339",
"0.5499282",
"0.54967785",
"0.54912907",
"0.5487425",
"0.54820615",
"0.5481414",
"0.5473228",
"0.54727745",
"0.5450035",
"0.5404367",
"0.5384855",
"0.53839546",
"0.53589493",
"0.535827",
"0.5357246",
"0.5352203",
"0.5350607",
"0.5340294",
"0.53315926",
"0.5311903",
"0.53084904",
"0.5305113",
"0.527531",
"0.5274034",
"0.5272664",
"0.52677363",
"0.5261466",
"0.5259049",
"0.5256579",
"0.5251299",
"0.52425784",
"0.5237469",
"0.5235871",
"0.5230117",
"0.5226164",
"0.52251416",
"0.52235526",
"0.5220546",
"0.52150935",
"0.52144223",
"0.5212454",
"0.5210035",
"0.51953626",
"0.51905435",
"0.5179998",
"0.5177513",
"0.5174678",
"0.5171156",
"0.5167465",
"0.51646703",
"0.51535326",
"0.5145827",
"0.51364505",
"0.51355606",
"0.5127813",
"0.51274353",
"0.5126365",
"0.5101372",
"0.50980955",
"0.5097642",
"0.5097189",
"0.5096056",
"0.50926095",
"0.50902987",
"0.5083769",
"0.50810945",
"0.5068876",
"0.50657827",
"0.5064266",
"0.5060111",
"0.50518656"
]
| 0.64242446 | 2 |
print the Event list. | public void printEeventList() {
PriorityQueue<Event> events = this.getEventList();
while (!events.isEmpty()) {
Event event = events.poll();
if (!(event instanceof ServerRestEvent || event instanceof ServerBackEvent)) {
System.out.println(event);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void listEvents() {\n System.out.println(\"\\nEvents:\");\n for (Event event: world.getEvents()) {\n String name = event.getName();\n String coords = \" with x = \" + event.getX() + \" light seconds and t = \" + event.getTime() + \" seconds \";\n String frame = \"in \" + event.getFrame().getName() + \".\";\n System.out.println(name + coords + frame);\n }\n }",
"public static void printAllEventListInSortedOrder(){\n sortEvents();\n for(int i=0;i<events.size();i++){\n System.out.println((events.get(i).getMonth()+1)+\"/\"+events.get(i).getDate()+\"/\"+events.get(i).getYear()+\" \"+events.get(i).getStringStartandFinish()+\" \"+events.get(i).getEventTitle());\n }\n }",
"public void listReceivedEvents() {\r\n for (Event event : receivedEvents) {\r\n System.out.print(event);\r\n }\r\n }",
"public void displayAllEvents()\r\n {\r\n \r\n List<Event> list;\r\n \r\n list=fillArrayList();\r\n \r\n List list2=new ArrayList();\r\n list2.add(\"Id\");\r\n list2.add(\"Event name\");\r\n list2.add(\"Organizer\");\r\n list2.add(\"date\");\r\n list2.add(\"fees\");\r\n \r\n \r\n String output = \"\";\r\n output=\"Id \"+\"Event Name \"+\"Organizer \"+\"Date \"+\" Fees($)\"+\"\\n\";\r\n System.out.println();\r\n for(int i = 0; i<list.size(); i++){\r\n \r\n String everything2 = list.get(i).toString();\r\n\r\n output += everything2+\"\\n\"+\"\\n\"; \r\n }\r\n JOptionPane.showMessageDialog(null,output,\"AllEvents\",JOptionPane.INFORMATION_MESSAGE);\r\n allMenuClass.mainMenu();\r\n }",
"protected void printEvent(Event event) {\n System.out.println(\"\\t\" + event.getName());\n System.out.println(\"\\t\" + event.getDate().getDate());\n System.out.println(\"\\t\" + event.getTime().get12HTime());\n\n if (event.getDuration() != 0) {\n System.out.println(\"\\tFor \" + event.getDuration() + \" minutes\");\n }\n }",
"public static void eventList() {\n\t\tfor (Map.Entry<Calendar, TreeSet<Event>> entry : calendarToEvent.entrySet()) {\n\t\t\tTreeSet<Event> value = entry.getValue();\n\t\t\tfor (Event e: value) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\t\t}\n\t}",
"public String showAllEvents() {\n String allEvents = \"\";\n for (Event e: events)\n {\n allEvents = allEvents + e.getName() + \"\\n\";\n }\n return allEvents;\n }",
"public void print() {\n for (Entry entry : listentries) {\n System.out.println(\"These are the tasks currently on your lists:\");\n System.out.println(\"Name of Task:\" + entry.getName());\n System.out.println(\"Status:\" + entry.getStatus());\n System.out.println(\"Due Date:\" + entry.getDueDate());\n System.out.println(\"Days Left To do Tasks:\" + entry.getDaysLeft());\n }\n }",
"private void printTestList()\n {\n print(\"\");\n print(SECTION_DIVIDER);\n print(\"Press <1> to Display Main Video Output Port\");\n print(\"Press <2> to Display All Video Output Configurations\");\n print(\"Press <3> to Change Main Video Configuration with Listener\");\n print(\"Press <INFO> Display Test Options\");\n }",
"public static void printList(){\n ui.showToUser(ui.DIVIDER, \"Here are the tasks in your list:\");\n for (int i=0; i<Tasks.size(); ++i){\n Task task = Tasks.get(i);\n Integer taskNumber = i+1;\n ui.showToUser(taskNumber + \".\" + task.toString());\n }\n ui.showToUser(ui.DIVIDER);\n }",
"private static void listFormat() {\n\t\tSystem.out.println(\"List of all your movies\");\n\t\tSystem.out.println(\"=======================\");\n\t\tfor (int i = 0; i < movList.size(); i++) {\n\t\t\tSystem.out.println(movList.get(i));\n\t\t}\n\t}",
"public void print()\n {\n for (int i=0; i<list.length; i++)\n System.out.println(i + \":\\t\" + list[i]);\n }",
"void printList() {\n Entry<T> node = header;\n while(node!=null){\n System.out.print(node.element+\" \");\n node = node.next;\n }\n }",
"public void Print(ActionEvent actionEvent) {\n //System.out.println(call.title);\n TitleDisplay.setText(\"\");\n for (int i = 0; i < call.getToDoListTitle().size(); i++) {\n text = \"Item #\" + (i + 1);\n TitleDisplay.appendText(text);\n TitleDisplay.appendText(\"\\n\");\n TitleDisplay.appendText(\"Name: \");\n TitleDisplay.appendText(call.getToDoListTitle().get(i));\n TitleDisplay.appendText(\"\\nDescription: \");\n TitleDisplay.appendText(call.getToDoListDescription().get(i));\n TitleDisplay.appendText(\"\\nDue Date: \");\n TitleDisplay.appendText(call.getToDoListDueDate().get(i));\n TitleDisplay.appendText(\"\\n\\n\");\n }\n }",
"public void print()\n {\n System.out.println(name + \"\\n\");\n for(int iterator = 0; iterator < bookList.size() ; iterator++)\n {\n System.out.println((iterator+1) +\". \" + bookList.get(iterator).getTitle()+\" by \" +bookList.get(iterator).getAuthor()); \n }\n }",
"public String eventList() {\n\n\t\tString str = \"\";\n\t\tif(map.isEmpty()) {\n\t\t\tstr = \"No Events Scheduled Yet\";\n\t\t\treturn str;\n\t\t}\n\t\tstr = \"One Time Events: \\n\";\n\t\tstr = str + \"________________ \\n2020\\n\";\n\n\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet() ) {\n\n\t\t\tLocalDate currentDate = entry.getKey();\n\t\t\tArrayList<Event> list = map.get(currentDate);\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"EEEE MMMM dd\");\n\t\t\tDateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"HH:mm a\");\n\t\t\tfor(int i = 0;i<list.size();i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tif(e.recurring == false) {\n\t\t\t\t\tstr = str + \" \"+formatter.format(currentDate) +\" \" + timeFormatter.format(e.sTime) + \" - \" + timeFormatter.format(e.eTime) + \" \" + e.name + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//for recurring events, add this later\n\t\t/*\n\t\tstr = str + \"\\nRecurring Events:\\n\";\n\t\tstr = str + \"________________ \\n\";\n\t\tif(recurringEvents.size()==0) {\n\t\t\tstr = str + \"No Recurring Event Scheduled\\n\";\n\t\t\treturn str;\n\t\t}\n\t\tfor(int i = 0; i<recurringEvents.size(); i++) {\n\t\t\tEvent e = recurringEvents.get(i);\n\t\t\tstr = str + e.name +\"\\n\";\n\t\t\tstr = str + e.rdays + \" \" + e.sTime + \" \" + e.eTime + \" \" + e.recurringStartDate + \" \" + e.eDate +\"\\n\";\n\t\t}\n\t\t */\n\t\treturn str;\n\n\t}",
"public void printList()\n {\n tasks.forEach(task -> System.out.println(task.getDetails()));\n }",
"public void printEvent(ICompletionEvent event) throws FileNotFoundException {\n\n\t\ttry(FileWriter fw = new FileWriter(directory+File.separator+\"Event_RunOf_\"+timeOfRun+\".txt\", true);\n\t\t\t BufferedWriter bw = new BufferedWriter(fw);\n\t\t\t PrintWriter out = new PrintWriter(bw)){\n\t\t\t\n\t\t\tout.println(event.toString());\n\t\t\tout.println(\"===================================================================\\r\\n\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not write to Event file. Exception was:\"+e.getStackTrace()); \n\t\t}\n\t}",
"void printList();",
"public void print() {\n System.out.println(\"**List of books in the library.\");\n for (Book b : books){\n if(b != null) {\n System.out.println(b);\n }\n }\n System.out.println(\"**End of list\");\n }",
"public void print() {\r\n\t\tif(isEmpty()) {\r\n\t\t\tSystem.out.printf(\"%s is Empty%n\", name);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: %n\", name);\r\n\t\tNode<E> current = first;//node to traverse the list\r\n\t\t\r\n\t\twhile(current != null) {\r\n\t\t\tSystem.out.printf(\"%d \", current.data);\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"@Override\n public void eventList(ArrayList<EventModel> eventList) {\n for (int i = 0; i < eventList.size(); i++) {\n //Log.e(\"tag\", \"eventList.getStrName:-\" + eventList.get(i).getStrName());\n }\n\n }",
"public void eventsPublishedByPub() {\r\n int index = 1;\r\n System.out.println(\"Events published by this publisher: \");\r\n for (Event event : pubEvents) {\r\n System.out.println(index + \"->\" + event + \"\\n\");\r\n index++;\r\n }\r\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}",
"private void viewEvents() {\n ReferenceFrame frame = selectFrame(\"What frame would you like to view the events from?\");\n List<Event> transformedEvents = new ArrayList<>();\n for (Event event: world.getEvents()) {\n transformedEvents.add(event.lorentzTransform(frame));\n }\n for (Event event: transformedEvents) {\n System.out.println(event.getName() + \" occurs at t = \" + event.getTime() + \" and x = \" + event.getX());\n }\n }",
"public void printList() {\n\t\tNode tnode = head;\n\t\twhile (tnode != null) {\n\t\t\tSystem.out.print(tnode.data + \"->\");\n\t\t\ttnode = tnode.next;\n\t\t}\n\t}",
"public void printData(){\n for(int i=0; i<list.size(); i++){\n System.out.print(list.get(i) + \" \");\n }\n System.out.println();\n }",
"static void print(List list)\r\n\t{\n\t\tfor(int i= 0; i < list.size(); i++){\r\n\t\t\tSystem.out.println(list.get(i));\r\n\t\t}\r\n\t}",
"public void print(){\n\t\tfor (int i=0; i<_size; i++){\n\t\t\tSystem.out.print(_a[i].getKey()+\"; \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void printAll() {\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"################\");\r\n\t\tSystem.out.println(\"Filename:\" +getFileName());\r\n\t\tSystem.out.println(\"Creation Date:\" +getCreationDate());\r\n\t\tSystem.out.println(\"Genre:\" +getGenre());\r\n\t\tSystem.out.println(\"Month:\" +getMonth());\r\n\t\tSystem.out.println(\"Plot:\" +getPlot());\r\n\t\tSystem.out.println(\"New Folder Name:\" + getNewFolder());\r\n\t\tSystem.out.println(\"New Thumbnail File Name:\" +getNewThumbnailName());\r\n\t\tSystem.out.println(\"New File Name:\" +getNewFilename());\r\n\t\tSystem.out.println(\"Season:\" +getSeason());\r\n\t\tSystem.out.println(\"Episode:\" +getEpisode());\r\n\t\tSystem.out.println(\"Selected:\" +getSelectEdit());\r\n\t\tSystem.out.println(\"Title:\" +getTitle());\r\n\t\tSystem.out.println(\"Year:\" +getYear());\r\n\t\tSystem.out.println(\"Remarks:\" +getRemarks());\r\n\t\tSystem.out.println(\"################\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void print() {\r\n Person tmp = saf.get(0);\r\n System.out.println(\"Person name : \" + tmp.getName() +\r\n \" Entering time : \" + tmp.getTime() +\r\n \" Waiting time : \" + tmp.getExitTime());\r\n }",
"public EventPrinter() {\n this(System.out);\n }",
"public String doPrint() {\n\t\t// Get the event title.\n\t\tString event = \"\";\n\t\tswitch (eventType) {\n\t\t\tcase \"IND\": event = \"Individual\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"GRP\": event = \"Group\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"PARIND\": event = \"Parallel Individual\";\n\t\t\t\t\t\t break;\n\t\t\tcase \"PARGRP\": event = \"Parallel Group\";\n\t\t\t\t\t\t break;\n\t\t default:\tevent = \"\";\n\t\t \t\t\tbreak;\n\t\t}\n\t\t\n\t\tString out = \"RUN BIB TIME\t \" + event +\"\\n\";\n\t\t\n\t\t// Print completed runs.\n\t\tfor ( Run run : completedRuns ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print inProgress runs.\n\t\tfor ( Run run : finishQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print waiting runs.\n\t\tfor ( Run run : startQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn out;\n\t}",
"public void printList(){\n Date212Node p = first.next;\n while(p != null){\n System.out.println(p.data.toString());\n p = p.next;\n }\n }",
"public void print() {\n\tfor (int i = 0; i < mCalendarMarkings.sizeCalendarMarkingList(); i++) {\n\t CalendarMarking marking = mCalendarMarkings.getCalendarMarking(i);\n\t // get first occurrence:\n\t Calendar firstDay = Calendar.getInstance();\n\t firstDay.setTimeInMillis(marking.getStartDate());\n\t RepetitionHandler handler = sHandlerMap.get(marking.getRepeatType());\n\t firstDay = handler.getFirst(firstDay, marking);\n\t printDate(firstDay);\n\t while (firstDay != null) {\n\t\tfirstDay = handler.getNext(firstDay, marking);\n\t\tprintDate(firstDay);\n\t }\n\t}\n }",
"public void printNode(){\n\t\tSystem.out.println(\"\\nCurrent neigbor: \" + serventList.size());\n\t\tfor(int i = 0;i<serventList.size();i++){\n\t\t\tServentInfo b = serventList.get(i);\n\t\t\tSystem.out.println(\"(\" + b.IP + \":\" + b.port + \"); \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"public void printTaskList() throws EmptyListException {\n if (taskList.isEmpty()) {\n throw new EmptyListException(\"The list seems to be empty!\");\n } else {\n System.out.println(\"Here are the tasks in your list:\");\n int index = 1;\n for (Task task : taskList) {\n System.out.println(String.format(\"%d. %s\", index++, task.toString()));\n }\n }\n }",
"public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }",
"public void showInfo() {\n\t\tfor (String key : list.keySet()) {\n\t\t\tSystem.out.println(\"\\tID: \" + key + list.get(key).toString());\n\t\t}\n\t}",
"public void print() {\n\t\tfor (int count = 0; count < adjacencyList.length; count++) {\n\t\t\tLinkedList<Integer> edges = adjacencyList[count];\n\t\t\tSystem.out.println(\"Adjacency list for \" + count);\n\n\t\t\tSystem.out.print(\"head\");\n\t\t\tfor (Integer edge : edges) {\n\t\t\t\tSystem.out.print(\" -> \" + edge);\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void list() {\n // Sort by Last Name\n addressEntryList.sort(Comparator.comparing(AddressEntry::getLastName));\n\n // Iterate through AddressEntry and print out the data\n for (int i = 1; i <= addressEntryList.size(); i++) {\n System.out.print(i + \": \");\n System.out.println(addressEntryList.get(i-1).toString());\n }\n }",
"void writeEvent (Event event) throws Exception {\n this.write(\"[event]\\n\");\n this.write(\"timeline \" + event.timeline.name + \"\\n\");\n this.write(\"name \" + event.name + \"\\n\");\n this.write(\"startDate \" + event.startDate[0] + \" \" + event.startDate[1] + \" \" + event.startDate[2] + \"\\n\");\n this.write(\"endDate \" + event.endDate[0] + \" \" + event.endDate[1] + \" \" + event.endDate[2] + \"\\n\");\n this.write(\"visible \" + (event.visible ? 1 : 0) + \"\\n\");\n this.write(event.notes + \"\\n[/event]\\n\");\n this.newLine();\n this.flush();\n }",
"public void printActions(ArrayList<Action> actions){\n\t\tfor (int i = 0; i < actions.size(); i++) \n\t\t\tSystem.out.println(actions.get(i));\n\t}",
"public void printStudentList()\n {\n for(int i = 0; i < students.size(); i++)\n System.out.println( (i + 1) + \". \" + students.get(i).getName());\n }",
"public static void listToPrint() {\r\n for (int i = 0; i < ListeElem.size(); i++) {\r\n ListeElem.get(i).toPrint();\r\n }\r\n\r\n }",
"protected void listEvents(Calendar calendar) {\n List<Event> events = calendar.getEvents();\n List<String> list = new ArrayList<>();\n\n for (Event event : events) {\n list.add(event.getName());\n }\n\n listItem(list);\n }",
"public void print() {\r\n\t\tSystem.out.print(\"|\");\r\n\t\t//loop executes until all elements of the list are printed\r\n\t\tfor (int i=0;i<capacity;i++) {\r\n\t\t\tSystem.out.print(list[i]+\" |\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public void printObjectList(){\n\t\tfor (int i = 0; i < gameObjectsList.size(); i++){\n\t\t\tSystem.out.println(i + \", \" + gameObjectsList.get(i).getCategory() + \" : Type:\" + gameObjectsList.get(i).getObjecttype() + \" X:\" + gameObjectsList.get(i).getX() + \" Y:\" + gameObjectsList.get(i).getY());\n\t\t}\n\t}",
"public void printList(){\n MovieNode temp = head;\t\t//Iterator\n System.out.print(\"Data: \");\n while(temp.next != null){\t\t//While theres data\n System.out.print(temp.next.data + \"->\");\t//Print the data\n temp = temp.next;\t\t\t\t\t\t\t//Point to the next MovieNode\n }\n System.out.println();\t\t\t\t\t\t//Go to the next line\n }",
"public void show() {\r\n\t\tSystem.out.println(\"Id \\t Name \\t Address\");\r\n\t\t\r\n\t\tfor (int index = 0; index < emp.size(); index++) {\r\n\t\t\tSystem.out.println(emp.get(index).empId + \"\\t\" + emp.get(index).name +\"\\t\" + emp.get(index).adress);\r\n\t\t}\r\n\t}",
"public void printList(){\n System.out.println(\"Printing the list\");\n for(int i = 0; i<adjacentcyList.length;i++){\n System.out.println(adjacentcyList[i].value);\n }\n }",
"public void printChecklist() {\n\t\tfor(String str : checklist.keySet()) {\n\t\t\tMyUtils.Log(\"[Checklist] \"+str+\", \"+checklist.get(str));\n\t\t}\n\t}",
"public void print() {\n\t\tif (cs213.isEmpty()) {\n\t\t\tSystem.out.println(\"List is empty!\");\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tcs213.print();\n\t\t}\n\t\treturn;\n\t\t}",
"@Override\n\tpublic void printNode() {\n\t\tSystem.out.println(\"------Args_list------\");\n\t\te.printNode();\n\t\tif(a!=null)\n\t\t\ta.printNode();\n\t\t\n\t}",
"@Override\r\n\tpublic void showList() {\n\t\tSystem.out.println(\"I am a MAC list\");\r\n\t}",
"public void printDecisionPointEvents() throws Exception\r\n\t{\r\n\t\tOWLClass firstSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE = this.getOWLClass(EFBO_V_URI, \"System-1_Event\");\r\n\t\t\r\n\t\tOWLClass secondSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE2 = this.getOWLClass(EFBO_V_URI, \"System-2_Event\");\r\n\t\t\r\n\t\tOWLObjectProperty hasNextEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasNextEvent\");\r\n\t\tOWLObjectProperty hasPrevEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasPreviousEvent\");\r\n\t\tOWLObjectProperty isAltEventOf = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"isAlternateEventOf\");\r\n\t\t\r\n\t\tSet<OWLNamedIndividual> inds = efboStatusReportManager.getOWLNamedIndividuals(firstSystemDPE);\r\n\t\t\r\n\t\tString dpeName = \"\";\r\n\t\tfor (OWLNamedIndividual i: inds)\r\n\t\t{\r\n\t\t\tdpeName += efboStatusReportManager.getLabel(i) + \"; \"; \r\n\t\t}\r\n\t\t\r\n\t\tString g = \"@startuml\";\r\n\t g += \"\\ntitle\\n\" + efboStatusReportManager.getLabel(firstSystemDPE)\r\n + \"\\n\" + dpeName\r\n + \"\\nend title\\n\";\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-1_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-2_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += \"\\n@enduml\";\r\n\t\tSystem.out.println(g);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(firstSystemDPE, hasNextEvent, nextOfDPE);\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(secondSystemDPE, hasNextEvent, nextOfDPE2);\r\n\t\t\r\n\t}",
"private void displayEvent(String msg) {\n //format the event with date and time before it\n String e = sdf.format(new Date()) + \" : \" + msg;\n //add the event to the chatList array\n chatList.add(e);\n //display newly formatted event in GUI\n mg.appendEvent(e + \"\\n\");\n }",
"public void print() {\n\t\tint l = 0;\n\t\tSystem.out.println();\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tSystem.out.print(vertexList[v].id);\n\t\t\tfor (Neighbor nbr = vertexList[v].adjList; nbr != null; nbr = nbr.next) {\n\t\t\t\tSystem.out.print(\" -> \" + vertexList[nbr.vertexNumber].id + \"(\"\n\t\t\t\t\t\t+ nbr.weight + \")\");\n\t\t\t\tl++;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t\tSystem.out.println(\"Number of edges = \" + l / 2);\n\t}",
"private static void printEvents(Calendar calendar, String name,\r\n\t\t\tBoolean[] bArray) {\r\n\t\tBufferedReader in;\r\n\t\ttry {\r\n\t\t\tin = new BufferedReader(new InputStreamReader(buildURL(calendar)\r\n\t\t\t\t\t.openStream()));\r\n\r\n\t\t\tString inputLine;\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tString[] event = inputLine.split(\"\\\\|\");\r\n\t\t\t\tif (event[3].equals(name)) {\r\n\t\t\t\t\tbuildString(event, calendar, bArray);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(\"URL formed not correct!\");\r\n\t\t} catch (IOException c) {\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.println(\"Incorrect event date or, no access to http://gapi.ereality.ru/\");\r\n\t\t\tcalendar.add(Calendar.DAY_OF_YEAR, 1);\r\n\t\t}\r\n\t}",
"public void getEventByName()\r\n {\r\n \r\n boolean b=false;\r\n \r\n \r\n String output = \"\";\r\n output=\"Id \"+\"Event Name \"+\"Organizer \"+\"Date \"+\" Fees($)\"+\"\\n\"; \r\n \r\n \r\n List<Event> list2=new ArrayList();\r\n do{\r\n \r\n List<Event> list1=fillArrayList();\r\n \r\n \r\n String string=JOptionPane.showInputDialog(\"Enter Event Name to search Event by Name\");\r\n \r\n for(Event e:list1)\r\n {\r\n if(e.getName().equals(string))\r\n {\r\n list2.add(e);\r\n b=true;\r\n break;\r\n }\r\n else\r\n {\r\n \r\n b=false;\r\n }\r\n }\r\n if(!b)\r\n JOptionPane.showMessageDialog(null,\"Event \"+string+\" Does not exist! please try again\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n }while(!b);\r\n \r\n \r\n for(int i = 0; i<list2.size(); i++){\r\n \r\n String everything2 = list2.get(i).toString();\r\n\r\n output += everything2+\"\\n\"; \r\n }\r\n JOptionPane.showMessageDialog(null,output,\"Event\",JOptionPane.INFORMATION_MESSAGE);\r\n \r\n allMenuClass.userMenu();\r\n }",
"public void printList() {\n userListCtrl.showAll();\n }",
"public void printItems();",
"@Override\n public void printDetails() {\n super.printDetails(); // uses its superclass version of the method to print the basic attributes\n System.out.print(\"Time: \" + this.getTime()); // printing the time of the event\n }",
"public void iterateEventList();",
"@DISPID(7) //= 0x7. The runtime will prefer the VTID if present\r\n @VTID(14)\r\n visiotool.IVEventList eventList();",
"public void displayAsList()\n\t{\n\t\tSystem.out.println(\"Printing all vertices\");\n\t\tvertices.show();\n\t}",
"public void printList() {\n\t\t//sort alphabetically\n\t\tCollections.sort(listStr); \n\t\t//cast the array list to a linked list\n\t\tLinkedList<Object> linkedString = new LinkedList<Object>(listStr);\n \t//while there is something in the LinkedList, run following code\n \twhile (linkedString.size() > 0) {\n \t\t//print out the current first in \"queue\" word\n \t\tSystem.out.print(linkedString.get(0) + \" \");\n \t\t//remove the first item in the linked list\n \t \t\tlinkedString.removeFirst();\n \t}\n \t//print out a new blank line for better readability\n \tSystem.out.println(\"\\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 }",
"void print() {\t\r\n\t\tIterator<Elemento> e = t.iterator();\r\n\t\twhile(e.hasNext())\r\n\t\t\te.next().print();\r\n\t}",
"public void printList() {\n System.out.println(\"Disciplina \" + horario);\n System.out.println(\"Professor: \" + professor + \" sala: \" + sala);\n System.out.println(\"Lista de Estudantes:\");\n Iterator i = estudantes.iterator();\n while(i.hasNext()) {\n Estudante student = (Estudante)i.next();\n student.print();\n }\n System.out.println(\"Número de estudantes: \" + numberOfStudents());\n }",
"public static void print(Calendar date) {\n\t\t\n\t\tTask[] tasks = List.read(true)[0];\n\t\tif (tasks != null) {\n\t\t\tif (tasks.length == 0) {\n\t\t\t\t\n\t\t\t\tif (Config.isColorEnabled())\n\t\t\t\t\tSystem.out.println(Color.ANSI_BLUE + \"Nothing to do... :)\" + Color.reset());\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"Nothing to do... :)\");\n\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tif (!Config.areGroupsEnabled()) {\n\t\t\t\t\tint i = 0;\n\t\t\t\t\tint indentSpaces = (\"\" + tasks.length).length();\n\t\t\t\t\t\n\t\t\t\t\tif (Config.isColorEnabled())\n\t\t\t\t\t\tSystem.out.println(Color.titleColor() + \"******* TODO LIST *******\" + Color.reset());\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"******* TODO LIST *******\");\n\t\n\t\t\t\t\tfor (Task t: tasks) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tt.printTask(i++, date.get(Calendar.DAY_OF_YEAR), indentSpaces);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// Groups\n\t\t\t\t\t\n\t\t\t\t\tHashMap<String, ArrayList<Task>> taskMap = sortByGroups(tasks);\n\t\t\t\t\t\n\t\t\t\t\tif (!Config.isColorEnabled()) {\n\t\t\t\t\t\t//System.out.println(taskMap.size());\n\t\t\t\t\t\t// Now iterate through every group and display tasks\n\t\t\t\t\t\tint j = 0;\n\t\t\t\t\t\tfor (Map.Entry<String, ArrayList<Task>> entry: taskMap.entrySet()) {\n\t\t\t\t\t\t\t// Print out the group name\n\t\t\t\t\t\t\tSystem.out.println(j++ + \". ** \" + entry.getKey().toUpperCase() + \" **\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint i = 0;\n\t\t\t\t\t\t\tint indentSpaces = (\"\" + entry.getValue().size()).length();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(entry.getValue().size());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (Task t: entry.getValue()) {\n\t\t\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\t\t\tt.printTask(i++, date.get(Calendar.DAY_OF_YEAR), indentSpaces);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Color\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(taskMap.size());\n\t\t\t\t\t\t// Now iterate through every group and display tasks\n\t\t\t\t\t\tint j = 0;\n\t\t\t\t\t\tfor (Map.Entry<String, ArrayList<Task>> entry: taskMap.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Fetch our colors for each entry\n\t\t\t\t\t\t\tint[] dueDates = new int[entry.getValue().size()];\n\t\t\t\t\t\t\tfor (int i = 0; i < dueDates.length; i++) {\n\t\t\t\t\t\t\t\tdueDates[i] = entry.getValue().get(i).getYearDayDue();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tint[] colors = Color.relativeRankDueDates(dueDates, date);\n\t\t\t\t\t\t\t//System.out.println(Arrays.toString(colors));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Print out the group name\n\t\t\t\t\t\t\tSystem.out.println(Color.titleColor() + j++ + \". ** \" + entry.getKey().toUpperCase() + \" **\" + Color.reset());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint i = 0;\n\t\t\t\t\t\t\tint indentSpaces = (\"\" + entry.getValue().size()).length();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//System.out.println(entry.getValue().size());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (Task t: entry.getValue()) {\n\t\t\t\t\t\t\t\tSystem.out.print(Color.colorFromInt(Color.ANSI_URGENCY_GROUPED[(j-1)%5][colors[i]]) + \" \");\n\t\t\t\t\t\t\t\tt.printTask(i++, date.get(Calendar.DAY_OF_YEAR), indentSpaces);\n\t\t\t\t\t\t\t\tSystem.out.print(Color.reset());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void displayList() {\n\n\t\tIterator<SimplePacket> itr = list.iterator();\n\n\t\twhile(itr.hasNext()) {\n\t\t\tSimplePacket packet = itr.next();\n\t\t\tif(!packet.isValidCheckSum()){\n\t\t\t\tSystem.out.print(\"[\" + packet.getSeq() + \"], \");\n\t\t\t}else{\n\t\t\t\tSystem.out.print(packet.getSeq() + \", \");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public String toString() {\n DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;\n assert dtfDate instanceof DateTimeFormatter : \"date formatter has to be of type DateTimeFormatter\";\n assert dtfTime instanceof DateTimeFormatter : \"time formatter has to be of type DateTimeFormatter\";\n final String EVENT_STRING_SHOWED_TO_USER =\n \"[E]\" + super.toString() + this.stringOfTags + \" \" + \"(at: \" + this.date.format(dtfDate) +\n \" \" + this.time.format(dtfTime) + \")\";\n return EVENT_STRING_SHOWED_TO_USER;\n }",
"@Override\n public void println(String title){\n Print.oun(\"|============\" + title + \"============|\");\n println();\n Print.oun(\"|===========End of the list===========|\");\n }",
"protected void listEvents(Activity activity) {\n List<Event> events = activity.getEvents();\n List<String> list = new ArrayList<>();\n\n for (Event event : events) {\n list.add(event.getName());\n }\n\n listItem(list);\n }",
"public EventPrinter(PrintStream out) {\n mOut = out;\n }",
"public void print() {\r\n\t\tint size = list.size();\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"┌───────────────────────────┐\");\r\n\t\tSystem.out.println(\"│ \t\t\t성적 출력 \t\t │\");\r\n\t\tSystem.out.println(\"└───────────────────────────┘\");\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\r\n\t\t\tExam exam = list.get(i);\r\n\t\t\tint kor = exam.getKor();\r\n\t\t\tint eng = exam.getEng();\r\n\t\t\tint math = exam.getMath();\r\n\r\n\t\t\tint total = exam.total();// kor + eng + math;\r\n\t\t\tfloat avg = exam.avg();// total / 3.0f;\r\n\t\t\tSystem.out.printf(\"성적%d > 국어:%d, 영어:%d, 수학:%d\", i + 1, kor, eng, math);\r\n\t\t\tonPrint(exam);\r\n\t\t\tSystem.out.printf(\"총점:%d, 평균:%.4f\\n\", total, avg);\r\n\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"─────────────────────────────\");\r\n\r\n\t}",
"private static void printlist(Node node) {\n\t\twhile (node != null) {\n\t\t\tSystem.out.print(node.data + \"->\");\n\t\t\tnode = node.next;\n\t\t}\n\t}",
"public <T extends Object> void showAll(List<T> theList){\n theList.forEach(System.out::println);\n }",
"@Override\n\tpublic void printList()\n\t{\n\t\trwlock.lockRead();\n\t\tsuper.printList();\n\t\trwlock.unlockRead();\t\t\n\t}",
"public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}",
"public void printWindowElements(List<EdgeEventDepr> edgeEventDeprList) {\n String printString = \"1st Phase Window [\" + counter++ + \"]: \";\n for(EdgeEventDepr e: edgeEventDeprList) {\n printString = printString + \"; \" + e.getEdge().getOriginVertex() + \" \" + e.getEdge().getDestinVertex();\n }\n // Optionally: Print\n System.out.println(printString);\n\n }",
"public void printRoutine()\n\t{\n\t\tfor (String name: vertices.keySet())\n\t\t{\n\t\t\tString value = vertices.get(name).toString();\n\t\t\tSystem.out.println(value);\n\t\t}\n\t}",
"public void print() {\n stdout(name + \", \" + description);\n stdout(\"-----------------------------------\");\n for (MenuComponent menuComponent : components) {\n menuComponent.print();\n }\n stdout(\"\\n\");\n }",
"@Override\n public void emitEvent(DisplayEvent evt) {\n for(DisplayEventListener listener: listenerList.getListeners(DisplayEventListener.class)) {\n listener.onDisplay(evt);\n }\n }",
"public void showAppointments()\n {\n System.out.println(\"=== Day \" + dayNumber + \" ===\");\n int time = START_OF_DAY;\n for(Appointment appointment : appointments) {\n System.out.print(time + \": \");\n if(appointment != null) {\n System.out.println(appointment.getDescription());\n }\n else {\n System.out.println();\n }\n time++;\n }\n }",
"@Override\r\n\tpublic void print()\r\n\t{\t//TODO méthode à compléter (TP1-ex11)\r\n\t\tfor (IndexEntry indexEntry : data) {\r\n\t\t\tif(indexEntry ==null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(indexEntry.toString());\r\n\t\t}\r\n\t}",
"public void checkEmployeeEvents(Employee e){\r\n int choice;\r\n for (Event ev: e.eventsArray)\r\n {\r\n System.out.println((e.eventsArray.indexOf(ev)+1)+ \" \" + ev.getEventName());\r\n }\r\n if((e.eventsArray.size()==0))\r\n System.out.println(e.getName() + \" has no events\");\r\n else {\r\n System.out.println(\"Which event do you want to check? Input number!\");\r\n choice = kbd.nextInt();\r\n System.out.println(e.eventsArray.get(choice - 1).toString());\r\n }\r\n }",
"public void printDetails() {\r\n\t\tSystem.out.println(\" \");\r\n\t\tSystem.out.println(showtimeId + \" \" + movie.getTitle() + \" starts at \" + startTime.toString());\r\n\t}",
"public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }",
"public static void printTaskList(ArrayList<Task> taskList){\n if (taskList.size() != 0) {\n Task task; // declaring the temporary Task variable\n System.out.printf(\"%-11s%-5s%-22s%s\\n\", \"Completed\", \"No.\", \"Task\", \"Date\"); // printing the column headers\n for (int i = 0; i < taskList.size(); i++) { // iterating over each task in the user's task list\n task = taskList.get(i); // getting the current task in the list\n System.out.print(\" [ \"); // formatting \n if (task.getIsComplete()) { // if the task is complete\n System.out.print(\"✓\"); // marking the task as complete\n } else {\n System.out.print(\" \"); // marking the task as incomplete\n }\n System.out.print(\" ] \"); // formatting\n System.out.printf(\"%-5d\", i + 1); // printing the task number\n System.out.printf(\"%-22s\", task.getLabel()); // printing the label of the task\n System.out.printf(\"%s\", task.getDate()); // printing the date of the task\n System.out.print(\"\\n\"); // printing a newline for formatting\n }\n } else {\n System.out.println(\"You do not have any tasks. Be sure to check your task list and add a task.\"); // telling the user they do not have any tasks\n }\n System.out.print(\"\\n\"); // printing a newline for formatting\n pause(); // pauses the screen\n }",
"public void print(){\n\t\tif(isEmpty()){\n\t\t\tSystem.out.printf(\"Empty %s\\n\", name);\n\t\t\treturn;\n\t\t}//end if\n\n\t\tSystem.out.printf(\"The %s is: \", name);\n\t\tListNode current = firstNode;\n\n\t\t//while not at end of list, output current node's data\n\t\twhile(current != null){\n\t\t\tSystem.out.printf(\"%s \", current.data);\n\t\t\tcurrent = current.nextNode;\n\t\t}//end while\n\n\t\tSystem.out.println(\"\\n\");\n\t}",
"public static void print()\n {\n ProductGUI.Display(\"\\n\");\n for(Product element: productList)\n {\n ProductGUI.Display(\"\\n\");\n System.out.println(element);\n ProductGUI.Display(element.toString());\n }\n }",
"public void printName()\n\t{\n\t\tArrayList<Robot> ar=new ArrayList<Robot>();\n\t\tIterator<Robot> it;\n\t\tint i=1;//started index\n\t\t\n\t\tar.addAll(robotHM.values());//adding all\n\t\tCollections.sort(ar);//sort by names\n\t\tit=ar.iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tSystem.out.println(i+\". \"+it.next().getName());\n\t\t\ti++;\n\t\t}\n\t}",
"public void print(){\r\n\t\tint ListLength = this.promo.size();\r\n\t\tSystem.out.println(\"Type: \"+this.Type);\r\n\t\tSystem.out.println(\"Name: \"+this.name);\r\n\t\tSystem.out.println(\"Description: \"+this.description);\r\n\t\tSystem.out.printf(\"$%.2f\\n\", this.price);\r\n\t\tSystem.out.println(\"Featured dishes:\");\r\n\t\tfor (int i =0; i<ListLength; i++){\r\n\t\t\tSystem.out.print(\"\\t\"+(i+1) + \". \");\r\n\t\t\tSystem.out.println(this.promo.get(i).getName()); //print name of ala-carte item in promo array\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"void printList(){\n Node iter = this.head;\n\n while(iter != null)\n {\n System.out.print(iter.data+\"->\");\n iter = iter.next;\n }\n System.out.print(\"null\\n\");\n }",
"public void displayWithKeyword()\r\n {\r\n System.out.print(\"[Key]: \" + keyword + \"\\n[Events]: \");\r\n displayWithKeyword(head);\r\n System.out.println(\"\\n-----------------------\");\r\n }",
"public String toString() {\n String eventString = \"\";\n DateTimeFormatter ft = DateTimeFormatter.ofPattern(\"ddMMyyyy\");\n String date = this.getDue().format(ft);\n eventString += (\"e,\" + this.getName() + \",\" + this.getDetails() + \",\" +\n date + \";\");\n return eventString;\n }",
"public void printList() \r\n\t { \r\n\t Node tnode = head; \r\n\t while (tnode != null) \r\n\t { \r\n\t System.out.print(tnode.data+\" \"); \r\n\t tnode = tnode.next; \r\n\t } \r\n\t }",
"public void printMenu(List<String> list) {\n\t\t\tSystem.out.println(HEADER);\n\t\t\tfor(String s : list) {\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t\tSystem.out.println(HEADER);\n\t\t}"
]
| [
"0.79438394",
"0.75927395",
"0.75567144",
"0.74123394",
"0.7407943",
"0.7316897",
"0.70215714",
"0.6780932",
"0.6627816",
"0.65700454",
"0.6542213",
"0.65208375",
"0.6518501",
"0.64985967",
"0.64534587",
"0.6387776",
"0.6332113",
"0.6291715",
"0.6281812",
"0.6277143",
"0.6220697",
"0.62105334",
"0.6184361",
"0.6172761",
"0.61374664",
"0.61342096",
"0.61269414",
"0.6099218",
"0.6091792",
"0.6066687",
"0.60514003",
"0.6050815",
"0.6047009",
"0.604291",
"0.60349166",
"0.6030791",
"0.60305494",
"0.60244876",
"0.6005929",
"0.60048574",
"0.600091",
"0.5994901",
"0.5975603",
"0.597002",
"0.59649366",
"0.59470266",
"0.5944757",
"0.59333605",
"0.59257853",
"0.5923658",
"0.5909422",
"0.59076065",
"0.5907193",
"0.58876103",
"0.58853364",
"0.5881355",
"0.5872028",
"0.5871987",
"0.58716047",
"0.5867121",
"0.5851424",
"0.58405286",
"0.58395374",
"0.5836257",
"0.58287627",
"0.5826657",
"0.5823058",
"0.5822388",
"0.5822201",
"0.58124655",
"0.58123946",
"0.58108807",
"0.58100206",
"0.58095556",
"0.5801342",
"0.5796178",
"0.57933277",
"0.5792619",
"0.5789931",
"0.57885087",
"0.5784606",
"0.5783755",
"0.5779842",
"0.57791525",
"0.5776598",
"0.5763639",
"0.57632977",
"0.57631844",
"0.57562935",
"0.5749363",
"0.57489616",
"0.5746447",
"0.5735997",
"0.5732865",
"0.57195765",
"0.5717516",
"0.5716931",
"0.57148165",
"0.5713434",
"0.5713349"
]
| 0.8278437 | 0 |
Setup test data in the database to a known state BEFORE Each test | @Before
public void setUp() {
EntityManager em = emf.createEntityManager();
try {
em.getTransaction().begin();
//Delete all, since some future test cases might add/change data
em.createQuery("delete from Customer").executeUpdate();
//Add our test data
Customer c1 = new Customer("Kurt", "Hansen");
Customer c2 = new Customer("Hans", "Jensen");
Customer c3 = new Customer("Bjarne", "Olsen");
em.persist(c1);
em.persist(c2);
em.persist(c3);
em.getTransaction().commit();
} finally {
em.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\n public void prepare() {\n MetaStore metadb = prepareTestDB();\n testObj = new SdbSchemeRewriter(metadb.getAllDBs().get(0));\n }",
"@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}",
"public void setUp() {\n super.setUp();\n dbSessionClearCache();\n if(!compare()) {\n clear();\n populate();\n }\n dbSessionClearCache();\n }",
"@BeforeClass (alwaysRun = true)\n public void dataPreparation()\n {\n serverHealth.isServerReachable();\n serverHealth.assertServerIsOnline();\n\n // Before we start testing the live indexing we need to use the reindexing component to index the system nodes.\n Step.STEP(\"Index system nodes.\");\n AlfrescoStackInitializer.reindexEverything();\n\n Step.STEP(\"Create a test user and private site.\");\n testUser = dataUser.createRandomTestUser();\n testSite = helper.createPrivateSite(testUser);\n }",
"@Before\n\tpublic void setUp() {\n\t\tgateInfoDatabase = new GateInfoDatabase();\t\t\n\t}",
"@Before\n public void setup() {\n Helpers.fillData();\n }",
"@Before\n public void setUp() {\n //clearDbData();//having some trouble\n }",
"@Before\n public void setUp() throws Exception {\n HashMap<String, String> prop = PropertyReader.getProperties(ORACLEPROP);\n if (prop.get(\"schema\") != null && !prop.get(\"schema\").isEmpty())\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"), prop.get(\"schema\"));\n else\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"));\n\n // initialize your dataset here\n IDataSet dataSet = getDataSet();\n\n databaseTester.setDataSet(dataSet);\n // will call default setUpOperation\n databaseTester.onSetup();\n }",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tpd = new PreparedData();\r\n\r\n\t}",
"@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}",
"public void setUp() {\r\n state1 = new DateState(new State(20200818, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15)); // root\r\n test1 = state1;\r\n state2 = new DateState(new State(20200818, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state3 = new DateState(new State(20200817, \"VA\", 72, 43, 79, 12, 17, 33,\r\n \"B\", 9));\r\n state4 = new DateState(new State(20200817, \"VM\", 110, 50, 123, 11, 19,\r\n 65, \"A+\", 15));\r\n nullState = null;\r\n }",
"@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao(Event.class);\n }",
"public void setup() throws DatabaseTestException;",
"@BeforeEach\n void setUp() {\n\n\n // repopulate the table I'm testing\n com.lukebusch.test.util.Database database = com.lukebusch.test.util.Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao( User.class );\n\n }",
"public void setUp() {\n deleteTheDatabase();\n }",
"public void setUp() {\n deleteTheDatabase();\n }",
"@Before\r\n\tpublic void setup() throws Exception {\n\t\tinitializeInMemoryDatabase();\r\n\r\n\t\t// Created from org.openmrs.test.CreateInitialDataSet\r\n\t\t// without line for \"concept_synonym\" table (not exist)\r\n\t\t// using 1.4.4-createdb-from-scratch-with-demo-data.sql\r\n\t\t// Removed all empty short_name=\"\" from concepts\r\n\t\t// Added missing description to relationship_type\r\n\t\t// Removed all patients and related patient/person info (id 2-500)\r\n\t\t// Removed all concepts except those in sqldiff\r\n\t\texecuteDataSet(\"initial-openmrs-dataset.xml\");\r\n\r\n\t\t// Includes Motech data added in sqldiff\r\n\t\texecuteDataSet(\"motech-dataset.xml\");\r\n\t\t\r\n\t\t// Add example Location, Facility and Community\r\n\t\texecuteDataSet(\"facility-community-dataset.xml\");\r\n\r\n\t\tauthenticate();\r\n\r\n\t\tactivator.startup();\r\n\t}",
"@BeforeEach\n void setUp() {\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n noteDao = new GenericDao(Note.class);\n }",
"@Before\n public void initTest() {\n AccountCapsule ownerAccountFirstCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_FIRST),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_FIRST)),\n AccountType.Normal,\n 10000_000_000L);\n AccountCapsule ownerAccountSecondCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_SECOND),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_SECOND)),\n AccountType.Normal,\n 20000_000_000L);\n\n dbManager.getAccountStore()\n .put(ownerAccountFirstCapsule.getAddress().toByteArray(), ownerAccountFirstCapsule);\n dbManager.getAccountStore()\n .put(ownerAccountSecondCapsule.getAddress().toByteArray(), ownerAccountSecondCapsule);\n\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderTimestamp(1000000);\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderNumber(10);\n dbManager.getDynamicPropertiesStore().saveNextMaintenanceTime(2000000);\n }",
"@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }",
"@BeforeEach\n void setUp() {\n dao = new GenericDao(User.class);\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n }",
"@Before\n\tpublic void setup()\n\t{\n\t\tEbean.execute(Ebean.createCallableSql(dropDdl));\n\t\tEbean.execute(Ebean.createCallableSql(createDdl));\n\n\t\tpr1 = new Province();\n\t\tpr1.provinceId = 1;\n\t\tpr1.abbreviation = \"P1\";\n\t\tpr1.save();\n\n\t\tc1 = new City();\n\t\tc1.cityId = 11;\n\t\tc1.cityParentId = 1;\n\t\tc1.cityName = \"Fake1\";\n\t\tc1.province = pr1;\n\t\tc1.save();\n\n\t\tpr2 = new Province();\n\t\tpr2.provinceId = 2;\n\t\tpr2.abbreviation = \"P2\";\n\t\tpr2.save();\n\n\t\tc2 = new City();\n\t\tc2.cityId = 22;\n\t\tc2.cityParentId = 2;\n\t\tc2.cityName = \"Fake2\";\n\t\tc2.province = pr2;\n\t\tc2.save();\n\n\t\tsetupDelegate();\n\n\t}",
"@Before\n public void postSetUpPerTest(){\n\n }",
"@Before\n public void setUp() {\n\n EntityManager em = emf.createEntityManager();\n try {\n em.getTransaction().begin();\n //Delete all, since some future test cases might add/change data\n em.createQuery(\"delete from Car\").executeUpdate();\n //Add our test data\n Car e1 = new Car(\"Volvo\");\n Car e2 = new Car(\"WW\");\n em.persist(e1);\n em.persist(e2);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }",
"@Override\n public void setUp() {\n deleteTheDatabase();\n }",
"@BeforeAll\n public void prepare() {\n }",
"public void setUp() {\n deleteAllRecords();\n }",
"@Before\r\n public void setup() {\r\n dbwMock.userId = \"testUser\";\r\n dbw = new DatabaseWrapper(dbwMock);\r\n\r\n context = ApplicationProvider.getApplicationContext();\r\n\r\n book = new Book();\r\n\r\n requester = new Profile();\r\n }",
"@Before\n public void setupTests()\n {\n Service s1 = new Service();\n s1.setCategory(\"HAIR\");\n\n repository.save(s1);\n\n }",
"@BeforeClass(groups = {\"multi-master\"}, timeOut = SETUP_TIMEOUT)\n public void beforeClass() {\n\n client = this.clientBuilder().build();\n database = createDatabase(client, databaseId);\n }",
"@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSystem.out.println(\"Setting up test...\");\n\t}",
"@Before\r\n\tpublic void set_up(){\n\t}",
"@BeforeClass\n\tpublic void beforeTestClass() \n\t{\n\t\tfBase.driver = driver;\n\t\tfBase.testdataHashMap = testdataHashMap;\n\t\tfBase.eTest = eTest;\n\t}",
"@Before\r\n\tpublic void setUp() {\r\n\t\tRandom r = new Random();\r\n\t\tmyID = r.nextInt(100);\r\n\t\tmyEntryData = new Entry_Database();\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\tEntry e = new Entry(myID);\r\n\t\t\te.setCat(\"Science\");\r\n\t\t\te.setEntry(new File(\"example.txt\"));\r\n\t\t\te.setName(\"Test Name\");\r\n\t\t\te.setNotes(\"\");\r\n\t\t\te.setScore(0);\r\n\t\t\tmyEntryData.addEntry(myID, e);\r\n\t\t}\r\n\t}",
"@BeforeEach\n\tpublic void init() throws SQLException, IOException {\n\t\ttestBook = bookDaoImpl.create(SAMPLE_TITLE, null, null);\n\t\ttestBranch = branchDaoImpl.create(SAMPLE_BRANCH_NAME, SAMPLE_BRANCH_ADDRESS);\n\t\tcopiesDaoImpl.setCopies(testBranch, testBook, NUM_COPIES);\n\t}",
"@BeforeEach\n public void setup() {\n testTaskList = new TaskList();\n testUi = new Ui();\n\n Event testEvent = new Event(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"31/01/20 0800\"),\n Parser.parseDate(\"31/01/20 1200\"), \"testing\");\n Assignment testAssign = new Assignment(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"20/03/20 0000\"),\n \"testing\");\n testTaskList.addTask(testEvent);\n testTaskList.addTask(testAssign);\n }",
"@Before\n public void setUp() {\n for (int index = 0; index < testPartsIndex.length - 1; index++) {\n testPartsIndex[index] = 0;\n }\n }",
"@BeforeEach\n public void setUp() throws Exception {\n\n helper = new DatabaseConfigurationTestHelper();\n helper.setUp();\n }",
"@Before\n\tpublic void fillSomeDataIntoOurDb() {\n\t\tentityManager.persist(ago);\n\t\tentityManager.persist(teacherAgo);\n\t\tentityManager.persist(agoSubject);\n\t}",
"@BeforeEach\n\tvoid init() {\n\t\tthis.repo.deleteAll();\n\t\tthis.testLists = new TDLists(listTitle, listSubtitle);\n\t\tthis.testListsWithId = this.repo.save(this.testLists);\n\t\tthis.tdListsDTO = this.mapToDTO(testListsWithId);\n\t\tthis.id = this.testListsWithId.getId();\n\t}",
"@Before\n public void beforeTest() throws Exception\n {\n Transaction tx = null;\n try\n {\n tx = HibernateUtil.getTransaction();\n System.out.println(\"Creating TM id \" + currentTestId);\n TM3Tm<TestData> tm = manager.createMultilingualSharedTm(FACTORY, inlineAttrs(), 1);\n currentTestId = tm.getId();\n\n HibernateUtil.commit(tx);\n }\n catch (Exception e)\n {\n HibernateUtil.rollback(tx);\n throw e;\n }\n }",
"@Before\n public void setUp() throws Exception{\n sDataManager.getmNotes().clear();//before the test runs it should have an empty note\n sDataManager.initializeExampleNote();\n }",
"@Before\n public void testSetup(){\n \tjdbcTemplate.batchUpdate(new String[]{\n \t\t\t\"INSERT INTO taxon (id,uninomial,binomial,author,statusid,rankid,referenceid) VALUES\"\n \t\t\t+ \"(9470,'Verbena','×perriana','Moldenke',1,14,105),\"\n \t\t\t+ \"(9460,'Hybrid','Parent 1','Schkuhr ex Willdenow',1,14,105),\"\n \t\t\t+ \"(9466,'Hybrid','Parent 2','Marshall',1,14,105)\",\n \t\t\t\"INSERT INTO taxonomy (parentid,childid) VALUES (73,9470)\",\n \t\t\t\"INSERT INTO taxonomy (parentid,childid) VALUES (9466,1)\",\n \t\t\t\"INSERT INTO taxonhybridparent (id,childid,parentid) VALUES (729,9470,9460),(730,9470,9466)\",\n \t\t\t\"INSERT INTO taxonhabit (id,taxonid,habitid) VALUES (730,9470,1)\"});\n }",
"@BeforeTransaction\n void verifyInitialDatabaseState() throws Exception {\n this.baseDatabaseSetup.setup(this.entityManager);\n }",
"@BeforeClass\n public static void setup() {\n getDatabase(\"mandarin\");\n }",
"@Before\n public void setUp() {\n System.out.println(\"\\n@Before - Setting Up Stuffs: Pass \"\n + ++setUpCount);\n // write setup code that must be executed before each test method run\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tDatabaseProvider.setInstance(new DerbyDatabase());\n\t\tdb = DatabaseProvider.getInstance();\t\t\n\t\t\n\t}",
"@Before\n public void setUp() {\n start(fakeApplication(inMemoryDatabase(), fakeGlobal()));\n }",
"@Before\r\n\tpublic void setUp() throws SQLException {\n\t\tconn = DBManager.getInstance().getConnection();\r\n\t}",
"@Before\n\t public void setUp() {\n\t }",
"@Before public void setUp() { }",
"@Before\n public void setUp() throws Exception {\n dataSource1 = createDataSource(\"jdbc:hsqldb:mem:foodb\");\n createTableWithTestData(dataSource1);\n\n dataSource2 = createDataSource(\"jdbc:hsqldb:mem:bardb\");\n createTableWithTestData(dataSource2);\n }",
"@BeforeEach\n void setUp(){\n DatabaseTwo database = DatabaseTwo.getInstance();\n database.runSQL(\"cleanAll.sql\");\n\n genericDao = new GenericDao(CompositionInstrument.class);\n }",
"@Before\r\n\tpublic void setup() {\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceLondon, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\r\n\t\t// H2Boostrap will create and insert the schema just once\r\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceNewYork, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\t}",
"private void initStressTest() {\n\n createChannels();\n\n engine.getDatabasePlatform().getDdlBuilder().setDelimitedIdentifierModeOn(false);\n\n createStressTestControlTable();\n if (!engine.getTriggerRouterService().doesTriggerExistForTable(STRESS_TEST_CONTROL)) {\n addStressTestControlTriggers();\n }\n\n createStressTestStatusTable();\n if (!engine.getTriggerRouterService().doesTriggerExistForTable(STRESS_TEST_STATUS)) {\n addStressTestStatusTriggers();\n }\n\n engine.syncTriggers();\n\n initialized = true;\n }",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n target = new JPADigitalRunTrackStatusDAO();\r\n target.setUnitName(\"persistence_unit\");\r\n target.setSessionContext(context);\r\n }",
"@Before\n public void setup()\n {\n for (int i = 0; i < getInt(); ++i)\n {\n invoiceRepository.saveAndFlush(new Invoice(new Long(i + 1), new Date(), BigDecimal.TEN));\n }\n }",
"@Before\n public void setUp() throws SQLException {\n modelUnderTest = new Model();\n }",
"@Before\n public void seedDatabase() {\n final String seedDataScript = loadAsString(\"pacmabooks.sql\");\n\n try (Connection connection = ds.getConnection()) {\n for (String statement : splitStatements(new StringReader(\n seedDataScript), \";\")) {\n connection.prepareStatement(statement).execute();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n System.out.println(\"--------------------------------------------------- Seeding DID NOT WOKK\");\n e.printStackTrace();\n throw new RuntimeException(\"Failed seeding database\", e);\n }\n System.out.println(\"Seeding works\");\n\n }",
"protected void onSetUpInTransaction() throws Exception {\r\n\t\ttry {\r\n\r\n\t\t\tlevelOfCourtInstance.setName(\"delta\");\r\n\r\n\t\t\tTestDataFactory jurisdictionTestDataFactory = (TestDataFactory) BeanHelper\r\n\t\t\t\t\t.getBean(\"jurisdictionTestDataFactory\");\r\n\r\n\t\t\tlevelOfCourtInstance\r\n\t\t\t\t\t.setJurisdiction((com.cc.civlit.domain.courtdivisions.Jurisdiction) jurisdictionTestDataFactory\r\n\t\t\t\t\t\t\t.loadOneRecord());\r\n\r\n\t\t\tlevelOfCourtService.save(levelOfCourtInstance);\r\n\t\t} catch (PersistenceException pe) {\r\n\t\t\t//if this instance can't be created due to back references e.g an orderItem needs an Order - \r\n\t\t\t// - we will simply skip generated tests.\r\n\t\t\tif (pe.getCause() instanceof PropertyValueException\r\n\t\t\t\t\t&& pe.getMessage().contains(\"Backref\")) {\r\n\t\t\t\tbTest = false;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"@Before\n public void setUp() {\n hashTable = new HashTable();\n hashTable.put(\"Savon\", \"Yuliya\");\n hashTable.put(\"Blue\", \"lake\");\n hashTable.put(\"math\", \"camp\");\n }",
"@Before\r\n\t public void setUp(){\n\t }",
"@BeforeClass\n public static void beforeClass()\n {\n DatabaseDescriptor.daemonInitialization();\n }",
"@Before\n public void setUp() {\n InternalDataSerializer.reinitialize();\n }",
"@Before\n public void prepare() throws Exception {\n Operation operation =\n sequenceOf(InitializeOperations.DELETE_ALL);\n DbSetup dbSetup = new DbSetup(new DataSourceDestination(dataSource), operation);\n dbSetup.launch();\n }",
"private void testInitialization() {\r\n\r\n\r\n\t\tthis.myMapDB = MapDB.getInstance();\r\n\t\tthis.myClumpDB = ClumpDB.getInstance();\r\n\t}",
"protected void runBeforeTest() {}",
"private void populateDataAndVerify(ReplicatedEnvironment masterEnv) {\n createTestData();\n populateDB(masterEnv, dbName, keys);\n readDB(masterEnv, dbName, startKey, numKeys);\n logger.info(numKeys + \" records (start key: \" +\n startKey + \") have been populated into db \" +\n dbName + \" and verified\");\n }",
"@BeforeEach\n\tpublic void runBeforeTests() {\n\t\ttestArrayList = new ArrayList<>(Arrays.asList(38, 3, 33, 36, 5, 70, 24, 47, 7, 27, 15, 48, 53, 32, 93));\n\t}",
"@BeforeTest\n public void setUp() {\n UrlaubrWsUtils.migrateDatabase(TravelServiceImpl.DEFAULT_URL, TravelServiceImpl.DEFAULT_USER, TravelServiceImpl.DEFAULT_PASSWORD);\n\n service = new TravelServiceImpl();\n }",
"protected void setUp() throws Exception {\n super.setUp();\n\n TestHelper.loadConfigurations();\n TestHelper.executeDBScript(TestHelper.SCRIPT_FILL);\n\n generator = IDGeneratorFactory.getIDGenerator(\"phase_id_seq\");\n\n persistence =\n new InformixPhasePersistence(\n new DBConnectionFactoryImpl(TestHelper.CONNECTION_FACTORY_NAMESPACE), \"informix\", generator);\n persistence.setUserManualCommit(true);\n }",
"@Before\n\tpublic void setUp()\n\t{\n\t\tOptionsManager.getSingleton().setTestMode(true);\n\t\tQuestManager.resetSingleton();\n\t}",
"@Override\n public void setUp() {\n setUp(DROP_TABLES, Person.class, TblChild.class, TblGrandChild.class, TblParent.class);\n }",
"@Before\n public void setUp() throws Exception {\n Context targetContext = InstrumentationRegistry.getInstrumentation()\n .getTargetContext();\n\n db = DatabaseHelper.getInstance(targetContext);\n db.deleteAllCustomerTableRecords();\n db.deleteAllLanesCustomers();\n db.deleteAllLanesPlayers();\n ServicesUtils.resetCustomers();\n\n addCustomerTest(\"a\",\"b\",\"a\");\n addCustomerTest(\"a\",\"b\",\"b\");\n addCustomerTest(\"a\",\"b\",\"c\");\n }",
"@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleanDb.sql\");\n\n\n genericDao = new GenericDao(UserRoles.class);\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@BeforeEach\n public void setUp() throws ManagedProcessException, SQLException {\n // See https://github.com/vorburger/MariaDB4j\n DBConfigurationBuilder configBuilder = DBConfigurationBuilder.newBuilder();\n configBuilder.setPort(0); // Setting port to 0 to let configBuilder choose a free open port.\n db = DB.newEmbeddedDB(configBuilder.build());\n db.start();\n db.source(\"database.sql\");\n connection = DriverManager.getConnection(db.getConfiguration().getURL(\"test\"));\n mysqlDatabase = new MysqlDatabase(connection);\n }",
"@Override\n protected void setUp() throws Exception {\n super.setUp();\n events = new ArrayList<>();\n accounts = new ArrayList<>();\n attending = new ArrayList<>();\n\n for (int i = 0; i < NUM; i++) {\n Event e = makeRandomEvent();\n DBManager.addEvent(e);\n Event e2 = DBManager.getEventById(e.eid);\n assertTrue(e.equals(e2));\n events.add(e);\n\n Account a = makeRandomAccount();\n DBManager.addAccount(a);\n Account a2 = DBManager.getAccountById(a.getUid());\n assertTrue(a.equals(a2));\n accounts.add(a);\n }\n }",
"protected void testInit() {\n this.auths = CitiesDataType.getTestAuths();\n this.documentKey = CityField.EVENT_ID.name();\n }",
"protected void testInit() {\n this.auths = CitiesDataType.getTestAuths();\n this.documentKey = CityField.EVENT_ID.name();\n }",
"@Override\r\n public void setUp() throws Exception {\r\n super.setUp();\r\n\r\n dbOpenHelper = new DbOpenHelper(getContext());\r\n\r\n db = dbOpenHelper.getWritableDatabase();\r\n db.beginTransaction();\r\n dao = new ExtraPartsDAO(db);\r\n }",
"protected void setUp() {\n\t}",
"protected void setUp() {\r\n auditDetail = new AuditDetail();\r\n }",
"public static void initGenerateOfflineTestData(){\n dbInstance = Database.newInstance();\n initPlayer();\n initMatches();\n }",
"@Before\n public void setUp()\n {\n summary = \"\";\n allPassed = true;\n firstFailExpected = null;\n firstFailRun = null;\n captureSummary = \"\";\n captureRun = null;\n }",
"public void setUp() {\n\n\t}",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/campground\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\n\t}",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"protected void setUp() throws Exception {\n super.setUp();\n FailureTestHelper.loadConfig();\n FailureTestHelper.loadData();\n dao = new SQLServerGameDataDAO(\"com.orpheus.game.persistence.SQLServerGameDataDAO\");\n }",
"@Before\n\t\t public void setUp() throws Exception {\n\t\t\t testHelper.setUp();\n\t\t }",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/nationalpark\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\t}",
"public void setUp() throws Exception {\t\t\t\t\t\n\t\tDatabase.reset();\n\t}",
"private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}",
"@BeforeClass\n public static void setup() {\n TopQuestionsJsonStore.topQuestions.put(QUESTION_TEXT_TO_FAIL_RESOLUTION, new Question(QUESTION_TEXT_TO_FAIL_RESOLUTION, CLASS_TO_FAIL_RESOLUTION));\n TopQuestionsJsonStore.topQuestions.put(VALID_QUESTION, new Question(VALID_QUESTION, VALID_ANSWER));\n }",
"@Before\n\tpublic void setUp() throws Exception {\n//\t\tdao = new MonkeyDao();\n\t}",
"@BeforeClass\n public static void setUpBeforeClass() {\n TestNetworkClient.reset();\n context = ApplicationProvider.getApplicationContext();\n dataStorage = TestDataStorage.getInstance(context);\n ApplicationSessionManager.getInstance().startSession();\n }"
]
| [
"0.7517172",
"0.73715466",
"0.7370631",
"0.7259718",
"0.72262263",
"0.71223885",
"0.7121977",
"0.7059249",
"0.7049678",
"0.7039898",
"0.70343584",
"0.69906384",
"0.6979671",
"0.69550985",
"0.6933925",
"0.6933925",
"0.6932292",
"0.6931297",
"0.683753",
"0.6814018",
"0.6803767",
"0.6794708",
"0.6785792",
"0.67648137",
"0.6751841",
"0.67369306",
"0.673636",
"0.67333865",
"0.67265403",
"0.6723675",
"0.67123926",
"0.67046165",
"0.6687898",
"0.66855305",
"0.66841376",
"0.66692555",
"0.66661036",
"0.6655409",
"0.66274834",
"0.66232884",
"0.66104734",
"0.66104144",
"0.6606557",
"0.6604949",
"0.6603688",
"0.6598947",
"0.6590044",
"0.65873164",
"0.6584705",
"0.6572901",
"0.6561323",
"0.654231",
"0.653963",
"0.6532669",
"0.6519686",
"0.65171623",
"0.65138537",
"0.65122396",
"0.65003955",
"0.6499261",
"0.6492053",
"0.6483288",
"0.6481171",
"0.64786184",
"0.6474198",
"0.6472951",
"0.6466471",
"0.6463089",
"0.64579743",
"0.64572275",
"0.6451281",
"0.645103",
"0.64510125",
"0.64473796",
"0.6447191",
"0.64469504",
"0.64469504",
"0.64469504",
"0.64469504",
"0.64469504",
"0.6439755",
"0.642352",
"0.6421859",
"0.6421859",
"0.64209336",
"0.6416948",
"0.64105564",
"0.64092785",
"0.6384169",
"0.63812065",
"0.63790554",
"0.63740396",
"0.6366783",
"0.6364531",
"0.6363514",
"0.6360393",
"0.6357696",
"0.63556105",
"0.63545823",
"0.634602"
]
| 0.6840741 | 18 |
Test the single method in the Facade | @Test
public void testAddCustomer() {
EntityManager em = emf.createEntityManager();
try {
facade.addCustomer(new Customer("Helle", "Andersen"));
long count = em.createQuery("select c from Customer c").getResultList().size();
Assert.assertEquals(4, count);
} finally {
em.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mock(){\n\n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public TestModelFacade3(Method method) {\n super(method.toString());\n methodToTest = method;\n }",
"@Override\n public void test() {\n \n }",
"public void testMock(){\n\t}",
"@Test\n public void Tester_UI_when_find_contact_not_added() throws Exception{System.out.println(\"TODO\") ;}",
"@Test\r\n\tpublic void testGetFirst() {\n\t}",
"@Test\n void get() {\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"@Test\n public void getIndex(){\n\n }",
"@Test\n public void testGetPersonWithHobby() {\n System.out.println(\"getPersonWithHobby\");\n String hobbyName = \"Gladiator\";\n FacadePerson instance = new FacadePerson(emf);\n // List<PersonDTO> expResult = new ArrayList<>();\n List<PersonDTO> result = instance.getPersonWithHobby(hobbyName);\n assertThat(result.size(), is(2));\n }",
"@Test\r\n\tpublic void client() {\n\t}",
"@Test\n public void testGetPersonByPhone() {\n System.out.println(\"getPersonByPhone\");\n String number = \"42676936\";\n FacadePerson instance = new FacadePerson(emf);\n String expResult = \"Andreas\";\n String result = instance.getPersonByPhone(number).getFirstName();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n }",
"@Test\n public void testcancelwithrefund() //workon\n {\n\n BusinessManager businessManager = new BusinessManager();\n\n //how do i test void\n //how to i move to next thing\n //assertEquals(businessManager.cancelConfirm(\"yes\"), );\n\n }",
"@Test\r\n public void getPhoneTest()\r\n {\r\n Assert.assertEquals(stub.getPhone(), PHONE);\r\n }",
"@Test\n public void updateContact() {\n }",
"@Test\n public void testGetInstance() {\n System.out.println(\"getInstance\");\n Fabrica expResult = Fabrica.getInstance();\n Fabrica result = Fabrica.getInstance();\n assertEquals(expResult, result);\n \n }",
"@Test\n void findClientById() {\n }",
"@Test\n public void testGetSquare() {\n \n }",
"@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}",
"public void testOperation();",
"@Test\r\n void isDome() {\r\n\r\n assertTrue(dome.isDome());\r\n\r\n }",
"private void test() {\n\n\t}",
"@Test\n public void simpleUse(){\n }",
"public boolean test() throws Exception {\n throw new Exception(\"Test funcationality not yet implemented: unclear API\");\n }",
"@Test\n public void instanceTest() {\n // TODO: test instance\n }",
"public void test() {\n\t}",
"@Test\n public void testGetOneProduct() {\n }",
"@Test\n public void others(){\n Item item = itemService.getItem(50);\n System.out.println(item);\n\n }",
"@Test\n public void accuseSuccesTest() throws Exception {\n }",
"@Test\n public void testProxy() {\n Dell dell = new Dell();\n Proxy proxy = new Proxy(dell);\n proxy.salePc();\n }",
"public void testBidu(){\n\t}",
"public void testAltaVehiculo(){\r\n\t}",
"@Test\npublic void testJudge() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"judge\", String.class, String.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}",
"public void testaReclamacao() {\n\t}",
"public WSEmpresaTest(Facade facade) {\n }",
"static void testCaculator(){\n }",
"@Test\n public void solve1() {\n }",
"public void testSpock(){\n }",
"@Test\n public void request() throws Exception {\n\n\n }",
"@Test\r\n public void testIniciar() {\r\n }",
"@Test\n public void testLocateManager() {\n System.out.println(\"locateManager\");\n int x = 0;\n int y = 0; \n //instance.locateManager(x, y);\n \n }",
"@Test\n public void testGetNumberOfPersonWithHobby() {\n System.out.println(\"getNumberOfPersonWithHobby\");\n String hobbyName = \"Football\";\n FacadePerson instance = new FacadePerson(emf);\n int expResult = 2;\n int result = instance.getNumberOfPersonWithHobby(hobbyName);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n\n }",
"@Test\n public void testCreate() {\n System.out.println(\"create\");\n String expected = \"create-method worked\";\n when(cDao.create((Componente) any())).thenReturn(expected);\n String result = cDao.create((Componente) any());\n assertThat(result, is(expected));\n }",
"public void test() {\n\n }",
"@Test public void singletonResolutionInFunctions() {\n fail( \"Not yet implemented\" );\n }",
"@Test\npublic void testCalFileUFP() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calFileUFP\", int.class, int.class, int.class, EstimationFileData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}",
"public void testGetTaskActorE(){\n }",
"public void test() {\n }",
"public void test() {\n }",
"@Test\n public void testQuery(){\n }",
"public void testFindByCatalogo() {\n }",
"@Test\n public void testCarregarTrimestre() {\n }",
"@Test\n public void getStaff() {\n \n Assert.assertEquals(aService.getDoctorAge(), 23);\n Assert.assertEquals(nService.getDoctorName(), \"Karriem\");\n }",
"@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }",
"@Test\n public void testEdit() {\n System.out.println(\"edit\");\n String expected = \"edit-method worked\";\n when(cDao.edit((Componente) any())).thenReturn(expected);\n String result = cDao.edit((Componente) any());\n assertThat(result, is(expected));\n }",
"@Test\n public void testGetMagic() {\n assertEquals(hero.getMagic(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n \n }",
"@Test\r\n public void testCarregaAny() {\r\n System.out.println(\"carregaAny\");\r\n Choice choice2 = new Choice();\r\n CarregaChoice.carregaAny(choice2);\r\n \r\n \r\n }",
"@Test\n public void testCarregarUex() {\n }",
"@Test\n public void getStationUsesStationDaoToRetrieveStationByName()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_NAME);\n\n verify(mockStationDao).getStation(anyString());\n }",
"public void test(){\n }",
"@Override\n\tpublic void testVehicle() {\n\t\t\n\t}",
"@Test\n public void matchCorrect() {\n }",
"@Test\n public void testTakeBet(){\n }",
"@Test\n public void whatsappFeeTest() {\n // TODO: test whatsappFee\n }",
"@Test\n public void testCSesionInicioxNick() throws Exception {\n System.out.println(\"testCSesionInicioxNick\");\n CSesion instance = new CSesion();\n DataUsuario dU = instance.inicioSesion(\"Tim1\", \"tim123\");\n }",
"@Test\n\tpublic void testReadTicketOk() {\n\t}",
"@Test\n public void getStationPassesStationNameToStationDao()\n {\n StationDao mockStationDao = mock(StationDao.class);\n LundergroundFacade facade = new LundergroundFacade();\n facade.setStationDao(mockStationDao);\n\n facade.getStation(SOME_NAME);\n\n verify(mockStationDao).getStation(eq(SOME_NAME));\n }",
"public static void testShowTodoView(){\n }",
"public void testCheckOxyEmpty() {\n }",
"@Test\n public void testCSesionVerInfoUsuario() throws Exception {\n System.out.println(\"testCSesionVerInfoUsuario\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"[email protected]\", \"tim123\");\n DataUsuario dU = instance.verInfoPerfil();\n }",
"@Test\n public void testTankFire() {\n assertNotNull(tank.fire());\n }",
"@Test\n public void shouldMakeCoffeeWhenShotsAreAvailable(){\n given(supplyService.isCoffeeShotAvailable(EXPRESSO)).willReturn(true);\n //When coffee is order\n Boolean orderStatus=kitchenService.makeCoffee(EXPRESSO);\n //Then Kitchen should make coffee\n assertThat(orderStatus, is(true));\n verify(supplyService,times(1)).isCoffeeShotAvailable(EXPRESSO);\n\n }",
"@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }",
"@Test\n\tpublic void method1SC() {\n\t\tSystem.out.println(FaultyClass.method1(3));\n\t\tassertEquals(1, FaultyClass.method1(3));\n\t}",
"@Test\n public void testGetName() {\n String result = service.getName();\n assertEquals(\"Servis\", result);\n \n }",
"@Test\n public void DrugInteractionsShouldSendDrugInteractionsRequest() throws IOException {\n Response mockResponse = mock(Response.class);\n //mock of the underlying classes not visible from source code\n Call mockCall = mock(Call.class);\n ResponseBody mockResponseBody = mock(ResponseBody.class);\n //set behaviours\n when(mockClient.newCall(any(Request.class))).thenReturn(mockCall);\n when(mockCall.execute()).thenReturn(mockResponse);\n when(mockResponse.body()).thenReturn(mockResponseBody);\n when(mockResponseBody.string()).thenReturn(\"test body\");\n String result = requester.getDrugInteractions(\"Panadol\", \"Tramadol\");\n\n verify(mockCall, times(1)).execute();\n assert (result.equals(\"test body\"));\n }",
"@Test\n public void getStuff() {\n \n Assert.assertEquals(wService.work(), \"Parker\");\n Assert.assertEquals(aService.age(), 25);\n }",
"public void test();",
"public void test();",
"public abstract void test();",
"public abstract void test();",
"@Test\n void questionAnswered() {\n }",
"public void testDummy() {\n }",
"@Test\r\n\tpublic void test() {\r\n\t}",
"@Test\r\n public void testGetterMethodSucess() throws Exception {\r\n Method m = GetterMethod.getGetter(Tumor.class, \"tumorId\");\r\n assertNotNull(m);\r\n assertEquals(\"getTumorId\", m.getName());\r\n }",
"public void testDummy()\n {\n }",
"@Test\r\n public void testRent() {\r\n }",
"public void callit();",
"@Test\n public void fightShredderTest() {\n }",
"@Test\r\n public void testGetMiservicio() {\r\n System.out.println(\"getMiservicio\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n Servicio expResult = null;\r\n Servicio result = instance.getMiservicio();\r\n assertEquals(expResult, result);\r\n }",
"@Test\n public void downGoods()\n {\n }",
"@Test\n public void testIsFalling() {\n // Setup\n\n // Run the test\n modelUnderTest.isFalling();\n\n // Verify the results\n }",
"@Test\n public void testImprimeFactura() throws Exception {\n \n }",
"@Test\n public void testGetHealth() {\n \n assertEquals(hero.getHealth(), 100);\n System.out.println(testName.getMethodName() + \" PASSED.\");\n }",
"@Test\n public void testGetPointId() {\n System.out.println(\"getPointId\");\n Manager instance = new Manager();\n int expResult = 0;\n int result = instance.getPointId();\n assertEquals(expResult, result);\n \n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testCheckPositive() {\n Helper.checkPositive(1, \"obj\", \"method\", LogManager.getLog());\n }",
"@Test\n public void testGet() {\n System.out.println(\"get\");\n int id = 0;\n Address result = instance.get(id);\n assertTrue(result.validate());\n \n }",
"@Test\r\n public void testGetApiBase() {\r\n // Not required\r\n }",
"@Test\n public void proximaSequencia(){\n\n }",
"@Test\n void getGreeting() {\n System.out.println(controller.getGreeting());\n }"
]
| [
"0.6688192",
"0.6406599",
"0.63386667",
"0.6277481",
"0.6260267",
"0.6225677",
"0.613941",
"0.6122496",
"0.6110153",
"0.61061656",
"0.6091481",
"0.6070066",
"0.6065698",
"0.60591716",
"0.6045501",
"0.60384256",
"0.6032527",
"0.60197294",
"0.60165346",
"0.6006904",
"0.5999706",
"0.599807",
"0.598725",
"0.5977326",
"0.59548175",
"0.594405",
"0.5912262",
"0.58950454",
"0.588208",
"0.5874723",
"0.5874558",
"0.58592045",
"0.5856994",
"0.5854883",
"0.5851829",
"0.5849116",
"0.58475345",
"0.5844534",
"0.58337116",
"0.5833222",
"0.58309263",
"0.5828619",
"0.5826962",
"0.5824946",
"0.58234274",
"0.5821975",
"0.5815601",
"0.5815326",
"0.5805371",
"0.5805371",
"0.5800725",
"0.57988065",
"0.57966095",
"0.579659",
"0.57922345",
"0.5788915",
"0.5775642",
"0.5770195",
"0.5763737",
"0.57610494",
"0.5758991",
"0.57530415",
"0.5748319",
"0.5740609",
"0.5740408",
"0.5740131",
"0.5735436",
"0.57323927",
"0.5730815",
"0.5730442",
"0.57210314",
"0.5717937",
"0.5712555",
"0.5711794",
"0.57091427",
"0.5708297",
"0.57074904",
"0.5705487",
"0.57012856",
"0.57012856",
"0.5699132",
"0.5699132",
"0.5697338",
"0.56903255",
"0.5688848",
"0.56877315",
"0.5686022",
"0.56823",
"0.5678538",
"0.56780607",
"0.56759304",
"0.56758595",
"0.56686485",
"0.5665552",
"0.5665125",
"0.5664521",
"0.56616586",
"0.5661439",
"0.56569064",
"0.5656441",
"0.56538016"
]
| 0.0 | -1 |
public boolean sent = false; | public BinaryPulseNeuralFunction() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSent(){\t\n\t\treturn sent;\n\t}",
"boolean isSending();",
"public boolean SendingMessage() {\n \t\t\treturn false;\n \t\t}",
"public void setMsg(boolean status){\r\n\t\tthis.send = status;\r\n\t}",
"boolean isTransmitting();",
"boolean isReceiving();",
"public Boolean getSendType() {\n return sendType;\n }",
"@Basic( optional = true )\r\n\t@Column( name = \"is_sent\" )\r\n\tpublic Integer getIsSent() {\r\n\t\treturn this.isSent;\r\n\t\t\r\n\t}",
"public void setIsSent(final Integer isSent) {\r\n\t\tthis.isSent = isSent;\r\n\t}",
"public void send() {\n\t}",
"@Override\n\tpublic void receive(boolean value) {\n\t\t\n\t}",
"boolean hasReceived();",
"void messageSent();",
"public boolean is_set_msg() {\n return this.msg != null;\n }",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"public void cambieSentido() {\n\t\tsentidoLR=(!sentidoLR);\n\t}",
"public void send(boolean bool) {\r\n\t\tif (s != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdos.writeByte(LiteServer.BOOL_CONST);\r\n\t\t\t\tdos.writeBoolean(bool);\r\n\t\t\t\tif (autoFlush) {\r\n\t\t\t\t\tdos.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// if the socket is null\r\n\t\t}\r\n\r\n\t}",
"public boolean getIsMessage()\n {\n return isMessage;\n }",
"public synchronized int getNumSent(){\n return numSent;\n }",
"public int getNumberSent()\r\n {\r\n return this.numberSent;\r\n }",
"public boolean canTransmitMessages()\n {\n return true;\n }",
"@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"this is send\");\n\t}",
"public Boolean getInplay(){\n return inplay;\n }",
"public void setTalking(boolean b)\n\t{\n\t\tm_isTalking = b;\n\t}",
"private Globals() {\n\t\treadyToSend=false;\n\t}",
"void send();",
"public boolean isIsReadyToTransmit() {\n return isReadyToTransmit;\n }",
"public boolean isReceived() {\n\t\treturn _received;\n\t}",
"public void setWon(){\n won = true;\n }",
"boolean hasSendReading();",
"boolean hasUnReceived();",
"public boolean isReceived() {\n\t\treturn isReceived;\n\t}",
"public void sendBool(boolean b) {\n try {\n dOut.writeBoolean(b);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send boolean\");\n e.printStackTrace();\n }\n }",
"public boolean isSetSender() {\n return this.sender != null;\n }",
"boolean hasSendid();",
"public boolean isAccept(){\n return isAccept; \n }",
"boolean isConfirmed(){\n\t\treturn confirmed;\n\t}",
"boolean getAck();",
"private boolean isCloseSent() {\n return outputPeer.isCloseSent();\n }",
"public boolean hasSendReading() {\n return sendReading_ != null;\n }",
"public Boolean getYourTurn() {\n return yourTurn;\n }",
"public void setPing(boolean ping)\n {\n _isPing = ping;\n }",
"public void setSendingReferrersAsNotSent() {\n }",
"@Override\n public boolean messagePending() {\n return commReceiver.messagePending();\n }",
"public boolean sendReadMessage() {\n return sendReadMessage;\n }",
"public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }",
"public abstract boolean isDelivered();",
"public boolean getIsTrack(){\n return isTrack;\n }",
"public static boolean isEnterHomeSent() {\n return mSent;\n }",
"Observable<Boolean> messageBodySenderCardViewIsGone();",
"public boolean isTalking()\n\t{\n\t\treturn m_isTalking;\n\t}",
"public boolean getHIPPAWaiver(){return this.HIPPAWaiver;}",
"public boolean isResponse(){\n return true;\n }",
"Observable<Boolean> messageBodyRecipientCardViewIsGone();",
"public void clearReceived() {\n\t\t_received = false;\n\t}",
"public void setOnReceiveCalled() {\n this.f49 = true;\n }",
"public boolean isRequest(){\n return false;\n }",
"public boolean getShared(){\n return this.shared;\n }",
"public void setSendType(Boolean sendType) {\n this.sendType = sendType;\n }",
"public void setNoSentinels(boolean noSentinels)\r\n {\r\n this.noSentinels = noSentinels;\r\n }",
"public void setCOMStatus (boolean bbCanSend)\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\t_bbCanSend=bbCanSend;\r\n\t\t}\r\n\t}",
"public boolean isSetAutoForwardTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTRIGGEREDSEND$16) != 0;\n }\n }",
"public void setSender(boolean besender) {\n if (this.sender != besender) {\n SSRCCache sSRCCache;\n if (besender) {\n sSRCCache = this.cache;\n sSRCCache.sendercount++;\n setAlive(true);\n } else {\n sSRCCache = this.cache;\n sSRCCache.sendercount--;\n }\n this.sender = besender;\n }\n }",
"boolean isServerMessage();",
"boolean hasSendPlayerId();",
"public boolean isBot(){\n return false;\n }",
"private boolean noMessage() {\n\t\treturn nbmsg==0;\n\t}",
"public boolean hasSendMessage() {\n return typeCase_ == 4;\n }",
"public interface Sendable {\n\n}",
"public void stopSending ();",
"public void setRequested(){\n this.status = \"Requested\";\n }",
"public boolean hasSendMessage() {\n return typeCase_ == 4;\n }",
"public static boolean isTempReceived() {\n return tempReceived;\n }",
"boolean getAccepted();",
"private void setBidded(){\n this.status = \"Bidded\";\n }",
"boolean hasSendMessage();",
"public void setClaim(boolean a){\n isClaimed= a;\n \n}",
"public boolean ack() {\n return ack;\n }",
"public Boolean getComplete(){\n return complete;\n }",
"void sendMessage() {\n\n\t}",
"public boolean getIsFlow() {\r\n return !isFlow.get();\r\n }",
"public boolean isSetStateMsg() {\n return this.stateMsg != null;\n }",
"public boolean getSave(){\n return this.didSave;\n }",
"boolean hasSendTime();",
"public boolean hasSendReading() {\n return sendReadingBuilder_ != null || sendReading_ != null;\n }",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"@Override\n public boolean sendMessage(ChatMessage chatMessage){\n return true;\n }",
"public boolean send(boolean value, int timeout) {\n Boolean msg = new Boolean(value);\n\n try {\n synchronized (senderMonitor) {\n\n q.put(msg);\n if (timeout == -1) {\n senderMonitor.wait();\n } else {\n senderMonitor.wait(timeout);\n }\n }\n } catch (InterruptedException ex) {\n Logger.getLogger(Channel.class.getName()).log(Level.SEVERE, null, ex);\n } \n //prin vgei apo tin sunarthsh paei na afairesei to stoixeio gia na dei an egine h paralavh.\n // An to pire o paraliptis tote h remove() 8a paraksei NoSuchElementException\n finally {\n try {\n q.remove();\n //An den paragei NoSuchElementException shmainei oti den to pire o paraliptis(tautoxrona afairei kai to stoixeio)\n return false;\n } catch (NoSuchElementException ex) {\n //Den exei stoixeio h q, ara to pire o paraliptis\n return true;\n }\n }\n\n }",
"public boolean getAllowMessageDel() {\n return allowMessageDel;\n }"
]
| [
"0.83585304",
"0.76660967",
"0.73361397",
"0.73071563",
"0.70941305",
"0.70334345",
"0.68588704",
"0.6745314",
"0.6703877",
"0.662636",
"0.65876174",
"0.6568882",
"0.6550837",
"0.6513661",
"0.64644843",
"0.64644843",
"0.64644843",
"0.64644843",
"0.64644843",
"0.64644843",
"0.64484006",
"0.6443549",
"0.6425374",
"0.6424639",
"0.6316401",
"0.6296258",
"0.62707794",
"0.6260727",
"0.62605655",
"0.6252294",
"0.6233389",
"0.62333256",
"0.62180066",
"0.62156737",
"0.62141454",
"0.6211837",
"0.62001467",
"0.6194413",
"0.61848366",
"0.61598015",
"0.6149608",
"0.61387193",
"0.6119074",
"0.6116673",
"0.60578394",
"0.6038285",
"0.6032488",
"0.60299695",
"0.5989444",
"0.59680575",
"0.5967215",
"0.5952653",
"0.59522825",
"0.59476674",
"0.5945618",
"0.5944677",
"0.5936725",
"0.59340894",
"0.592797",
"0.59243923",
"0.59217715",
"0.5908889",
"0.5906298",
"0.5903635",
"0.5899964",
"0.5887802",
"0.5881431",
"0.5879764",
"0.58761704",
"0.58716094",
"0.5868453",
"0.5859552",
"0.5857909",
"0.58539647",
"0.58514285",
"0.5848116",
"0.5847653",
"0.5836258",
"0.5834398",
"0.58325136",
"0.5831592",
"0.5828742",
"0.5827801",
"0.58202213",
"0.581714",
"0.58106965",
"0.58014315",
"0.5800868",
"0.5799487",
"0.57958907",
"0.57895947",
"0.57895947",
"0.57895947",
"0.57895947",
"0.57895947",
"0.57895947",
"0.57895947",
"0.57895947",
"0.57855886",
"0.57834554",
"0.57788783"
]
| 0.0 | -1 |
Blank constructor for bean use. | public KeyedEntry() { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Bean() {\n\t}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public SampleBean() {\n }",
"public PersonBean() {\n\t}",
"public CampingBean() {\n }",
"public PapelBean() {\n }",
"public ClasseBean() {\r\n }",
"public ClasseBean() {\r\n }",
"public userBean() {\r\n }",
"public DataBean() {\r\n \r\n }",
"public JobBean() {\n }",
"public UserBean() {\n }",
"public UserBean() {\n }",
"public TestDataBean() {\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic InventoryServiceBean() {\n }",
"public BookingBean() {\n }",
"public ProductosBean() {\r\n }",
"public ItemmatlBean() {\n }",
"public ParticipantBean() {\n }",
"public AdmissionsBean() {\n }",
"private BeanUtils() {\n\t\t\n\t}",
"defaultConstructor(){}",
"public Component() {\n }",
"public PeopleBean() {\n\n }",
"RoomstlogBean()\n {\n }",
"public ClienteBean() {\n }",
"public DonusturucuBean() {\n }",
"public CrudBean() {\n }",
"public ISeeYouBean() {\n }",
"public ClasificacionBean() {\r\n }",
"public DebtorsAgingBean() {\n }",
"public CartBean() {\n }",
"public ChatBean() {\r\n }",
"public OfferBean() {\n\n }",
"public Constructor(){\n\t\t\n\t}",
"public CarAccessBean () {\n super();\n }",
"public FuncionarioBean() {\n }",
"public CalificacionBean() {\n }",
"public Position()\n\t{\n\t\t// do not remove bean constructor.\n\t}",
"public EntityPropertyBean() {}",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"public JavaBeans() {\r\n\t\tsuper();\r\n\t}",
"public DatasetSearchBean() {\n }",
"public SgaexpedbultoImpl()\n {\n }",
"public ProductSearchCriteriaBean() {\n }",
"public Property()\r\n {\r\n }",
"public addressBean() {\n }",
"public RhSubsidioBean ()\n {\n }",
"private Instantiation(){}",
"public Person()\n {\n //intentionally left empty\n }",
"public Member() {\r\n\t}",
"public Pojo1110110(){\r\n\t}",
"@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}",
"public Book() {\n\t\t// Default constructor\n\t}",
"public Member() {}",
"public ReviewBean() {\n\n }",
"void DefaultConstructor(){}",
"Constructor() {\r\n\t\t \r\n\t }",
"public Member() {\n //Empty constructor!\n }",
"public Bean_article() {\n }",
"Customer() \n\t{\n\t}",
"public Customer() {\n\t}",
"public Customer() {\n\t}",
"public RegistroBean() {\r\n }",
"public Basic() {}",
"@SuppressWarnings(\"unused\")\n private Booking() {\n }",
"public Person() {\n\t\t\n\t}",
"public Property() {}",
"public Model() {\n\t}",
"public Model() {\n\t}",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public MySqlModelBean() {\r\n \r\n }",
"private AggregatorBeanAssistant() { }",
"public IndexBeans() {\r\n }",
"public Customer() { }",
"public DirectionBean() {\n \n }",
"public Customer(){}",
"public PSRelation()\n {\n }",
"private ObjectRepository() {\n\t}",
"Customer() {\n }",
"public Student()\r\n {\r\n //This is intended to be empty\r\n }",
"public Service(){\n\t\t\n\t}",
"public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}",
"private Model(){}",
"private Service() {}",
"public MySpacesListVOImpl() {\r\n }",
"public PizzaCutter()\r\n {\r\n //intentionally left blank\r\n }",
"protected Product()\n\t{\n\t}",
"public Person() {}",
"public Product() {\n\t}",
"private SingleObject()\r\n {\r\n }",
"public ProfiledApplicationBean() {}",
"public CyanSus() {\n\n }",
"public Produto() {}",
"public Book() {}",
"public User() {\r\n\r\n\t}",
"public Pasien() {\r\n }",
"public FacturaBean() {\n }",
"public User() {\r\n\t}",
"public Instance() {\n }",
"protected Spring() {}"
]
| [
"0.79397076",
"0.7754841",
"0.76610464",
"0.76541406",
"0.7641091",
"0.76382774",
"0.7441441",
"0.7441441",
"0.7436374",
"0.7430423",
"0.7426385",
"0.7318565",
"0.7318565",
"0.7270592",
"0.72395474",
"0.72173965",
"0.71891177",
"0.7171146",
"0.7162276",
"0.7161804",
"0.71493083",
"0.7136357",
"0.71270585",
"0.71248597",
"0.7107146",
"0.708788",
"0.70822597",
"0.7069745",
"0.70635694",
"0.7048009",
"0.7039748",
"0.7022954",
"0.6975032",
"0.69556916",
"0.69525015",
"0.69414204",
"0.69406205",
"0.69362915",
"0.6909294",
"0.6907638",
"0.6906915",
"0.6904187",
"0.6898565",
"0.6895505",
"0.68912846",
"0.688738",
"0.6870538",
"0.6867872",
"0.6854655",
"0.68530726",
"0.684324",
"0.68398637",
"0.68388045",
"0.6838314",
"0.68168205",
"0.68008226",
"0.6793322",
"0.6784487",
"0.67837733",
"0.675487",
"0.6745013",
"0.6730208",
"0.6730208",
"0.67292696",
"0.67215323",
"0.6720808",
"0.67121685",
"0.6708248",
"0.6704695",
"0.6704695",
"0.66983265",
"0.668587",
"0.66833097",
"0.66827196",
"0.6679245",
"0.6678713",
"0.66786593",
"0.66778004",
"0.6671474",
"0.66648674",
"0.6659933",
"0.6658578",
"0.6651266",
"0.6642168",
"0.6641498",
"0.66410255",
"0.6639264",
"0.6635336",
"0.66349775",
"0.6634923",
"0.6632057",
"0.6631228",
"0.6626539",
"0.6618414",
"0.66174364",
"0.6613536",
"0.6612069",
"0.66073745",
"0.6605143",
"0.66042894",
"0.6594488"
]
| 0.0 | -1 |
Construct a new entry with the given label key. | public KeyedEntry(String label)
{
this.label = label;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setLabel(String key, String value) {\n data.add(key);\n data.add(value);\n return this;\n }",
"public LabelField addLabelField(final String key) {\n String label = key;\n LabelField labelField = new LabelField(getComposite(), _form, key, label, false);\n labelField.adapt(_formToolkit);\n _form.mapField(key, labelField);\n return labelField;\n }",
"public City(Integer aKey, String aLabel)\r\n {\r\n label = aLabel;\r\n key = aKey;\r\n }",
"public Builder putLabels(java.lang.String key, java.lang.String value) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n if (value == null) {\n throw new NullPointerException(\"map value\");\n }\n internalGetMutableLabels().getMutableMap().put(key, value);\n bitField0_ |= 0x00000040;\n return this;\n }",
"public KeyedEntry() { }",
"public Builder putLabels(java.lang.String key, java.lang.String value) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n if (value == null) {\n throw new NullPointerException(\"map value\");\n }\n internalGetMutableLabels().getMutableMap().put(key, value);\n bitField0_ |= 0x00000080;\n return this;\n }",
"private LegendEntry createLegendEntry(int colourId, String label) {\r\n LegendEntry legendEntry = new LegendEntry();\r\n legendEntry.formColor = getResources().getColor(colourId);\r\n legendEntry.label = label;\r\n return legendEntry;\r\n\r\n }",
"protected void addLabel(String key, Label value) {\n\t\tlabels.put(key, value);\n\t}",
"public CreateQueueRequest addTagsEntry(String key, String value) {\n if (null == this.tags) {\n this.tags = new java.util.HashMap<String, String>();\n }\n if (this.tags.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.tags.put(key, value);\n return this;\n }",
"public City(Integer aKey)\r\n {\r\n label = \" \";\r\n key = aKey;\r\n }",
"public Entry(String n)\n {\n name = n;\n }",
"public Entry(K key, V value)\r\n\t\t{\r\n\t\t\tthis.key = key;\r\n\t\t\tthis.value = value;\r\n\t\t}",
"public void setClassLabel(String key, String label);",
"public Entry(K key, V value) {\r\n this.key = key;\r\n this.value = value;\r\n }",
"public Entry(K key, V value) {\r\n this.key = key;\r\n this.value = value;\r\n }",
"public Entry(K key, V value) {\n this.key = key;\n this.value = value;\n }",
"public Entry(K key, V value) {\n this.key = key;\n this.value = value;\n }",
"public Canary addTagsEntry(String key, String value) {\n if (null == this.tags) {\n this.tags = new java.util.HashMap<String, String>();\n }\n if (this.tags.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.tags.put(key, value);\n return this;\n }",
"void createNode(NodeKey key);",
"@Override HashMapEntry<K, V> constructorNewEntry(\n K key, V value, int hash, HashMapEntry<K, V> next) {\n LinkedEntry<K, V> header = this.header;\n LinkedEntry<K, V> oldTail = header.prv;\n LinkedEntry<K, V> newTail\n = new LinkedEntry<K,V>(key, value, hash, next, header, oldTail);\n return oldTail.nxt = header.prv = newTail;\n }",
"TarEntry CreateEntry(String name);",
"public Dataset addTagsEntry(String key, String value) {\n if (null == this.tags) {\n this.tags = new java.util.HashMap<String, String>();\n }\n if (this.tags.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.tags.put(key, value);\n return this;\n }",
"public HashEntry(Object k, int v){\n\t\tkey = k;\n\t\tvalue = v;\n\t}",
"protected Label newLabel(String id, IModel<String> model) {\n\t\tLabel label = new Label(id, model);\n\t\treturn label;\n\t}",
"public DataEntry create(long dataEntryId);",
"public MapEntry(K k, V v)\r\n\t\t{\r\n\t\t\tkey = k;\r\n\t\t\tval = v;\r\n\t\t}",
"public UIBuilder getNewInstance(Map<String, Object> entries);",
"public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);",
"public TableEntry(K key, V value) {\r\n\t\t\tObjects.requireNonNull(key);\r\n\r\n\t\t\tthis.key = key;\r\n\t\t\tthis.value = value;\r\n\t\t}",
"public TreeItem(String label ) {\r\n\t\tthis( label, null );\r\n\t}",
"void createLabelToken( String name, int id );",
"public PaletteEntry(String label, String shortDescription) {\n this(label, shortDescription, null, null, null);\n }",
"public CreatePricingRuleRequest addTagsEntry(String key, String value) {\n if (null == this.tags) {\n this.tags = new java.util.HashMap<String, String>();\n }\n if (this.tags.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.tags.put(key, value);\n return this;\n }",
"public DatabaseEntry(K key, V value) {\n\t\tthis.key = key;\n\t\tthis.value = value;\n\t}",
"public final TLabel addLabel(final String text, final int x, final int y,\n final String colorKey) {\n\n return new TLabel(this, text, x, y, colorKey);\n }",
"void addEntry(K key, V value);",
"public void setSampleLabelKey(String key);",
"protected SafeHashMap.Entry<K, V> instantiateEntry()\n {\n return new Entry<>();\n }",
"public Object create(String key_letters) throws XtumlException;",
"@Override\r\n\t\t\tpublic IHierarchicalKey caseEStringToStringMapEntry(\r\n\t\t\t\t\tEntry<String, String> object) {\r\n\t\t\t\treturn new NamedElementKey(object);\r\n\t\t\t}",
"public Builder key(String key) {\n this.key = key;\n return this;\n }",
"public Label() {\n\t\tthis(\"L\");\n\t}",
"protected SafeHashMap.Entry instantiateEntry()\n {\n return new Entry();\n }",
"public final TarEntry CreateEntry(byte[] headerBuffer)\n\t\t{\n\t\t\treturn new TarEntry(headerBuffer);\n\t\t}",
"public cacheEntry(int key, String value){\n int key;\n String value;\n cacheEntry(int key){\n this.key = key;\n this.value = value;\n }\n}",
"@SuppressWarnings(\"unchecked\")\r\n public LeafNode(Key key, Value value) {\r\n keys = (Key[])new Comparable[3]; \r\n values = (Value[])new Object[3];\r\n setKeyValuePairs(key,value);\r\n }",
"public HashEntry( AnyType e )\n {\n \tkey = e;\n }",
"public NodeKey createNodeKeyWithIdentifier( String identifier );",
"com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();",
"void addLabel(Object newLabel);",
"void addLabel(Object newLabel);",
"private MenuItem makeMenuItem (String label, String command) {\n MenuItem mi = new MenuItem (label);\n mi.setActionCommand (command);\n mi.addActionListener (commandHandler);\n return mi;\n }",
"private HashGroupifyEntry createEntry(final int row, final int index, final int hash, final int line) {\n final HashGroupifyEntry entry = new HashGroupifyEntry(this.dataOutput, row, hash);\n entry.next = hashTableBuckets[index];\n entry.representative = line;\n hashTableBuckets[index] = entry;\n if (hashTableFirstEntry == null) {\n hashTableFirstEntry = entry;\n hashTableLastEntry = entry;\n } else {\n hashTableLastEntry.nextOrdered = entry;\n hashTableLastEntry = entry;\n }\n return entry;\n }",
"public AssetCreationToolEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)\n {\n super(label, shortDesc, template, factory, iconSmall, iconLarge);\n }",
"public HeaderEntry(String key, String value)\n\t{\n\t\tif(key == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"The Key can't be null\");\n\t\t}\n\n\t\tthis.key = key;\n\t\tthis.value = value;\n\t}",
"private PSKeyword createKeyword(String index)\n {\n PSKeyword keyword = new PSKeyword(\"label_\" + index, \n \"description_\" + index, index);\n keyword.setGUID(new PSGuid(PSTypeEnum.KEYWORD_DEF, 1001));\n List<PSKeywordChoice> choices = new ArrayList<PSKeywordChoice>();\n for (int i=0; i<3; i++)\n {\n PSKeywordChoice choice = new PSKeywordChoice();\n choice.setLabel(\"choice_\" + index + \".\" + i);\n choice.setDescription(\"description_\" + index + \".\" + i);\n choice.setValue(\"1.\" + i);\n choice.setSequence(i);\n \n choices.add(choice);\n }\n keyword.setChoices(choices);\n \n return keyword;\n }",
"protected Entry(){}",
"static <K extends Comparable<? super K>, V> KeyValue<K, V> make(K key, V value) {\n return new Tuple<>(key, value);\n }",
"protected abstract T createNewEntry(PersistentEntity persistentEntity);",
"public void addEntry(String key, ChoiceEntry entry){\n _entries.put(key, entry);\n }",
"void add(String key);",
"private TimeseriesDescriptor keyToDescriptor(String key) {\n if(key.startsWith(CUSTOM_METRIC_PREFIX)) {\n key = key.substring(CUSTOM_METRIC_PREFIX.length());\n }\n\n String[] path = key.split(\"\\\\.\");\n\n StringBuilder metricName = new StringBuilder(CUSTOM_METRIC_PREFIX);\n Map<String, String> labels = new HashMap<>();\n\n for(String component : path) {\n if(component.indexOf('=') != -1) {\n String[] keyValue = component.split(\"=\");\n String labelKey = keyValue[0];\n String labelValue = keyValue[1];\n \n if(!labelKey.startsWith(CUSTOM_METRIC_PREFIX)) {\n labelKey = CUSTOM_METRIC_PREFIX + \"/\" + labelKey;\n }\n \n labels.put(labelKey, labelValue);\n } else {\n if(metricName.length() > 0 && !component.startsWith(\"/\")) {\n metricName.append(\"/\");\n }\n metricName.append(component);\n }\n }\n\n TimeseriesDescriptor descriptor = new TimeseriesDescriptor();\n descriptor.setMetric(metricName.toString());\n descriptor.setLabels(labels);\n return descriptor;\n }",
"@Override\n\tpublic com.idetronic.eis.model.KpiEntry createKpiEntry(long kpiEntryId) {\n\t\treturn _kpiEntryLocalService.createKpiEntry(kpiEntryId);\n\t}",
"public NodeKey createNodeKey( String sourceName,\n String identifier );",
"public Proposal addTagsEntry(String key, String value) {\n if (null == this.tags) {\n this.tags = new java.util.HashMap<String, String>();\n }\n if (this.tags.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.tags.put(key, value);\n return this;\n }",
"public static Value makeSymbol(ObjectLabel v) {\n if (v == null)\n throw new NullPointerException();\n if (v.getKind() != Kind.SYMBOL)\n throw new AnalysisException(\"Creating symbol value with a non-symbol\");\n return Value.makeObject(v);\n }",
"public Node( String id, String label )\r\n {\r\n initialize(id);\r\n if ( label == null ) lbl = id;\r\n else lbl = label;\r\n }",
"TreeMap_Entry(Object key, Object value, TreeMap_Entry parent/*F=this.F*/) {\n this.key = key;\n this.value = value;\n this.parent = parent;\n }",
"private JLabel _createNewLabel(String sCaption_) \n{\n Util.panicIf( sCaption_ == null );\n\n JLabel lblNew = new JLabel(sCaption_);\n lblNew.setFont( _pFont );\n \n return lblNew;\n }",
"@NonNull\n public BasketItemBuilder withLabel(String label) {\n this.label = label;\n return this;\n }",
"public static PSKey createKey(String fieldName, int searchId)\n {\n PSKey key = null;\n String[] keys = new String[]{KEY_COL_FIELDNAME, KEY_COL_SEARCHID};\n String[] values = new String[]{fieldName, String.valueOf(searchId)};\n\n if (null == fieldName || fieldName.trim().length() == 0)\n key = new PSKey(keys);\n else\n key = new PSKey(keys, values, true);\n\n return key;\n }",
"public Builder addClusteringKeyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureClusteringKeyIsMutable();\n clusteringKey_.add(value);\n onChanged();\n return this;\n }",
"private String makeLabel(String label)\n {\n \treturn label + \"$\" + Integer.toString(labelCount++);\n }",
"public abstract Code addLabel(String label);",
"public static Value makeObject(ObjectLabel v) {\n if (v == null)\n throw new NullPointerException();\n Value r = new Value();\n r.object_labels = newSet();\n r.object_labels.add(v);\n return canonicalize(r);\n }",
"void registerCompositeLabel(/*NotNull*/Object key1, /*???*/ Object key2, /*NotNull*/ Collection<SNode> outputNode, /*NotNull*/ String mappingLabel);",
"private Label initLabel(DraftKit_PropertyType labelProperty, String styleClass) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String labelText = props.getProperty(labelProperty);\n Label label = new Label(labelText);\n label.getStyleClass().add(styleClass);\n return label;\n }",
"void addTransientEntry(K key, V value);",
"public static Label createInputLabel(String lblValue) {\n\t\tLabel lbl = new Label(lblValue);\n\t\tlbl.setFont(Font.font(\"Arial\", FontWeight.SEMI_BOLD, 20));\n\t\treturn lbl;\n\t}",
"public ArangoDBVertex(String key, String label, ArangoDBGraph graph) {\n\t\tsuper(key, label, graph);\n\t}",
"public Label(String name, Integer value)\n {\n this.name = name;\n this.value = value;\n this.size = null; // Size is nonsensical for addresses\n this.type = Type.VALUE;\n }",
"Nda<V> withLabels( Map<Object, List<Object>> labels );",
"public NodeKey createNodeKey();",
"public Builder removeLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n internalGetMutableLabels().getMutableMap().remove(key);\n return this;\n }",
"public Builder removeLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n internalGetMutableLabels().getMutableMap().remove(key);\n return this;\n }",
"String addLabel(String label);",
"public DBRecordKey<gDBR> createKey() // <? extends DBRecord<?>>\n throws DBException\n {\n if (this.keyClass != null) {\n try {\n // this creates an empty key with no key fields\n Constructor<? extends DBRecordKey<gDBR>> kc = this.keyClass.getConstructor(new Class<?>[0]);\n return kc.newInstance(new Object[0]); // \"unchecked cast\"\n } catch (Throwable t) { // NoSuchMethodException, ...\n // Implementation error (should never occur)\n throw new DBException(\"Key Creation\", t);\n }\n }\n return null;\n }",
"public Tag(String key, String value) {\n setKey(key);\n setValue(value);\n }",
"public PaletteEntry(String label, String shortDescription, Object type) {\n this(label, shortDescription, null, null, type);\n }",
"public BaseElement(final Object id, final String label, ElasticGraph graph, Object[] keyValues) {\n this.graph = graph;\n this.id = id != null ? id.toString() : new com.eaio.uuid.UUID().toString();\n this.label = label;\n if(keyValues != null) ElementHelper.legalPropertyKeyValueArray(keyValues);\n\n if (keyValues != null) {\n if(keyValues.length % 2 == 1) throw Element.Exceptions.providedKeyValuesMustBeAMultipleOfTwo();\n for (int i = 0; i < keyValues.length; i = i + 2) {\n String key = keyValues[i].toString();\n Object value = keyValues[i + 1];\n\n addPropertyLocal(key, value);\n }\n }\n\n }",
"public static ProductTypeChangeLabelActionBuilder of(final ProductTypeChangeLabelAction template) {\n ProductTypeChangeLabelActionBuilder builder = new ProductTypeChangeLabelActionBuilder();\n builder.attributeName = template.getAttributeName();\n builder.label = template.getLabel();\n return builder;\n }",
"public ImmutableMapEntry(final K key, final V value) {\r\n this.value = value;\r\n this.key = key;\r\n }",
"public DiscoveryItem(String key) {\n this(key, null, 0, 0, null);\n }",
"PK create(T newInstance);",
"public Entry() {\n }",
"public String getClassLabel(String key);",
"public Entry create(int compoID,\n\t\t\tint entryID,\n\t\t\tString entryName,\n\t\t\tString entryDesc,\n\t\t\tString entryAuthor) throws CreateException, RemoteException;",
"public Entry()\n {\n this(null, null, true);\n }",
"public Builder addClusteringKey(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureClusteringKeyIsMutable();\n clusteringKey_.add(value);\n onChanged();\n return this;\n }",
"private static Double mklabel(Double label) {\n\t\tDouble _label;\n\t\tif (label == 0) {\n\t\t\t_label = -1.0;\n\t\t} else {\n\t\t\t_label = 1.0;\n\t\t}\n\t\treturn _label;\n\t}"
]
| [
"0.652529",
"0.63683665",
"0.60298",
"0.59356534",
"0.589914",
"0.58956224",
"0.581517",
"0.5700036",
"0.56895703",
"0.56756246",
"0.56729597",
"0.5638037",
"0.5629376",
"0.5627536",
"0.5627536",
"0.5623933",
"0.5623933",
"0.5566751",
"0.55590284",
"0.55337435",
"0.5530675",
"0.55105454",
"0.5472339",
"0.5471723",
"0.54714423",
"0.5457486",
"0.5443045",
"0.5437944",
"0.5415541",
"0.54070127",
"0.535942",
"0.5354582",
"0.5347004",
"0.52963907",
"0.5277374",
"0.5221888",
"0.52178496",
"0.5198803",
"0.51957667",
"0.51823276",
"0.5177468",
"0.5173957",
"0.5167548",
"0.5161662",
"0.515295",
"0.5147034",
"0.5133145",
"0.51285726",
"0.50951093",
"0.50918305",
"0.50918305",
"0.50845915",
"0.5083573",
"0.50695884",
"0.50639296",
"0.5063832",
"0.50625855",
"0.50600296",
"0.5057998",
"0.50361973",
"0.50329405",
"0.5026889",
"0.5025591",
"0.50254226",
"0.5013649",
"0.50133127",
"0.49943754",
"0.49888912",
"0.4983674",
"0.49832547",
"0.49798658",
"0.49773872",
"0.49676225",
"0.49660844",
"0.49582216",
"0.49430698",
"0.4941578",
"0.4939298",
"0.49381545",
"0.49349785",
"0.49303377",
"0.4930226",
"0.4926183",
"0.4910164",
"0.4910164",
"0.4899916",
"0.48944467",
"0.4890021",
"0.48899657",
"0.48732728",
"0.4871654",
"0.48698065",
"0.4869005",
"0.48604223",
"0.4855737",
"0.484779",
"0.48356515",
"0.48340866",
"0.48250517",
"0.48234153"
]
| 0.7284244 | 0 |
Add an argument for substitution into the message string indicated by the label. | public void addArg(Object arg)
{
if (args == null)
{
args = new ArrayList();
}
args.add(arg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String addLabel(String label);",
"public abstract Code addLabel(String label);",
"public abstract void addLabel(String str);",
"void addLabel(Object newLabel);",
"void addLabel(Object newLabel);",
"@Override\n\t\tpublic void addLabel(Label label) {\n\n\t\t}",
"void setLabel(String label);",
"@Override\n public void setLabel(String arg0)\n {\n \n }",
"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 void setLabel(final String label) {\n this.label = label;\n }",
"void\t\tsetCommandLabel(String command, String label);",
"public void setLabel(final String label) {\n this.label = label;\n }",
"public final void setLabel(final String label) {\r\n this.label = label;\r\n }",
"public void addCaseToLabel(CaseUUID aCaseUUID, LabelUUID aLabelUUID);",
"public void setLabel(String label) {\n this.label = label;\n }",
"public void setLabel(final String _label)\n {\n this.label = _label;\n }",
"public void setLabel(String label) {\r\n this.label = label;\r\n }",
"void setlabel (String label){\r\n\t\tthis.label = label;\r\n\t}",
"com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();",
"public void setLabel(String label)\n\t{\n\t\tthis.label = label;\n\t}",
"protected void setLabel(final String label) {\n\t\tmyLabel = label;\n\t}",
"@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}",
"public void setLabel( String label ) {\r\n lbl = label;\r\n }",
"@Override\n\tpublic void setLabelText(String label) {\n\t}",
"public void setLabel(Object v) \n {\n this.label = v;\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}",
"void setLabel(com.microsoft.schemas.xrm._2011.contracts.Label label);",
"protected void addLabel(AeIconLabel aLabel) {\r\n }",
"public void setLabel(String label) {\n\t\tthis.label = label;\n\t}",
"public void pushEvent(String label, Object[] varargs) {\n\t\t\thost.pushEvent(label, varargs);\n\t\t}",
"public ProductTypeChangeLabelActionBuilder label(final com.commercetools.api.models.common.LocalizedString label) {\n this.label = label;\n return this;\n }",
"void setLabel(Label label);",
"public void setLabel(String label) {\n\t\t_label = label;\n\t}",
"public void setRestrictionLabel( String label ) {\n if ( label != null ) {\n Flow.Restriction restriction = label.equals( NO_RESTRICTION )\n ? null\n : Flow.Restriction.valueOfLabel( label, isSend() );\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"restriction\", restriction ) );\n }\n }",
"@Override\r\n public void visitLabel(final Label arg0) {\r\n lab = arg0;\r\n }",
"@objid (\"d4b0c4e2-e321-4f78-a1e9-4d16f89911bc\")\n public void setPatternParameterLabel(String value) {\n this.elt.putTagValue(PatternParameter.MdaTypes.PATTERNPARAMETER_LABEL_TAGTYPE_ELT, value);\n }",
"public void addLabel(Label label) {\n\t\tgetCodeItem().addLabel(label);\n\t}",
"public void setParamValue(String label, Object value);",
"String updateLabel(String oldLabel, String newLabel);",
"public void processAddLabel() {\n AppTextEnterDialogSingleton dialog = AppTextEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Label\", \"Enter text of the label to add:\");\n \n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LABEL_MODE);\n }",
"public void recMsgPassed(String msgLabel, String sender) {\n\t\t\n\t}",
"public void setIntentLabel( String label ) {\n if ( label != null ) {\n Flow.Intent intent = label.equals( NO_INTENT ) ? null : Flow.Intent.valueOfLabel( label );\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"intent\", intent ) );\n }\n }",
"public void setLabel( String label )\n { \n this.label = label;\n show_text();\n }",
"public LabeledText(String label) {\n\t\tthis(new RegexMatcher(label + \"\\\\**\"));\n\t}",
"private String getLabel(String label, String text) {\n\t\tStringBuffer buffer = new StringBuffer(label);\n\t\tif (text != null && !\"\".equals(text)) {\n\t\t\tif (!\"Choose One\".equals(text)) {\n\t\t\t\tbuffer.append(\": '\" + text + \"'\");\n\t\t\t}\n\t\t}\n\n\t\treturn buffer.toString();\n\t}",
"public void setLabel(String label) {\n addNewLabel().setText(label);\n }",
"public void setLabelText(String text);",
"ILinkDeleterActionBuilder<SOURCE_BEAN_TYPE, LINKED_BEAN_TYPE> setLinkedEntityLabelPlural(String label);",
"public final void setLabel2(@Nullable CharSequence label) {\n mLabel2 = label;\n }",
"private String makeLabel(String label)\n {\n \treturn label + \"$\" + Integer.toString(labelCount++);\n }",
"public void setLabel(String label) {\n this.label = label == null ? null : label.trim();\n }",
"public void showParticipantLabel(String label) {\n setContentView(R.layout.fragment_participant_code);\n\n TextView tv1 = (TextView) findViewById(R.id.participant_code);\n tv1.setText(getResources().getString(R.string.participant_code, label));\n }",
"@Override\n\tpublic void setComponentLabel(String label) {\n\t\t\n\t}",
"public void setLabel(double label) {\n\t\tthis.label = label;\n\t}",
"public AddInstruction(String label, String op) {\n\t\tsuper(label, op);\n\t}",
"public final void setLabel1(@Nullable CharSequence label) {\n mLabel1 = label;\n }",
"public static String translateVersionLabel(String label) {\r\n\t\tif(label == null) {\r\n\t\t\treturn NodeConstants.DEFAULT_VERSION_LABEL;\r\n\t\t}\r\n\t\treturn label;\r\n\t}",
"public void setGraphLabel(String label) {\n label = DotGraphUtility.replaceQuotes(label);\n label = DotGraphUtility.replaceReturns(label);\n this.setGraphAttribute(\"label\", \"\\\"\" + label + \"\\\"\");\n }",
"public Field label(String label);",
"public void setLabel(int label) {\n\t\tthis.label = label;\n\t}",
"private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}",
"@Override\n\tpublic void addArg(FormulaElement arg){\n\t}",
"public LocationMessageRequest label(final String label) {\n getMessage().setLabel(label);\n return this;\n }",
"@Override\n public void init(ArrayList<String> args) {\n label = args.get(0);\n }",
"public void dynamicQuantityLabelSetUp(ListView<Ingredient> lv, Label label){\n lv.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Ingredient>() {\n //use the changeListener to determine when a new ingredient has been selected\n @Override\n public void changed(ObservableValue<? extends Ingredient> observableValue, Ingredient ingredient, Ingredient t1) {\n if (t1 != null){\n //if the new ingredient selected is not null then\n //get the Quantity name from the selected ingredient in the listView\n Ingredient selectedIngredient = lv.getSelectionModel().getSelectedItem();\n String quantityName = selectedIngredient.getQuantityName();\n label.setText(quantityName);\n }\n }\n });\n }",
"@Nonnull\n LabelResponse addLabel(@Nonnull final Label label, @Nonnull final Telegraf telegraf);",
"public void addArgument(String arg) {\n\t\tthis.arguments.add(arg);\n\t}",
"public void add(PVector v, String label) {\n\t\tpoints.add(new GPoint(v, label));\n\t}",
"public static void setLabel(Label labelName) {\n emitf(\"%s:\\n\", labelName.toString());\n }",
"public PieBoundLabel(String label) {\n this(label, null, null);\n }",
"private void attachLabel(Vertex v, String string) throws IOException\n {\n if (string == null || string.length() == 0)\n return;\n String label = string.trim();\n// String label = trimQuotes(string).trim();\n// if (label.length() == 0)\n// return;\n if (unique_labels)\n {\n try\n {\n StringLabeller sl = StringLabeller.getLabeller((Graph)v.getGraph(), LABEL);\n sl.setLabel(v, label);\n }\n catch (StringLabeller.UniqueLabelException slule)\n {\n throw new FatalException(\"Non-unique label found: \" + slule);\n }\n }\n else\n {\n v.addUserDatum(LABEL, label, UserData.SHARED);\n }\n }",
"public final native void setLabel(String label) /*-{\r\n\t\tthis.label = label;\r\n\t}-*/;",
"public static void attachConceptLabel(ConceptLabel lbl,ReportDocument document) {\n\t\tif(provideFeedback){\n\t\t\ttry{\n\t\t\t\t//document.attachInProgress = true;\n\t\t\t\t//document.replaceText(lbl.getOffset(),lbl.getLength(),lbl.getText(),lbl.getAttributeSet());\n\t\t\t\tdocument.setCharacterAttributes(lbl.getOffset(),lbl.getLength(),lbl.getAttributeSet(),true);\n\t\t\t\tlbl.setPosition(document.createPosition(lbl.getOffset()));\n\t\t\t\t//document.attachInProgress = false;\n\t\t\t}catch(BadLocationException ex){\n\t\t\t\tex.printStackTrace();\t\n\t\t\t}\n\t\t}\n\t}",
"public void setLabel(final String label) {\n _section.setText(label);\n }",
"protected String getChangeParameterLabel() {\n return \"Add Parameter...\";\n }",
"public void addLanguage(String value) {\n/* 230 */ addStringToBag(\"language\", value);\n/* */ }",
"public void setParamValue(String label, int value);",
"public void setLabel(Object value) {\n this.setValue(LABEL_PROPERTY_KEY, value);\n }",
"@Override\n\tpublic void updateParameter(String parameterLabel, double newValue) {\n\t\tif (parameterLabel.equals(PROBCATCH_PARAMETER_LABEL_GUI)) {\n\t\t\tprobCatch = newValue;\n\t\t}\n\n\t}",
"public void setLabel(final String labelValue) {\n this.label = labelValue;\n }",
"public void setLabel(final String labelValue) {\n this.label = labelValue;\n }",
"@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(T2 eLabel) {\r\n\t\tthis.label = eLabel;\r\n\t\tcheckRep();\r\n\t}",
"private LiteralAnnotationTerm appendLiteralArgument(Node bme, Tree.Term literal) {\n if (spread) {\n bme.addError(\"Spread static arguments not supported\");\n }\n LiteralAnnotationTerm argument = new LiteralAnnotationTerm();\n argument.setTerm(literal);\n this.term = argument;\n return argument;\n }",
"private String getSubstitute(String label) {\n\n\t\tassert !compendium_.getIsInvivo();\n\t\tint index = grn_.getIndexOfNode(label);\n\t\t\n\t\t// If the gene is not part of the compendium or is not a TF, randomly choose a TF \n\t\tString substitute = label;\n\t\t\n\t\tif ((index == -1) || !grn_.getGene(index).getIsTf()) {\n\t\t\tLinkedHashMap<String, String> substitutionLookup = ((CompendiumInsilico) compendium_).getSubstitutions();\n\t\t\tsubstitute = substitutionLookup.get(label);\n\t\t\t\n\t\t\tif (substitute == null) {\n\t\t\t\tindex = grn_.getRandomTf();\n\t\t\t\tsubstitute = grn_.getGene(index).getLabel();\n\t\t\t\tsubstitutionLookup.put(label, substitute);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn substitute;\n\t}",
"public void setQueryLabel(String labelIdentifier)\n {\n\tthis.label = labelIdentifier;\n }",
"public AddWordAction(JTextComponent jText, String word, String label) {\r\n super(label);\r\n this.word = word;\r\n this.jText = jText;\r\n }",
"public void setLabel(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Label label) {\r\n this.label = label;\r\n }",
"public void setInstruction(String ins)\n\t{\n\t\tgetJLabel().setText(ins);\n\t}",
"public void addField (String label, String field, String nada) {\n labels.add (label);\n if (! field.equals (nada)) {\n addLine (label + LABEL_SUFFIX + field);\n // System.out.println (\"TextBlock.addField field follows:\");\n // StringUtils.println (System.out, field);\n }\n }",
"public void arg(String arg, float value) {\n mArgs.put(arg, String.valueOf(value));\n }",
"private void SetPictureLabel(String label) {\r\n fileInfoLabel.setText(label);\r\n }",
"@UITopiaVariant(affiliation = \"RWTH Aachen\", author = \"Kefang\", email = \"***@gmail.com\", uiLabel = UITopiaVariant.USEVARIANT)\n\t@PluginVariant(variantLabel = \"Assign Label to Specific Variant\", requiredParameterLabels = { 0 })\n\tpublic XLog assignSpecificLabel(UIPluginContext context, XLog log) {\n\t\t// get variants with summary\n\t\tXFactory factory = XFactoryRegistry.instance().currentDefault();\n\t\tXLog label_log = (XLog) log.clone();\n\t\tXLogInfo info = XLogInfoFactory.createLogInfo(label_log);\n\n\t\tlabel_log.getGlobalTraceAttributes().add(factory.createAttributeBoolean(Configuration.POS_LABEL, false, null));\n\t\tlabel_log.getGlobalTraceAttributes().add(factory.createAttributeBoolean(Configuration.FIT_LABEL, false, null));\n\t\t// so here we just set one interactive parameter setting window\n\t\t// after the process, we get labeled_log ??? No, here are the variants changed\n\t\t// but it refers to data in log, so change variant changed the log\n\t\t// VariantControlStep c_step = new VariantControlStep(label_log);\n\n\t\tList<TraceVariant> variants = EventLogUtilities.getTraceVariants(label_log);\n\t\tVariantWholeView view = new VariantWholeView(variants, info);\n\t\tInteractionResult result = context.showWizard(\"Setting Variant\", true, true, view);\n\t\tif (result != InteractionResult.FINISHED) {\n\t\t\treturn null;\n\t\t}\n\t\treturn label_log;\n\t\t// ListWizard<XLog> wizard = new ListWizard<XLog>(c_step);\n\t\t// it doesn't retun value, just the change on variants, then actually, I could get it here.\n\t\t// return ProMWizardDisplay.show(context, wizard, label_log);\n\t\t// if we update the view, how should we do it ??? Or actually we could do it in trace\n\n\t}",
"public void setLabel(final String labelValue) {\n this.label = labelValue;\n }",
"public static Node buildLiteral(final String label) {\n\t\treturn NodeFactory.createLiteral(label);\n\t}",
"public void setLabelToBeShown(String label);",
"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 addField (String label, String field) {\n addField (label, field, \"\");\n }",
"void put(String label, Identity identity) throws IOException;",
"public void addEncodedArgument(String name, String value) {\n this.addEncodedArgument(name, value, ARG_VAL_SEP);\n }"
]
| [
"0.6752967",
"0.6350482",
"0.6241098",
"0.6169121",
"0.6169121",
"0.5985301",
"0.5875031",
"0.58390766",
"0.5831104",
"0.5800582",
"0.57860327",
"0.57193846",
"0.57111025",
"0.5660232",
"0.5657974",
"0.56576586",
"0.5635667",
"0.56011844",
"0.5590648",
"0.55898994",
"0.55567163",
"0.5556578",
"0.5553769",
"0.5545777",
"0.5534406",
"0.5523894",
"0.5523894",
"0.5521107",
"0.54691625",
"0.5462777",
"0.5457481",
"0.5456854",
"0.54263437",
"0.54222095",
"0.54170144",
"0.5397707",
"0.53924954",
"0.53738105",
"0.5369962",
"0.5367585",
"0.53440577",
"0.53349805",
"0.5325849",
"0.5304582",
"0.5274572",
"0.5272355",
"0.5226734",
"0.5216244",
"0.52078176",
"0.52046806",
"0.5199281",
"0.5163789",
"0.5126101",
"0.5115818",
"0.50913596",
"0.5074168",
"0.50727755",
"0.5069462",
"0.5068918",
"0.5067497",
"0.5059546",
"0.50592595",
"0.50585824",
"0.50538546",
"0.5034807",
"0.5026852",
"0.5026549",
"0.5024981",
"0.5016234",
"0.5011433",
"0.50102884",
"0.49872598",
"0.49837938",
"0.4975864",
"0.4973409",
"0.49697807",
"0.4966057",
"0.49651328",
"0.49592316",
"0.4954279",
"0.4946843",
"0.4946843",
"0.49379268",
"0.49375665",
"0.4934008",
"0.49259457",
"0.49222937",
"0.49211547",
"0.49101415",
"0.48966065",
"0.48844153",
"0.48715007",
"0.48707873",
"0.48670036",
"0.48631045",
"0.4859445",
"0.4858156",
"0.48571536",
"0.48563528",
"0.48510477",
"0.4849682"
]
| 0.0 | -1 |
TODO: Warning this method won't work in the case the companyId fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof CompanyEntity)) {
return false;
}
CompanyEntity other = (CompanyEntity) object;
if ((this.companyId == null && other.companyId != null) || (this.companyId != null && !this.companyId.equals(other.companyId))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(Long companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }",
"public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }",
"public int getCompanyId() {\n return companyId;\n }",
"public String getCompanyId() {\r\n return companyId;\r\n }",
"public String getCompanyId() {\r\n return companyId;\r\n }",
"public Long getCompanyId() {\n return companyId;\n }",
"public long getCompanyId() {\n return companyId;\n }",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public Integer getCompanyId() {\n return companyId;\n }",
"public Integer getCompanyId() {\n return companyId;\n }",
"public String getCompanyId() {\n return companyId;\n }",
"public String getCompanyId()\n {\n return companyId;\n }",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"public void setCompanyId(Integer value) {\n this.companyId = value;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"public void setCompanyId(Long companyId) {\r\n\t\tthis.companyId = companyId;\r\n\t}",
"public Integer getCompanyId() {\n return this.companyId;\n }",
"public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}",
"public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}",
"public void setCompanyId(String companyId) {\r\n\t\tthis.companyId = companyId;\r\n\t}",
"public void getFindByIdCompany() {\n log.info(\"CompaniesContactsBean => method : getFindByIdCompany()\");\n\n log.info(\"ID company\" + companiesBean.getCompaniesEntity().getId());\n this.companiesContactsEntityList = findByIdCompany(companiesBean.getCompaniesEntity());\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}",
"public void setCompanyId(String companyId) {\n this.companyId = companyId == null ? null : companyId.trim();\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }",
"@Override\n public long getCompanyId() {\n return _partido.getCompanyId();\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_second.setCompanyId(companyId);\n\t}",
"public void setCompany(String company) {\n this.company = company;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _userTracker.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _paper.getCompanyId();\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_employee.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_changesetEntry.setCompanyId(companyId);\n\t}",
"public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_paper.setCompanyId(companyId);\n\t}",
"public void setCompany(String company) {\n\t\tthis.company = company;\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_esfTournament.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_dictData.setCompanyId(companyId);\n\t}",
"@Override\r\n\tpublic Company updateCompany(Company company) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_userTracker.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_expandoColumn.setCompanyId(companyId);\n\t}",
"public void setCompany(Company aCompany) {\n company = aCompany;\n }",
"public Company getCompany() {\r\n return this.company;\r\n }",
"Company getOrCreateCompanyId(String companyID) throws Exception;",
"public Company getCompany() {\n return company;\n }",
"public String getCompanyCode() {\r\n return companyCode;\r\n }",
"public String getCompanyCode() {\r\n return companyCode;\r\n }",
"public String getCompany() {\n return company;\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_scienceApp.setCompanyId(companyId);\n\t}",
"protected List<CompaniesContactsEntity> findByIdCompany(CompaniesEntity companiesEntity) {\n\n log.info(\"CompaniesContactsBean => method : findByIdCompany()\");\n\n FacesMessage facesMessage;\n\n if (companiesContactsEntity == null) {\n log.error(\"Companies entity is null\");\n facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"company.error\"), null);\n FacesContext.getCurrentInstance().addMessage(null, facesMessage);\n return null;\n }\n\n EntityManager em = EMF.getEM();\n\n List<CompaniesContactsEntity> companiesContactsEntities = companiesContactsDao.findByIdCompany(em, companiesEntity.getId());\n\n em.clear();\n em.close();\n\n return companiesContactsEntities;\n }",
"@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}",
"public String getCompanyCode() {\n return companyCode;\n }",
"public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }",
"public String getCompany() {\n return company;\n }",
"public String getCompany() {\n return company;\n }",
"public void setContactCompany(String contactCompany) {\n this.contactCompany = contactCompany;\n }",
"Company getCompany(int id);",
"public String getCompany() {\r\n\t\treturn company;\r\n\t}",
"public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }",
"public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }",
"public void setCompanyName(String companyName) {\n this.companyName = companyName;\n }",
"CompanyInternal toCompanyInternal(UUID companyId, CompanyJson company);",
"public java.lang.Integer getCompany() {\n\treturn company;\n}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _permissionType.getCompanyId();\n\t}",
"public String getCompanyCd() {\r\n return companyCd;\r\n }",
"public String getCompanyCd() {\r\n return companyCd;\r\n }",
"@JsonGetter(\"company_id\")\n public String getCompanyId ( ) { \n return this.companyId;\n }",
"public void setDocumentCompany(java.lang.String documentCompany) {\n this.documentCompany = documentCompany;\n }",
"static Company getCompany(SQLiteDatabase db, String companyId) {\n Cursor cursor = db.query(COMPANY_TABLE, null, COMPANY_ID + \" = ?\", new String[] { companyId }, null, null, null);\n List<Company> list = new LinkedList<Company>();\n if (cursor.moveToFirst()) {\n int idIndex = cursor.getColumnIndex(COMPANY_ID);\n int nameIndex = cursor.getColumnIndex(COMPANY_NAME);\n int logoIndex = cursor.getColumnIndex(COMPANY_LOGO);\n int descriptionIndex = cursor.getColumnIndex(COMPANY_DESCRIPTION);\n int lastUpdatedIndex = cursor.getColumnIndex(COMPANY_LAST_UPDATED);\n int wasDeletedIndex = cursor.getColumnIndex(COMPANY_WAS_DELETED);\n\n do {\n if(cursor.getString(idIndex).equals(companyId)) {\n Company company = new Company();\n company.companyId = cursor.getString(idIndex);\n company.name = cursor.getString(nameIndex);\n company.companyLogo = cursor.getString(logoIndex);\n company.companyDescription = cursor.getString(descriptionIndex);\n company.lastUpdatedDate = cursor.getDouble(lastUpdatedIndex);\n company.wasDeleted = (cursor.getInt(wasDeletedIndex) == 1);\n company.models = CarSQL.getCompanyCars(db,company.companyId);\n return company;\n }\n else\n Log.d(\"TAG\",\"can not give correct company companyID \" + companyId + \" from sql\");\n } while (cursor.moveToNext());\n }\n return null;\n }",
"public Company findCompany(long id);"
]
| [
"0.76796913",
"0.76012295",
"0.7570221",
"0.75508296",
"0.75508296",
"0.7490853",
"0.7490853",
"0.7409598",
"0.7392748",
"0.7392748",
"0.73895293",
"0.73708385",
"0.7357233",
"0.7357233",
"0.7357233",
"0.7357233",
"0.7357233",
"0.7312342",
"0.7312342",
"0.7307215",
"0.73004526",
"0.7286736",
"0.7286736",
"0.7286736",
"0.7286736",
"0.7221935",
"0.71954",
"0.71954",
"0.71954",
"0.71681297",
"0.7143131",
"0.7140106",
"0.7134082",
"0.7134082",
"0.7134082",
"0.7134082",
"0.71213895",
"0.7080157",
"0.70770663",
"0.70141464",
"0.70126516",
"0.6980341",
"0.6970621",
"0.6969043",
"0.6945231",
"0.6945231",
"0.6945231",
"0.6945231",
"0.6945231",
"0.6927976",
"0.6919756",
"0.68975633",
"0.6871375",
"0.6861895",
"0.6855841",
"0.684723",
"0.6785133",
"0.6785133",
"0.6785133",
"0.67535734",
"0.67288566",
"0.67109096",
"0.670677",
"0.6627654",
"0.6623807",
"0.6622593",
"0.6616085",
"0.66024244",
"0.6597522",
"0.65929407",
"0.65459204",
"0.6538673",
"0.6498155",
"0.64973134",
"0.6483379",
"0.6447125",
"0.6447125",
"0.64435464",
"0.6435547",
"0.6400183",
"0.6396545",
"0.63912314",
"0.6380927",
"0.6365276",
"0.6365276",
"0.6328929",
"0.6304047",
"0.6285679",
"0.6276125",
"0.6276125",
"0.6256135",
"0.624969",
"0.6217086",
"0.62105066",
"0.62099826",
"0.62099826",
"0.6199281",
"0.6198525",
"0.6184843",
"0.6159899"
]
| 0.61992013 | 97 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
rootView = inflater.inflate(R.layout.fragment_product_rating_review_list, container, false);
setHasOptionsMenu(true);
((AppCompatActivity)getActivity()).getSupportActionBar().setTitle("Review");
((AppCompatActivity)requireActivity()).getSupportActionBar().setDisplayShowTitleEnabled(true);
((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true);
((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayShowHomeEnabled(true);
writeReview = rootView.findViewById(R.id.write_review_layout_button);
writeReviewBtn = rootView.findViewById(R.id.write_review_button);
writeReviewBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Fragment fragment = new ProductRatingReviewFragment();
FragmentManager fragmentManager = getActivity().getSupportFragmentManager();
fragmentManager.beginTransaction()
.replace(R.id.main_fragment_container, fragment)
.addToBackStack(null).commit();
}
});
return rootView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
]
| [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
]
| 0.0 | -1 |
Hide Cart Icon in the Toolbar | @Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
MenuItem languageItem = menu.findItem(R.id.toolbar_ic_language);
MenuItem currencyItem = menu.findItem(R.id.toolbar_ic_currency);
MenuItem profileItem = menu.findItem(R.id.toolbar_edit_profile);
MenuItem searchItem = menu.findItem(R.id.toolbar_ic_search);
MenuItem cartItem = menu.findItem(R.id.toolbar_ic_cart);
profileItem.setVisible(false);
languageItem.setVisible(false);
currencyItem.setVisible(false);
searchItem.setVisible(false);
cartItem.setVisible(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void HideToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e( \"HideToolBar\");\r\n\t}",
"@Override\r\n public int getToolbarIconResId(){\r\n return android.R.drawable.ic_menu_close_clear_cancel;\r\n }",
"@Override\r\n\tpublic void HideToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e(\"HideToolBar\");\r\n\t}",
"public void hideToolbarButtons() {\n Log.i(tag, \"hideToolbarButtons\");\n this.actionBarDrawerToggle.setHomeAsUpIndicator((Drawable) null);\n this.settingsButton.setVisibility(4);\n }",
"public void hideStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"public void Cart_icon() {\r\n\t\tthis.Cart_icon.click();\r\n\t}",
"void hideToolbars();",
"@Override\n public void setIconOnly(boolean iconOnly)\n {\n }",
"@Source(\"images/deleteButton.png\")\n @ImageOptions(flipRtl = true)\n ImageResource removeIcon();",
"public void resetToolbar() {\n ((AppCompatActivity) getActivity()).getSupportActionBar().setTitle(\"\");\n myMenu.findItem(R.id.share).setVisible(false);\n myMenu.findItem(R.id.delete).setVisible(false);\n }",
"public void hideUpgradeButton()\r\n {\r\n \tmGUIManager.newCost(\"Upgrade Tower\");\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_UPGRADE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"public void clearMainIcon();",
"public void hideBoomKeyTip() {\n }",
"private void hideSmallIcon(Bitmap largeIconBitmap) {\n int smallIconId = mContext.getResources().getIdentifier(\"right_icon\", \"id\", android.R.class.getPackage().getName());\r\n if (smallIconId != 0 && largeIconBitmap != null) {\r\n mNotification.contentView.setViewVisibility(smallIconId, View.INVISIBLE);\r\n }\r\n }",
"@Override\r\n\t\tpublic void onLoadingCancelled(String arg0, View arg1) {\n\t\t\tholder.app_icon.setVisibility(View.VISIBLE);\r\n\t\t}",
"public void hideActionBar(){\n getSupportActionBar().hide();\n yell(\"Hiding action bar\");\n }",
"@Override\n public boolean isIcon(){\n return super.isIcon() || speciallyIconified;\n }",
"public void hideCreditsButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_CREDITS_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n MenuItem itemCart = menu.findItem(R.id.cart);\n icon = (LayerDrawable) itemCart.getIcon();\n return true;\n }",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (JGSDK.icon != null) {\n\t\t\tJGSDK.isShow = true;\n\t\t\tJGSDK.icon.setVisibility(View.VISIBLE);\n\t\t}\n\t}",
"@Override\n public boolean showDurabilityBar(ItemStack stack) {\n return false;\n }",
"public interface IToolbarsContainer {\n\t\n\t/**\n\t * Hide the tool bars of this item.\n\t */\n\tvoid hideToolbars();\n\n}",
"public abstract BossBar hide();",
"@Override\r\n\tpublic void ShowToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e( \"ShowToolBar\");\r\n\t}",
"public void toolbarImplementacionIsmael() {\n\t\t// ToolBar Fuente\n\t\tbtnFuente = new JButton(\"Fuente\");\n\t\tbtnFuente.setEnabled(false);\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnFuente.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnFuente);\n\n\t\tbtnSeleccionarTodo = new JButton(\"Selec.Todo\");\n\t\tbtnSeleccionarTodo.setEnabled(false);\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnSeleccionarTodo.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnSeleccionarTodo);\n\n\t\tbtnHora = new JButton(\"Hora\");\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnHora.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnHora);\n\t}",
"public void hideFriendIv() {\n // Remove the Add Friend ImageView\n mFriendIv.setVisibility(View.GONE);\n }",
"public void hideToolbarAndSideMenu() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // This locks the drawer so it cant be opened\n drawer.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);\n\n // Hides the toolbar\n ViewGroup.LayoutParams layoutParams = toolbar.getLayoutParams();\n layoutParams.height = 0;\n toolbar.setLayoutParams(layoutParams);\n }\n });\n\n }",
"private void hideActionBar(){\n try {getSupportActionBar().hide();}\n catch (NullPointerException e){ Log.e(\"Exception\",\"null\");}\n }",
"public void becomeEaten(){\n\t\tthis.setIcon(null);\n\t}",
"private void HideActionBar(){\n if(getSupportActionBar() != null){\n getSupportActionBar().hide();\n }\n }",
"private void hideEmail() {\n\t\tButton emailButton = (Button) findViewById(R.id.b_recipeEmail);\n\t\temailButton.setVisibility(4);\n\t}",
"@Override\n public MToolBar getToolbar()\n {\n return null;\n }",
"@Override\r\n\tpublic void ShowToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e(\"ShowToolBar\");\r\n\t}",
"public void clearStatusIcons();",
"public boolean onPrepareOptionsMenu(Menu menu)\n {\n MenuItem golden_icon = menu.findItem(R.id.golden);\n if(CouponSet.getGolden() == null || CouponSet.getGolden().size() == 0)\n {\n golden_icon.setVisible(false);\n }\n else\n {\n golden_icon.setVisible(true);\n }\n return true;\n }",
"private void showFavouriteIcon(boolean show) {\n faveIcon.setVisible(show);\n defaultIcon.setVisible(!show);\n sortIcon.setVisible(show);\n }",
"public void hideDeleteButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_DELETE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"public void setBackArrowIcon() {\n Log.i(tag, \"setBackArrowIcon\");\n this.actionBarDrawerToggle.setHomeAsUpIndicator(this.chevronIcon);\n this.settingsButton.setVisibility(4);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.receipt_detail, menu);\n\n\t\tIconsBarView iconsBar = (IconsBarView)this.findViewById(R.id.iconsBarView1);\n\t\tResources res = this.getResources();\n\t\ticonsBar.clearIconMenus();\n\n\t\tboolean anychecked = false;\n\t\tfor(int i=0; i<this.receipt.size(); i++){\n\t\t\tanychecked = anychecked || cbs.get(i).isChecked();\n\t\t}\n\t\ticonsBar.addIconMenus(5, \"戻る\", BitmapFactory.decodeResource(res, R.drawable.back_key), true);\n\t\tif(this.receipt == Data.getInstance().getCurrentReceipt()){\n\t\t\tboolean checkable = true;\n\t\t\tMenuItem item1 = menu.findItem(R.id.check);\n\t\t\titem1.setVisible(true);\n\t\t\tif(this.receipt.size() == 0){\n\t\t\t\tcheckable = false;\n\t\t\t\titem1.setEnabled(false);\n\t\t\t}\n\t\t\ticonsBar.addIconMenus(0, \"精算\", BitmapFactory.decodeResource(res, R.drawable.cacher), checkable);\n\t\t\ticonsBar.addIconMenus(1, \"カテゴリ変更\", BitmapFactory.decodeResource(res, R.drawable.change_category), anychecked);\n\t\t\ticonsBar.addIconMenus(2, \"削除\", BitmapFactory.decodeResource(res, R.drawable.trash), anychecked);\n\t\t}else{\n\t\t\ticonsBar.addIconMenus(1, \"カテゴリ変更\", BitmapFactory.decodeResource(res, R.drawable.change_category), anychecked);\n\t\t\ticonsBar.addIconMenus(3, \"レシート撮影\", BitmapFactory.decodeResource(res, R.drawable.camera), true);\n\t\t\ticonsBar.addIconMenus(4, \"レシート画像\", BitmapFactory.decodeResource(res, R.drawable.show), this.receipt.getImage() != null);\n\t\t}\n\t\tif(!anychecked){\n\t\t\tMenuItem item1 = menu.findItem(R.id.deleteRows);\n\t\t\tMenuItem item2 = menu.findItem(R.id.changeCategory);\n\t\t\titem1.setEnabled(false);\n\t\t\titem2.setEnabled(false);\n\t\t}\n\t\tif(this.receipt.getImage() == null){\n\t MenuItem item1 = menu.findItem(R.id.showReceiptImage);\n\t item1.setVisible(false);\n\t\t}\n\t\ticonsBar.invalidate();\n\t\t\n\t\treturn true;\n\t}",
"@Override\n public void hide() {\n \n }",
"private void showSignOutBar() {\n Log.d(TAG, \"Showing sign out bar\");\n findViewById(R.id.sign_in_bar).setVisibility(View.GONE);\n findViewById(R.id.sign_out_bar).setVisibility(View.VISIBLE);\n }",
"@Override\n public void hideCategoryOtherEditTextField() {\n mEditTextProductCategoryOther.setVisibility(View.INVISIBLE);\n }",
"public static void setupCancelButton() {\n if (imageAdapter.getSelectedSize() == 0) {\n // always set to invisible\n cancel.hide();\n return;\n }\n // set button to be visible\n cancel.show();\n }",
"private void hideAddFeed() {\n addfeed.setVisible(false);\n\n if (Preferences.builtfeedsEnabled(getBaseContext())) {\n\n //hide built in feeds menu if enabled\n default_feeds.setVisible(false);\n\n } else {\n\n //hide xda menu item\n xda.setVisible(false);\n }\n\n }",
"@Override\n\tpublic String getIconURI() {\n\t\treturn null;\n\t}",
"protected boolean shouldShowItemNone() {\n return false;\n }",
"public void iconify(final GFrame frame) {\r\n\r\n\t\tframe.setVisible(false);\r\n\r\n\t\taddButton(frame);\r\n\t}",
"@Override\n\tpublic void hideCross() {\n\n\t}",
"public void hide() {\n super.hide();\n }",
"@Override\n public void hide() {\n\n }",
"@Override\n public void hide() {\n\n }",
"@Override\n public void hide() {\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n setIconVisible(menu,true);\n return true;\n }",
"private void hideToolbarFromNonAdminUsers(FormLayout formLayout,\n Layout toolbar) {\n // TODO AbstractForm in Maddon should have overridden setReadOnly\n // method that would do this\n if (SecurityUtils.getSubject().hasRole(\"admin\")) {\n toolbar.setVisible(true);\n for (Component component : formLayout) {\n component.setReadOnly(false);\n }\n } else {\n toolbar.setVisible(false);\n for (Component component : formLayout) {\n component.setReadOnly(true);\n }\n }\n }",
"public void setClearIconVisible(boolean visible) {\n Drawable right = visible ? mClearDrawable : null;\n setCompoundDrawablesRelative(getCompoundDrawablesRelative()[0],\n getCompoundDrawablesRelative()[1], right, getCompoundDrawablesRelative()[3]);\n }",
"private void setToolBar() {\r\n toolbar.setTitle(R.string.photo_details);\r\n ActionBar ab = getSupportActionBar();\r\n if (ab != null) {\r\n ab.setDisplayHomeAsUpEnabled(true);\r\n }\r\n toolbar.setNavigationIcon(R.drawable.ic_back);\r\n }",
"@Override\r\n public void hide() {\r\n\r\n }",
"public void hideButtonsOfManager(int i)\n {\n switch(i)\n {\n case 0: \n for(Controller b: tilesMenu)\n {\n if(b!= null)\n {\n b.setVisible(false);\n }\n }\n break;\n case 1:\n for(Controller b: inputImageMenu)\n {\n if(b!= null)\n {\n b.setVisible(false);\n }\n }\n break;\n case 2:\n for(Controller b: outputImageMenu)\n {\n if(b!= null)\n {\n b.setVisible(false);\n }\n }\n break;\n }\n }",
"private void hideSave() {\n\t\tButton saveButton = (Button) findViewById(R.id.b_recipeSave);\n\t\tsaveButton.setVisibility(4);\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"@Override\n\tpublic void hide() {\n\n\t}",
"java.lang.String getCouponIconUrl();",
"private void hideSubmitBtn(){\n\t\tmainWindow.getContainer().remove(submitBtn);\n\t}",
"public void resetFilterIcon() {\n removeStyleName(\"appliedfilter\");\n icon.setSource(defaultTheam);\n\n }",
"@Override\n\t\t\t\tpublic void hideCross() {\n\t\t\t\t\t\n\t\t\t\t}",
"boolean hasIcon();",
"boolean hasIcon();",
"private void hide() {\n\t}",
"private void barDisableAll() {\n imgNinja.setImageDrawable(resources.getDrawable(R.drawable.ic_banana_dis));\n imgFruiter.setImageDrawable(resources.getDrawable(R.drawable.ic_like_dis));\n imgHack.setImageDrawable(resources.getDrawable(R.drawable.ic_lock_dis));\n imgNews.setImageDrawable(resources.getDrawable(R.drawable.ic_news_dis));\n tvNinja.setTextColor(resources.getColor(R.color.barTextDisabled));\n tvFruiter.setTextColor(resources.getColor(R.color.barTextDisabled));\n tvHack.setTextColor(resources.getColor(R.color.barTextDisabled));\n tvNews.setTextColor(resources.getColor(R.color.barTextDisabled));\n }",
"protected DisplayRequest actionBarDisplay() {\n return DisplayRequest.NO_ACTION_BAR;\n }",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\r\n\t}",
"@Override\r\n\tpublic void hide() {\n\r\n\t}",
"@Override\n\tpublic void hide() {\n\t}",
"@Override\n\tpublic void hide() {\n\t}",
"@Override\n\tpublic void hide() {\n\t}",
"@Override\n\tpublic void hide() {\n\t}",
"@Override\r\n public void hide() {\n }",
"public void hideNoNotifications(){\n noNotificationsTitle.setVisibility(View.GONE);\n noNotificationsText.setVisibility(View.GONE);\n noNotificationsImage.setVisibility(View.GONE);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_commonone, menu);\n MenuItem item3 = menu.findItem(R.id.messager);\n MenuItem item4 = menu.findItem(R.id.search);\n item3.setIcon(R.drawable.openmessage);\n item4.setIcon(R.drawable.search);\n try{\n if (loggedIn.equals(\"noValue\")) {\n\n\n item3.setVisible(false);\n\n } else {\n\n item3.setVisible(true);\n\n }}\n catch (Exception e){\n\n }\n return true;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmenu_mine.setVisibility(View.GONE);\n\t\t\t}",
"public String getIconURL()\n {\n return null; \n }"
]
| [
"0.6479229",
"0.64076054",
"0.6388483",
"0.63374484",
"0.632182",
"0.6296482",
"0.6275442",
"0.6052939",
"0.5969444",
"0.5875096",
"0.5836668",
"0.58102745",
"0.57822925",
"0.57155585",
"0.5660044",
"0.5641309",
"0.5633724",
"0.560622",
"0.5543107",
"0.5522792",
"0.5512692",
"0.5503573",
"0.55005866",
"0.54977685",
"0.54765487",
"0.54533935",
"0.54431933",
"0.54402786",
"0.54336756",
"0.5432732",
"0.54238683",
"0.5422304",
"0.54160833",
"0.5414998",
"0.5404243",
"0.54035574",
"0.53980076",
"0.5391936",
"0.5380464",
"0.53733873",
"0.5350765",
"0.5340991",
"0.53383374",
"0.5334025",
"0.5333812",
"0.5327246",
"0.53231394",
"0.5303325",
"0.5292837",
"0.5286465",
"0.52759844",
"0.52759844",
"0.52759844",
"0.52647537",
"0.5261242",
"0.52542156",
"0.52520996",
"0.52500504",
"0.52413505",
"0.5240406",
"0.52294904",
"0.52294904",
"0.52294904",
"0.52294904",
"0.52294904",
"0.52294904",
"0.52294904",
"0.52294904",
"0.52294904",
"0.52294904",
"0.52183783",
"0.5216459",
"0.5215514",
"0.5213932",
"0.51913244",
"0.51913244",
"0.5189821",
"0.51889926",
"0.5188294",
"0.518739",
"0.518739",
"0.518739",
"0.518739",
"0.518739",
"0.518739",
"0.518739",
"0.518739",
"0.51846683",
"0.51846683",
"0.51846683",
"0.51846683",
"0.51839346",
"0.51839346",
"0.51839346",
"0.51839346",
"0.5182663",
"0.51810765",
"0.51769674",
"0.51746833",
"0.51690984"
]
| 0.5363835 | 40 |
Created by raya on 6/30/17. | public interface UserRepository extends CrudRepository<User, Integer> {
User findByUsername(String username);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private void m50366E() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public void mo4359a() {\n }",
"private void kk12() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void init() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@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\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void init() {}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\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}",
"public void method_4270() {}",
"@Override\n void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void init() {\n\t}",
"private void m50367F() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"public abstract void mo70713b();",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo12628c() {\n }",
"public void mo6081a() {\n }",
"public void m23075a() {\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"protected void mo6255a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public void mo21877s() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public final void mo91715d() {\n }",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"private void init() {\n\n\n\n }",
"private void initialize() {\n\t\t\n\t}",
"public void mo12930a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void initialize() { \n }"
]
| [
"0.5855348",
"0.57938164",
"0.57899594",
"0.570794",
"0.56489956",
"0.56392986",
"0.56379527",
"0.5620995",
"0.5615823",
"0.5615823",
"0.56087106",
"0.5569765",
"0.5554207",
"0.5554207",
"0.5554207",
"0.5554207",
"0.5554207",
"0.5543604",
"0.55413854",
"0.5520915",
"0.55192214",
"0.5511489",
"0.54897916",
"0.54845333",
"0.5481059",
"0.5481059",
"0.5469597",
"0.54566467",
"0.5449016",
"0.54472464",
"0.5435381",
"0.5434576",
"0.5433441",
"0.5419962",
"0.54158944",
"0.5415724",
"0.54102886",
"0.5408952",
"0.54062814",
"0.5399446",
"0.53974456",
"0.53974456",
"0.53974456",
"0.53974456",
"0.53974456",
"0.53974456",
"0.5396281",
"0.5391756",
"0.5380711",
"0.5380711",
"0.5380711",
"0.537818",
"0.537818",
"0.537818",
"0.5371047",
"0.53701466",
"0.5364617",
"0.53625643",
"0.53601",
"0.5359747",
"0.5359747",
"0.5359747",
"0.53407913",
"0.5338231",
"0.5333377",
"0.53315735",
"0.53315735",
"0.5329119",
"0.53144485",
"0.53022295",
"0.53020936",
"0.5300871",
"0.5295997",
"0.52904487",
"0.5289137",
"0.5287578",
"0.528323",
"0.528323",
"0.528323",
"0.528323",
"0.528323",
"0.528323",
"0.528323",
"0.52794945",
"0.5277902",
"0.5270038",
"0.5267218",
"0.52650064",
"0.5254892",
"0.5254892",
"0.5243828",
"0.52434665",
"0.52419",
"0.52404284",
"0.52343017",
"0.523051",
"0.52272266",
"0.52247643",
"0.5221895",
"0.52215654",
"0.52109146"
]
| 0.0 | -1 |
pq: keep add the least stick | public int connectSticks(int[] sticks) {
PriorityQueue<Integer> minHeap = new PriorityQueue<>();
for(int i: sticks){
minHeap.offer(i);
}
int res = 0;
while(minHeap.size() > 1){
int cur = (int)minHeap.poll()+(int)minHeap.poll();
res += cur;
minHeap.offer(cur);
}
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteMin();",
"public abstract int deleteMin();",
"k value.\nFor 2nd tallest group (and the rest), insert each one of them into (S) by k value. So on and so forth.\n\npublic class Solution {\n public int[][] reconstructQueue(int[][] people) {\n Arrays.sort(people,new Comparator<int[]>() {\n @Override\n public int compare(int[] o1, int[] o2){\n return o1[0] != o2[0]? -o1[0] + o2[0]: o1[1] - o2[1];\n }\n });\n\n List<int[]> res = new ArrayList<>();\n for (int[] cur : people) {\n res.add(cur[1], cur); \n }\n return res.toArray(new int[people.length][]);\n }",
"private void shift(){\n if (queue.length < 1){\n throw new Error(\"Table self destruction!\");\n }\n if (size <= 0){\n return;\n }\n\n if (queue[0] == null){\n E best = null;\n int bestAT = -1;\n for (int x = 0 ; x < queue.length; x++){\n E cur = (E)queue[x];\n if (cur == null){\n continue;\n }\n if (best == null || cur.compareTo(best) > 0){\n best = cur;\n bestAT = x;\n }\n }\n // Not put best at front;\n queue[bestAT] = null;\n queue[0] = best;\n }\n\n }",
"public T deleteMin();",
"public static void balanceHeaps()\n {\n // add your code here\n if(Math.abs(s.size()-g.size()) > 1){\n if(s.size() > g.size()){\n g.add(s.poll());\n }\n else {\n s.add(g.poll());\n }\n }\n }",
"public void removeSmaller(double value){\r\n\t DoubleNode cursor2; \r\n\tfor(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\tif(cursor.getData() < value){\r\n\t\t\tif(cursor == head){\r\n\t\t\t\thead = head.getLink(); \r\n\t\t\t\tmanyNodes--; \r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcursor2 = cursor; \r\n\t\t\t\tthis.removeCurrent();\r\n\t\t\t\tcursor = cursor2;\r\n\t\t\t\tmanyNodes--; \r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n }",
"public int Delete_Min()\n {\n \tthis.array[0]=this.array[this.getSize()-1];\n \tthis.size--; \n \tthis.array[0].setPos(0);\n \tint numOfCompares = heapifyDown(this, 0);\n \treturn numOfCompares;\n }",
"private void removeOldestPoint() {\n PathPoint p = points.get(points.size() - length - 1);\n // if points has 5 points (0-4), length=3, then remove points(5-3-1)=points(1) leaving 2-4 which is correct\n float t = p.t - firstTimestamp;\n st -= t;\n sx -= p.x;\n sy -= p.y;\n stt -= t * t;\n sxt -= p.x * t;\n syt -= p.y * t;\n }",
"public void f6(List<Book> a) {\r\n double min = a.get(0).getPrice();\r\n for (Book o : a) {\r\n if (o.getPrice() < min) {\r\n min = o.getPrice();\r\n }\r\n }\r\n int acc = a.size();\r\n for (int i = acc-1; i > 0; i--) {\r\n a.remove(i);\r\n break;\r\n }\r\n }",
"public BetterParkingLot( int size )\n\t{\n\t\tsuper(size);\n queue = new PriorityQueue<Integer>(size);\n\n // add all available parking slots in zero-indexed form\n for(int i=0; i <= size; i++) // this is my only problem. It HAS to be O(n) here.\n queue.add(i);\n\t}",
"void deleteMin() {\n delete(keys[0]);\n }",
"public double cheapestInsert(Integer[] notSeen){\n List<Integer> list = new ArrayList<>();\n list.add(lastSeen);\n list.add(0);\n \n List<Integer> notSeenTemp = new ArrayList<>();\n for(Integer node: notSeen){\n notSeenTemp.add(node);\n }\n \n int i = 0;\n int chosenIndex=0;\n Integer chosenNode = null;\n \n //While all the inserts have not been done\n while (notSeenTemp.size() >0){\n double cheapestInsertCost = Double.MAX_VALUE;\n //For each position in the list\n for(i =0; i< list.size()-1; i++){\n //For each \"not seen\" node not yet inserted\n for(Integer nodeTemp: notSeenTemp){\n //find the cheapest insert\n if(cheapestInsertCost>(cost[list.get(i)][nodeTemp] + cost[nodeTemp][list.get(i+1)] - cost[list.get(i)][list.get(i+1)])){\n cheapestInsertCost=cost[list.get(i)][nodeTemp] + cost[nodeTemp][list.get(i+1)] - cost[list.get(i)][list.get(i+1)];\n chosenIndex = i+1;\n chosenNode = nodeTemp; \n }\n \n }\n \n }\n list.add(chosenIndex, chosenNode);\n notSeenTemp.remove(chosenNode);\n }\n \n double res =0;\n for(i = 0; i< list.size()-1; i++){\n res+= cost[list.get(i)][list.get(i+1)];\n }\n return res;\n }",
"private void relax(Connection connection) {\n\t\tint v = graph.getIndexOfStationByName(connection.getFrom().getStationName()), w = graph.\n\t\t\t\tgetIndexOfStationByName(connection.getTo().getStationName());\n\t\tif (distTo[w] > distTo[v] + connection.getWeight()) {\n\t\t\tdistTo[w] = distTo[v] + connection.getWeight();\n\t\t\tedgeTo[w] = v;\n\t\t\tif (pq.contains(w)) {\n\t\t\t\tpq.decreaseKey(w, distTo[w]);\n\t\t\t} else {\n\t\t\t\tpq.insert(w, distTo[w]);\n\t\t\t}\n\t\t}\n\t}",
"public void shortlist (int minimumVotes)\n {\n int index = 0;\n \n while(index<pList.size())\n {\n Personality objectHolder = pList.get(index);\n\n if(objectHolder.getVotes()<minimumVotes) //checks the votes against the parameter then removes the entry or increments index if entry isn't removed\n {\n pList.remove(index);\n }\n else\n {\n index++;\n }\n }\n }",
"public void deleteMin()\t\t\t\t//delete smallest key\n\t{\n\t\troot=deleteMin(root);\n\t}",
"@Test(timeout = SECOND)\n public void testRemoveMinAndPeekMinCombo() {\n IPriorityQueue<Integer> testQ = makeInstance();\n for (int i = 1000; i > 0; i--) {\n testQ.insert(i);\n }\n int qSize = 1000;\n for (int i = 1; i <= 1000; i++) {\n int min = testQ.peekMin();\n assertEquals(i, min);\n assertEquals(min, testQ.removeMin());\n assertEquals(--qSize, testQ.size());\n }\n // duplication test\n testQ.insert(2);\n testQ.insert(1);\n testQ.insert(1);\n testQ.insert(1);\n testQ.insert(1);\n testQ.insert(2);\n\n for (int i = 5; i > 1; i--) {\n int min = testQ.peekMin();\n assertEquals(1, min);\n assertEquals(min, testQ.removeMin());\n assertEquals(i, testQ.size());\n }\n for (int i = 1; i >= 0; i--) {\n int min = testQ.peekMin();\n assertEquals(2, min);\n assertEquals(min, testQ.removeMin());\n assertEquals(i, testQ.size());\n }\n }",
"public List<GenPolynomial<C>> \n minimalGB(List<GenPolynomial<C>> Gp) { \n if ( Gp == null || Gp.size() <= 1 ) {\n return Gp;\n }\n // remove zero polynomials\n List<GenPolynomial<C>> G\n = new ArrayList<GenPolynomial<C>>( Gp.size() );\n for ( GenPolynomial<C> a : Gp ) { \n if ( a != null && !a.isZERO() ) { // always true in GB()\n // already positive a = a.abs();\n G.add( a );\n }\n }\n if ( G.size() <= 1 ) {\n return G;\n }\n // remove top reducible polynomials\n GenPolynomial<C> a;\n List<GenPolynomial<C>> F;\n F = new ArrayList<GenPolynomial<C>>( G.size() );\n while ( G.size() > 0 ) {\n a = G.remove(0);\n if ( red.isTopReducible(G,a) || red.isTopReducible(F,a) ) {\n // drop polynomial \n if ( debug ) {\n System.out.println(\"dropped \" + a);\n List<GenPolynomial<C>> ff;\n ff = new ArrayList<GenPolynomial<C>>( G );\n ff.addAll(F);\n a = red.normalform( ff, a );\n if ( !a.isZERO() ) {\n System.out.println(\"error, nf(a) \" + a);\n }\n }\n } else {\n F.add(a);\n }\n }\n G = F;\n if ( G.size() <= 1 ) {\n return G;\n }\n // reduce remaining polynomials\n int len = G.size();\n int i = 0;\n while ( i < len ) {\n a = G.remove(0);\n //System.out.println(\"doing \" + a.length());\n a = red.normalform( G, a );\n G.add( a ); // adds as last\n i++;\n }\n return G;\n }",
"private void compressLeftSingleTonPairs(final S a) {\n Function<Pair<S, S>, Consumer<GPairRecord<S, S>>> consumerFunction = p -> new ArrayList<>()::add;\n Predicate<S> leftPredicate = nonTerminal -> doLeftPop(nonTerminal, head -> head.isTerminal() && !head.equals(a));\n Predicate<S> rightPredicate = nonTerminal -> doRightPop(nonTerminal, tail -> tail.isTerminal() && tail.equals(a));\n pop(phase + 1, leftPredicate, rightPredicate, consumerFunction);\n List<GPairRecord<S, S>> records = getPairs(p -> p.a.equals(a) && !p.b.equals(a));\n sortPairs(records);\n compressNonCrossingPairs(records);\n }",
"public Knapsack bruteForceCalc (ArrayList <Item> items,int capacity, int num_items) {\n\t\tif (num_items <= 0) {\n\t\t\tKnapsack knapsack = new Knapsack(0);\n\t\t\treturn knapsack;\n\t\t} \n\t\telse if (items.get(num_items -1).getWeight() > capacity) {\n\t\t\treturn bruteForceCalc(items, capacity, num_items - 1);\n\t\t} else {\n\n\t\t\tKnapsack ignore = bruteForceCalc(items,capacity, num_items - 1);\n\t\t\tKnapsack take = bruteForceCalc(items,capacity - items.get(num_items -1).getWeight(), num_items - 1);\n\t\t\t\n\t\t\tint ignoreVal = ignore.getValue();\n\t\t\tint takeVal = items.get(num_items - 1).getValue() + take.getValue();\n\t\t\t \n\t\t\tif( Math.max(ignoreVal, takeVal) == ignoreVal ) \n\t\t\t\treturn ignore;\n\t\t\telse {\n\t\t\t\ttake.addItem(items.get(num_items - 1));\n\t\t\t\treturn take;\n\t\t\t}\n\t\t}\n\t}",
"private void growQueue() {\n Runnable[] oldQ = queue;\n int oldSize = oldQ.length;\n int newSize = oldSize << 1;\n if (newSize > MAXIMUM_QUEUE_CAPACITY)\n throw new RejectedExecutionException(\"Queue capacity exceeded\");\n Runnable[] newQ = queue = new Runnable[newSize];\n\n int b = base;\n int bf = b + oldSize;\n int oldMask = oldSize - 1;\n int newMask = newSize - 1;\n do {\n int oldIndex = b & oldMask;\n Runnable t = oldQ[oldIndex];\n if (t != null && !casSlotNull(oldQ, oldIndex, t))\n t = null;\n setSlot(newQ, b & newMask, t);\n } while (++b != bf);\n pool.signalWork();\n }",
"private void leastWeightFirst(Instance instance) {\n ArrayList<Pair> order = new ArrayList<Pair>();\n\n for (int i = 0; i < instance.getSize(); i++) {\n order.add(i, new Pair(i, instance.getValue(i), instance.getWeight(i)));\n }\n\n // Sort items according to w_i <= w_i+1\n order.sort(new Comparator<Pair>() {\n @Override\n public int compare(Pair o1, Pair o2) {\n return o1.w - o2.w;\n }\n });\n\n setSolution(order);\n }",
"@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }",
"public T deleteMin()\n {\n // to handle empty excpetion\n if(size == 0)\n {\n throw new MyException(\"Heap is empty.\");\n }\n\n // create int hole, set to 0\n int hole = 0;\n // create return value as the item at index hole\n T returnValue = arr[hole];\n // create item to be last item of heap\n T item = arr[size-1];\n // decrement size\n size--;\n // call newHole() method to get newhole\n int newhole = newHole(hole, item);\n while(newhole != -1)\n {\n // set value of arr[newhole] to be arr[hole]\n arr[hole] = arr[newhole];\n // hole is now whatever newhole was\n hole = newhole;\n // update newhole by calling newHole()\n newhole = newHole(hole, item);\n }\n // put item where the hole is in the heap\n arr[hole] = item;\n return returnValue;\n }",
"private static int dialGreedy(ArrayList<Pair<Pair <Integer, Integer>,Integer>> wts, int money){\n int prevEdgeIndex = -1;\n int noDials = 10;\n int [][] dialArr = new int[money+1][noDials];\n BooleanHolder flip = new BooleanHolder(false);\n return greedyDialMax(wts, money,prevEdgeIndex,dialArr, flip);\n }",
"private static <Key extends Comparable<Key>> void swim(Key[] pq, int k, int n) {\n while(k/2 > 1 && less(pq, k/2, k)) { // parent is smaller\n exch(pq, k, k/2);\n k = k/2;\n }\n }",
"boolean scavenge()\r\n/* 462: */ {\r\n/* 463:493 */ if (scavengeSome()) {\r\n/* 464:494 */ return true;\r\n/* 465: */ }\r\n/* 466:498 */ this.prev = null;\r\n/* 467:499 */ this.cursor = this.head;\r\n/* 468:500 */ return false;\r\n/* 469: */ }",
"public T removeMin ();",
"protected int insertionIndex(int key) {\r\n\t\tint hash = key & 0x7fffffff;\r\n\t\tint index = this.hashFunc1(hash) * FREE.length;\r\n\t\t// int stepSize = hashFunc2(hash);\r\n\t\tbyte[] cur = new byte[4];\r\n\t\tkeys.position(index);\r\n\t\tkeys.get(cur);\r\n int storehash=(cur[0] << 24)+ ((cur[1] & 0xFF) << 16)+ ((cur[2] & 0xFF) << 8)+ (cur[3] & 0xFF);\r\n\r\n\t\tif (Arrays.equals(cur, FREE)) {\r\n\t\t\treturn index; // empty, all done\r\n\t\t} else if (storehash==key) {\r\n\t\t\treturn -index - 1; // already stored\r\n\t\t} else { // already FULL or REMOVED, must probe\r\n\t\t\t// compute the double hash\r\n\t\t\tfinal int probe = (1 + (hash % (size - 2))) * FREE.length;\r\n\r\n\t\t\t// if the slot we landed on is FULL (but not removed), probe\r\n\t\t\t// until we find an empty slot, a REMOVED slot, or an element\r\n\t\t\t// equal to the one we are trying to insert.\r\n\t\t\t// finding an empty slot means that the value is not present\r\n\t\t\t// and that we should use that slot as the insertion point;\r\n\t\t\t// finding a REMOVED slot means that we need to keep searching,\r\n\t\t\t// however we want to remember the offset of that REMOVED slot\r\n\t\t\t// so we can reuse it in case a \"new\" insertion (i.e. not an update)\r\n\t\t\t// is possible.\r\n\t\t\t// finding a matching value means that we've found that our desired\r\n\t\t\t// key is already in the table\r\n\t\t\tif (!Arrays.equals(cur, REMOVED)) {\r\n\t\t\t\t// starting at the natural offset, probe until we find an\r\n\t\t\t\t// offset that isn't full.\r\n\t\t\t\tdo {\r\n\t\t\t\t\tindex += (probe); // add the step\r\n\t\t\t\t\tindex %= (size * FREE.length); // for wraparound\r\n\t\t\t\t\tcur = new byte[FREE.length];\r\n\t\t\t\t\tkeys.position(index);\r\n\t\t\t\t\tkeys.get(cur);\r\n\t\t\t\t} while (!Arrays.equals(cur, FREE)\r\n\t\t\t\t\t\t&& !Arrays.equals(cur, REMOVED)\r\n\t\t\t\t\t\t&& storehash!=hash);\r\n\t\t\t}\r\n\r\n\t\t\t// if the index we found was removed: continue probing until we\r\n\t\t\t// locate a free location or an element which equal()s the\r\n\t\t\t// one we have.\r\n\t\t\tif (Arrays.equals(cur, REMOVED)) {\r\n\t\t\t\tint firstRemoved = index;\r\n\t\t\t\twhile (!Arrays.equals(cur, FREE)\r\n\t\t\t\t\t\t&& (Arrays.equals(cur, REMOVED) || storehash!=hash)) {\r\n\t\t\t\t\tindex += (probe); // add the step\r\n\t\t\t\t\tindex %= (size * FREE.length); // for wraparound\r\n\t\t\t\t\tcur = new byte[FREE.length];\r\n\t\t\t\t\tkeys.position(index);\r\n\t\t\t\t\tkeys.get(cur);\r\n\t\t\t\t}\r\n\t\t\t\t// NOTE: cur cannot == REMOVED in this block\r\n\t\t\t\treturn (!Arrays.equals(cur, FREE)) ? -index - 1 : firstRemoved;\r\n\t\t\t}\r\n\t\t\t// if it's full, the key is already stored\r\n\t\t\t// NOTE: cur cannot equal REMOVE here (would have retuned already\r\n\t\t\t// (see above)\r\n\t\t\treturn storehash!=hash ? -index - 1 : index;\r\n\t\t}\r\n\t}",
"public void add(int value) {\n expiryTime++;\n arrivalTime++;\n\n Bucket lastBucket = null;\n\n if (!buckets.isEmpty()) {\n // Check if timestamp of the last bucket indicates expiry\n lastBucket = buckets.get(buckets.size() - 1);\n if (lastBucket.isExpired(expiryTime)) {\n buckets.remove(lastBucket);\n // Update the counter LAST - containing size of the last bucket\n last = buckets.isEmpty() ? 0 : buckets.get(buckets.size() - 1).getSize();\n // Update TOTAL - size of all buckets\n total -= lastBucket.getSize();\n }\n }\n\n // 2\n // new element is 0 then ignore it\n if (value == 0) return;\n\n // if element is 1, create new bucket with size 1 and the current timestamp, increment TOTAL\n buckets.add(0, new Bucket(arrivalTime - 1));\n total++;\n\n // 3\n // traverse the list of buckets in order of increasing sizes\n int onesLimit = (int) k + 2;\n\n if (buckets.stream().filter(p -> p.getSize() == 1).count() >= onesLimit) {\n int otherLimit = (int) (k / 2) + 2;\n\n int limit = onesLimit;\n\n int mergeExponent = 0;\n int mergerBucketSize = (int) Math.pow(2, mergeExponent);\n\n ArrayList<Bucket> bucketsToMerge = new ArrayList<Bucket>();\n\n while (true) {\n\n for (Bucket bucket : buckets) {\n if (bucket.getSize() < mergerBucketSize) continue;\n\n if (bucket.getSize() > mergerBucketSize) break;\n\n if (bucket.getSize() == mergerBucketSize) {\n bucketsToMerge.add(bucket);\n } else {\n break;\n }\n }\n\n if (bucketsToMerge.size() != limit) {\n break;\n }\n\n // MERGE\n mergeExponent++;\n mergerBucketSize = (int) Math.pow(2, mergeExponent);\n limit = otherLimit;\n\n // Take two oldest buckets\n // we iterate from recent to oldest so take last 2 buckets from bucketsToMerge\n Bucket lastBucketToMerge = bucketsToMerge.get(bucketsToMerge.size() - 1);\n Bucket oneBeforeLastBucketToMerge = bucketsToMerge.get(bucketsToMerge.size() - 2);\n\n // If last bucket is being merged, update LAST counter\n if (oneBeforeLastBucketToMerge.getSize() == lastBucket.getSize()) {\n last = oneBeforeLastBucketToMerge.getSize() * 2;\n }\n\n // Update size of the most recent bucket with double size\n oneBeforeLastBucketToMerge.setSize(oneBeforeLastBucketToMerge.getSize() * 2);\n // remove last bucket\n buckets.remove(lastBucketToMerge);\n\n // Clear temp buckets\n bucketsToMerge = new ArrayList<Bucket>();\n }\n\n }\n }",
"public AnyType deleteMin() {\n if (isEmpty())\n throw new UnderflowException();\n\n AnyType minItem = root.element;\n root = merge(root.left, root.right);\n\n return minItem;\n }",
"public T removeBest();",
"void percolateUp(int index) {\n Comparable x = pq[index];\n while (index > 0 && (compare(pq[parent(index)], x) == 1)) {\n pq[index] = pq[parent(index)];\n index = parent(index);\n }\n pq[index] = x;\n }",
"public boolean carPooling(int[][] trips, int capacity) {\n Arrays.sort(trips, (o1,o2)->(o1[1]-o2[1]));\n \n PriorityQueue<int[]>pq = new PriorityQueue<>((o1,o2)->(o1[2]-o2[2]));\n \n int current = 0;\n int max = 0;\n for(int i=0; i<trips.length; i++){\n // remove the passed trip from the pq\n while(!pq.isEmpty() && pq.peek()[2]<=trips[i][1]){\n int[] temp = pq.poll();\n current-=temp[0]; \n }\n \n pq.offer(trips[i]);\n current+=trips[i][0];\n max = Math.max(max, current);\n if(max>capacity){\n return false;\n }\n \n }\n \n return true;\n }",
"private boolean shiboudeDeRavNosson(ArrayList<Gelt> m_gelts, ArrayList<Gelt> m_geltHelper, Gelt m_gelt) {\n\t\tplay.Logger.info(\"shiboude De Rav Nosson Algorithm Started\");\n\t\tboolean isUpdate = false;\n\t\tfor (Gelt currGelt : m_gelts) {\n\t\t\tif (!isUpdate) {\n\t\t\t\tif ((currGelt.getDebterID() == m_gelt.getEntitledID()) && (currGelt.getGroupID() == m_gelt.getGroupID())) {\n\t\t\t\t\tint nNewAmount = currGelt.getAmount() - m_gelt.getAmount();\n\t\t\t\t\tif (nNewAmount == 0) {\n\t\t\t\t\t\tcurrGelt.setnDebterID(m_gelt.getDebterID());\n\t\t\t\t\t\tisUpdate = true;\n\t\t\t\t\t} else if ((nNewAmount > 0)) {\n\t\t\t\t\t\tcurrGelt.setnAmount(nNewAmount);\n\t\t\t\t\t\tGelt geltToAdd = new Gelt(m_gelt.getDebterID(), m_gelt.getAmount(), currGelt.getEntitledID(),\n\t\t\t\t\t\t\t\tcurrGelt.getGroupID());\n\t\t\t\t\t\tif ((!foundChavrousse(m_gelts, geltToAdd))\n\t\t\t\t\t\t\t\t&& (!foundSheyteGomour(m_gelts, m_geltHelper, geltToAdd))) {\n\t\t\t\t\t\t\tm_geltHelper.add(geltToAdd);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tisUpdate = true;\n\t\t\t\t\t} else if ((nNewAmount < 0)) {\n\t\t\t\t\t\tcurrGelt.setnDebterID(m_gelt.getDebterID());\n\n\t\t\t\t\t\tGelt geltToAdd = new Gelt(m_gelt.getDebterID(), Math.abs(nNewAmount), m_gelt.getEntitledID(),\n\t\t\t\t\t\t\t\tcurrGelt.getGroupID());\n\t\t\t\t\t\tif ((!foundChavrousse(m_gelts, geltToAdd))\n\t\t\t\t\t\t\t\t&& (!foundSheyteGomour(m_gelts, m_geltHelper, geltToAdd))) {\n\t\t\t\t\t\t\tm_geltHelper.add(geltToAdd);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t} else if ((currGelt.getEntitledID() == m_gelt.getDebterID()) && (currGelt.getGroupID() == m_gelt.getGroupID())) {\n\t\t\t\t\tint nNewAmount = currGelt.getAmount() - m_gelt.getAmount();\n\t\t\t\t\tif (nNewAmount == 0) {\n\t\t\t\t\t\tcurrGelt.setnEntitledID(m_gelt.getEntitledID());\n\t\t\t\t\t\tisUpdate = true;\n\t\t\t\t\t} else if ((nNewAmount > 0)) {\n\t\t\t\t\t\tcurrGelt.setnAmount(nNewAmount);\n\n\t\t\t\t\t\tGelt geltToAdd = new Gelt(currGelt.getDebterID(), m_gelt.getAmount(), m_gelt.getEntitledID(),\n\t\t\t\t\t\t\t\tm_gelt.getGroupID());\n\t\t\t\t\t\tif ((!foundChavrousse(m_gelts, geltToAdd))\n\t\t\t\t\t\t\t\t&& (!foundSheyteGomour(m_gelts, m_geltHelper, geltToAdd))) {\n\t\t\t\t\t\t\tm_geltHelper.add(geltToAdd);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tisUpdate = true;\n\t\t\t\t\t} else if ((nNewAmount < 0)) {\n\t\t\t\t\t\tcurrGelt.setnEntitledID(m_gelt.getEntitledID());\n\n\t\t\t\t\t\tGelt geltToAdd = new Gelt(m_gelt.getDebterID(), Math.abs(nNewAmount), m_gelt.getEntitledID(),\n\t\t\t\t\t\t\t\tm_gelt.getGroupID());\n\t\t\t\t\t\tif ((!foundChavrousse(m_gelts, geltToAdd))\n\t\t\t\t\t\t\t\t&& (!foundSheyteGomour(m_gelts, m_geltHelper, geltToAdd))) {\n\t\t\t\t\t\t\tm_geltHelper.add(geltToAdd);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisUpdate = true;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn isUpdate;\n\t}",
"public void leave(int p) {\n Integer left = seats.lower(p);\n Integer right = seats.higher(p);\n left = left == null ? -1 : left;\n right = right == null ? N : right;\n seats.remove(p);\n\n pq.remove(new Pair(left, p));\n pq.remove(new Pair(p, right));\n pq.add(new Pair(left, right));\n }",
"private void relax(Edge e, int v) {\r\n int w = e.other(v);\r\n if (distTo[w] > distTo[v] + e.weight()) {\r\n distTo[w] = distTo[v] + e.weight();\r\n edgeTo[w] = e;\r\n if(nWays[v]>0)\r\n \tnWays[w]= nWays[v];\t\t\t//posibles caminos desde origen...\r\n else\r\n \tnWays[w]=1;\r\n if (pq.contains(w)) pq.decreaseKey(w, distTo[w]);\r\n else pq.insert(w, distTo[w]);\r\n }else if(distTo[w] == distTo[v] + e.weight()){\r\n \tnWays[w] += nWays[v];\r\n \t/* if(nWays[v]>1)\r\n \tnWays[w]=nWays[w]*nWays[v];\r\n \t else\r\n \t\t nWays[w]++;*/\r\n }\r\n }",
"public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }",
"public void deleteMin() {\n if (isEmpty()) throw new NoSuchElementException(\"Symbol table underflow\");\n root = deleteMin(root);\n// TODO:adding check for assurance\n }",
"static int knapSack(int totalWeight, int wt[], int val[], int n) {\n\t\t// Base Case\n\t\tif (n == 0 || totalWeight == 0)\n\t\t\treturn 0;\n\n\t\t// If weight of the nth item is more than Knapsack capacity W, then\n\t\t// this item cannot be included in the optimal solution\n\t\tif (wt[n - 1] > totalWeight)\n\t\t\treturn knapSack(totalWeight, wt, val, n - 1);\n\n\t\t// Return the maximum of two cases:\n\t\t// (1) nth item included\n\t\t// (2) not included\n\t\telse\n\t\t\treturn max(\n\t\t\t\t\tval[n - 1]\n\t\t\t\t\t\t\t+ knapSack(totalWeight - wt[n - 1], wt, val, n - 1),\n\t\t\t\t\tknapSack(totalWeight, wt, val, n - 1));\n\t}",
"public void deleteMin() {\n root = deleteMin(root);\n }",
"public void deleteMin() {\n root = deleteMin(root);\n }",
"private void relax(SiteEdge e) {\n int v = e.from(), w = e.to();\n if (distTo[w] > distTo[v] + e.weight()) {\n distTo[w] = distTo[v] + e.weight();\n edgeTo[w] = e;\n if (pq.contains(w)) pq.decreaseKey(w, distTo[w]);\n else pq.insert(w, distTo[w]);\n }\n }",
"public int knapSack(int wt[], int val[], int w) {\n return helper(wt, val, wt.length ,w);\n }",
"public int deleteMin() {\n int keyItem = heap[0];\n delete(0);\n return keyItem;\n }",
"void percolateUp(int index) {\n T x = (T) pq[index];\n while(index>0 && (pq[parent(index)].compareTo(x)==1)) {\n pq[index] = pq[parent(index)];\n index = parent(index);\n pq[index]=x;\n }\n\n }",
"private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\t// ss: stack size: Always <=2 children on stack for <=n-1 parents\n\t\tItem[] items = new Item[n];\n\t\tint ss = 2 * n;\n\t\tint[] itemsSorted = new int[n], t = new int[n], ws = new int[ss],\n\t\t\tvs = new int[ss], is = new int[ss], bs = new int[ss];\n\t\tint i, b, weight, value, best = 0, p = 0;\n\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titems[j] = new Item(j);\n\t\tArrays.sort(items);\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titemsSorted[j] = items[j].i();\n\t\titems = null; // For garbage collection.\n\n\t\t// Push item 0 onto the stack with and without bringing it.\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 1; p++;\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 0; p++;\n\n\t\twhile (p > 0) {\n\t\t\tp--; // Pop the latest item off the stack\n\t\t\ti = is[p]; b = bs[p];\n\t\t\tweight = ws[p] + w[i] * b;\n\t\t\tif (weight > k)\n\t\t\t\tcontinue;\n\t\t\tvalue = vs[p] + v[i] * b;\n\t\t\tif (bound(i, weight, value, itemsSorted) < best)\n\t\t\t\tcontinue;\n\t\t\tbest = Math.max(value, best);\n\t\t\tt[i] = b;\n\t\t\tif (i < n - 1) { // Push children onto stack w/ & w/o bringing item\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 1; p++;\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 0; p++;\n\t\t\t}\n\t\t\telse if (value >= best)\n\t\t\t\tSystem.arraycopy(t, 0, x, 0, n);\n\t\t}\n\t\treturn best;\n\t}",
"private void compressEnoughPairs(final List<GPairRecord<S, S>> crossingPairs, final int largestTerminal) {\n List<GPairRecord<S,S>> apperenceRecord = calculateAppearenceList(crossingPairs, false);\n compressPairsGreedy(apperenceRecord, crossingPairs, largestTerminal);\n\n apperenceRecord = calculateAppearenceList(crossingPairs, true);\n compressPairsGreedy(apperenceRecord, crossingPairs, largestTerminal);\n }",
"private void goForSolution(MinPQ<Node> hq) {\n\t\tNode current = hq.delMin();\n\t\tif (current.board.isGoal()) {\n\t\t\tif (hq == orig) {\n\t\t\t\tresult = new ArrayList<>();\n\t\t\t\twhile (current != null) {\n\t\t\t\t\tresult.add(0, current.board);\n\t\t\t\t\tcurrent = current.parent;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsolved = true;\n\t\t\treturn;\n\t\t}\n\n\t\tfor (Board neighbour : current.board.neighbors()) {\n\t\t\tif (current.parent == null || !neighbour.equals(current.parent.board)) {\n\t\t\t\thq.insert(new Node(neighbour, current.moves + 1, current));\n\t\t\t}\n\t\t}\n\t}",
"protected void percolateUp(int leaf){\n int parent = parent(leaf);\n Bloque value = (Bloque)data.get(leaf);\n while (leaf > 0 && (value.compareTo(data.get(parent)) > 0)){\n data.set(leaf,data.get(parent));\n leaf = parent;\n parent = parent(leaf);\n }\n data.set(leaf,value);\n }",
"public Set pack(Set addfirstfrom) throws PackingException, ParallelException {\r\n Set res = new HashSet(); // Set<Node>\r\n\t\tRandom rand = RndUtil.getInstance().getRandom();\r\n if (addfirstfrom!=null) {\r\n Iterator it = addfirstfrom.iterator();\r\n while (it.hasNext()) {\r\n Node n = (Node) it.next();\r\n if (isFree2Cover(n, res)) {\r\n res.add(n);\r\n updateQueue(n);\r\n }\r\n }\r\n }\r\n boolean cont = true;\r\n while (cont) {\r\n cont = false;\r\n // 1. get the first valid element(s) from the queue\r\n Set candidates = new TreeSet(); // Set<Node>\r\n Iterator it = _nodesq.iterator();\r\n if (it.hasNext() == false) break;\r\n Node first = (Node) it.next();\r\n candidates.add(first);\r\n //System.err.println(\"1. Adding first=\" + first.getId() +\r\n // \" to candidates set w/ card=\" + first.getNNbors().size());\r\n Node n = null;\r\n if (it.hasNext()) {\r\n while (it.hasNext()) {\r\n n = (Node) it.next();\r\n if ((_k==2 && n.getNNbors().size() == first.getNNbors().size()) ||\r\n\t\t\t\t\t\t\t(_k==1 && isApproximatelyEqual(n,first))) {\r\n\t\t\t\t\t\t// 2nd condition used to be:\r\n\t\t\t\t\t\t// (_k==1 && n.getNbors().size() == first.getNbors().size())\r\n candidates.add(n);\r\n continue; // keep adding\r\n }\r\n else if (_k==2 || !isApproximatelyEqualWeight(n,first)) break;\r\n } // while it.hasNext()\r\n System.err.println(\"candidates.size()=\" + candidates.size());\r\n // pick a candidate node at random\r\n int pos = rand.nextInt(candidates.size());\r\n Iterator it2 = candidates.iterator();\r\n for (int i = 0; i < pos; i++) it2.next();\r\n n = (Node) it2.next();\r\n // 2. update the queue\r\n updateQueue(n);\r\n // 3. add the element to the result set\r\n res.add(n);\r\n System.err.println(\"added n=\" + n.getId() + \" res.size()=\" +\r\n res.size() + \" _nodesq.size()=\" + _nodesq.size());\r\n cont = true;\r\n }\r\n else {\r\n if (isFree2Cover(first, res))\r\n res.add(first);\r\n }\r\n }\r\n reset(); // return _nodesq to original situation\r\n return res;\r\n }",
"private void addPrecious(CacheRepositoryEntry entry)\n {\n try {\n long size = entry.getSize();\n synchronized (_precious) {\n if (_precious.add(entry.getPnfsId())) {\n _preciousSpace += size;\n }\n }\n } catch (CacheException e) {\n _log.error(\"failed to get entry size : \" + e.getMessage());\n }\n }",
"public Node removeMin() {\n \t\t// TODO Complete this method!\n \t\tif (indexOfLeastPriority == 2) {\n \t\t\tNode toReturn = getNode(1);\n \t\t\tsetNode(1, null);\n \t\t\treturn toReturn;\n \t\t}\n \t\tint indexOfReplacement = indexOfLeastPriority - 1;\n \t\tNode nodeOfReplacement = getNode(indexOfReplacement);\n \t\tNode toRemove = getNode(1);\n \t\tsetNode(indexOfReplacement, null);\n \t\tsetNode(1, nodeOfReplacement);\n \t\tbubbleDown(1);\n \t\t//decrement IoLP\n \t\tindexOfLeastPriority--;\n \t\treturn toRemove;\n \t}",
"static int knapSack(int W, int wt[], int val[], int n, List<Integer> incl, List<Integer> v) {\r\n\tList<Integer> v1 = new ArrayList<>();\r\n\tList<Integer> v2 = new ArrayList<>();\r\n\t// Base Case\r\n\tif (n == 0 || W == 0)\r\n\t return 0;\r\n\t// If weight of the nth item is more than Knapsack capacity W, then\r\n\t// this item cannot be included in the optimal solution\r\n\tif (wt[n - 1] > W) {\r\n\t return knapSack(W, wt, val, n - 1, incl, v1);\r\n\t}\r\n\r\n\t// Return the maximum of two cases:\r\n\t// (1) nth item included\r\n\t// (2) not included\r\n\telse {\r\n\t System.out.println(wt[n - 1]);\r\n\t v1.add(n - 1);\r\n\t int m = val[n - 1] + knapSack(W - wt[n - 1], wt, val, n - 1, incl, v1);\r\n\t int n1 = knapSack(W, wt, val, n - 1, incl, v2);\r\n\t if (Math.max(m, n1) == m) {\r\n\t\tv.addAll(v1);\r\n\t } else {\r\n\t\tv.addAll(v2);\r\n\t }\r\n\t return Math.max(m, n1);\r\n\t}\r\n }",
"private void removePrecious(CacheRepositoryEntry entry)\n {\n try {\n long size = entry.getSize();\n synchronized (_precious) {\n if (_precious.remove(entry.getPnfsId())) {\n _preciousSpace -= size;\n }\n }\n } catch (CacheException e) {\n _log.error(\"failed to get entry size : \" + e.getMessage());\n }\n }",
"public int seat() {\n int result = 0;\n Pair gap = pq.poll();\n // if left is -1,,, next pos will be 0 for sure\n if (gap.left == -1) {\n result = 0;\n // if right is N.... next pos will be N-1 for sure\n } else if (gap.right == N) {\n result = N - 1 ;\n } else {\n // else it has to be the middle value\n result = gap.left + (gap.right - gap.left ) / 2;\n }\n pq.add(new Pair(gap.left, result));\n pq.add(new Pair(result, gap.right)); \n seats.add(result);\n return result;\n }",
"@Override\n public synchronized Pair<Long, Boolean> add(long water) {\n int size = list.size();\n if (size == 0) {\n list.add(0, water);\n lwm = water;\n return Pair.from(water, true);\n }\n if (water < list.get(0)) {\n return Pair.from(list.get(0), false);\n }\n int index = search(water, 0, size);\n if (list.size() == index) {\n list.ensureCapacity(index + 1);\n list.add(index, water);\n }\n if (water != list.get(index)) {\n list.ensureCapacity(index + 1);\n list.add(index, water);\n }\n long newLwm = shiftTilLwm();\n\n Pair<Long, Boolean> result = Pair.from(newLwm, false);\n if (newLwm > lwm) {\n lwm = newLwm;\n result.setValue(true);\n }\n return result;\n }",
"private void greedy_select_lines(ArrayList<Point> pointSet,\n\t\t\tArrayList<PotentialLine> potentialLines, Bucket front_bucket) {\n\t\tHashMap<Point, ArrayList<PotentialLine>> unused_points = populate_unused_points(\n\t\t\t\tpointSet, potentialLines);\n\n\t\t// Repeatedly select a line from the head bucket and add it to the set\n\t\t// of lines\n\t\twhile (unused_points.size() > 0) {\n\n\t\t\t// Get longest available line and add it to set of lines\n\t\t\tLine selected_line = select_line(front_bucket);\n\t\t\tset_of_lines.add(selected_line);\n\n\t\t\tfor (Point current_point : selected_line.getAllPoints()) {\n\n\t\t\t\tArrayList<PotentialLine> lines_containing_point = unused_points\n\t\t\t\t\t\t.get(current_point);\n\n\t\t\t\tif (lines_containing_point != null) {\n\t\t\t\t\tfor (PotentialLine current_line : lines_containing_point) {\n\n\t\t\t\t\t\t// Decrement number unused points\n\t\t\t\t\t\tcurrent_line.num_unused_points--;\n\n\t\t\t\t\t\t// Move PotentialLine to new bucket\n\t\t\t\t\t\tcurrent_line.bucket.removeLine(current_line);\n\t\t\t\t\t\tcurrent_line.bucket = current_line.bucket\n\t\t\t\t\t\t\t\t.getNextBucket();\n\n\t\t\t\t\t\tif (current_line.bucket.getPreviousBucket() != null\n\t\t\t\t\t\t\t\t&& current_line.bucket.getPreviousBucket()\n\t\t\t\t\t\t\t\t\t\t.isEmpty()) {\n\t\t\t\t\t\t\tcurrent_line.bucket\n\t\t\t\t\t\t\t\t\t.setPreviousBucket(current_line.bucket\n\t\t\t\t\t\t\t\t\t\t\t.getPreviousBucket()\n\t\t\t\t\t\t\t\t\t\t\t.getPreviousBucket());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If we end up between two buckets at a bucket that\n\t\t\t\t\t\t// doesn't\n\t\t\t\t\t\t// exist, we need to create the \"in-between\" bucket for\n\t\t\t\t\t\t// the line\n\t\t\t\t\t\tif (current_line.bucket.getValue() != current_line.num_unused_points) {\n\t\t\t\t\t\t\tBucket new_bucket = new Bucket(\n\t\t\t\t\t\t\t\t\tcurrent_line.num_unused_points);\n\t\t\t\t\t\t\tnew_bucket.setPreviousBucket(current_line.bucket\n\t\t\t\t\t\t\t\t\t.getPreviousBucket());\n\t\t\t\t\t\t\tif (current_line.bucket.getPreviousBucket() != null) {\n\t\t\t\t\t\t\t\tcurrent_line.bucket.getPreviousBucket()\n\t\t\t\t\t\t\t\t\t\t.setNextBucket(new_bucket);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcurrent_line.bucket.setPreviousBucket(new_bucket);\n\t\t\t\t\t\t\tnew_bucket.setNextBucket(current_line.bucket);\n\t\t\t\t\t\t\tcurrent_line.bucket = new_bucket;\n\t\t\t\t\t\t\tnew_bucket.addLine(current_line);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurrent_line.bucket.addLine(current_line);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tunused_points.remove(current_point);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }",
"public final void min() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\tpush(topMostValue);\n\t\t\t} else {\n\t\t\t\tpush(secondTopMostValue);\n\t\t\t}\n\t\t}\n\t}",
"public boolean add(T x) {\n\n\n if (this.size == pq.length) {\n this.resize();\n }\n pq[this.size] = x;\n percolateUp(this.size);\n this.size++;\n System.out.println(\"size is \"+size);\n return true;\n }",
"private void insertMidwest(State state)\r\n\t{\r\n\t\tif (midwestElem == 0)\r\n\t\t{\r\n\t\t\tmidwestQueue[midwestElem++] = state;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n int i;\r\n\t\t\tfor (i = midwestElem - 1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tif (state.getPopulation() > midwestQueue[i].getPopulation())\r\n\t\t\t\t\tmidwestQueue[i+1] = midwestQueue[i];\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tmidwestQueue[i+1] = state;\r\n midwestElem++;\r\n\t\t}\r\n\t}",
"private static int distance(ArrayList<Integer>[] adj, ArrayList<Integer>[] cost, int s, int t) {\n\n Set<Integer> visited = new HashSet<>(); //option 1\n Map<Integer, Integer> distance = new HashMap<>();\n// Queue<Integer> q = new PriorityQueue<>(11, (o1, o2) -> { //option 0\n// Integer d1 = distance.get(o1); //option 0\n// Integer d2 = distance.get(o2); //option 0\n Queue<Map.Entry<Integer, Integer>> q = new PriorityQueue<>(11, (o1, o2) -> { //option 1\n Integer d1 = o1.getValue(); //option 1\n Integer d2 = o2.getValue(); //option 1\n\n if (Objects.equals(d1, d2)) return 0;\n if (d1 == null) return 1;\n if (d2 == null) return -1;\n\n return d1 - d2;\n });\n\n distance.put(s, 0);\n// q.addAll(IntStream.range(0, adj.length).boxed().collect(Collectors.toList())); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(s, 0)); //option 1\n\n while (!q.isEmpty()) {\n// int u = q.remove(); //option 0\n int u = q.remove().getKey(); //option 1\n\n if (u == t) {\n Integer dist = distance.get(u);\n if (dist == null) return -1;\n return dist;\n }\n\n if (visited.contains(u)) continue; //option 1\n visited.add(u); //option 1\n\n List<Integer> adjList = adj[u];\n List<Integer> costList = cost[u];\n for (int i = 0; i < adjList.size(); i++) {\n int v = adjList.get(i);\n int w = costList.get(i);\n Integer dist = distance.get(v);\n Integer newDist = distance.get(u);\n if (newDist != null) newDist += w;\n\n if (newDist != null && (dist == null || dist > newDist)) {\n //relax\n distance.put(v, newDist);\n// q.remove(v); //option 0\n// q.add(v); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(v, distance.get(v))); //option 1\n }\n }\n }\n\n return -1;\n }",
"protected Job getPreemptingJob(Job runJob, long tick) {\n long earliestPreemptingJobReleaseTime = Long.MAX_VALUE;\n Job earliestPreemptingJob = null;\n long runJobFinishTime = tick + runJob.remainingExecTime;\n for (Job job: nextJobOfATask.values()) {\n if (job == runJob)\n continue;\n\n if (job.releaseTime < runJobFinishTime) {\n if (job.task.getPriority() > runJob.task.getPriority()) {\n if (job.releaseTime < earliestPreemptingJobReleaseTime) {\n earliestPreemptingJobReleaseTime = job.releaseTime;\n earliestPreemptingJob = job;\n }\n }\n }\n }\n return earliestPreemptingJob;\n }",
"@Test\n public void testInsertRemoveSeparate() {\n final int count = 100000;\n final int threads = 4;\n final int perThread = count / threads;\n Cache<Integer, Integer> c =\n builder()\n .entryCapacity(-1)\n .weigher((key, value) -> value)\n .maximumWeight(MAX_VALUE)\n .build();\n AtomicInteger offsetInsert = new AtomicInteger();\n AtomicInteger offsetRemove = new AtomicInteger();\n Runnable inserter = () -> {\n int start = offsetInsert.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.put(i, i);\n }\n };\n Runnable remover = () -> {\n int start = offsetRemove.getAndAdd(perThread);\n int end = start + perThread;\n for (int i = start; i < end; i++) {\n c.remove(i);\n }\n };\n ThreadingStressTester tst = new ThreadingStressTester();\n tst.setTestTimeMillis(4000);\n tst.addTask(threads, inserter);\n tst.addTask(threads, remover);\n tst.run();\n for (int k : c.keys()) {\n c.remove(k);\n }\n assertThat(getInfo().getTotalWeight())\n .as(\"total weight is 0\")\n .isEqualTo(0);\n }",
"public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n TreeSet<Long> set = new TreeSet<>();\n for (int i = 0; i < nums.length; ++i) {\n long num = (long)nums[i];\n Long floor = set.floor(num), ceiling = set.ceiling(num);\n if (floor != null && num - floor <= t || ceiling != null && ceiling - num <= t) return true;\n set.add(num);\n if (i >= k) set.remove((long)nums[i - k]);\n }\n return false;\n}",
"public T add(T element) {\n if(maxElements <= 0)\n return element;\n else if(reservoir.size() < maxElements) {\n reservoir.add(element);\n return null;\n }\n else {\n // Get a uniformly distributed int. If the chosen slot lives within the partition, replace the entry in that slot with the newest entry.\n int slot = GenomeAnalysisEngine.getRandomGenerator().nextInt(maxElements);\n if(slot >= 0 && slot < maxElements) {\n T displaced = reservoir.get(slot);\n reservoir.set(slot,element);\n return displaced;\n }\n else\n return element;\n }\n }",
"Nodefh removeMin(){\n\t\t\n\t\tif(min == null){\n\t\t\tNodefh dummy = new Nodefh();\n\t\t\tdummy.index = -1;\n\t\t\treturn dummy;\n\t\t}\n\t\tNodefh temp = new Nodefh();\n\t\ttemp = min;\n\t\tif((min.Child == null) && (min == min.Right)){\n\t\t\tmin = null;\n\t\t\treturn temp;\n\t\t}\n\t\tpairwiseCombine();\n\t\treturn temp;\n\t}",
"private static void bfs(int idx) {\n\t\t\n\t\tQueue<node> q =new LinkedList<node>();\n\t\tq.add(new node(idx,0,\"\"));\n\t\twhile (!q.isEmpty()) {\n\t\t\tnode tmp = q.poll();\n\t\t\tif(tmp.idx<0 ||tmp.idx > 200000) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tmp.cnt> min) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(tmp.idx == k) {\n\t\t\t\tif(tmp.cnt < min) {\n\t\t\t\t\tmin = tmp.cnt;\n\t\t\t\t\tminnode = tmp;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(!visit[tmp.idx] && tmp.idx<=100000) {\n\t\t\t\tvisit[tmp.idx]= true;\n\t\t\t\tq.add(new node(tmp.idx*2, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx-1, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx+1, tmp.cnt+1,tmp.s));\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private void primsMST(List<Vertex> graph) {\n\n\t\tMyPriorityQueue priorityQueue = new MyPriorityQueue(10);\n\t\tfor (Vertex v : graph) {\n\t\t\tv.key = Integer.MAX_VALUE;\n\t\t\tpriorityQueue.add(v);\n\t\t}\n\n\t\tVertex peek = priorityQueue.peek();\n\t\tpeek.key = 0;\n\n\t\twhile (!priorityQueue.isEmpty()) {\n\t\t\t//Vertex minVertex = priorityQueue.poll();\n\t\t\tVertex minVertex = priorityQueue.poll();\n\t\t\t\n\t\t\tif (minVertex.incidentEdges != null && minVertex.incidentEdges.size() > 0) {\n\t\t\t\tfor (Edge edge : minVertex.incidentEdges) {\n\t\t\t\t\tif (/*priorityQueue.contains(edge.end) && */edge.weight < edge.end.key) {\n\t\t\t\t\t\t//priorityQueue.remove(edge.end);\n\t\t\t\t\t\tedge.end.key = edge.weight;\n\t\t\t\t\t\tedge.end.previous = minVertex;\n\t\t\t\t\t\tpriorityQueue.add(edge.end);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private static long calculateBestPickWithoutRepetition(int weight, Item[] items, long[][] DP) {\n\n for(int w = 1; w <= weight; w++) {\n for(int i = 1; i <= items.length; i++) {\n DP[w][i] = DP[w][i-1];\n Item item = items[i-1];\n\n if (item.getWeight() <= w) {\n DP[w][i] = Math.max(DP[w][i], DP[w - item.getWeight() ][i-1] + item.getValue());\n }\n }\n }\n\n return DP[DP.length -1][DP[0].length - 1];\n }",
"private void deductGamePoints(List<Integer> prevGamePoints) {\n for (int i = 0; i < numAlive; i++) {\n int playerTrickPoints = trickPoints.get(i);\n if (playerTrickPoints < 0) {\n int prevPoints = prevGamePoints.get(i);\n int newPoints = prevPoints + playerTrickPoints;\n \n if (newPoints < 0) {\n // Cannot have negative points\n gamePoints.set(i, 0);\n } else {\n gamePoints.set(i, newPoints);\n }\n }\n }\n }",
"public Bag getGreedyBag() {\r\n bag = super.getBag();\r\n List<Integer> auxiliarHand = new LinkedList<Integer>(hand);\r\n\r\n for (int i = 0; i < bag.getCardsIds().size(); i++) {\r\n if (auxiliarHand.contains(bag.getCardsIds().get(i))) {\r\n auxiliarHand.remove(bag.getCardsIds().get(i));\r\n }\r\n }\r\n\r\n if (this.roundNumber % 2 == 0) {\r\n highestProfitIllegalCard = 0;\r\n if (bag.getCards().size() < MAX_CARDS_IN_BAG) {\r\n for (Integer cardId : auxiliarHand) {\r\n if (cardId > MAX_LEGAL_INDEX\r\n && goodsFactory.getGoodsById(cardId).getProfit()\r\n > goodsFactory.getGoodsById(highestProfitIllegalCard).getProfit()) {\r\n highestProfitIllegalCard = cardId;\r\n }\r\n }\r\n if (highestProfitIllegalCard != 0\r\n && (coins - goodsFactory\r\n .getGoodsById(highestProfitIllegalCard)\r\n .getPenalty()) > 0) {\r\n bag.addCard(goodsFactory.getGoodsById(highestProfitIllegalCard));\r\n }\r\n }\r\n }\r\n return bag;\r\n }",
"private AStarNode getMinFScore(ArrayList<AStarNode> openSet) {\n AStarNode save = null;\n for (AStarNode neighbor : openSet) { //linear search\n if (save == null) {\n save = neighbor;\n } else {\n if (save.getFScore() > neighbor.getFScore())\n save = neighbor;\n }\n }\n return save;\n }",
"private Node removeMin(Node node){\n if(node == null)\n return null;\n else if(node.left == null) {//use right child to replace this node (min value node)\n if(node.count!=0){ //multiple value in same node\n node.count--;\n return node;\n }\n else{\n decDepth(node.right); //maintain depth when chain in right tree\n return node.right;\n }\n }\n\n //walk through left branch\n node.left = removeMin(node.left);\n if(node!=null) node.size--; // the min value must be removed\n return node;\n }",
"@Override\n public boolean offer(Object o) {\n\n // Rank is extracted from the header\n Packet packet = (Packet) o;\n PriorityHeader header = (PriorityHeader) packet;\n int rank = (int)header.getPriority();\n\n this.reentrantLock.lock();\n boolean returnValue = false;\n try {\n\n // Keep track of the current queue bounds (Figure 13a in the SP-PIFO paper)\n for (int q=queueList.size()-1; q>=0; q--){\n if(SimulationLogger.hasQueueBoundTrackingEnabled()){\n SimulationLogger.logQueueBound(this.ownId, q, (int)queueBounds.get(q));\n }\n }\n\n // Aggregate adaptation parameters\n int currentQueueBound, currentQueueBoundPlus, currentQueueBoundMinus;\n int QLm, QLh, QLmplus, QLmminus, sumA1, sumA2, sumB1, sumB2;\n\n // SP-PIFO queue scanning process\n for (int q=queueList.size()-1; q>=0; q--){\n currentQueueBound = (int)queueBounds.get(q);\n if ((currentQueueBound <= rank) || q==0) {\n boolean result = queueList.get(q).offer(o);\n\n if (!result){\n // System.out.println(\"Greedy: Packet with rank \" + rank + \" has been dropped from queue \" + q + \".\");\n returnValue = false;\n break;\n } else {\n\n // Update general counter\n this.generalPacketCounter = this.generalPacketCounter + 1;\n\n // We compute the perceived rank\n Object[] contentPIFO = queueList.get(q).toArray();\n Arrays.sort(contentPIFO);\n Packet packet_maxrank = (Packet) contentPIFO[0];\n PriorityHeader header_maxrank = (PriorityHeader) packet_maxrank;\n int rank_perceived = (int)header_maxrank.getPriority();\n if (rank_perceived > rank){\n this.unpifoness = this.unpifoness + (rank_perceived - rank);\n }\n\n // IMPORTANT: If packet enqueued here, means that QLm <= rank < QLh\n // Packet enqueued, we update counters, and return true\n if (q==queueList.size()-1){\n QLh = rank_bound;\n QLm = (int)this.queueBounds.get(q);\n } else {\n QLh = (int)this.queueBounds.get(q+1);\n QLm = (int)this.queueBounds.get(q);\n }\n\n // To consider non continuous rank distributions, we have to keep track of the Qm+1 and Qh-1 ranks per each queue\n // This way we are sure that the boundary move we are analyzing will not be an empty rank\n currentQueueBoundPlus = (int)this.queueBoundsPlus.get(q);\n if (rank > QLm && rank < currentQueueBoundPlus){\n this.queueBoundsPlus.put(q, rank);\n }\n\n // Update counters per queue\n Object currentPackets = countersB21.get(q);\n if (currentPackets == null){\n countersB21.put(q, rank);\n } else {\n countersB21.put(q, (int)currentPackets+rank);\n }\n\n currentPackets = countersB22.get(q);\n if (currentPackets == null){\n countersB22.put(q, 1);\n } else {\n countersB22.put(q, (int)currentPackets+1);\n }\n\n if (rank != QLm){\n currentPackets = countersA21.get(q);\n if (currentPackets == null){\n countersA21.put(q, rank);\n } else {\n countersA21.put(q, (int)currentPackets+rank);\n }\n\n currentPackets = countersA22.get(q);\n if (currentPackets == null){\n countersA22.put(q, 1);\n } else {\n countersA22.put(q, (int)currentPackets+1);\n }\n }\n\n if (q!=queueList.size()-1){\n\n currentQueueBoundMinus = (int) this.queueBoundsMinus.get(q + 1);\n if (rank > currentQueueBoundMinus) {\n this.queueBoundsMinus.put(q + 1, rank);\n }\n\n currentPackets = countersA11.get(q+1);\n if (currentPackets == null){\n countersA11.put(q+1, importance(rank));\n } else {\n countersA11.put(q+1, (int)currentPackets+importance(rank));\n }\n\n currentPackets = countersA12.get(q+1);\n if (currentPackets == null){\n countersA12.put(q+1, (importance(rank))*rank);\n } else {\n countersA12.put(q+1, (int)currentPackets+(importance(rank))*rank);\n }\n\n if(rank != (int)this.queueBoundsMinus.get(q+1)){\n currentPackets = countersB11.get(q+1);\n if (currentPackets == null){\n countersB11.put(q+1, importance(rank));\n } else {\n countersB11.put(q+1, (int)currentPackets+importance(rank));\n }\n\n currentPackets = countersB12.get(q+1);\n if (currentPackets == null){\n countersB12.put(q+1, (importance(rank))*rank);\n } else {\n countersB12.put(q+1, (int)currentPackets+(importance(rank))*rank);\n }\n }\n }\n\n returnValue = true;\n break;\n }\n }\n }\n\n // When the threshold is reached, aggregate adaptation is considered based on the values in counters\n if(this.generalPacketCounter == 1000) {\n\n // Each queue bound expected unpifoness is compared to the one achieved by moving the boundaries\n for(int i=queueBounds.size()-1; i>0; i--){\n\n // Obtain the values of adjacent ranks to analyze\n QLm = (int)this.queueBounds.get(i);\n QLmplus = (int)this.queueBoundsPlus.get(i);\n QLmminus = (int)this.queueBoundsMinus.get(i);\n\n sumA1 = ((QLm) * (int)countersA11.get(i)) - (int)countersA12.get(i);\n sumA2 = (importance(QLm) * (int)countersA21.get(i)) - (importance(QLm) * (QLm) * (int)countersA22.get(i));\n\n if (i==(queueBounds.size()-1)){\n if ((sumA1 < sumA2) && (QLmplus != (int)this.rank_bound)){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmplus);\n }\n } else {\n\n sumB1 = ((QLmminus) * (int)countersB11.get(i)) - (int)countersB12.get(i);\n sumB2 = (importance(QLmminus) * (int)countersB21.get(i)) - (importance(QLmminus) * (QLmminus) * (int)countersB22.get(i));\n\n if ((sumB1 > sumB2) && (QLmminus != (int)this.queueBounds.get(i-1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmminus);\n }\n }\n }\n } else {\n if ((sumA1 < sumA2) && (QLmplus != (int)this.queueBounds.get(i+1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmplus);\n }\n } else {\n\n sumB1 = ((QLmminus) * (int)countersB11.get(i)) - (int)countersB12.get(i);\n sumB2 = (importance(QLmminus) * (int)countersB21.get(i)) - (importance(QLmminus) * (QLmminus) * (int)countersB22.get(i));\n\n if ((sumB1 > sumB2) && (QLmminus != (int)this.queueBounds.get(i-1))){\n if (!this.fixQueueBounds){\n this.queueBounds.put(i, QLmminus);\n }\n }\n }\n }\n\n }\n\n // Reset the counters for the next iteration\n this.queueBoundsPlus.clear();\n this.queueBoundsMinus.clear();\n this.generalPacketCounter = 0;\n this.countersA11.clear();\n this.countersA12.clear();\n this.countersA21.clear();\n this.countersA22.clear();\n this.countersB11.clear();\n this.countersB12.clear();\n this.countersB21.clear();\n this.countersB22.clear();\n for (int i=0; i<queueList.size(); i++){\n countersA11.put(i,0);\n countersA12.put(i,0);\n countersA21.put(i,0);\n countersA22.put(i,0);\n countersB11.put(i,0);\n countersB12.put(i,0);\n countersB21.put(i,0);\n countersB22.put(i,0);\n }\n\n // Reinitialize the adjacent rank values based on the updated queue bounds\n for (int q=0; q<queueList.size(); q++){\n if (q==queueList.size()-1){\n this.queueBoundsPlus.put(q,this.rank_bound);\n this.queueBoundsMinus.put(q,this.queueBounds.get(q-1));\n } else if (q==0){\n this.queueBoundsPlus.put(q,this.queueBounds.get(q+1));\n this.queueBoundsMinus.put(q,0);\n } else{\n this.queueBoundsPlus.put(q,this.queueBounds.get(q+1));\n this.queueBoundsMinus.put(q,this.queueBounds.get(q-1));\n }\n }\n }\n\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.getMessage());\n e.printStackTrace();\n } finally {\n this.reentrantLock.unlock();\n // System.out.println(\"Packet with rank \" + rank + \"enqueued_flag\" + returnValue);\n return returnValue;\n }\n }",
"void percolateDown(int index) {\n int l = leftChild(index);\n int r = rightChild(index);\n int smallest = index;\n if (l < size && compare(pq[l], pq[index]) == -1) {\n smallest = l;\n }\n if (r < size && compare(pq[r], pq[smallest]) == -1) {\n smallest = r;\n }\n if (index != smallest) {\n Comparable temp = pq[smallest];\n pq[smallest] = pq[index];\n pq[index] = temp;\n percolateDown(smallest);\n }\n }",
"private RBNode<T> removeMin(RBNode<T> node){\n //find the min node\n RBNode<T> parent = node;\n while(node!=null && node.getLeft()!=null){\n parent = node;\n node = node.getLeft();\n }\n //remove min node\n if(parent==node){\n return node;\n }\n\n parent.setLeft(node.getRight());\n setParent(node.getRight(),parent);\n\n //don't remove right pointer,it is used for fixed color balance\n //node.setRight(null);\n return node;\n }",
"private PriorityQueue<PCB> newRemainingQueue() {\n\n\t\t// Comparator for sorting low priorities first\n\t\tComparator<PCB> byLowestPriority =\n\t\t\t(p1, p2) -> new Integer(p1.getPriority()).compareTo(p2.getPriority());\n\n\t\treturn new PriorityQueue<>(byLowestPriority);\n\t}",
"public void insertSmallest(Point p) {\n if (size() == 0) {\n first.next = first;\n first.p = p;\n return;\n }\n double leastDist;\n double minimumDistance = Double.POSITIVE_INFINITY;\n Node nearestN = null;\n Node n = first;\n do {\n leastDist = n.p.distanceTo(p) + n.next.p.distanceTo(p);\n leastDist = leastDist - n.p.distanceTo(n.next.p);\n if (leastDist < minimumDistance) {\n nearestN = n;\n minimumDistance = leastDist;\n }\n n = n.next;\n } while (!n.equals(first));\n Node newNode = new Node();\n newNode.p = p;\n newNode.next = nearestN.next;\n nearestN.next = newNode;\n }",
"boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }",
"public void ordenarXPuntajeInsercion() {\r\n\t\tfor (int i = 1; i < datos.size(); i++) {\r\n\t\t\tfor (int j = i; j>0 && ( datos.get(j-1).getPuntaje() > datos.get(j).getPuntaje()); j--) {\r\n\t\t\t\tJugador temp = datos.get(j);\r\n\t\t\t\tdatos.set(j, datos.get(j-1));\r\n\t\t\t\tdatos.set(j-1, temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static int maxSum(int[] a, int k) \n {\n PriorityQueue<Integer> pq = new PriorityQueue<>(); \n for (int x : a) \n pq.add(x); \n \n // Do k negations by removing a minimum element k times \n while (k-- > 0) \n { \n // Retrieve and remove min element \n int temp = pq.poll(); \n \n // Modify the minimum element and add back \n // to priority queue \n temp *= -1; \n pq.add(temp); \n } \n \n // Compute sum of all elements in priority queue. \n int sum = 0; \n for (int x : pq) \n sum += x; \n return sum; \n }",
"int astar(Node src, Node last) {\n\t\tPriorityQueue<Node> pq = new PriorityQueue<>((a, b) -> (a.getPrev().getFullDist()) - (b.getPrev().getFullDist()));\n\t\tsrc.getPrev().setDistance(0);\n\t\tsrc.getPrev().setEstimatedDistToEnd(distance(src, last));\n\t\tlast.setFinished(true);\n\t\tpq.add(src);\n\t\t\n\t\tint count = 0;\n\t\twhile (!pq.isEmpty()) {\n\t\t\tNode n = pq.poll();\n\t\t\tcount++;\n\t\t\tif (n.isFinished()) return count;\n\t\t\tfor (Edge edge = n.getEdge(); edge != null; edge = edge.getNextEdge()) {\n\t\t\t\tLast edgeCheck = edge.getTo().getPrev();\n\t\t\t\tLast nodeCheck = n.getPrev();\n\t\t\t\t\n\t\t\t\tif (edgeCheck.getDistance() > nodeCheck.getDistance() + edge.getWeight()) {\n\t\t\t\t\tif (edgeCheck.getEstimatedDistToEnd() == -1)\n\t\t\t\t\t\tedgeCheck.setEstimatedDistToEnd(distance(edge.getTo(), last));\n\t\t\t\t\tedgeCheck.setDistance(nodeCheck.getDistance() + edge.getWeight());\n\t\t\t\t\tedgeCheck.setLast(n);\n\t\t\t\t\tedgeCheck.setFullDist(edgeCheck.getDistance() + edgeCheck.getEstimatedDistToEnd());\n\t\t\t\t\tpq.add(edge.getTo());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"private static void mergeNext() {\n\t\tString ids[] = getMinGeneIds();\n\t\tString minI = ids[0];\n\t\tString minJ = ids[1];\n\t\tString newEntry = createNewEntry(minI, minJ);\n\t\tTreeMap<String, Double> prevI = distanceMatrix.remove(minI);\n\t\tTreeMap<String, Double> prevJ = distanceMatrix.remove(minJ);\n\t\tminMatrix.remove(minI);minMatrix.remove(minJ);\n\t\tallClusters.remove(minI);allClusters.remove(minJ);\n\t\tTreeMap<String, Double> newTemp = new TreeMap<String, Double>(); \n\t\tfor(String c: allClusters) {\n\t\t\tTreeMap<String, Double> temp = distanceMatrix.get(c);\n\t\t\ttemp.remove(minI);temp.remove(minJ);\n\t\t\tdouble dist1 = prevI.get(c);\n\t\t\tdouble dist2 = prevJ.get(c);\n\t\t\tif(dist1 < dist2) {\n\t\t\t\tnewTemp.put(c,dist1);\n\t\t\t\tupdateMinMatrix(newEntry, c, dist1);\n\t\t\t\ttemp.put(newEntry, dist1);\n\t\t\t\tString minData[] = minMatrix.get(c).split(\";\");\n\t\t\t\tif(minData[0].equals(minI) || minData[0].equals(minJ)) {\n\t\t\t\t\tminMatrix.remove(c);\n\t\t\t\t\tcreateMinMatrixAfterRemoval(c);\n\t\t\t\t}\n\t\t\t\tupdateMinMatrix(c, newEntry, dist1);\n\t\t\t} else {\n\t\t\t\tnewTemp.put(c,dist2);\n\t\t\t\tupdateMinMatrix(newEntry, c, dist2);\n\t\t\t\ttemp.put(newEntry, dist2);\n\t\t\t\tString minData[] = minMatrix.get(c).split(\";\");\n\t\t\t\tif(minData[0].equals(minI) || minData[0].equals(minJ)) {\n\t\t\t\t\tminMatrix.remove(c);\n\t\t\t\t\tcreateMinMatrixAfterRemoval(c);\n\t\t\t\t}\n\t\t\t\tupdateMinMatrix(c, newEntry, dist2);\n\t\t\t}\n\t\t\tdistanceMatrix.put(c, temp);\n\t\t}\n\t\tdistanceMatrix.put(newEntry, newTemp);\n\t\tallClusters.add(newEntry);\n\t\ttotalCluster = allClusters.size();\n\t}",
"void push(Integer x) {\n if (s.isEmpty()) {\n minEle = x;\n s.push(x);\n System.out.println(\"Number Inserted: \" + x);\n return;\n }\n // if new number is less than original minEle\n if (x < minEle) {\n s.push(2 * x - minEle);\n minEle = x;\n } else {\n s.push(x);\n }\n System.out.println(\"Number Inserted: \" + x);\n }",
"public void addGTTotalToretObj(PbReturnObject newCrossPb) {\r\n //\r\n // for(int iloop=0;iloop<GTCol.length;iloop++)//Amit Commented to correct GT Order 16May2011\r\n HashMap<String, ArrayList> tempGt = new HashMap<String, ArrayList>();\r\n// //added by Nazneen\r\n// for(int i=0;i<Qrycolumns.size();i++){\r\n// int getTheMeasurePosInOldRetObj =oColumnList.indexOf(\"A_\"+Qrycolumns.get(i));\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n// }\r\n zerocntretobj = newCrossPb;//bhargavi\r\n this.forzerocount(); //bhargavi\r\n for (int i = 0; i < Qrycolumns.size(); i++) {\r\n int getTheMeasurePosInOldRetObj = oColumnList.indexOf(\"A_\" + Qrycolumns.get(i));\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n boolean flag = checkforChangepercentMsr((String) Qrycolumns.get(i));\r\n ArrayList<String> list = new ArrayList<String>();\r\n if (flag) {\r\n list = getCuurentAndPriorElementIDs((String) Qrycolumns.get(i));\r\n if (list != null && !list.isEmpty()) {\r\n // \r\n // if(list.containsAll(Qrycolumns)){\r\n if (Qrycolumns.containsAll(list)) {\r\n // \r\n ArrayList list1 = tempGt.get((String) list.get(0));\r\n ArrayList list2 = tempGt.get((String) list.get(1));\r\n // \r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n BigDecimal curr = BigDecimal.ZERO;\r\n BigDecimal prior = BigDecimal.ZERO;\r\n BigDecimal crctVal = BigDecimal.ZERO;\r\n BigDecimal sub = BigDecimal.ZERO;\r\n curr = (BigDecimal) list1.get(k);\r\n prior = (BigDecimal) list2.get(k);\r\n // \r\n if (prior.intValue() != 0) {\r\n sub = curr.subtract(prior);\r\n crctVal = (sub.divide(prior, MathContext.DECIMAL32)).multiply(new BigDecimal(100));\r\n }\r\n // \r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, crctVal);\r\n }\r\n }\r\n }\r\n }\r\n if (colViewCount < 2) {\r\n String eleId = Qrycolumns.get(i).toString();\r\n String gtCTAvgTypeStr = \"\";\r\n if (gtCTAvgType != null && gtCTAvgType.containsKey(\"A_\" + eleId)) {\r\n gtCTAvgTypeStr = gtCTAvgType.get(\"A_\" + eleId);\r\n }\r\n if (MsrAggregationMap != null && MsrAggregationMap.containsKey(Qrycolumns.get(i).toString())) {\r\n if (MsrAggregationMap.get(Qrycolumns.get(i).toString()).toString().equalsIgnoreCase(\"avg\") || gtCTAvgTypeStr.equalsIgnoreCase(\"AVG\")) {\r\n int cnt = colViewSortedValues[0].size();\r\n //commmented by Nazneen\r\n// ArrayList list1=tempGt.get((String)Qrycolumns.get(i));\r\n//// \r\n// BigDecimal count = new BigDecimal(cnt);\r\n// for(int k=0;k<GTCol[0].size();k++){\r\n// BigDecimal gtValue = BigDecimal.ZERO;\r\n// BigDecimal finalVal = BigDecimal.ZERO;\r\n// gtValue=(BigDecimal)list1.get(k);\r\n// finalVal=gtValue.divide(count,MathContext.DECIMAL32);\r\n// GTCol[getTheMeasurePosInOldRetObj-totalColBefore].set(k, finalVal);\r\n// }\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n// //added by Nazneen for Avg cols created by formula's\r\n String qry = \"select ACTUAL_COL_FORMULA,REFFERED_ELEMENTS,USER_COL_TYPE,REF_ELEMENT_TYPE,AGGREGATION_TYPE from PRG_USER_ALL_INFO_DETAILS where ELEMENT_ID =\" + eleId;\r\n PbDb pbdb = new PbDb();\r\n try {\r\n PbReturnObject retobj = pbdb.execSelectSQL(qry);\r\n if (retobj.getRowCount() > 0) {\r\n String tempFormula = retobj.getFieldValueString(0, 0);\r\n String refferedElements = retobj.getFieldValueString(0, 1);\r\n String userColType = retobj.getFieldValueString(0, 2);\r\n String refElementType = retobj.getFieldValueString(0, 3);\r\n String aggType = retobj.getFieldValueString(0, 4);\r\n tempFormula = tempFormula.replace(\"SUM\", \"\").replace(\"AVG\", \"\").replace(\"MIN\", \"\").replace(\"MAX\", \"\").replace(\"COUNT\", \"\").replace(\"COUNTDISTINCT\", \"\");\r\n if (!userColType.equalsIgnoreCase(\"summarized\") && !userColType.equalsIgnoreCase(\"calculated\") && aggType.equalsIgnoreCase(\"avg\") || gtCTAvgTypeStr.equalsIgnoreCase(\"AVG\")) {\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(k);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n } else if (userColType.equalsIgnoreCase(\"SUMMARIZED\")) {\r\n String refEleArray[] = refferedElements.split(\",\");\r\n int len = refEleArray.length;\r\n int flag1 = 1;\r\n for (int j = 0; j < len; j++) {\r\n String elementId = refEleArray[j];\r\n String getBussColName = \"select USER_COL_NAME from PRG_USER_ALL_INFO_DETAILS where ELEMENT_ID =\" + elementId;\r\n PbReturnObject retobj1 = pbdb.execSelectSQL(getBussColName);\r\n if (retobj1.getRowCount() > 0) {\r\n String bussColName = retobj1.getFieldValueString(0, 0);\r\n if (tempFormula.contains(bussColName)) {\r\n tempFormula = tempFormula.replace(bussColName, elementId);\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n }\r\n ScriptEngineManager mgr = new ScriptEngineManager();\r\n ScriptEngine engine = mgr.getEngineByName(\"JavaScript\");\r\n String formula = \"\";\r\n int flagVal = 1;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n String newFormula = tempFormula;\r\n for (int j = 0; j < len; j++) {\r\n String elementId = refEleArray[j];\r\n flagVal = 1;\r\n if (Qrycolumns.contains(elementId)) {\r\n if (tempGt.get(elementId) != null) {\r\n if (tempGt.get(elementId).get(k) != null) {\r\n BigDecimal val = (BigDecimal) tempGt.get(elementId).get(k);\r\n newFormula = newFormula.replace(elementId, tempGt.get(elementId).get(k).toString());\r\n } else {\r\n if (newFormula.contains(elementId)) {\r\n flagVal = 0;\r\n }\r\n }\r\n } else {\r\n if (newFormula.contains(elementId)) {\r\n flagVal = 0;\r\n }\r\n }\r\n } else {\r\n flagVal = 0;\r\n }\r\n if (flagVal == 0) {\r\n break;\r\n }\r\n }\r\n if (flagVal == 1) {\r\n if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.SQL_SERVER)) {\r\n newFormula = \"SELECT \" + newFormula;\r\n } else if (ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n } else {\r\n newFormula = \"SELECT \" + newFormula + \" FROM DUAL\";\r\n }\r\n if (!ProgenConnection.getInstance().getDatabaseType().equals(ProgenConnection.MYSQL)) {\r\n PbReturnObject retobj2 = pbdb.execSelectSQL(newFormula);\r\n if (retobj2.getRowCount() > 0) {\r\n formula = retobj2.getFieldValueString(0, 0);\r\n if (formula.equalsIgnoreCase(\"\")) { //Condition added By Govardhan\r\n formula = \"0.00\";\r\n }\r\n BigDecimal finalValue = new BigDecimal(formula);\r\n finalValue = finalValue.setScale(2, RoundingMode.CEILING);\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalValue);\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n break;\r\n }\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n int z = i;\r\n for (int n = 0; n < GTCol[0].size(); n++) {\r\n //code modified by bhargavi\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n\r\n gtValue = (BigDecimal) list1.get(n);\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(n, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n }\r\n } else {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n //code modified by bhargavi\r\n int z = i;\r\n for (int o = 0; o < GTCol[0].size(); o++) {\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(o);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(o, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n }\r\n } catch (SQLException ex) {\r\n// tempGt.put((String)Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj-totalColBefore]);\r\n ArrayList list1 = tempGt.get((String) Qrycolumns.get(i));\r\n // BigDecimal count = new BigDecimal(cnt);\r\n //code modified by bhargavi\r\n int z = i;\r\n for (int k = 0; k < GTCol[0].size(); k++) {\r\n BigDecimal count = new BigDecimal(cnt);\r\n BigDecimal gtValue = BigDecimal.ZERO;\r\n BigDecimal zerocnt = BigDecimal.ZERO;\r\n BigDecimal finalVal = BigDecimal.ZERO;\r\n gtValue = (BigDecimal) list1.get(k);\r\n int zerocnte = zerocntmsr.get(z);\r\n zerocnt = new BigDecimal(zerocnte);\r\n count = count.subtract(zerocnt);\r\n if (count.equals(BigDecimal.ZERO)) {\r\n count = new BigDecimal(cnt);\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n } else {\r\n finalVal = gtValue.divide(count, MathContext.DECIMAL32);\r\n }\r\n GTCol[getTheMeasurePosInOldRetObj - totalColBefore].set(k, finalVal);\r\n z = z + Qrycolumns.size();\r\n }\r\n logger.error(\"Exception:\", ex);\r\n }\r\n } else {\r\n tempGt.put((String) Qrycolumns.get(i), GTCol[getTheMeasurePosInOldRetObj - totalColBefore]);\r\n }\r\n //end of code by Nazneen\r\n }\r\n }\r\n }\r\n for (int iloop = 0; iloop < Qrycolumns.size(); iloop++) {\r\n boolean addGTTest = true;\r\n colGenerator++;\r\n String newColadd = \"A_\" + colGenerator;\r\n// \r\n int getTheMeasurePosInOldRetObj = oColumnList.indexOf(\"A_\" + Qrycolumns.get(iloop));\r\n //getTheMeasurePosInOldRetObj\r\n //newCrossPb.addColumn(newCrossPb.getColumnCount()-1, newColadd, finalColumnTypesInt.get(coli));\r\n int currPos = totalColFilled;//\r\n newCrossPb.cols[currPos] = newColadd;\r\n// newCrossPb.columnTypes[currPos]=this.columnTypes[iloop+totalColBefore];\r\n// newCrossPb.columnTypesInt[currPos]=this.columnTypesInt[iloop+totalColBefore] ;\r\n// newCrossPb.columnSizes[currPos]=this.columnSizes[iloop+totalColBefore] ;\r\n newCrossPb.columnTypes[currPos] = this.columnTypes[getTheMeasurePosInOldRetObj];\r\n newCrossPb.columnTypesInt[currPos] = this.columnTypesInt[getTheMeasurePosInOldRetObj];\r\n newCrossPb.columnSizes[currPos] = this.columnSizes[getTheMeasurePosInOldRetObj];\r\n ArrayList a = GTCol[getTheMeasurePosInOldRetObj - totalColBefore];\r\n newCrossPb.hMap.put(newColadd, a);\r\n totalColFilled++;\r\n// String mName1 =this.cols[totalColBefore+iloop];\r\n// mName1= mName1.replace(\"A_\", \"\");\r\n// int newPos=iloop;\r\n// if(mName1!=null && mName1.length()>0)\r\n// newPos = Qrycolumns.indexOf(mName1);\r\n\r\n ArrayList b = new ArrayList();\r\n for (int cloop = 0; cloop <= colViewCount; cloop++) {\r\n if (cloop == MeasurePos) {\r\n if (crosstabMsrMap != null && crosstabMsrMap.containsKey(queryMeasureName.get(iloop).toString())) {\r\n b.add(crosstabMsrMap.get(queryMeasureName.get(iloop)));\r\n } else {\r\n b.add(nonViewInput.get(queryMeasureName.get(iloop)));//Code change for GT order\r\n } //written by swati\r\n finalCrossTabReportDrillMap.put(newColadd, reportDrillMap.get(queryMeasureName.get(iloop)));\r\n crosstabMeasureId.put(newColadd, queryMeasureName.get(iloop));\r\n// if(!crosstablist.isEmpty()){\r\n// if(lLoop1<crosstablist.size()){\r\n// crosstabmeasureIdsmap.put(crosstablist.get(lLoop1), \"A\"+colGenerator);\r\n// lLoop1++;\r\n// }\r\n// }\r\n// crosstabmeasureIdsmap.put(queryMeasureName.get(iloop), newColadd);\r\n } else {\r\n if (addGTTest == true) {\r\n b.add(GTDisplayName);\r\n addGTTest = false;\r\n } else {\r\n b.add(\"\");\r\n }\r\n }\r\n }\r\n nonViewByMapNew.put(newColadd, b);\r\n nonViewByMapNew1.put(newColadd, b);\r\n GTColName.add(newColadd);\r\n }\r\n\r\n //return(newColadd);\r\n }",
"private long minKey() {\n if (left.size == 0) return key;\n // make key 'absolute' (i.e. relative to the parent of this):\n return left.minKey() + this.key;\n }",
"public static void main(final String[] args) {\n Scanner scan = new Scanner(System.in);\n int num = scan.nextInt();\n int pairs = scan.nextInt();\n final int n = 600;\n MinPQ<Taxicab> min = new MinPQ<Taxicab>();\n for (int i = 0; i <= n; i++) {\n min.insert(new Taxicab(i, i));\n }\n int c = 0;\n int tem = 1;\n while (!min.isEmpty()) {\n Taxicab current = min.delMin();\n if (tem == current.getSum()) {\n c++;\n } else {\n c = 0;\n }\n if (c == pairs - 1) {\n num--;\n if (num == 0) {\n System.out.println(current.getSum());\n break;\n }\n }\n tem = current.getSum();\n if (current.getnum2() < n) {\n min.insert(new Taxicab(\n current.getnum1(), current.getnum2() + 1));\n }\n }\n }",
"public static void QuasiThresholdEditingMinimization (Graph<Integer,String> g, int currentSize, EditSet S){\n\t\t\r\n\t\tboolean existsP4orC4 = false;\r\n\t\tif (currentSize >= minSoFarQTEdit) return; \r\n\t\t\r\n\t\t\r\n\t\tIterator<Integer> a = g.getVertices().iterator();\r\n\t\tIterator<Integer> b;\r\n\t\tIterator<Integer> c;\r\n\t\tIterator<Integer> d;\r\n\t\twhile(a.hasNext()){\r\n\t\t\tInteger A = a.next();\r\n\t\t\t//System.out.print(\"\"+A+\" \");\r\n\t\t\tb = g.getNeighbors(A).iterator();\r\n\t\t\twhile(b.hasNext()){\r\n\t\t\t\tInteger B = b.next();\r\n\t\t\t\tc = g.getNeighbors(B).iterator();\r\n\t\t\t\twhile (c.hasNext()){\r\n\t\t\t\t\tInteger C = c.next();\r\n\t\t\t\t\tif (g.isNeighbor(C, A) || C==A) continue;\r\n\t\t\t\t\td = g.getNeighbors(C).iterator();\r\n\t\t\t\t\twhile (d.hasNext()){\r\n\t\t\t\t\t\tInteger D = d.next();\r\n\t\t\t\t\t\tif (D==B) continue; \r\n\t\t\t\t\t\tif (g.isNeighbor(D,B)) continue;\r\n\t\t\t\t\t\t//otherwise, we have a P4 or a C4\r\n\r\n\t\t\t\t\t\texistsP4orC4 = true;\r\n\t\t\t\t\t\t//System.out.print(\"Found P4: \"+A+\"-\"+B+\"-\"+C+\"-\"+D+\"... not a cograph\\n\");\r\n\r\n\t\t\t\t\t\tif (g.isNeighbor(D,A)) {\r\n\t\t\t\t\t\t\t// we have a C4 = a-b-c-d-a\r\n\t\t\t\t\t\t\t// add a diagonal chord or delete any two edges\r\n\r\n\t\t\t\t\t\t\tif (S.isIn(A, C)==-1) {\r\n\t\t\t\t\t\t\t\tg.addEdge(\"e\"+A+\",\"+C, A,C);\r\n\t\t\t\t\t\t\t\tS.add(A,C);\r\n\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,1+currentSize,S);\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(A, C));\r\n\t\t\t\t\t\t\t\tS.remove(A,C);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (S.isIn(B,D) == -1) {\r\n\t\t\t\t\t\t\t\tg.addEdge(\"e\"+B+\",\"+D, B,D);\r\n\t\t\t\t\t\t\t\tS.add(B,D);\r\n\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,1+currentSize,S);\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B,D));\r\n\t\t\t\t\t\t\t\tS.remove(B,D);\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\tif (S.isIn(A,B) == -1) {\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(A, B));\r\n\t\t\t\t\t\t\t\tS.add(A,B);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (S.isIn(B,C) == -1) {\r\n\t\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, C));\r\n\t\t\t\t\t\t\t\t\tS.add(B,C);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,2+currentSize,S);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+B+\"-\"+C, B,C);\r\n\t\t\t\t\t\t\t\t\tS.remove(B,C);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (S.isIn(C,D) == -1) {\r\n\t\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(C, D));\r\n\t\t\t\t\t\t\t\t\tS.add(C,D);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,2+currentSize,S);\r\n\r\n\t\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+C+\"-\"+D, C,D);\r\n\t\t\t\t\t\t\t\t\tS.remove(C,D);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\tif (S.isIn(D, A) == -1) {\r\n\t\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(D, A));\r\n\t\t\t\t\t\t\t\t\tS.add(D,A);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,2+currentSize,S);\r\n\r\n\t\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+D+\"-\"+A, D,A);\r\n\t\t\t\t\t\t\t\t\tS.remove(D,A);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+A+\"-\"+B,A,B);\r\n\t\t\t\t\t\t\t\tS.remove(A, B);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// all cases with AB deleted are done.\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (S.isIn(D,A) == -1) {\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(D,A));\r\n\t\t\t\t\t\t\t\tS.add(D,A);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (S.isIn(B,C) == -1) {\r\n\t\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, C));\r\n\t\t\t\t\t\t\t\t\tS.add(B,C);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,currentSize+2,S);\r\n\r\n\t\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+B+\"-\"+C, B,C);\r\n\t\t\t\t\t\t\t\t\tS.remove(B,C);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (S.isIn(C,D) == -1) {\r\n\t\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(C, D));\r\n\t\t\t\t\t\t\t\t\tS.add(C,D);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,currentSize+2,S);\r\n\r\n\t\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+C+\"-\"+D,C,D);\r\n\t\t\t\t\t\t\t\t\tS.remove(C,D);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+A+\"-\"+D, A,D);\r\n\t\t\t\t\t\t\t\tS.remove(D,A);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// all cases with AB deleted or AD deleted are done\r\n\t\t\t\t\t\t\t// only need to try BC and CD together deleted.\r\n\r\n\t\t\t\t\t\t\tif (S.isIn(B,C)== -1 && S.isIn(C, D)== -1) {\r\n\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, C));\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(C, D));\r\n\t\t\t\t\t\t\t\tS.add(B,C);\r\n\t\t\t\t\t\t\t\tS.add(C,D);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,currentSize+2,S);\r\n\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+B+\"-\"+C, B,C);\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+C+\"-\"+D, C,D);\r\n\t\t\t\t\t\t\t\tS.remove(B,C);\r\n\t\t\t\t\t\t\t\tS.remove(C,D);\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\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end of C4-handling cases\r\n\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t// this case says:\r\n\t\t\t\t\t\t\t// else D is NOT adjacent to A. Then we have P4=abcd\r\n\t\t\t\t\t\t\t// either add ac or bd or else delete one edge\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//int branchCase = randomInt(1,5);\t\r\n\t\t\t\t\t\t//if (branchCase <= 2) {\r\n\t\t\t\t\t\t\tif (S.isIn(A, C) == -1) {\r\n\t\t\t\t\t\t\t\tg.addEdge(\"e\"+A+\",\"+C, A, C);\r\n\t\t\t\t\t\t\t\tS.add(A,C);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,currentSize+1,S);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(A, C));\r\n\t\t\t\t\t\t\t\tS.remove(A,C);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (S.isIn(B,D) == -1) {\r\n\t\t\t\t\t\t\t\tg.addEdge(\"e\"+B+\",\"+D, B, D);\r\n\t\t\t\t\t\t\t\tS.add(B,D);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,currentSize+1,S);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, D));\r\n\t\t\t\t\t\t\t\tS.remove(B,D);\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\t//else if (branchCase == 3) {\r\n\t\t\t\t\t\t\tif (S.isIn(A,B)== -1) {\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(A, B));\r\n\t\t\t\t\t\t\t\tS.add(A, B);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,currentSize+1,S);\r\n\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+A+\"-\"+B, A,B);\r\n\t\t\t\t\t\t\t\tS.remove(A,B);\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\t//else if (branchCase == 4) {\r\n\t\t\t\t\t\t\tif (S.isIn(B,C) == -1) {\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(B, C));\r\n\t\t\t\t\t\t\t\tS.add(B, C);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,currentSize+1,S);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+B+\"-\"+C, B,C);\r\n\t\t\t\t\t\t\t\tS.remove(B,C);\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\t//else if (branchCase == 5) {\r\n\t\t\t\t\t\t\tif (S.isIn(C,D) == -1) {\r\n\t\t\t\t\t\t\t\tg.removeEdge(g.findEdge(C, D));\r\n\t\t\t\t\t\t\t\tS.add(C,D);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tQuasiThresholdEditingMinimization(g,currentSize+1,S);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tg.addEdge(\"mar-\"+C+\"-\"+D, C,D);\r\n\t\t\t\t\t\t\t\tS.remove(C,D);\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\t\r\n\t\t\t\t\t\t} // end of P4-handling\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (existsP4orC4 == true) return;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} // end d.hasNext()\r\n\t\t\t\t} // end c.hasNext()\r\n\t\t\t} // end b.hasNext()\r\n\t\t} // end a.hasNext()\r\n\r\n\t\t// if we reached here, no P4 was found\r\n\t\tif (existsP4orC4 == false) {\r\n\t\t\t// arrived at a quasi-threshold graph since no P4 or C4 was found\r\n\t\t\tSystem.out.print(\"\\n currentSize = \"+currentSize+\" and minSoFar = \"+minSoFarQTEdit+\"\\n\");\r\n\t\t\tSystem.out.print(\"Modified(Edited) graph has \"+g.getEdgeCount()+\" edges and is:\\n\");\r\n\t\t\tminSoFarQTEdit = currentSize;\r\n\t\t\tSystem.out.print(\"\"+g+\"\\n\");\r\n\t\t\tSystem.out.print(\"Edit set is \" + S + \"\\n\");\r\n\t\t\tNewTools.printToFile(currentSize,g,S,\"QTEditLesMis.txt\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// ...\r\n\t\tSystem.out.print(\"Critical Error. No P_4 or C_4 found in a non-quasi-threshold graph.\\n\");\r\n\t\treturn;\r\n\t}",
"private void relax(DirectedEdge e) {\n int v = e.from(), w = e.to();\n if (distTo[w] > distTo[v] + e.weight()) {\n distTo[w] = distTo[v] + e.weight();\n edgeTo[w] = e;\n if (pq.contains(w)) pq.change(w, distTo[w]);\n else pq.insert(w, distTo[w]);\n }\n }",
"public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n long sz = (long)t + 1;\n Map<Long, Long> map = new HashMap<>();\n for (int i = 0; i < nums.length; ++i) {\n long bucket = getBucket(nums[i], sz);\n if (map.containsKey(bucket)) return true;\n if (map.containsKey(bucket + 1) && Math.abs(nums[i] - map.get(bucket + 1)) < sz) return true;\n if (map.containsKey(bucket - 1) && Math.abs(nums[i] - map.get(bucket - 1)) < sz) return true;\n map.put(bucket, (long)nums[i]);\n if (i >= k) map.remove(getBucket(nums[i - k], sz));\n }\n return false;\n}",
"private Node deleteMin(Node h) {\n if (h.left == null)\n return null;\n\n if (!isRed(h.left) && !isRed(h.left.left))\n h = moveRedLeft(h);\n\n h.left = deleteMin(h.left);\n return balance(h);\n }",
"private void grow(int par1)\n {\n IntHashMapEntry[] ainthashmapentry = this.slots;\n int j = ainthashmapentry.length;\n\n if (j == 1073741824)\n {\n this.threshold = Integer.MAX_VALUE;\n }\n else\n {\n IntHashMapEntry[] ainthashmapentry1 = new IntHashMapEntry[par1];\n this.copyTo(ainthashmapentry1);\n this.slots = ainthashmapentry1;\n this.threshold = (int)((float)par1 * this.growFactor);\n }\n }",
"void reduceStarsBy(final int amount);",
"void dijkstra(int strtval){\n PriorityQueue<Integer> pq = new PriorityQueue<>(new Comparator<Integer>(){\n @Override\n public int compare(Integer i1, Integer i2){\n Node n1 = dlist.get(i1);\n Node n2 = dlist.get(i2);\n return n1.getDist() > n2.getDist()?1 : n1.getDist() < n2.getDist()? -1:0;\n }\n });\n\n Node stnode = dlist.get(strtval);\n stnode.setval(strtval);\n stnode.setDist(0);\n seen.add(strtval);\n pq.add(strtval);\n while(!pq.isEmpty()){\n strtval = pq.poll();\n LinkedList<Node> alist = grp.getOrDefault(strtval, null);\n if(alist != null){\n for(Node node : alist){\n //see distance and then decide if needs to be added to qu is not seen.\n int nval = node.getval();\n int nweg = node.getDist();\n int ddist = dlist.get(nval).getDist();\n int odist = dlist.get(strtval).getDist();\n if(ddist > odist+nweg){\n dlist.get(nval).setval(strtval);\n dlist.get(nval).setDist(odist+nweg);\n }\n //if alerady seen do not cal the distance again.\n if(!seen.contains(nval)){\n seen.add(nval);\n pq.add(nval);\n }\n }\n }\n }\n //print here:\n for(int key: dlist.keySet()){\n System.out.println(key+\" dist:\"+dlist.get(key).getDist()+\" prev:\"+dlist.get(key).getval());\n }\n }",
"private Node deleteMin(Node n)\n {\n if (n.left == null) \n return n.right;\n n.left = deleteMin(n.left); \n n.count= 1 + size(n.left)+ size(n.right); \n return n;\n }",
"public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n for(int i=0;i<nums.length;i++){\n if(i>k){\n //remove nums[i-k-1] in our list\n root=delete(root,nums[i-k-1]);\n }\n //after remove, we can begin determine process and update in the flag\n root = insert(root,nums[i],t);\n if(flag) return true;\n }\n return false;\n }",
"private void cheminMin (ArrayList<Integer> parcours, ArrayList<Integer> sommets, int n, double dist){\r\n\t\t\r\n\t\t//condition d'arret\r\n\t\tif (sommets.size()>=1){\r\n\t\t\tif (n != super.g.getDim()){\r\n\t\t\t\t\r\n\t\t\t\t//test si le parcours n'est pas sup�rieur au parcours total\r\n\t\t\t\tif (dist<super.dist){\r\n\t\t\t\t\tfor (int ind=0; ind<sommets.size(); ind++) {\r\n\t\t\t\t\t\tdouble dist2 = dist + super.g.calculDist(parcours.get(parcours.size()-1), sommets.get(ind));\r\n\t\t\t\t\t\tArrayList<Integer> sommets2 = new ArrayList<Integer>();\r\n\t\t\t\t\t\tArrayList<Integer> parcours2 = new ArrayList<Integer>();\r\n\t\t\t\t\t\tparcours2 = super.copieListe(parcours);\r\n\t\t\t\t\t\tsommets2 = super.copieListe(sommets);\r\n\t\t\t\t\t\tparcours2.add(sommets2.get(ind));\r\n\t\t\t\t\t\tsommets2.remove(ind);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t//appel r�cursif avec les copies avec ajout du sommet dans le parcours\r\n\t\t\t\t\t\tcheminMin(parcours2, sommets2, n-1,dist2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tArrayList<Integer> sommets2 = new ArrayList<Integer>();\r\n\t\t\t\tArrayList<Integer> parcours2 = new ArrayList<Integer>();\r\n\t\t\t\tparcours2 = super.copieListe(parcours);\r\n\t\t\t\tsommets2 = super.copieListe(sommets);\r\n\t\t\t\tparcours2.add(0);\r\n\t\t\t\t\r\n\t\t\t\t//appel r�cursif avec les copies\r\n\t\t\t\tcheminMin(parcours2, sommets2, n-1, dist);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdouble dist2 = super.g.calculDist(0, parcours.get(parcours.size()-1))+dist;\r\n\t\t\tif (dist2<super.dist || super.dist == -1){\r\n\t\t\t\tsuper.dist = dist2;\r\n\t\t\t\tsuper.parcoursMin = super.copieListe(parcours);\r\n\t\t\t\tsuper.parcoursMin.add(0);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void deleteMin() {\n if (isEmpty()) throw new NoSuchElementException(\"Symbol table underflow\");\n root = deleteMin(root);\n assert check();\n }",
"private void updateQueue(Node n) throws PackingException, ParallelException {\n _nodesq.remove(n);\r\n Set nnbors = _k==2 ? n.getNNbors() : n.getNborsUnsynchronized(); // used to be n.getNbors();\r\n _nodesq.removeAll(nnbors);\r\n\t\tif (_k==2) { // itc-20170307: the code in the if is only useful when _k=2\r\n\t\t\t// 1. create the nnnbors set of the nbors of _nnbors U n set\r\n\t\t\tSet nnnbors = new HashSet(); // Set<Node>\r\n\t\t\tSet nbors = n.getNborsUnsynchronized(); // itc-20170307: used to be getNbors()\r\n\t\t\tIterator it = nbors.iterator();\r\n\t\t\twhile (it.hasNext()) {\r\n\t\t\t\tNode nbor = (Node) it.next();\r\n\t\t\t\tSet nnbors2 = _k==2 ? nbor.getNNbors() : nbor.getNborsUnsynchronized(); // used to be nbor.getNbors();\r\n\t\t\t\tnnnbors.addAll(nnbors2);\r\n\t\t\t}\r\n\t\t\tnnnbors.removeAll(nnbors);\r\n\t\t\tnnnbors.remove(n);\r\n\t\t\tnnnbors.retainAll(_nodesq); // don't accidentally insert back bad nodes\r\n\t\t\t// 2. remove the nnnbors nodes from the _nodesq set and re-insert them\r\n\t\t\t// (which updates correctly the _nodesq TreeSet in case of _k==2)\r\n\t\t\t// nnnbors are all the nodes at distance 3 from the node n for _k==2, distance 2 for _k==1\r\n\t\t\t// Update the _nnbors data member of those nodes.\r\n\t\t\t_nodesq.removeAll(nnnbors);\r\n\t\t\t//if (_k==2) {\r\n\t\t\t\tIterator it2 = nnnbors.iterator();\r\n\t\t\t\twhile (it2.hasNext()) {\r\n\t\t\t\t\tNode nb = (Node) it2.next();\r\n\t\t\t\t\tnb.getNNbors().removeAll(nnbors);\r\n\t\t\t\t\tnb.getNNbors().remove(n);\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t_nodesq.addAll(nnnbors);\r\n\t\t\t//if (_k==2) \r\n\t\t\t nnbors.clear(); // clear n's NNbors\r\n\t\t}\r\n }"
]
| [
"0.58836347",
"0.5775732",
"0.56594956",
"0.5619164",
"0.5608078",
"0.5583587",
"0.55333966",
"0.5517948",
"0.5513556",
"0.54430175",
"0.54078734",
"0.5388274",
"0.5316935",
"0.531455",
"0.53112406",
"0.53069824",
"0.5279192",
"0.52735114",
"0.52558225",
"0.5251405",
"0.52488786",
"0.51990736",
"0.5172077",
"0.5168303",
"0.5166505",
"0.51599073",
"0.5151603",
"0.51374984",
"0.5131063",
"0.51116925",
"0.5109328",
"0.51082027",
"0.5101603",
"0.50977784",
"0.50911653",
"0.50898945",
"0.50851464",
"0.508513",
"0.5073337",
"0.5061018",
"0.50526273",
"0.50526273",
"0.50406647",
"0.5040444",
"0.5029055",
"0.5013712",
"0.5012751",
"0.501046",
"0.5009335",
"0.5005278",
"0.49960887",
"0.49958897",
"0.49957553",
"0.49937302",
"0.4990169",
"0.49892455",
"0.49885204",
"0.49875236",
"0.49864125",
"0.49815843",
"0.49808615",
"0.49776897",
"0.4967278",
"0.49643475",
"0.49616224",
"0.49606687",
"0.4960101",
"0.49597377",
"0.49525285",
"0.49500257",
"0.4946229",
"0.4937639",
"0.49334103",
"0.49333066",
"0.4928157",
"0.49246928",
"0.49246913",
"0.49223188",
"0.49217898",
"0.49210453",
"0.49191725",
"0.4919052",
"0.49189156",
"0.49158195",
"0.49126336",
"0.4911353",
"0.49097922",
"0.4908622",
"0.4908453",
"0.4908346",
"0.49029103",
"0.48919794",
"0.4891641",
"0.48905137",
"0.4889346",
"0.48876613",
"0.48854566",
"0.48826683",
"0.48795897",
"0.4875717",
"0.48741013"
]
| 0.0 | -1 |
Creates new form main | public mainmen() {
try {
this.setContentPane(new javax.swing.JLabel(new javax.swing.ImageIcon(getClass().getResource("/splash-bg.jpg"))));
initComponents();
RobotoText = Font.createFont(Font.TRUETYPE_FONT, getClass().getResource("/Roboto/Roboto-Regular.ttf").openStream());
ge.registerFont(RobotoText);
RobotoTitle = Font.createFont(Font.TRUETYPE_FONT, getClass().getResource("/Roboto/Roboto-Bold.ttf").openStream());
ge.registerFont(RobotoTitle);
} catch (Exception e ) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public MainForm() {\n initComponents();\n \n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"private FrmMainForm() {\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"public frmModelMainForm() {\n initComponents();\n }",
"protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public cinema_main_form() {\n \t\t\n \t\tmain_frame = new JFrame();//main frame\n\t\tmain_panel = new JPanel();//kedriko panel\n\t\t\n\t\t// Add the panel to the frame.\n\t\tmain_frame.getContentPane().add(main_panel, BorderLayout.CENTER);\n \t\n initComponents();\n\t\n\t\t// Exit when the window is closed.\n\t\tmain_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }",
"public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}",
"public FormInserir() {\n initComponents();\n }",
"@AutoGenerated\n\tprivate void buildMainLayout() {\n\t\tmainLayout = new FormLayout();\n\t\t\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\tusername = new TextField(\"Username\");\n\t\tpassword = new TextField(\"Password\");\n\t\tmainLayout.addComponent(username);\n\t\tmainLayout.addComponent(password);\n\n\t\tlogin = new Button(\"Login\");\n\t\tregister = new Button(\"Register\");\n\n\t\tmainLayout.addComponent(login);\n\t\tmainLayout.addComponent(register);\n\t\t\n\t\tlogin.addClickListener(this);\n\t\tregister.addClickListener(this);\n\t\t\n\t}",
"public MainForm(IEngine engine) {\n\n this.engine = engine;\n generalConfigurationButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n PanelForm panelForm = new PanelForm(engine);\n panelForm.initialize();\n }\n });\n //preferencje\n edytujPreferencjeButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n Choice preferencje=new Choice(engine,preferences);\n }\n });\n\n generateButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n List<Group> g= DataLoader.loadGroups();\n List<Room> r = DataLoader.loadRooms();\n try {\n List<Teacher> t = DataLoader.loadTeachers(preferences);\n JOptionPane.showMessageDialog(new JFrame(), GenereteTametable.generuj(g,r,t) );\n }\n catch (Exception e)\n {\n JOptionPane.showMessageDialog(new JFrame(), \"Brak przedmiotu! \\n\" +\n \"Przedmioty odpowiadaja prowadzacy w kolejnosci wpisywania\\n\" +\n \"upewnij sie ze dane zostaly wprowadzone poprawnie!\");\n }\n\n }\n });\n }",
"public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public form() {\n initComponents();\n }",
"private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }",
"public static void main(String[] args) \n\t{\n RegistrationForm r = new RegistrationForm(); \n \n\t}",
"public static void main(String[] args) {\r\n form_menu form_menu1 = new form_menu();\r\n }",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"public static void main (String [] args){\r\n //Creo el objeto\r\n Formulario Form= new Formulario();\r\n Form.setBounds(0,0,400,550);\r\n Form.setVisible(true);\r\n Form.setLocationRelativeTo(null);\r\n \r\n }",
"public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }",
"public MainForm() {\n initComponents();\n \n Utility.centerScreen(this);\n myself = this;\n }",
"public frmMain() {\n initComponents();\n setTanggal();\n setJam();\n }",
"public FrmMainVIEW() {\n initComponents();\n }",
"public void buildMainGUI(){\n // Clear the frame\n rebuildFrame();\n \n // Header options in main GUI\n header.setText(\" Problem choice: \");\n \n //------Unique panel objects here---------\n \n JButton project1Button = new JButton(\"Project 1 - Search, Constraint Satisfaction, and Graph Coloring\");\n project1Button.addActionListener((ActionEvent e) -> {\n \n // If pressed, build project 1 GUI\n buildProject1GUI();\n \n });\n controlPanel.add(project1Button);\n \n \n //----------------------------------------\n \n // Display GUI after finished building\n controlFrame.pack();\n controlFrame.setVisible(true);\n }",
"public frm_tutor_subida_prueba() {\n }",
"private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public Project_Create() {\n initComponents();\n }",
"private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"public EventForm(String type, int eventID, Day day, CalendarForm mainForm) {\n formType = type;\n this.eventID = eventID;\n initialDay = day;\n chosenDay = day;\n this.mainForm = mainForm;\n eventToEdit = day.getEvent(eventID);\n frame = new JFrame();\n lblDay = new JLabel(\"Day:\");\n lblMonth = new JLabel(\"Month:\");\n lblName = new JLabel(\"Event name:\");\n lblTime = new JLabel(\"Start Time:\");\n lblDuration = new JLabel(\"Duration:\");\n cmbDay = new JComboBox();\n cmbMonth = new JComboBox();\n txtName = new JTextField(10);\n radSelectTime = new JRadioButton(\"Choose Time\", true);\n radAutoTime = new JRadioButton(\"Generate Time\", false);\n buttonGroup = new ButtonGroup();\n cmbTime = new JComboBox();\n cmbDuration = new JComboBox();\n btnSubmit = new JButton(type);\n DateFormatSymbols cal = new DateFormatSymbols();\n monthNames = cal.getMonths();\n gbc = new GridBagConstraints();\n freeTimes = new ArrayList();\n usedTimes = new ArrayList();\n txtName.requestFocus();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public frmAfiliado() {\n initComponents();\n \n }",
"private void initialize() {\n\t\tfrmAddForm = new JFrame();\n\t\tfrmAddForm.setTitle(\"Add Form\");\n\t\tfrmAddForm.setBounds(100, 100, 450, 300);\n\t\tfrmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddForm.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel addFormTitle = new JLabel(\"Add Form\");\n\t\taddFormTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 19));\n\t\taddFormTitle.setBounds(174, 10, 108, 23);\n\t\tfrmAddForm.getContentPane().add(addFormTitle);\n\t\t\n\t\tJLabel firstNameLabel = new JLabel(\"First Name:\");\n\t\tfirstNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tfirstNameLabel.setBounds(10, 72, 76, 13);\n\t\tfrmAddForm.getContentPane().add(firstNameLabel);\n\t\t\n\t\tJLabel lastNameLabel = new JLabel(\"Last Name:\");\n\t\tlastNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlastNameLabel.setBounds(10, 120, 76, 13);\n\t\tfrmAddForm.getContentPane().add(lastNameLabel);\n\t\t\n\t\tJLabel ageLabel = new JLabel(\"Age:\");\n\t\tageLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tageLabel.setBounds(10, 165, 76, 13);\n\t\tfrmAddForm.getContentPane().add(ageLabel);\n\t\t\n\t\tfirstNameText = new JTextField();\n\t\tfirstNameText.setToolTipText(\"Enter first name.\");\n\t\tfirstNameText.setBounds(146, 70, 96, 19);\n\t\tfrmAddForm.getContentPane().add(firstNameText);\n\t\tfirstNameText.setColumns(10);\n\t\t\n\t\tlastNameText = new JTextField();\n\t\tlastNameText.setToolTipText(\"Enter last name.\");\n\t\tlastNameText.setColumns(10);\n\t\tlastNameText.setBounds(146, 118, 96, 19);\n\t\tfrmAddForm.getContentPane().add(lastNameText);\n\t\t\n\t\tageText = new JTextField();\n\t\tageText.setToolTipText(\"Enter age.\");\n\t\tageText.setColumns(10);\n\t\tageText.setBounds(146, 163, 96, 19);\n\t\tfrmAddForm.getContentPane().add(ageText);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstatusLabel.setBounds(294, 121, 122, 23);\n\t\tfrmAddForm.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton addButton = new JButton(\"Add\");\n\t\taddButton.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// holds the values from text fields later\n\t\t\t\t\tString firstName = \"\";\n\t\t\t\t\tString lastName = \"\";\n\t\t\t\t\tint age = 0;\n\t\t\t\t\t\n\t\t\t\t\tString user = \"root\";\n\t\t\t\t\tString password = \"\";\n\t\t\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\", user, password);\n\t\t\t\t\tStatement stmnt = con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\t// get the values from text field\n\t\t\t\t\tfirstName = firstNameText.getText();\n\t\t\t\t\tlastName = lastNameText.getText();\n\t\t\t\t\tage = Integer.parseInt(ageText.getText());\n\t\t\t\t\t\n\t\t\t\t\tString sql = \"insert into test (firstName, lastName, age)\" + \n\t\t\t\t\t\"values (\" + \"'\" + firstName + \"',\" + \"'\" + lastName + \"',\" + \"'\" + age + \"')\"; \n\t\t\t\t\t\n\t\t\t\t\tif (stmnt.execute(sql) == false) {\n\t\t\t\t\t\t//System.out.println(\"Record added.\");\n\t\t\t\t\t\tString message = \"Record added.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t\tfirstNameText.setText(null);\n\t\t\t\t\t\tlastNameText.setText(null);\n\t\t\t\t\t\tageText.setText(null);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//System.out.println(\"Recorded failed to add.\");\n\t\t\t\t\t\tString message = \"Failed to add record.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception a) {\n\t\t\t\t\ta.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddButton.setToolTipText(\"Add record to database.\");\n\t\taddButton.setBounds(157, 211, 85, 42);\n\t\tfrmAddForm.getContentPane().add(addButton);\n\t\t\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddForm.setVisible(false);\n\t\t\t\tMenu menu = new Menu();\n\t\t\t\tmenu.run();\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(0, 0, 85, 21);\n\t\tfrmAddForm.getContentPane().add(backButton);\n\t}",
"public mainUI() {\n initComponents();\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 MainForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"Sistema Kárdex\");\n\n this.clienteServer = new Cliente(this);\n lstKardex = new BaseDeDatosKardex();\n lstKardex.inicializarKardex();\n }",
"public frmMain() {\n initComponents();\n pnlMemoria.setBackground(Color.GRAY);\n g = pnlMemoria.getGraphics();\n pnlMemoria.paintComponents(g);\n txtTablaProcesos.setEditable(false);\n listProcesos.setModel(procesos_en_disco);\n Proceso proceso = new Proceso(\"Sistema Operativo\");\n proceso.start();\n }",
"public NewClassForm(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n initialization();\n onLoading();\n }",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"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 SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }",
"public MainEntry() {\n initComponents();\n }",
"public MainForm getMainForm(){\n\t\treturn this.mainForm;\n\t}",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Main_Etudiant() {\n initComponents();\n }",
"private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }",
"public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}",
"protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }",
"public Form getForm() {\n if (form == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n form = new Form(\"Form\", new Item[] { getStringItem() });//GEN-BEGIN:|14-getter|1|14-postInit\n form.addCommand(getExitCommand());\n form.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return form;\n }",
"public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }",
"public TorneoForm() {\n initComponents();\n }",
"public static void main(String args[]){\r\n JFrame frame = new JFrame();\r\n frame.getContentPane().add(new S2SSubmissionDetailForm());\r\n// frame.setSize(690,420);\r\n frame.pack();\r\n frame.show();\r\n// frame.setVisible(true);\r\n }",
"public FrameForm() {\n initComponents();\n }",
"public CreateNewScreening(MainWindow main_window) {\n this.main_window = main_window;\n initComponents();\n \n // Center align the login window\n this.setLocationRelativeTo(null);\n \n for(Film current_film : main_window.core_controller.film_controller.getFilms()){\n this.film_combo.addItem(current_film);\n }\n\n for(Screen current_screen : main_window.core_controller.screen_controller.getScreens()){\n this.screen_combo.addItem(current_screen);\n }\n\n\n GregorianCalendar today_date = new GregorianCalendar();\n\n System.out.println(today_date.get(Calendar.DAY_OF_MONTH));\n\n this.date_day.setSelectedItem(today_date.get(Calendar.DAY_OF_MONTH)+\"\");\n this.date_month.setSelectedItem((today_date.get(Calendar.MONTH)+1)+\"\");\n this.date_year.setSelectedItem(today_date.get(Calendar.YEAR)+\"\");\n }",
"public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }",
"public MainGUI() {\n initComponents();\n caja = new CajaGUI();\n estadisticas = new EstadisticasGUI();\n caja.disableAll();\n tab.add(\"Caja\", caja);\n tab.add(\"Estadísticas\", estadisticas);\n tab.setToolTipTextAt(0, \"Manejo de la Caja Diaria\");\n tab.setToolTipTextAt(1, \"Estadisticas de ventas y productos\");\n menuAdmin = new JMenu(\"Administrador\");\n menuUsuario = new JMenuItem();\n this.setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icono.png\")).getImage());\n this.setTitle(\"Sistema de Gestión de Quiniela\");\n\n }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t\tMySQLConnect dal = new MySQLConnect();\r\n\t\t\ttry {\r\n\t\t\t\tString name;\r\n\t\t\t\tString date;\r\n\t\t\t\tString desc;\r\n\t\t\t\tString course;\r\n\t\t\t\tString type;\r\n\t\t\t\tString prior;\r\n\t\t\t\tScanner scan = new Scanner(System.in);\r\n\t\t\t\tSystem.out.println(\"Name: \");\r\n\t\t\t\tname = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Due Date(YYYY-MM-DD): \");\r\n\t\t\t\tdate = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Description: \");\r\n\t\t\t\tdesc = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Course: \");\r\n\t\t\t\tcourse = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Type: \");\r\n\t\t\t\ttype = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Priority: \");\r\n\t\t\t\tprior = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"The following form was added to the database:\");\r\n\t\t\t\tString[] check = dal.addForm(name.toString(),\"admin\",date.toString(),desc.toString(),course.toString(),type.toString(),prior.toString());\r\n\t\t\t\tfor(int i=0; i<check.length; i++){\r\n\t\t\t\t\tSystem.out.print(check[i] + \" \");\r\n\t\t\t\t}\r\n\t\t\t\t//test confirmation that button works\r\n\t\t\t\ttextArea.append(\"Form Submitted!\\n\");\r\n\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}",
"public createclass() {\n initComponents();\n this.setLocationRelativeTo(null);\n getdata();\n }",
"private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}",
"void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}",
"public mainpagee() {\n initComponents();\n }",
"private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}",
"public formPrincipal() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}",
"public Form() {\n initComponents();\n }",
"@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"360px\");\r\n\t\tmainLayout.setHeight(\"440px\");\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"360px\");\r\n\t\tsetHeight(\"440px\");\r\n\t\t\r\n\t\t// userSelect\r\n\t\tuserSelect = new ListSelect();\r\n\t\tuserSelect.setCaption(\"Select User\");\r\n\t\tuserSelect.setImmediate(false);\r\n\t\tuserSelect.setWidth(\"320px\");\r\n\t\tuserSelect.setHeight(\"326px\");\r\n\t\tmainLayout.addComponent(userSelect, \"top:34.0px;left:20.0px;\");\r\n\t\t\r\n\t\t// submitButton\r\n\t\tsubmitButton = new Button();\r\n\t\tsubmitButton.setCaption(\"OK\");\r\n\t\tsubmitButton.setImmediate(true);\r\n\t\tsubmitButton.setWidth(\"-1px\");\r\n\t\tsubmitButton.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(submitButton, \"top:394.0px;left:155.0px;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public NewJFrame() {\r\n initComponents();\r\n }",
"void createMainContent() {\n appContent = new DashboardMain(this);\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}",
"private void btnCreateHeroActionPerformed() {// GEN-FIRST:event_btnCreateHeroActionPerformed\r\n\t\tdispose();\r\n\t\tHero h = new Hero(txtCreateName.getText());\r\n\t\tnew MainForm().setVisible(true);\r\n\t\tMainForm.setHero(h);\r\n\t\tMainForm.makeOpponents();\r\n\t\th = null;\r\n\t}",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"private void initialize() {\r\n\t\tfrmCadastro = new JFrame();\r\n\t\tfrmCadastro.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\r\n\t\tfrmCadastro.setTitle(\"Cadastro\");\r\n\t\tfrmCadastro.setBounds(100, 100, 410, 213);\r\n\t\tfrmCadastro.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmCadastro.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Aluno\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(25, 65, 160, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Funcionario\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton_1.setBounds(217, 65, 152, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tJLabel lblQualCadastroDeseja = new JLabel(\"Qual cadastro deseja realizar?\");\r\n\t\tlblQualCadastroDeseja.setFont(new Font(\"Nirmala UI\", Font.BOLD | Font.ITALIC, 20));\r\n\t\tlblQualCadastroDeseja.setBounds(49, 20, 305, 34);\r\n\t\tfrmCadastro.getContentPane().add(lblQualCadastroDeseja);\r\n\r\n\t\t\r\n\t}",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public CreateAccountGUI() throws Exception{\n\r\n\t\tsuper();\r\n\r\n\t\tsetTitle(\"Create an account\");\r\n\t\tsetSize(600, 400);\r\n\t\tsetBackground(Color.CYAN);\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n\t\tsetLocationRelativeTo(null);\r\n\r\n\t\tString[] labels = {\"Username: \", \"First Name: \", \"Surname: \",\r\n \"Mobile Number: \", \"Date Of Birth: \", \"City: \",\n \"Profile Pic (e.g. pic.png): \"};\n\t\tint input = labels.length;\n\n ArrayList<JTextField> fields = new ArrayList<JTextField>();\n\n\t\tJPanel create = new JPanel(new SpringLayout());\r\n\t\tfor (int i = 0; i < input; i++) {\r\n\t\t\tJLabel para = new JLabel(labels[i], JLabel.TRAILING);\r\n\t\t\tcreate.add(para);\r\n\t\t\tJTextField form = new JTextField(10);\n fields.add(form);\n\t\t\tpara.setLabelFor(form);\r\n\t\t\tcreate.add(form);\r\n\t\t\tsuper.add(create);\r\n\t\t}\r\n\t\tJButton fin = new JButton(\"Create\");\r\n\t\tfin.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent sendMessage){\n try\n {\n String username = fields.get(0).getText();\n String firstname = fields.get(1).getText();\n String surname = fields.get(2).getText();\n String mobnum = fields.get(3).getText();\n String dob = fields.get(4).getText();\n String city = fields.get(5).getText();\n String imgpath = fields.get(6).getText();\n Account acc = new Account(username, firstname, surname,\n mobnum, dob, city, 0, null, imgpath);\n ReadWriteAccount rwa = new ReadWriteAccount(\"data.db\");\n rwa.write(acc);\n get_main().set_home(acc);\n dispose();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n\t\t\t}\r\n\t\t});\r\n\t\tsuper.add(fin, BorderLayout.SOUTH);\r\n\t\tCreateAccountGUI.makeForm(create,\r\n\t\t\t\tinput, 2,\r\n\t\t\t\t6, 6,\r\n\t\t\t\t20, 20);\n\n setVisible(true);\n\r\n\t}",
"public void btn_newEntry() throws IOException, SQLException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewEntry.fxml\"));\n Parent parent = fxmlLoader.load();\n NewEntryController newEntryController = fxmlLoader.<NewEntryController>getController();\n newEntryController.setPresenter(presenter);\n newEntryController.fillComboBox();\n this.stageNewEntry = new Stage();\n stageNewEntry.setTitle(bundle.getString(\"entryNew.title\"));\n stageNewEntry.setScene(new Scene(parent, 400, 400));\n stageNewEntry.setAlwaysOnTop(true);\n stageNewEntry.setResizable(false);\n stageNewEntry.initModality(Modality.APPLICATION_MODAL);\n stageNewEntry.getIcons().add(new Image(String.valueOf(this.getClass().getResource(\"images/logo.png\"))));\n stageNewEntry.show();\n }",
"private void createForm() throws IOException {\n\t\t\t\n\t\t\t \n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grab(app.getVisibleLocation().getCityID(), app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\t\n\t\t\ttmp = app.getCurrent();\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp.getName() + \", \" + tmp.getCount() + \", \" + tmp.getLon() + \", \" + tmp.getLat()); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\t\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp = new JLabel(\"Temp: \"); //label for temp\n\t\t\tlbltemp.setForeground(Color.WHITE);\n\t\t\tlbltemp.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp2 = new JLabel(\"\" + tmp.getTemp()); //actual temp\n\t\t\tlbltemp2.setForeground(Color.WHITE);\n\t\t\tlbltemp2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humid\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\t\n\t\t\t//used to set picture\n\t\t\tBufferedImage pic = tmp.getIcon();\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t\n\t\t\t//Set the colours for the background gradient\n\t\t\tsetBgColours(tmp);\n\t\t\t\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(currentPanel);\n\t\t\tcurrentPanel.setLayout(layout);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets weather Data labels\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset2)\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\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//currentPanel.setLayout(layout); //sets the layout\t\t\n\t\t\tcurrentPanel.validate();\n\t\t\tcurrentPanel.repaint();\n\n\t\t\t try {\n\t\t\t\t\tapp.storePref();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJFrame error = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t}",
"public abstract void addEditorForm();",
"public frmPrincipal() {\n initComponents();\n }",
"@Override\n\tpublic void createContents(Panel mainPanel) {\n\t\tmainPanel.setLayout(new ColumnLayout(5));\n\t\tnew Label(mainPanel).setText(\"El jugador\");\n\t\tnew Label(mainPanel).setText(this.getModel().nombre);\n\t\tnew Label(mainPanel).setText(\"se retira con \");\n\t\tnew Label(mainPanel).bindValueToProperty(Jugador.FICHAS);\n\t\tnew Label(mainPanel).setText(\"$\");\n\t Button boton = new Button(mainPanel).setCaption(\"OK\");\n\t boton.onClick(new MessageSend(this,\"cerrar\"));\n\t \n\t \n\t \n\t}",
"public frmVenda() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }"
]
| [
"0.7554059",
"0.73695004",
"0.716449",
"0.716449",
"0.716449",
"0.7137802",
"0.6943197",
"0.69002086",
"0.68223894",
"0.67711145",
"0.6742878",
"0.67203844",
"0.6637302",
"0.6628593",
"0.6601603",
"0.6600567",
"0.6600567",
"0.65519327",
"0.65442747",
"0.6534419",
"0.6533982",
"0.64899594",
"0.6401401",
"0.6392698",
"0.6354101",
"0.63530016",
"0.6352533",
"0.633372",
"0.6304113",
"0.6297606",
"0.6295225",
"0.62932736",
"0.6283545",
"0.6283449",
"0.6282265",
"0.62599635",
"0.625859",
"0.6255279",
"0.624964",
"0.6249496",
"0.6241444",
"0.6232135",
"0.62143135",
"0.62104166",
"0.6207215",
"0.6198602",
"0.6172625",
"0.6172625",
"0.6172625",
"0.6172625",
"0.6172625",
"0.6170784",
"0.6164247",
"0.61608243",
"0.61597127",
"0.6154668",
"0.61523634",
"0.6150031",
"0.6139901",
"0.61338484",
"0.613024",
"0.6129379",
"0.6121197",
"0.61134917",
"0.61125535",
"0.6101643",
"0.60941815",
"0.60931623",
"0.60924035",
"0.60918534",
"0.60851985",
"0.6082686",
"0.60778147",
"0.6075343",
"0.60711735",
"0.60675865",
"0.6066968",
"0.60563034",
"0.60549426",
"0.6050514",
"0.6050227",
"0.60501885",
"0.6049195",
"0.60358375",
"0.6027369",
"0.6027305",
"0.6025576",
"0.60180557",
"0.600507",
"0.6002473",
"0.6002048",
"0.59973603",
"0.59940594",
"0.5991265",
"0.5988841",
"0.5988565",
"0.5986513",
"0.59862494",
"0.5985135",
"0.59785736",
"0.59774524"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. //GENBEGIN:initComponents | private void initComponents() {
pnlHeader = new javax.swing.JPanel();
lblCompanyName = new javax.swing.JLabel();
pnlMainButtons = new javax.swing.JPanel();
pnlPreLog = new javax.swing.JPanel();
btnSignUp = new javax.swing.JButton();
btnLogIn = new javax.swing.JButton();
btnFAQPre = new javax.swing.JButton();
pnlPostLog = new javax.swing.JPanel();
btnPay = new javax.swing.JButton();
btnSignOut = new javax.swing.JButton();
btnFAQPost = new javax.swing.JButton();
pnlBody = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jPanel5 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
setTitle("Home");
setMinimumSize(new java.awt.Dimension(1280, 720));
setResizable(false);
addComponentListener(new java.awt.event.ComponentAdapter() {
public void componentShown(java.awt.event.ComponentEvent evt) {
formComponentShown(evt);
}
});
pnlHeader.setBackground(new java.awt.Color(242, 100, 25));
lblCompanyName.setBackground(new java.awt.Color(255, 255, 255));
lblCompanyName.setFont(new Font("RobotoTitle", Font.BOLD, 36));
lblCompanyName.setForeground(new java.awt.Color(255, 255, 255));
lblCompanyName.setText("HELIOS SYSTEM INC.");
pnlMainButtons.setBackground(new java.awt.Color(255, 157, 84));
pnlMainButtons.setLayout(new java.awt.CardLayout());
pnlPreLog.setBackground(new java.awt.Color(242, 100, 25));
pnlPreLog.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
btnSignUp.setBackground(new java.awt.Color(242, 100, 25));
btnSignUp.setFont(new java.awt.Font("Open Sans", 1, 12)); // NOI18N
btnSignUp.setForeground(new java.awt.Color(255, 255, 255));
btnSignUp.setText("Sign Up");
btnSignUp.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnSignUpActionPerformed(evt);
}
});
pnlPreLog.add(btnSignUp, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 0, 195, 36));
btnLogIn.setBackground(new java.awt.Color(242, 100, 25));
btnLogIn.setFont(new java.awt.Font("Open Sans", 1, 12)); // NOI18N
btnLogIn.setForeground(new java.awt.Color(255, 255, 255));
btnLogIn.setText("Log In");
btnLogIn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnLogInActionPerformed(evt);
}
});
pnlPreLog.add(btnLogIn, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 0, 195, 36));
btnFAQPre.setBackground(new java.awt.Color(60, 63, 66));
btnFAQPre.setFont(new java.awt.Font("Open Sans", 1, 12)); // NOI18N
btnFAQPre.setForeground(new java.awt.Color(255, 255, 255));
btnFAQPre.setText("?");
btnFAQPre.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnFAQPreActionPerformed(evt);
}
});
pnlPreLog.add(btnFAQPre, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 36));
pnlMainButtons.add(pnlPreLog, "card2");
pnlPostLog.setBackground(new java.awt.Color(242, 100, 25));
pnlPostLog.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
btnPay.setBackground(new java.awt.Color(242, 100, 25));
btnPay.setFont(new java.awt.Font("Open Sans", 1, 12)); // NOI18N
btnPay.setForeground(new java.awt.Color(255, 255, 255));
btnPay.setText("Pay Now");
btnPay.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnPayActionPerformed(evt);
}
});
pnlPostLog.add(btnPay, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 0, 195, 36));
btnSignOut.setBackground(new java.awt.Color(242, 100, 25));
btnSignOut.setFont(new java.awt.Font("Open Sans", 1, 12)); // NOI18N
btnSignOut.setForeground(new java.awt.Color(255, 255, 255));
btnSignOut.setText("Sign Out");
btnSignOut.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnSignOutActionPerformed(evt);
}
});
pnlPostLog.add(btnSignOut, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 0, 195, 36));
btnFAQPost.setBackground(new java.awt.Color(60, 63, 66));
btnFAQPost.setFont(new java.awt.Font("Open Sans", 1, 12)); // NOI18N
btnFAQPost.setForeground(new java.awt.Color(255, 255, 255));
btnFAQPost.setText("?");
btnFAQPost.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnFAQPostActionPerformed(evt);
}
});
pnlPostLog.add(btnFAQPost, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 36));
pnlMainButtons.add(pnlPostLog, "card3");
javax.swing.GroupLayout pnlHeaderLayout = new javax.swing.GroupLayout(pnlHeader);
pnlHeader.setLayout(pnlHeaderLayout);
pnlHeaderLayout.setHorizontalGroup(
pnlHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(pnlHeaderLayout.createSequentialGroup()
.addGap(33, 33, 33)
.addComponent(lblCompanyName)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(pnlMainButtons, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(17, 17, 17))
);
pnlHeaderLayout.setVerticalGroup(
pnlHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(pnlHeaderLayout.createSequentialGroup()
.addContainerGap(17, Short.MAX_VALUE)
.addGroup(pnlHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlHeaderLayout.createSequentialGroup()
.addComponent(pnlMainButtons, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(25, 25, 25))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlHeaderLayout.createSequentialGroup()
.addComponent(lblCompanyName, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(15, 15, 15))))
);
pnlBody.setBackground(new java.awt.Color(255, 255, 255));
pnlBody.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
jLabel2.setFont(new java.awt.Font("Open Sans SemiBold", 1, 36)); // NOI18N
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel2.setText("Pay your bills online as easy as 123!");
pnlBody.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 69, 1280, -1));
jPanel5.setBackground(new java.awt.Color(255, 255, 255));
jPanel3.setBackground(new java.awt.Color(255, 255, 255));
jLabel3.setFont(new java.awt.Font("Open Sans SemiBold", 1, 48)); // NOI18N
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel3.setText("1");
jLabel4.setFont(new java.awt.Font("Open Sans SemiBold", 1, 48)); // NOI18N
jLabel4.setText("2");
jLabel5.setFont(new java.awt.Font("Open Sans SemiBold", 1, 48)); // NOI18N
jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel5.setText("3");
jLabel9.setFont(new java.awt.Font("Open Sans SemiBold", 1, 48)); // NOI18N
jLabel9.setText(">");
jLabel10.setFont(new java.awt.Font("Open Sans SemiBold", 1, 48)); // NOI18N
jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel10.setText(">");
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(135, 135, 135)
.addComponent(jLabel9)
.addGap(138, 138, 138)
.addComponent(jLabel4)
.addGap(138, 138, 138)
.addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(135, 135, 135)
.addComponent(jLabel5)
.addGap(18, 18, 18))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(jLabel4)
.addComponent(jLabel5))
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel10)
.addComponent(jLabel9))
.addGap(34, 34, 34))
);
jLabel6.setFont(new java.awt.Font("Open Sans SemiBold", 1, 24)); // NOI18N
jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel6.setText("Sign Up");
jLabel7.setFont(new java.awt.Font("Open Sans SemiBold", 1, 24)); // NOI18N
jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel7.setText("Log In");
jLabel8.setFont(new java.awt.Font("Open Sans SemiBold", 1, 24)); // NOI18N
jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel8.setText("Pay");
jLabel11.setFont(new java.awt.Font("Open Sans", 0, 11)); // NOI18N
jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel11.setText("Create your own account using your ");
jLabel12.setFont(new java.awt.Font("Open Sans", 0, 11)); // NOI18N
jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel12.setText("Helios Customer ID.");
jLabel13.setFont(new java.awt.Font("Open Sans", 0, 11)); // NOI18N
jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel13.setText("If you have already created an account,");
jLabel14.setFont(new java.awt.Font("Open Sans", 0, 11)); // NOI18N
jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel14.setText("Log in using your registered account.");
jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel15.setText("View your bill information and");
jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel16.setText("Pay your bill with our selection of");
jLabel17.setFont(new java.awt.Font("Open Sans", 0, 11)); // NOI18N
jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel17.setText("payment methods.");
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGap(229, 229, 229)
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(251, 251, 251))
.addGroup(jPanel5Layout.createSequentialGroup()
.addGap(180, 180, 180)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel11)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(138, 138, 138)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel13)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(151, 151, 151))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
.addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(152, 152, 152)))
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGap(8, 8, 8)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel15, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(jLabel7)
.addComponent(jLabel8))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel13)
.addComponent(jLabel15))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel12)
.addComponent(jLabel14)
.addComponent(jLabel16))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel17)
.addContainerGap(175, Short.MAX_VALUE))
);
pnlBody.add(jPanel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 131, 1259, -1));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(pnlHeader, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(pnlBody, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(pnlHeader, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(pnlBody, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
pack();
setLocationRelativeTo(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public Form() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public FormPemilihan() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public FormCompra() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"public FormListRemarking() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public SettingsForm() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 630, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 431, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n axTextField = new javax.swing.JTextField();\n bxTextField = new javax.swing.JTextField();\n cxTextField = new javax.swing.JTextField();\n dxTextField = new javax.swing.JTextField();\n siTextField = new javax.swing.JTextField();\n diTextField = new javax.swing.JTextField();\n spTextField = new javax.swing.JTextField();\n bpTextField = new javax.swing.JTextField();\n pcTextField = new javax.swing.JTextField();\n ir1TextField = new javax.swing.JTextField();\n ir2TextField = new javax.swing.JTextField();\n marTextField = new javax.swing.JTextField();\n ivtpTextField = new javax.swing.JTextField();\n mbrTextField = new javax.swing.JTextField();\n ir3TextField = new javax.swing.JTextField();\n ir4TextField = new javax.swing.JTextField();\n xTextField = new javax.swing.JTextField();\n yTextField = new javax.swing.JTextField();\n aTextField = new javax.swing.JTextField();\n bTextField = new javax.swing.JTextField();\n pswTextField = new javax.swing.JTextField();\n imrTextField = new javax.swing.JTextField();\n sbusTextField = new javax.swing.JTextField();\n dbusTextField = new javax.swing.JTextField();\n systemABUSTextField = new javax.swing.JTextField();\n systemDBUSTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n okButton = new javax.swing.JButton();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n\n setTitle(\"RegisterDialog\");\n setFocusable(false);\n setMinimumSize(new java.awt.Dimension(688, 285));\n setName(\"\"); // NOI18N\n\n jLabel1.setText(\"AX\");\n\n jLabel2.setText(\"BX\");\n\n jLabel3.setText(\"CX\");\n\n jLabel4.setText(\"DX\");\n\n jLabel5.setText(\"SI\");\n\n jLabel6.setText(\"DI\");\n\n jLabel7.setText(\"SP\");\n\n jLabel8.setText(\"BP\");\n\n jLabel9.setText(\"PC\");\n\n jLabel10.setText(\"IR1\");\n\n jLabel11.setText(\"IR2\");\n\n jLabel12.setText(\"MAR\");\n\n jLabel13.setText(\"MBR\");\n\n jLabel14.setText(\"IVTP\");\n\n jLabel15.setText(\"IR3\");\n\n jLabel16.setText(\"IR4\");\n\n jLabel17.setText(\"X\");\n\n jLabel18.setText(\"Y\");\n\n jLabel19.setText(\"A\");\n\n jLabel20.setText(\"B\");\n\n jLabel21.setText(\"PSW\");\n\n jLabel22.setText(\"IMR\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel23.setText(\"CPU\");\n\n jLabel24.setText(\"sBUS\");\n\n jLabel25.setText(\"dBUS\");\n\n jLabel26.setText(\"ABUS\");\n\n jLabel27.setText(\"DBUS\");\n\n jLabel28.setText(\"bin.\");\n\n jLabel29.setText(\"bin.\");\n\n axTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n axTextField.setText(\"0000\");\n axTextField.setFocusable(false);\n axTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n axTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bxTextField.setText(\"0000\");\n bxTextField.setFocusable(false);\n bxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n cxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cxTextField.setText(\"0000\");\n cxTextField.setFocusable(false);\n cxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n cxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dxTextField.setText(\"0000\");\n dxTextField.setFocusable(false);\n dxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n siTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n siTextField.setText(\"0000\");\n siTextField.setFocusable(false);\n siTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n siTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n diTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n diTextField.setText(\"0000\");\n diTextField.setFocusable(false);\n diTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n diTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n spTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n spTextField.setText(\"0000\");\n spTextField.setFocusable(false);\n spTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n spTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bpTextField.setText(\"0000\");\n bpTextField.setFocusable(false);\n bpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pcTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pcTextField.setText(\"0000\");\n pcTextField.setFocusable(false);\n pcTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pcTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir1TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir1TextField.setText(\"0000\");\n ir1TextField.setFocusable(false);\n ir1TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir1TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir2TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir2TextField.setText(\"0000\");\n ir2TextField.setFocusable(false);\n ir2TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir2TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n marTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n marTextField.setText(\"0000\");\n marTextField.setFocusable(false);\n marTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n marTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ivtpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivtpTextField.setText(\"0000\");\n ivtpTextField.setFocusable(false);\n ivtpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ivtpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n mbrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n mbrTextField.setText(\"0000\");\n mbrTextField.setFocusable(false);\n mbrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n mbrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir3TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir3TextField.setText(\"0000\");\n ir3TextField.setFocusable(false);\n ir3TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir3TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir4TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir4TextField.setText(\"0000\");\n ir4TextField.setFocusable(false);\n ir4TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir4TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n xTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n xTextField.setText(\"0000\");\n xTextField.setFocusable(false);\n xTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n xTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n yTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n yTextField.setText(\"0000\");\n yTextField.setFocusable(false);\n yTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n yTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n aTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n aTextField.setText(\"0000\");\n aTextField.setFocusable(false);\n aTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n aTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bTextField.setText(\"0000\");\n bTextField.setFocusable(false);\n bTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pswTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pswTextField.setText(\"0000000000000000\");\n pswTextField.setFocusable(false);\n pswTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pswTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n imrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n imrTextField.setText(\"0000\");\n imrTextField.setFocusable(false);\n imrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n imrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n sbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n sbusTextField.setText(\"0000\");\n sbusTextField.setFocusable(false);\n sbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n sbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dbusTextField.setText(\"0000\");\n dbusTextField.setFocusable(false);\n dbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemABUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemABUSTextField.setText(\"0000\");\n systemABUSTextField.setFocusable(false);\n systemABUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemABUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemDBUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemDBUSTextField.setText(\"0000\");\n systemDBUSTextField.setFocusable(false);\n systemDBUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemDBUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel30.setText(\"interne \\nmagistrale\");\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel31.setText(\"sistemske magistrale\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bxTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(axTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(siTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(diTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(spTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bpTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(pcTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(mbrTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(marTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jLabel15)\n .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ir1TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir2TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir3TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir4TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(xTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(yTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(aTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel30)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)\n .addComponent(jLabel24)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dbusTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel31)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel26)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator4)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pcTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(marTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(mbrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(siTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(diTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(axTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(bxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel29)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(dbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(okButton))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(xTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(yTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(aTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(bTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(ir1TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(ir2TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(ir3TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(ir4TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(71, 71, 71)\n .addComponent(jLabel23))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 760, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 446, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 638, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSeparator1 = new javax.swing.JSeparator();\n jLabel4 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jPasswordField1 = new javax.swing.JPasswordField();\n jPasswordField2 = new javax.swing.JPasswordField();\n jButton4 = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Settings\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jSeparator1.setForeground(new java.awt.Color(102, 0, 153));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Tux TV 1280-1024.jpg\"))); // NOI18N\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton2.setForeground(new java.awt.Color(51, 51, 255));\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Blue-young-icon.png\"))); // NOI18N\n jButton2.setText(\"Search\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jLabel3.setForeground(new java.awt.Color(51, 51, 255));\n jLabel3.setText(\"<html>Logged In <font color=green>●\");\n\n jLabel2.setBackground(new java.awt.Color(204, 204, 255));\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 18));\n jLabel2.setOpaque(true);\n\n jButton1.setBackground(new java.awt.Color(255, 153, 153));\n jButton1.setFont(new java.awt.Font(\"Arial\", 1, 14));\n jButton1.setForeground(new java.awt.Color(255, 0, 0));\n jButton1.setText(\"Log Out\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel5.setForeground(new java.awt.Color(153, 0, 153));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"<html><u>Home\");\n jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel5MouseClicked(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel7.setForeground(new java.awt.Color(153, 0, 153));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"<html><u>Friends\");\n jLabel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel7MouseClicked(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel8.setForeground(new java.awt.Color(153, 0, 153));\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"<html><u>Messages\");\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel9.setForeground(new java.awt.Color(153, 0, 153));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"<html><u>Notifications\");\n jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel9MouseClicked(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel10.setForeground(new java.awt.Color(153, 0, 153));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"<html><u>Profile\");\n jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel10MouseClicked(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel6.setForeground(new java.awt.Color(0, 0, 255));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"<html><u>Settings\");\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel14.setText(\"E-Mail:\");\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel15.setText(\"Phone Number:\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel12.setText(\"Name:\");\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel13.setText(\"UserName:\");\n\n jTextField3.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField3.setForeground(new java.awt.Color(102, 0, 102));\n jTextField3.setEnabled(false);\n\n jTextField2.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField2.setForeground(new java.awt.Color(102, 0, 102));\n jTextField2.setEnabled(false);\n\n jTextField4.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField4.setForeground(new java.awt.Color(102, 0, 102));\n jTextField4.setEnabled(false);\n\n jTextField5.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField5.setForeground(new java.awt.Color(102, 0, 102));\n jTextField5.setEnabled(false);\n\n jLabel27.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel27.setForeground(new java.awt.Color(0, 0, 255));\n jLabel27.setText(\"<html><u>Edit\");\n jLabel27.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel27MouseClicked(evt);\n }\n });\n\n jLabel26.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel26.setForeground(new java.awt.Color(0, 0, 255));\n jLabel26.setText(\"<html><u>Edit\");\n jLabel26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel26MouseClicked(evt);\n }\n });\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel25.setForeground(new java.awt.Color(0, 0, 255));\n jLabel25.setText(\"<html><u>Edit\");\n jLabel25.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel25MouseClicked(evt);\n }\n });\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel24.setForeground(new java.awt.Color(0, 0, 255));\n jLabel24.setText(\"<html><u>Edit\");\n jLabel24.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel24MouseClicked(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 2, 18)); // NOI18N\n jButton3.setForeground(new java.awt.Color(0, 153, 51));\n jButton3.setText(\"Update Info\");\n jButton3.setEnabled(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jSeparator2.setForeground(jSeparator1.getForeground());\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel16.setText(\"Old Password:\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel17.setText(\"New Password:\");\n\n jTextField7.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField7.setForeground(new java.awt.Color(102, 0, 102));\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel18.setText(\"ReType New Password:\");\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 3, 18));\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/3.png\"))); // NOI18N\n jButton4.setText(\"Change\");\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel11.setForeground(new java.awt.Color(0, 0, 255));\n jLabel11.setText(\"<html><u>Wanna See Your Security Code?\");\n jLabel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel11MouseClicked(evt);\n }\n });\n\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton5.setForeground(new java.awt.Color(255, 51, 51));\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagesFCG7ZZJL.jpg\"))); // NOI18N\n jButton5.setText(\"Delete My Account\");\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 437, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 352, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(78, 78, 78)\n .addComponent(jLabel19)\n .addGap(40, 40, 40)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField3)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(103, 103, 103)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField5)\n .addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27)\n .addComponent(jLabel26)\n .addComponent(jLabel25))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton5))\n .addComponent(jLabel24))\n .addGap(2, 2, 2))\n .addGroup(layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jButton3))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPasswordField2)\n .addComponent(jPasswordField1)\n .addComponent(jTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jLabel20)\n .addGap(73, 73, 73))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel21)\n .addGap(21, 21, 21))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(199, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(162, 162, 162))\n .addGroup(layout.createSequentialGroup()\n .addGap(271, 271, 271)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(261, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, Short.MAX_VALUE))\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 5, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26)\n .addComponent(jLabel14))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel27)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jPasswordField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel11))\n .addGroup(layout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addComponent(jLabel21)))\n .addContainerGap(47, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 475, Short.MAX_VALUE)\n );\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public Magasin() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public soal2GUI() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public PatientUI() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public Soru1() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public ValidFrequencyForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jTextField9 = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jTextField12 = new javax.swing.JTextField();\n jTextField13 = new javax.swing.JTextField();\n jTextField14 = new javax.swing.JTextField();\n jTextField16 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jButton1 = new javax.swing.JButton();\n jLabel18 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jFormattedTextField1 = new javax.swing.JFormattedTextField();\n jFormattedTextField2 = new javax.swing.JFormattedTextField();\n jFormattedTextField3 = new javax.swing.JFormattedTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jFormattedTextField4 = new javax.swing.JFormattedTextField();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Personal Profile\");\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel1.setText(\"Personal Information\");\n\n jLabel2.setText(\"Name\");\n\n jLabel3.setText(\"Address\");\n\n jLabel4.setText(\"Date of Birth\");\n jLabel4.setToolTipText(\"\");\n\n jLabel5.setText(\"Contact\");\n\n jLabel6.setText(\"Fax Number\");\n\n jLabel7.setText(\"Email\");\n\n jLabel8.setText(\"SSN\");\n\n jLabel9.setText(\"Medical Record No\");\n\n jLabel10.setText(\"Health Plan No\");\n\n jLabel11.setText(\"Bank Acc No\");\n\n jLabel12.setText(\"License No\");\n\n jLabel13.setText(\"Vehicle Identifiers\");\n\n jLabel14.setText(\"Device Identifiers\");\n jLabel14.setToolTipText(\"\");\n\n jLabel15.setText(\"LinkedIn\");\n\n jLabel16.setText(\"IP Address\");\n\n jLabel17.setText(\"Identifier\");\n\n jButton2.setText(\"Submit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jTextArea1.setBounds(new java.awt.Rectangle(0, 0, 240, 120));\n jScrollPane1.setViewportView(jTextArea1);\n\n jButton1.setText(\"Clear\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel18.setText(\"Image\");\n\n jButton3.setText(\"Upload\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(java.text.DateFormat.getDateInstance(java.text.DateFormat.SHORT))));\n\n try {\n jFormattedTextField2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###-###-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n try {\n jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###-##-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabel22.setText(\"Biometrics\");\n\n jButton4.setText(\"Upload\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n try {\n jFormattedTextField4.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###.###.###.###\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22))\n .addComponent(jLabel18)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel11)\n .addComponent(jLabel12)\n .addComponent(jLabel13)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1)\n .addComponent(jTextField2)\n .addComponent(jFormattedTextField1)\n .addComponent(jFormattedTextField2)\n .addComponent(jTextField5)\n .addComponent(jTextField6)\n .addComponent(jFormattedTextField3)\n .addComponent(jTextField8)\n .addComponent(jTextField9)\n .addComponent(jTextField10)\n .addComponent(jTextField11)\n .addComponent(jTextField12)\n .addComponent(jTextField13)\n .addComponent(jTextField14)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)\n .addComponent(jTextField16))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 440, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(24, 24, 24))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(146, 146, 146)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addGap(423, 423, 423)\n .addComponent(jLabel1)))\n .addContainerGap(566, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel14)\n .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15)\n .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17)\n .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jScrollPane1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jButton3)\n .addComponent(jLabel20))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(jButton4)\n .addComponent(jLabel24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public HW3() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public PatientRegForm() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n formKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public p0() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 278, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jTextField1 = new javax.swing.JTextField();\r\n jButton1 = new javax.swing.JButton();\r\n jTextField2 = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n jTextField3 = new javax.swing.JTextField();\r\n jTextField4 = new javax.swing.JTextField();\r\n jTextField5 = new javax.swing.JTextField();\r\n jTextField6 = new javax.swing.JTextField();\r\n jTextField7 = new javax.swing.JTextField();\r\n jTextField8 = new javax.swing.JTextField();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n lbhora = new javax.swing.JLabel();\r\n jButton5 = new javax.swing.JButton();\r\n jLabel8 = new javax.swing.JLabel();\r\n jButton6 = new javax.swing.JButton();\r\n jLabel9 = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem4 = new javax.swing.JMenuItem();\r\n jMenuItem5 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenuItem9 = new javax.swing.JMenuItem();\r\n jMenuItem10 = new javax.swing.JMenuItem();\r\n jMenuItem11 = new javax.swing.JMenuItem();\r\n jMenuItem13 = new javax.swing.JMenuItem();\r\n jMenuItem14 = new javax.swing.JMenuItem();\r\n jMenu3 = new javax.swing.JMenu();\r\n jMenuItem15 = new javax.swing.JMenuItem();\r\n jMenuItem16 = new javax.swing.JMenuItem();\r\n jMenuItem17 = new javax.swing.JMenuItem();\r\n jMenu4 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField1ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 12, 490, 30));\r\n\r\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/search-icon-60x60.png\"))); // NOI18N\r\n jButton1.setBorderPainted(false);\r\n jButton1.setContentAreaFilled(false);\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 0, -1, -1));\r\n\r\n jTextField2.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField2ActionPerformed(evt);\r\n }\r\n });\r\n jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField2KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 80, 340, 30));\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel1.setText(\"NOMBRE\");\r\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 90, 72, -1));\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel2.setText(\"DOMICILIO\");\r\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 150, 70, -1));\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel3.setText(\"CIUDAD\");\r\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 290, 60, -1));\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel4.setText(\"TELEFONO\");\r\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 240, 70, -1));\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel5.setText(\"C.P.\");\r\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 360, -1, -1));\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel6.setText(\"R.F.C.\");\r\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 190, -1, -1));\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel7.setText(\"E-MAIL\");\r\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 410, 50, -1));\r\n\r\n jTextField3.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField3ActionPerformed(evt);\r\n }\r\n });\r\n jTextField3.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField3KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 130, 510, 30));\r\n\r\n jTextField4.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField4ActionPerformed(evt);\r\n }\r\n });\r\n jTextField4.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField4KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, 250, 30));\r\n\r\n jTextField5.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField5ActionPerformed(evt);\r\n }\r\n });\r\n jTextField5.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField5KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 340, 250, 30));\r\n\r\n jTextField6.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField6ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 400, 250, 30));\r\n\r\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField7ActionPerformed(evt);\r\n }\r\n });\r\n jTextField7.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField7KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 180, 250, 30));\r\n\r\n jTextField8.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField8.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField8ActionPerformed(evt);\r\n }\r\n });\r\n jTextField8.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField8KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField8, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 230, 250, 30));\r\n\r\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/add-icon.png\"))); // NOI18N\r\n jButton2.setBorderPainted(false);\r\n jButton2.setContentAreaFilled(false);\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 540, 70, 80));\r\n\r\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/edit_60_328965.png\"))); // NOI18N\r\n jButton3.setBorderPainted(false);\r\n jButton3.setContentAreaFilled(false);\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 550, 80, 70));\r\n\r\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/delete_action_discard.png\"))); // NOI18N\r\n jButton4.setBorderPainted(false);\r\n jButton4.setContentAreaFilled(false);\r\n jButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton4ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 550, 70, 70));\r\n\r\n lbhora.setFont(new java.awt.Font(\"SansSerif\", 1, 24)); // NOI18N\r\n lbhora.setForeground(new java.awt.Color(240, 240, 240));\r\n lbhora.setText(\"00:00:00\");\r\n getContentPane().add(lbhora, new org.netbeans.lib.awtextra.AbsoluteConstraints(1180, 10, -1, 44));\r\n\r\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/logout.png\"))); // NOI18N\r\n jButton5.setBorder(null);\r\n jButton5.setBorderPainted(false);\r\n jButton5.setContentAreaFilled(false);\r\n jButton5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton5ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(1280, 10, -1, -1));\r\n\r\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/giphy.gif\"))); // NOI18N\r\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(1110, 90, -1, -1));\r\n\r\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/CLEAN-AIR-ICON2.png\"))); // NOI18N\r\n jButton6.setBorderPainted(false);\r\n jButton6.setContentAreaFilled(false);\r\n jButton6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton6ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 550, -1, -1));\r\n\r\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/fondo gris.jpg\"))); // NOI18N\r\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1350, 760));\r\n\r\n jMenuBar1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"PLANTAS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12))); // NOI18N\r\n\r\n jMenu1.setText(\"CAPTURA DE DATOS\");\r\n jMenu1.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem4.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem4.setText(\"CLIENTES\");\r\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem4ActionPerformed(evt);\r\n }\r\n });\r\n jMenu1.add(jMenuItem4);\r\n\r\n jMenuItem5.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem5.setText(\"USUARIOS\");\r\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem5ActionPerformed(evt);\r\n }\r\n });\r\n jMenu1.add(jMenuItem5);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"PRODUCTOS\");\r\n jMenu2.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem9.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem9.setText(\"COMPONENTES\");\r\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem9ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem9);\r\n\r\n jMenuItem10.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem10.setText(\"MATERIALES\");\r\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem10ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem10);\r\n\r\n jMenuItem11.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem11.setText(\"FORMULA\");\r\n jMenuItem11.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem11ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem11);\r\n\r\n jMenuItem13.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem13.setText(\"PROCESO\");\r\n jMenuItem13.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem13ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem13);\r\n\r\n jMenuItem14.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem14.setText(\"OPB\");\r\n jMenuItem14.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem14ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem14);\r\n\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"PRODUCCION\");\r\n jMenu3.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem15.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem15.setText(\"ORDENES\");\r\n jMenuItem15.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem15ActionPerformed(evt);\r\n }\r\n });\r\n jMenu3.add(jMenuItem15);\r\n\r\n jMenuItem16.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem16.setText(\"OPERACION\");\r\n jMenu3.add(jMenuItem16);\r\n\r\n jMenuItem17.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem17.setText(\"DATOS DESPUES DE LA OPERACION\");\r\n jMenu3.add(jMenuItem17);\r\n\r\n jMenuBar1.add(jMenu3);\r\n\r\n jMenu4.setText(\"REPORTES\");\r\n jMenu4.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuBar1.add(jMenu4);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n pack();\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n addSponsorLogoLabel = new javax.swing.JLabel();\n addSponsorLabel = new javax.swing.JLabel();\n addSponsorNameInput = new javax.swing.JTextField();\n addSponsorNameLabel = new javax.swing.JLabel();\n addSponsorFnameInput = new javax.swing.JTextField();\n addSponsorFnameLabel = new javax.swing.JLabel();\n addSponsorLnameInput = new javax.swing.JTextField();\n addSponsorLnameLabel = new javax.swing.JLabel();\n addSponsorPhoneInput = new javax.swing.JTextField();\n addSponsorPhoneLabel = new javax.swing.JLabel();\n addSponsorPledgeInput = new javax.swing.JTextField();\n addSponsorPledgeLabel = new javax.swing.JLabel();\n addSponsorBackButton = new javax.swing.JButton();\n addSponsorSubmitButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n addSponsorLogoLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/eventplanner/horizonlogoTiny.png\"))); // NOI18N\n\n addSponsorLabel.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n addSponsorLabel.setText(\"Add Sponsor\");\n\n addSponsorNameLabel.setText(\"Name of Sponsor:\");\n\n addSponsorFnameLabel.setText(\"First Name:\");\n\n addSponsorLnameLabel.setText(\"Last Name:\");\n\n addSponsorPhoneLabel.setText(\"Phone:\");\n\n addSponsorPledgeLabel.setText(\"Pledge:\");\n\n addSponsorBackButton.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n addSponsorBackButton.setText(\"Back\");\n addSponsorBackButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSponsorBackButtonActionPerformed(evt);\n }\n });\n\n addSponsorSubmitButton.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n addSponsorSubmitButton.setText(\"Submit\");\n addSponsorSubmitButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSponsorSubmitButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(71, 71, 71)\n .addComponent(addSponsorLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addSponsorLogoLabel))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(143, 143, 143)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(addSponsorNameLabel)\n .addComponent(addSponsorFnameLabel)\n .addComponent(addSponsorLnameLabel)\n .addComponent(addSponsorPhoneLabel)\n .addComponent(addSponsorPledgeLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(addSponsorNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorFnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorLnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPhoneInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPledgeInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(152, 152, 152)\n .addComponent(addSponsorSubmitButton)\n .addGap(33, 33, 33)\n .addComponent(addSponsorBackButton)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(42, 42, 42))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(addSponsorLogoLabel))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(addSponsorLabel)\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorNameLabel)\n .addComponent(addSponsorNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorFnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorFnameLabel))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(addSponsorLnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorLnameLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorPhoneInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPhoneLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorPledgeInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPledgeLabel))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorSubmitButton)\n .addComponent(addSponsorBackButton))\n .addContainerGap(47, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"private void initComponents() {//GEN-BEGIN:initComponents\n\n FormListener formListener = new FormListener();\n\n addMouseListener(formListener);\n\n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n businessNameJLabel = new javax.swing.JLabel();\n enterpriseNameJLabel = new javax.swing.JLabel();\n networkNameJLabel = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n organizationNameJLabel = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n titleJLabel = new javax.swing.JLabel();\n drugNameJLabel = new javax.swing.JLabel();\n drugNameJTextField = new javax.swing.JTextField();\n backJButton = new javax.swing.JButton();\n addToCatalogJButton = new javax.swing.JButton();\n statusJLabel = new javax.swing.JLabel();\n statusJTextField = new javax.swing.JTextField();\n\n businessNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n businessNameJLabel.setText(\"Drug Tracking System\");\n\n enterpriseNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n enterpriseNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n enterpriseNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n enterpriseNameJLabel.setPreferredSize(new java.awt.Dimension(170, 24));\n\n networkNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n networkNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n networkNameJLabel.setMaximumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setMinimumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setPreferredSize(new java.awt.Dimension(195, 24));\n\n organizationNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n organizationNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n organizationNameJLabel.setPreferredSize(new java.awt.Dimension(190, 24));\n\n titleJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 26)); // NOI18N\n titleJLabel.setText(\"Drug Details\");\n\n drugNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n drugNameJLabel.setText(\"Drug Name\");\n\n drugNameJTextField.setEditable(false);\n drugNameJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n drugNameJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n drugNameJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\n\n backJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n backJButton.setText(\"Back\");\n backJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n backJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n backJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJButtonActionPerformed(evt);\n }\n });\n\n addToCatalogJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n addToCatalogJButton.setText(\"Add To Catalog\");\n addToCatalogJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addToCatalogJButton.setEnabled(false);\n addToCatalogJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n addToCatalogJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addToCatalogJButtonActionPerformed(evt);\n }\n });\n\n statusJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n statusJLabel.setText(\"Status\");\n\n statusJTextField.setEditable(false);\n statusJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n statusJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n statusJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(businessNameJLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 211, Short.MAX_VALUE)\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(273, 273, 273)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(titleJLabel))\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(statusJLabel)\n .addGap(18, 18, 18)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(drugNameJLabel)\n .addGap(18, 18, 18)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(311, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(businessNameJLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(titleJLabel)\n .addGap(75, 75, 75)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(drugNameJLabel)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(statusJLabel)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(201, Short.MAX_VALUE))\n );\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ScheduleForm() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \r\n private void initComponents() {\r\n \r\n setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createLineBorder(Color.black), javax.swing.BorderFactory.createBevelBorder(BevelBorder.LOWERED)));\r\n \r\n setEnabled(false);\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 396, Short.MAX_VALUE));\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 324, Short.MAX_VALUE));\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mouseClickedHandler(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n mouseExitedHandler(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n mouseEnteredHandler(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }"
]
| [
"0.73914087",
"0.73914087",
"0.73914087",
"0.7351462",
"0.73308134",
"0.732969",
"0.7294673",
"0.72652155",
"0.7224294",
"0.721449",
"0.7157649",
"0.7154444",
"0.71494794",
"0.7140369",
"0.7135683",
"0.71330816",
"0.7120591",
"0.7118868",
"0.7112717",
"0.7110416",
"0.7088331",
"0.70857745",
"0.7063496",
"0.7058044",
"0.7032304",
"0.7029756",
"0.7023082",
"0.7021543",
"0.7017312",
"0.7010635",
"0.7002985",
"0.69655955",
"0.6958858",
"0.69588315",
"0.69575053",
"0.6956085",
"0.6956085",
"0.6950607",
"0.69503677",
"0.69380224",
"0.6933123",
"0.69298",
"0.6927712",
"0.6927598",
"0.69240373",
"0.6921367",
"0.6918091",
"0.69154483",
"0.69143116",
"0.69105965",
"0.69105965",
"0.69105965",
"0.6908468",
"0.6904292",
"0.6898484",
"0.68950737",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6894536",
"0.6893802",
"0.68921363",
"0.68865216",
"0.68865216",
"0.68865216",
"0.68865216",
"0.68865216",
"0.68865216",
"0.68865216",
"0.68865216",
"0.68865216",
"0.6885234",
"0.6883637",
"0.68712",
"0.68709594",
"0.68676656",
"0.68620795",
"0.6858792",
"0.68551016",
"0.6851792",
"0.6849518",
"0.6847725",
"0.6846677",
"0.6839781",
"0.68393385",
"0.6837913",
"0.6829238",
"0.68287647",
"0.68270314",
"0.68186855",
"0.68154097",
"0.68116164"
]
| 0.0 | -1 |
Create the Ontology List object | public OntologyListView(Collection<Ontology> collection, JComponent parentComponent) {
super(collection,parentComponent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }",
"public RDFList createRDFList(List<Expression> list, int arobase) {\r\n RDFList rlist = new RDFList(newBlankNode(), list); \r\n if (arobase == L_DEFAULT){\r\n arobase = listType;\r\n }\r\n switch (arobase){\r\n \r\n case L_LIST: \r\n rlist = complete(rlist);\r\n break;\r\n \r\n case L_PATH:\r\n rlist = path(rlist);\r\n break;\r\n }\r\n return rlist;\r\n }",
"public BookList(ObservableList<Book> oList){\r\n //Instantiate the bookList attribute\r\n bookList = new ArrayList<Book>();\r\n //if the parameter oList is not null, then loop through it and create a new Book object from each element,\r\n //using the getters. The enhanced for-loop works great here See Chapter 7.13. Add the new Book to the attribute\r\n //called bookList\r\n if(oList != null){\r\n for(Book bk: oList){\r\n bookList.add(new Book(bk.getTitle(), bk.getPrice()));\r\n }\r\n }\r\n\r\n }",
"ListType createListType();",
"public String getOntologyListString()\n {\n String returnString = \"\";\n \n for(int i=0;i<getOntologyListSize();i++)\n {\n VueMetadataElement vme = getOntologyListElement(i);\n returnString += vme.getObject() + \"|\";\n }\n \n return returnString;\n }",
"OpList createOpList();",
"OpFList createOpFList();",
"DataList createDataList();",
"private static String getOntologies(ArrayList<Ontology> ontos){\n String ontologies = \"\";\n Iterator<Ontology> it = ontos.iterator();\n int i=1;\n while(it.hasNext()){\n Ontology currentOnto = it.next();\n String currentOntoName = currentOnto.getName();\n if(currentOntoName==null||\"\".equals(currentOntoName)){\n currentOntoName = \"Onto\"+i;\n i++;\n }\n if(currentOnto.getNamespaceURI()!=null && !\"\".equals(currentOnto.getNamespaceURI())){\n ontologies+=\"<dd><a property=\\\"owl:imports schema:mentions\\\" resource=\\\"\"+currentOnto.getNamespaceURI()+\"\\\" href=\\\"\"+currentOnto.getNamespaceURI()+\"\\\">\"+currentOntoName+\"</a></dd>\";\n }\n else{\n ontologies+=\"<dd>\"+currentOntoName+\"</dd>\";\n }\n }\n return ontologies;\n }",
"abstract void makeList();",
"public PersonalityList()\n {\n pList= new ArrayList<Personality>();\n }",
"public static void main(String[] args) throws Exception {\n\t\t\n\n BufferedReader reader = new BufferedReader(new FileReader(\"src/main/resources/example/ontologytemp.owl\"));\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"src/main/resources/example/test.owl\"));\n\t\t\n\t\t\n\t\t/*File owl = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology5.owl\");\n File obda = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology-conf.obda\");\n\t\tString baseUri = \"http://www.semanticweb.org/user/ontologies/\";\n\t\tString jdbcUrl = \"jdbc:mysql://localhost/conference10\";\n\t\tString jdbcUserName = \"root\";\n\t\tString jdbcPassword = \"root\";\n\t\tString jdbcDriverClass = \"com.mysql.jdbc.Driver\";\n\t\t\n\t\tDirectMappingBootstrapper dm = new DirectMappingBootstrapper(baseUri, jdbcUrl, jdbcUserName, jdbcPassword, jdbcDriverClass);\n\t\tOBDAModel model = dm.getModel();\n\t\tOWLOntology onto = dm.getOntology();\n\t\tModelIOManager mng = new ModelIOManager(model);\n\t\tmng.save(obda);\n onto.getOWLOntologyManager().saveOntology(onto,\n new FileDocumentTarget(owl));*/\n\t\t\n\t\t\n\t\t/*\n\t\tXFactoryBufferedImpl factory = new XFactoryBufferedImpl();\t\n\t\t\n\t\tXAttribute attr = factory.createAttributeLiteral(\"concept:name\", \"tracevalue\", null); // create attribute for trace\n\t\tXAttributeMap attrMapTrace = new XAttributeMapImpl(); // create a new map attribute\n\t\tattrMapTrace.put(\"concept:name\", attr);\t// put attribute to the map attribute\n\t\tXTrace xtrace = factory.createTrace(attrMapTrace); // create xtrace\n\t\t\n\t\tXAttributeMap attrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent = factory.createEvent(attrMap); // create xevent\n\t\txtrace.insertOrdered(xevent); // insert event in correct order in a trace\n\t\t\n\t\tattrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent2 = factory.createEvent(attrMap); // create xevent\n\t\t\n\t\tSystem.out.println(xtrace.contains(xevent2));\n\t\t*/\n\t}",
"public void createhomeonts(List<Homology> homos){\r\n\t\tSimpleExample se = new SimpleExample();\r\n\t\tString nameuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Name\";\r\n\t\tString homoclsuri = se.PROMOTER_PREFIX + \"#Homology\";\r\n\t\tOntModel onmo = null;\r\n\t\ttry {\r\n\t\t\tonmo = se.loadDB2nd();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfor(Homology homo : homos){\r\n\t\t\tString homoidvuri = se.PROMOTER_PREFIX + \"#Homology_\" + homo.getId();\t\t\t\r\n\t\t\tIndividual itemp = onmo.createIndividual(homoidvuri, onmo.getOntClass(homoclsuri));\r\n\t\t\tse.addDataProperty(onmo, homoidvuri, nameuri, homo.getName());\t\t\t\r\n\t\t}\r\n\t\tse.testListIndividual(onmo, homoclsuri);\r\n\t}",
"public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }",
"public WordList() {\t\t//Default constructor\n\t}",
"private static List<Article> createArticleList() {\n List<Article> articles = new ArrayList();\n articles.add(new Article(1l, \"Ball\", new Double(5.5), Type.TOY));\n articles.add(new Article(2l, \"Hammer\", new Double(250.0), Type.TOOL));\n articles.add(new Article(3l, \"Doll\", new Double(12.75), Type.TOY));\n return articles;\n }",
"@Override\n\tpublic List<Ontology> getOntologies() {\n\t\t\n\t\tList<Ontology> ontologies = new ArrayList<Ontology>();\n\t\tontologies.add(LogOntology.getInstance());\n\t\t\n\t\treturn ontologies;\n\t}",
"private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}",
"public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}",
"public void creatOnt(List<Promoter> pros){\r\n\t\tString nameuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Name\";\r\n\t\tString authoruri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Author\";\r\n\t\tString iduri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Identifier\";\r\n\t\tString linkuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Link\";\r\n\t\tString locuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Location\";\r\n\t\tString titleuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Title\";\r\n\t\t\r\n\t\tString activeuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#active\";\r\n\t\tString fromspeciesuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#fromSpecies\";\r\n\t\tString hasgouri = \"http://miuras.inf.um.es/ontologies/OGO.owl#hasGO\";\r\n\t\tString hashomologyuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#hasHomolgy\";\r\n\t\tString haskeyworduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#hasKeywords\";\r\n\t\tString haspromoteruri = \"http://miuras.inf.um.es/ontologies/promoter.owl#hasPromoter\";\r\n\t\tString hasreferenceuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#hasReference\";\r\n\t\tString hasresourceuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#hasResource\";\r\n\t\tString isbelongeduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#isBelongedTo\";\r\n\t\tString isexpresseduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#isExpressedTo\";\r\n\t\tString istranscribeduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#isTranscribedTo\";\r\n\t\tString istranslateduri = \"http://miuras.inf.um.es/ontologies/OGO.owl#isTranslatedTo\";\r\n\t\t\r\n\t\tString gouri = \"http://miuras.inf.um.es/ontologies/OGO.owl#GO_term\";\r\n\t\tString geneuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Gene\";\r\n\t\tString homologyuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Homology\";\r\n\t\tString keyworduri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Keyword\";\r\n\t\tString taxonomyuri = \"http://um.es/ncbi.owl#NCBI_1\";\r\n\t\tString promoteruri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Promoter\";\r\n\t\tString proteinuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Protein\";\r\n\t\tString referenceuri = \"http://miuras.inf.um.es/ontologies/promoter.owl#Reference\";\r\n\t\tString resourceuri = \"http://miuras.inf.um.es/ontologies/OGO.owl#Resource\";\r\n\t\tString mrnauri = \"http://miuras.inf.um.es/ontologies/promoter.owl#mRNA\";\r\n\t\t\r\n\t\tSimpleExample se = new SimpleExample();\r\n\t\tOntModel onmo = null;\r\n\t\ttry {\r\n\t\t\tonmo = se.loadDB2nd();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tint index = 1;\r\n\t\tfor(Promoter pro: pros){\r\n\t\t\t// Create new individual of promoter;\r\n\t\t\tIndividual newproidv = se.CreateandGetIdv(\r\n\t\t\t\t\tpromoteruri + \"_\" + pro.getName(),\r\n\t\t\t\t\tpromoteruri, onmo);\r\n\t\t\t// Create the relation between promoter and homology\r\n\t\t\tif(pro.getHomology().getId().trim().length()>0){\r\n\t\t\t\tIndividual homoidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\thomologyuri + \"_\" + pro.getHomology().getId(),\r\n\t\t\t\t\t\thomologyuri, onmo);\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), hashomologyuri, homoidv.getURI());\r\n\t\t\t}\r\n\t\t\t//create the reference individual and the relation to promoter\r\n\t\t\tfor(Reference ref : pro.getReferences()){\r\n\t\t\t\tIndividual refidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\treferenceuri + \"_\" + ref.getPubmed(),\r\n\t\t\t\t\t\treferenceuri, onmo);\r\n\t\t\t\tse.addDataProperty(onmo, refidv.getURI(), authoruri, ref.getAuther());\r\n\t\t\t\tse.addDataProperty(onmo, refidv.getURI(), titleuri, ref.getTitle());\r\n\t\t\t\tse.addDataProperty(onmo, refidv.getURI(), iduri, ref.getPubmed());\r\n\t\t\t\tse.addDataProperty(onmo, refidv.getURI(), locuri, ref.getLocation());\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), hasreferenceuri, refidv.getURI());\r\n\t\t\t}\r\n\t\t\t//create the resource individual and the relation to promoter\r\n\t\t\tfor(Resource res : pro.getResources()){\r\n\t\t\t\tIndividual residv = se.CreateandGetIdv(\r\n\t\t\t\t\t\tresourceuri + \"_\" + res.getId(),\r\n\t\t\t\t\t\tresourceuri, onmo);\r\n\t\t\t\tse.addDataProperty(onmo, residv.getURI(), nameuri, res.getDataset());\r\n\t\t\t\tse.addDataProperty(onmo, residv.getURI(), linkuri, res.getLink());\r\n\t\t\t\tse.addDataProperty(onmo, residv.getURI(), iduri, res.getId());\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), hasresourceuri, residv.getURI());\r\n\t\t\t}\r\n\t\t\t//create the keyword individual and the relation to promoter\r\n\t\t\tfor(Keyword kwd : pro.getKeywords()){\r\n\t\t\t\tIndividual kwdidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\tkeyworduri + \"_\" + kwd.getKeyword(),\r\n\t\t\t\t\t\tkeyworduri, onmo);\r\n\t\t\t\tse.addDataProperty(onmo, kwdidv.getURI(), nameuri, kwd.getKeyword());\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), haskeyworduri, kwdidv.getURI());\r\n\t\t\t}\r\n\t\t\t//create the gene individual and the relative individuals to the gene\r\n\t\t\t//create the relation between the gene individual and the relative individuals to the gene and the promoter\r\n\t\t\tfor(Gene gen: pro.getGenes()){\r\n\t\t\t\t//create the gene individual and the relation to promoter\r\n\t\t\t\tIndividual genidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\tgeneuri + \"_\" + gen.getId(),\r\n\t\t\t\t\t\tgeneuri, onmo);\r\n\t\t\t\tse.addDataProperty(onmo, genidv.getURI(), iduri, gen.getId());\r\n\t\t\t\tse.addObjProperty(onmo, genidv.getURI(), haspromoteruri, newproidv.getURI());\r\n\t\t\t\tse.addObjProperty(onmo, newproidv.getURI(), isbelongeduri, genidv.getURI());\r\n\t\t\t\t//create or get the go individual and the relation to gene\r\n\t\t\t\tfor(GO ngo: gen.getGos()){\r\n\t\t\t\t\tIndividual goidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\t\tse.OGO_PREFIX + \"#GO_\" + ngo.getId(),\r\n\t\t\t\t\t\t\tgouri, onmo);\r\n\t\t\t\t\tse.addObjProperty(onmo, genidv.getURI(), hasgouri, goidv.getURI());\r\n\t\t\t\t}\r\n\t\t\t\t//create or get the taxonomy individual and the relation to gene\r\n\t\t\t\tIndividual taxidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\tse.NCBI_PREFIX + \"#NCBI_\" + gen.getTaxonomy().getId(),\r\n\t\t\t\t\t\ttaxonomyuri, onmo);\r\n\t\t\t\tse.addObjProperty(onmo, genidv.getURI(), fromspeciesuri, taxidv.getURI());\r\n\t\t\t\t//create the mRNA and protein individual and the relation to gene\r\n\t\t\t\tfor(int i = 0; i<=gen.getMrnas().size()-1; i++){\r\n\t\t\t\t\tString rnaid = gen.getMrnas().get(i).getId();\r\n\t\t\t\t\tif(!rnaid.equals(\"-\")){\r\n\t\t\t\t\t\tIndividual rnaidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\t\tmrnauri + \"_\" + rnaid,\r\n\t\t\t\t\t\t\tmrnauri, onmo);\r\n\t\t\t\t\t\tse.addDataProperty(onmo, rnaidv.getURI(), iduri, rnaid);\r\n\t\t\t\t\t se.addObjProperty(onmo, genidv.getURI(), istranscribeduri, rnaidv.getURI());\r\n\t\t\t\t\t se.addObjProperty(onmo, newproidv.getURI(), activeuri, rnaidv.getURI());\r\n\t\t\t\t\t String prnid = gen.getProteins().get(i).getId();\r\n\t\t\t\t\t if(!prnid.equals(\"-\")){\r\n\t\t\t\t\t \tIndividual prnidv = se.CreateandGetIdv(\r\n\t\t\t\t\t\t\t\t\tproteinuri + \"_\" + rnaid,\r\n\t\t\t\t\t\t\t\t\tproteinuri, onmo);\r\n\t\t\t\t\t\t\tse.addDataProperty(onmo, prnidv.getURI(), iduri, prnid);\r\n\t\t\t\t\t\t\tse.addObjProperty(onmo, genidv.getURI(), isexpresseduri, prnidv.getURI());\r\n\t\t\t\t\t\t\tse.addObjProperty(onmo, rnaidv.getURI(), istranslateduri, prnidv.getURI());\r\n\t\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(index+++\".\t\"+\"Promoter: \"+pro.getName()+\" finished!\");\r\n\t\t}\r\n\t}",
"public Main() {\r\n\t\t\t// TODO Auto-generated constructor stub\r\n\t OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM, null );\r\n\r\n\t // we have a local copy of the wine ontology\r\n/*\t m.getDocumentManager().addAltEntry( \"http://www.w3.org/2001/sw/WebOnt/guide-src/wine\",\r\n\t \"file:testing/reasoners/bugs/wine.owl\" );\r\n\t m.getDocumentManager().addAltEntry( \"http://www.w3.org/2001/sw/WebOnt/guide-src/food\",\r\n\t \"file:testing/reasoners/bugs/food.owl\" );*/\r\n\r\n//\t m.read( \"http://www.w3.org/2001/sw/WebOnt/guide-src/wine\" );\r\n\t m = loadOntModelFromOwlFile(\"C:\\\\Documents and Settings\\\\Administrador\\\\Escritorio\\\\Tesis\\\\Ontologias\\\\turismo2.owl\");\r\n\t ClassHierarchy classh = new ClassHierarchy();\r\n\t classh.showHierarchy2( System.out, m );\r\n\t classh.creoInd(m);\r\n\t classh.showHierarchy( System.out, m );\r\n\t\t}",
"public OwnerList()\n {\n ownerList = new ArrayList<>();\n }",
"protected void readOntology() {\r\n\t\ttry \r\n\t\t{\r\n\t\t\troot.removeAllChildren();\r\n\t\t\tIterator<String> rc = ob.listRootClasses();\r\n\t\t\twhile(rc.hasNext())\r\n\t\t\t{\r\n\t\t\t\tDefaultMutableTreeNode node = createNode(rc.next(), ob, 0);\r\n\t\t\t\troot.add(node);\r\n\t\t\t}\r\n\t\t\tontologyTree.setModel(new DefaultTreeModel(root));\r\n\t ontologyTree.expandRow(0);\r\n\t \r\n\t\t} catch (Exception e) {\r\n\t\t\torg.apache.commons.logging.LogFactory.getLog(this.getClass()).error(e);\r\n\t\t}\r\n\t}",
"public ListADTImpl() {\r\n head = new GenericEmptyNode();\r\n }",
"private void initOntology() {\n\n\tontology = ModelFactory.createDefaultModel();\n\t\t\t\n\ttry \n\t{\n\t\t//ontology.read(new FileInputStream(\"ontology.ttl\"),null,\"TTL\");\n\t\tontology.read(new FileInputStream(\"Aminer-data.ttl\"),null,\"TTL\");\n\t\t//ontology.read(new FileInputStream(\"SO data.ttl\"),null,\"TTL\");\n\t} \n\tcatch (FileNotFoundException e) \n\t{\n\t\tSystem.out.println(\"Error creating ontology model\" +e.getMessage());\n\t\te.printStackTrace();\n\t}\n\t\t\t\n\t\t\n\t}",
"public list() {\r\n }",
"private void openOntology()\r\n {\r\n // Create the file filter.\r\n SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n new SimpleFileFilter(\"owl\", \"OWL ontologies (*.owl)\")\r\n };\r\n \r\n // Open the file.\r\n String file = openFileChooser(true, filters);\r\n \r\n // Process the file.\r\n if (file != null)\r\n {\r\n// OWLTreeConverter treeConverter = new OWLTreeConverter(file,\"\");\r\n// \r\n// //\tObject[] result2=treeConverter.getTree();\r\n// // int t=Integer.parseInt(result2[1].toString());\r\n// \tm_gtree =treeConverter.getTree();\r\n// TreeDisplay treeDisp = new TreeDisplay(m_gtree,0);\r\n// TreePanel treePanel = new TreePanel(treeDisp, LEGEND, ORIENTATION_CONTROL_WIDGET);\r\n// m_tabbedPane.setComponentAt(1, treePanel);\r\n// \r\n// OWLGraphConverter graphConverter = new OWLGraphConverter(file, true,\"\");\r\n// // Object[] result=graphConverter.getGraph();\r\n// m_graph =graphConverter.getGraph();\r\n// // int i=Integer.parseInt(result[1].toString());\r\n// // System.out.println(\"i=\"+i);\r\n// GraphDisplay graphDisp = new GraphDisplay(m_graph, GRAPH_DISTANCE_FILTER,0);\r\n// GraphPanel graphPanel = new GraphPanel(graphDisp, LEGEND, HOPS_CONTROL_WIDGET);\r\n// m_tabbedPane.setComponentAt(2, graphPanel);\r\n }\r\n }",
"public DLList() {\r\n init();\r\n }",
"public Lista() {\r\n }",
"public void create(AttributeList attributeList) {\n super.create(attributeList);\n }",
"public WordList() {\n\t\twordList = new ArrayList<>();\n\t\t// TODO Add your code here\n\t}",
"OrderedListContent createOrderedListContent();",
"ListValue createListValue();",
"public FoodList() {\n this.foodEntries = new ArrayList<>();\n }",
"public interface Ontology {\n\n /**\n * Load an array URIs which resolve to ontology resources.\n *\n * @param urls a {@link java.lang.String} containing ontology URIs.\n */\n public void load(String[] urls);\n\n /**\n * Load a collection of default ontology resources.\n */\n public void load() ;\n\n /**\n * merge relevant ontology subgraphs into a new subgraph which can\n * be used within Mudrod\n *\n * @param o an ontology to merge with the current ontology held\n * within Mudrod.\n */\n public void merge(Ontology o);\n\n /**\n * Retreive all subclasses for a particular entity provided within the\n * search term e.g.subclass-based query expansion.\n *\n * @param entitySearchTerm an input search term\n * @return an {@link java.util.Iterator} object containing subClass entries.\n */\n public Iterator<String> subclasses(String entitySearchTerm);\n\n /**\n * Retreive all synonyms for a particular entity provided within the\n * search term e.g.synonym-based query expansion.\n *\n * @param queryKeyPhrase a phrase to undertake synonym expansion on.\n * @return an {@link java.util.Iterator} object containing synonym entries.\n */\n public Iterator<String> synonyms(String queryKeyPhrase);\n\n}",
"public void setupArticlesList();",
"private Lists() { }",
"private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }",
"ListItem createListItem();",
"Sharks() {\n sharks = new ArrayList<Shark>(); // Initialize the ArrayList\n }",
"public PersonList() {\r\n this.personList = new ArrayList<Person>();\r\n }",
"public FriendList createFriendList();",
"protected void create(AttributeList attributeList) {\n super.create(attributeList);\n }",
"public static Model Analize(ArrayList<String> arraylist) throws IOException\n\t{\n\t\tModel model = ModelFactory.createOntologyModel();\n\t\tmodel.read(\"C:\\\\Users\\\\Hamza\\\\workspace\\\\Crime\\\\crime.owl\");\n\t\tResource predicate;\n\t\tProperty pred = null;\n\t\tint flag=0;\n\t\t\tword=(String) arraylist.get(1);\n\t\t\tpredicate=model.getResource(defaultNameSpace+word);\n\t\t\t\n\t\t\tif(model.contains(predicate, RDF.type,OWL.ObjectProperty))\n\t\t\t{\n\t\t\t pred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\telse if(model.contains(predicate, RDF.type,OWL.DatatypeProperty))\n\t\t\t{\n\t\t\t\tpred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\tif(flag==1)\n\t\t\t{\n\t\t\t\tword=(String) arraylist.get(0);\n\t\t\t\tResource subject = model.createResource(defaultNameSpace+word);\n\t\t\t\tword=(String) arraylist.get(2);\n\t\t\t\tResource object = model.createResource(defaultNameSpace+word);\n\t\t\t\tResource class1=model.getResource(defaultNameSpace+\"Match\");\n\t\t\t\tmodel.add(subject,RDF.type,class1);\n\t\t\t\tmodel.add(object,RDF.type,class1);\n\t\t\t\tmodel.add(subject,pred,object);\n\t\t\t\t\n\t\t\t}\n\t\t\treturn model;\n\t\t}",
"public MyList() {\n this(\"List\");\n }",
"OL createOL();",
"@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }",
"protected ProvinciaList() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"ConceptsType createConceptsType();",
"public void test_sf_940570() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM_RDFS_INF );\n OntClass C = m.createClass( NS + \"C\" );\n Resource a = m.createResource( NS + \"a\", C );\n \n TestUtil.assertIteratorValues( this, m.listIndividuals(), new Object[] {a} );\n \n OntModel dm = ModelFactory.createOntologyModel( OntModelSpec.DAML_MEM_RULE_INF );\n OntClass D = dm.createClass( NS + \"D\" );\n Resource b = dm.createResource( NS + \"b\", D );\n \n TestUtil.assertIteratorValues( this, dm.listIndividuals(), new Object[] {b} );\n }",
"public void genLists() {\n\t}",
"public interface EHR_Entity extends Data_Entity {\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#agent_id\r\n String getAgent_id();\r\n\r\n RDFProperty getAgent_idProperty();\r\n\r\n boolean hasAgent_id();\r\n\r\n void setAgent_id(String newAgent_id);\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#object_ids\r\n Collection getObject_ids();\r\n\r\n RDFProperty getObject_idsProperty();\r\n\r\n boolean hasObject_ids();\r\n\r\n Iterator listObject_ids();\r\n\r\n void addObject_ids(String newObject_ids);\r\n\r\n void removeObject_ids(String oldObject_ids);\r\n\r\n void setObject_ids(Collection newObject_ids);\r\n\r\n // Property http://www.owl-ontologies.com/unnamed.owl#type\r\n String getType();\r\n\r\n RDFProperty getTypeProperty();\r\n\r\n boolean hasType();\r\n\r\n void setType(String newType);\r\n}",
"ListOfBooks(){\n \tlist = new LinkedList<Book>();\n }",
"public WeatherNewListData() {\n\t}",
"private void initList() {\n\n }",
"public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }",
"@Test\n public void testCreateList() throws Exception {\n System.out.println(\"createList\");\n ListType type = ListType.PUBLIC;\n WordList result = WordListApi.createList(token, testListName, testListDescription, type);\n\n assertNotNull(result);\n assertNotNull(result.getId());\n assertEquals(username, result.getUsername());\n assertEquals(token.getUserId(), result.getUserId());\n assertEquals(testListName, result.getName());\n assertEquals(testListDescription, result.getDescription());\n\n testList = result;\n }",
"public interface MyOntologyService {\n\n OWLOntology readMyOntology(OWLOntologyManager ontManager, String owlFilePath);\n\n OWLNamedIndividual applyClassAssertionFromObject(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n Object obj,\n String indName);\n\n void applyObjectPropertyAssertion(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_obj,\n String objectPropertyName,\n OWLNamedIndividual ind_field_obj);\n\n OWLObjectPropertyAssertionAxiom getObjectPropertyAssertionAxiom(\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n OWLNamedIndividual ind_object);\n\n void applyDataPropertyAssertion(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_obj,\n String dataPropertyName,\n Object data);\n\n OWLDataPropertyAssertionAxiom getDataPropertyAssertionAxiom(\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n Object data);\n\n OWLObjectProperty getObjectProperty(\n String propName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n OWLDataProperty getDataProperty(\n String propName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n OWLNamedIndividual getNamedIndividual(\n String indName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n boolean isObjectPropEntailed(\n PelletReasoner reasoner,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n OWLNamedIndividual ind_object);\n\n boolean isDataPropEntailed(\n PelletReasoner reasoner,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n Object data);\n\n// void createRuleObjectForTest(\n// OWLOntologyManager ontManager,\n// OWLDataFactory factory,\n// OWLOntology myOntology,\n// PrefixOWLOntologyFormat pm\n// );\n\n // Dilara's method\n //This method is to use OWL API and create rule from our own Rule object.\n SWRLRule getOWLRepresentation(RuleForPrinego rule);\n\n RuleForPrinego SWRLtoRule(SWRLRule swl);\n\n List<SWRLRule> listRules(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm\n );\n\n boolean createRule(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n SWRLRule rule\n );\n\n boolean deleteRule(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n SWRLRule rule\n );\n\n}",
"private static void initDatatypeProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n ontologie.add(ontologie);\n datatypeProperties.addAll(ontologie.listDatatypeProperties().toList());\n }",
"Ontology getSourceOntology();",
"ObservableList<Attraction> getAttractionList();",
"eList()\r\n {\r\n head = null;\r\n keyword = new String();\r\n }",
"private void createList(String dataType) {\n\t\tlistModel.clear();\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t\tlist.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent evt) {\n\t\t\t\tif (evt.getClickCount() == 1) { //One click to select a link\n\t\t\t\t\taddRemoveButton();\n\t\t\t\t} else if (evt.getClickCount() == 2) { //Double click to open a link\n\t\t\t\t\tlayer.show(userViewPort, \"WebBrowser\");\n\t\t\t\t\tmenuBar.remove(backButton);\n\t\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\t\tmenuBar.revalidate();\n\t\t\t\t\tif (viewMode == 2) {\n\t\t\t\t\t\tnavigation.validateURL(userData.deriveFrom(\"history\").get(list.getSelectedIndex()), true);\n\t\t\t\t\t} else if (viewMode == 3) {\n\t\t\t\t\t\tnavigation.validateURL(userData.deriveFrom(\"bookmarks\").get(list.getSelectedIndex()), true);\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\tviewMode = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tif (userData.getValue(dataType).length() != 0) {\n\t\t\tfor (String s : userData.deriveFrom(dataType)) {\n\t\t\t\ttry {\n\t\t\t\t\tlistModel.addElement(new URL(s).getHost());\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tnavigation.showError(\"Something went wrong!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private static void initObjectProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n objectProperties.addAll(ontologie.listObjectProperties().toList());\n }",
"private ArrayList<SearchModel> initData() {\n // items in the arraylist\n ArrayList<SearchModel> foodList = new ArrayList<>();\n List<FoodModel> foods = foodModelList;\n for(int i=0; i< foods.size(); i++)\n {\n foodList.add(new SearchModel(foods.get(i).getName()));\n }\n return foodList;\n }",
"private List<Concept> getConceptList(String id, Terminology terminology, IncludeParam ip)\n throws JsonMappingException, JsonProcessingException {\n Optional<ElasticObject> esObject = getElasticObject(id, terminology);\n if (!esObject.isPresent()) {\n return Collections.<Concept> emptyList();\n }\n\n List<Concept> concepts = esObject.get().getConcepts();\n return ConceptUtils.applyInclude(concepts, ip);\n }",
"public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }",
"public ArticleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public ArticleExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public String getOntologyURI();",
"public void ListModelCreator(String NombreLista, String NombreTabla) {\r\n ArrayList<String> Atributos = new ArrayList();\r\n System.out.println(\"\");\r\n System.out.println(\"DefaultTableModel model = new DefaultTableModel();\");\r\n int NumVariables = this.Num_Atributes;\r\n String Lista = NombreLista;\r\n for (int i = 0; i < NumVariables; i++) {\r\n String Dato = this.DeclaredFields[i].getName();\r\n Atributos.add(Dato);\r\n System.out.println(\"model.addColumn(\\\"\"\r\n + Dato + \"\\\");\");\r\n }\r\n System.out.println(\"if (\" + Lista + \".size() >= 0) {\");\r\n System.out.println(\"Object[] o = new Object[model.getColumnCount()];\");\r\n System.out.println(\"for (int i = 0; i < \" + Lista + \".size(); i++) {\");\r\n for (int i = 0; i <= NumVariables; i++) {\r\n try {\r\n System.out.println(\"o[\" + i + \"] = \" + Lista + \".get(i).get\" + Atributos.get(i) + \"();\");\r\n } catch (Exception e) {\r\n }\r\n\r\n }\r\n System.out.println(\"model.addRow(o);\");\r\n System.out.println(\"}\");\r\n System.out.println(\"}\");\r\n String Tabla = NombreTabla;\r\n System.out.println(Tabla + \".setModel(model);\");\r\n }",
"public void addOntology(String ontology)\n\t{\n\t\t// add current prefixes first\n\t\tString prefixes = \"\";\n\t\tfor(String prefixDeclaration:this.neededPrefixesForQueries)\n\t\t{\n\t\t\tprefixes = prefixes + \"@prefix \" + prefixDeclaration + \".\\n\";\n\t\t}\n\t\tprefixes += \"\\n\";\n\t\t\n\t\tontology = prefixes + ontology;\n\t\t\n\t\t// add new ontology to model\n\t\tthis.model.read(new ByteArrayInputStream(ontology.getBytes(StandardCharsets.UTF_8)), null, \"TTL\");\n\t\t\n\t\t// re-populate prefix mappings\n\t\tthis.populatePrefixMappings(model);\n\t}",
"private void createQualificationsList(){\n\t\tlistedQualList.clear();\n\t\tlistedQuals=jdbc.get_qualifications();\n\t\tfor(Qualification q: listedQuals){\n\t\t\tlistedQualList.addElement(q.getQualName());\n\t\t}\n\t}",
"public OccList()\n {\n int capacity = 8;\n data = new Occ[capacity];\n // initialize data with empty occ\n for (int i=0; i<capacity; i++) data[i] = new Occ(); \n }",
"public static void main( String[] args ) {\n\n Model m = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RDFS_INF);\n\n\n FileManager.get().readModel( m, owlFile );\n String myOntologyName = \"http://www.w3.org/2002/07/owl#\";\n String myOntologyNS = \"http://www.w3.org/2002/07/owl#\";\n////\n////\n// String rdfPrefix = \"PREFIX rdf: <\"+RDF.getURI()+\">\" ;\n// String myOntologyPrefix = \"PREFIX \"+myOntologyName+\": <\"+myOntologyNS+\">\" ;\n// String myOntologyPrefix1 = \"PREFIX \"+myOntologyName ;\n String myOntologyPrefix2 = \"prefix pizza: <http://www.w3.org/2002/07/owl#> \";\n//\n//\n//// String queryString = myOntologyPrefix + NL\n//// + rdfPrefix + NL +\n//// \"SELECT ?subject\" ;\n \n String queryString = rdfPrefix + myOntologyPrefix2 +\n// \t\t \"prefix pizza: <http://www.w3.org/2002/07/owl#> \"+ \n \t\t \"prefix rdfs: <\" + RDFS.getURI() + \"> \" +\n \t\t \"prefix owl: <\" + OWL.getURI() + \"> \" +\n// \t\t \"select ?o where {?s ?p ?o}\";\n \n//\t\t\t\t\t\t\"select ?s where {?s rdfs:label \"苹果\"@zh}\";\n \n// \"SELECT ?label WHERE { ?subject rdfs:label ?label }\" ;\n// \"SELECT DISTINCT ?predicate ?label WHERE { ?subject ?predicate ?object. ?predicate rdfs:label ?label .}\";\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"Italy\\\"@en}\" ;\n// \"SELECT DISTINCT ?s WHERE {?s rdfs:label \\\"苹果\\\"@zh}\" ;\n// \"SELECT DISTINCT ?s WHERE\" +\n// \"{?object rdfs:label \\\"水果\\\"@zh.\" +\n// \"?subject rdfs:subClassOf ?object.\" +\n// \"?subject rdfs:label ?s}\";\n //星号是转义字符,分号是转义字符\n\t\t\t\t\"SELECT DISTINCT ?e ?s WHERE {?entity a ?subject.?subject rdfs:subClassOf ?object.\"+\n \"?object rdfs:label \\\"富士苹果\\\"@zh.?entity rdfs:label ?e.?subject rdfs:label ?s}ORDER BY ?s\";\n \t\t\n\n \n \t\tcom.hp.hpl.jena.query.Query query = QueryFactory.create(queryString);\n \t\tQueryExecution qe = QueryExecutionFactory.create(query, m);\n \t\tcom.hp.hpl.jena.query.ResultSet results = qe.execSelect();\n\n \t\tResultSetFormatter.out(System.out, results, query);\n \t\tqe.close();\n\n// Query query = QueryFactory.create(queryString) ;\n\n query.serialize(new IndentedWriter(System.out,true)) ;\n System.out.println() ;\n\n\n\n QueryExecution qexec = QueryExecutionFactory.create(query, m) ;\n\n try {\n\n ResultSet rs = qexec.execSelect() ;\n\n\n for ( ; rs.hasNext() ; ){\n QuerySolution rb = rs.nextSolution() ;\n RDFNode y = rb.get(\"person\");\n System.out.print(\"name : \"+y+\"--- \");\n Resource z = (Resource) rb.getResource(\"person\");\n System.out.println(\"plus simplement \"+z.getLocalName());\n }\n }\n finally{\n qexec.close() ;\n }\n }",
"public NamedList() {\n\t\tnvPairs = new ArrayList<Object>();\n\t}",
"public TodoList() {\n todoItems = new ArrayList<TodoItem>();// declares and assigns todoItems to the todo list\n }",
"private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}",
"public ListPolygone() {\n this.list = new ArrayList();\n }",
"protected Depot(List<E> list) {\n\t\tthis.list = list == null ? getList() : list;\n\t\tdict = new LinkedHashMap<UUID, E>();\n\t\tfor (E t : this.list) {\n\t\t\tdict.put(UUID.randomUUID(), t);\n\t\t}\n\t\tnames = new LinkedHashMap<String, UUID>();\n\t}",
"public FpLista() {\r\n\t\t\r\n\t}",
"private LinkedList<TermDocList> generateTermDocList(LinkedList<String> list){ \n \n LinkedList<TermDocList> merge_list = new LinkedList<TermDocList>();\n //extract a string from a slave node\n for (int i = 0; i < list.size(); i++) {\n String[] termList = list.get(i).split(\"\\n\");\n// System.out.println(\"termList: \"+list.get(i)); \n \n //extract a string lead by a term\n for (int j = 0; j < termList.length; j++) {\n //process the string, store in the termInfo, insert into termInfo list\n TermDocList jtermDocList = new TermDocList();\n String[] temp = termList[j].split(\" \");\n// System.out.println(\"temp length: \"+temp.length); \n jtermDocList.term = temp[0];\n\n jtermDocList.totalfreq = Integer.parseInt(temp[1]);\n jtermDocList.docList = new ArrayList<DocInfo>();\n //convert temp[2] to an arraylist\n String regular = \"(\\\\w{6},\\\\w+)\";\n Pattern p = Pattern.compile(regular);\n Matcher m = p.matcher(temp[2]);\n while (m.find()) {\n String[] docTemp = m.group(1).split(\",\");\n DocInfo newdocInfo = new DocInfo(docTemp[0], Integer.parseInt(docTemp[1]));\n jtermDocList.docList.add(newdocInfo);\n }\n merge_list.add(jtermDocList);\n }\n }\n return merge_list;\n }",
"public void onCreate() {\n\r\n\r\n \tRDFResource newResource = (RDFResource) ProtegeUI.getSelectionDialogFactory().selectClass(AssertedInstancesListOntoMorphPanel.this, owlModel, \"Select a named class to add\");\r\n \tif (newResource instanceof Cls)\r\n \t{\r\n\r\n \t\t/* How creation works:\r\n\t\t\t\t\t\t1. First, create a resource\r\n\t\t\t\t\t\t2. add resource to the 'classes' list\r\n\t\t\t\t\t\t3. refresh the display list based on the 'classes'\r\n\t\t\t\t\t\t4. create the instance in the owlModel\r\n\t\t\t\t\t\t5. set the selected on the display list value to match\r\n \t\t*/\r\n\r\n \t\tArrayList type = new ArrayList();\r\n \t\ttype.add(newResource);\r\n\r\n \t\t//** Not sure what this does, but deleteding it will criple the 'delete individual' button\r\n \t\tArrayList acsum = new ArrayList();\r\n \t\tacsum.addAll(classes);\r\n \t\tacsum.add(newResource);\r\n \t\tremoveClsListeners();\r\n \t\tclasses = acsum;\r\n \t\tlist.setClasses(acsum);\r\n \t\t//****\r\n \t\t\r\n\r\n \t\tInstance instance = owlModel.createInstance(null, type);\r\n \t\tif (instance instanceof Cls) {\r\n \t\t\tCls newCls = (Cls) instance;\r\n \t\t\t//if this is a top level class, make it at least be a subclass of owlThing\r\n \t\t\tif (newCls.getDirectSuperclassCount() == 0) {\r\n \t\t\t\tnewCls.addDirectSuperclass(owlModel.getOWLThingClass());\r\n \t\t\t}\r\n \t\t}\r\n\r\n \t\t//make it ready for markup\r\n \t\tnewResource = (RDFResource) instance;\r\n \t\t\r\n \t\t//To create an 'empty' instance as below\r\n \t\t//assignImgSelection(newResource, \"none\", 0, 0, 0);\r\n \t\t//***\r\n \t\tif (instance != null)\r\n \t\t{\r\n \t\t\tint[] plist = {0,0};\r\n \t\t\tint reqNodes = 3;\r\n \t\t\tplist=oTab.getSelectedNodes();\r\n\r\n \t\t\tif (plist == null)\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"*** Error creating instance: No points were selected, needed\" + reqNodes);\r\n \t\t\t\tassignImgSelection(newResource, \"none\", 0, 0, 0); //create an 'empty' instance\r\n \t\t\t}\r\n \t\t\telse if (plist.length == reqNodes)\r\n \t\t\t{\r\n \t\t\t\tassignImgSelection(newResource, oTab.neuronPanel.getURL(), plist[0], plist[1], plist[2]);\t//graphically display the class that was selected by calling this method on current image\r\n \t\tSystem.out.println(\"*** New OMT individual: \" + newResource.getName());\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"*** Error creating instance: Could not resolve selection list (Needed \" + reqNodes + \" have \" + plist.length);\r\n \t\t\t}\r\n \t\t}\r\n\r\n \t\t//Reload the list\r\n \t\treload();\r\n \t\tupdateButtons();\r\n \t\taddClsListeners();\r\n\r\n \t\tlist.setSelectedValue(instance, true);\r\n \t}\r\n }",
"public SpyList() {\r\n }",
"public OrderHeadExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void test_afs_01() {\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <owl:Class rdf:about='http://example.org/foo#A'>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n String sourceA =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#' \"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <rdf:Description rdf:about='http://example.org/foo#x'>\"\n + \" <rdf:type rdf:resource='http://example.org/foo#A' />\"\n + \" </rdf:Description>\"\n + \"</rdf:RDF>\";\n \n Model tBox = ModelFactory.createDefaultModel();\n tBox.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n Model aBox = ModelFactory.createDefaultModel();\n aBox.read(new ByteArrayInputStream(sourceA.getBytes()), \"http://example.org/foo\");\n \n Reasoner reasoner = ReasonerRegistry.getOWLReasoner();\n reasoner = reasoner.bindSchema(tBox);\n \n OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM_RULE_INF);\n spec.setReasoner(reasoner);\n \n OntModel m = ModelFactory.createOntologyModel(spec, aBox);\n \n List inds = new ArrayList();\n for (Iterator i = m.listIndividuals(); i.hasNext();) {\n inds.add(i.next());\n }\n \n assertTrue(\"x should be an individual\", inds.contains(m.getResource(\"http://example.org/foo#x\")));\n \n }",
"public void test_dn_0() {\n OntModel schema = ModelFactory.createOntologyModel( OntModelSpec.OWL_LITE_MEM_RULES_INF, null );\n \n schema.read( \"file:doc/inference/data/owlDemoSchema.xml\", null );\n \n int count = 0;\n for (Iterator i = schema.listIndividuals(); i.hasNext(); ) {\n //Resource r = (Resource) i.next();\n i.next();\n count++;\n /* Debugging * /\n for (StmtIterator j = r.listProperties(RDF.type); j.hasNext(); ) {\n System.out.println( \"ind - \" + r + \" rdf:type = \" + j.nextStatement().getObject() );\n }\n System.out.println(\"----------\"); /**/\n }\n \n assertEquals( \"Expecting 6 individuals\", 6, count );\n }",
"public InventoryList() {\n super(\"Inventory List\");\n }",
"public EmpdetailExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"@Before\n public void createSimpleList() {\n testList = new SimpleList();\n }",
"public PatientList()\r\n\t{\r\n\t\treadPatientListFromFile();\r\n\t\t//showPatientList();\r\n\t}",
"public JSmartList()\n {\n }",
"protected void print_Ontology(String ontClass, ListBox box) {\n\t\tbox.addItem(ontClass);\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }",
"public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }",
"static Document xmlBuildDocFromList(ArrayList lList,int nMaxID) {\n Element eRoot = new Element(\"RandomNamesList\");\n eRoot.addContent(new Element(\"nMaxID\").setText(\"\"+nMaxID));\n Document doc = new Document(eRoot);\n\n for(int i=0;i<lList.size();i++) {\n\n TableRandomName oO = (TableRandomName)lList.get(i);\n eRoot.addContent(oO.xmlGetElements());\n\n }\n\n return doc;\n }",
"public TreeList()\n {\n\t this.lst = new AVLTree();\n\t this.length = 0;\n }",
"protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}",
"public TiraList() {\n this.list = new Object[8];\n this.nextindex = 0;\n this.startIndex = 0;\n }"
]
| [
"0.61522436",
"0.59612334",
"0.58918345",
"0.5871209",
"0.5865107",
"0.58354414",
"0.57844454",
"0.57797855",
"0.5773135",
"0.5752281",
"0.5742887",
"0.572051",
"0.5654224",
"0.56528693",
"0.56357545",
"0.5626339",
"0.56003875",
"0.55856746",
"0.5562658",
"0.55590284",
"0.55565083",
"0.55333465",
"0.5517061",
"0.5515997",
"0.55112535",
"0.54738986",
"0.5466006",
"0.5456349",
"0.54346097",
"0.5422665",
"0.5411542",
"0.5399562",
"0.5368551",
"0.53663564",
"0.53661686",
"0.5335558",
"0.53171015",
"0.5305385",
"0.5275739",
"0.5269731",
"0.52669984",
"0.5266087",
"0.5260918",
"0.52401835",
"0.5236737",
"0.5231336",
"0.52152795",
"0.5214186",
"0.52131313",
"0.52009135",
"0.5199008",
"0.5198491",
"0.5194869",
"0.5192742",
"0.51896113",
"0.5184101",
"0.5183181",
"0.5181274",
"0.51751417",
"0.51679057",
"0.5159416",
"0.5141046",
"0.5135234",
"0.5135115",
"0.51238286",
"0.51038504",
"0.5059144",
"0.505418",
"0.505418",
"0.5053303",
"0.5052342",
"0.5048089",
"0.5047211",
"0.5040808",
"0.5040276",
"0.5037977",
"0.503716",
"0.50345284",
"0.50334215",
"0.50299275",
"0.50200963",
"0.5019876",
"0.50176436",
"0.50124323",
"0.5003913",
"0.50002",
"0.49932995",
"0.4986487",
"0.49850276",
"0.49846798",
"0.4974554",
"0.49708208",
"0.49650055",
"0.49631867",
"0.49629936",
"0.49629936",
"0.4960565",
"0.49600753",
"0.49564964",
"0.49556115"
]
| 0.51967573 | 52 |
time.pid.host here we use use iNotes date + iNotes unid | protected String getMailFileName(MessageMetaData message) {
return "" + message.date.getTime() + '-' + message.unid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}",
"public String getTimeVariable(){ return common.timeDatapath; }",
"public String getTimeid() {\n return timeid;\n }",
"public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}",
"java.lang.String getServerTime();",
"public String getDate() {\n\t\treturn logInfoSplit[0] + \"_\" + logInfoSplit[1];\n\t}",
"public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }",
"public String getExtraTimeHost()\r\n {\r\n return extraTimeHost;\r\n }",
"String clientProcessTime(final int index);",
"private String timeConversion() {\n Calendar local = Calendar.getInstance();\n Calendar GMT = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\n //Time from the PINPoint\n int hours, minutes, seconds, day, month, year;\n hours = (record[10] & 0xF8) >> 3;\n minutes = ((record[10] & 0x07) << 3) + ((record[11] & 0xE0) >> 5);\n seconds = ((record[11] & 0x1F) << 1) + ((record[12] & 0x80) >> 7);\n seconds += (record[12] & 0x7F) / 100;\n day = (record[13] & 0xF8) >> 3;\n month = ((record[13] & 0x07) << 1) + ((record[14] & 0x80) >> 7);\n year = (record[14] & 0x7F) + 2000;\n \n month--; //Months in java are 0-11, PINPoint = 1-12;\n\n //Set GMTs time to be the time from the PINPoint\n GMT.set(Calendar.DAY_OF_MONTH, day);\n GMT.set(Calendar.MONTH, month);\n GMT.set(Calendar.YEAR, year);\n GMT.set(Calendar.HOUR_OF_DAY, hours);\n GMT.set(Calendar.MINUTE, minutes);\n GMT.set(Calendar.SECOND, seconds);\n\n //Local is set to GMTs time but with the correct timezone\n local.setTimeInMillis(GMT.getTimeInMillis());\n\n //Set Local time to be the time converted from GMT\n int lHours, lMinutes, lSeconds, lDay, lMonth, lYear;\n lHours = local.get(Calendar.HOUR_OF_DAY);\n lMinutes = local.get(Calendar.MINUTE);\n lSeconds = local.get(Calendar.SECOND);\n lDay = local.get(Calendar.DAY_OF_MONTH);\n lMonth = local.get(Calendar.MONTH);\n\n lMonth++; //Months in java are 0-11, humans read 1-12\n\n lYear = local.get(Calendar.YEAR);\n\n return hR(lMonth) + \"/\" + hR(lDay) + \"/\" + lYear + \" \" + hR(lHours) + \":\" + hR(lMinutes) + \":\" + hR(lSeconds);\n }",
"public int getTime() { return _time; }",
"String indexBlackLabBuildTime();",
"long getPublishTime();",
"public static void main(String[] args)\r\n/* 96: */ {\r\n/* 97:104 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 98:105 */ String qiandaotime = df.format(new Date());\r\n/* 99:106 */ System.out.println(qiandaotime);\r\n/* 100: */ }",
"private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}",
"private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }",
"public static String getDateId() {\n Date date = new Date();\n String dateFormatStyle = \"yy-MM-dd-HH-mm-ss\";\n SimpleDateFormat sdf = new SimpleDateFormat(dateFormatStyle);\n String dateFormat = sdf.format(date);\n String[] formatedDate = dateFormat.split(\"-\");\n int i = 0;\n String year = formatedDate[i];\n String month = formatedDate[++i];\n String cDate = formatedDate[++i];\n String hour = formatedDate[++i];\n String minute = formatedDate[++i];\n String second = formatedDate[++i];\n return alphanum[Integer.parseInt(year)]\n .concat(alphanum[Integer.parseInt(month)])\n .concat(alphanum[Integer.parseInt(cDate)])\n .concat(alphanum[Integer.parseInt(hour)])\n .concat(alphanum[Integer.parseInt(minute)])\n .concat(alphanum[Integer.parseInt(second)]);\n }",
"private long baseTime() {\n return Bytes.getUnsignedInt(row, tsdb.metrics.width());\n }",
"@Override\r\n\tpublic String gettime() {\n\t\treturn user.gettime();\r\n\t}",
"public static String fn_GetCurrentTimeStamp() {\n\t\tDate dte = new Date();\n\t\tDateFormat df = DateFormat.getDateTimeInstance();\n\t\tString strdte = df.format(dte);\n\t\tstrdte = strdte.replaceAll(\":\", \"_\");\n\t\treturn strdte;\n\t}",
"@Override\n\tpublic String getTimeAndDate() throws RemoteException {\n\tDate date = new Date();\n\tSystem.out.println(date.toString());\n\treturn date.toString();\n\t}",
"private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }",
"String timeStamp() {\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\t String y = String.valueOf(now.get(now.YEAR));\n\t\t String mo = String.valueOf(now.get(now.MONTH)+1);\n\t\t String d = String.valueOf(now.get(now.DAY_OF_MONTH));\n\t\t String h = String.valueOf(now.get(now.HOUR_OF_DAY));\n\t\t String m = String.valueOf(now.get(now.MINUTE));\n\t\t String s = String.valueOf(now.get(now.SECOND));\n\t\t String ms = String.valueOf(now.get(now.MILLISECOND));\n\n\n\t return h + m + s + ms;\n\n\n\n }",
"public static String getYYYYMMDDHHMMSS()\r\n/* 56: */ {\r\n/* 57: 68 */ String nowTime = \"\";\r\n/* 58: 69 */ Date now = new Date();\r\n/* 59: 70 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n/* 60: 71 */ nowTime = formatter.format(now);\r\n/* 61: 72 */ return nowTime;\r\n/* 62: */ }",
"public java.lang.String getSystemlogtime () {\n\t\treturn systemlogtime;\n\t}",
"public static void main(String[] args) {\r\n\t\tDate now = new Date();\r\n\t\tSimpleDateFormat sdf = \r\n\t\tnew SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\tString str = sdf.format(now);\r\n\tSystem.out.println(str);\r\n\tlong time = now.getTime();\r\n\ttime += 48954644;\r\n\tnow.setTime(time);\r\n\tSystem.out.println(sdf.format(now));\r\n\tDate dat = null;\r\n\ttry {\r\n\t\tdat = sdf.parse(str);\r\n\t} catch (ParseException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\tSystem.out.println(dat);\r\n\t\r\n\r\n}",
"private String formatTimeToICS(LocalDateTime date) {\n return DateTimeFormatter.ofPattern(\"YYYYMMddTHHmmss\").format(date);\n }",
"public static void main(String[] args) {\n\t\tDate today = new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy:MM:dd hh:MM:ss\");\n\t\tString s= sdf.format(today);\n\t\tSystem.out.println(s);\n\t}",
"private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tLocalDateTime Idt = LocalDateTime.now();\n\t\t\n\t\tSystem.out.println(Idt); //2021-03-19T23:06:48.913604300\n\t\tSystem.out.println(Idt.toString());//2021-03-19T23:06:48.913604300\n\t\t\n\t\tString time = Idt.toString();\n\t\t\n\t\tSystem.out.println(time.startsWith(\"2021\")); //true\n\t\t\n\t\t\n\t\t\n\t}",
"public static String createPID()\r\n\t{\r\n\t\tunique_count++;\r\n\t\tif(unique_count >= 100) unique_count = 0;\r\n\t\tString str_num = String.format(\"%02d\", unique_count);\r\n\t\t\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyMMddHHmmss\");\r\n\t\tString pid = dateFormat.format(new Date()) + str_num;\r\n\t\treturn pid;\r\n\t}",
"public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }",
"private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }",
"String getSourceUsageURLModificiationTime();",
"private long getAppProcessTime(int pid) {\n FileInputStream in = null;\n String ret = null;\n try {\n in = new FileInputStream(\"/proc/\" + pid + \"/stat\");\n byte[] buffer = new byte[1024];\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n int len = 0;\n while ((len = in.read(buffer)) != -1) {\n os.write(buffer, 0, len);\n }\n ret = os.toString();\n os.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (in != null) {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n if (ret == null) {\n return 0;\n }\n\n String[] s = ret.split(\" \");\n if (s == null || s.length < 17) {\n return 0;\n }\n\n long utime = string2Long(s[13]);\n long stime = string2Long(s[14]);\n long cutime = string2Long(s[15]);\n long cstime = string2Long(s[16]);\n\n return utime + stime + cutime + cstime;\n }",
"private long getAppProcessTime(int pid) {\n FileInputStream in = null;\n String ret = null;\n try {\n in = new FileInputStream(\"/proc/\" + pid + \"/stat\");\n byte[] buffer = new byte[1024];\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n int len = 0;\n while ((len = in.read(buffer)) != -1) {\n os.write(buffer, 0, len);\n }\n ret = os.toString();\n os.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (in != null) {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n if (ret == null) {\n return 0;\n }\n\n String[] s = ret.split(\" \");\n if (s == null || s.length < 17) {\n return 0;\n }\n\n long utime = string2Long(s[13]);\n long stime = string2Long(s[14]);\n long cutime = string2Long(s[15]);\n long cstime = string2Long(s[16]);\n\n return utime + stime + cutime + cstime;\n }",
"public static void main(String[] args) {\n\n\t\t SimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\");\n\t\t// for(int i=0; i<100; i++) {\n\t\t// String strDT = sf.format(new Date(System.currentTimeMillis()));\n\t\t// System.out.println(strDT);\n\t\t// }\n\n\t\t\n\t\tDate oldDate = new Date();\n\t\tCalendar gcal = new GregorianCalendar();\n\t\tgcal.setTime(oldDate);\n\t\tgcal.add(Calendar.SECOND, -4468);\n\t\tDate newDate = gcal.getTime();\n\t\tSystem.out.println(sf.format(oldDate));\n\t\tSystem.out.println(sf.format(newDate));\n\t}",
"long getCreateTime();",
"long getCreateTime();",
"public static String timestamp(){\n\t\tDate date = new Date();\n\t\tDateFormat hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss \");\n\t\treturn hourdateFormat.format(date);\n\t}",
"public String getTime() {\n\t}",
"String timeCreated();",
"public String getThreadTimeInfo(long tid) {\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\tif(!bean.isThreadCpuTimeSupported()) \n\t\t\treturn \"-1\";\n\n\t\tlong userTime = bean.getThreadUserTime(tid);\n\t\tlong cpuTime = bean.getThreadCpuTime(tid);\n\n\t\tsb.append(userTime).append(\"#\").append(cpuTime);\n\t\ttimeInfo = sb.toString();\n\t\treturn timeInfo;\n\t}",
"public String getPubtime() {\n return pubtime;\n }",
"public String getBeginTime(){return beginTime;}",
"public abstract long now();",
"int getCreateTime();",
"@Override\n\tpublic String getTime() {\n\t\treturn time;\n\t}",
"int getIO_time();",
"public static String createTimeStamp(){\n return new SimpleDateFormat( \"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n }",
"public static String getSystemDate()\n {\n\t DateFormat dateFormat= new SimpleDateFormat(\"_ddMMyyyy_HHmmss\");\n\t Date date = new Date();\n\t return dateFormat.format(date);\n }",
"String timeModified();",
"public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }",
"public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }",
"public static String getTimeStamp() {\n\t\tDate date = new Date();\n\t\treturn date.toString().replaceAll(\":\", \"_\").replaceAll(\" \", \"_\");\n\n\t}",
"public static String getTimeStamp() {\r\n\r\n\t\tlong now = (System.currentTimeMillis() - startTime) / 1000;\r\n\r\n\t\tlong hours = (now / (60 * 60)) % 24;\r\n\t\tnow -= (hours / (60 * 60)) % 24;\r\n\r\n\t\tlong minutes = (now / 60) % 60;\r\n\t\tnow -= (minutes / 60) % 60;\r\n\r\n\t\tlong seconds = now % 60;\r\n\r\n\t return String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\r\n\t}",
"public Date getDateofLaunch() {\n\treturn null;\n}",
"public static void main(String[] args) {\n\t\tDate date=new Date(Long.parseLong(\"1438842265000\"));\n\t\tSystem.err.println(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(date));\n\t}",
"private long getTime(LogModel logModel) throws FieldNotFoundException, ParseException {\n try {\n String timeStr = logModel.getProcedureEndTime();\n long time = Long.parseLong(timeStr);\n if (logModel.getProcedureEndTime().startsWith(\"20\") && timeStr.length() == 14) {\n time = TimeConvertor.convertTime(logModel.getProcedureEndTime(), \"yyyyMMddHHmmss\");\n return time;\n }\n if (time > 4000000000L) {\n // ms\n return time / 1000;\n }\n return time;\n } catch (NumberFormatException e) {\n try {\n long time = TimeConvertor.convertTime(logModel.getProcedureEndTime());\n return time;\n } catch (ParseException ex) {\n throw ex;\n }\n }\n }",
"java.lang.String getField1970();",
"public String getTime(){\n return time;\n }",
"String clientResidenceTime(final int index);",
"private static String timeFor(Date date)\n\t{\n\t\tDateFormat df = new InternetDateFormat();\n\t\tString theTime = df.format(date);\n\t\treturn theTime;\n\t}",
"public static void main(String args[])\r\n\t{\n\t\tSystem.out.println( getSAPDateAndTime(\"20210426 135157\") );\r\n\t}",
"@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }",
"public String getItime() {\n return itime;\n }",
"public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}",
"public Date getPrint_time(){\r\n\t\treturn this.print_time ;\r\n\t}",
"private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}",
"private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}",
"public Date getLogtime()\r\n {\r\n return logtime;\r\n }",
"private long now() {\n\treturn System.currentTimeMillis();\n }",
"void unixTimestamp(HplsqlParser.Expr_func_paramsContext ctx) {\n evalVar(new Var(System.currentTimeMillis()/1000));\n }",
"public static void main(String[] args)\n throws Exception\n {\n PrintWriter pen = new PrintWriter(System.out, true);\n\n /* // A few basic incidents\n UshahidiExtensions.printIncident(pen, UshahidiUtils.SAMPLE_INCIDENT);\n UshahidiExtensions.printIncident(pen, UshahidiUtils.randomIncident());\n UshahidiExtensions.printIncident(pen, UshahidiUtils.randomIncident());\n\n //credit to http://stackoverflow.com/questions/22463062/how-to-parse-format-dates-with-localdatetime-java-8\n //for showing how to change LocalDatetime\n String str = \"2014-10-05 11:19\";\n DateTimeFormatter formatter =\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n LocalDateTime dateTime = LocalDateTime.parse(str, formatter);\n UshahidiCategory[] categories =\n { new UshahidiCategory(1, \"homework\"),\n new UshahidiCategory(1, \"boring\") };\n // A newly created incident\n UshahidiIncident myIncident = new UshahidiIncident(1, \"Working on HW7\", dateTime,\n new UshahidiLocation(1, \"3rd floor Noyce\", 11.4, 10.3),\n \"Trying to finish this assignment.\", categories);\n UshahidiExtensions.printIncident(pen, myIncident);\n\n // One from a list\n UshahidiClient client = UshahidiUtils.SAMPLE_CLIENT;\n UshahidiExtensions.printIncident(pen, client.nextIncident());\n\n //One that requires connecting to the server\n UshahidiClient webclient = new UshahidiWebClient(\"http://ushahidi1.grinnell.edu/sandbox/\");\n UshahidiExtensions.printIncident(pen, webclient.nextIncident());\n */\n String str = \"2014-10-05 11:19\";\n DateTimeFormatter formatter =\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n LocalDateTime dateTime = LocalDateTime.parse(str, formatter);\n /*\n String str1 = \"2014-10-04 11:19\";\n DateTimeFormatter formatter1 =\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n LocalDateTime dateTime1 = LocalDateTime.parse(str1, formatter1);\n\n String str2 = \"2014-10-06 11:19\";\n DateTimeFormatter formatter2 =\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n LocalDateTime dateTime2 = LocalDateTime.parse(str2, formatter2);\n */\n String str3 = \"2013-10-06 11:19\";\n DateTimeFormatter formatter3 =\n DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n LocalDateTime dateTime3 = LocalDateTime.parse(str3, formatter3);\n\n UshahidiCategory[] categories =\n { new UshahidiCategory(1, \"homework\"),\n new UshahidiCategory(1, \"boring\") };\n\n UshahidiCategory[] categories1 =\n { new UshahidiCategory(1, \"homework\"),\n new UshahidiCategory(1, \"boring\"), new UshahidiCategory(1, \"sobored\") };\n\n UshahidiCategory[] categories2 =\n { new UshahidiCategory(1, \"homework\"),\n new UshahidiCategory(1, \"boring\"), new UshahidiCategory(1, \"sobored\"),\n new UshahidiCategory(1, \"dying\") };\n\n ArrayList<UshahidiIncident> a1 = new ArrayList<UshahidiIncident>();\n a1.add(new UshahidiIncident(1, \"Working on HW7\", dateTime3,\n new UshahidiLocation(1, \"3rd floor Noyce\",\n 11.4, 10.3),\n \"Trying to finish this assignment.\", categories));\n a1.add(new UshahidiIncident(1, \"Still working on HW7\", dateTime,\n new UshahidiLocation(1, \"3rd floor Noyce\",\n 11.4, 10.3),\n \"Still trying to finish this assignment.\",\n categories1));\n a1.add(new UshahidiIncident(1, \"Working on HW7\", dateTime,\n new UshahidiLocation(1, \"3rd floor Noyce\",\n 19.99, 19.99),\n \"Dying to finish this assignment.\", categories2));\n\n //UshahidiIncidentList incidents = new UshahidiIncidentList(a1);\n\n Vector<UshahidiIncident> a2 = new Vector<UshahidiIncident>();\n a2.addAll(a1);\n //Vector<UshahidiIncident> a3 =\n //UshahidiExtensions.vectorOfIncidents(incidents, dateTime1, dateTime2);\n\n //We test distance\n Vector<UshahidiIncident> a3 =\n UshahidiExtensions.nearbyIncidents(a2, 20.0, 20.0, 5);\n\n for (UshahidiIncident instance : a3)\n {\n UshahidiExtensions.printIncident(pen, instance);\n }\n //UshahidiExtensions.printSpecifiedIncidents(incidents, dateTime1, dateTime2);\n }",
"public String getTime()\r\n\t{\r\n\t\treturn displayString;\r\n\t}",
"public int getTT()\n {\n return toTime;\n }",
"double getClientTime();",
"long getTimeStamp();",
"private String getDate() {\n\t\tSimpleDateFormat parseFormat = new SimpleDateFormat(\"hh:mm a\");\n\t\tDate date = new Date();\n\t\tString s = parseFormat.format(date);\n\t\treturn s;\n\t}",
"private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}",
"java.lang.String getTime();",
"public static void main(String[] args){\n\t\tCalendar now = Calendar.getInstance(); // Gets the current date and time\n\t\tint year = now.get(Calendar.YEAR); \n\t\tint moth = now.get(Calendar.MONTH);\n\t\tint date = now.get(Calendar.DATE); \n\t\tDate d = now.getTime();\n\t\tTime t = ServletFunctions.getNowTime();\n\t\tSystem.out.println(t);\n\t\tSystem.out.println(year+\"-\"+moth+\"-\"+date);\n\t\t\n\t\tSystem.out.println(moth);\n\t\tSystem.out.println(date);\n\t\tSystem.out.println(d);\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tString ti = \"22:12:22\";\n\t\ttry {\n\t\t\tjava.sql.Time timeValue = new java.sql.Time(formatter.parse(ti).getTime());\n\t\t\tSystem.out.println(timeValue);\n\t\t} catch (ParseException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tDateTimeFormatter formatterr = DateTimeFormatter.ofPattern(\"HH:mm:ss\");\n\t\tString str = \"12:22:10\";\n\t\tLocalTime time = LocalTime.parse(str, formatterr);\n\t\tSystem.out.println(time);\n\t\t\n\t\tTime tt = ServletFunctions.strToTime(\"08:10:12\");\n\t\tSystem.out.println(tt);\n\t}",
"public String getSystemDateTime() {\n\t\tjava.text.SimpleDateFormat sdfDate = new java.text.SimpleDateFormat(\"yyyy/MM/dd\");\n java.text.SimpleDateFormat sdfTime = new java.text.SimpleDateFormat(\"HH:mm\");\n Date now = new Date();\n String strDate = sdfDate.format(now);\n String strTime = sdfTime.format(now);\n System.out.println(\"Date: \" + strDate);\n System.out.println(\"Time: \" + strTime); \n return \"date\"+strDate+\" \"+strTime;\n\t}",
"public abstract String getFirstTimeSettingID();",
"String getDate() { return epoch; }",
"long getRetrievedTime();",
"public long get_infos_timestamp() {\n return (long)getUIntBEElement(offsetBits_infos_timestamp(), 32);\n }",
"public Timestamp getHC_WorkStartDate2();",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"public String TI()\n\t{\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern(\"hh:mm a\");\n\t\tString ti = f.format(st);\n\t\tString ti2 = f.format(et);\n\t\treturn ti + \" - \" + ti2;\n \t}",
"String getTime(){\n\t\tCalendar c = Calendar.getInstance();\n int mseconds = c.get(Calendar.MILLISECOND);\n String currentDateandTime = mDateFormat.format(new Date()) + String.format(\"-%04d\", mseconds);\n \n return currentDateandTime;\n\t}",
"public abstract long getUptime();",
"public static String getDateTime(String publishtime) {\n if (publishtime != null && !publishtime.equals(\"\")) {\n SimpleDateFormat data = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return data.format(new Date(Long.parseLong(publishtime) * 1000L));\n }\n return \"\";\n }",
"long getInhabitedTime();",
"String getTimestamp();",
"String getTimestamp();",
"private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}",
"abstract public int getTime();",
"public static void main(String[] args) {\n\t String str = String.format(\"%tc\", new Date());\r\n\t System.out.printf(str);\r\n\t \r\n//\t // display time and date\r\n//\t System.out.printf(\" Today is : %1$s %2$tB %2$td, %2$tY\", \"Due date : \", new Date());\r\n//\r\n\r\n\t System.out.println( new SimpleDateFormat(\"E yyyy.MM.dd 'at' hh:mm:ss a zzz\").format(new Date()));\r\n\t System.out.println( new SimpleDateFormat(\"EEEE, MMMM d, yyyy\").format(new Date()));\r\n\t}"
]
| [
"0.5838069",
"0.5777318",
"0.5698688",
"0.56982905",
"0.5604099",
"0.5530858",
"0.5503497",
"0.5477069",
"0.5465076",
"0.5449133",
"0.5424866",
"0.5414375",
"0.54120994",
"0.5384795",
"0.53711224",
"0.5340757",
"0.5325386",
"0.53231704",
"0.5314341",
"0.53085965",
"0.53009284",
"0.52823645",
"0.52526695",
"0.5244402",
"0.5224066",
"0.5204722",
"0.5189565",
"0.51862",
"0.51832664",
"0.51832265",
"0.5180717",
"0.51730484",
"0.5167894",
"0.5162908",
"0.5161556",
"0.5155024",
"0.5155024",
"0.5151861",
"0.514804",
"0.514804",
"0.5143823",
"0.5139143",
"0.5133931",
"0.51306695",
"0.51061237",
"0.50939155",
"0.509236",
"0.5086502",
"0.507631",
"0.50748265",
"0.50672996",
"0.5065884",
"0.5063133",
"0.50565994",
"0.5053845",
"0.5047407",
"0.5046009",
"0.5044871",
"0.5037991",
"0.5031221",
"0.50164133",
"0.5011965",
"0.50048596",
"0.49984074",
"0.4992483",
"0.49923527",
"0.49916753",
"0.49881345",
"0.498249",
"0.4978542",
"0.4974055",
"0.4965657",
"0.49652883",
"0.4962073",
"0.49603027",
"0.49598032",
"0.495919",
"0.49562973",
"0.4956218",
"0.49557793",
"0.49398538",
"0.49394783",
"0.49387485",
"0.493643",
"0.49355683",
"0.49320966",
"0.49307013",
"0.49286577",
"0.49273986",
"0.4926942",
"0.4926942",
"0.492463",
"0.49211845",
"0.4919964",
"0.4915866",
"0.4905396",
"0.49000677",
"0.49000677",
"0.48978984",
"0.4894108",
"0.48940182"
]
| 0.0 | -1 |
from class: androidx.recyclerview.widget.GapWorker.1 / JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] / JADX WARNING: Code restructure failed: missing block: B:12:0x0017, code lost: if (r5 == null) goto L_0x0019; / JADX WARNING: Code restructure failed: missing block: B:17:0x0023, code lost: if (r5 != false) goto L_0x001b; / JADX WARNING: Code restructure failed: missing block: B:23:0x0037, code lost: return 1; / JADX WARNING: Code restructure failed: missing block: B:24:?, code lost: return 1; | @Override // java.util.Comparator
/* Code decompiled incorrectly, please refer to instructions dump. */
public int compare(androidx.recyclerview.widget.GapWorker.Task r6, androidx.recyclerview.widget.GapWorker.Task r7) {
/*
r5 = this;
androidx.recyclerview.widget.GapWorker$Task r6 = (androidx.recyclerview.widget.GapWorker.Task) r6
androidx.recyclerview.widget.GapWorker$Task r7 = (androidx.recyclerview.widget.GapWorker.Task) r7
androidx.recyclerview.widget.RecyclerView r5 = r6.view
r0 = 0
r1 = 1
if (r5 != 0) goto L_0x000c
r2 = r1
goto L_0x000d
L_0x000c:
r2 = r0
L_0x000d:
androidx.recyclerview.widget.RecyclerView r3 = r7.view
if (r3 != 0) goto L_0x0013
r3 = r1
goto L_0x0014
L_0x0013:
r3 = r0
L_0x0014:
r4 = -1
if (r2 == r3) goto L_0x001d
if (r5 != 0) goto L_0x001b
L_0x0019:
r0 = r1
goto L_0x0037
L_0x001b:
r0 = r4
goto L_0x0037
L_0x001d:
boolean r5 = r6.immediate
boolean r2 = r7.immediate
if (r5 == r2) goto L_0x0026
if (r5 == 0) goto L_0x0019
goto L_0x001b
L_0x0026:
int r5 = r7.viewVelocity
int r1 = r6.viewVelocity
int r5 = r5 - r1
if (r5 == 0) goto L_0x002f
L_0x002d:
r0 = r5
goto L_0x0037
L_0x002f:
int r5 = r6.distanceToItem
int r6 = r7.distanceToItem
int r5 = r5 - r6
if (r5 == 0) goto L_0x0037
goto L_0x002d
L_0x0037:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.recyclerview.widget.GapWorker.AnonymousClass1.compare(java.lang.Object, java.lang.Object):int");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo12704a(androidx.recyclerview.widget.RecyclerView.C1085v r23, int r24) {\n /*\n r22 = this;\n r11 = r22\n r12 = r23\n r13 = r24\n androidx.recyclerview.widget.RecyclerView$v r0 = r11.f13664c\n if (r12 != r0) goto L_0x000f\n int r0 = r11.f13675n\n if (r13 != r0) goto L_0x000f\n return\n L_0x000f:\n r0 = -9223372036854775808\n r11.f13661D = r0\n int r4 = r11.f13675n\n r14 = 1\n r11.mo12705a(r12, r14)\n r11.f13675n = r13\n r15 = 2\n if (r13 != r15) goto L_0x0030\n if (r12 == 0) goto L_0x0028\n android.view.View r0 = r12.itemView\n r11.f13685x = r0\n r22.m15037d()\n goto L_0x0030\n L_0x0028:\n java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException\n java.lang.String r1 = \"Must pass a ViewHolder when dragging\"\n r0.<init>(r1)\n throw r0\n L_0x0030:\n int r0 = r13 * 8\n r10 = 8\n int r0 = r0 + r10\n int r0 = r14 << r0\n int r16 = r0 + -1\n androidx.recyclerview.widget.RecyclerView$v r9 = r11.f13664c\n r8 = 0\n if (r9 == 0) goto L_0x00fd\n android.view.View r0 = r9.itemView\n android.view.ViewParent r0 = r0.getParent()\n if (r0 == 0) goto L_0x00e9\n if (r4 != r15) goto L_0x004a\n r7 = 0\n goto L_0x004f\n L_0x004a:\n int r0 = r11.m15036d(r9)\n r7 = r0\n L_0x004f:\n android.view.VelocityTracker r0 = r11.f13681t\n float r17 = r0.getXVelocity()\n r22.m15039f()\n r0 = 4\n r1 = 0\n if (r7 == r14) goto L_0x0081\n if (r7 == r15) goto L_0x0081\n if (r7 == r0) goto L_0x006f\n if (r7 == r10) goto L_0x006f\n r2 = 16\n if (r7 == r2) goto L_0x006f\n r2 = 32\n if (r7 == r2) goto L_0x006f\n r18 = 0\n L_0x006c:\n r19 = 0\n goto L_0x0094\n L_0x006f:\n float r2 = r11.f13669h\n float r2 = java.lang.Math.signum(r2)\n androidx.recyclerview.widget.RecyclerView r3 = r11.f13679r\n int r3 = r3.getWidth()\n float r3 = (float) r3\n float r2 = r2 * r3\n r18 = r2\n goto L_0x006c\n L_0x0081:\n float r2 = r11.f13670i\n float r2 = java.lang.Math.signum(r2)\n androidx.recyclerview.widget.RecyclerView r3 = r11.f13679r\n int r3 = r3.getHeight()\n float r3 = (float) r3\n float r2 = r2 * r3\n r19 = r2\n r18 = 0\n L_0x0094:\n if (r4 != r15) goto L_0x0099\n r3 = 8\n goto L_0x009e\n L_0x0099:\n if (r7 <= 0) goto L_0x009d\n r3 = 2\n goto L_0x009e\n L_0x009d:\n r3 = 4\n L_0x009e:\n float[] r0 = r11.f13663b\n r11.mo12708a(r0)\n float[] r0 = r11.f13663b\n r20 = r0[r8]\n r6 = r0[r14]\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$c r5 = new app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$c\n r0 = r5\n r1 = r22\n r2 = r9\n r14 = r5\n r5 = r20\n r21 = r7\n r7 = r18\n r8 = r19\n r19 = r9\n r9 = r21\n r21 = 8\n r10 = r19\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10)\n float r18 = r18 - r20\n float r18 = r18 / r17\n float r0 = java.lang.Math.abs(r18)\n r1 = 1148846080(0x447a0000, float:1000.0)\n float r0 = r0 * r1\n long r0 = (long) r0\n r2 = 250(0xfa, double:1.235E-321)\n r4 = 100\n long r0 = java.lang.Math.max(r4, r0)\n long r0 = java.lang.Math.min(r2, r0)\n r14.mo12743a(r0)\n java.util.List<app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$i> r0 = r11.f13677p\n r0.add(r14)\n r14.mo12745b()\n r8 = 1\n goto L_0x00f9\n L_0x00e9:\n r0 = r9\n r21 = 8\n android.view.View r1 = r0.itemView\n r11.mo12702a(r1)\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$g r1 = r11.f13674m\n androidx.recyclerview.widget.RecyclerView r2 = r11.f13679r\n r1.mo12692a(r2, r0)\n r8 = 0\n L_0x00f9:\n r0 = 0\n r11.f13664c = r0\n goto L_0x0100\n L_0x00fd:\n r21 = 8\n r8 = 0\n L_0x0100:\n if (r12 == 0) goto L_0x0132\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$g r0 = r11.f13674m\n androidx.recyclerview.widget.RecyclerView r1 = r11.f13679r\n int r0 = r0.mo12729b(r1, r12)\n r0 = r0 & r16\n int r1 = r11.f13675n\n int r1 = r1 * 8\n int r0 = r0 >> r1\n r11.f13676o = r0\n android.view.View r0 = r12.itemView\n int r0 = r0.getLeft()\n float r0 = (float) r0\n r11.f13671j = r0\n android.view.View r0 = r12.itemView\n int r0 = r0.getTop()\n float r0 = (float) r0\n r11.f13672k = r0\n r11.f13664c = r12\n if (r13 != r15) goto L_0x0132\n androidx.recyclerview.widget.RecyclerView$v r0 = r11.f13664c\n android.view.View r0 = r0.itemView\n r1 = 0\n r0.performHapticFeedback(r1)\n goto L_0x0133\n L_0x0132:\n r1 = 0\n L_0x0133:\n androidx.recyclerview.widget.RecyclerView r0 = r11.f13679r\n android.view.ViewParent r0 = r0.getParent()\n if (r0 == 0) goto L_0x0143\n androidx.recyclerview.widget.RecyclerView$v r2 = r11.f13664c\n if (r2 == 0) goto L_0x0140\n r1 = 1\n L_0x0140:\n r0.requestDisallowInterceptTouchEvent(r1)\n L_0x0143:\n if (r8 != 0) goto L_0x014e\n androidx.recyclerview.widget.RecyclerView r0 = r11.f13679r\n androidx.recyclerview.widget.RecyclerView$LayoutManager r0 = r0.getLayoutManager()\n r0.mo5218C()\n L_0x014e:\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$g r0 = r11.f13674m\n androidx.recyclerview.widget.RecyclerView$v r1 = r11.f13664c\n int r2 = r11.f13675n\n r0.mo12725a(r1, r2)\n androidx.recyclerview.widget.RecyclerView r0 = r11.f13679r\n r0.invalidate()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper.mo12704a(androidx.recyclerview.widget.RecyclerView$v, int):void\");\n }",
"final void d(android.support.v7.widget.RecyclerView.t r13, int r14) {\n /*\n r12 = this;\n r0 = r12.XG;\n if (r13 != r0) goto L_0x0009;\n L_0x0004:\n r0 = r12.XQ;\n if (r14 != r0) goto L_0x0009;\n L_0x0008:\n return;\n L_0x0009:\n r0 = -9223372036854775808;\n r12.Yb = r0;\n r4 = r12.XQ;\n r0 = 1;\n r12.a(r13, r0);\n r12.XQ = r14;\n r0 = 2;\n if (r14 != r0) goto L_0x0034;\n L_0x0018:\n r0 = r13.SU;\n r12.XX = r0;\n r0 = android.os.Build.VERSION.SDK_INT;\n r1 = 21;\n if (r0 >= r1) goto L_0x0034;\n L_0x0022:\n r0 = r12.RJ;\n if (r0 != 0) goto L_0x002d;\n L_0x0026:\n r0 = new android.support.v7.widget.a.a$5;\n r0.<init>(r12);\n r12.RJ = r0;\n L_0x002d:\n r0 = r12.Sa;\n r1 = r12.RJ;\n r0.setChildDrawingOrderCallback(r1);\n L_0x0034:\n r0 = 1;\n r1 = r14 * 8;\n r1 = r1 + 8;\n r0 = r0 << r1;\n r11 = r0 + -1;\n r0 = 0;\n r1 = r12.XG;\n if (r1 == 0) goto L_0x00d1;\n L_0x0041:\n r2 = r12.XG;\n r1 = r2.SU;\n r1 = r1.getParent();\n if (r1 == 0) goto L_0x017d;\n L_0x004b:\n r0 = 2;\n if (r4 == r0) goto L_0x0132;\n L_0x004e:\n r0 = r12.XQ;\n r1 = 2;\n if (r0 == r1) goto L_0x0132;\n L_0x0053:\n r0 = r12.XP;\n r0 = r0.hm();\n r1 = r12.Sa;\n r1 = android.support.v4.view.z.I(r1);\n r0 = android.support.v7.widget.a.a.a.ap(r0, r1);\n r1 = 65280; // 0xff00 float:9.1477E-41 double:3.22526E-319;\n r0 = r0 & r1;\n r0 = r0 >> 8;\n if (r0 == 0) goto L_0x0132;\n L_0x006b:\n r1 = r12.XL;\n r1 = java.lang.Math.abs(r1);\n r3 = r12.XM;\n r3 = java.lang.Math.abs(r3);\n r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));\n if (r1 <= 0) goto L_0x0135;\n L_0x007b:\n r9 = r12.bS(r0);\n if (r9 <= 0) goto L_0x012c;\n L_0x0081:\n r0 = r9 & 0;\n if (r0 != 0) goto L_0x008f;\n L_0x0085:\n r0 = r12.Sa;\n r0 = android.support.v4.view.z.I(r0);\n r9 = android.support.v7.widget.a.a.a.ao(r9, r0);\n L_0x008f:\n r12.hl();\n switch(r9) {\n case 1: goto L_0x0163;\n case 2: goto L_0x0163;\n case 4: goto L_0x0151;\n case 8: goto L_0x0151;\n case 16: goto L_0x0151;\n case 32: goto L_0x0151;\n default: goto L_0x0095;\n };\n L_0x0095:\n r7 = 0;\n r8 = 0;\n L_0x0097:\n r0 = 2;\n if (r4 != r0) goto L_0x0175;\n L_0x009a:\n r3 = 8;\n L_0x009c:\n r0 = r12.XF;\n r12.c(r0);\n r0 = r12.XF;\n r1 = 0;\n r5 = r0[r1];\n r0 = r12.XF;\n r1 = 1;\n r6 = r0[r1];\n r0 = new android.support.v7.widget.a.a$3;\n r1 = r12;\n r10 = r2;\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r1 = r12.Sa;\n r2 = android.support.v7.widget.a.a.a.f(r1, r3);\n r1 = r0.Yo;\n r1.setDuration(r2);\n r1 = r12.XS;\n r1.add(r0);\n r1 = r0.Sh;\n r2 = 0;\n r1.T(r2);\n r0 = r0.Yo;\n r0.start();\n r0 = 1;\n L_0x00ce:\n r1 = 0;\n r12.XG = r1;\n L_0x00d1:\n r1 = r0;\n if (r13 == 0) goto L_0x0101;\n L_0x00d4:\n r0 = r12.Sa;\n r0 = android.support.v7.widget.a.a.a.B(r0);\n r0 = r0 & r11;\n r2 = r12.XQ;\n r2 = r2 * 8;\n r0 = r0 >> r2;\n r12.XR = r0;\n r0 = r13.SU;\n r0 = r0.getLeft();\n r0 = (float) r0;\n r12.XN = r0;\n r0 = r13.SU;\n r0 = r0.getTop();\n r0 = (float) r0;\n r12.XO = r0;\n r12.XG = r13;\n r0 = 2;\n if (r14 != r0) goto L_0x0101;\n L_0x00f9:\n r0 = r12.XG;\n r0 = r0.SU;\n r2 = 0;\n r0.performHapticFeedback(r2);\n L_0x0101:\n r0 = r12.Sa;\n r2 = r0.getParent();\n if (r2 == 0) goto L_0x0111;\n L_0x0109:\n r0 = r12.XG;\n if (r0 == 0) goto L_0x018b;\n L_0x010d:\n r0 = 1;\n L_0x010e:\n r2.requestDisallowInterceptTouchEvent(r0);\n L_0x0111:\n if (r1 != 0) goto L_0x011c;\n L_0x0113:\n r0 = r12.Sa;\n r0 = r0.getLayoutManager();\n r1 = 1;\n r0.Sc = r1;\n L_0x011c:\n r0 = r12.XP;\n r1 = r12.XG;\n r2 = r12.XQ;\n r0.e(r1, r2);\n r0 = r12.Sa;\n r0.invalidate();\n goto L_0x0008;\n L_0x012c:\n r9 = r12.bT(r0);\n if (r9 > 0) goto L_0x008f;\n L_0x0132:\n r9 = 0;\n goto L_0x008f;\n L_0x0135:\n r9 = r12.bT(r0);\n if (r9 > 0) goto L_0x008f;\n L_0x013b:\n r9 = r12.bS(r0);\n if (r9 <= 0) goto L_0x0132;\n L_0x0141:\n r0 = r9 & 0;\n if (r0 != 0) goto L_0x008f;\n L_0x0145:\n r0 = r12.Sa;\n r0 = android.support.v4.view.z.I(r0);\n r9 = android.support.v7.widget.a.a.a.ao(r9, r0);\n goto L_0x008f;\n L_0x0151:\n r8 = 0;\n r0 = r12.XL;\n r0 = java.lang.Math.signum(r0);\n r1 = r12.Sa;\n r1 = r1.getWidth();\n r1 = (float) r1;\n r7 = r0 * r1;\n goto L_0x0097;\n L_0x0163:\n r7 = 0;\n r0 = r12.XM;\n r0 = java.lang.Math.signum(r0);\n r1 = r12.Sa;\n r1 = r1.getHeight();\n r1 = (float) r1;\n r8 = r0 * r1;\n goto L_0x0097;\n L_0x0175:\n if (r9 <= 0) goto L_0x017a;\n L_0x0177:\n r3 = 2;\n goto L_0x009c;\n L_0x017a:\n r3 = 4;\n goto L_0x009c;\n L_0x017d:\n r1 = r2.SU;\n r12.bx(r1);\n r1 = r12.XP;\n r3 = r12.Sa;\n r1.c(r3, r2);\n goto L_0x00ce;\n L_0x018b:\n r0 = 0;\n goto L_0x010e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.a.a.d(android.support.v7.widget.RecyclerView$t, int):void\");\n }",
"public android.view.View mo4295a(android.view.View r24, int r25, androidx.recyclerview.widget.RecyclerView.C0820v r26, androidx.recyclerview.widget.RecyclerView.C0788a0 r27) {\n /*\n r23 = this;\n r0 = r23\n r1 = r26\n r2 = r27\n android.view.View r3 = r23.mo4722c(r24)\n r4 = 0\n if (r3 != 0) goto L_0x000e\n return r4\n L_0x000e:\n android.view.ViewGroup$LayoutParams r5 = r3.getLayoutParams()\n androidx.recyclerview.widget.GridLayoutManager$b r5 = (androidx.recyclerview.widget.GridLayoutManager.C0780b) r5\n int r6 = r5.f3127e\n int r5 = r5.f3128f\n int r5 = r5 + r6\n android.view.View r7 = super.mo4295a(r24, r25, r26, r27)\n if (r7 != 0) goto L_0x0020\n return r4\n L_0x0020:\n r7 = r25\n int r7 = r0.mo4344j(r7)\n r9 = 1\n if (r7 != r9) goto L_0x002b\n r7 = 1\n goto L_0x002c\n L_0x002b:\n r7 = 0\n L_0x002c:\n boolean r10 = r0.f3143x\n if (r7 == r10) goto L_0x0032\n r7 = 1\n goto L_0x0033\n L_0x0032:\n r7 = 0\n L_0x0033:\n r10 = -1\n if (r7 == 0) goto L_0x003e\n int r7 = r23.mo4732e()\n int r7 = r7 - r9\n r11 = -1\n r12 = -1\n goto L_0x0045\n L_0x003e:\n int r7 = r23.mo4732e()\n r11 = r7\n r7 = 0\n r12 = 1\n L_0x0045:\n int r13 = r0.f3138s\n if (r13 != r9) goto L_0x0051\n boolean r13 = r23.mo4323M()\n if (r13 == 0) goto L_0x0051\n r13 = 1\n goto L_0x0052\n L_0x0051:\n r13 = 0\n L_0x0052:\n int r14 = r0.m3936a(r1, r2, r7)\n r10 = r4\n r8 = -1\n r15 = 0\n r16 = 0\n r17 = -1\n L_0x005d:\n if (r7 == r11) goto L_0x0147\n int r9 = r0.m3936a(r1, r2, r7)\n android.view.View r1 = r0.mo4729d(r7)\n if (r1 != r3) goto L_0x006b\n goto L_0x0147\n L_0x006b:\n boolean r18 = r1.hasFocusable()\n if (r18 == 0) goto L_0x0085\n if (r9 == r14) goto L_0x0085\n if (r4 == 0) goto L_0x0077\n goto L_0x0147\n L_0x0077:\n r18 = r3\n r19 = r8\n r21 = r10\n r20 = r11\n r8 = r16\n r10 = r17\n goto L_0x0133\n L_0x0085:\n android.view.ViewGroup$LayoutParams r9 = r1.getLayoutParams()\n androidx.recyclerview.widget.GridLayoutManager$b r9 = (androidx.recyclerview.widget.GridLayoutManager.C0780b) r9\n int r2 = r9.f3127e\n r18 = r3\n int r3 = r9.f3128f\n int r3 = r3 + r2\n boolean r19 = r1.hasFocusable()\n if (r19 == 0) goto L_0x009d\n if (r2 != r6) goto L_0x009d\n if (r3 != r5) goto L_0x009d\n return r1\n L_0x009d:\n boolean r19 = r1.hasFocusable()\n if (r19 == 0) goto L_0x00a5\n if (r4 == 0) goto L_0x00ad\n L_0x00a5:\n boolean r19 = r1.hasFocusable()\n if (r19 != 0) goto L_0x00b9\n if (r10 != 0) goto L_0x00b9\n L_0x00ad:\n r19 = r8\n r21 = r10\n L_0x00b1:\n r20 = r11\n r8 = r16\n r10 = r17\n L_0x00b7:\n r11 = 1\n goto L_0x0103\n L_0x00b9:\n int r19 = java.lang.Math.max(r2, r6)\n int r20 = java.lang.Math.min(r3, r5)\n r21 = r10\n int r10 = r20 - r19\n boolean r19 = r1.hasFocusable()\n if (r19 == 0) goto L_0x00da\n if (r10 <= r15) goto L_0x00d0\n L_0x00cd:\n r19 = r8\n goto L_0x00b1\n L_0x00d0:\n if (r10 != r15) goto L_0x00fa\n if (r2 <= r8) goto L_0x00d6\n r10 = 1\n goto L_0x00d7\n L_0x00d6:\n r10 = 0\n L_0x00d7:\n if (r13 != r10) goto L_0x00fa\n goto L_0x00cd\n L_0x00da:\n if (r4 != 0) goto L_0x00fa\n r19 = r8\n r20 = r11\n r8 = 0\n r11 = 1\n boolean r22 = r0.mo4709a(r1, r8, r11)\n r8 = r16\n if (r22 == 0) goto L_0x0100\n if (r10 <= r8) goto L_0x00ef\n r10 = r17\n goto L_0x0103\n L_0x00ef:\n if (r10 != r8) goto L_0x0100\n r10 = r17\n if (r2 <= r10) goto L_0x00f6\n goto L_0x00f7\n L_0x00f6:\n r11 = 0\n L_0x00f7:\n if (r13 != r11) goto L_0x0102\n goto L_0x00b7\n L_0x00fa:\n r19 = r8\n r20 = r11\n r8 = r16\n L_0x0100:\n r10 = r17\n L_0x0102:\n r11 = 0\n L_0x0103:\n if (r11 == 0) goto L_0x0133\n boolean r11 = r1.hasFocusable()\n if (r11 == 0) goto L_0x0120\n int r4 = r9.f3127e\n int r3 = java.lang.Math.min(r3, r5)\n int r2 = java.lang.Math.max(r2, r6)\n int r3 = r3 - r2\n r15 = r3\n r16 = r8\n r17 = r10\n r10 = r21\n r8 = r4\n r4 = r1\n goto L_0x013b\n L_0x0120:\n int r8 = r9.f3127e\n int r3 = java.lang.Math.min(r3, r5)\n int r2 = java.lang.Math.max(r2, r6)\n int r3 = r3 - r2\n r10 = r1\n r16 = r3\n r17 = r8\n r8 = r19\n goto L_0x013b\n L_0x0133:\n r16 = r8\n r17 = r10\n r8 = r19\n r10 = r21\n L_0x013b:\n int r7 = r7 + r12\n r1 = r26\n r2 = r27\n r3 = r18\n r11 = r20\n r9 = 1\n goto L_0x005d\n L_0x0147:\n r21 = r10\n if (r4 == 0) goto L_0x014c\n goto L_0x014e\n L_0x014c:\n r4 = r21\n L_0x014e:\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GridLayoutManager.mo4295a(android.view.View, int, androidx.recyclerview.widget.RecyclerView$v, androidx.recyclerview.widget.RecyclerView$a0):android.view.View\");\n }",
"public androidx.recyclerview.widget.RecyclerView.C1085v mo12723a(androidx.recyclerview.widget.RecyclerView.C1085v r15, java.util.List<androidx.recyclerview.widget.RecyclerView.C1085v> r16, int r17, int r18) {\n /*\n r14 = this;\n r0 = r15\n android.view.View r1 = r0.itemView\n int r1 = r1.getWidth()\n int r1 = r17 + r1\n android.view.View r2 = r0.itemView\n int r2 = r2.getHeight()\n int r2 = r18 + r2\n android.view.View r3 = r0.itemView\n int r3 = r3.getLeft()\n int r3 = r17 - r3\n android.view.View r4 = r0.itemView\n int r4 = r4.getTop()\n int r4 = r18 - r4\n int r5 = r16.size()\n r6 = 0\n r7 = -1\n r8 = 0\n L_0x0028:\n if (r8 >= r5) goto L_0x00be\n r9 = r16\n java.lang.Object r10 = r9.get(r8)\n androidx.recyclerview.widget.RecyclerView$v r10 = (androidx.recyclerview.widget.RecyclerView.C1085v) r10\n if (r3 <= 0) goto L_0x0053\n android.view.View r11 = r10.itemView\n int r11 = r11.getRight()\n int r11 = r11 - r1\n if (r11 >= 0) goto L_0x0053\n android.view.View r12 = r10.itemView\n int r12 = r12.getRight()\n android.view.View r13 = r0.itemView\n int r13 = r13.getRight()\n if (r12 <= r13) goto L_0x0053\n int r11 = java.lang.Math.abs(r11)\n if (r11 <= r7) goto L_0x0053\n r6 = r10\n goto L_0x0054\n L_0x0053:\n r11 = r7\n L_0x0054:\n if (r3 >= 0) goto L_0x0076\n android.view.View r7 = r10.itemView\n int r7 = r7.getLeft()\n int r7 = r7 - r17\n if (r7 <= 0) goto L_0x0076\n android.view.View r12 = r10.itemView\n int r12 = r12.getLeft()\n android.view.View r13 = r0.itemView\n int r13 = r13.getLeft()\n if (r12 >= r13) goto L_0x0076\n int r7 = java.lang.Math.abs(r7)\n if (r7 <= r11) goto L_0x0076\n r11 = r7\n r6 = r10\n L_0x0076:\n if (r4 >= 0) goto L_0x0098\n android.view.View r7 = r10.itemView\n int r7 = r7.getTop()\n int r7 = r7 - r18\n if (r7 <= 0) goto L_0x0098\n android.view.View r12 = r10.itemView\n int r12 = r12.getTop()\n android.view.View r13 = r0.itemView\n int r13 = r13.getTop()\n if (r12 >= r13) goto L_0x0098\n int r7 = java.lang.Math.abs(r7)\n if (r7 <= r11) goto L_0x0098\n r11 = r7\n r6 = r10\n L_0x0098:\n if (r4 <= 0) goto L_0x00b9\n android.view.View r7 = r10.itemView\n int r7 = r7.getBottom()\n int r7 = r7 - r2\n if (r7 >= 0) goto L_0x00b9\n android.view.View r12 = r10.itemView\n int r12 = r12.getBottom()\n android.view.View r13 = r0.itemView\n int r13 = r13.getBottom()\n if (r12 <= r13) goto L_0x00b9\n int r7 = java.lang.Math.abs(r7)\n if (r7 <= r11) goto L_0x00b9\n r6 = r10\n goto L_0x00ba\n L_0x00b9:\n r7 = r11\n L_0x00ba:\n int r8 = r8 + 1\n goto L_0x0028\n L_0x00be:\n return r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper.C5319g.mo12723a(androidx.recyclerview.widget.RecyclerView$v, java.util.List, int, int):androidx.recyclerview.widget.RecyclerView$v\");\n }",
"public boolean mo12713c() {\n /*\n r16 = this;\n r0 = r16\n androidx.recyclerview.widget.RecyclerView$v r1 = r0.f13664c\n r2 = 0\n r3 = -9223372036854775808\n if (r1 != 0) goto L_0x000c\n r0.f13661D = r3\n return r2\n L_0x000c:\n long r5 = java.lang.System.currentTimeMillis()\n long r7 = r0.f13661D\n int r1 = (r7 > r3 ? 1 : (r7 == r3 ? 0 : -1))\n if (r1 != 0) goto L_0x0019\n r7 = 0\n goto L_0x001b\n L_0x0019:\n long r7 = r5 - r7\n L_0x001b:\n androidx.recyclerview.widget.RecyclerView r1 = r0.f13679r\n androidx.recyclerview.widget.RecyclerView$LayoutManager r1 = r1.getLayoutManager()\n android.graphics.Rect r9 = r0.f13660C\n if (r9 != 0) goto L_0x002c\n android.graphics.Rect r9 = new android.graphics.Rect\n r9.<init>()\n r0.f13660C = r9\n L_0x002c:\n androidx.recyclerview.widget.RecyclerView$v r9 = r0.f13664c\n android.view.View r9 = r9.itemView\n android.graphics.Rect r10 = r0.f13660C\n r1.mo5228a(r9, r10)\n boolean r9 = r1.mo4994a()\n r10 = 0\n if (r9 == 0) goto L_0x007f\n float r9 = r0.f13671j\n float r11 = r0.f13669h\n float r9 = r9 + r11\n int r9 = (int) r9\n android.graphics.Rect r11 = r0.f13660C\n int r11 = r11.left\n int r11 = r9 - r11\n androidx.recyclerview.widget.RecyclerView r12 = r0.f13679r\n int r12 = r12.getPaddingLeft()\n int r11 = r11 - r12\n float r12 = r0.f13669h\n int r12 = (r12 > r10 ? 1 : (r12 == r10 ? 0 : -1))\n if (r12 >= 0) goto L_0x0059\n if (r11 >= 0) goto L_0x0059\n r12 = r11\n goto L_0x0080\n L_0x0059:\n float r11 = r0.f13669h\n int r11 = (r11 > r10 ? 1 : (r11 == r10 ? 0 : -1))\n if (r11 <= 0) goto L_0x007f\n androidx.recyclerview.widget.RecyclerView$v r11 = r0.f13664c\n android.view.View r11 = r11.itemView\n int r11 = r11.getWidth()\n int r9 = r9 + r11\n android.graphics.Rect r11 = r0.f13660C\n int r11 = r11.right\n int r9 = r9 + r11\n androidx.recyclerview.widget.RecyclerView r11 = r0.f13679r\n int r11 = r11.getWidth()\n androidx.recyclerview.widget.RecyclerView r12 = r0.f13679r\n int r12 = r12.getPaddingRight()\n int r11 = r11 - r12\n int r9 = r9 - r11\n if (r9 <= 0) goto L_0x007f\n r12 = r9\n goto L_0x0080\n L_0x007f:\n r12 = 0\n L_0x0080:\n boolean r1 = r1.mo4999b()\n if (r1 == 0) goto L_0x00c8\n float r1 = r0.f13672k\n float r9 = r0.f13670i\n float r1 = r1 + r9\n int r1 = (int) r1\n android.graphics.Rect r9 = r0.f13660C\n int r9 = r9.top\n int r9 = r1 - r9\n androidx.recyclerview.widget.RecyclerView r11 = r0.f13679r\n int r11 = r11.getPaddingTop()\n int r9 = r9 - r11\n float r11 = r0.f13670i\n int r11 = (r11 > r10 ? 1 : (r11 == r10 ? 0 : -1))\n if (r11 >= 0) goto L_0x00a3\n if (r9 >= 0) goto L_0x00a3\n r1 = r9\n goto L_0x00c9\n L_0x00a3:\n float r9 = r0.f13670i\n int r9 = (r9 > r10 ? 1 : (r9 == r10 ? 0 : -1))\n if (r9 <= 0) goto L_0x00c8\n androidx.recyclerview.widget.RecyclerView$v r9 = r0.f13664c\n android.view.View r9 = r9.itemView\n int r9 = r9.getHeight()\n int r1 = r1 + r9\n android.graphics.Rect r9 = r0.f13660C\n int r9 = r9.bottom\n int r1 = r1 + r9\n androidx.recyclerview.widget.RecyclerView r9 = r0.f13679r\n int r9 = r9.getHeight()\n androidx.recyclerview.widget.RecyclerView r10 = r0.f13679r\n int r10 = r10.getPaddingBottom()\n int r9 = r9 - r10\n int r1 = r1 - r9\n if (r1 <= 0) goto L_0x00c8\n goto L_0x00c9\n L_0x00c8:\n r1 = 0\n L_0x00c9:\n if (r12 == 0) goto L_0x00e2\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$g r9 = r0.f13674m\n androidx.recyclerview.widget.RecyclerView r10 = r0.f13679r\n androidx.recyclerview.widget.RecyclerView$v r11 = r0.f13664c\n android.view.View r11 = r11.itemView\n int r11 = r11.getWidth()\n androidx.recyclerview.widget.RecyclerView r13 = r0.f13679r\n int r13 = r13.getWidth()\n r14 = r7\n int r12 = r9.mo12722a(r10, r11, r12, r13, r14)\n L_0x00e2:\n r14 = r12\n if (r1 == 0) goto L_0x0101\n app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper$g r9 = r0.f13674m\n androidx.recyclerview.widget.RecyclerView r10 = r0.f13679r\n androidx.recyclerview.widget.RecyclerView$v r11 = r0.f13664c\n android.view.View r11 = r11.itemView\n int r11 = r11.getHeight()\n androidx.recyclerview.widget.RecyclerView r12 = r0.f13679r\n int r13 = r12.getHeight()\n r12 = r1\n r1 = r14\n r14 = r7\n int r7 = r9.mo12722a(r10, r11, r12, r13, r14)\n r12 = r1\n r1 = r7\n goto L_0x0102\n L_0x0101:\n r12 = r14\n L_0x0102:\n if (r12 != 0) goto L_0x010a\n if (r1 == 0) goto L_0x0107\n goto L_0x010a\n L_0x0107:\n r0.f13661D = r3\n return r2\n L_0x010a:\n long r7 = r0.f13661D\n int r2 = (r7 > r3 ? 1 : (r7 == r3 ? 0 : -1))\n if (r2 != 0) goto L_0x0112\n r0.f13661D = r5\n L_0x0112:\n androidx.recyclerview.widget.RecyclerView r2 = r0.f13679r\n r2.scrollBy(r12, r1)\n r1 = 1\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.recommendation.swipeable.touchhelper.ItemTouchHelper.mo12713c():boolean\");\n }",
"public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }",
"@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final boolean zzc(com.google.firebase.iid.FirebaseInstanceId r5) {\n /*\n r4 = this;\n L_0x0000:\n monitor-enter(r4)\n java.lang.String r0 = r4.zzar() // Catch:{ all -> 0x0042 }\n r1 = 1\n if (r0 != 0) goto L_0x0017\n boolean r5 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ all -> 0x0042 }\n if (r5 == 0) goto L_0x0015\n java.lang.String r5 = \"FirebaseInstanceId\"\n java.lang.String r0 = \"topic sync succeeded\"\n android.util.Log.d(r5, r0) // Catch:{ all -> 0x0042 }\n L_0x0015:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n return r1\n L_0x0017:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n boolean r2 = zza(r5, r0)\n if (r2 != 0) goto L_0x0020\n r5 = 0\n return r5\n L_0x0020:\n monitor-enter(r4)\n java.util.Map<java.lang.Integer, com.google.android.gms.tasks.TaskCompletionSource<java.lang.Void>> r2 = r4.zzdx // Catch:{ all -> 0x003f }\n int r3 = r4.zzdw // Catch:{ all -> 0x003f }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3) // Catch:{ all -> 0x003f }\n java.lang.Object r2 = r2.remove(r3) // Catch:{ all -> 0x003f }\n com.google.android.gms.tasks.TaskCompletionSource r2 = (com.google.android.gms.tasks.TaskCompletionSource) r2 // Catch:{ all -> 0x003f }\n r4.zzn(r0) // Catch:{ all -> 0x003f }\n int r0 = r4.zzdw // Catch:{ all -> 0x003f }\n int r0 = r0 + r1\n r4.zzdw = r0 // Catch:{ all -> 0x003f }\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n if (r2 == 0) goto L_0x0000\n r0 = 0\n r2.setResult(r0)\n goto L_0x0000\n L_0x003f:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n throw r5\n L_0x0042:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zzc(com.google.firebase.iid.FirebaseInstanceId):boolean\");\n }",
"private final void m139911a(RecyclerView.Recycler recycler) {\n View view;\n View view2;\n Iterator it = C32598n.m150608b(0, getItemCount()).iterator();\n while (it.hasNext()) {\n int nextInt = ((IntIterator) it).nextInt();\n View viewForPosition = recycler.getViewForPosition(nextInt);\n C32569u.m150513a((Object) viewForPosition, C6969H.m41409d(\"G7B86D603BC3CAE3BA809955CC4ECC6C04F8CC72AB023A23DEF019E00E2EAD0DE7D8ADA14F6\"));\n addView(viewForPosition);\n measureChildWithMargins(viewForPosition, 0, 0);\n int decoratedMeasuredWidth = getDecoratedMeasuredWidth(viewForPosition);\n int decoratedMeasuredHeight = getDecoratedMeasuredHeight(viewForPosition);\n if (this.f101761k) {\n removeAndRecycleView(viewForPosition, recycler);\n } else if (this.f101753c < this.f101754d) {\n if (this.f101762l && (view2 = this.f101763m) != null) {\n this.f101762l = false;\n if (view2 == null) {\n C32569u.m150511a();\n }\n m139910a(view2, this.f101764n, this.f101765o);\n this.f101763m = null;\n }\n if (this.f101753c == this.f101754d - 1 && this.f101756f + decoratedMeasuredWidth + this.f101759i > getWidth()) {\n this.f101761k = true;\n removeAndRecycleView(viewForPosition, recycler);\n } else if (nextInt == getItemCount() - 1 || nextInt == getItemCount() - 2) {\n if (this.f101756f + decoratedMeasuredWidth + this.f101759i < getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n } else if (this.f101756f + decoratedMeasuredWidth + this.f101759i > getWidth() && this.f101756f + decoratedMeasuredWidth < getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n m139909a(decoratedMeasuredHeight);\n this.f101757g = this.f101755e + this.f101758h;\n } else if (this.f101756f + decoratedMeasuredWidth > getWidth()) {\n m139909a(decoratedMeasuredHeight);\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n }\n } else if (this.f101756f + decoratedMeasuredWidth <= getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n } else if (this.f101753c != this.f101754d - 1) {\n m139909a(decoratedMeasuredHeight);\n this.f101762l = true;\n this.f101763m = viewForPosition;\n this.f101764n = decoratedMeasuredWidth;\n this.f101765o = decoratedMeasuredHeight;\n }\n } else if (this.f101762l && (view = this.f101763m) != null) {\n if (view == null) {\n C32569u.m150511a();\n }\n removeAndRecycleView(view, recycler);\n this.f101762l = false;\n this.f101763m = null;\n }\n }\n }",
"public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }",
"public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }",
"private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }",
"@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void c(int r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r2 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((int) r11) // Catch:{ all -> 0x004b }\n r10.o = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.c(int):void\");\n }",
"static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }",
"@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }",
"public void onMoveFinished(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.color.widget.ColorSimpleItemAnimator.onMoveFinished(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.onMoveFinished(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"public boolean canReuseUpdatedViewHolder(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: com.color.widget.ColorSimpleItemAnimator.canReuseUpdatedViewHolder(com.color.widget.ColorRecyclerView$ViewHolder):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.canReuseUpdatedViewHolder(com.color.widget.ColorRecyclerView$ViewHolder):boolean\");\n }",
"public final R mo2484a(long r4, java.util.concurrent.TimeUnit r6) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = 0;\n r2 = (r4 > r0 ? 1 : (r4 == r0 ? 0 : -1));\n if (r2 <= 0) goto L_0x000b;\n L_0x0006:\n r0 = \"await must not be called on the UI thread when time is greater than zero.\";\n com.google.android.gms.common.internal.ad.m9057c(r0);\n L_0x000b:\n r0 = r3.f11872k;\n r1 = 1;\n r0 = r0 ^ r1;\n r2 = \"Result has already been consumed.\";\n com.google.android.gms.common.internal.ad.m9051a(r0, r2);\n r0 = r3.f11876o;\n if (r0 != 0) goto L_0x0019;\n L_0x0018:\n goto L_0x001a;\n L_0x0019:\n r1 = 0;\n L_0x001a:\n r0 = \"Cannot await if then() has been called.\";\n com.google.android.gms.common.internal.ad.m9051a(r1, r0);\n r0 = r3.f11866e;\t Catch:{ InterruptedException -> 0x002d }\n r4 = r0.await(r4, r6);\t Catch:{ InterruptedException -> 0x002d }\n if (r4 != 0) goto L_0x0032;\t Catch:{ InterruptedException -> 0x002d }\n L_0x0027:\n r4 = com.google.android.gms.common.api.Status.zzfnl;\t Catch:{ InterruptedException -> 0x002d }\n r3.m14226b(r4);\t Catch:{ InterruptedException -> 0x002d }\n goto L_0x0032;\n L_0x002d:\n r4 = com.google.android.gms.common.api.Status.zzfnj;\n r3.m14226b(r4);\n L_0x0032:\n r4 = r3.m14229d();\n r5 = \"Result is not ready.\";\n com.google.android.gms.common.internal.ad.m9051a(r4, r5);\n r4 = r3.mo3575g();\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a(long, java.util.concurrent.TimeUnit):R\");\n }",
"public boolean animateChange(com.color.widget.ColorRecyclerView.ViewHolder r1, com.color.widget.ColorRecyclerView.ViewHolder r2, com.color.widget.ColorRecyclerView.ItemAnimator.ItemHolderInfo r3, com.color.widget.ColorRecyclerView.ItemAnimator.ItemHolderInfo r4) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.color.widget.ColorSimpleItemAnimator.animateChange(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean, dex: in method: com.color.widget.ColorSimpleItemAnimator.animateChange(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.animateChange(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean\");\n }",
"public void onMoveStarting(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.color.widget.ColorSimpleItemAnimator.onMoveStarting(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.onMoveStarting(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"public int a(int r12, androidx.recyclerview.widget.RecyclerView.u r13) {\n /*\n r11 = this;\n e.m.a.g r0 = r11.A\n int r0 = r0.a()\n r1 = 0\n if (r0 != 0) goto L_0x000a\n return r1\n L_0x000a:\n e.m.a.b r0 = e.m.a.b.c(r12)\n int r2 = r11.f8992j\n r3 = 1\n if (r2 == 0) goto L_0x0019\n int r2 = java.lang.Math.abs(r2)\n goto L_0x0088\n L_0x0019:\n int r2 = r11.f8991i\n int r2 = r0.a(r2)\n if (r2 <= 0) goto L_0x0023\n r2 = r3\n goto L_0x0024\n L_0x0023:\n r2 = r1\n L_0x0024:\n e.m.a.b r4 = e.m.a.b.START\n if (r0 != r4) goto L_0x003d\n int r4 = r11.k\n if (r4 != 0) goto L_0x003d\n int r2 = r11.f8991i\n if (r2 != 0) goto L_0x0032\n r2 = r3\n goto L_0x0033\n L_0x0032:\n r2 = r1\n L_0x0033:\n if (r2 == 0) goto L_0x0036\n goto L_0x0055\n L_0x0036:\n int r4 = r11.f8991i\n int r4 = java.lang.Math.abs(r4)\n goto L_0x0075\n L_0x003d:\n e.m.a.b r4 = e.m.a.b.END\n if (r0 != r4) goto L_0x005e\n int r4 = r11.k\n e.m.a.g r5 = r11.A\n int r5 = r5.c()\n int r5 = r5 - r3\n if (r4 != r5) goto L_0x005e\n int r2 = r11.f8991i\n if (r2 != 0) goto L_0x0052\n r2 = r3\n goto L_0x0053\n L_0x0052:\n r2 = r1\n L_0x0053:\n if (r2 == 0) goto L_0x0057\n L_0x0055:\n r4 = r1\n goto L_0x0075\n L_0x0057:\n int r4 = r11.f8991i\n int r4 = java.lang.Math.abs(r4)\n goto L_0x0075\n L_0x005e:\n if (r2 == 0) goto L_0x006a\n int r2 = r11.f8989g\n int r4 = r11.f8991i\n int r4 = java.lang.Math.abs(r4)\n int r2 = r2 - r4\n goto L_0x0073\n L_0x006a:\n int r2 = r11.f8989g\n int r4 = r11.f8991i\n int r4 = java.lang.Math.abs(r4)\n int r2 = r2 + r4\n L_0x0073:\n r4 = r2\n r2 = r1\n L_0x0075:\n e.m.a.c$c r5 = r11.y\n com.yarolegovich.discretescrollview.DiscreteScrollView$d r5 = (com.yarolegovich.discretescrollview.DiscreteScrollView.d) r5\n com.yarolegovich.discretescrollview.DiscreteScrollView r5 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n boolean r6 = r5.f3982d\n if (r6 == 0) goto L_0x0087\n if (r2 == 0) goto L_0x0083\n r2 = r1\n goto L_0x0084\n L_0x0083:\n r2 = 2\n L_0x0084:\n r5.setOverScrollMode(r2)\n L_0x0087:\n r2 = r4\n L_0x0088:\n if (r2 > 0) goto L_0x008b\n return r1\n L_0x008b:\n int r12 = java.lang.Math.abs(r12)\n int r12 = java.lang.Math.min(r2, r12)\n int r12 = r0.a(r12)\n int r0 = r11.f8991i\n int r0 = r0 + r12\n r11.f8991i = r0\n int r0 = r11.f8992j\n if (r0 == 0) goto L_0x00a3\n int r0 = r0 - r12\n r11.f8992j = r0\n L_0x00a3:\n e.m.a.a$c r0 = r11.n\n int r1 = -r12\n e.m.a.g r2 = r11.A\n r0.a(r1, r2)\n e.m.a.a$c r0 = r11.n\n boolean r0 = r0.a(r11)\n if (r0 == 0) goto L_0x00b6\n r11.a(r13)\n L_0x00b6:\n int r13 = r11.l\n r0 = -1\n if (r13 == r0) goto L_0x00c5\n int r13 = r11.f8991i\n int r1 = r11.f8992j\n int r13 = r13 + r1\n int r13 = java.lang.Math.abs(r13)\n goto L_0x00c7\n L_0x00c5:\n int r13 = r11.f8989g\n L_0x00c7:\n float r13 = (float) r13\n r1 = -1082130432(0xffffffffbf800000, float:-1.0)\n int r2 = r11.f8991i\n float r2 = (float) r2\n float r2 = r2 / r13\n float r13 = java.lang.Math.max(r1, r2)\n r1 = 1065353216(0x3f800000, float:1.0)\n float r13 = java.lang.Math.min(r13, r1)\n float r13 = -r13\n e.m.a.c$c r1 = r11.y\n com.yarolegovich.discretescrollview.DiscreteScrollView$d r1 = (com.yarolegovich.discretescrollview.DiscreteScrollView.d) r1\n com.yarolegovich.discretescrollview.DiscreteScrollView r2 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n java.util.List<com.yarolegovich.discretescrollview.DiscreteScrollView$c> r2 = r2.f3980b\n boolean r2 = r2.isEmpty()\n if (r2 == 0) goto L_0x00e8\n goto L_0x0133\n L_0x00e8:\n com.yarolegovich.discretescrollview.DiscreteScrollView r2 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n int r2 = r2.getCurrentItem()\n com.yarolegovich.discretescrollview.DiscreteScrollView r4 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n e.m.a.c r4 = r4.f3979a\n int r5 = r4.f8991i\n if (r5 != 0) goto L_0x00f9\n int r0 = r4.k\n goto L_0x010a\n L_0x00f9:\n int r6 = r4.l\n if (r6 == r0) goto L_0x00ff\n r0 = r6\n goto L_0x010a\n L_0x00ff:\n int r0 = r4.k\n e.m.a.b r4 = e.m.a.b.c(r5)\n int r3 = r4.a(r3)\n int r0 = r0 + r3\n L_0x010a:\n if (r2 == r0) goto L_0x0133\n com.yarolegovich.discretescrollview.DiscreteScrollView r3 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n androidx.recyclerview.widget.RecyclerView$d0 r10 = r3.a(r2)\n com.yarolegovich.discretescrollview.DiscreteScrollView r1 = com.yarolegovich.discretescrollview.DiscreteScrollView.this\n androidx.recyclerview.widget.RecyclerView$d0 r1 = r1.a(r0)\n java.util.List<com.yarolegovich.discretescrollview.DiscreteScrollView$c> r3 = r3.f3980b\n java.util.Iterator r3 = r3.iterator()\n L_0x011e:\n boolean r4 = r3.hasNext()\n if (r4 == 0) goto L_0x0133\n java.lang.Object r4 = r3.next()\n com.yarolegovich.discretescrollview.DiscreteScrollView$c r4 = (com.yarolegovich.discretescrollview.DiscreteScrollView.c) r4\n r5 = r13\n r6 = r2\n r7 = r0\n r8 = r10\n r9 = r1\n r4.a(r5, r6, r7, r8, r9)\n goto L_0x011e\n L_0x0133:\n r11.a()\n return r12\n */\n throw new UnsupportedOperationException(\"Method not decompiled: e.m.a.c.a(int, androidx.recyclerview.widget.RecyclerView$u):int\");\n }",
"public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }",
"boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }",
"public void onRemoveStarting(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.color.widget.ColorSimpleItemAnimator.onRemoveStarting(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.onRemoveStarting(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }",
"public void M(android.view.View r6) {\n /*\n r5 = this;\n r0 = \"v\";\n kotlin.jvm.internal.i.f(r6, r0);\n r6 = r5.this$0;\n r6 = r6.ayL;\n r0 = 0;\n if (r6 == 0) goto L_0x001a;\n L_0x000f:\n r6 = r6.Km();\n if (r6 == 0) goto L_0x001a;\n L_0x0015:\n r6 = r6.XA();\n goto L_0x001b;\n L_0x001a:\n r6 = r0;\n L_0x001b:\n if (r6 != 0) goto L_0x0020;\n L_0x001d:\n kotlin.jvm.internal.i.bnJ();\n L_0x0020:\n r1 = com.iqoption.deposit.light.menu.currency.c.cFb;\n r2 = new com.iqoption.deposit.c.a.b;\n r6 = (java.util.List) r6;\n r3 = r5.this$0;\n r3 = r3.cFE;\n if (r3 == 0) goto L_0x0037;\n L_0x002e:\n r3 = r3.getId();\n r3 = java.lang.Long.valueOf(r3);\n goto L_0x0038;\n L_0x0037:\n r3 = r0;\n L_0x0038:\n r2.<init>(r6, r3);\n r6 = r1.a(r2);\n r1 = com.iqoption.deposit.navigator.b.cGp;\n r2 = r5.this$0;\n r2 = (androidx.fragment.app.Fragment) r2;\n r1 = r1.P(r2);\n r2 = 0;\n r3 = 2;\n com.iqoption.core.ui.d.g.b(r1, r6, r2, r3, r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c$r.M(android.view.View):void\");\n }",
"@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n private static boolean zza(com.google.firebase.iid.FirebaseInstanceId r6, java.lang.String r7) {\n /*\n java.lang.String r0 = \"!\"\n java.lang.String[] r7 = r7.split(r0)\n int r0 = r7.length\n r1 = 1\n r2 = 2\n if (r0 != r2) goto L_0x0075\n r0 = 0\n r2 = r7[r0]\n r7 = r7[r1]\n r3 = -1\n int r4 = r2.hashCode() // Catch:{ IOException -> 0x0054 }\n r5 = 83\n if (r4 == r5) goto L_0x0028\n r5 = 85\n if (r4 == r5) goto L_0x001e\n goto L_0x0031\n L_0x001e:\n java.lang.String r4 = \"U\"\n boolean r2 = r2.equals(r4) // Catch:{ IOException -> 0x0054 }\n if (r2 == 0) goto L_0x0031\n r3 = 1\n goto L_0x0031\n L_0x0028:\n java.lang.String r4 = \"S\"\n boolean r2 = r2.equals(r4) // Catch:{ IOException -> 0x0054 }\n if (r2 == 0) goto L_0x0031\n r3 = 0\n L_0x0031:\n switch(r3) {\n case 0: goto L_0x0046;\n case 1: goto L_0x0035;\n default: goto L_0x0034;\n } // Catch:{ IOException -> 0x0054 }\n L_0x0034:\n goto L_0x0075\n L_0x0035:\n r6.zzc(r7) // Catch:{ IOException -> 0x0054 }\n boolean r6 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ IOException -> 0x0054 }\n if (r6 == 0) goto L_0x0075\n java.lang.String r6 = \"FirebaseInstanceId\"\n java.lang.String r7 = \"unsubscribe operation succeeded\"\n L_0x0042:\n android.util.Log.d(r6, r7) // Catch:{ IOException -> 0x0054 }\n goto L_0x0075\n L_0x0046:\n r6.zzb((java.lang.String) r7) // Catch:{ IOException -> 0x0054 }\n boolean r6 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ IOException -> 0x0054 }\n if (r6 == 0) goto L_0x0075\n java.lang.String r6 = \"FirebaseInstanceId\"\n java.lang.String r7 = \"subscribe operation succeeded\"\n goto L_0x0042\n L_0x0054:\n r6 = move-exception\n java.lang.String r7 = \"FirebaseInstanceId\"\n java.lang.String r1 = \"Topic sync failed: \"\n java.lang.String r6 = r6.getMessage()\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r2 = r6.length()\n if (r2 == 0) goto L_0x006c\n java.lang.String r6 = r1.concat(r6)\n goto L_0x0071\n L_0x006c:\n java.lang.String r6 = new java.lang.String\n r6.<init>(r1)\n L_0x0071:\n android.util.Log.e(r7, r6)\n return r0\n L_0x0075:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zza(com.google.firebase.iid.FirebaseInstanceId, java.lang.String):boolean\");\n }",
"public void onAddFinished(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.color.widget.ColorSimpleItemAnimator.onAddFinished(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.onAddFinished(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }",
"private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }",
"public final void dispatchMoveFinished(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.color.widget.ColorSimpleItemAnimator.dispatchMoveFinished(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.dispatchMoveFinished(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"public final void dispatchRemoveStarting(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.color.widget.ColorSimpleItemAnimator.dispatchRemoveStarting(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.dispatchRemoveStarting(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"public void onAddStarting(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.color.widget.ColorSimpleItemAnimator.onAddStarting(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.onAddStarting(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }",
"private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }",
"public final void m18179a(java.lang.Throwable r4) {\n /*\n r3 = this;\n r0 = 0\n java.lang.Object[] r0 = new java.lang.Object[r0]\n java.lang.String r1 = \"Refresh Account failed\"\n p686n.p687a.Timber.m44528b(r4, r1, r0)\n g.e.b.d.r$b r4 = new g.e.b.d.r$b\n r4.<init>(r3)\n r3.updateState(r4)\n com.bamtechmedia.dominguez.core.d r4 = r3.f12932d\n boolean r4 = r4.mo13695j()\n if (r4 != 0) goto L_0x0051\n io.reactivex.disposables.Disposable r4 = r3.f12929a\n if (r4 != 0) goto L_0x0051\n com.bamtechmedia.dominguez.core.d r4 = r3.f12932d\n io.reactivex.Completable r4 = r4.mo13697n()\n g.n.a.c0 r0 = r3.getViewModelScope()\n g.n.a.h r0 = p163g.p503n.p504a.C11793e.m37930a(r0)\n java.lang.Object r4 = r4.mo30048a(r0)\n java.lang.String r0 = \"this.`as`(AutoDispose.au…isposable<Any>(provider))\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r4, r0)\n g.n.a.v r4 = (p163g.p503n.p504a.C11839v) r4\n g.e.b.d.r$c r0 = new g.e.b.d.r$c\n r0.<init>(r3)\n g.e.b.d.s r1 = new g.e.b.d.s\n r1.<init>(r0)\n g.e.b.d.r$d r0 = p163g.p201e.p203b.p204d.C5419r.C5423d.f12939c\n if (r0 == 0) goto L_0x0049\n g.e.b.d.t r2 = new g.e.b.d.t\n r2.<init>(r0)\n r0 = r2\n L_0x0049:\n io.reactivex.functions.Consumer r0 = (p520io.reactivex.functions.Consumer) r0\n io.reactivex.disposables.Disposable r4 = r4.mo29926a(r1, r0)\n r3.f12929a = r4\n L_0x0051:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p163g.p201e.p203b.p204d.C5419r.m18179a(java.lang.Throwable):void\");\n }",
"public final void dispatchMoveStarting(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.color.widget.ColorSimpleItemAnimator.dispatchMoveStarting(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.dispatchMoveStarting(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"public final boolean mo3330c(android.content.Intent r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = \"com.google.firebase.messaging.NOTIFICATION_OPEN\";\n r1 = r3.getAction();\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x002c;\n L_0x000c:\n r0 = \"pending_intent\";\n r0 = r3.getParcelableExtra(r0);\n r0 = (android.app.PendingIntent) r0;\n if (r0 == 0) goto L_0x0021;\n L_0x0016:\n r0.send();\t Catch:{ CanceledException -> 0x001a }\n goto L_0x0021;\n L_0x001a:\n r0 = \"FirebaseMessaging\";\n r1 = \"Notification pending intent canceled\";\n android.util.Log.e(r0, r1);\n L_0x0021:\n r0 = com.google.firebase.messaging.C2609b.m12812e(r3);\n if (r0 == 0) goto L_0x002a;\n L_0x0027:\n com.google.firebase.messaging.C2609b.m12809b(r3);\n L_0x002a:\n r3 = 1;\n return r3;\n L_0x002c:\n r3 = 0;\n return r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.messaging.FirebaseMessagingService.c(android.content.Intent):boolean\");\n }",
"public final void dispatchAddStarting(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.color.widget.ColorSimpleItemAnimator.dispatchAddStarting(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.dispatchAddStarting(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"private void m14047a(@javax.annotation.Nullable okhttp3.internal.p155a.C2918d.C2915a r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = this;\n if (r1 == 0) goto L_0x0005;\n L_0x0002:\n r1.m14100c();\t Catch:{ IOException -> 0x0005 }\n L_0x0005:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a(okhttp3.internal.a.d$a):void\");\n }",
"private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }",
"public final void dispatchAddFinished(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.color.widget.ColorSimpleItemAnimator.dispatchAddFinished(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.dispatchAddFinished(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }",
"AllocationAdapter(long r1, android.renderscript.RenderScript r3, android.renderscript.Allocation r4, android.renderscript.Type r5) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.renderscript.AllocationAdapter.<init>(long, android.renderscript.RenderScript, android.renderscript.Allocation, android.renderscript.Type):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.renderscript.AllocationAdapter.<init>(long, android.renderscript.RenderScript, android.renderscript.Allocation, android.renderscript.Type):void\");\n }",
"private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }",
"public boolean animateDisappearance(com.color.widget.ColorRecyclerView.ViewHolder r1, com.color.widget.ColorRecyclerView.ItemAnimator.ItemHolderInfo r2, com.color.widget.ColorRecyclerView.ItemAnimator.ItemHolderInfo r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: com.color.widget.ColorSimpleItemAnimator.animateDisappearance(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.animateDisappearance(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean\");\n }",
"private final void m11061a(android.app.Activity r5, app.zenly.locator.experimental.inbox.p092i.C3708a r6) {\n /*\n r4 = this;\n app.zenly.locator.experimental.inbox.j.b r0 = r6.mo10234a()\n co.znly.models.i r0 = r0.mo10237a()\n if (r0 == 0) goto L_0x0011\n java.util.List r0 = r0.getPhoneNumbersList()\n if (r0 == 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n java.util.List r0 = kotlin.collections.C12848o.m33640a()\n L_0x0015:\n androidx.appcompat.app.a$a r1 = new androidx.appcompat.app.a$a\n r1.<init>(r5)\n r2 = 2131231362(0x7f080282, float:1.8078803E38)\n r1.mo527a(r2)\n r2 = 2132018240(0x7f140440, float:1.9674781E38)\n r1.mo548c(r2)\n app.zenly.locator.experimental.inbox.b$a r2 = new app.zenly.locator.experimental.inbox.b$a\n r2.<init>(r4, r6)\n r1.mo530a(r2)\n android.widget.ArrayAdapter r2 = new android.widget.ArrayAdapter\n r3 = 2131624347(0x7f0e019b, float:1.8875871E38)\n r2.<init>(r5, r3, r0)\n app.zenly.locator.experimental.inbox.b$b r3 = new app.zenly.locator.experimental.inbox.b$b\n r3.<init>(r4, r0, r6, r5)\n r1.mo536a(r2, r3)\n androidx.appcompat.app.a r5 = r1.mo542a()\n r5.show()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.experimental.inbox.C3689b.m11061a(android.app.Activity, app.zenly.locator.experimental.inbox.i.a):void\");\n }",
"@SuppressWarnings(\"unused\") // Generated code\n private static byte[] getAdapterClassDump(@NotNull String recyclerViewName,\n @NotNull String viewHolderName,\n @NotNull String adapterName) {\n ClassWriter cw = new ClassWriter(0);\n FieldVisitor fv;\n MethodVisitor mv;\n AnnotationVisitor av0;\n\n String signature = String.format(\"L%1$s<L%2$s;>;\",\n adapterName,\n viewHolderName);\n cw.visit(V1_7, ACC_PUBLIC + ACC_SUPER, \"com/android/layoutlib/bridge/android/support/Adapter\", signature, adapterName, null);\n\n cw.visitInnerClass(\"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\", \"com/android/layoutlib/bridge/android/support/Adapter\", \"ViewHolder\", ACC_PRIVATE + ACC_STATIC);\n\n cw.visitInnerClass(viewHolderName, recyclerViewName, \"ViewHolder\", ACC_PUBLIC + ACC_STATIC + ACC_ABSTRACT);\n\n cw.visitInnerClass(adapterName, recyclerViewName, \"Adapter\", ACC_PUBLIC + ACC_STATIC + ACC_ABSTRACT);\n\n {\n fv = cw.visitField(ACC_PRIVATE, \"mItemCount\", \"I\", null, null);\n fv.visitEnd();\n }\n {\n fv = cw.visitField(ACC_PRIVATE, \"mId\", \"I\", null, null);\n fv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"<init>\", \"()V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitMethodInsn(INVOKESPECIAL, adapterName, \"<init>\", \"()V\", false);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitIntInsn(BIPUSH, 10);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 1);\n mv.visitEnd();\n }\n {\n String desc = String.format(\"(Landroid/view/ViewGroup;I)L%1$s;\", viewHolderName);\n mv = cw.visitMethod(ACC_PUBLIC, \"onCreateViewHolder\", desc, null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n Label l0 = new Label();\n mv.visitJumpInsn(IFLE, l0);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getContext\", \"()Landroid/content/Context;\", false);\n mv.visitMethodInsn(INVOKESTATIC, \"android/view/LayoutInflater\", \"from\", \"(Landroid/content/Context;)Landroid/view/LayoutInflater;\", false);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n mv.visitVarInsn(ALOAD, 1);\n mv.visitInsn(ICONST_0);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/LayoutInflater\", \"inflate\", \"(ILandroid/view/ViewGroup;Z)Landroid/view/View;\", false);\n mv.visitVarInsn(ASTORE, 3);\n Label l1 = new Label();\n mv.visitJumpInsn(GOTO, l1);\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitTypeInsn(NEW, \"android/widget/TextView\");\n mv.visitInsn(DUP);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getContext\", \"()Landroid/content/Context;\", false);\n mv.visitMethodInsn(INVOKESPECIAL, \"android/widget/TextView\", \"<init>\", \"(Landroid/content/Context;)V\", false);\n mv.visitVarInsn(ASTORE, 3);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_APPEND,1, new Object[] {\"android/view/View\"}, 0, null);\n mv.visitTypeInsn(NEW, \"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\");\n mv.visitInsn(DUP);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter$ViewHolder\", \"<init>\", \"(Landroid/view/View;)V\", false);\n mv.visitInsn(ARETURN);\n mv.visitMaxs(4, 4);\n mv.visitEnd();\n }\n {\n String desc = String.format(\"(L%1$s;I)V\", viewHolderName);\n mv = cw.visitMethod(ACC_PUBLIC, \"onBindViewHolder\", desc, null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 1);\n mv.visitFieldInsn(GETFIELD, viewHolderName, \"itemView\", \"Landroid/view/View;\");\n mv.visitVarInsn(ASTORE, 3);\n mv.visitTypeInsn(NEW, \"java/util/ArrayList\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/util/ArrayList\", \"<init>\", \"()V\", false);\n mv.visitVarInsn(ASTORE, 4);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitTypeInsn(NEW, \"java/util/LinkedList\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/util/LinkedList\", \"<init>\", \"()V\", false);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter\", \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", false);\n mv.visitTypeInsn(NEW, \"java/lang/StringBuilder\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/lang/StringBuilder\", \"<init>\", \"()V\", false);\n mv.visitLdcInsn(\"Item \");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitVarInsn(ILOAD, 2);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(I)Ljava/lang/StringBuilder;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"toString\", \"()Ljava/lang/String;\", false);\n mv.visitVarInsn(ASTORE, 5);\n mv.visitInsn(ICONST_0);\n mv.visitVarInsn(ISTORE, 6);\n Label l0 = new Label();\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_FULL, 7, new Object[] {\"com/android/layoutlib/bridge/android/support/Adapter\", viewHolderName, Opcodes.INTEGER, \"android/view/View\", \"java/util/ArrayList\", \"java/lang/String\", Opcodes.INTEGER}, 0, new Object[] {});\n mv.visitVarInsn(ILOAD, 6);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"size\", \"()I\", false);\n Label l1 = new Label();\n mv.visitJumpInsn(IF_ICMPGE, l1);\n mv.visitVarInsn(ALOAD, 4);\n mv.visitVarInsn(ILOAD, 6);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"get\", \"(I)Ljava/lang/Object;\", false);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitVarInsn(ALOAD, 5);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/widget/TextView\", \"setText\", \"(Ljava/lang/CharSequence;)V\", false);\n mv.visitTypeInsn(NEW, \"java/lang/StringBuilder\");\n mv.visitInsn(DUP);\n mv.visitMethodInsn(INVOKESPECIAL, \"java/lang/StringBuilder\", \"<init>\", \"()V\", false);\n mv.visitLdcInsn(\"Sub\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitVarInsn(ALOAD, 5);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"append\", \"(Ljava/lang/String;)Ljava/lang/StringBuilder;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/lang/StringBuilder\", \"toString\", \"()Ljava/lang/String;\", false);\n mv.visitVarInsn(ASTORE, 5);\n mv.visitIincInsn(6, 1);\n mv.visitJumpInsn(GOTO, l0);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n mv.visitInsn(RETURN);\n mv.visitMaxs(5, 7);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"getItemCount\", \"()I\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitFieldInsn(GETFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(IRETURN);\n mv.visitMaxs(1, 1);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"setLayoutId\", \"(I)V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ILOAD, 1);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mId\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 2);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PUBLIC, \"setItemCount\", \"(I)V\", null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ILOAD, 1);\n mv.visitFieldInsn(PUTFIELD, \"com/android/layoutlib/bridge/android/support/Adapter\", \"mItemCount\", \"I\");\n mv.visitInsn(RETURN);\n mv.visitMaxs(2, 2);\n mv.visitEnd();\n }\n {\n mv = cw.visitMethod(ACC_PRIVATE, \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", \"(Landroid/view/View;Ljava/util/ArrayList<Landroid/widget/TextView;>;Ljava/util/LinkedList<Landroid/view/View;>;)V\", null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(INSTANCEOF, \"android/widget/TextView\");\n Label l0 = new Label();\n mv.visitJumpInsn(IFEQ, l0);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/widget/TextView\", \"getText\", \"()Ljava/lang/CharSequence;\", false);\n mv.visitMethodInsn(INVOKEINTERFACE, \"java/lang/CharSequence\", \"length\", \"()I\", true);\n Label l1 = new Label();\n mv.visitJumpInsn(IFNE, l1);\n mv.visitVarInsn(ALOAD, 2);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/widget/TextView\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/ArrayList\", \"add\", \"(Ljava/lang/Object;)Z\", false);\n mv.visitInsn(POP);\n mv.visitJumpInsn(GOTO, l1);\n mv.visitLabel(l0);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(INSTANCEOF, \"android/view/ViewGroup\");\n mv.visitJumpInsn(IFEQ, l1);\n mv.visitInsn(ICONST_0);\n mv.visitVarInsn(ISTORE, 4);\n Label l2 = new Label();\n mv.visitLabel(l2);\n mv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n mv.visitVarInsn(ILOAD, 4);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/view/ViewGroup\");\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getChildCount\", \"()I\", false);\n mv.visitJumpInsn(IF_ICMPGE, l1);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitVarInsn(ALOAD, 1);\n mv.visitTypeInsn(CHECKCAST, \"android/view/ViewGroup\");\n mv.visitVarInsn(ILOAD, 4);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"android/view/ViewGroup\", \"getChildAt\", \"(I)Landroid/view/View;\", false);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"add\", \"(Ljava/lang/Object;)Z\", false);\n mv.visitInsn(POP);\n mv.visitIincInsn(4, 1);\n mv.visitJumpInsn(GOTO, l2);\n mv.visitLabel(l1);\n mv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"isEmpty\", \"()Z\", false);\n Label l3 = new Label();\n mv.visitJumpInsn(IFNE, l3);\n mv.visitVarInsn(ALOAD, 0);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKEVIRTUAL, \"java/util/LinkedList\", \"remove\", \"()Ljava/lang/Object;\", false);\n mv.visitTypeInsn(CHECKCAST, \"android/view/View\");\n mv.visitVarInsn(ALOAD, 2);\n mv.visitVarInsn(ALOAD, 3);\n mv.visitMethodInsn(INVOKESPECIAL, \"com/android/layoutlib/bridge/android/support/Adapter\", \"findTextViews\", \"(Landroid/view/View;Ljava/util/ArrayList;Ljava/util/LinkedList;)V\", false);\n mv.visitLabel(l3);\n mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n mv.visitInsn(RETURN);\n mv.visitMaxs(4, 5);\n mv.visitEnd();\n }\n cw.visitEnd();\n\n return cw.toByteArray();\n }",
"public void m2108c() {\n /*\n r3 = this;\n r0 = \"Calling this from your main thread can lead to deadlock\";\n com.google.android.gms.common.internal.C1305x.m6628c(r0);\n monitor-enter(r3);\n r0 = r3.f1274g;\t Catch:{ all -> 0x002a }\n if (r0 == 0) goto L_0x000e;\n L_0x000a:\n r0 = r3.f1268a;\t Catch:{ all -> 0x002a }\n if (r0 != 0) goto L_0x0010;\n L_0x000e:\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n L_0x000f:\n return;\n L_0x0010:\n r0 = r3.f1270c;\t Catch:{ IllegalArgumentException -> 0x002d }\n if (r0 == 0) goto L_0x001f;\n L_0x0014:\n r0 = com.google.android.gms.common.stats.C1530b.m6956a();\t Catch:{ IllegalArgumentException -> 0x002d }\n r1 = r3.f1274g;\t Catch:{ IllegalArgumentException -> 0x002d }\n r2 = r3.f1268a;\t Catch:{ IllegalArgumentException -> 0x002d }\n r0.m6963a(r1, r2);\t Catch:{ IllegalArgumentException -> 0x002d }\n L_0x001f:\n r0 = 0;\n r3.f1270c = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1269b = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1268a = r0;\t Catch:{ all -> 0x002a }\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n goto L_0x000f;\n L_0x002a:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n throw r0;\n L_0x002d:\n r0 = move-exception;\n r1 = \"AdvertisingIdClient\";\n r2 = \"AdvertisingIdClient unbindService failed.\";\n android.util.Log.i(r1, r2, r0);\t Catch:{ all -> 0x002a }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.c.a.c():void\");\n }",
"@Override // android.widget.FrameLayout, android.view.View\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void onMeasure(int r12, int r13) {\n /*\n r11 = this;\n int r0 = r11.b\n r1 = 1\n r2 = 0\n r3 = 1073741824(0x40000000, float:2.0)\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n if (r0 == 0) goto L_0x008a\n int r5 = r11.c\n if (r5 != 0) goto L_0x0010\n goto L_0x008a\n L_0x0010:\n float r0 = (float) r0\n float r5 = (float) r5\n float r0 = r0 / r5\n int r5 = android.view.View.MeasureSpec.getSize(r12)\n int r6 = android.view.View.MeasureSpec.getSize(r13)\n int r7 = android.view.View.MeasureSpec.getMode(r12)\n int r8 = android.view.View.MeasureSpec.getMode(r13)\n int r9 = r11.getChildCount()\n if (r7 != 0) goto L_0x0030\n if (r8 != 0) goto L_0x0030\n super.onMeasure(r12, r13)\n goto L_0x00dd\n L_0x0030:\n if (r7 != 0) goto L_0x0037\n float r12 = (float) r6\n float r12 = r12 * r0\n int r5 = (int) r12\n goto L_0x003f\n L_0x0037:\n if (r8 != 0) goto L_0x003a\n goto L_0x003c\n L_0x003a:\n if (r8 == r3) goto L_0x003f\n L_0x003c:\n float r12 = (float) r5\n float r12 = r12 / r0\n int r6 = (int) r12\n L_0x003f:\n r12 = 0\n r13 = 0\n L_0x0041:\n if (r12 >= r9) goto L_0x0080\n android.view.View r0 = r11.getChildAt(r12)\n int r7 = r0.getVisibility()\n r8 = 8\n if (r7 != r8) goto L_0x0050\n goto L_0x007d\n L_0x0050:\n android.view.ViewGroup$LayoutParams r7 = r0.getLayoutParams()\n if (r7 == 0) goto L_0x0067\n int r8 = r7.width\n r10 = -1\n if (r8 != r10) goto L_0x005e\n r8 = 1073741824(0x40000000, float:2.0)\n goto L_0x0060\n L_0x005e:\n r8 = -2147483648(0xffffffff80000000, float:-0.0)\n L_0x0060:\n int r7 = r7.height\n if (r7 != r10) goto L_0x0069\n r7 = 1073741824(0x40000000, float:2.0)\n goto L_0x006b\n L_0x0067:\n r8 = -2147483648(0xffffffff80000000, float:-0.0)\n L_0x0069:\n r7 = -2147483648(0xffffffff80000000, float:-0.0)\n L_0x006b:\n int r8 = android.view.View.MeasureSpec.makeMeasureSpec(r5, r8)\n int r7 = android.view.View.MeasureSpec.makeMeasureSpec(r6, r7)\n r0.measure(r8, r7)\n int r0 = r0.getMeasuredHeight()\n if (r0 <= 0) goto L_0x007d\n r13 = 1\n L_0x007d:\n int r12 = r12 + 1\n goto L_0x0041\n L_0x0080:\n if (r13 == 0) goto L_0x0086\n r11.setMeasuredDimension(r5, r6)\n goto L_0x00dd\n L_0x0086:\n r11.setMeasuredDimension(r2, r2)\n goto L_0x00dd\n L_0x008a:\n int r0 = android.view.View.MeasureSpec.getSize(r12)\n int r5 = android.view.View.MeasureSpec.getSize(r13)\n int r12 = android.view.View.MeasureSpec.getMode(r12)\n int r13 = android.view.View.MeasureSpec.getMode(r13)\n int r6 = r11.getChildCount()\n if (r0 != 0) goto L_0x00a5\n if (r5 != 0) goto L_0x00a5\n r11.setMeasuredDimension(r2, r2)\n L_0x00a5:\n com.my.target.gc r2 = r11.a\n int r7 = android.view.View.MeasureSpec.makeMeasureSpec(r0, r4)\n int r8 = android.view.View.MeasureSpec.makeMeasureSpec(r5, r4)\n r2.measure(r7, r8)\n com.my.target.gc r2 = r11.a\n int r2 = r2.getMeasuredWidth()\n com.my.target.gc r7 = r11.a\n int r7 = r7.getMeasuredHeight()\n if (r13 == r3) goto L_0x00c1\n r5 = r7\n L_0x00c1:\n if (r12 == r3) goto L_0x00c4\n r0 = r2\n L_0x00c4:\n if (r6 <= r1) goto L_0x00da\n L_0x00c6:\n if (r1 >= r6) goto L_0x00da\n android.view.View r12 = r11.getChildAt(r1)\n int r13 = android.view.View.MeasureSpec.makeMeasureSpec(r0, r4)\n int r2 = android.view.View.MeasureSpec.makeMeasureSpec(r5, r4)\n r12.measure(r13, r2)\n int r1 = r1 + 1\n goto L_0x00c6\n L_0x00da:\n r11.setMeasuredDimension(r0, r5)\n L_0x00dd:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.my.target.nativeads.views.IconAdView.onMeasure(int, int):void\");\n }",
"@javax.annotation.Nullable\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n private final com.google.android.gms.internal.ads.alc m16975a(@javax.annotation.Nullable android.content.Context r4, boolean r5, boolean r6) {\n /*\n r3 = this;\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11765Q\n com.google.android.gms.internal.ads.ars r1 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r1.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n r1 = 0\n if (r0 != 0) goto L_0x0014\n return r1\n L_0x0014:\n boolean r0 = com.google.android.gms.common.util.C3563o.m12763b()\n if (r0 != 0) goto L_0x001b\n return r1\n L_0x001b:\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11773Y\n com.google.android.gms.internal.ads.ars r2 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r2.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n if (r0 != 0) goto L_0x0040\n com.google.android.gms.internal.ads.ark<java.lang.Boolean> r0 = com.google.android.gms.internal.ads.aru.f11771W\n com.google.android.gms.internal.ads.ars r2 = com.google.android.gms.internal.ads.aoq.m14620f()\n java.lang.Object r0 = r2.mo14695a(r0)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r0 = r0.booleanValue()\n if (r0 != 0) goto L_0x0040\n return r1\n L_0x0040:\n if (r5 == 0) goto L_0x0045\n if (r6 == 0) goto L_0x0045\n return r1\n L_0x0045:\n java.lang.Object r5 = r3.f13322a\n monitor-enter(r5)\n android.os.Looper r6 = android.os.Looper.getMainLooper() // Catch:{ all -> 0x007f }\n if (r6 == 0) goto L_0x007d\n if (r4 != 0) goto L_0x0051\n goto L_0x007d\n L_0x0051:\n com.google.android.gms.internal.ads.akx r6 = r3.f13331j // Catch:{ all -> 0x007f }\n if (r6 != 0) goto L_0x005c\n com.google.android.gms.internal.ads.akx r6 = new com.google.android.gms.internal.ads.akx // Catch:{ all -> 0x007f }\n r6.<init>() // Catch:{ all -> 0x007f }\n r3.f13331j = r6 // Catch:{ all -> 0x007f }\n L_0x005c:\n com.google.android.gms.internal.ads.alc r6 = r3.f13330i // Catch:{ all -> 0x007f }\n if (r6 != 0) goto L_0x006f\n com.google.android.gms.internal.ads.alc r6 = new com.google.android.gms.internal.ads.alc // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.akx r0 = r3.f13331j // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.zzang r1 = r3.f13328g // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.ck r4 = com.google.android.gms.internal.ads.C3712cg.m16480a(r4, r1) // Catch:{ all -> 0x007f }\n r6.<init>(r0, r4) // Catch:{ all -> 0x007f }\n r3.f13330i = r6 // Catch:{ all -> 0x007f }\n L_0x006f:\n com.google.android.gms.internal.ads.alc r4 = r3.f13330i // Catch:{ all -> 0x007f }\n r4.mo14478a() // Catch:{ all -> 0x007f }\n java.lang.String r4 = \"start fetching content...\"\n com.google.android.gms.internal.ads.C3900je.m17433d(r4) // Catch:{ all -> 0x007f }\n com.google.android.gms.internal.ads.alc r4 = r3.f13330i // Catch:{ all -> 0x007f }\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n return r4\n L_0x007d:\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n return r1\n L_0x007f:\n r4 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x007f }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C3883io.m16975a(android.content.Context, boolean, boolean):com.google.android.gms.internal.ads.alc\");\n }",
"public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }",
"public final void mo58584a(RecyclerView recyclerView, T t, int i, Runnable runnable) {\n AppMethodBeat.m2504i(134232);\n if (this.jbg != null) {\n this.jbg.mo6505cu(this.iYn);\n }\n final Runnable runnable2 = runnable;\n final C336021 c336021 = new Runnable() {\n public final void run() {\n AppMethodBeat.m2504i(134226);\n if (C38577e.this.jbg != null) {\n C38577e.this.jbg.mo6500a(C38577e.this.coc, C38577e.this.endPos, C38577e.this.jbp, true);\n }\n runnable2.run();\n AppMethodBeat.m2505o(134226);\n }\n };\n if (!(t == null || this.iYn == null)) {\n float f;\n C4990ab.m7416i(\"ItemMoveHelper\", \"[finishMove] position\" + t.mo66454kj() + \" dragViewPosition:\" + i);\n final C41531v cf = recyclerView.mo66357cf(i);\n float translationX = this.iYn.getTranslationX();\n float translationY = this.iYn.getTranslationY();\n if (i == t.mo66454kj() || cf != null) {\n if (cf != null) {\n translationY = this.jbq.aNa() + C33601b.m54877c(recyclerView, cf);\n translationX = this.jbq.aNb() + C33601b.m54876Q(cf);\n if (this.iYu == null) {\n f = 0.0f;\n } else {\n int computeVerticalScrollOffset = this.iYu.computeVerticalScrollOffset();\n int computeVerticalScrollExtent = recyclerView.computeVerticalScrollExtent();\n int computeVerticalScrollRange = (this.iYu.computeVerticalScrollRange() - recyclerView.getMeasuredHeight()) - computeVerticalScrollOffset;\n C4990ab.m7417i(\"MicroMsg.ItemMoveHelper\", \"alvinluo computeMoveExtraY scrollOffset: %d, scrollExtent: %d, scrollRange: %d, height: %d, extra: %d, diff: %d\", Integer.valueOf(computeVerticalScrollOffset), Integer.valueOf(computeVerticalScrollExtent), Integer.valueOf(this.iYu.computeVerticalScrollRange()), Integer.valueOf(recyclerView.getMeasuredHeight()), Integer.valueOf((int) (recyclerView.getResources().getDimension(C25738R.dimen.a7o) * 0.75f)), Integer.valueOf(computeVerticalScrollRange));\n if (((float) computeVerticalScrollRange) > recyclerView.getResources().getDimension(C25738R.dimen.a7o) * 0.75f) {\n f = 0.0f;\n } else {\n f = (recyclerView.getResources().getDimension(C25738R.dimen.a7o) * 0.75f) - ((float) computeVerticalScrollRange);\n }\n }\n C4990ab.m7417i(\"MicroMsg.ItemMoveHelper\", \"alvinluo finishMove computeMoveExtraY %f\", Float.valueOf(f));\n f += translationX;\n translationX = translationY;\n } else {\n f = translationY;\n }\n } else if (((LinearLayoutManager) recyclerView.getLayoutManager()).mo1780iQ() > i) {\n f = translationY - ((float) recyclerView.getHeight());\n } else {\n f = ((float) recyclerView.getHeight()) + translationY;\n }\n View cv = this.jbq.mo22523cv(this.iYn);\n if (cv == null) {\n cv = this.iYn;\n }\n cv.animate().scaleX(1.0f).scaleY(1.0f).setDuration(300).setListener(null).start();\n this.iYn.animate().translationX(translationX).translationY(f).setDuration(300).setListener(new AnimatorListener() {\n public final void onAnimationStart(Animator animator) {\n }\n\n public final void onAnimationEnd(Animator animator) {\n AppMethodBeat.m2504i(134227);\n C38577e.this.jbb.removeView(C38577e.this.iYn);\n C38577e.this.iYn.setVisibility(8);\n if (cf != null) {\n cf.apJ.setVisibility(0);\n }\n c336021.run();\n AppMethodBeat.m2505o(134227);\n }\n\n public final void onAnimationCancel(Animator animator) {\n }\n\n public final void onAnimationRepeat(Animator animator) {\n }\n }).start();\n }\n AppMethodBeat.m2505o(134232);\n }",
"private synchronized void a(com.whatsapp.util.x r11, boolean r12) {\n /*\n r10 = this;\n r0 = 0;\n monitor-enter(r10);\n r2 = com.whatsapp.util.Log.h;\t Catch:{ all -> 0x0016 }\n r3 = com.whatsapp.util.x.a(r11);\t Catch:{ all -> 0x0016 }\n r1 = com.whatsapp.util.bl.b(r3);\t Catch:{ IllegalArgumentException -> 0x0014 }\n if (r1 == r11) goto L_0x0019;\n L_0x000e:\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r0.<init>();\t Catch:{ IllegalArgumentException -> 0x0014 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0014 }\n L_0x0014:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0016:\n r0 = move-exception;\n monitor-exit(r10);\n throw r0;\n L_0x0019:\n if (r12 == 0) goto L_0x0058;\n L_0x001b:\n r1 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x0052 }\n if (r1 != 0) goto L_0x0058;\n L_0x0021:\n r1 = r0;\n L_0x0022:\n r4 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r1 >= r4) goto L_0x0058;\n L_0x0026:\n r4 = r3.b(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = r4.exists();\t Catch:{ IllegalArgumentException -> 0x0050 }\n if (r4 != 0) goto L_0x0054;\n L_0x0030:\n r11.b();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0 = new java.lang.IllegalStateException;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2.<init>();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r3 = z;\t Catch:{ IllegalArgumentException -> 0x0050 }\n r4 = 24;\n r3 = r3[r4];\t Catch:{ IllegalArgumentException -> 0x0050 }\n r2 = r2.append(r3);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r2.append(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x0050 }\n r0.<init>(r1);\t Catch:{ IllegalArgumentException -> 0x0050 }\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0050 }\n L_0x0050:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0052:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0054:\n r1 = r1 + 1;\n if (r2 == 0) goto L_0x0022;\n L_0x0058:\n r1 = r10.b;\t Catch:{ all -> 0x0016 }\n if (r0 >= r1) goto L_0x008f;\n L_0x005c:\n r1 = r3.b(r0);\t Catch:{ all -> 0x0016 }\n if (r12 == 0) goto L_0x0088;\n L_0x0062:\n r4 = r1.exists();\t Catch:{ IllegalArgumentException -> 0x0126 }\n if (r4 == 0) goto L_0x008b;\n L_0x0068:\n r4 = r3.a(r0);\t Catch:{ all -> 0x0016 }\n r1.renameTo(r4);\t Catch:{ all -> 0x0016 }\n r5 = com.whatsapp.util.bl.e(r3);\t Catch:{ all -> 0x0016 }\n r6 = r5[r0];\t Catch:{ all -> 0x0016 }\n r4 = r4.length();\t Catch:{ all -> 0x0016 }\n r8 = com.whatsapp.util.bl.e(r3);\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8[r0] = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r8 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0128 }\n r6 = r8 - r6;\n r4 = r4 + r6;\n r10.i = r4;\t Catch:{ IllegalArgumentException -> 0x0128 }\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n a(r1);\t Catch:{ IllegalArgumentException -> 0x0128 }\n L_0x008b:\n r0 = r0 + 1;\n if (r2 == 0) goto L_0x0058;\n L_0x008f:\n r0 = r10.e;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 + 1;\n r10.e = r0;\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = 0;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = com.whatsapp.util.bl.d(r3);\t Catch:{ IllegalArgumentException -> 0x012a }\n r0 = r0 | r12;\n if (r0 == 0) goto L_0x00e0;\n L_0x00a0:\n r0 = 1;\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012c }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012c }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = z;\t Catch:{ IllegalArgumentException -> 0x012c }\n r5 = 26;\n r4 = r4[r5];\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = r3.a();\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r4 = 10;\n r1 = r1.append(r4);\t Catch:{ IllegalArgumentException -> 0x012c }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012c }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012c }\n if (r12 == 0) goto L_0x010f;\n L_0x00d4:\n r0 = r10.n;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 1;\n r4 = r4 + r0;\n r10.n = r4;\t Catch:{ IllegalArgumentException -> 0x012e }\n com.whatsapp.util.bl.a(r3, r0);\t Catch:{ IllegalArgumentException -> 0x012e }\n if (r2 == 0) goto L_0x010f;\n L_0x00e0:\n r0 = r10.k;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.remove(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n r0 = r10.m;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x012e }\n r1.<init>();\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = z;\t Catch:{ IllegalArgumentException -> 0x012e }\n r4 = 25;\n r2 = r2[r4];\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = com.whatsapp.util.bl.a(r3);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r2 = 10;\n r1 = r1.append(r2);\t Catch:{ IllegalArgumentException -> 0x012e }\n r1 = r1.toString();\t Catch:{ IllegalArgumentException -> 0x012e }\n r0.write(r1);\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x010f:\n r0 = r10.i;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r2 = r10.c;\t Catch:{ IllegalArgumentException -> 0x0130 }\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 > 0) goto L_0x011d;\n L_0x0117:\n r0 = r10.f();\t Catch:{ IllegalArgumentException -> 0x0132 }\n if (r0 == 0) goto L_0x0124;\n L_0x011d:\n r0 = r10.d;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r1 = r10.j;\t Catch:{ IllegalArgumentException -> 0x0132 }\n r0.submit(r1);\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0124:\n monitor-exit(r10);\n return;\n L_0x0126:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0128:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x012a:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012c }\n L_0x012c:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x012e }\n L_0x012e:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n L_0x0130:\n r0 = move-exception;\n throw r0;\t Catch:{ IllegalArgumentException -> 0x0132 }\n L_0x0132:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0016 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.util.b6.a(com.whatsapp.util.x, boolean):void\");\n }",
"public void onRemoveFinished(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.color.widget.ColorSimpleItemAnimator.onRemoveFinished(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.onRemoveFinished(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"protected static android.graphics.Bitmap m6543a(int r1, int r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }",
"private void updateType() {\n /*\n r3 = this;\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n int r0 = r0.getChildCount()\n if (r0 <= 0) goto L_0x0036\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n r1 = 0\n android.view.View r0 = r0.getChildAt(r1)\n org.telegram.ui.Components.RecyclerListView r2 = r3.gridView\n androidx.recyclerview.widget.RecyclerView$ViewHolder r2 = r2.findContainingViewHolder(r0)\n if (r2 == 0) goto L_0x0036\n int r2 = r2.getAdapterPosition()\n if (r2 == 0) goto L_0x0025\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n int r0 = r0.getPaddingTop()\n int r0 = -r0\n goto L_0x0031\n L_0x0025:\n org.telegram.ui.Components.RecyclerListView r2 = r3.gridView\n int r2 = r2.getPaddingTop()\n int r2 = -r2\n int r0 = r0.getTop()\n int r0 = r0 + r2\n L_0x0031:\n androidx.recyclerview.widget.GridLayoutManager r2 = r3.stickersLayoutManager\n r2.scrollToPositionWithOffset(r1, r0)\n L_0x0036:\n r0 = 1\n r3.checkDocuments(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.Components.StickerMasksAlert.updateType():void\");\n }",
"public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }",
"@Override\n public final void run() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 3: invokevirtual cd.I:()V\n // 6: getstatic u.Code:Lbn;\n // 9: invokeinterface bn.p:()Z\n // 14: ifne 43\n // 17: aload_0 \n // 18: monitorenter \n // 19: invokestatic com/opera/mini/android/bf.c:()Z\n // 22: ifne 62\n // 25: aload_0 \n // 26: iconst_0 \n // 27: invokestatic cg.Code:(Ljava/lang/Object;I)V\n // 30: getstatic u.Code:Lbn;\n // 33: invokeinterface bn.p:()Z\n // 38: ifeq 62\n // 41: aload_0 \n // 42: monitorexit \n // 43: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 46: ifnull 55\n // 49: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 52: invokevirtual com/opera/mini/android/k.g:()V\n // 55: invokestatic com/opera/mini/android/bf.B:()Lcd;\n // 58: invokevirtual cd.Z:()V\n // 61: return \n // 62: invokestatic com/opera/mini/android/bf.d:()Z\n // 65: pop \n // 66: invokestatic com/opera/mini/android/bf.e:()I\n // 69: istore_1 \n // 70: invokestatic com/opera/mini/android/bf.f:()I\n // 73: istore_2 \n // 74: invokestatic com/opera/mini/android/bf.g:()I\n // 77: istore_3 \n // 78: invokestatic com/opera/mini/android/bf.h:()I\n // 81: istore 4\n // 83: iconst_0 \n // 84: invokestatic com/opera/mini/android/bf.Code:(I)I\n // 87: pop \n // 88: aload_0 \n // 89: monitorexit \n // 90: aload_0 \n // 91: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 94: invokevirtual com/opera/mini/android/bf.getWidth:()I\n // 97: istore 5\n // 99: aload_0 \n // 100: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 103: invokevirtual com/opera/mini/android/bf.getHeight:()I\n // 106: istore 6\n // 108: iload 5\n // 110: ifle 6\n // 113: iload 6\n // 115: ifle 6\n // 118: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 121: ifnull 146\n // 124: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 127: invokevirtual android/graphics/Bitmap.getWidth:()I\n // 130: iload 5\n // 132: if_icmpne 146\n // 135: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 138: invokevirtual android/graphics/Bitmap.getHeight:()I\n // 141: iload 6\n // 143: if_icmpeq 209\n // 146: aconst_null \n // 147: invokestatic com/opera/mini/android/bf.Code:(Lcom/opera/mini/android/k;)Lcom/opera/mini/android/k;\n // 150: pop \n // 151: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 154: ifnull 168\n // 157: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 160: invokevirtual android/graphics/Bitmap.recycle:()V\n // 163: aconst_null \n // 164: invokestatic com/opera/mini/android/bf.Code:(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;\n // 167: pop \n // 168: iload 5\n // 170: iload 6\n // 172: invokestatic com/opera/mini/android/bg.Code:(II)Landroid/graphics/Bitmap;\n // 175: invokestatic com/opera/mini/android/bf.Code:(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;\n // 178: pop \n // 179: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 182: ifnull 55\n // 185: aload_0 \n // 186: monitorenter \n // 187: invokestatic com/opera/mini/android/bf.j:()I\n // 190: pop \n // 191: invokestatic com/opera/mini/android/bf.k:()I\n // 194: pop \n // 195: iload 5\n // 197: invokestatic com/opera/mini/android/bf.Code:(I)I\n // 200: pop \n // 201: iload 6\n // 203: invokestatic com/opera/mini/android/bf.I:(I)I\n // 206: pop \n // 207: aload_0 \n // 208: monitorexit \n // 209: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 212: ifnonnull 242\n // 215: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 218: invokestatic com/opera/mini/android/k.I:(Landroid/graphics/Bitmap;)Lcom/opera/mini/android/k;\n // 221: invokestatic com/opera/mini/android/bf.Code:(Lcom/opera/mini/android/k;)Lcom/opera/mini/android/k;\n // 224: pop \n // 225: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 228: iconst_1 \n // 229: invokevirtual com/opera/mini/android/k.Code:(Z)V\n // 232: aload_0 \n // 233: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 236: invokestatic com/opera/mini/android/bf.Code:(Lcom/opera/mini/android/bf;)Lcom/opera/mini/android/MiniView;\n // 239: invokevirtual com/opera/mini/android/MiniView.I:()V\n // 242: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 245: invokevirtual com/opera/mini/android/k.a:()Z\n // 248: ifeq 290\n // 251: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 254: iload_1 \n // 255: iload_2 \n // 256: iload_3 \n // 257: iload 4\n // 259: invokevirtual com/opera/mini/android/k.Code:(IIII)V\n // 262: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 265: iload_1 \n // 266: iload_2 \n // 267: iload_3 \n // 268: iload 4\n // 270: ldc 16777215\n // 272: invokevirtual com/opera/mini/android/k.Z:(IIIII)V\n // 275: getstatic com/opera/mini/android/Browser.Code:Lcom/opera/mini/android/a;\n // 278: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 281: invokevirtual com/opera/mini/android/a.Code:(Law;)V\n // 284: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 287: invokevirtual com/opera/mini/android/k.b:()V\n // 290: invokestatic com/opera/mini/android/bf.l:()Lcom/opera/mini/android/k;\n // 293: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 296: invokevirtual com/opera/mini/android/k.Code:(Landroid/graphics/Bitmap;)V\n // 299: aload_0 \n // 300: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 303: invokestatic com/opera/mini/android/bf.I:(Lcom/opera/mini/android/bf;)Landroid/view/SurfaceHolder;\n // 306: invokeinterface android/view/SurfaceHolder.lockCanvas:()Landroid/graphics/Canvas;\n // 311: astore 7\n // 313: aload 7\n // 315: ifnull 6\n // 318: aload 7\n // 320: invokestatic com/opera/mini/android/bf.i:()Landroid/graphics/Bitmap;\n // 323: fconst_0 \n // 324: fconst_0 \n // 325: aconst_null \n // 326: invokevirtual android/graphics/Canvas.drawBitmap:(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V\n // 329: aload_0 \n // 330: getfield com/opera/mini/android/bg.Code:Lcom/opera/mini/android/bf;\n // 333: invokestatic com/opera/mini/android/bf.I:(Lcom/opera/mini/android/bf;)Landroid/view/SurfaceHolder;\n // 336: aload 7\n // 338: invokeinterface android/view/SurfaceHolder.unlockCanvasAndPost:(Landroid/graphics/Canvas;)V\n // 343: goto 6\n // 346: astore 7\n // 348: invokestatic com/opera/mini/android/bf.B:()Lcd;\n // 351: invokevirtual cd.Z:()V\n // 354: aload 7\n // 356: athrow \n // 357: astore 7\n // 359: aload_0 \n // 360: monitorexit \n // 361: aload 7\n // 363: athrow \n // 364: astore 7\n // 366: aload_0 \n // 367: monitorexit \n // 368: aload 7\n // 370: athrow \n // Exceptions:\n // Try Handler\n // Start End Start End Type\n // ----- ----- ----- ----- ----\n // 6 19 346 357 Any\n // 19 43 357 364 Any\n // 43 55 346 357 Any\n // 62 90 357 364 Any\n // 90 108 346 357 Any\n // 118 146 346 357 Any\n // 146 168 346 357 Any\n // 168 187 346 357 Any\n // 187 209 364 371 Any\n // 209 242 346 357 Any\n // 242 290 346 357 Any\n // 290 313 346 357 Any\n // 318 343 346 357 Any\n // 359 364 346 357 Any\n // 366 371 346 357 Any\n // \n // The error that occurred was:\n // \n // java.lang.IndexOutOfBoundsException: Index: 163, Size: 163\n // at java.util.ArrayList.rangeCheck(ArrayList.java:659)\n // at java.util.ArrayList.get(ArrayList.java:435)\n // at com.strobel.decompiler.ast.AstBuilder.convertToAst(AstBuilder.java:3379)\n // at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:113)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:206)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:94)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:840)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:733)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:610)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:577)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:193)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:160)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:135)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:333)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:254)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:144)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public void m17237a(java.util.List<java.lang.Integer> r6) {\n /*\n r5 = this;\n r0 = 0;\n if (r6 == 0) goto L_0x0009;\n L_0x0003:\n r1 = r6.size();\n if (r1 != 0) goto L_0x000a;\n L_0x0009:\n return;\n L_0x000a:\n r1 = r5.f20994d;\n r1.lock();\n r2 = r5.m17234d();\n r1 = \"\";\n L_0x0016:\n r3 = r6.size();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n if (r0 >= r3) goto L_0x003b;\n L_0x001c:\n r3 = new java.lang.StringBuilder;\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3.<init>();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r3.append(r1);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = r6.get(r0);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r1.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = \",\";\n r1 = r1.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r1.toString();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r0 + 1;\n goto L_0x0016;\n L_0x003b:\n r0 = r1.length();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n if (r0 <= 0) goto L_0x006e;\n L_0x0041:\n r0 = 0;\n r3 = r1.length();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = r3 + -1;\n r0 = r1.substring(r0, r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = \"result\";\n r3 = new java.lang.StringBuilder;\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3.<init>();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r4 = \"_id in (\";\n r3 = r3.append(r4);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r3.append(r0);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = \")\";\n r0 = r0.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r0.toString();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = 0;\n r2.delete(r1, r0, r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n L_0x006e:\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x0077:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00a0:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00c9:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00f2:\n r0 = move-exception;\n r2.close();\n r1 = r5.f20994d;\n r1.unlock();\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.tts.e.c.a(java.util.List):void\");\n }",
"public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }",
"public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }",
"public final void a(@org.jetbrains.annotations.NotNull android.view.View r10) {\n /*\n r9 = this;\n r7 = 1\n java.lang.Object[] r0 = new java.lang.Object[r7]\n r8 = 0\n r0[r8] = r10\n com.meituan.robust.ChangeQuickRedirect r2 = f46777a\n java.lang.Class[] r5 = new java.lang.Class[r7]\n java.lang.Class<android.view.View> r1 = android.view.View.class\n r5[r8] = r1\n java.lang.Class r6 = java.lang.Void.TYPE\n r3 = 0\n r4 = 43457(0xa9c1, float:6.0896E-41)\n r1 = r9\n boolean r0 = com.meituan.robust.PatchProxy.isSupport(r0, r1, r2, r3, r4, r5, r6)\n if (r0 == 0) goto L_0x0032\n java.lang.Object[] r0 = new java.lang.Object[r7]\n r0[r8] = r10\n com.meituan.robust.ChangeQuickRedirect r2 = f46777a\n r3 = 0\n r4 = 43457(0xa9c1, float:6.0896E-41)\n java.lang.Class[] r5 = new java.lang.Class[r7]\n java.lang.Class<android.view.View> r1 = android.view.View.class\n r5[r8] = r1\n java.lang.Class r6 = java.lang.Void.TYPE\n r1 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r0, r1, r2, r3, r4, r5, r6)\n return\n L_0x0032:\n java.lang.String r0 = \"v\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r10, r0)\n com.ss.android.ugc.aweme.feed.model.Aweme r0 = r9.f46788f\n if (r0 == 0) goto L_0x0044\n boolean r0 = r0.isCollected()\n if (r0 != r7) goto L_0x0044\n java.lang.String r0 = \"cancel_favourite_video\"\n goto L_0x0046\n L_0x0044:\n java.lang.String r0 = \"favourite_video\"\n L_0x0046:\n com.ss.android.ugc.aweme.app.d.d r1 = com.ss.android.ugc.aweme.app.d.d.a()\n java.lang.String r2 = \"enter_from\"\n java.lang.String r3 = r9.g\n com.ss.android.ugc.aweme.app.d.d r1 = r1.a((java.lang.String) r2, (java.lang.String) r3)\n java.lang.String r2 = \"group_id\"\n com.ss.android.ugc.aweme.feed.model.Aweme r3 = r9.f46788f\n r4 = 0\n if (r3 == 0) goto L_0x005e\n java.lang.String r3 = r3.getAid()\n goto L_0x005f\n L_0x005e:\n r3 = r4\n L_0x005f:\n com.ss.android.ugc.aweme.app.d.d r1 = r1.a((java.lang.String) r2, (java.lang.String) r3)\n java.lang.String r2 = \"author_id\"\n com.ss.android.ugc.aweme.feed.model.Aweme r3 = r9.f46788f\n if (r3 == 0) goto L_0x006d\n java.lang.String r4 = r3.getAuthorUid()\n L_0x006d:\n com.ss.android.ugc.aweme.app.d.d r1 = r1.a((java.lang.String) r2, (java.lang.String) r4)\n java.lang.String r2 = \"log_pb\"\n com.ss.android.ugc.aweme.feed.ai r3 = com.ss.android.ugc.aweme.feed.ai.a()\n com.ss.android.ugc.aweme.feed.model.Aweme r4 = r9.f46788f\n java.lang.String r4 = com.ss.android.ugc.aweme.u.aa.c((com.ss.android.ugc.aweme.feed.model.Aweme) r4)\n java.lang.String r3 = r3.a((java.lang.String) r4)\n com.ss.android.ugc.aweme.app.d.d r1 = r1.a((java.lang.String) r2, (java.lang.String) r3)\n java.lang.String r2 = \"enter_method\"\n java.lang.String r3 = \"long_press\"\n com.ss.android.ugc.aweme.app.d.d r1 = r1.a((java.lang.String) r2, (java.lang.String) r3)\n java.util.Map<java.lang.String, java.lang.String> r1 = r1.f34114b\n com.ss.android.ugc.aweme.common.r.a((java.lang.String) r0, (java.util.Map) r1)\n com.ss.android.ugc.aweme.feed.model.Aweme r0 = r9.f46788f\n boolean r0 = com.ss.android.ugc.aweme.commercialize.utils.c.L(r0)\n if (r0 == 0) goto L_0x00a9\n android.content.Context r0 = r10.getContext()\n r1 = 2131558510(0x7f0d006e, float:1.8742338E38)\n com.bytedance.ies.dmt.ui.d.a r0 = com.bytedance.ies.dmt.ui.d.a.b((android.content.Context) r0, (int) r1)\n r0.a()\n goto L_0x011d\n L_0x00a9:\n com.ss.android.ugc.aweme.IAccountUserService r0 = com.ss.android.ugc.aweme.account.d.a()\n java.lang.String r1 = \"AccountUserProxyService.get()\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r0, r1)\n boolean r0 = r0.isLogin()\n if (r0 != 0) goto L_0x011a\n java.lang.Object[] r0 = new java.lang.Object[r8]\n com.meituan.robust.ChangeQuickRedirect r2 = f46777a\n r3 = 0\n r4 = 43458(0xa9c2, float:6.0898E-41)\n java.lang.Class[] r5 = new java.lang.Class[r8]\n java.lang.Class r6 = java.lang.Void.TYPE\n r1 = r9\n boolean r0 = com.meituan.robust.PatchProxy.isSupport(r0, r1, r2, r3, r4, r5, r6)\n if (r0 == 0) goto L_0x00dc\n java.lang.Object[] r0 = new java.lang.Object[r8]\n com.meituan.robust.ChangeQuickRedirect r2 = f46777a\n r3 = 0\n r4 = 43458(0xa9c2, float:6.0898E-41)\n java.lang.Class[] r5 = new java.lang.Class[r8]\n java.lang.Class r6 = java.lang.Void.TYPE\n r1 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r0, r1, r2, r3, r4, r5, r6)\n return\n L_0x00dc:\n com.ss.android.ugc.aweme.feed.model.Aweme r0 = r9.f46788f\n if (r0 == 0) goto L_0x00e6\n java.lang.String r0 = r0.getAid()\n if (r0 != 0) goto L_0x00e8\n L_0x00e6:\n java.lang.String r0 = \"\"\n L_0x00e8:\n com.ss.android.ugc.aweme.framework.core.a r1 = com.ss.android.ugc.aweme.framework.core.a.b()\n java.lang.String r2 = \"AppTracker.get()\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r1, r2)\n android.app.Activity r1 = r1.a()\n java.lang.String r2 = r9.g\n java.lang.String r3 = \"click_favorite_video\"\n com.ss.android.ugc.aweme.utils.ad r4 = com.ss.android.ugc.aweme.utils.ad.a()\n java.lang.String r5 = \"group_id\"\n com.ss.android.ugc.aweme.utils.ad r4 = r4.a((java.lang.String) r5, (java.lang.String) r0)\n java.lang.String r5 = \"log_pb\"\n java.lang.String r0 = com.ss.android.ugc.aweme.u.aa.g((java.lang.String) r0)\n com.ss.android.ugc.aweme.utils.ad r0 = r4.a((java.lang.String) r5, (java.lang.String) r0)\n android.os.Bundle r0 = r0.f75487b\n com.ss.android.ugc.aweme.feed.ui.masklayer2.i$a r4 = new com.ss.android.ugc.aweme.feed.ui.masklayer2.i$a\n r4.<init>(r9)\n com.ss.android.ugc.aweme.base.component.f r4 = (com.ss.android.ugc.aweme.base.component.f) r4\n com.ss.android.ugc.aweme.login.e.a((android.app.Activity) r1, (java.lang.String) r2, (java.lang.String) r3, (android.os.Bundle) r0, (com.ss.android.ugc.aweme.base.component.f) r4)\n return\n L_0x011a:\n r9.a()\n L_0x011d:\n boolean r0 = com.ss.android.g.a.a()\n if (r0 == 0) goto L_0x0138\n com.ss.android.ugc.aweme.setting.AbTestManager r0 = com.ss.android.ugc.aweme.setting.AbTestManager.a()\n boolean r0 = r0.aW()\n if (r0 == 0) goto L_0x0138\n com.ss.android.ugc.aweme.base.sharedpref.f r0 = com.ss.android.ugc.aweme.base.sharedpref.e.d()\n java.lang.String r1 = \"last_share_type\"\n java.lang.String r2 = \"TYPE_FAVORITE\"\n r0.b((java.lang.String) r1, (java.lang.String) r2)\n L_0x0138:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.feed.ui.masklayer2.i.a(android.view.View):void\");\n }",
"public final java.lang.String mo40211d_() {\n /*\n r6 = this;\n android.database.sqlite.SQLiteDatabase r0 = r6.mo40210c_()\n r1 = 0\n java.lang.String r2 = \"select app_id from queue order by has_realtime desc, rowid asc limit 1;\"\n android.database.Cursor r0 = r0.rawQuery(r2, r1) // Catch:{ SQLiteException -> 0x002b, all -> 0x0026 }\n boolean r2 = r0.moveToFirst() // Catch:{ SQLiteException -> 0x0024 }\n if (r2 == 0) goto L_0x001d\n r2 = 0\n java.lang.String r1 = r0.getString(r2) // Catch:{ SQLiteException -> 0x0024 }\n if (r0 == 0) goto L_0x001c\n r0.close()\n L_0x001c:\n return r1\n L_0x001d:\n if (r0 == 0) goto L_0x0023\n r0.close()\n L_0x0023:\n return r1\n L_0x0024:\n r2 = move-exception\n goto L_0x002d\n L_0x0026:\n r0 = move-exception\n r5 = r1\n r1 = r0\n r0 = r5\n goto L_0x0041\n L_0x002b:\n r2 = move-exception\n r0 = r1\n L_0x002d:\n com.google.android.gms.measurement.internal.zzez r3 = r6.zzr() // Catch:{ all -> 0x0040 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ all -> 0x0040 }\n java.lang.String r4 = \"Database error getting next bundle app id\"\n r3.zza(r4, r2) // Catch:{ all -> 0x0040 }\n if (r0 == 0) goto L_0x003f\n r0.close()\n L_0x003f:\n return r1\n L_0x0040:\n r1 = move-exception\n L_0x0041:\n if (r0 == 0) goto L_0x0046\n r0.close()\n L_0x0046:\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.mo40211d_():java.lang.String\");\n }",
"private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }",
"public final void dispatchRemoveFinished(com.color.widget.ColorRecyclerView.ViewHolder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.color.widget.ColorSimpleItemAnimator.dispatchRemoveFinished(com.color.widget.ColorRecyclerView$ViewHolder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.dispatchRemoveFinished(com.color.widget.ColorRecyclerView$ViewHolder):void\");\n }",
"@android.annotation.TargetApi(17)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void resolveLayoutDirection(int r6) {\n /*\n r5 = this;\n int r0 = r5.leftMargin\n int r1 = r5.rightMargin\n super.resolveLayoutDirection(r6)\n r6 = -1\n r5.ad = r6\n r5.ae = r6\n r5.ab = r6\n r5.ac = r6\n r5.af = r6\n r5.ag = r6\n int r2 = r5.t\n r5.af = r2\n int r2 = r5.v\n r5.ag = r2\n float r2 = r5.z\n r5.ah = r2\n int r2 = r5.a\n r5.ai = r2\n int r2 = r5.b\n r5.aj = r2\n float r2 = r5.c\n r5.ak = r2\n int r2 = r5.getLayoutDirection()\n r3 = 0\n r4 = 1\n if (r4 != r2) goto L_0x0036\n r2 = 1\n goto L_0x0037\n L_0x0036:\n r2 = 0\n L_0x0037:\n if (r2 == 0) goto L_0x00ac\n int r2 = r5.p\n if (r2 == r6) goto L_0x0043\n int r2 = r5.p\n r5.ad = r2\n L_0x0041:\n r3 = 1\n goto L_0x004c\n L_0x0043:\n int r2 = r5.q\n if (r2 == r6) goto L_0x004c\n int r2 = r5.q\n r5.ae = r2\n goto L_0x0041\n L_0x004c:\n int r2 = r5.r\n if (r2 == r6) goto L_0x0055\n int r2 = r5.r\n r5.ac = r2\n r3 = 1\n L_0x0055:\n int r2 = r5.s\n if (r2 == r6) goto L_0x005e\n int r2 = r5.s\n r5.ab = r2\n r3 = 1\n L_0x005e:\n int r2 = r5.x\n if (r2 == r6) goto L_0x0066\n int r2 = r5.x\n r5.ag = r2\n L_0x0066:\n int r2 = r5.y\n if (r2 == r6) goto L_0x006e\n int r2 = r5.y\n r5.af = r2\n L_0x006e:\n r2 = 1065353216(0x3f800000, float:1.0)\n if (r3 == 0) goto L_0x0078\n float r3 = r5.z\n float r3 = r2 - r3\n r5.ah = r3\n L_0x0078:\n boolean r3 = r5.Y\n if (r3 == 0) goto L_0x00dc\n int r3 = r5.S\n if (r3 != r4) goto L_0x00dc\n float r3 = r5.c\n r4 = -1082130432(0xffffffffbf800000, float:-1.0)\n int r3 = (r3 > r4 ? 1 : (r3 == r4 ? 0 : -1))\n if (r3 == 0) goto L_0x0092\n float r3 = r5.c\n float r2 = r2 - r3\n r5.ak = r2\n r5.ai = r6\n r5.aj = r6\n goto L_0x00dc\n L_0x0092:\n int r2 = r5.a\n if (r2 == r6) goto L_0x009f\n int r2 = r5.a\n r5.aj = r2\n r5.ai = r6\n r5.ak = r4\n goto L_0x00dc\n L_0x009f:\n int r2 = r5.b\n if (r2 == r6) goto L_0x00dc\n int r2 = r5.b\n r5.ai = r2\n r5.aj = r6\n r5.ak = r4\n goto L_0x00dc\n L_0x00ac:\n int r2 = r5.p\n if (r2 == r6) goto L_0x00b4\n int r2 = r5.p\n r5.ac = r2\n L_0x00b4:\n int r2 = r5.q\n if (r2 == r6) goto L_0x00bc\n int r2 = r5.q\n r5.ab = r2\n L_0x00bc:\n int r2 = r5.r\n if (r2 == r6) goto L_0x00c4\n int r2 = r5.r\n r5.ad = r2\n L_0x00c4:\n int r2 = r5.s\n if (r2 == r6) goto L_0x00cc\n int r2 = r5.s\n r5.ae = r2\n L_0x00cc:\n int r2 = r5.x\n if (r2 == r6) goto L_0x00d4\n int r2 = r5.x\n r5.af = r2\n L_0x00d4:\n int r2 = r5.y\n if (r2 == r6) goto L_0x00dc\n int r2 = r5.y\n r5.ag = r2\n L_0x00dc:\n int r2 = r5.r\n if (r2 != r6) goto L_0x012e\n int r2 = r5.s\n if (r2 != r6) goto L_0x012e\n int r2 = r5.q\n if (r2 != r6) goto L_0x012e\n int r2 = r5.p\n if (r2 != r6) goto L_0x012e\n int r2 = r5.f\n if (r2 == r6) goto L_0x00fd\n int r2 = r5.f\n r5.ad = r2\n int r2 = r5.rightMargin\n if (r2 > 0) goto L_0x010d\n if (r1 <= 0) goto L_0x010d\n r5.rightMargin = r1\n goto L_0x010d\n L_0x00fd:\n int r2 = r5.g\n if (r2 == r6) goto L_0x010d\n int r2 = r5.g\n r5.ae = r2\n int r2 = r5.rightMargin\n if (r2 > 0) goto L_0x010d\n if (r1 <= 0) goto L_0x010d\n r5.rightMargin = r1\n L_0x010d:\n int r1 = r5.d\n if (r1 == r6) goto L_0x011e\n int r6 = r5.d\n r5.ab = r6\n int r6 = r5.leftMargin\n if (r6 > 0) goto L_0x012e\n if (r0 <= 0) goto L_0x012e\n r5.leftMargin = r0\n return\n L_0x011e:\n int r1 = r5.e\n if (r1 == r6) goto L_0x012e\n int r6 = r5.e\n r5.ac = r6\n int r6 = r5.leftMargin\n if (r6 > 0) goto L_0x012e\n if (r0 <= 0) goto L_0x012e\n r5.leftMargin = r0\n L_0x012e:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.ConstraintLayout.LayoutParams.resolveLayoutDirection(int):void\");\n }",
"public final void mo58589m(RecyclerView recyclerView) {\n }",
"public void notifyDataSetChanged() {\n /*\n r17 = this;\n r0 = r17\n org.telegram.ui.Components.StickerMasksAlert r1 = org.telegram.ui.Components.StickerMasksAlert.this\n org.telegram.ui.Components.RecyclerListView r1 = r1.gridView\n int r1 = r1.getMeasuredWidth()\n if (r1 != 0) goto L_0x0012\n android.graphics.Point r1 = org.telegram.messenger.AndroidUtilities.displaySize\n int r1 = r1.x\n L_0x0012:\n r2 = 1116733440(0x42900000, float:72.0)\n int r2 = org.telegram.messenger.AndroidUtilities.dp(r2)\n int r1 = r1 / r2\n r0.stickersPerRow = r1\n org.telegram.ui.Components.StickerMasksAlert r1 = org.telegram.ui.Components.StickerMasksAlert.this\n androidx.recyclerview.widget.GridLayoutManager r1 = r1.stickersLayoutManager\n int r2 = r0.stickersPerRow\n r1.setSpanCount(r2)\n android.util.SparseArray<java.lang.Object> r1 = r0.rowStartPack\n r1.clear()\n java.util.HashMap<java.lang.Object, java.lang.Integer> r1 = r0.packStartPosition\n r1.clear()\n android.util.SparseIntArray r1 = r0.positionToRow\n r1.clear()\n android.util.SparseArray<java.lang.Object> r1 = r0.cache\n r1.clear()\n r1 = 0\n r0.totalItems = r1\n org.telegram.ui.Components.StickerMasksAlert r2 = org.telegram.ui.Components.StickerMasksAlert.this\n java.util.ArrayList[] r2 = r2.stickerSets\n org.telegram.ui.Components.StickerMasksAlert r3 = org.telegram.ui.Components.StickerMasksAlert.this\n int r3 = r3.currentType\n r2 = r2[r3]\n r3 = -3\n r4 = -3\n r5 = 0\n L_0x004e:\n int r6 = r2.size()\n if (r4 >= r6) goto L_0x0160\n if (r4 != r3) goto L_0x0067\n android.util.SparseArray<java.lang.Object> r6 = r0.cache\n int r7 = r0.totalItems\n int r8 = r7 + 1\n r0.totalItems = r8\n java.lang.String r8 = \"search\"\n r6.put(r7, r8)\n int r5 = r5 + 1\n goto L_0x015a\n L_0x0067:\n r6 = -2\n java.lang.String r7 = \"fav\"\n java.lang.String r8 = \"recent\"\n r9 = -1\n r10 = 0\n if (r4 != r6) goto L_0x008e\n org.telegram.ui.Components.StickerMasksAlert r6 = org.telegram.ui.Components.StickerMasksAlert.this\n int r6 = r6.currentType\n if (r6 != 0) goto L_0x008b\n org.telegram.ui.Components.StickerMasksAlert r6 = org.telegram.ui.Components.StickerMasksAlert.this\n java.util.ArrayList r6 = r6.favouriteStickers\n java.util.HashMap<java.lang.Object, java.lang.Integer> r11 = r0.packStartPosition\n int r12 = r0.totalItems\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12)\n r11.put(r7, r12)\n r11 = r7\n goto L_0x00aa\n L_0x008b:\n r6 = r10\n r11 = r6\n goto L_0x00c8\n L_0x008e:\n if (r4 != r9) goto L_0x00b0\n org.telegram.ui.Components.StickerMasksAlert r6 = org.telegram.ui.Components.StickerMasksAlert.this\n java.util.ArrayList[] r6 = r6.recentStickers\n org.telegram.ui.Components.StickerMasksAlert r11 = org.telegram.ui.Components.StickerMasksAlert.this\n int r11 = r11.currentType\n r6 = r6[r11]\n java.util.HashMap<java.lang.Object, java.lang.Integer> r11 = r0.packStartPosition\n int r12 = r0.totalItems\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12)\n r11.put(r8, r12)\n r11 = r8\n L_0x00aa:\n r16 = r10\n r10 = r6\n r6 = r16\n goto L_0x00c8\n L_0x00b0:\n java.lang.Object r6 = r2.get(r4)\n org.telegram.tgnet.TLRPC$TL_messages_stickerSet r6 = (org.telegram.tgnet.TLRPC$TL_messages_stickerSet) r6\n java.util.ArrayList<org.telegram.tgnet.TLRPC$Document> r11 = r6.documents\n java.util.HashMap<java.lang.Object, java.lang.Integer> r12 = r0.packStartPosition\n int r13 = r0.totalItems\n java.lang.Integer r13 = java.lang.Integer.valueOf(r13)\n r12.put(r6, r13)\n r16 = r11\n r11 = r10\n r10 = r16\n L_0x00c8:\n if (r10 == 0) goto L_0x015a\n boolean r12 = r10.isEmpty()\n if (r12 == 0) goto L_0x00d2\n goto L_0x015a\n L_0x00d2:\n int r12 = r10.size()\n float r12 = (float) r12\n int r13 = r0.stickersPerRow\n float r13 = (float) r13\n float r12 = r12 / r13\n double r12 = (double) r12\n double r12 = java.lang.Math.ceil(r12)\n int r12 = (int) r12\n if (r6 == 0) goto L_0x00eb\n android.util.SparseArray<java.lang.Object> r13 = r0.cache\n int r14 = r0.totalItems\n r13.put(r14, r6)\n goto L_0x00f2\n L_0x00eb:\n android.util.SparseArray<java.lang.Object> r13 = r0.cache\n int r14 = r0.totalItems\n r13.put(r14, r10)\n L_0x00f2:\n android.util.SparseIntArray r13 = r0.positionToRow\n int r14 = r0.totalItems\n r13.put(r14, r5)\n r13 = 0\n L_0x00fa:\n int r14 = r10.size()\n if (r13 >= r14) goto L_0x012e\n int r14 = r13 + 1\n int r15 = r0.totalItems\n int r15 = r15 + r14\n android.util.SparseArray<java.lang.Object> r1 = r0.cache\n java.lang.Object r3 = r10.get(r13)\n r1.put(r15, r3)\n if (r6 == 0) goto L_0x0116\n android.util.SparseArray<java.lang.Object> r1 = r0.cacheParents\n r1.put(r15, r6)\n goto L_0x011b\n L_0x0116:\n android.util.SparseArray<java.lang.Object> r1 = r0.cacheParents\n r1.put(r15, r11)\n L_0x011b:\n android.util.SparseIntArray r1 = r0.positionToRow\n int r3 = r0.totalItems\n int r3 = r3 + r14\n int r15 = r5 + 1\n int r9 = r0.stickersPerRow\n int r13 = r13 / r9\n int r15 = r15 + r13\n r1.put(r3, r15)\n r13 = r14\n r1 = 0\n r3 = -3\n r9 = -1\n goto L_0x00fa\n L_0x012e:\n r1 = 0\n L_0x012f:\n int r3 = r12 + 1\n if (r1 >= r3) goto L_0x014e\n if (r6 == 0) goto L_0x013e\n android.util.SparseArray<java.lang.Object> r3 = r0.rowStartPack\n int r9 = r5 + r1\n r3.put(r9, r6)\n r10 = -1\n goto L_0x014b\n L_0x013e:\n android.util.SparseArray<java.lang.Object> r3 = r0.rowStartPack\n int r9 = r5 + r1\n r10 = -1\n if (r4 != r10) goto L_0x0147\n r11 = r8\n goto L_0x0148\n L_0x0147:\n r11 = r7\n L_0x0148:\n r3.put(r9, r11)\n L_0x014b:\n int r1 = r1 + 1\n goto L_0x012f\n L_0x014e:\n int r1 = r0.totalItems\n int r6 = r0.stickersPerRow\n int r12 = r12 * r6\n int r12 = r12 + 1\n int r1 = r1 + r12\n r0.totalItems = r1\n int r5 = r5 + r3\n L_0x015a:\n int r4 = r4 + 1\n r1 = 0\n r3 = -3\n goto L_0x004e\n L_0x0160:\n super.notifyDataSetChanged()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.Components.StickerMasksAlert.StickersGridAdapter.notifyDataSetChanged():void\");\n }",
"private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }",
"private static int zzd(android.content.Context r8, java.lang.String r9, boolean r10) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n if (r10 == 0) goto L_0x000d\n java.lang.String r10 = \"api_force_staging\"\n goto L_0x000f\n L_0x0006:\n r8 = move-exception\n goto L_0x00ad\n L_0x0009:\n r8 = move-exception\n r9 = r0\n goto L_0x009e\n L_0x000d:\n java.lang.String r10 = \"api\"\n L_0x000f:\n java.lang.String r1 = \"content://com.google.android.gms.chimera/\"\n java.lang.String r1 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r2 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + 1\n java.lang.String r3 = java.lang.String.valueOf(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.String r3 = java.lang.String.valueOf(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.<init>(r2) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r10 = \"/\"\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r9 = r3.toString() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.net.Uri r2 = android.net.Uri.parse(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.content.ContentResolver r1 = r8.getContentResolver() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n android.database.Cursor r8 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n if (r8 == 0) goto L_0x0096\n boolean r9 = r8.moveToFirst() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 == 0) goto L_0x0096\n r9 = 0\n int r9 = r8.getInt(r9) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 <= 0) goto L_0x0087\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r10 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r10) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r1 = 2\n java.lang.String r1 = r8.getString(r1) // Catch:{ all -> 0x0084 }\n zzaSI = r1 // Catch:{ all -> 0x0084 }\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.Object r10 = r10.get() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n com.google.android.gms.dynamite.DynamiteModule$zza r10 = (com.google.android.gms.dynamite.DynamiteModule.zza) r10 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r10 == 0) goto L_0x0087\n android.database.Cursor r1 = r10.zzaSR // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r1 != 0) goto L_0x0087\n r10.zzaSR = r8 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r8 = r0\n goto L_0x0087\n L_0x0084:\n r9 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x0087:\n if (r8 == 0) goto L_0x008c\n r8.close()\n L_0x008c:\n return r9\n L_0x008d:\n r9 = move-exception\n r0 = r8\n r8 = r9\n goto L_0x00ad\n L_0x0091:\n r9 = move-exception\n r7 = r9\n r9 = r8\n r8 = r7\n goto L_0x009e\n L_0x0096:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.String r10 = \"Failed to connect to dynamite module ContentResolver.\"\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r0) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x009e:\n boolean r10 = r8 instanceof com.google.android.gms.dynamite.DynamiteModule.zzc // Catch:{ all -> 0x00ab }\n if (r10 == 0) goto L_0x00a3\n throw r8 // Catch:{ all -> 0x00ab }\n L_0x00a3:\n com.google.android.gms.dynamite.DynamiteModule$zzc r10 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00ab }\n java.lang.String r1 = \"V2 version check failed\"\n r10.<init>(r1, r8, r0) // Catch:{ all -> 0x00ab }\n throw r10 // Catch:{ all -> 0x00ab }\n L_0x00ab:\n r8 = move-exception\n r0 = r9\n L_0x00ad:\n if (r0 == 0) goto L_0x00b2\n r0.close()\n L_0x00b2:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzd(android.content.Context, java.lang.String, boolean):int\");\n }",
"public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }",
"private void zzbJ(int r6) {\n /*\n r5 = this;\n r0 = 8;\n if (r6 != r0) goto L_0x0035;\n L_0x0004:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n if (r0 == 0) goto L_0x0030;\n L_0x000b:\n r2 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n r5.mArray = r2;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n mTwiceBaseCache = r0;\t Catch:{ all -> 0x0067 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0067 }\n r2[r0] = r4;\t Catch:{ all -> 0x0067 }\n r0 = mTwiceBaseCacheSize;\t Catch:{ all -> 0x0067 }\n r0 = r0 + -1;\n mTwiceBaseCacheSize = r0;\t Catch:{ all -> 0x0067 }\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n L_0x002f:\n return;\n L_0x0030:\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n r0 = com.google.android.gms.internal.zzkq.a;\t Catch:{ ClassCastException -> 0x006a }\n if (r0 == 0) goto L_0x006d;\n L_0x0035:\n r0 = 4;\n if (r6 != r0) goto L_0x006d;\n L_0x0038:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mBaseCache;\t Catch:{ all -> 0x0064 }\n if (r0 == 0) goto L_0x006c;\n L_0x003f:\n r2 = mBaseCache;\t Catch:{ all -> 0x0064 }\n r5.mArray = r2;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n mBaseCache = r0;\t Catch:{ all -> 0x0064 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0064 }\n r2[r0] = r4;\t Catch:{ all -> 0x0064 }\n r0 = mBaseCacheSize;\t Catch:{ all -> 0x0064 }\n r0 = r0 + -1;\n mBaseCacheSize = r0;\t Catch:{ all -> 0x0064 }\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n goto L_0x002f;\n L_0x0064:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n throw r0;\n L_0x0067:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n throw r0;\n L_0x006a:\n r0 = move-exception;\n throw r0;\n L_0x006c:\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n L_0x006d:\n r0 = new int[r6];\n r5.mHashes = r0;\n r0 = r6 << 1;\n r0 = new java.lang.Object[r0];\n r5.mArray = r0;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.zzbJ(int):void\");\n }",
"public final void run() {\n /*\n r6 = this;\n r1 = r6.zzapo;\n monitor-enter(r1);\n r0 = r6.zzapn;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzaph;\t Catch:{ RemoteException -> 0x006b }\n if (r0 != 0) goto L_0x0035;\n L_0x000b:\n r0 = r6.zzapn;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzgf();\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzis();\t Catch:{ RemoteException -> 0x006b }\n r2 = \"Failed to get conditional properties\";\n r3 = r6.zzant;\t Catch:{ RemoteException -> 0x006b }\n r3 = com.google.android.gms.internal.measurement.zzfh.zzbl(r3);\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzanr;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzans;\t Catch:{ RemoteException -> 0x006b }\n r0.zzd(r2, r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapo;\t Catch:{ RemoteException -> 0x006b }\n r2 = java.util.Collections.emptyList();\t Catch:{ RemoteException -> 0x006b }\n r0.set(r2);\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapo;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n L_0x0034:\n return;\n L_0x0035:\n r2 = r6.zzant;\t Catch:{ RemoteException -> 0x006b }\n r2 = android.text.TextUtils.isEmpty(r2);\t Catch:{ RemoteException -> 0x006b }\n if (r2 == 0) goto L_0x005b;\n L_0x003d:\n r2 = r6.zzapo;\t Catch:{ RemoteException -> 0x006b }\n r3 = r6.zzanr;\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzans;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzano;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zza(r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006b }\n L_0x004c:\n r0 = r6.zzapn;\t Catch:{ RemoteException -> 0x006b }\n r0.zzcu();\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapo;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n L_0x0056:\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n goto L_0x0034;\n L_0x0058:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n throw r0;\n L_0x005b:\n r2 = r6.zzapo;\t Catch:{ RemoteException -> 0x006b }\n r3 = r6.zzant;\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzanr;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzans;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zze(r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006b }\n goto L_0x004c;\n L_0x006b:\n r0 = move-exception;\n r2 = r6.zzapn;\t Catch:{ all -> 0x0093 }\n r2 = r2.zzgf();\t Catch:{ all -> 0x0093 }\n r2 = r2.zzis();\t Catch:{ all -> 0x0093 }\n r3 = \"Failed to get conditional properties\";\n r4 = r6.zzant;\t Catch:{ all -> 0x0093 }\n r4 = com.google.android.gms.internal.measurement.zzfh.zzbl(r4);\t Catch:{ all -> 0x0093 }\n r5 = r6.zzanr;\t Catch:{ all -> 0x0093 }\n r2.zzd(r3, r4, r5, r0);\t Catch:{ all -> 0x0093 }\n r0 = r6.zzapo;\t Catch:{ all -> 0x0093 }\n r2 = java.util.Collections.emptyList();\t Catch:{ all -> 0x0093 }\n r0.set(r2);\t Catch:{ all -> 0x0093 }\n r0 = r6.zzapo;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n goto L_0x0056;\n L_0x0093:\n r0 = move-exception;\n r2 = r6.zzapo;\t Catch:{ all -> 0x0058 }\n r2.notify();\t Catch:{ all -> 0x0058 }\n throw r0;\t Catch:{ all -> 0x0058 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzit.run():void\");\n }",
"public void run() {\n /*\n // Can't load method instructions: Load method exception: bogus element_width: 30e9 in method: android.widget.ColorListView.1.run():void, dex: in method: android.widget.ColorListView.1.run():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.1.run():void\");\n }",
"@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }",
"public static void m9105b(com.facebook.api.feedcache.db.FeedDbMutationService r5) {\n /*\n L_0x0000:\n r1 = r5.f5242q;\n monitor-enter(r1);\n r0 = r5.f5242q;\t Catch:{ all -> 0x004d }\n r0 = r0.isEmpty();\t Catch:{ all -> 0x004d }\n if (r0 == 0) goto L_0x0010;\n L_0x000b:\n r0 = 0;\n r5.f5240o = r0;\t Catch:{ all -> 0x004d }\n monitor-exit(r1);\t Catch:{ all -> 0x004d }\n return;\n L_0x0010:\n r0 = r5.f5242q;\t Catch:{ all -> 0x004d }\n r0 = r0.removeFirst();\t Catch:{ all -> 0x004d }\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbRequest) r0;\t Catch:{ all -> 0x004d }\n monitor-exit(r1);\t Catch:{ all -> 0x004d }\n r1 = \"FeedDbMutationService(%s)\";\n r2 = r0.getClass();\n r2 = r2.getSimpleName();\n r3 = -341619410; // 0xffffffffeba34d2e float:-3.9483876E26 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r1, r2, r3);\n r1 = -243934633; // 0xfffffffff175da57 float:-1.21740455E30 double:NaN;\n r1 = com.facebook.tools.dextr.runtime.detour.LoomLoggerDetour.a(r1);\n r2 = \"FeedDbMutationService\";\n r3 = r0.getClass();\n r3 = r3.getSimpleName();\n com.facebook.loom.logger.api.LoomLogger.a(r1, r2, r3);\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbInsertionRequest;\t Catch:{ all -> 0x0134 }\n if (r1 == 0) goto L_0x0050;\n L_0x0041:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbInsertionRequest) r0;\t Catch:{ all -> 0x0134 }\n r5.m9111a(r0);\t Catch:{ all -> 0x0134 }\n r0 = 1514815075; // 0x5a4a3e63 float:1.42316351E16 double:7.484180884E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x004d:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ }\n throw r0;\n L_0x0050:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbMutationRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0060;\n L_0x0054:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbMutationRequest) r0;\t Catch:{ }\n r5.m9100a(r0);\t Catch:{ }\n r0 = 32841027; // 0x1f51d43 float:9.0040775E-38 double:1.6225623E-316;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0060:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStorySeenRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0070;\n L_0x0064:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStorySeenRequest) r0;\t Catch:{ }\n r5.m9103a(r0);\t Catch:{ }\n r0 = -150761083; // 0xfffffffff7039185 float:-2.668525E33 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0070:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbImageCacheStateUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0080;\n L_0x0074:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbImageCacheStateUpdateRequest) r0;\t Catch:{ }\n r5.m9097a(r0);\t Catch:{ }\n r0 = -1582673432; // 0xffffffffa1aa51e8 float:-1.1541328E-18 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0080:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbSeeFirstClearRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0091;\n L_0x0084:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbSeeFirstClearRequest) r0;\t Catch:{ }\n r5.m9101a(r0);\t Catch:{ }\n r0 = -1051379810; // 0xffffffffc155379e float:-13.326078 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0091:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheResultRerankRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00a2;\n L_0x0095:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheResultRerankRequest) r0;\t Catch:{ }\n r5.m9094a(r0);\t Catch:{ }\n r0 = -521547659; // 0xffffffffe0e9d075 float:-1.3478476E20 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00a2:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheRerankRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00b3;\n L_0x00a6:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheRerankRequest) r0;\t Catch:{ }\n r5.m9093a(r0);\t Catch:{ }\n r0 = -495910365; // 0xffffffffe2710223 float:-1.1114548E21 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00b3:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStoryImageUrlAddRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00c4;\n L_0x00b7:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStoryImageUrlAddRequest) r0;\t Catch:{ }\n r5.m9102a(r0);\t Catch:{ }\n r0 = 1956524893; // 0x749e335d float:1.0027157E32 double:9.66651735E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00c4:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoriesRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00d5;\n L_0x00c8:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoriesRequest) r0;\t Catch:{ }\n r5.m9095a(r0);\t Catch:{ }\n r0 = 1671584920; // 0x63a25c98 float:5.990089E21 double:8.25872683E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00d5:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoryRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00e6;\n L_0x00d9:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoryRequest) r0;\t Catch:{ }\n r5.m9096a(r0);\t Catch:{ }\n r0 = -696100424; // 0xffffffffd68259b8 float:-7.1660925E13 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00e6:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbVpvOmnistoreSyncRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00f5;\n L_0x00ea:\n r5.m9106c();\t Catch:{ }\n r0 = -1045059660; // 0xffffffffc1b5a7b4 float:-22.706886 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00f5:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLikeAndCommentCountUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0106;\n L_0x00f9:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLikeAndCommentCountUpdateRequest) r0;\t Catch:{ }\n r5.m9098a(r0);\t Catch:{ }\n r0 = 759596755; // 0x2d4686d3 float:1.1284934E-11 double:3.752906613E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0106:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLiveVideoStatusUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0117;\n L_0x010a:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLiveVideoStatusUpdateRequest) r0;\t Catch:{ }\n r5.m9099a(r0);\t Catch:{ }\n r0 = -1270711073; // 0xffffffffb4427cdf float:-1.8113086E-7 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0117:\n r1 = \"FeedDbMutationService\";\n r2 = \"Mutation request is not supported: %s\";\n r3 = 1;\n r3 = new java.lang.Object[r3];\t Catch:{ }\n r4 = 0;\n r0 = r0.getClass();\t Catch:{ }\n r0 = r0.getSimpleName();\t Catch:{ }\n r3[r4] = r0;\t Catch:{ }\n com.facebook.debug.log.BLog.c(r1, r2, r3);\t Catch:{ }\n r0 = 492192568; // 0x1d564338 float:2.8357415E-21 double:2.43175439E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0134:\n r0 = move-exception;\n r1 = -693974918; // 0xffffffffd6a2c87a float:-8.9490962E13 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r1);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.api.feedcache.db.FeedDbMutationService.b(com.facebook.api.feedcache.db.FeedDbMutationService):void\");\n }",
"@java.lang.Deprecated\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static synchronized void m13804a(android.content.Context r3, com.facebook.C6787r.C6788a r4) {\n /*\n java.lang.Class<com.facebook.r> r0 = com.facebook.C6787r.class\n monitor-enter(r0)\n java.lang.Boolean r1 = f12487s // Catch:{ all -> 0x0088 }\n boolean r1 = r1.booleanValue() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0012\n if (r4 == 0) goto L_0x0010\n r4.mo20141a() // Catch:{ all -> 0x0088 }\n L_0x0010:\n monitor-exit(r0)\n return\n L_0x0012:\n java.lang.String r1 = \"applicationContext\"\n com.facebook.internal.C6697T.m13461a(r3, r1) // Catch:{ all -> 0x0088 }\n r1 = 0\n com.facebook.internal.C6697T.m13460a(r3, r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6697T.m13466b(r3, r1) // Catch:{ all -> 0x0088 }\n android.content.Context r1 = r3.getApplicationContext() // Catch:{ all -> 0x0088 }\n f12481m = r1 // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n m13810b(r1) // Catch:{ all -> 0x0088 }\n java.lang.String r1 = f12472d // Catch:{ all -> 0x0088 }\n boolean r1 = com.facebook.internal.C6694S.m13436b(r1) // Catch:{ all -> 0x0088 }\n if (r1 != 0) goto L_0x0080\n r1 = 1\n java.lang.Boolean r1 = java.lang.Boolean.valueOf(r1) // Catch:{ all -> 0x0088 }\n f12487s = r1 // Catch:{ all -> 0x0088 }\n boolean r1 = m13817g() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0041\n m13812c() // Catch:{ all -> 0x0088 }\n L_0x0041:\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n boolean r1 = r1 instanceof android.app.Application // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n boolean r1 = com.facebook.C6557O.m12974e() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n android.app.Application r1 = (android.app.Application) r1 // Catch:{ all -> 0x0088 }\n java.lang.String r2 = f12472d // Catch:{ all -> 0x0088 }\n com.facebook.p127a.p130b.C6602h.m13083a(r1, r2) // Catch:{ all -> 0x0088 }\n L_0x0056:\n com.facebook.internal.C6670D.m13313f() // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6678J.m13355d() // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6712c.m13522a(r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.G r1 = new com.facebook.internal.G // Catch:{ all -> 0x0088 }\n com.facebook.o r2 = new com.facebook.o // Catch:{ all -> 0x0088 }\n r2.<init>() // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n f12480l = r1 // Catch:{ all -> 0x0088 }\n java.util.concurrent.FutureTask r1 = new java.util.concurrent.FutureTask // Catch:{ all -> 0x0088 }\n com.facebook.p r2 = new com.facebook.p // Catch:{ all -> 0x0088 }\n r2.<init>(r4, r3) // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n java.util.concurrent.Executor r2 = m13822l() // Catch:{ all -> 0x0088 }\n r2.execute(r1) // Catch:{ all -> 0x0088 }\n monitor-exit(r0)\n return\n L_0x0080:\n com.facebook.FacebookException r1 = new com.facebook.FacebookException // Catch:{ all -> 0x0088 }\n java.lang.String r2 = \"A valid Facebook app id must be set in the AndroidManifest.xml or set by calling FacebookSdk.setApplicationId before initializing the sdk.\"\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n throw r1 // Catch:{ all -> 0x0088 }\n L_0x0088:\n r3 = move-exception\n monitor-exit(r0)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.C6787r.m13804a(android.content.Context, com.facebook.r$a):void\");\n }",
"private void m51190e(View view) {\n int i;\n boolean z = true;\n if (view instanceof RecyclerView) {\n RecyclerView recyclerView = (RecyclerView) view;\n C1638g adapter = recyclerView.getAdapter();\n if (adapter != null && adapter.mo7325b() != this.f31668w) {\n this.f31667v = false;\n this.f31668w = adapter.mo7325b();\n C1651o layoutManager = recyclerView.getLayoutManager();\n if (layoutManager != null) {\n if (layoutManager instanceof LinearLayoutManager) {\n i = Math.abs(((LinearLayoutManager) layoutManager).mo6960O());\n } else if (layoutManager instanceof StaggeredGridLayoutManager) {\n StaggeredGridLayoutManager staggeredGridLayoutManager = (StaggeredGridLayoutManager) layoutManager;\n int[] c = staggeredGridLayoutManager.mo7604c(new int[staggeredGridLayoutManager.mo7594T()]);\n i = Math.abs(c[c.length - 1]);\n } else {\n i = 0;\n }\n if (i >= this.f31668w - 1) {\n z = false;\n }\n this.f31667v = z;\n return;\n }\n return;\n }\n return;\n }\n this.f31667v = true;\n }",
"@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }",
"public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }",
"public final android.view.ViewGroup b(@android.support.annotation.NonNull android.view.ViewGroup r21, com.inmobi.ads.am r22) {\n /*\n r20 = this;\n r7 = r20;\n r8 = r21;\n r1 = r22;\n r7.a(r1, r8);\n r9 = r22.iterator();\n L_0x000d:\n r1 = r9.hasNext();\n if (r1 == 0) goto L_0x034a;\n L_0x0013:\n r1 = r9.next();\n r10 = r1;\n r10 = (com.inmobi.ads.ak) r10;\n r1 = \"CONTAINER\";\n r2 = r10.b;\n if (r1 != r2) goto L_0x008f;\n L_0x0020:\n r1 = r10.d;\n r2 = \"card_scrollable\";\n r1 = r1.equalsIgnoreCase(r2);\n if (r1 == 0) goto L_0x0069;\n L_0x002a:\n r1 = r7.d;\n r2 = r20.a();\n r3 = r7.i;\n r1 = r1.a(r2, r10, r3);\n r11 = r1;\n r11 = (com.inmobi.ads.NativeScrollableContainer) r11;\n if (r11 == 0) goto L_0x000d;\n L_0x003b:\n r1 = r11.getType();\n r2 = r7.g;\n r1 = com.inmobi.ads.ay.a(r1, r2, r7);\n r7.m = r1;\n r1 = r7.m;\n if (r1 == 0) goto L_0x000d;\n L_0x004b:\n r2 = r10;\n r2 = (com.inmobi.ads.am) r2;\n r3 = r7.m;\n r4 = r7.b;\n r5 = r20.d();\n r1 = r11;\n r6 = r7;\n r1.a(r2, r3, r4, r5, r6);\n r1 = com.inmobi.ads.NativeViewFactory.a(r10, r8);\n r11.setLayoutParams(r1);\n r7.a(r11, r10);\n r8.addView(r11);\n goto L_0x000d;\n L_0x0069:\n r1 = r7.d;\n r2 = r20.a();\n r3 = r7.i;\n r1 = r1.a(r2, r10, r3);\n r1 = (android.view.ViewGroup) r1;\n if (r1 == 0) goto L_0x000d;\n L_0x0079:\n r2 = r10;\n r2 = (com.inmobi.ads.am) r2;\n r1 = r7.b(r1, r2);\n r2 = com.inmobi.ads.NativeViewFactory.a(r10, r8);\n r1.setLayoutParams(r2);\n r7.a(r1, r10);\n r8.addView(r1);\n goto L_0x000d;\n L_0x008f:\n r1 = \"WEBVIEW\";\n r2 = r10.b;\n r1 = r1.equals(r2);\n r2 = 0;\n if (r1 == 0) goto L_0x00c5;\n L_0x009a:\n r1 = r10;\n r1 = (com.inmobi.ads.bf) r1;\n r3 = r1.A;\n if (r3 == 0) goto L_0x00b9;\n L_0x00a1:\n r3 = r7.p;\n if (r3 == 0) goto L_0x00b9;\n L_0x00a5:\n r1 = r7.p;\n r3 = r1.getParent();\n if (r3 == 0) goto L_0x00b6;\n L_0x00ad:\n r3 = r1.getParent();\n r3 = (android.view.ViewGroup) r3;\n r3.removeView(r1);\n L_0x00b6:\n r7.p = r2;\n goto L_0x00d4;\n L_0x00b9:\n r3 = \"UNKNOWN\";\n r1 = r1.z;\n r1 = r3.equals(r1);\n if (r1 == 0) goto L_0x00d3;\n L_0x00c3:\n goto L_0x000d;\n L_0x00c5:\n r1 = \"IMAGE\";\n r3 = r10.b;\n r1 = r1.equals(r3);\n if (r1 == 0) goto L_0x00d3;\n L_0x00cf:\n r1 = r10.e;\n if (r1 == 0) goto L_0x000d;\n L_0x00d3:\n r1 = r2;\n L_0x00d4:\n if (r1 != 0) goto L_0x00e2;\n L_0x00d6:\n r1 = r7.d;\n r2 = r20.a();\n r3 = r7.i;\n r1 = r1.a(r2, r10, r3);\n L_0x00e2:\n if (r1 == 0) goto L_0x0342;\n L_0x00e4:\n r2 = new java.lang.ref.WeakReference;\n r2.<init>(r1);\n r3 = r10.o;\n r4 = -1;\n if (r3 == r4) goto L_0x0102;\n L_0x00ee:\n r3 = 4;\n r1.setVisibility(r3);\n r3 = n;\n r5 = new com.inmobi.ads.au$4;\n r5.<init>(r2);\n r2 = r10.o;\n r2 = r2 * 1000;\n r11 = (long) r2;\n r3.postDelayed(r5, r11);\n goto L_0x0115;\n L_0x0102:\n r3 = r10.p;\n if (r3 == r4) goto L_0x0115;\n L_0x0106:\n r3 = n;\n r5 = new com.inmobi.ads.au$5;\n r5.<init>(r2);\n r2 = r10.p;\n r2 = r2 * 1000;\n r11 = (long) r2;\n r3.postDelayed(r5, r11);\n L_0x0115:\n r2 = com.inmobi.ads.NativeViewFactory.a(r10, r8);\n r1.setLayoutParams(r2);\n r7.a(r1, r10);\n r8.addView(r1);\n r2 = android.os.Build.VERSION.SDK_INT;\n r3 = 15;\n if (r2 < r3) goto L_0x020f;\n L_0x0128:\n r2 = \"VIDEO\";\n r5 = r10.b;\n if (r2 != r5) goto L_0x020f;\n L_0x012e:\n r2 = r10;\n r2 = (com.inmobi.ads.be) r2;\n r5 = r1;\n r5 = (com.inmobi.ads.NativeVideoWrapper) r5;\n r5 = r5.getVideoView();\n r6 = android.os.Build.VERSION.SDK_INT;\n if (r6 < r3) goto L_0x020f;\n L_0x013c:\n r6 = r2.t;\n r6 = (com.inmobi.ads.am) r6;\n r11 = java.lang.System.currentTimeMillis();\n if (r6 == 0) goto L_0x0150;\n L_0x0146:\n r13 = 0;\n r3 = r6.z;\n r16 = (r13 > r3 ? 1 : (r13 == r3 ? 0 : -1));\n if (r16 == 0) goto L_0x0150;\n L_0x014e:\n r11 = r6.z;\n L_0x0150:\n if (r6 == 0) goto L_0x0154;\n L_0x0152:\n r6.z = r11;\n L_0x0154:\n r3 = 0;\n r5.setClickable(r3);\n r4 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r5.setId(r4);\n r5.e = r3;\n r5.f = r3;\n r3 = r2.e;\n r3 = (com.inmobi.ads.by) r3;\n r3 = r3.b();\n r3 = android.net.Uri.parse(r3);\n r5.a = r3;\n r3 = r2.v;\n r4 = \"placementType\";\n r3 = r3.get(r4);\n r3 = (com.inmobi.ads.AdContainer.RenderingProperties.PlacementType) r3;\n r4 = com.inmobi.ads.AdContainer.RenderingProperties.PlacementType.PLACEMENT_TYPE_FULLSCREEN;\n if (r4 != r3) goto L_0x0184;\n L_0x017e:\n r3 = new com.inmobi.ads.av;\n r3.<init>();\n goto L_0x0188;\n L_0x0184:\n r3 = com.inmobi.ads.av.a();\n L_0x0188:\n r5.c = r3;\n r3 = r5.d;\n if (r3 == 0) goto L_0x0196;\n L_0x018e:\n r3 = r5.c;\n r4 = r5.d;\n r3.setAudioSessionId(r4);\n goto L_0x019e;\n L_0x0196:\n r3 = r5.c;\n r3 = r3.getAudioSessionId();\n r5.d = r3;\n L_0x019e:\n r3 = r5.c;\t Catch:{ IOException -> 0x01c9 }\n r4 = r5.getContext();\t Catch:{ IOException -> 0x01c9 }\n r4 = r4.getApplicationContext();\t Catch:{ IOException -> 0x01c9 }\n r6 = r5.a;\t Catch:{ IOException -> 0x01c9 }\n r11 = r5.b;\t Catch:{ IOException -> 0x01c9 }\n r3.setDataSource(r4, r6, r11);\t Catch:{ IOException -> 0x01c9 }\n r5.setTag(r2);\n r3 = new com.inmobi.ads.NativeVideoView$d;\n r3.<init>(r5);\n r5.g = r3;\n r3 = r5.l;\n r5.setSurfaceTextureListener(r3);\n r3 = 1;\n r5.setFocusable(r3);\n r5.setFocusableInTouchMode(r3);\n r5.requestFocus();\n goto L_0x01d2;\n L_0x01c9:\n r3 = r5.c;\n r4 = -1;\n r3.a = r4;\n r3 = r5.c;\n r3.b = r4;\n L_0x01d2:\n r3 = r2.y;\n if (r3 == 0) goto L_0x01dd;\n L_0x01d6:\n r3 = r2.y;\n r3 = (com.inmobi.ads.be) r3;\n r2.a(r3);\n L_0x01dd:\n r3 = new com.inmobi.ads.au$7;\n r3.<init>(r2);\n r5.setQuartileCompletedListener(r3);\n r3 = new com.inmobi.ads.au$8;\n r3.<init>(r2);\n r5.setPlaybackEventListener(r3);\n r3 = new com.inmobi.ads.au$9;\n r3.<init>(r2);\n r5.setMediaErrorListener(r3);\n r2 = r7.a;\n if (r2 == 0) goto L_0x020f;\n L_0x01f9:\n r2 = r7.a;\t Catch:{ Exception -> 0x01ff }\n r2.a(r5);\t Catch:{ Exception -> 0x01ff }\n goto L_0x020f;\n L_0x01ff:\n r0 = move-exception;\n r2 = r0;\n r3 = new java.lang.StringBuilder;\n r4 = \"SDK encountered unexpected error in handling the onVideoViewCreated event; \";\n r3.<init>(r4);\n r2 = r2.getMessage();\n r3.append(r2);\n L_0x020f:\n r7.a(r10, r1);\n r2 = \"TIMER\";\n r3 = r10.b;\n if (r2 != r3) goto L_0x022b;\n L_0x0218:\n r2 = \"timerView\";\n r1.setTag(r2);\n r2 = r10;\n r2 = (com.inmobi.ads.bb) r2;\n r3 = r1;\n r3 = (com.inmobi.ads.NativeTimerView) r3;\n r4 = new com.inmobi.ads.au$2;\n r4.<init>(r2);\n r3.setTimerEventsListener(r4);\n L_0x022b:\n r2 = android.os.Build.VERSION.SDK_INT;\n r3 = 15;\n if (r2 < r3) goto L_0x02ec;\n L_0x0231:\n r2 = \"VIDEO\";\n r3 = r10.b;\n if (r2 != r3) goto L_0x02ec;\n L_0x0237:\n r2 = r1;\n r2 = (com.inmobi.ads.NativeVideoWrapper) r2;\n r3 = r7.a;\n r2.setVideoEventListener(r3);\n r3 = r2.a;\n r3 = r3.getTag();\n r3 = (com.inmobi.ads.be) r3;\n if (r3 == 0) goto L_0x02ec;\n L_0x0249:\n r4 = r3.b();\t Catch:{ Exception -> 0x02ca }\n r4 = r4.b();\t Catch:{ Exception -> 0x02ca }\n r5 = new android.media.MediaMetadataRetriever;\t Catch:{ Exception -> 0x02ca }\n r5.<init>();\t Catch:{ Exception -> 0x02ca }\n r5.setDataSource(r4);\t Catch:{ Exception -> 0x02ca }\n r4 = 18;\n r4 = r5.extractMetadata(r4);\t Catch:{ Exception -> 0x02ca }\n r4 = java.lang.Integer.valueOf(r4);\t Catch:{ Exception -> 0x02ca }\n r4 = r4.intValue();\t Catch:{ Exception -> 0x02ca }\n r6 = 19;\n r6 = r5.extractMetadata(r6);\t Catch:{ Exception -> 0x02ca }\n r6 = java.lang.Integer.valueOf(r6);\t Catch:{ Exception -> 0x02ca }\n r6 = r6.intValue();\t Catch:{ Exception -> 0x02ca }\n r5.release();\t Catch:{ Exception -> 0x02ca }\n r3 = r3.c;\t Catch:{ Exception -> 0x02ca }\n r3 = r3.a;\t Catch:{ Exception -> 0x02ca }\n r5 = r3.x;\t Catch:{ Exception -> 0x02ca }\n r5 = com.inmobi.ads.NativeViewFactory.c(r5);\t Catch:{ Exception -> 0x02ca }\n r11 = (double) r5;\t Catch:{ Exception -> 0x02ca }\n r5 = r3.y;\t Catch:{ Exception -> 0x02ca }\n r5 = com.inmobi.ads.NativeViewFactory.c(r5);\t Catch:{ Exception -> 0x02ca }\n r13 = (double) r5;\t Catch:{ Exception -> 0x02ca }\n r11 = r11 / r13;\n r4 = (double) r4;\t Catch:{ Exception -> 0x02ca }\n r13 = (double) r6;\t Catch:{ Exception -> 0x02ca }\n r15 = r4 / r13;\n r6 = (r11 > r15 ? 1 : (r11 == r15 ? 0 : -1));\n r11 = 4607182418800017408; // 0x3ff0000000000000 float:0.0 double:1.0;\n if (r6 <= 0) goto L_0x02a9;\n L_0x0295:\n r6 = r3.y;\t Catch:{ Exception -> 0x02ca }\n r6 = com.inmobi.ads.NativeViewFactory.c(r6);\t Catch:{ Exception -> 0x02ca }\n r17 = r9;\n r8 = (double) r6;\n r8 = r8 * r11;\n r8 = r8 / r13;\n r4 = r4 * r8;\n r3 = r3.y;\t Catch:{ Exception -> 0x02c8 }\n r3 = com.inmobi.ads.NativeViewFactory.c(r3);\t Catch:{ Exception -> 0x02c8 }\n r8 = (double) r3;\t Catch:{ Exception -> 0x02c8 }\n goto L_0x02c0;\n L_0x02a9:\n r17 = r9;\n r6 = r3.x;\t Catch:{ Exception -> 0x02c8 }\n r6 = com.inmobi.ads.NativeViewFactory.c(r6);\t Catch:{ Exception -> 0x02c8 }\n r8 = (double) r6;\t Catch:{ Exception -> 0x02c8 }\n r3 = r3.x;\t Catch:{ Exception -> 0x02c8 }\n r3 = com.inmobi.ads.NativeViewFactory.c(r3);\t Catch:{ Exception -> 0x02c8 }\n r18 = r8;\n r8 = (double) r3;\t Catch:{ Exception -> 0x02c8 }\n r8 = r8 * r11;\n r8 = r8 / r4;\n r8 = r8 * r13;\n r4 = r18;\n L_0x02c0:\n r3 = new android.widget.RelativeLayout$LayoutParams;\t Catch:{ Exception -> 0x02c8 }\n r4 = (int) r4;\t Catch:{ Exception -> 0x02c8 }\n r5 = (int) r8;\t Catch:{ Exception -> 0x02c8 }\n r3.<init>(r4, r5);\t Catch:{ Exception -> 0x02c8 }\n goto L_0x02e1;\n L_0x02c8:\n r0 = move-exception;\n goto L_0x02cd;\n L_0x02ca:\n r0 = move-exception;\n r17 = r9;\n L_0x02cd:\n r3 = r0;\n r4 = new android.widget.RelativeLayout$LayoutParams;\n r5 = -1;\n r4.<init>(r5, r5);\n r5 = com.inmobi.commons.core.a.a.a();\n r6 = new com.inmobi.commons.core.e.a;\n r6.<init>(r3);\n r5.a(r6);\n r3 = r4;\n L_0x02e1:\n r4 = 13;\n r3.addRule(r4);\n r2 = r2.a;\n r2.setLayoutParams(r3);\n goto L_0x02ee;\n L_0x02ec:\n r17 = r9;\n L_0x02ee:\n r2 = \"WEBVIEW\";\n r3 = r10.b;\n if (r2 != r3) goto L_0x0344;\n L_0x02f4:\n r2 = r1 instanceof com.inmobi.rendering.RenderView;\n if (r2 == 0) goto L_0x0344;\n L_0x02f8:\n r1 = (com.inmobi.rendering.RenderView) r1;\n r10 = (com.inmobi.ads.bf) r10;\n r2 = r10.B;\n r1.setScrollable(r2);\n r2 = r7.h;\n r2 = r2.n;\n r1.setReferenceContainer(r2);\n r2 = r7.h;\n r2 = r2.u();\n r1.setRenderViewEventListener(r2);\n r2 = r7.h;\n r2 = r2.e;\n r1.setPlacementId(r2);\n r2 = r7.h;\n r2 = r2.g;\n r1.setAllowAutoRedirection(r2);\n r2 = r7.h;\n r2 = r2.f;\n r1.setCreativeId(r2);\n r2 = r7.h;\n r2 = r2.d;\n r1.setImpressionId(r2);\n r2 = r10.A;\n if (r2 != 0) goto L_0x0344;\n L_0x0331:\n r2 = r7.h;\n r3 = r2.y;\n if (r3 != 0) goto L_0x0344;\n L_0x0337:\n r3 = r2.x;\n if (r3 != 0) goto L_0x0344;\n L_0x033b:\n r3 = r2.w;\n if (r3 != 0) goto L_0x0344;\n L_0x033f:\n r2.x = r1;\n goto L_0x0344;\n L_0x0342:\n r17 = r9;\n L_0x0344:\n r9 = r17;\n r8 = r21;\n goto L_0x000d;\n L_0x034a:\n r1 = r8;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.inmobi.ads.au.b(android.view.ViewGroup, com.inmobi.ads.am):android.view.ViewGroup\");\n }",
"public final void run() {\n int i;\n int i2;\n int i3;\n boolean z;\n boolean z2;\n int i4;\n int A032 = AnonymousClass0Z0.A03(-365608472);\n RecyclerView recyclerView = this.A06;\n if (recyclerView.A0L == null) {\n recyclerView.removeCallbacks(this);\n this.A03.abortAnimation();\n i = 185966960;\n } else {\n this.A05 = false;\n this.A04 = true;\n recyclerView.A0S();\n OverScroller overScroller = this.A03;\n if (overScroller.computeScrollOffset()) {\n int currX = overScroller.getCurrX();\n int currY = overScroller.getCurrY();\n int i5 = currX - this.A00;\n int i6 = currY - this.A01;\n this.A00 = currX;\n this.A01 = currY;\n RecyclerView recyclerView2 = this.A06;\n int[] iArr = recyclerView2.A0s;\n iArr[0] = 0;\n iArr[1] = 0;\n if (recyclerView2.A16(i5, i6, iArr)) {\n int[] iArr2 = this.A06.A0s;\n i5 -= iArr2[0];\n i6 -= iArr2[1];\n }\n if (this.A06.getOverScrollMode() != 2) {\n this.A06.A0i(i5, i6);\n }\n RecyclerView recyclerView3 = this.A06;\n if (recyclerView3.A0J != null) {\n int[] iArr3 = recyclerView3.A0s;\n iArr3[0] = 0;\n iArr3[1] = 0;\n recyclerView3.A0p(i5, i6, iArr3);\n RecyclerView recyclerView4 = this.A06;\n int[] iArr4 = recyclerView4.A0s;\n i2 = iArr4[0];\n i3 = iArr4[1];\n i5 -= i2;\n i6 -= i3;\n C44661wY r8 = recyclerView4.A0L.A09;\n if (r8 != null && !r8.A04 && r8.A05) {\n int A002 = recyclerView4.A0y.A00();\n if (A002 == 0) {\n r8.A01();\n } else if (r8.A00 >= A002) {\n r8.A00 = A002 - 1;\n r8.A03(i2, i3);\n } else {\n r8.A03(i2, i3);\n }\n }\n } else {\n i2 = 0;\n i3 = 0;\n }\n if (!this.A06.A11.isEmpty()) {\n this.A06.invalidate();\n }\n RecyclerView recyclerView5 = this.A06;\n int[] iArr5 = recyclerView5.A0s;\n iArr5[0] = 0;\n iArr5[1] = 0;\n recyclerView5.A0m(i2, i3, i5, i6, iArr5);\n RecyclerView recyclerView6 = this.A06;\n int[] iArr6 = recyclerView6.A0s;\n int i7 = i5 - iArr6[0];\n int i8 = i6 - iArr6[1];\n if (!(i2 == 0 && i3 == 0)) {\n recyclerView6.A0k(i2, i3);\n }\n if (!this.A06.awakenScrollBars()) {\n this.A06.invalidate();\n }\n boolean z3 = false;\n if (overScroller.getCurrX() == overScroller.getFinalX()) {\n z3 = true;\n }\n boolean z4 = false;\n if (overScroller.getCurrY() == overScroller.getFinalY()) {\n z4 = true;\n }\n if (overScroller.isFinished() || ((z3 || i7 != 0) && (z4 || i8 != 0))) {\n z = true;\n } else {\n z = false;\n }\n RecyclerView recyclerView7 = this.A06;\n C44661wY r0 = recyclerView7.A0L.A09;\n if (r0 != null) {\n boolean z5 = r0.A04;\n z2 = true;\n }\n z2 = false;\n if (z2 || !z) {\n A00();\n RecyclerView recyclerView8 = this.A06;\n C35471gQ r02 = recyclerView8.mGapWorker;\n if (r02 != null) {\n r02.A01(recyclerView8, i2, i3);\n }\n } else {\n if (recyclerView7.getOverScrollMode() != 2) {\n int currVelocity = (int) overScroller.getCurrVelocity();\n if (i7 < 0) {\n i4 = -currVelocity;\n } else {\n i4 = 0;\n if (i7 > 0) {\n i4 = currVelocity;\n }\n }\n if (i8 < 0) {\n currVelocity = -currVelocity;\n } else if (i8 <= 0) {\n currVelocity = 0;\n }\n RecyclerView recyclerView9 = this.A06;\n if (i4 < 0) {\n recyclerView9.A0X();\n if (recyclerView9.A0D.isFinished()) {\n recyclerView9.A0D.onAbsorb(-i4);\n }\n } else if (i4 > 0) {\n recyclerView9.A0Y();\n if (recyclerView9.A0E.isFinished()) {\n recyclerView9.A0E.onAbsorb(i4);\n }\n }\n if (currVelocity < 0) {\n recyclerView9.A0Z();\n if (recyclerView9.A0F.isFinished()) {\n recyclerView9.A0F.onAbsorb(-currVelocity);\n }\n } else if (currVelocity > 0) {\n recyclerView9.A0W();\n if (recyclerView9.A0C.isFinished()) {\n recyclerView9.A0C.onAbsorb(currVelocity);\n }\n }\n if (!(i4 == 0 && currVelocity == 0)) {\n AnonymousClass1E1.A0I(recyclerView9);\n }\n }\n if (RecyclerView.A1A) {\n AnonymousClass1Xt r6 = this.A06.A0I;\n int[] iArr7 = r6.A03;\n if (iArr7 != null) {\n Arrays.fill(iArr7, -1);\n }\n r6.A00 = 0;\n }\n }\n }\n C44661wY r1 = this.A06.A0L.A09;\n if (r1 != null && r1.A04) {\n r1.A03(0, 0);\n }\n this.A04 = false;\n if (this.A05) {\n this.A06.removeCallbacks(this);\n this.A06.postOnAnimation(this);\n } else {\n this.A06.setScrollState(0);\n this.A06.BqR(1);\n }\n i = 809759386;\n }\n AnonymousClass0Z0.A0A(i, A032);\n }",
"AnonymousClass1(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void\");\n }",
"public boolean animateAppearance(com.color.widget.ColorRecyclerView.ViewHolder r1, com.color.widget.ColorRecyclerView.ItemAnimator.ItemHolderInfo r2, com.color.widget.ColorRecyclerView.ItemAnimator.ItemHolderInfo r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: com.color.widget.ColorSimpleItemAnimator.animateAppearance(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.animateAppearance(com.color.widget.ColorRecyclerView$ViewHolder, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo, com.color.widget.ColorRecyclerView$ItemAnimator$ItemHolderInfo):boolean\");\n }",
"private void m118737b(final ProfileViewModel.C24206i iVar) {\n RecyclerView recyclerView = (RecyclerView) findViewById(R.id.new_profile_work);\n recyclerView.setHasFixedSize(true);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext(), 1, false);\n linearLayoutManager.setAutoMeasureEnabled(true);\n recyclerView.setLayoutManager(linearLayoutManager);\n recyclerView.setNestedScrollingEnabled(false);\n this.f84968c = new C24255a();\n this.f84968c.setItemOnClickListener(new ZHRecyclerViewAdapter.AbstractC17398b(iVar) {\n /* class com.zhihu.android.profile.newprofile.p1859ui.card.works.$$Lambda$ProfileWorksCard$lqoHBEvJAbWcgb4cDo5hsCgbfkU */\n private final /* synthetic */ ProfileViewModel.C24206i f$1;\n\n {\n this.f$1 = r2;\n }\n\n @Override // com.zhihu.android.base.widget.adapter.ZHRecyclerViewAdapter.AbstractC17398b\n public final void onClick(View view, ZHRecyclerViewAdapter.ViewHolder viewHolder) {\n ProfileWorksCard.lambda$lqoHBEvJAbWcgb4cDo5hsCgbfkU(ProfileWorksCard.this, this.f$1, view, viewHolder);\n }\n });\n this.f84968c.setAdapterListener(new ZHRecyclerViewAdapter.C17397a() {\n /* class com.zhihu.android.profile.newprofile.p1859ui.card.works.ProfileWorksCard.C242541 */\n\n @Override // com.zhihu.android.base.widget.adapter.ZHRecyclerViewAdapter.C17397a\n /* renamed from: b */\n public void mo68229b(ZHRecyclerViewAdapter.ViewHolder viewHolder) {\n super.mo68229b(viewHolder);\n if (viewHolder != null && iVar.f84658s != null) {\n if (((Boolean) InstanceProvider.m107965c(KmarketHolderInterface.class).mo131258a((AbstractC32237i) new AbstractC32237i() {\n /* class com.zhihu.android.profile.newprofile.p1859ui.card.works.$$Lambda$ProfileWorksCard$1$JQJZWscYbxB70SV4oTKcktf5Jrw */\n\n @Override // java8.util.p2234b.AbstractC32237i\n public final Object apply(Object obj) {\n return ProfileWorksCard.C242541.lambda$JQJZWscYbxB70SV4oTKcktf5Jrw(ZHRecyclerViewAdapter.ViewHolder.this, (KmarketHolderInterface) obj);\n }\n }).mo131266c(false)).booleanValue()) {\n ((ZACardShow) ((ZACardShow) ((ZACardShow) ZA.m91649g().mo87656a(388)).mo87668b(ProfileWorksCard.this.m118732a((ProfileWorksCard) iVar.f84658s.mo106296b()))).mo87666a(new ZALayer().mo87723a(C31005cy.EnumC31008c.EBookItem).mo87718a(new PageInfoType().contentType(ContentType.EnumC30787c.EBook).mo87469id(String.valueOf(((KmarketHolderInterface) InstanceProvider.m107964b(KmarketHolderInterface.class)).getEBookFromNewProfileWorkEbookViewHolder(viewHolder).getId()))), new ZALayer().mo87723a(C31005cy.EnumC31008c.ContentList).mo87724a(ProfileWorksCard.this.getContext().getString(R.string.csa)))).mo87673e();\n } else if (((Boolean) InstanceProvider.m107965c(KmarketHolderInterface.class).mo131258a((AbstractC32237i) new AbstractC32237i() {\n /* class com.zhihu.android.profile.newprofile.p1859ui.card.works.$$Lambda$ProfileWorksCard$1$0dZjIk95561n23e4G9JHeUA6fI */\n\n @Override // java8.util.p2234b.AbstractC32237i\n public final Object apply(Object obj) {\n return ProfileWorksCard.C242541.m157662lambda$0dZjIk95561n23e4G9JHeUA6fI(ZHRecyclerViewAdapter.ViewHolder.this, (KmarketHolderInterface) obj);\n }\n }).mo131266c(false)).booleanValue()) {\n ((ZACardShow) ((ZACardShow) ((ZACardShow) ZA.m91649g().mo87656a(C18760a.f66813v)).mo87668b(ProfileWorksCard.this.m118732a((ProfileWorksCard) iVar.f84658s.mo106296b()))).mo87666a(new ZALayer().mo87723a(C31005cy.EnumC31008c.LiveItem).mo87718a(new PageInfoType().contentType(ContentType.EnumC30787c.Live).mo87469id(((KmarketHolderInterface) InstanceProvider.m107964b(KmarketHolderInterface.class)).getLiveFromNewProfileWorkLiveViewHolder(viewHolder).f40306id)), new ZALayer().mo87723a(C31005cy.EnumC31008c.ContentList).mo87724a(ProfileWorksCard.this.getContext().getString(R.string.csa)))).mo87673e();\n } else if (((Boolean) InstanceProvider.m107965c(KmarketHolderInterface.class).mo131258a((AbstractC32237i) new AbstractC32237i() {\n /* class com.zhihu.android.profile.newprofile.p1859ui.card.works.$$Lambda$ProfileWorksCard$1$dWcJiN3dYTRByMeHFADxEhYLP4E */\n\n @Override // java8.util.p2234b.AbstractC32237i\n public final Object apply(Object obj) {\n return ProfileWorksCard.C242541.lambda$dWcJiN3dYTRByMeHFADxEhYLP4E(ZHRecyclerViewAdapter.ViewHolder.this, (KmarketHolderInterface) obj);\n }\n }).mo131266c(false)).booleanValue()) {\n ((ZACardShow) ((ZACardShow) ((ZACardShow) ZA.m91649g().mo87656a(C18760a.f66813v)).mo87668b(ProfileWorksCard.this.m118732a((ProfileWorksCard) iVar.f84658s.mo106296b()))).mo87666a(new ZALayer().mo87723a(C31005cy.EnumC31008c.RemixAlbumItem).mo87718a(new PageInfoType().contentType(ContentType.EnumC30787c.RemixAlbum).mo87469id(((KmarketHolderInterface) InstanceProvider.m107964b(KmarketHolderInterface.class)).getAlbumFromNewProfileWorkMixtapeViewHolder(viewHolder).f40400id)), new ZALayer().mo87723a(C31005cy.EnumC31008c.ContentList).mo87724a(ProfileWorksCard.this.getContext().getString(R.string.csa)))).mo87673e();\n } else if (((Boolean) InstanceProvider.m107965c(KmarketHolderInterface.class).mo131258a((AbstractC32237i) new AbstractC32237i() {\n /* class com.zhihu.android.profile.newprofile.p1859ui.card.works.$$Lambda$ProfileWorksCard$1$WiVYCj1RDS7bVky9jdMu9CcqSb8 */\n\n @Override // java8.util.p2234b.AbstractC32237i\n public final Object apply(Object obj) {\n return ProfileWorksCard.C242541.lambda$WiVYCj1RDS7bVky9jdMu9CcqSb8(ZHRecyclerViewAdapter.ViewHolder.this, (KmarketHolderInterface) obj);\n }\n }).mo131266c(false)).booleanValue()) {\n ((ZACardShow) ((ZACardShow) ((ZACardShow) ZA.m91649g().mo87656a(C18760a.f66813v)).mo87668b(ProfileWorksCard.this.m118732a((ProfileWorksCard) iVar.f84658s.mo106296b()))).mo87666a(new ZALayer().mo87723a(C31005cy.EnumC31008c.LiveCourseItem).mo87718a(new PageInfoType().contentType(ContentType.EnumC30787c.LiveCourse).mo87469id(((KmarketHolderInterface) InstanceProvider.m107964b(KmarketHolderInterface.class)).getCourseFromNewProfileWorkCourseViewHolder(viewHolder).f40265id)), new ZALayer().mo87723a(C31005cy.EnumC31008c.ContentList).mo87724a(ProfileWorksCard.this.getContext().getString(R.string.csa)))).mo87673e();\n } else {\n ((Boolean) InstanceProvider.m107965c(KmarketHolderInterface.class).mo131258a((AbstractC32237i) new AbstractC32237i() {\n /* class com.zhihu.android.profile.newprofile.p1859ui.card.works.$$Lambda$ProfileWorksCard$1$CENG5VNk9ZN1ZjsdtLKuj4r7Du4 */\n\n @Override // java8.util.p2234b.AbstractC32237i\n public final Object apply(Object obj) {\n return ProfileWorksCard.C242541.lambda$CENG5VNk9ZN1ZjsdtLKuj4r7Du4(ZHRecyclerViewAdapter.ViewHolder.this, (KmarketHolderInterface) obj);\n }\n }).mo131266c(false)).booleanValue();\n }\n }\n }\n\n /* access modifiers changed from: private */\n /* renamed from: e */\n public static /* synthetic */ Boolean m118748e(ZHRecyclerViewAdapter.ViewHolder viewHolder, KmarketHolderInterface kmarketHolderInterface) {\n return Boolean.valueOf(kmarketHolderInterface.isNewProfileWorkEbookViewHolder(viewHolder));\n }\n\n /* access modifiers changed from: private */\n /* renamed from: d */\n public static /* synthetic */ Boolean m118747d(ZHRecyclerViewAdapter.ViewHolder viewHolder, KmarketHolderInterface kmarketHolderInterface) {\n return Boolean.valueOf(kmarketHolderInterface.isNewProfileWorkLiveViewHolder(viewHolder));\n }\n\n /* access modifiers changed from: private */\n /* renamed from: c */\n public static /* synthetic */ Boolean m118746c(ZHRecyclerViewAdapter.ViewHolder viewHolder, KmarketHolderInterface kmarketHolderInterface) {\n return Boolean.valueOf(kmarketHolderInterface.isNewProfileWorkMixtapeViewHolder(viewHolder));\n }\n\n /* access modifiers changed from: private */\n /* renamed from: b */\n public static /* synthetic */ Boolean m118745b(ZHRecyclerViewAdapter.ViewHolder viewHolder, KmarketHolderInterface kmarketHolderInterface) {\n return Boolean.valueOf(kmarketHolderInterface.isNewProfileWorkCourseViewHolder(viewHolder));\n }\n\n /* access modifiers changed from: private */\n /* renamed from: a */\n public static /* synthetic */ Boolean m118744a(ZHRecyclerViewAdapter.ViewHolder viewHolder, KmarketHolderInterface kmarketHolderInterface) {\n return Boolean.valueOf(kmarketHolderInterface.isNewProfileWorkColumnViewHolder(viewHolder));\n }\n });\n }",
"private void pushNow(Recycler.DefaultHandle<?> item)\r\n/* 529: */ {\r\n/* 530:567 */ if ((Recycler.DefaultHandle.access$1500(item) | Recycler.DefaultHandle.access$1100(item)) != 0) {\r\n/* 531:568 */ throw new IllegalStateException(\"recycled already\");\r\n/* 532: */ }\r\n/* 533:570 */ Recycler.DefaultHandle.access$1502(item, Recycler.DefaultHandle.access$1102(item, Recycler.OWN_THREAD_ID));\r\n/* 534: */ \r\n/* 535:572 */ int size = this.size;\r\n/* 536:573 */ if ((size >= this.maxCapacity) || (dropHandle(item))) {\r\n/* 537:575 */ return;\r\n/* 538: */ }\r\n/* 539:577 */ if (size == this.elements.length) {\r\n/* 540:578 */ this.elements = ((Recycler.DefaultHandle[])Arrays.copyOf(this.elements, Math.min(size << 1, this.maxCapacity)));\r\n/* 541: */ }\r\n/* 542:581 */ this.elements[size] = item;\r\n/* 543:582 */ this.size = (size + 1);\r\n/* 544: */ }",
"private void a() {\n /*\n r9 = this;\n r8 = 2131755623; // 0x7f100267 float:1.914213E38 double:1.0532272187E-314;\n r7 = 2131755379; // 0x7f100173 float:1.9141636E38 double:1.053227098E-314;\n r6 = 8;\n r5 = 0;\n r1 = com.whatsapp.DialogToastActivity.f;\n r0 = r9.C;\t Catch:{ SecurityException -> 0x0093 }\n r0 = r0.getCount();\t Catch:{ SecurityException -> 0x0093 }\n if (r0 != 0) goto L_0x0086;\n L_0x0013:\n r0 = r9.w;\t Catch:{ SecurityException -> 0x0095 }\n if (r0 != 0) goto L_0x0030;\n L_0x0017:\n r0 = 2131755379; // 0x7f100173 float:1.9141636E38 double:1.053227098E-314;\n r0 = r9.findViewById(r0);\t Catch:{ SecurityException -> 0x0097 }\n r2 = 8;\n r0.setVisibility(r2);\t Catch:{ SecurityException -> 0x0097 }\n r0 = 2131755623; // 0x7f100267 float:1.914213E38 double:1.0532272187E-314;\n r0 = r9.findViewById(r0);\t Catch:{ SecurityException -> 0x0097 }\n r2 = 0;\n r0.setVisibility(r2);\t Catch:{ SecurityException -> 0x0097 }\n if (r1 == 0) goto L_0x0079;\n L_0x0030:\n r0 = r9.y;\t Catch:{ SecurityException -> 0x0099 }\n if (r0 == 0) goto L_0x005f;\n L_0x0034:\n r0 = r9.y;\t Catch:{ SecurityException -> 0x0099 }\n r0 = r0.isEmpty();\t Catch:{ SecurityException -> 0x0099 }\n if (r0 != 0) goto L_0x005f;\n L_0x003c:\n r0 = r9.findViewById(r7);\n r0 = (android.widget.TextView) r0;\n r0.setVisibility(r5);\n r2 = 2131231851; // 0x7f08046b float:1.8079795E38 double:1.052968441E-314;\n r3 = 1;\n r3 = new java.lang.Object[r3];\n r4 = r9.x;\n r3[r5] = r4;\n r2 = r9.getString(r2, r3);\n r0.setText(r2);\n r0 = r9.findViewById(r8);\n r0.setVisibility(r6);\n if (r1 == 0) goto L_0x0079;\n L_0x005f:\n r0 = r9.findViewById(r7);\n r0 = (android.widget.TextView) r0;\n r0.setVisibility(r5);\n r2 = 2131231552; // 0x7f080340 float:1.8079188E38 double:1.052968293E-314;\n r2 = r9.getString(r2);\n r0.setText(r2);\n r0 = r9.findViewById(r8);\n r0.setVisibility(r6);\n L_0x0079:\n r0 = 16908292; // 0x1020004 float:2.387724E-38 double:8.353806E-317;\n r0 = r9.findViewById(r0);\t Catch:{ SecurityException -> 0x009b }\n r2 = 0;\n r0.setVisibility(r2);\t Catch:{ SecurityException -> 0x009b }\n if (r1 == 0) goto L_0x0092;\n L_0x0086:\n r0 = 16908292; // 0x1020004 float:2.387724E-38 double:8.353806E-317;\n r0 = r9.findViewById(r0);\t Catch:{ SecurityException -> 0x009b }\n r1 = 8;\n r0.setVisibility(r1);\t Catch:{ SecurityException -> 0x009b }\n L_0x0092:\n return;\n L_0x0093:\n r0 = move-exception;\n throw r0;\t Catch:{ SecurityException -> 0x0095 }\n L_0x0095:\n r0 = move-exception;\n throw r0;\t Catch:{ SecurityException -> 0x0097 }\n L_0x0097:\n r0 = move-exception;\n throw r0;\t Catch:{ SecurityException -> 0x0099 }\n L_0x0099:\n r0 = move-exception;\n throw r0;\n L_0x009b:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.DocumentPickerActivity.a():void\");\n }",
"public void mo21809a(android.view.LayoutInflater r13, android.view.ViewGroup r14, android.os.Bundle r15, p256e.p258b.C6977a r16, android.view.SurfaceHolder r17) {\n /*\n r12 = this;\n r0 = r12\n r16.mo21761L_()\n int r1 = r16.mo21764b()\n r0.f24533e = r1\n int r1 = r16.mo21765c()\n r0.f24534f = r1\n float r1 = r16.mo21766d()\n r0.f24539k = r1\n r12.mo21870l()\n int r1 = r0.f24531c\n r2 = 0\n r3 = 1\n r4 = -1\n if (r1 != r4) goto L_0x0035\n boolean r1 = r0.f24519V\n if (r1 != 0) goto L_0x002c\n int r1 = r0.f24537i\n if (r1 == r4) goto L_0x002c\n int r1 = r0.f24538j\n if (r1 != r4) goto L_0x0042\n L_0x002c:\n int r1 = r0.f24533e\n r0.f24537i = r1\n int r1 = r0.f24534f\n r0.f24538j = r1\n goto L_0x0042\n L_0x0035:\n boolean r1 = r0.f24519V\n if (r1 != 0) goto L_0x0044\n int r1 = r0.f24537i\n if (r1 == r4) goto L_0x0044\n int r1 = r0.f24538j\n if (r1 != r4) goto L_0x0042\n goto L_0x0044\n L_0x0042:\n r8 = 0\n goto L_0x004b\n L_0x0044:\n r1 = 100\n r0.f24537i = r1\n r0.f24538j = r1\n r8 = 1\n L_0x004b:\n int r1 = r0.f24537i\n int r5 = r0.f24540l\n int r1 = r1 * r5\n r0.f24541m = r1\n int r1 = r0.f24538j\n int r5 = r0.f24540l\n int r1 = r1 * r5\n r0.f24542n = r1\n java.lang.String r1 = r12.mo21873o()\n int r5 = r0.f24537i\n int r6 = r0.f24538j\n e.c.c r1 = r12.mo21799a(r5, r6, r1, r3)\n r0.f24532d = r1\n e.c.c r1 = r0.f24532d\n r5 = r16\n r6 = r17\n e.c.i r1 = r1.mo21705a(r5, r6, r2)\n r0.f24530b = r1\n int r1 = r0.f24531c\n if (r1 != r4) goto L_0x0086\n r12.m36394W()\n e.c.i r1 = r0.f24530b\n int r4 = r0.f24537i\n int r5 = r0.f24538j\n r1.mo22056a(r4, r5)\n goto L_0x0092\n L_0x0086:\n e.c.i r5 = r0.f24530b\n int r6 = r0.f24537i\n int r7 = r0.f24538j\n r9 = r13\n r10 = r14\n r11 = r15\n r5.mo22057a(r6, r7, r8, r9, r10, r11)\n L_0x0092:\n r0.f24515R = r2\n r0.f24512O = r3\n r0.f24513P = r3\n e.c.i r1 = r0.f24530b\n java.io.File r1 = r1.mo22067h()\n java.lang.String r1 = r1.getAbsolutePath()\n r0.f24535g = r1\n e.c.i r1 = r0.f24530b\n r1.mo22069j()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p256e.p259c.C6982a.mo21809a(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle, e.b.a, android.view.SurfaceHolder):void\");\n }",
"public final void dispatchChangeStarting(com.color.widget.ColorRecyclerView.ViewHolder r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.color.widget.ColorSimpleItemAnimator.dispatchChangeStarting(com.color.widget.ColorRecyclerView$ViewHolder, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.color.widget.ColorSimpleItemAnimator.dispatchChangeStarting(com.color.widget.ColorRecyclerView$ViewHolder, boolean):void\");\n }",
"private static void m13381a(long r3, float r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }",
"@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }",
"public void b(android.database.sqlite.SQLiteDatabase r12) {\n /*\n r11 = this;\n r6 = 0;\n r9 = 20;\n r7 = 1;\n r1 = 0;\n r4 = 0;\n r0 = \"select id, value from runtime order by id\";\n r2 = 0;\n r0 = r12.rawQuery(r0, r2);\t Catch:{ Exception -> 0x02e8, all -> 0x02e5 }\n if (r0 == 0) goto L_0x02d6;\n L_0x0010:\n r2 = r0.moveToNext();\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r2 == 0) goto L_0x02d6;\n L_0x0016:\n r2 = 0;\n r3 = 1;\n r8 = r0.getInt(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r8 == r7) goto L_0x0028;\n L_0x001e:\n r2 = 14;\n if (r8 == r2) goto L_0x0028;\n L_0x0022:\n r2 = 19;\n if (r8 == r2) goto L_0x0028;\n L_0x0026:\n if (r8 != r9) goto L_0x0174;\n L_0x0028:\n r2 = r0.getBlob(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r3 = r2;\n r2 = r1;\n L_0x002e:\n switch(r8) {\n case 1: goto L_0x0032;\n case 2: goto L_0x019d;\n case 3: goto L_0x0204;\n case 4: goto L_0x0181;\n case 5: goto L_0x0031;\n case 6: goto L_0x01ce;\n case 7: goto L_0x01bc;\n case 8: goto L_0x01aa;\n case 9: goto L_0x01e0;\n case 10: goto L_0x01f2;\n case 11: goto L_0x0211;\n case 12: goto L_0x0223;\n case 13: goto L_0x0235;\n case 14: goto L_0x0242;\n case 15: goto L_0x0283;\n case 16: goto L_0x0293;\n case 17: goto L_0x02a5;\n case 18: goto L_0x02b2;\n case 19: goto L_0x0251;\n case 20: goto L_0x0269;\n case 21: goto L_0x02c4;\n default: goto L_0x0031;\n };\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n L_0x0031:\n goto L_0x0010;\n L_0x0032:\n r2 = new java.lang.String;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r8 = com.igexin.push.core.g.B;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r3 = com.igexin.a.a.a.a.a(r3, r8);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r2.<init>(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r2 == 0) goto L_0x0047;\n L_0x003f:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x004b, all -> 0x018e }\n if (r3 == 0) goto L_0x017b;\n L_0x0047:\n r2 = r4;\n L_0x0048:\n com.igexin.push.core.g.r = r2;\t Catch:{ Exception -> 0x004b, all -> 0x018e }\n goto L_0x0010;\n L_0x004b:\n r2 = move-exception;\n r2 = 0;\n com.igexin.push.core.g.r = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x0051:\n r2 = move-exception;\n L_0x0052:\n if (r0 == 0) goto L_0x0057;\n L_0x0054:\n r0.close();\n L_0x0057:\n r2 = com.igexin.push.core.g.r;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0076;\n L_0x005d:\n r2 = com.igexin.push.f.b.d();\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x0076;\n L_0x0065:\n com.igexin.push.core.g.r = r2;\n r0 = java.lang.String.valueOf(r2);\n r0 = r0.getBytes();\n r0 = com.igexin.push.f.d.a(r0);\n r11.a(r12, r7, r0);\n L_0x0076:\n r0 = com.igexin.push.core.g.s;\n if (r0 != 0) goto L_0x0095;\n L_0x007a:\n r0 = com.igexin.push.f.b.b();\n if (r0 == 0) goto L_0x0095;\n L_0x0080:\n com.igexin.push.core.g.t = r0;\n com.igexin.push.core.g.s = r0;\n r0 = com.igexin.push.core.g.s;\n r0 = java.lang.String.valueOf(r0);\n r0 = r0.getBytes();\n r0 = com.igexin.push.f.d.a(r0);\n r11.a(r12, r9, r0);\n L_0x0095:\n r0 = com.igexin.push.core.g.s;\n if (r0 != 0) goto L_0x00c1;\n L_0x0099:\n r2 = com.igexin.push.core.g.r;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x00c1;\n L_0x009f:\n r2 = com.igexin.push.core.g.r;\n r0 = java.lang.String.valueOf(r2);\n r0 = com.igexin.a.b.a.a(r0);\n com.igexin.push.core.g.t = r0;\n r2 = com.igexin.push.core.g.r;\n com.igexin.push.core.g.a(r2);\n r0 = com.igexin.push.core.g.s;\n r0 = java.lang.String.valueOf(r0);\n r0 = r0.getBytes();\n r0 = com.igexin.push.f.d.a(r0);\n r11.a(r12, r9, r0);\n L_0x00c1:\n r0 = \"cfcd208495d565ef66e7dff9f98764da\";\n r2 = com.igexin.push.core.g.s;\n r0 = r0.equals(r2);\n if (r0 == 0) goto L_0x00e1;\n L_0x00cb:\n r2 = com.igexin.push.core.g.r;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x02dd;\n L_0x00d1:\n r0 = a();\n r2 = com.igexin.push.core.g.r;\n r0.a(r2);\n r0 = com.igexin.push.core.g.s;\n com.igexin.push.core.g.t = r0;\n com.igexin.push.f.b.f();\n L_0x00e1:\n r0 = com.igexin.push.core.g.au;\n r0 = android.text.TextUtils.isEmpty(r0);\n if (r0 != 0) goto L_0x00f3;\n L_0x00e9:\n r0 = \"null\";\n r1 = com.igexin.push.core.g.au;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x010a;\n L_0x00f3:\n r0 = 32;\n r0 = com.igexin.a.b.a.a(r0);\n com.igexin.push.core.g.au = r0;\n r0 = 14;\n r1 = com.igexin.push.core.g.au;\n r1 = r1.getBytes();\n r1 = com.igexin.push.f.d.a(r1);\n r11.a(r12, r0, r1);\n L_0x010a:\n r0 = com.igexin.push.f.b.c();\n r1 = com.igexin.push.core.g.z;\n if (r1 != 0) goto L_0x0127;\n L_0x0112:\n if (r0 == 0) goto L_0x0127;\n L_0x0114:\n r1 = r0.length();\n r2 = 5;\n if (r1 <= r2) goto L_0x0127;\n L_0x011b:\n com.igexin.push.core.g.z = r0;\n r0 = 2;\n r1 = com.igexin.push.core.g.z;\n r1 = java.lang.String.valueOf(r1);\n r11.a(r12, r0, r1);\n L_0x0127:\n r0 = com.igexin.push.core.g.A;\n if (r0 != 0) goto L_0x0173;\n L_0x012b:\n r0 = com.igexin.push.core.g.u;\n if (r0 != 0) goto L_0x0146;\n L_0x012f:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = \"V\";\n r0 = r0.append(r1);\n r1 = r11.g();\n r0 = r0.append(r1);\n r0 = r0.toString();\n L_0x0146:\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"A-\";\n r1 = r1.append(r2);\n r0 = r1.append(r0);\n r1 = \"-\";\n r0 = r0.append(r1);\n r2 = java.lang.System.currentTimeMillis();\n r0 = r0.append(r2);\n r0 = r0.toString();\n com.igexin.push.core.g.A = r0;\n r0 = 3;\n r1 = com.igexin.push.core.g.A;\n r1 = java.lang.String.valueOf(r1);\n r11.a(r12, r0, r1);\n L_0x0173:\n return;\n L_0x0174:\n r2 = r0.getString(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r3 = r1;\n goto L_0x002e;\n L_0x017b:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x004b, all -> 0x018e }\n goto L_0x0048;\n L_0x0181:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x0198;\n L_0x0189:\n r2 = r7;\n L_0x018a:\n com.igexin.push.core.g.l = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x018e:\n r1 = move-exception;\n r10 = r1;\n r1 = r0;\n r0 = r10;\n L_0x0192:\n if (r1 == 0) goto L_0x0197;\n L_0x0194:\n r1.close();\n L_0x0197:\n throw r0;\n L_0x0198:\n r2 = java.lang.Boolean.parseBoolean(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x018a;\n L_0x019d:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x01a6;\n L_0x01a5:\n r2 = r1;\n L_0x01a6:\n com.igexin.push.core.g.z = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x01aa:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x01b7;\n L_0x01b2:\n r2 = r4;\n L_0x01b3:\n com.igexin.push.core.g.H = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x01b7:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x01b3;\n L_0x01bc:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x01c9;\n L_0x01c4:\n r2 = r4;\n L_0x01c5:\n com.igexin.push.core.g.G = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x01c9:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x01c5;\n L_0x01ce:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x01db;\n L_0x01d6:\n r2 = r4;\n L_0x01d7:\n com.igexin.push.core.g.F = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x01db:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x01d7;\n L_0x01e0:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x01ed;\n L_0x01e8:\n r2 = r4;\n L_0x01e9:\n com.igexin.push.core.g.P = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x01ed:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x01e9;\n L_0x01f2:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x01ff;\n L_0x01fa:\n r2 = r4;\n L_0x01fb:\n com.igexin.push.core.g.Q = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x01ff:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x01fb;\n L_0x0204:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x020d;\n L_0x020c:\n r2 = r1;\n L_0x020d:\n com.igexin.push.core.g.A = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x0211:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x021e;\n L_0x0219:\n r2 = r4;\n L_0x021a:\n com.igexin.push.core.g.K = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x021e:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x021a;\n L_0x0223:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x0230;\n L_0x022b:\n r2 = r4;\n L_0x022c:\n com.igexin.push.core.g.L = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x0230:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x022c;\n L_0x0235:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x023e;\n L_0x023d:\n r2 = r1;\n L_0x023e:\n com.igexin.push.core.g.M = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x0242:\n r2 = new java.lang.String;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r8 = com.igexin.push.core.g.B;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r3 = com.igexin.a.a.a.a.a(r3, r8);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r2.<init>(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n com.igexin.push.core.g.au = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x0251:\n r2 = new java.lang.String;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r8 = com.igexin.push.core.g.B;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r3 = com.igexin.a.a.a.a.a(r3, r8);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r2.<init>(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x0265;\n L_0x0264:\n r2 = r1;\n L_0x0265:\n com.igexin.push.core.g.x = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x0269:\n r2 = new java.lang.String;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r8 = com.igexin.push.core.g.B;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r3 = com.igexin.a.a.a.a.a(r3, r8);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r2.<init>(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x027d;\n L_0x027c:\n r2 = r1;\n L_0x027d:\n com.igexin.push.core.g.t = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n com.igexin.push.core.g.s = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x0283:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 != 0) goto L_0x0010;\n L_0x028b:\n r2 = java.lang.Boolean.parseBoolean(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n com.igexin.push.core.g.N = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x0293:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x02a0;\n L_0x029b:\n r2 = r4;\n L_0x029c:\n com.igexin.push.core.g.O = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x02a0:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x029c;\n L_0x02a5:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x02ae;\n L_0x02ad:\n r2 = r1;\n L_0x02ae:\n com.igexin.push.core.g.S = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x02b2:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x02bf;\n L_0x02ba:\n r2 = r6;\n L_0x02bb:\n com.igexin.push.core.g.U = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x02bf:\n r2 = java.lang.Integer.parseInt(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x02bb;\n L_0x02c4:\n r3 = \"null\";\n r3 = r2.equals(r3);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n if (r3 == 0) goto L_0x02d1;\n L_0x02cc:\n r2 = r4;\n L_0x02cd:\n com.igexin.push.core.g.aw = r2;\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x0010;\n L_0x02d1:\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ Exception -> 0x0051, all -> 0x018e }\n goto L_0x02cd;\n L_0x02d6:\n if (r0 == 0) goto L_0x0057;\n L_0x02d8:\n r0.close();\n goto L_0x0057;\n L_0x02dd:\n com.igexin.push.core.g.t = r1;\n com.igexin.push.core.g.s = r1;\n com.igexin.push.core.g.r = r4;\n goto L_0x00e1;\n L_0x02e5:\n r0 = move-exception;\n goto L_0x0192;\n L_0x02e8:\n r0 = move-exception;\n r0 = r1;\n goto L_0x0052;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.igexin.push.core.c.f.b(android.database.sqlite.SQLiteDatabase):void\");\n }",
"Recycler.DefaultHandle<T> pop()\r\n/* 440: */ {\r\n/* 441:472 */ int size = this.size;\r\n/* 442:473 */ if (size == 0)\r\n/* 443: */ {\r\n/* 444:474 */ if (!scavenge()) {\r\n/* 445:475 */ return null;\r\n/* 446: */ }\r\n/* 447:477 */ size = this.size;\r\n/* 448: */ }\r\n/* 449:479 */ size--;\r\n/* 450:480 */ Recycler.DefaultHandle ret = this.elements[size];\r\n/* 451:481 */ this.elements[size] = null;\r\n/* 452:482 */ if (Recycler.DefaultHandle.access$1100(ret) != Recycler.DefaultHandle.access$1500(ret)) {\r\n/* 453:483 */ throw new IllegalStateException(\"recycled multiple times\");\r\n/* 454: */ }\r\n/* 455:485 */ Recycler.DefaultHandle.access$1502(ret, 0);\r\n/* 456:486 */ Recycler.DefaultHandle.access$1102(ret, 0);\r\n/* 457:487 */ this.size = size;\r\n/* 458:488 */ return ret;\r\n/* 459: */ }",
"private android.graphics.drawable.Drawable m1808a(android.content.Context r5, long r6) {\n /*\n r4 = this;\n r0 = r4.f2149a;\n monitor-enter(r0);\n r1 = r4.f2150b;\t Catch:{ all -> 0x0047 }\n r1 = r1.get(r5);\t Catch:{ all -> 0x0047 }\n r1 = (android.support.v4.util.LongSparseArray) r1;\t Catch:{ all -> 0x0047 }\n r2 = 0;\n if (r1 != 0) goto L_0x0010;\n L_0x000e:\n monitor-exit(r0);\t Catch:{ all -> 0x0047 }\n return r2;\n L_0x0010:\n r3 = r1.m1015a(r6);\t Catch:{ all -> 0x0047 }\n r3 = (java.lang.ref.WeakReference) r3;\t Catch:{ all -> 0x0047 }\n if (r3 == 0) goto L_0x0045;\n L_0x0018:\n r3 = r3.get();\t Catch:{ all -> 0x0047 }\n r3 = (android.graphics.drawable.Drawable.ConstantState) r3;\t Catch:{ all -> 0x0047 }\n if (r3 == 0) goto L_0x002a;\n L_0x0020:\n r5 = r5.getResources();\t Catch:{ all -> 0x0047 }\n r5 = r3.newDrawable(r5);\t Catch:{ all -> 0x0047 }\n monitor-exit(r0);\t Catch:{ all -> 0x0047 }\n return r5;\n L_0x002a:\n r5 = r1.f1392c;\t Catch:{ all -> 0x0047 }\n r3 = r1.f1394e;\t Catch:{ all -> 0x0047 }\n r5 = android.support.v4.util.ContainerHelpers.m1007a(r5, r3, r6);\t Catch:{ all -> 0x0047 }\n if (r5 < 0) goto L_0x0045;\n L_0x0034:\n r6 = r1.f1393d;\t Catch:{ all -> 0x0047 }\n r6 = r6[r5];\t Catch:{ all -> 0x0047 }\n r7 = android.support.v4.util.LongSparseArray.f1390a;\t Catch:{ all -> 0x0047 }\n if (r6 == r7) goto L_0x0045;\n L_0x003c:\n r6 = r1.f1393d;\t Catch:{ all -> 0x0047 }\n r7 = android.support.v4.util.LongSparseArray.f1390a;\t Catch:{ all -> 0x0047 }\n r6[r5] = r7;\t Catch:{ all -> 0x0047 }\n r5 = 1;\n r1.f1391b = r5;\t Catch:{ all -> 0x0047 }\n L_0x0045:\n monitor-exit(r0);\t Catch:{ all -> 0x0047 }\n return r2;\n L_0x0047:\n r5 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x0047 }\n throw r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.AppCompatDrawableManager.a(android.content.Context, long):android.graphics.drawable.Drawable\");\n }",
"public final View mo58587d(RecyclerView recyclerView, T t) {\n AppMethodBeat.m2504i(134229);\n FrameLayout frameLayout = this.jbb;\n t.apJ.setVisibility(4);\n View b = this.jbg.mo6503b(recyclerView, t);\n b.setAlpha(1.0f);\n b.setScaleX(1.0f);\n b.setScaleY(1.0f);\n b.setVisibility(0);\n this.iYn = b;\n frameLayout.addView(b);\n C4990ab.m7416i(\"MicroMsg.ItemMoveHelper\", \"[onDragBegin] position:\" + t.mo66454kj());\n if (this.jbq != null && this.iKa.size() > t.mo66454kj()) {\n this.jbp = this.jbq.mo22522bz(this.iKa.get(t.mo66454kj()));\n this.coc = t.mo66454kj();\n this.endPos = this.coc;\n }\n View view = this.iYn;\n AppMethodBeat.m2505o(134229);\n return view;\n }",
"public final synchronized void a(com.ss.android.ugc.aweme.base.e.b r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r2 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r2 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r0 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r0 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n monitor-exit(r10)\n return\n L_0x0032:\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n boolean r1 = r1.contains(r11) // Catch:{ all -> 0x0041 }\n if (r1 != 0) goto L_0x003f\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n r1.add(r11) // Catch:{ all -> 0x0041 }\n L_0x003f:\n monitor-exit(r10)\n return\n L_0x0041:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.base.e.a.a(com.ss.android.ugc.aweme.base.e.b):void\");\n }",
"@Override // com.avito.android.delivery.map.common.DeliveryMapViewModel\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void clearSelection() {\n /*\n r11 = this;\n java.util.Set<? extends com.avito.android.delivery.map.common.marker.Marker> r0 = r11.h\n java.util.Iterator r0 = r0.iterator()\n L_0x0006:\n boolean r1 = r0.hasNext()\n r2 = 0\n if (r1 == 0) goto L_0x0029\n java.lang.Object r1 = r0.next()\n r3 = r1\n com.avito.android.delivery.map.common.marker.Marker r3 = (com.avito.android.delivery.map.common.marker.Marker) r3\n java.lang.String r3 = r3.getId()\n com.avito.android.delivery.map.common.marker.Marker r4 = r11.j\n if (r4 == 0) goto L_0x0021\n java.lang.String r4 = r4.getId()\n goto L_0x0022\n L_0x0021:\n r4 = r2\n L_0x0022:\n boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r3, r4)\n if (r3 == 0) goto L_0x0006\n goto L_0x002a\n L_0x0029:\n r1 = r2\n L_0x002a:\n com.avito.android.delivery.map.common.marker.Marker r1 = (com.avito.android.delivery.map.common.marker.Marker) r1\n r11.f(r2)\n com.avito.android.delivery.map.common.DeliveryMapView$State r0 = r11.k\n java.util.Set r0 = r0.getMarkers()\n java.util.ArrayList r2 = new java.util.ArrayList\n r3 = 10\n int r3 = t6.n.e.collectionSizeOrDefault(r0, r3)\n r2.<init>(r3)\n java.util.Iterator r0 = r0.iterator()\n L_0x0044:\n boolean r3 = r0.hasNext()\n if (r3 == 0) goto L_0x0080\n java.lang.Object r3 = r0.next()\n com.avito.android.delivery.map.common.DeliveryMapView$Marker r3 = (com.avito.android.delivery.map.common.DeliveryMapView.Marker) r3\n if (r1 == 0) goto L_0x007c\n java.lang.String r4 = r3.getId()\n java.lang.String r5 = r1.getId()\n boolean r4 = kotlin.jvm.internal.Intrinsics.areEqual(r4, r5)\n if (r4 == 0) goto L_0x007c\n com.avito.android.delivery.map.common.DeliveryMapView$Marker r4 = new com.avito.android.delivery.map.common.DeliveryMapView$Marker\n java.lang.String r6 = r1.getId()\n com.avito.android.avito_map.AvitoMapPoint r7 = r1.getLatLng()\n com.avito.android.delivery.map.common.DeliveryMapView$Marker$Bitmap r8 = r11.d(r1)\n if (r8 == 0) goto L_0x007b\n com.avito.android.avito_map.AvitoMapMarker$Anchor r9 = r3.getAnchor()\n r10 = 0\n r5 = r4\n r5.<init>(r6, r7, r8, r9, r10)\n r3 = r4\n goto L_0x007c\n L_0x007b:\n return\n L_0x007c:\n r2.add(r3)\n goto L_0x0044\n L_0x0080:\n java.util.Set r5 = kotlin.collections.CollectionsKt___CollectionsKt.toSet(r2)\n r6 = 0\n r7 = 0\n r8 = 4\n r9 = 0\n com.avito.android.delivery.map.common.DeliveryMapView$State r0 = new com.avito.android.delivery.map.common.DeliveryMapView$State\n r4 = r0\n r4.<init>(r5, r6, r7, r8, r9)\n r11.k = r0\n com.avito.android.util.architecture_components.SingleLiveEvent r1 = r11.getViewStateChanges()\n r1.setValue(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.avito.android.delivery.map.common.DeliveryMapViewModelImpl.clearSelection():void\");\n }",
"public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }",
"public abstract int mo12697d(RecyclerView recyclerView, C1085v vVar);",
"protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }"
]
| [
"0.7309851",
"0.72624356",
"0.709162",
"0.6564546",
"0.6366607",
"0.6194612",
"0.6104888",
"0.61014485",
"0.605622",
"0.60460967",
"0.60378325",
"0.6010487",
"0.599866",
"0.59520686",
"0.59497035",
"0.5900341",
"0.5896499",
"0.5893731",
"0.58932555",
"0.58878976",
"0.5824675",
"0.5821882",
"0.58138436",
"0.58106214",
"0.5791338",
"0.57868075",
"0.57753146",
"0.5764075",
"0.57618296",
"0.5759403",
"0.5757788",
"0.5755032",
"0.57449764",
"0.57407874",
"0.57402587",
"0.57262945",
"0.5720741",
"0.57206476",
"0.5709923",
"0.56866354",
"0.5670866",
"0.56659424",
"0.56515974",
"0.5651573",
"0.563779",
"0.5637143",
"0.563607",
"0.5634023",
"0.56200635",
"0.56149143",
"0.5604768",
"0.5603464",
"0.5602487",
"0.5600821",
"0.55995613",
"0.5588411",
"0.5584952",
"0.5576719",
"0.55729455",
"0.5566176",
"0.5550285",
"0.55364025",
"0.553585",
"0.55316687",
"0.5530244",
"0.5526569",
"0.55244213",
"0.5512203",
"0.55065227",
"0.54967374",
"0.5495963",
"0.5492706",
"0.54910904",
"0.5482181",
"0.5472751",
"0.5463144",
"0.54606783",
"0.54478675",
"0.54456884",
"0.54354596",
"0.543519",
"0.541836",
"0.540984",
"0.53962666",
"0.53819275",
"0.5368905",
"0.53666174",
"0.5357579",
"0.53563005",
"0.5334739",
"0.53290427",
"0.53229326",
"0.5314465",
"0.53123057",
"0.5307746",
"0.5305005",
"0.53025186",
"0.5300453",
"0.5294149",
"0.52887565"
]
| 0.68794584 | 3 |
return true if border left border | protected boolean isBorder(int x, int y){
if(super.getLocationX() == x)
return true;
//top border
if (super.getLocationY() == y)
return true;
//right border
if((super.getLocationX() + super.getWidth() - 1) == x)
return true;
//bottom border
if ((super.getLocationY() + super.getHeight() - 1) == y)
return true;
//return false if not
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getBorderVisible() {\n checkWidget();\n return borderLeft == 1;\n }",
"@Test\n public void testIsLeft() {\n for (final Border border : Border.values()) {\n if (border.toString().contains(\"LEFT\") || border.toString().contains(\"ALL\")) {\n Assert.assertTrue(border.isLeft());\n } else {\n Assert.assertFalse(border.isLeft());\n }\n }\n }",
"public boolean lastHitLeft()\n\t{\n\t\treturn lastBorderHit[0];\n\t}",
"boolean checkBorders();",
"public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}",
"public boolean checkLeft()\n\t{\n\t\tif(col-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public void moveLeft() {\n if (rec.getUpperLeft().getX() - 5 < leftBorder) {\n rec.getUpperLeft().setX(leftBorder);\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() - 5);\n }\n\n }",
"public boolean left() {\r\n if( col <= 0 ) return false;\r\n --col;\r\n return true;\r\n }",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"public boolean isSetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(BORDER$22) != null;\n }\n }",
"@Test\n public void testBorderHorizontal() {\n System.out.println(\"borderHorizontal\");\n int x = 0;\n int y = 0;\n int decks = 0;\n int i = 0;\n int[][] field = null;\n int state = 0; \n instance.borderHorizontal(x, y, decks, i, field, state);\n \n }",
"public boolean hasLeft(){\r\n\t\tif(getLeft()!=null) {\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 getPaintBorder() {\n\t\treturn p.getPaintBorder();\n\t}",
"public boolean isLeftRed() {\n return (left == BeaconColor.RED_BRIGHT || left == BeaconColor.RED);\n }",
"private boolean reachedBorder(Line trajectory) {\n\n boolean reachedBorder = false;\n\n //checking top and bottom borders of the screen\n\n double upperLeftY = this.gameLevel.getBorders()[BOTTOM].getCollisionRectangle().getUpperLeft().getY();\n double lowerLeftY = this.gameLevel.getBorders()[TOP].getCollisionRectangle().getLowerLeft().getY();\n double upperLeftX = this.gameLevel.getBorders()[RIGHT].getCollisionRectangle().getUpperLeft().getX();\n double upperRightX = this.gameLevel.getBorders()[LEFT].getCollisionRectangle().getUpperRight().getX();\n\n if ((this.velocity.getDy() > 0\n && (trajectory.start().getY() >= upperLeftY || equals(trajectory.start().getY(), upperLeftY)))\n || (this.velocity.getDy() < 0 && (trajectory.start().getY() <= lowerLeftY))\n || equals(trajectory.start().getY(), lowerLeftY)) {\n this.velocity.setDy(-this.velocity.getDy());\n reachedBorder = true;\n }\n\n //checking left and right borders of the screen\n if (this.velocity.getDx() > 0\n && (trajectory.start().getX() >= upperLeftX || equals(trajectory.start().getX(), upperLeftX))\n || (this.velocity.getDx() < 0 && (trajectory.start().getX() <= upperRightX))\n || equals(trajectory.start().getX(), upperRightX)) {\n this.velocity.setDx(-this.velocity.getDx());\n reachedBorder = true;\n }\n\n return reachedBorder;\n }",
"public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }",
"public boolean hasLeft() {\r\n\t\treturn left != null;\r\n\t}",
"public boolean isLeft() {\n\t\treturn state == State.LEFT;\n\t}",
"public boolean LeftIntersects(BoundingBox other) {\r\n\t\treturn ((Math.abs(other.getRight() - left) < SMALL_NUMBER)\r\n\t\t\t\t&& (other.getTop() == top));\r\n\t}",
"public boolean onHorizontalEdge() {\n\t\treturn horizontal != Side.None;\n\t}",
"public static boolean isLeftEdgeCorrect(Cube cube){\n\t\treturn (cube.getSquare (0, 1, 2) == 0 && cube.getSquare(1, 1, 0) == 1);\n\t}",
"public boolean moveLeft() {\n\t\tif (check(col-1, row)) {\n\t\t\tHiVolts.board.squares[row][col] = 0;\n\t\t\tcol = col - 1;\n\t\t\tHiVolts.board.squares[row][col] = 2;\n\t\t\tsuper.moveLeft();\n\t\t}\n\t\treturn true;\n\t}",
"public boolean getPaintBorder() {\n\t\treturn paintBorder;\n\t}",
"public boolean isLeftKnown() {\n return left != BeaconColor.UNKNOWN;\n }",
"public boolean stepLeft() {\n //it should be wall and maze border check here\n xMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"@Override\n\t\tprotected boolean hasBorder(KrollDict d)\n\t\t{\n\t\t\treturn true;\n\t\t}",
"@Override\r\n\tpublic boolean hasLeftChild() {\n\t\treturn left!=null;\r\n\t}",
"private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }",
"public boolean hasLeftChild() {\n\t\treturn leftChild != null;\n\t}",
"private boolean canMoveLeft()\n {\n // runs through board row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = 1; column < grid[row].length; column++ ) {\n\n // looks at tile directly to the left of the current tile\n int compare = column-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[row][compare] == 0 || grid[row][column] ==\n grid[row][compare] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public boolean isHorizontal(){\n return head().getY() == tail().getY();\n }",
"public boolean moveLeft() throws EatableObjectOnPlaceException {\r\n\t\tif (!treeOnLeft() && !mouseOnLeft()) {\r\n\t\t\tif (!onLeftBorder(positionX)) {\r\n\t\t\t\tpositionX = positionX - 1;\r\n\t\t\t\teatPerformingStep();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn moveRight();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test\n public void testGetBorder() {\n Assert.assertEquals(Border.ALL, Border.getBorder(true, true, true, true));\n Assert.assertEquals(Border.BOTTOM, Border.getBorder(false, false, false, true));\n Assert.assertEquals(Border.BOTTOM_LEFT, Border.getBorder(true, false, false, true));\n Assert.assertEquals(Border.BOTTOM_LEFT_RIGHT, Border.getBorder(true, true, false, true));\n Assert.assertEquals(Border.BOTTOM_RIGHT, Border.getBorder(false, true, false, true));\n Assert.assertEquals(Border.BOTTOM_TOP, Border.getBorder(false, false, true, true));\n Assert.assertEquals(Border.BOTTOM_TOP_LEFT, Border.getBorder(true, false, true, true));\n Assert.assertEquals(Border.BOTTOM_TOP_RIGHT, Border.getBorder(false, true, true, true));\n Assert.assertEquals(Border.LEFT, Border.getBorder(true, false, false, false));\n Assert.assertEquals(Border.LEFT_RIGHT, Border.getBorder(true, true, false, false));\n Assert.assertEquals(Border.NONE, Border.getBorder(false, false, false, false));\n Assert.assertEquals(Border.RIGHT, Border.getBorder(false, true, false, false));\n Assert.assertEquals(Border.TOP, Border.getBorder(false, false, true, false));\n Assert.assertEquals(Border.TOP_LEFT, Border.getBorder(true, false, true, false));\n Assert.assertEquals(Border.TOP_LEFT_RIGHT, Border.getBorder(true, true, true, false));\n Assert.assertEquals(Border.TOP_RIGHT, Border.getBorder(false, true, true, false));\n }",
"public boolean isBorderOpaque() {\n // TODO codavaj!!\n return false;\n }",
"public boolean leftJustified(){\n return justification.equals(FormatAlignment.LEFT_JUSTIFY);\n }",
"private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"public boolean isMoveLeft() {\n return moveLeft;\n }",
"private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }",
"void hasLeft();",
"boolean isLeftCollision(Actor actor) {\n return this.getX() - 1 == actor.getX() && this.getY() == actor.getY();\n }",
"private boolean slideLeft()\n {\n if (blankCol == SIZE - 1) {\n return false;\n }\n board[blankRow][blankCol] = board[blankRow][blankCol + 1];\n board[blankRow][blankCol + 1] = 0;\n blankCol += 1;\n return true;\n }",
"private boolean leftCollision(InteractiveObject obj){\n\t\treturn leftUpCollision(obj) || leftDownCollision(obj);\n\t}",
"public boolean moveLeft() {\n if (position.isLinked(position.getWest())) {\n position.getGameObjects().remove(this.type);\n position = position.getWest();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }",
"public boolean slideLeft() {\n\t\tif (currentCol > 0) {\n\t\t\tboard[currentRow][currentCol] = board[currentRow][currentCol - 1];\n\t\t\tcurrentCol--;\n\t\t\tboard[currentRow][currentCol] = '0';\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"private boolean movingLeft() {\n return this.velocity.sameDirection(Vector2D.X_UNIT.opposite());\n }",
"public static boolean isLeftBottomCornerCorrect(Cube cube){\n\t\treturn (cube.getSquare (0, 2, 2) == 0 && cube.getSquare(1, 2, 0) == 1 &&\n cube.getSquare(4, 0, 0) == 4);\n\t}",
"public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}",
"private boolean tryBorder(int x, int y){\n\n\t\treturn y == this.dimension - 1 || x == this.dimension - 1;\n\t}",
"private boolean hayRayaHorizontal() {\n for (Casilla[] casilla : casillas) {\n if (linea(casilla))\n return true;\n }\n\n return false;\n }",
"private boolean leftBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) <= 0;\n }",
"public boolean isLeftDown() {\n return pm.pen.getButtonValue(PButton.Type.LEFT);\n }",
"@Test\n public void testIsRight() {\n for (final Border border : Border.values()) {\n if (border.toString().contains(\"RIGHT\") || border.toString().contains(\"ALL\")) {\n Assert.assertTrue(border.isRight());\n } else {\n Assert.assertFalse(border.isRight());\n }\n }\n }",
"private boolean hasLeftWall(View v){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\treturn !v.mayMove(Direction.WEST);\n\t\tcase SOUTH:\n\t\t\treturn !v.mayMove(Direction.EAST);\n\t\tcase WEST:\n\t\t\treturn !v.mayMove(Direction.SOUTH);\n\t\tcase EAST:\n\t\t\treturn !v.mayMove(Direction.NORTH);\n\t\tdefault: return false;\n\t\t}\n\t}",
"boolean reachedLeft() {\n\t\treturn this.x <= 0;\n\t}",
"protected boolean isLeftChild(BTNode<E> v){\n\t\tif (isRoot(v)) return false;\n\t\treturn (v == (v.parent()).leftChild()); \n\t}",
"public boolean getLeftButton() {\n\t\treturn getRawButton(LEFT_BUTTON);\n\t}",
"public boolean moveLeft() {\r\n\t\tif (this.x <= 0 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x -= 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public boolean moveLeft() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenLeft() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.LEFT);\r\n\t\t\tif ( currentCol-1 < 0 || maze [currentRow] [currentCol-1].isOpenRight() )\r\n\t\t\t{\r\n\t\t\t\tcurrentCol--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentCol >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Left: \" + moved );\r\n\t\treturn moved;\r\n\t}",
"private boolean isLeftChild(Node curr) {\n\t\tif(curr.parent.left == curr) {\n return true;\n } else {\n return false;\n }\n\t}",
"public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }",
"public boolean diagonalLeft(){\n\t\t\r\n\t\tfor (int j = 1; j < Board.length-1; j++){\r\n\t\t\tint k = Board.length-1-j;\r\n\t\t\t\tif (Board[j][k].charAt(2) != Board[j+1][k-1].charAt(2))\r\n\t\t\t\t\tbreak;\r\n\t\t\t\telse if (Board[j][k].charAt(2) == '_')\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tif ((j == Board.length-2) && (k == 1)){\r\n\t\t\t\t\tthis.winner = Board[j][k].charAt(2);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isLeftBlue() {\n return (left == BeaconColor.BLUE_BRIGHT || left == BeaconColor.BLUE);\n }",
"public boolean insideBorder(int x, int y) {\r\n\t\treturn insideBorder(x, y, 0);\r\n\t}",
"public TextureBorder getBorderX() {\n return mBorderX;\n }",
"private boolean hasLeft ( int pos )\n\t{\n\t\treturn false; // replace this with working code\n\t}",
"boolean hasIsBoundaryNodeOf();",
"public static Boolean PointIsLeftOf(final Point point, final Point lineStart, final Point lineEnd) {\n Vector PS = Vector(lineStart, point), PQ = Vector(lineStart, lineEnd);\n return (dotProduct(PS, PQ) > 0);\n }",
"private int left(int row, int column, char check, char[][] leftBoard, ArrayList<Point> traversedPoints)\n\t{\n\t\tif (column == 0 || traversedPoints.contains(new Point(column - 1, row)))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if (leftBoard[column - 1][row] != ' ' && leftBoard[column - 1][row] != check)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn column - 1;\n\t}",
"private boolean checkLeftSpace(Position p, int len,\n int leftWid, int rightWid) {\n\n int x = p.x;\n int y = p.y;\n for (int i = x; i > x - len; i -= 1) {\n for (int j = y - leftWid; j < y + rightWid + 1; j += 1) {\n if (i < 0) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean isSetIsLeft() {\n return EncodingUtils.testBit(__isset_bitfield, __ISLEFT_ISSET_ID);\n }",
"private void drawBorders(Graphics g) {\n\t\tRectangle field = g.getClipBounds();\n\t\tdouble[] thisCoordinate = plotSheet.toCoordinatePoint(0, 0, field);\n\t\tdouble[] upToThisCoordinate = plotSheet.toCoordinatePoint(0, 0, field);\n\t\tdouble[] leftToThisCoordinate = plotSheet.toCoordinatePoint(0, 0, field);\n\t\t\n\t\tdouble thisF_xy;\n\t\tdouble upToThisF_xy;\n\t\tdouble leftToThisF_xy;\n\t\t\n\t\tfor(int i = field.x+plotSheet.getFrameThickness() + 1; i < field.x + field.width-plotSheet.getFrameThickness(); i++) {\n\t\t\tfor(int j = field.y+plotSheet.getFrameThickness() + 1; j < field.y +field.height-plotSheet.getFrameThickness(); j++) {\n\t\t\t\tthisCoordinate = plotSheet.toCoordinatePoint(i, j, field);\n\t\t\t\tupToThisCoordinate = plotSheet.toCoordinatePoint(i, j-1, field);\n\t\t\t\tleftToThisCoordinate = plotSheet.toCoordinatePoint(i-1, j, field);\n\t\t\t\tthisF_xy = function.f(thisCoordinate[0], thisCoordinate[1]);\n\t\t\t\tupToThisF_xy = function.f(upToThisCoordinate[0], upToThisCoordinate[1]);\n\t\t\t\tleftToThisF_xy = function.f(leftToThisCoordinate[0], leftToThisCoordinate[1]);\n\t\t\t\t\n\t\t\t\tif(onBorder(thisF_xy, upToThisF_xy) || onBorder(thisF_xy, leftToThisF_xy)) {\n\t\t\t\t\tg.drawLine(i, j, i, j);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public boolean getScaleDownInsideBorders() {\n return mScaleDownInsideBorders;\n }",
"public boolean isDefault() {\r\n\treturn bgclip == border;\r\n }",
"public BorderInfo getBorderStart() {\n return borderStart.getBorderInfo();\n }",
"public boolean isLeftToRight() {\n return leftToRight;\n }",
"private void checkHasNodeLeft() throws RemoteException {\n\t\tif (hasNodeLeft)\n\t\t\tthrow new RemoteException();\n\t}",
"boolean hasIsMidNode();",
"public boolean isLeftButtonPressed() {\n // checks if the left button of the mouse is pressed\n\n if (leftButtonPressed && released) {\n released = false;\n pressed = true;\n } else if (leftButtonPressed && !released) {\n pressed = false;\n released = false;\n } else {\n released = true;\n pressed = false;\n }\n\n return pressed;\n }",
"private boolean isLeftButtonEvent(MouseEvent me) {\r\n\t\treturn ((me.getModifiers() & MouseEvent.BUTTON1_MASK) == MouseEvent.BUTTON1_MASK);\r\n\t}",
"public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}",
"private boolean getLeftOuter() throws IOException {\n while(true) {\n if(rightTuple == nullPad) {\n found = false;\n leftTuple = leftChild.getNextTuple();\n if (leftTuple == null) {\n done = true;\n return false;\n }\n }\n rightTuple = rightChild.getNextTuple();\n if (rightTuple == null) {\n if (!found) {\n rightTuple = nullPad;\n rightChild.initialize();\n return true;\n }\n leftTuple = leftChild.getNextTuple();\n if (leftTuple == null) {\n done = true;\n return false;\n }\n found = false;\n rightChild.initialize();\n }\n else\n return true;\n }\n }",
"public boolean isHeadLwm() {\n return !(list.get(0) == list.get(1) - 1);\n }",
"private static boolean isCornerTile(Tile tile, Map<Border, List<Tile>> borderMap) {\n int n = 0;\n for (Border border : tile.getBorders()) {\n if (borderMap.get(border).size() == 1) {\n n++;\n }\n }\n return n == 2;\n }",
"@Test\n\tpublic void testTOutOfBoundsLeftMargin1() {\n\t\ttank.setX(100);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}",
"public int getLeftEdge() {\n return leftEdge;\n }",
"private void checkLeftWall(Invader invader) {\n\t\t\n\t\tif (invader.getX() <= 0) {\n\t\t\tInvader.setDirectionRight(false);\n\t\t\t\n\t\t\tadvanceInvaders();\n\t\t\t\n\t\t\tInvader.setDirectionRight(true);\n\t\t}\n\t}",
"public boolean isLeaf() {\n return ((getRight() - getLeft()) == 1);\n }",
"@Test\n\tpublic void testTOutOfBoundsLeftMargin2() {\n\t\ttank.setX(180);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}",
"public boolean reachBorder() {\n // check up\n if (direction == 12) {\n if (this.getY() < speed) {\n return true;\n }\n }\n //check down\n if (direction == 6) {\n if (this.getY() + this.getHeight() + speed > GameUtility.GameUtility.MAP_HEIGHT) {\n return true;\n }\n\n }\n //check left\n if (direction == 9) {\n if (this.getX() < speed) {\n return true;\n }\n }\n //check right\n if (direction == 3) {\n if (this.getX()\n + this.getWidth() + speed > GameUtility.GameUtility.MAP_WIDTH) {\n return true;\n }\n }\n return false;\n\n }",
"private void makeLeftBox() {\n\t\tgamePanel = new JPanel();\n\t\tgamePanel.setLayout(new BorderLayout());\n\t\tgamePanel.setBackground(Color.GRAY);\n\t\tgamePanel.setOpaque(true);\n\t\tleft = new JPanel();\n\t\tleft.setLayout(new GridLayout(1,1));\n\t\tleft.setBackground(Color.GRAY);\n\t\tbanner = new JLabel(\"Jeopardy\", SwingConstants.CENTER);\n\t\tbanner.setBorder(new EmptyBorder(10,10,10,10));\n\t\tbanner.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tbanner.setForeground(Color.GRAY);\n\t\tbanner.setBackground(lightRed);\n\t\tbanner.setFont(new Font(\"TimesRoman\", Font.BOLD, 30));\n\t\tbanner.setOpaque(true);\n\t\tmakeGameBoard();\n\t\t\n\t\tgamePanel.add(banner, BorderLayout.NORTH);\n\t\tgamePanel.add(board, BorderLayout.CENTER);\n\t\tleft.setOpaque(false);\n\t\tJPanel space = new JPanel();\n\t\tspace.setOpaque(false);\n\t\tgamePanel.add(space, BorderLayout.SOUTH);\n\t\tleft.add(gamePanel);\n\t\t\n\t}",
"public Boolean getShowNodeLabelBorders() {\n return showNodeLabelBorders;\n }",
"public boolean isLeaf() {\n\t\t\tif ((this.right.getHeight() == -1) && (this.left.getHeight() == -1)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"private boolean isBoundaryRow() {\n\t\treturn nextRow == null\n\t\t\t\t|| boundaryRowPattern.matcher(\n\t\t\t\t\t\tExcelUtil.getRowValuesAsString(nextRow.getRowValue(), ExcelUtil.DEFAULT_DELIMITER)).find();\n\t}",
"@Override\n\tpublic boolean moveLeft() {\n\t\tboolean rs = super.moveLeft();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}",
"@Override\n public float getBorderWidth() {\n return mBorderWidth;\n }",
"public boolean isHorizontal(CoordinateImpl coordinate) { return coordinate.rank == rank;}",
"boolean reachedEdge() {\n\t\treturn this.x > parent.width - 30;// screen width including the size of\n\t\t\t\t\t\t\t\t\t\t\t// the image\n\t}",
"boolean borderCountryNeedsHelp(Country border)\n\t{\n\treturn (border.getArmies() <= borderForce) && ! weOwnContsArround(border);\n\t}",
"private boolean onaryLeft(WAVLNode z) {\n\t if(z.left.rank!=-1) {\r\n\t\t return true;\r\n\t }\r\n\t return false;\r\n }",
"private boolean isBricksLeft(int bricksOnStage) {\n return bricksOnStage == 0;\n }"
]
| [
"0.7739835",
"0.762752",
"0.7322745",
"0.69876766",
"0.6780817",
"0.6754038",
"0.6620488",
"0.6552686",
"0.652473",
"0.6455028",
"0.64260256",
"0.63826996",
"0.63600487",
"0.6290656",
"0.6287215",
"0.62861",
"0.62689036",
"0.6247225",
"0.62384397",
"0.6227866",
"0.6214456",
"0.61812985",
"0.61606026",
"0.615773",
"0.6146077",
"0.61278266",
"0.6112228",
"0.60960793",
"0.6081785",
"0.6075707",
"0.600716",
"0.60030156",
"0.59882224",
"0.5971991",
"0.5968765",
"0.59551054",
"0.5954625",
"0.59307706",
"0.59296316",
"0.59267074",
"0.59004056",
"0.5892308",
"0.5890081",
"0.5876448",
"0.58758914",
"0.5856145",
"0.5849926",
"0.5837281",
"0.5837175",
"0.58301973",
"0.58249104",
"0.5818274",
"0.58141214",
"0.5805949",
"0.57935154",
"0.5784192",
"0.57840693",
"0.5781796",
"0.5781684",
"0.57751995",
"0.5734552",
"0.5721438",
"0.5715048",
"0.5698345",
"0.5687705",
"0.56790125",
"0.5652222",
"0.5647619",
"0.564052",
"0.5630469",
"0.5618289",
"0.5615109",
"0.5589818",
"0.5577831",
"0.5573833",
"0.55629224",
"0.5558612",
"0.55568385",
"0.5555715",
"0.55482936",
"0.5547325",
"0.554554",
"0.55329466",
"0.5527535",
"0.55225176",
"0.55020607",
"0.5490719",
"0.5484731",
"0.5484465",
"0.5481961",
"0.547852",
"0.54782116",
"0.5466814",
"0.5463732",
"0.5462567",
"0.5462322",
"0.5458235",
"0.54576737",
"0.5457033",
"0.5455453"
]
| 0.6356582 | 13 |
return false if outside bounds | protected boolean isInside(int x, int y){
if(x <= super.getLocationX())
return false;
if(x >= (super.getLocationX() + super.getWidth() - 1))
return false;
if(y <= super.getLocationY())
return false;
if(y >= (super.getLocationY() + super.getHeight() - 1))
return false;
//return true if inside
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}",
"public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }",
"private boolean hasValidBounds() {\n\n\n\n return false;\n }",
"private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }",
"private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }",
"public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }",
"private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }",
"private boolean cell_in_bounds(int row, int col) {\n return row >= 0\n && row < rowsCount\n && col >= 0\n && col < colsCount;\n }",
"public boolean outOfRange(){\r\n\t\t\treturn (shape.x <=0 ? true : false);\r\n\t\t}",
"@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }",
"boolean isBound();",
"boolean isIncludeBounds();",
"public abstract boolean isOutOfBounds(int x, int y);",
"private boolean isInBounds(int i, int j)\n {\n if (i < 0 || i > size-1 || j < 0 || j > size-1)\n {\n return false;\n }\n return true;\n }",
"private boolean isInBound(int current, int bound){\n return (current >= 0 && current < bound);\n }",
"private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }",
"private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}",
"@Override\n public boolean inBounds(int x, int y) {\n return x >= 0 && y >= 0 && x < this.bounds.width\n && y < this.bounds.height;\n }",
"private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }",
"private boolean checkInBounds(int startX, int startY, int finalX, int finalY) {\r\n\t\treturn startX < 0 || startX >= this.SIZE || startY < 0 || startY >= this.SIZE\r\n\t\t\t\t|| finalX < 0 || finalX >= this.SIZE || finalY < 0 || finalY >= this.SIZE;\r\n\t}",
"private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }",
"public static boolean insideBounds(GameTile tile) {\n\n if (tile == null) {\n return false;\n } else {\n\n int x = tile.getXCoord();\n int y = tile.getYCoord();\n\n return !(x < 0 || y < 0) && !(x > TILE_COLS || y > TILE_ROWS);\n\n }\n\n }",
"private boolean isOutOfBounds(int row, int col) {\n if (row < 0 || row >= this.getRows()) {\n return true;\n }\n else if (col < 0 || col >= this.getColumns()) {\n return true;\n }\n else {\n return false; // the placement is valid\n }\n }",
"public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }",
"private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}",
"private boolean outOfBounds(int nidx1){\n\t\treturn (nidx1 < 0 || nidx1 >= numofvert);\n\t}",
"public boolean detectBound(){\n if(posX < 10){\n posX = 10;\n velX = 0;\n accX = 0;\n return true;\n }\n else if(posX > width - 10){\n posX = width - 10;\n velX = 0;\n accX = 0;\n return true;\n }\n if(posY < 10){\n posY = 10;\n velY = 0;\n accY = 0;\n return true;\n }\n else if(posY > height - 10){\n posY = height - 10;\n velY = 0;\n accY = 0;\n return true;\n }\n return false;\n }",
"public boolean inRange(){\n //System.out.println(\"inRange\");\n return Math.abs(GameView.instance.player.position.x - creationPoint.x) < GameView.instance.cameraSize * attackRange;\n }",
"private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}",
"public boolean inBound(int x, int y) {\n\n if (x < 0 || x >= boardSize.x || y < 0 || y >= boardSize.y) {\n return false;\n } else {\n return true;\n }\n }",
"protected boolean checkRep() {\n if ( this.getX() < 0 || this.getY() < 0 || this.getX() >= 20 || this.getY() >= 20 ) {\n return false;\n }\n return true;\n }",
"private boolean withinGridDimensions(int startX, int startY, int endX, int endY) {\n boolean within = true;\n int largerX = Math.max(startX, endX);\n int smallerX = Math.min(startX, endX);\n int largerY = Math.max(startY, endY);\n int smallerY = Math.min(startY, endY);\n \n if (smallerX < 1 || smallerY < 1 || largerX > GRID_DIMENSIONS || largerY > GRID_DIMENSIONS) {\n within = false;\n }\n \n return within;\n }",
"private boolean checkOverlap(int row, int col, int length){\n \tif(!inBounds(row,col)){\n \t\treturn false;\n \t}\n \tfor(int i = row; i < row + length; i++ ){\n\t\t\tfor(int j = col; j < col + length; j++){\n\t\t\t\tif(grid[i][col] == 1 || row + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t\tif(grid[row][j] == 1 || col + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t}\n \t\t\n \t}\n \treturn true;\n }",
"@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}",
"private boolean arrayBounds (int index, int max) {\n\t\treturn (index >= 0 && index < max );\n\t}",
"public boolean withinBounds(int target_row, int target_col) {\n\r\n if (target_row < 0 || target_row > size - 1 || target_col < 0 || target_col > size - 1) {\r\n return false;\r\n }\r\n return isOpen(target_row, target_col) || isFull(target_row, target_col);\r\n }",
"@Override\n\tpublic boolean checkBoundary(float x) {\n\t\tif (!(x >= MINRANGE && x <= MAXRANGE)) {\n\t\t\treturn false;\n\t\t}\n\t\t// if in the range [-512.03, 511.97]\n\t\treturn true;\n\t}",
"private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }",
"public boolean isOutOfBound(int actionVal, int row, int col)\n\t\t{\n\t\t\tif( (actionVal == UP && row == 0) || ( actionVal == LEFT && col == 0) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if( (actionVal == DOWN && row == utilities.length-1) || (actionVal == RIGHT && col == utilities[0].length-1) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\t\n\t\t}",
"public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}",
"public boolean validateFullBounds() {\n\t\tcomparisonBounds = getUnionOfChildrenBounds(comparisonBounds);\n\t\n\t\tif (!cachedChildBounds.equals(comparisonBounds)) {\n\t\t\tsetPaintInvalid(true);\n\t\t}\n\t\treturn super.validateFullBounds();\t\n\t}",
"public boolean isOutOfBound(int actionVal, int row, int col)\n\t\t{\n\t\t\tif( ( actionVal == UP && row == 0) || ( actionVal == LEFT && col == 0) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if( ( actionVal == DOWN && row == rewards.length-1) || ( actionVal == RIGHT && col == rewards[0].length-1) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\t\n\t\t}",
"private boolean isWithinBounds(Point3D point) {\n // Check if point is above min bounds\n if (point.getX() < minBounds.getX() || point.getY() < minBounds.getY() || point.getZ() < minBounds.getZ()) {\n return false;\n }\n // Check if point is below max bounds\n if (point.getX() > maxBounds.getX() || point.getY() > maxBounds.getY() || point.getZ() > maxBounds.getZ()) {\n return false;\n }\n return true;\n }",
"private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }",
"private boolean checkIndexBounds(int idx) {\n return (idx >= 0) && (idx <= this.length);\n }",
"boolean hasDestRange();",
"public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }",
"public int isInBounds(T a);",
"private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isInBounds( int row, int col ) {\n return row >= 0 && col >= 0 && row < mat.getNumRows() && col < mat.getNumCols();\n }",
"private static boolean isInBounds(Location location, Vector3i min, Vector3i max) {\n return location.getX() >= min.x && location.getX() < max.x && location.getY() >= min.y\n && location.getY() < max.y && location.getZ() >= min.z && location.getZ() < max.z;\n }",
"private boolean withinRange(Enemy e) {\n \t\tRect r = e.r; //Get the collision box from the \n \t\tPoint rectCenter = new Point((int) r.exactCenterX(), (int) r.exactCenterY());\n \t\tif (Math.abs(center.x - rectCenter.x) <= (e.getSize()/2 + range)) {\n \t\t\tif (Math.abs(center.y - rectCenter.y) <= (e.getSize()/2 + range)) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t\treturn false;\t\n \t}",
"boolean judgeValid()\r\n\t{\r\n\t\tif(loc.i>=0 && loc.i<80 && loc.j>=0 && loc.j<80 && des.i>=0 && des.i<80 && des.j>=0 && des.j<80)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}",
"public boolean isOutsideLimits(int value) {\n return value < lowerLimit || value > upperLimit;\n }",
"private boolean isInRange(int c) {\n switch (border) {\n case between:\n return min <= c && c <= max;\n case min:\n return min <= c;\n case max:\n return c <= max;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + border);\n }\n }",
"private boolean inBounds(int deltaRow, int deltaCol) {\n boolean row = false;\n boolean col = false;\n\n if (lastPlacedRow + deltaRow < NUM_ROWS && lastPlacedRow + deltaRow >= 0) {\n row = true;\n }\n if (lastPlacedCol + deltaCol < NUM_COLS && lastPlacedCol + deltaCol >= 0) {\n col = true;\n }\n\n return row && col;\n }",
"private boolean isValidPosition(Point pos){\r\n return (0 <= pos.getFirst() && pos.getFirst() < 8 && \r\n 0 <= pos.getSecond() && pos.getSecond() < 8);\r\n }",
"private boolean isFullWest()\r\n\t{\r\n\t\treturn (westElem == maxSize);\r\n\t}",
"public boolean hitTarget(MouseEvent e) {\n\t\treturn (e.getX() > coord.x && e.getX() < endCoord.x && e.getY() > coord.y && e.getY() < endCoord.y);\n\t}",
"public boolean inBounds(Board board) {\n return row >= 0 && column >= 0\n && row < board.nQueens && column < board.nQueens;\n }",
"private boolean checkRange(final int index) {\n if ((index > size) || (index < 0)) {\n return false;\n }\n return true;\n }",
"private boolean isValid() {\n // If start is greater or equal to end then it's invalid\n return !(start.compareTo(end) >= 0);\n }",
"protected boolean inClipping(Rectangle clipping, Rectangle r) {\n if (r.x + r.width <= clipping.x) {\n return false;\n }\n if (clipping.x + clipping.width <= r.x) {\n return false;\n }\n if (r.y + r.height <= clipping.y) {\n return false;\n }\n if (clipping.y + clipping.height <= r.y) {\n return false;\n }\n return true;\n }",
"private static boolean checkOutside(float [][] myBox, float[][] otherBox)\n {\n vloop:\n for (int v = 0; v < 4; v++)\n {\n int v1 = (v + 1) & 3; // wrap at 4 back to 0\n float edgeX = myBox[v][0] - myBox[v1][0];\n float edgeY = myBox[v][1] - myBox[v1][1];\n float reX = -edgeY;\n float reY = edgeX;\n \n if (reX == 0.0 && reY == 0.0)\n {\n continue vloop;\n }\n \n for (int e = 0; e < 4; e++)\n {\n float scalar = reX * (otherBox[e][0] - myBox[v1][0])\n + reY * (otherBox[e][1] - myBox[v1][1]);\n if (scalar < 0)\n {\n continue vloop;\n }\n }\n \n // If we got here, we have an edge with all vertexes from the\n // other rect on the outside:\n return true;\n }\n \n return false;\n }",
"public boolean isPositionInBounds(Vector vector) {\n\t\tif (vector == null) {\n\t\t\tthrow new NullPointerException();\n\t\t} else {\n\t\t\treturn vector.getX() < size && vector.getY() < size && vector.getX() >=0 && vector.getY() >= 0;\n\t\t}\n\t}",
"public boolean isPositionValid(){\n\t\t//check overlapping with walls\n\t\tfor(Wall wall : Game.gameField.getWalls()){\n\t\t\tif(wall.overlaps(center))\n\t\t\t\treturn false;\n\t\t}\n\t\t//check overlapping with other balls\n\t\tfor(Ball ball : Game.gameField.getBalls()){\n\t\t\tif(ball == this)\n\t\t\t\tcontinue;\n\t\t\tif(ball.getCenterPoint().distance(center) < RADIUS * 2)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn GameField.FIELD.contains(center);\n\t}",
"public boolean enemyOutOfBounds() {\n return (position.x < 0\n || position.x + TYPE_A_WIDTH > World.WORLD_WIDTH\n || position.y < 0\n || position.y + TYPE_A_HEIGHT > World.WORLD_HEIGHT);\n }",
"Boolean CheckForLimit(float xVal, float yVal) {\n double xCalc = Math.pow(xVal - this.oval.centerX(), 2) / Math.pow((this.oval.width() / 2), 2);\n double yCalc = Math.pow(yVal - this.oval.centerY(), 2) / Math.pow((this.oval.height() / 2), 2);\n xCalc += yCalc;\n if (xCalc <= 1) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}",
"private boolean rightBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) > Constants.APP_WIDTH;\n }",
"public boolean isInBounds(int x, int y) {\r\n boolean check = false;\r\n if (x>=0 && x<this.width && y>=0 && y<this.tiles.length/this.width) {\r\n check = true;\r\n }\r\n return check;\r\n }",
"private boolean validateOutOfRangeCoordinate() throws IOException {\n int maxValue = Integer.parseInt(Objects.requireNonNull(FileUtils.getProperty(\"max-coordinate-value\")));\n return (Math.abs(getX()) > maxValue) || (Math.abs(getY()) > maxValue);\n }",
"public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }",
"private boolean isLegalPos(int row, int col){\r\n return !(row < 0 || row > 7 || col < 0 || col > 7);\r\n }",
"public boolean detectBound(){\n // super.detectBound();\n if(posY > height || posY < 0){\n Main.enemies.remove(this);\n return true;\n }\n return false;\n\n }",
"protected boolean validCoord(int row, int col) {\n\t\treturn (row >= 0 && row < b.size() && col >= 0 && col < b.size());\n\t}",
"private static boolean checkTaskBounds(int task) {\r\n\t\t\tboolean isInBound;\r\n\t\t\t\r\n\t\t\tif ((task < 0) || (task > 7)) {\r\n\t\t\t\t//isInBound = false;\r\n\t\t\t\tif (task == -1) {\r\n\t\t\t\t\tisInBound = true;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tisInBound = false;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tisInBound = true;\r\n\t\t\t}\r\n\t\t\treturn isInBound;\r\n\t\t}",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"private boolean isWithinBounds(int y) {\n Rectangle displayBounds = getBoundsFramingCalls(0, mCallCount);\n if (y < displayBounds.y) {\n return false;\n }\n\n if (y > (displayBounds.y + displayBounds.height)) {\n return false;\n }\n\n return true;\n }",
"public boolean isWithinBounds(int x, int y) {\n\t\tif (x < 0 || x >= this.width)\n\t\t\treturn false;\n\n\t\tif (y < 0 || y >= this.height)\n\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"boolean inBoundingBox(Coord pos) {\n\t\treturn min(from.x, to.x) <= pos.x && pos.x <= max(from.x, to.x)\n\t\t\t\t&& min(from.y, to.y) <= pos.y && pos.y <= max(from.y, to.y);\n\t}",
"public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }",
"public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }",
"public boolean inRange(int row, int col) {\n\t /*if the given row and col is less than 0 or greater than the maximum number, return false*/\n\t if(row < 0 || row >= this.row || col < 0 || col >= this.col) {\n\t\t return false;\n\t }\n\t /*return true if it's valid*/\n\t else {\n\t\t return true;\n\t }\n }",
"private boolean rangeCheck(int i){\n return i >= 0 && i < size;\n }",
"public boolean isInsideLimits(int value) {\n return value > lowerLimit && value < upperLimit;\n }",
"private boolean outOfRange(double i, double e, int threshold) {\n\n\t\tdouble lowerBound = e / (double) threshold;\n\t\tdouble upperBound = e * (double) threshold;\n\n\t\treturn ((i < lowerBound) || (i > upperBound));\n\t}",
"private boolean isOutsideParameters(HudPosition hudPosition, int x, int y) {\n int width = x + hudPosition.getWidth();\n int height = y + hudPosition.getHeight();\n\n int[] dimensions = this.getScreenDimensions();\n\n if (width > dimensions[0] - 5) {\n return true;\n\n } else if (height > dimensions[1] - 5) {\n return true;\n\n } else if (hudPosition.getX() < 5) {\n return true;\n\n } else return hudPosition.getY() < 5;\n }",
"public boolean isInOverflow() {\n \tif (overflow == true){\n \t\treturn true;\n \t}\n \telse{\n \t\treturn false;\n \t}\n }",
"public boolean isValid() {\n\t\treturn (x >= 0 && x < Board.SIZE && y >= 0 && y < Board.SIZE);\n\t}",
"private boolean hasReachedBottom() {\n\t\tfor (Segment s:this.getHorizontalProjection().getShapeSegments()){\n\t\t\t\n\t\t\tHeightProfile hs = this.grid.heightAt(s);\n\t\t\t\n\t\t\tfor (int h : hs){\n\t\t\t\t\n\t\t\t\tif (this.bottomLeft.getY() <= h){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canWalk() {\n\t\treturn rangeBottomLeft != null && !rangeBottomLeft.equals(location)\n\t\t\t\t&& rangeTopRight != null && !rangeTopRight.equals(location);\n\t}",
"public boolean containsExclusive(DecimalPosition position) { // TODO rename: contains\n if (position.getX() < start.getX() || position.getY() < start.getY()) {\n return false;\n }\n if (width() > 0) {\n if (position.getX() >= end.getX()) {\n return false;\n }\n } else {\n if (position.getX() > end.getX()) {\n return false;\n }\n }\n\n if (height() > 0) {\n if (position.getY() >= end.getY()) {\n return false;\n }\n } else {\n if (position.getY() > end.getY()) {\n return false;\n }\n }\n return true;\n }",
"public boolean atPosition() {\n return m_X.getClosedLoopError() < Constants.k_ToleranceX;\n }",
"private boolean isValid(int x,int y){\n\t\treturn x > -1 && y > -1 && x < width && y<height;\n\t }",
"private boolean checkRangeAddress(int address) {\r\n return (address >= startAddress && address < endAddress);\r\n }",
"private boolean isLegalCoordinate(int row, int col) {\n return row > 0 && row <= getSize() && col > 0 && col <= getSize();\n }",
"public boolean isValid(){\n\t\tif (bigstart != null && bigend != null){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean inBounds(Rectangle bounds)\n\t{\n\t\treturn bounds.contains(mX, mY);\n\t}",
"private boolean isNearToEndPosition() {\n switch (direction) {\n case UP:\n return posY <= endPosition;\n case DOWN:\n return posY >= endPosition;\n case LEFT:\n return posX <= endPosition;\n case RIGHT:\n return posX >= endPosition;\n }\n throw new RuntimeException(\"Unknown position\");\n }",
"public isWithin() {\n\t\tsuper();\n\t}"
]
| [
"0.7941812",
"0.7768419",
"0.7747905",
"0.7745556",
"0.7627308",
"0.7591391",
"0.7566876",
"0.7437833",
"0.74342835",
"0.7407642",
"0.7358169",
"0.72749114",
"0.72644055",
"0.7244863",
"0.7122768",
"0.7100758",
"0.70978034",
"0.70915955",
"0.7090985",
"0.70799536",
"0.70718884",
"0.700441",
"0.700082",
"0.6968617",
"0.69586134",
"0.6956037",
"0.6950905",
"0.69258666",
"0.6901223",
"0.68819773",
"0.68815625",
"0.6866201",
"0.68658",
"0.686545",
"0.68398476",
"0.6832558",
"0.683099",
"0.6830756",
"0.68212956",
"0.6798806",
"0.6798806",
"0.6787455",
"0.6747206",
"0.67464095",
"0.67451906",
"0.6733217",
"0.6731432",
"0.67219126",
"0.6720908",
"0.67076916",
"0.6704691",
"0.6662258",
"0.66537124",
"0.6647514",
"0.66179687",
"0.66054446",
"0.6588318",
"0.6574841",
"0.6567612",
"0.6558032",
"0.6556662",
"0.65533066",
"0.6544281",
"0.6540153",
"0.6538433",
"0.65316075",
"0.652205",
"0.65218866",
"0.6496525",
"0.6491678",
"0.6489285",
"0.64890504",
"0.64835465",
"0.64760846",
"0.6472175",
"0.64499635",
"0.6443015",
"0.644274",
"0.64411074",
"0.6429874",
"0.6427055",
"0.6412112",
"0.6412112",
"0.640565",
"0.6403581",
"0.63846767",
"0.63820726",
"0.638101",
"0.63730687",
"0.6365934",
"0.6357888",
"0.6352363",
"0.6343587",
"0.63409203",
"0.6337378",
"0.6336922",
"0.6332112",
"0.6327377",
"0.6318211",
"0.6317101",
"0.63144404"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String strreplace(String str, char oldchar, char newchar) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String strreplace(String str, String oldstr, String newstr) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String strreplace(String str, int start, int end, String with) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String strindexOf(String str, char ch) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String strindexOf(String str, String strsr) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
TODO: This should depend on whether the column name was quoted in the original sql query | @Override
public String sqlQualifiedColumn(String tablename, String columnname) {
return String.format("%s.\"%s\"", tablename, columnname);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected String getColNamesQuery(String tableName) {\n return \"SELECT t.* FROM \" + escapeTableName(tableName) + \" AS t LIMIT 1\";\n }",
"private String getNormalisedColumnName(String columnName) {\n\t\t// Avoid double-quotes - if a column name is in quotes, then PG will\n\t\t// add more quotes around it causing the query to fail\n\t\t//\n\t\tif (columnName.startsWith(\"\\\"\") && columnName.endsWith(\"\\\"\")) {\n\t\t\tcolumnName = columnName.substring(1, columnName.length() - 1);\n\t\t}\n\t\treturn columnName;\n\t}",
"java.lang.String getSourceColumnName();",
"public String getAliasedEscapedColumnName() {\n return this.getEscapedColumnName();\n }",
"public String getAliasedEscapedColumnName() {\n return this.getEscapedColumnName();\n }",
"public String getAliasedEscapedColumnName() {\n return this.getEscapedColumnName();\n }",
"public String getAliasedEscapedColumnName() {\n return this.getEscapedColumnName();\n }",
"public String getAliasedEscapedColumnName() {\n return this.getEscapedColumnName();\n }",
"public String getAliasedEscapedColumnName() {\n return this.getEscapedColumnName();\n }",
"public String getAliasedEscapedColumnName() {\n return this.getEscapedColumnName();\n }",
"java.lang.String getColumn();",
"@Override\r\n\tpublic String[] getCol(String[] sql) {\n\t\treturn null;\r\n\t}",
"protected String processGeneratedSql( String sql ) {\n return sql;\n }",
"@Override\n public String getPlaceholderValueString(Column col) {\n return super.getPlaceholderValueString(col) + \" AS \"\n + getTypeName(col);\n }",
"private void appendColumnName() {\n appendColumnNames(joinQueryInputs.columns, true);\n }",
"@Test\n public void testAliasedTableColumns()\n {\n assertEquals(\n runner.execute(\"SELECT * FROM orders AS t (a, b, c, d, e, f, g, h, i)\"),\n runner.execute(\"SELECT * FROM orders\"));\n }",
"public DatabaseQueryColumn(String name) {\n this.formula = null;\n this.name = name;\n }",
"@Override\n\tpublic String sqlQuote(String name) {\n\t\treturn String.format(\"\\\"%s\\\"\", name);\n//\t\treturn name;\n\t}",
"private static TextColumnBuilder getColumnByNameField(String nameField){ \n return drColumns.get(nameField);\n }",
"String getColumnField(String javaField) throws NullPointerException;",
"private String getAllColumnName() {\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\t// .append(COLUMN_id).append(\"=?,\").\n\t\tbuilder.append(\"user_id\").append(\"=?,\");\n\t\tbuilder.append(\"lib_book_id\").append(\"=?,\");\n\t\tbuilder.append(\"lending_date\").append(\"=?,\");\n\t\tbuilder.append(\"return_date\").append(\"=?,\");\n\t\tbuilder.append(\"returned_date\").append(\"=?,\");\n\t\tbuilder.append(\"status\").append(\"=?\");\n\t\t\n\t\treturn builder.toString();\n\t}",
"List<Column> getQueryColumns();",
"String getColumnName();",
"public String escapeColName(String colName) {\n return colName;\n }",
"public String getSQL() {\n return query.getSQL();\n }",
"protected String getSelectSQLWithKey(String key) {\n\t\treturn queryData.getString(\"SelectSQLWithKeySQL\").replace(\"key!\", key);\n\t}",
"public boolean referenceColumnInSql() {\n return false;\n }",
"private Set parseSQL(String sqlin){\r\n \tSet columnProposals = new HashSet();\r\n \t//Find the end of \"SELECT\" and the start of \"FROM\"\r\n \t//if you dont find SELECT run away\r\n \tint selectStartPos = sqlin.toLowerCase().indexOf(\"select\", 0);\r\n \tint fromStartPos = sqlin.toLowerCase().indexOf(\"from\", 0);\r\n \tif(selectStartPos == -1){\r\n \t\treturn null;\r\n \t}\r\n \tif(fromStartPos == -1){\r\n \t\treturn null;\r\n \t}\r\n \t\r\n \t//Ok, so we found a SELECT and a FROM, lets get the middle bit!\r\n \tString allColumns = sqlin.substring(selectStartPos + (\"select\").length(), fromStartPos).trim();\r\n \tString[] columnArray = allColumns.split(\",\");\r\n \t\r\n \tfor(int i=0; i<columnArray.length; i++){\r\n \t\tString column = columnArray[i].trim();\r\n \t\t//We need to find if it has an AS\r\n \t\t\r\n \t\tint findAS = column.toLowerCase().indexOf(\" as \", 0);\r\n \t\t\r\n \t\tif(findAS != -1){\r\n \t\t\tcolumn = column.substring(findAS + 4, column.length()).trim();\r\n \t\t}\r\n \t\tcolumnProposals.add(column);\r\n \t}\r\n \treturn columnProposals;\r\n }",
"String getSafeSql(String name);",
"private String produceSQL(String[] cols) {\n StringBuffer buffer = new StringBuffer();\n buffer.append('(');\n buffer.append(cols[0]);\n\n for (int i = 1; i < cols.length; i++){\n buffer.append(',');\n buffer.append(cols[i]);\n }\n buffer.append(')');\n return buffer.toString();\n }",
"public String [] getColumnNamesForQuery(String query) {\n LOG.error(\"This database does not support free-form query column names.\");\n return null;\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"public String getEscapedColumnName() {\n if (this.isColumnNameDelimited) {\n return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();\n } else {\n return this.column;\n }\n }",
"String escapeFlatStorageColumn(String column);",
"String getCursorRecAccessSql(String fieldName);",
"public Column getColumn(String columnName);",
"ColumnOperand createColumnOperand();",
"public Object getResult(ResultSet rs, String columnName) throws SQLException;",
"public static String sqlCommandFilter(String sqlCommand){\n\t\treturn sqlCommand;\n\t\t}",
"protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }",
"protected String getSQLString() {\n \t\treturn queryTranslator.getSQLString();\n \t}",
"public String getColumnName();",
"SqlColumns(String columnName){\n\t\t\t this.columnName = columnName; \n\t\t}",
"@Override\n public String getPreparedStatementQuery() throws SQLException {\n StringBuilder sb = new StringBuilder();\n\n String statementQuery = getStatementQuery();\n\n // iterate over the characters in the query replacing the parameter placeholders\n // with the actual values\n int currentParameter = 0;\n for( int pos = 0; pos < statementQuery.length(); pos ++) {\n char character = statementQuery.charAt(pos);\n if( statementQuery.charAt(pos) == '?' && currentParameter < getParameterCount()) {\n // replace with parameter value\n boolean shouldQuote = true;\n switch( parameterMetaData.getParameterType(currentParameter+1)) {\n case Types.BIT:\n case Types.TINYINT:\n case Types.SMALLINT:\n case Types.INTEGER:\n case Types.BIGINT:\n case Types.FLOAT:\n case Types.REAL:\n case Types.DOUBLE:\n case Types.NUMERIC:\n case Types.DECIMAL:\n case Types.BOOLEAN:\n shouldQuote = false;\n }\n if( parameterValues.get(currentParameter) == null) {\n sb.append(\"NULL\");\n } else {\n if( shouldQuote ) {\n sb.append(\"'\");\n }\n sb.append(parameterValues.get(currentParameter));\n if( shouldQuote ) {\n sb.append(\"'\");\n }\n }\n currentParameter++;\n } else {\n sb.append(character);\n }\n }\n\n return sb.toString();\n }",
"protected String getByColumn(boolean all, String table_name, String column_name, String name)\n\t{\n\t\tStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString result = \"\";\n\t\tif(!table_name.equals(\"\"))\n\t\t{\n\t\t\t// initializing the query statement\n\t\t\ttry {statement = connection.createStatement();} \n\t\t\tcatch (SQLException e) {}\n\t\t\t\n\t\t\t\t\t\n\t\t\t// executing query to database\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tif(all) // Check if we need to get all the data on this column\n\t\t\t\t{\n\t\t\t\t\trs = statement.executeQuery(\"SELECT \" + column_name + \" FROM \" + table_name + \"\");\n\t\t\t\t\twhile(rs.next()) result = rs.getString(column_name);\n\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trs = statement.executeQuery(\"SELECT \" + column_name + \" FROM \" + table_name + \" WHERE name = \\\"\" + name + \"\\\"\");\n\t\t\t\t\twhile(rs.next()) result = rs.getString(column_name); // Putting the data in result variable to be return\n\t\t\t\t}\n\n\t\t\t} catch (SQLException e) {e.printStackTrace();}\n\t\t}\n\n\t\treturn result;\n\t}",
"public String getSql() {\r\n String[] splitSql = this.origSql.split(\"\\\\Q\" + IN_PARAM_ESC + \"\\\\E\");\r\n StringBuffer compSql = new StringBuffer(splitSql[0]);\r\n Integer key = null;\r\n String value = IN_PARAM_ESC;\r\n for (int i = 1; i < splitSql.length && this.inMaxSqlLength(compSql.length()); i++) {\r\n key = new Integer(i);\r\n value = IN_PARAM_ESC;\r\n if (this.paramMap.containsKey(key)) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n compSql.append(splitSql[i]);\r\n }\r\n key = new Integer(splitSql.length);\r\n value = this.origSql.lastIndexOf(IN_PARAM_ESC) == (this.origSql.length() - 1) ?\r\n IN_PARAM_ESC : \"\";\r\n if (this.paramMap.containsKey(key) && this.inMaxSqlLength(compSql.length())) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n \r\n if (!this.inMaxSqlLength(compSql.length())) {\r\n compSql.delete(this.maxSqlLength, compSql.length());\r\n compSql.append(INCOMPLETE);\r\n }\r\n \r\n return compSql.toString();\r\n }",
"RelDataType getColumnType(String sql);",
"public abstract String toSQL();",
"private static String buildSelectQuery(final String aTableName,\r\n final String aColumnName,\r\n final String aWhere) {\r\n assertArg(!StringUtility.isBlank(aTableName), pTABLE_NAME, aTableName);\r\n assertArg(!StringUtility.isBlank(aColumnName), pCOLUMN_NAME, aColumnName);\r\n StringBuffer buf = new StringBuffer(64);\r\n buf.append(pSQL_SELECT).append(aColumnName);\r\n buf.append(pSQL_FROM).append(aTableName);\r\n appendWhere(buf, aWhere);\r\n return buf.toString();\r\n }",
"protected String getSelectSQL() {\n\t\treturn queryData.getString(\"SelectSQL\");\n\t}",
"protected String getSQL (Element sql) {\r\n\r\n //local variables\r\n\r\n String SQL = \"\";\r\n\r\n //code description\r\n \r\n NodeList textlist = sql.getChildNodes();\r\n for (int i = 0; i < textlist.getLength(); i++) {\r\n if (textlist.item(i).getNodeType() == Node.TEXT_NODE) {\r\n SQL += textlist.item(i).getNodeValue();\r\n }\r\n }\r\n return SQL;\r\n\r\n }",
"@Test void testInterpretOrder() {\n final String sql = \"select y\\n\"\n + \"from (values (1, 'a'), (2, 'b'), (3, 'c')) as t(x, y)\\n\"\n + \"order by -x\";\n sql(sql).withProject(true).returnsRows(\"[c]\", \"[b]\", \"[a]\");\n }",
"String toSql();",
"@Override\r\n\tpublic String getCondition(String[] sql) {\n\t\treturn sql[4];\r\n\t}",
"public int findColumn(String sql, int end) {\n String extraChars = \"'`\\\".\";\n int pos = end - 1;\n char c;\n \n while (pos >= 0) {\n c = sql.charAt(pos);\n if (!Character.isJavaIdentifierPart(c) && extraChars.indexOf(c) < 0) {\n pos++;\n break;\n }\n pos--;\n }\n if (pos < end) {\n return pos;\n } else {\n return -1;\n }\n }",
"String getMetadataSelectClause();",
"ColumnOrAlias createColumnOrAlias();",
"String getColumn();",
"@Override\n protected String getColumnNameForMetadata(String columnName) {\n return (columnName == null) ? \"%\" : super\n .getColumnNameForMetadata(columnName);\n }",
"public static String getColumnSql(SessionInfoProvider prov, \n TableColumnInfo colInfo, \n String sourceTableName,\n String destTableName) \n throws UserCancelledOperationException, MappingException \n {\n String columnName = colInfo.getColumnName();\n if (_prefs.isCheckKeywords()) {\n checkKeyword(prov.getCopyDestSession(), destTableName, columnName);\n }\n StringBuilder result = new StringBuilder(columnName);\n boolean notNullable = colInfo.isNullable().equalsIgnoreCase(\"NO\");\n String typeName = ColTypeMapper.mapColType(prov.getCopySourceSession(), \n prov.getCopyDestSession(), \n colInfo,\n sourceTableName,\n destTableName);\n result.append(\" \");\n result.append(typeName);\n if (notNullable) {\n result.append(\" NOT NULL\");\n } else {\n ISession destSession = prov.getCopyDestSession();\n HibernateDialect d = \n DialectFactory.getDialect(DialectFactory.DEST_TYPE, \n destSession.getApplication().getMainFrame(), \n destSession.getMetaData());\n String nullString = d.getNullColumnString().toUpperCase();\n result.append(nullString);\n }\n return result.toString();\n }",
"@Override\n public String joinKeyColumnName(\n String joinedColumn, String joinedTable\n ) {\n return super.joinKeyColumnName(joinedColumn, joinedTable);\n }",
"public <T> List<T> queryColumn(String columnName, String sql) throws SQLException {\n return queryColumn(columnName, sql, (Object[])null);\n }",
"@Test\n public void selectAllDeletedColumns() {\n String[] retArray = {\n \"3,30000.0,null,30000\", \"4,4.0,4,null\",\n };\n\n String[] columnNames = {\"root.sg1.d1.s1\", \"root.sg1.d1.s2\", \"root.sg1.d1.s3\"};\n\n try (Connection connection = EnvFactory.getEnv().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet =\n statement.executeQuery(\"select s1, s2, s3 from root.sg1.d1 where time <= 4\")) {\n\n ResultSetMetaData resultSetMetaData = resultSet.getMetaData();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 1; i <= resultSetMetaData.getColumnCount(); i++) {\n map.put(resultSetMetaData.getColumnName(i), i);\n }\n assertEquals(columnNames.length + 1, resultSetMetaData.getColumnCount());\n int cnt = 0;\n while (resultSet.next()) {\n StringBuilder builder = new StringBuilder();\n builder.append(resultSet.getString(1));\n for (String columnName : columnNames) {\n int index = map.get(columnName);\n builder.append(\",\").append(resultSet.getString(index));\n }\n assertEquals(retArray[cnt], builder.toString());\n cnt++;\n }\n assertEquals(retArray.length, cnt);\n } catch (SQLException e) {\n e.printStackTrace();\n fail(e.getMessage());\n }\n }",
"protected abstract String getFavoriteColumnName();",
"public String getColumnName() {\n return columnName; \n }",
"private String getColumnName(org.hibernate.mapping.Column column) {\n return m_dbSpecificMappingInfo.getTruncateInfo().truncateColumnName(column.getName().toLowerCase());\n }",
"@Override\n\tpublic long getColumnId() {\n\t\treturn _expandoColumn.getColumnId();\n\t}",
"private String createSelectQuery(String field) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"SELECT\");\n\t\tsb.append(\" * \");\n\t\tsb.append(\" FROM \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" WHERE \" + field + \" =?\");\n\t\treturn sb.toString();\n\t}",
"String getNativeQuery();",
"private String createSelectQuery(String field)\n {\n StringBuilder sb = new StringBuilder();\n sb.append(\"SELECT \");\n sb.append(\" * \");\n sb.append(\" FROM \");\n sb.append(type.getSimpleName());\n sb.append(\" WHERE \");\n sb.append(field);\n sb.append(\" =?\");\n return sb.toString();\n }",
"public static String formatQuery( String sqlString ) {\n StringTokenizer st= new StringTokenizer( sqlString, \"'\" );\n StringWriter sw = new StringWriter();\n \n while (st.hasMoreTokens()) {\n sw.write( st.nextToken() );\n if (st.hasMoreTokens())\n sw.write( \"''\" );\n }\n \n return sw.toString();\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 }",
"String getQueryText() {\n AdqlSyntax syntax = AdqlSyntax.getInstance();\n StringBuffer sbuf = new StringBuffer();\n if ( talias_ != null ) {\n sbuf.append( syntax.quoteIfNecessary( talias_ ) )\n .append( \".\" );\n }\n String cname = cmeta_.getName();\n sbuf.append( quote_ ? syntax.quote( cname )\n : syntax.quoteIfNecessary( cname ) );\n if ( rename_ != null ) {\n sbuf.append( \" AS \" )\n .append( syntax.quoteIfNecessary( rename_ ) );\n }\n return sbuf.toString();\n }",
"protected String buildDataQuery() {\n StringBuilder sql = new StringBuilder(\"select\");\n String delim = \" \";\n for (String vname : getColumnNames()) {\n sql.append(delim).append(vname);\n delim = \", \";\n }\n \n Element ncElement = getNetcdfElement();\n \n String table = ncElement.getAttributeValue(\"dbTable\");\n if (table == null) {\n String msg = \"No database table defined. Must set 'dbTable' attribute.\";\n _logger.error(msg);\n throw new TSSException(msg);\n }\n sql.append(\" from \" + table);\n \n String predicate = ncElement.getAttributeValue(\"predicate\");\n if (predicate != null) sql.append(\" where \" + predicate);\n \n //Order by time.\n String tname = getTimeVarName();\n sql.append(\" order by \"+tname+\" ASC\");\n \n return sql.toString();\n }",
"private ResultSet queryDatabaseForDataRow(Connection m_dbconn, String col) \n\t{\n\t\tResultSet rs = null;\n\t\tString selectStmt = \"SELECT * FROM RELATE_W_CH WHERE Ch_Name=\\\"\" + col + \"\\\"\";\n\n\t\ttry\n\t\t{\n\t\t\tStatement stmt = m_dbconn.createStatement();\n\n\t\t\trs = stmt.executeQuery(selectStmt);\n\t\t\trs.next();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn rs;\n\t}",
"@Override\r\n\tpublic String getSelect() {\n\t\treturn SQL;\r\n\t}",
"protected String in(String sql, String key){\n boolean isNeedDynamic = this.isNeedDynamic(key);\n if (isNeedDynamic) {\n LogUtils.debug(\"{} is equals to set default value, be delete\", key);\n return \" ( 1 = 1 or '1' = ?) \";\n }\n return sql;\n }",
"public String getDuplicateUpdateColumnString() {\n return null;\n }",
"public ArrayList<String> selectCommand(String query, String[] wantedColumn){\n String record = null;\n ArrayList<String> records=new ArrayList<>( );\n try (Connection conn = this.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(query)){\n // loop through the result set\n while (rs.next()) {\n record=\"\";\n for (int i = 0; i <wantedColumn.length ; i++) {\n record+=rs.getString( wantedColumn[i] ) + \"\\t\";\n }\n records.add(record);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return records;\n }",
"public String getName() { return _sqlName; }",
"protected String getDeleteByKeySQL(String key) {\n\t\treturn queryData.getString(\"DeleteByKeySQL\").replace(\"key!\", key);\n\t}",
"String replaceOnException(String sql);",
"protected ColInfo(final String sqlName) { _sqlName = sqlName; }",
"private String getColumnName( String propertyName ) {\r\n String[] s = StringExtend.toArray( propertyName, \".\", false );\r\n return s[s.length - 1];\r\n }",
"@Test\n public void whereNormalColumn() throws Exception {\n String sql = \"desc verbose select k1, e1 from db1.tbl1 lateral view explode_split(k2, \\\",\\\") tmp as e1 \"\n + \"where k1=1; \";\n String explainString = UtFrameUtils.getSQLPlanOrErrorMsg(ctx, sql, true);\n Assert.assertTrue(explainString.contains(\"1:TABLE FUNCTION NODE\"));\n Assert.assertTrue(explainString.contains(\"table function: explode_split(`k2`, ',')\"));\n Assert.assertTrue(explainString.contains(\"tuple ids: 0 1\"));\n Assert.assertTrue(explainString.contains(\"TupleDescriptor{id=1, tbl=tmp, byteSize=32, materialized=true}\"));\n Assert.assertTrue(explainString.contains(\"SlotDescriptor{id=1, col=e1, type=VARCHAR(*)}\"));\n Assert.assertTrue(explainString.contains(\"0:OlapScanNode\"));\n Assert.assertTrue(explainString.contains(\"PREDICATES: `k1` = 1\"));\n }",
"@Override\n public String[] getDropColumnSQL(Column column) {\n return new String[] { \"ALTER TABLE \"\n + getFullName(column.getTable(), false) + \" DROP \" + getColumnDBName(column) };\n }",
"public ResultSet queryRawSQL(String sql) throws SQLException{\n return mysql.query(sql);\n }",
"protected StringBuilder generateQuery() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" FROM \") \n .append(dao.getParameterClass(0).getName())\n .append(\" d WHERE (:incorrectEvent = '' OR d.incorrectEvent.id = :incorrectEvent) \")\n .append(\"AND (d.createDate BETWEEN :dateFrom AND :dateTo ) \")\n .append(\"AND ( ((:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName) \")\n .append(\" OR (:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName)) \")\n .append(\" OR (:search='' OR d.searchField LIKE :search) ) \");\n return sb;\n }",
"@Override\n\tpublic java.lang.String getName() {\n\t\treturn _expandoColumn.getName();\n\t}",
"public String getColumnName(int col) {\r\n if (columns[col] instanceof StratmasObject) {\r\n return ((StratmasObject)columns[col]).getReference().getIdentifier().trim();\r\n }\r\n else {\r\n return (String)columns[col];\r\n }\r\n }",
"public static List<String> getQuery(Connection con, String query, String ColName) throws SQLException {\n\t\t\tString columnName=null;\n\t\t\tList<String> list = new ArrayList<>();\n\t\t\t\n\t\ttry(Statement st = con.createStatement();\n\t\t\tResultSet\trs = st.executeQuery(query);) {\n\t\t\t\n\t\t\t\n\t\t\t/*ResultSetMetaData metaData = rs.getMetaData();\n\t\t\tcolumnName = metaData.getColumnName(1);\n\t\t\tSystem.out.println(columnName); */\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\tString actual = rs.getString(ColName);\n\t\t\t\tlist.add(actual);\n\t\t }\n\t\t\t\n\t\t} catch (Exception exception) {\n\t\t\tSystem.out.println(\"Failed to fetch query result\");\n\t\t\tSystem.out.println(exception);\n\t\t\tthrow exception;\n\t\t}\n\n\t\treturn list;\n\t}"
]
| [
"0.6327004",
"0.6267224",
"0.6121499",
"0.60803396",
"0.60803396",
"0.60803396",
"0.60803396",
"0.60803396",
"0.60803396",
"0.60803396",
"0.6076357",
"0.5997834",
"0.58967566",
"0.5857494",
"0.5854048",
"0.5778972",
"0.5758061",
"0.572246",
"0.5673466",
"0.5661132",
"0.5637324",
"0.56264716",
"0.5603532",
"0.5550916",
"0.55500597",
"0.5534517",
"0.55311644",
"0.55263495",
"0.5520173",
"0.5505863",
"0.55027",
"0.54998195",
"0.54998195",
"0.54998195",
"0.54998195",
"0.54998195",
"0.54998195",
"0.54998195",
"0.54998195",
"0.54998195",
"0.54998195",
"0.54998195",
"0.5477513",
"0.54347545",
"0.54079926",
"0.53945595",
"0.5373605",
"0.53517187",
"0.53515255",
"0.53408337",
"0.5330168",
"0.53298646",
"0.5315177",
"0.5314495",
"0.53109133",
"0.5303267",
"0.52920806",
"0.5277345",
"0.5253834",
"0.525094",
"0.52504045",
"0.5248896",
"0.52446365",
"0.52409846",
"0.5239095",
"0.52351564",
"0.52246654",
"0.5204504",
"0.520308",
"0.52005464",
"0.51971847",
"0.51951164",
"0.5185829",
"0.5157137",
"0.51534206",
"0.5149754",
"0.51457447",
"0.5136905",
"0.512852",
"0.5120649",
"0.5117102",
"0.5115672",
"0.51150644",
"0.51108646",
"0.5096584",
"0.5096518",
"0.5095661",
"0.5093579",
"0.509305",
"0.5082686",
"0.50794584",
"0.50779414",
"0.50762725",
"0.50730395",
"0.5067674",
"0.50671387",
"0.50621665",
"0.50602514",
"0.50596625",
"0.5058092"
]
| 0.6593792 | 0 |
TODO: This should depend on quotes in the sql in the mappings | @Override
public String sqlQuote(String name) {
return String.format("\"%s\"", name);
// return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String toSQL();",
"protected String processGeneratedSql( String sql ) {\n return sql;\n }",
"String toSql();",
"@Test\n public void test3() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' = ''Second one''',c.name) \";\n Query q = em.createQuery(jpql, Course.class);\n List<Course> courses = q.getResultList();\n Assert.assertEquals(1, courses.size());\n Assert.assertEquals(\"Second one\", courses.get(0).getCourseMapped().getName());\n\n }",
"protected String getSQLString() {\n \t\treturn queryTranslator.getSQLString();\n \t}",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }",
"public abstract String doTableConvert(String sql);",
"private String getStatement(String argSqlMapId) {\r\n\t\tif (StringUtils.isEmpty(argSqlMapId)) {\r\n\t\t\treturn argSqlMapId;\r\n\t\t} else {\r\n\t\t\tint index = argSqlMapId.lastIndexOf(\".\");\r\n\t\t\tif (index > 0) {\r\n\t\t\t\treturn argSqlMapId.substring(index + 1);\r\n\t\t\t} else {\r\n\t\t\t\treturn argSqlMapId;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"String getSafeSql(String name);",
"@RegisterRowMapper(OptionKecamatanO.Mapper.class)\npublic interface OptionKecamatanR {\n \n /**\n * Select data dari table Surabayaa\n */\n @SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();\n\n @SqlQuery(\"SELECT gid, name AS text from sby WHERE name ILIKE :keyword\")\n List<OptionKecamatanO> optionByName(String keyword);\n\n}",
"private String getSql(Map map){\n \tStringBuilder sql = new StringBuilder();\n \t\n \tsql.append(\" select account.FNumber number,REPLACE(account.FLongNumber, '!', '.') transLongNumber,account.FLongNumber longNumber,account.FName_l2 name, \");\n \tsql.append(\" account.FLevel level1,account.FIsLeaf isLeaf,account.FId id,account.FParentID parentid, \");\n \tsql.append(\" org.FId fullOrgUnitid,project.FId curProjectid \");\n \tsql.append(\" from T_FDC_CostAccount account \");\n \tsql.append(\" left join T_FDC_CurProject project ON account.FCurProject = project.FID \");\n \tsql.append(\" left join T_FDC_CostAccount parent ON account.FParentID = parent.FID \");\n \tsql.append(\" left join T_ORG_BaseUnit org ON account.FFullOrgUnit = org.FID \");\n \tsql.append(\" where 1=1 \");\n \tsql.append(\" and account.FLongNumber like '5002%' \");//只取科目502开头的科目\n \tif(map.get(\"fullOrgUnit\")!=null){\n OrgStructureInfo oui = (OrgStructureInfo)map.get(\"fullOrgUnit\");\n if(oui != null && oui.getUnit() != null){\n FullOrgUnitInfo info = oui.getUnit();\n \tsql.append(\" and account.FFullOrgUnit = '\"+info.getId().toString()+\"' \");\n }\n \t}\n \tif(map.get(\"curProject\")!=null){\n \t\tCurProjectInfo projectInfo = (CurProjectInfo)map.get(\"curProject\");\n \tsql.append(\" and account.FCurProject = '\"+projectInfo.getId().toString()+\"' \");\n \t}\n \tsql.append(\" order by REPLACE(account.FLongNumber, '!', '.') asc \");\n \t\n \treturn sql.toString();\n }",
"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 abstract void toSQL(StringBuilder ret);",
"protected String in(String sql, String key){\n boolean isNeedDynamic = this.isNeedDynamic(key);\n if (isNeedDynamic) {\n LogUtils.debug(\"{} is equals to set default value, be delete\", key);\n return \" ( 1 = 1 or '1' = ?) \";\n }\n return sql;\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"private String encodeSQL(String text) {\r\n text = text.replaceAll(\"'\", \"''\");\r\n return \"'\" + text + \"'\";\r\n }",
"public interface OrgDeptMapper extends OrgDeptPOMapper {\n @Select( {\n \"<script>\",\n \"select\",\n \"id, org_id, name, tel_no, created_by, updated_by, created_at, updated_at\",\n \"FROM org_dept \",\n \"where org_id = #{orgId,jdbcType=INTEGER}\",\n \"<if test=\\\"text != null\\\">\",\n \" and LOWER(name) like LOWER(concat('%',#{text, jdbcType=VARCHAR},'%'))\",\n \"</if>\",\n \"</script>\"\n })\n @ResultMap( {\"com.inmind.automind.datalayer.mapper.OrgDeptPOMapper.BaseResultMap\"})\n List<OrgDeptPO> fuzzySearchByName(@Param(\"orgId\") Long orgId, @Param(\"text\") String text);\n}",
"@Override\r\n\tpublic String generate() {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\r\n\t\tquery.append(\"INSERT INTO \").append(tableName).append(\" (\");\r\n\t\tfor (int i = 0; i < fieldNames.size(); i++) {\r\n\t\t\tquery.append(fieldNames.get(i));\r\n\t\t\tif (i < fieldNames.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\") VALUES (\");\r\n\t\tfor (int i = 0; i < fieldValues.size(); i++) {\r\n\t\t\tquery.append(\"'\").append(fieldValues.get(i)).append(\"'\");\r\n\t\t\tif (i < fieldValues.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\");\");\r\n\t\treturn query.toString();\r\n\t}",
"protected String getLoadSql(String table,\r\n Class type,\r\n OrderedMap mapping,\r\n String whereClause) throws DataLayerException {\r\n StringBuffer sql = new StringBuffer(\"select \");\r\n PropertyDescriptor[] pds = null;\r\n boolean isaMap = false;\r\n \r\n try {\r\n isaMap = DatabaseDriver.isaMap(type); \r\n if (! isaMap) {\r\n // POJO\r\n pds = BeanUtils.getPropertyDescriptors(type, mapping);\r\n if (pds == null || pds.length == 0) {\r\n if (type == null) {\r\n throw new DataLayerException(\r\n \"Error creating Insert SQL. Bean Discriptors are missing. Type is NULL.\");\r\n } else {\r\n throw new DataLayerException(\r\n \"Error creating Insert SQL. Bean Discriptors are missing. Type = \"\r\n + type.getName());\r\n } \r\n }\r\n boolean first = true;\r\n for (int i = 0; i < pds.length; i++) {\r\n if (!first)\r\n sql.append(\", \");\r\n else\r\n first = false;\r\n sql.append(pds[i].getName());\r\n }\r\n } else {\r\n // Map\r\n boolean first = true;\r\n Iterator it = mapping.iterator();\r\n log.debug(\"Selecting columns:\");\r\n while (it.hasNext()) {\r\n Field field = (Field)it.next();\r\n if (StringUtils.isNullOrEmpty(field.getPattern())) {\r\n log.debug(\" \" + field.getName());\r\n if (! first)\r\n sql.append(\", \");\r\n else\r\n first = false;\r\n sql.append(field.getName());\r\n } \r\n }\r\n }\r\n\r\n sql.append(\" from \");\r\n sql.append(table);\r\n sql.append(\" \");\r\n sql.append(whereClause);\r\n return sql.toString();\r\n } catch (java.lang.Exception e) {\r\n throw new DataLayerException(\"Unable to generate SQL to load data from the database.\",\r\n e);\r\n }\r\n }",
"String getBarcharDataQuery();",
"@Override\n\tpublic void executeUpdateDinamicSQL(String s) throws Exception {\n\t\t\n\t}",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"default String preprocessSQL(String sql, QueryParameters queryParameters, SessionFactoryImplementor factory,\n\t\t\t\t\t\t List<AfterLoadAction> afterLoadActions) {\n\t\t// I believe this method is only needed for query-type loaders\n\t\treturn sql;\n\t}",
"protected String getSelectSQLWithKey(String key) {\n\t\treturn queryData.getString(\"SelectSQLWithKeySQL\").replace(\"key!\", key);\n\t}",
"public static void main(String[] args) {\n\t\tString queryHql = \"select Map(a.id,a.name,b.brandId,b.productId) from ShopBrand as a,SysProductType b where a.id=b.aid \";\n\n\t\tString tableStatement = StringUtils.substringBetween(queryHql, \"from\",\n\t\t\t\t\"where\");\n\t\tString mappingStatement = StringUtils.substringBetween(queryHql, \"Map\",\n\t\t\t\t\"from\");\n\t\tmappingStatement = StringUtils.replaceOnce(mappingStatement, \"(\", \"\");\n\n\t\tSet<String> estimateTransformFields = Sets.newHashSet();\n\t\tfor (String t : Splitter.on(\",\").split(mappingStatement)) {\n\t\t\tt = t.trim();\n\t\t\testimateTransformFields.add(Splitter.on(\"as\").trimResults()\n\t\t\t\t\t.omitEmptyStrings().limit(2).splitToList(t).get(0));\n\t\t}\n\n\t\tboolean hasAlias = true;\n\t\tString singleEntityName = \"\";\n\t\tSet<String> estimateTableNames = Sets.newHashSet();\n\t\tBiMap<String, String> entityName2aliasBimap = HashBiMap.create();\n\t\tString separator;\n\t\tList<String> tList;\n\t\tfor (String t : Splitter.on(\",\").split(tableStatement)) {\n\t\t\tt = t.trim();\n\t\t\tif (t.contains(\"as\")) {\n\t\t\t\tseparator = \"as\";\n\t\t\t} else {\n\t\t\t\tseparator = \" \";\n\t\t\t}\n\t\t\ttList = Splitter.on(separator).trimResults().omitEmptyStrings()\n\t\t\t\t\t.limit(2).splitToList(t);\n\n\t\t\tif (tList.size() == 1) {\n\t\t\t\tsingleEntityName = tList.get(0);\n\t\t\t\thasAlias = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tentityName2aliasBimap.put(tList.get(0), tList.get(1));\n\t\t\testimateTableNames.add(Splitter.on(separator).trimResults()\n\t\t\t\t\t.omitEmptyStrings().limit(2).splitToList(t).get(0));\n\t\t}\n\t\tBiMap<String, String> alias2EntityNameBimap = entityName2aliasBimap\n\t\t\t\t.inverse();\n\n\t\tlogger.info(\"estimateTransformFields is:{}\", estimateTransformFields);\n\t\tlogger.info(\"estimateTableNames is:{}\", estimateTableNames);\n\t\tlogger.info(\"entityName2aliasBimap is:{}\", entityName2aliasBimap);\n\n\t\tMap<String, Set<String>> estimateResultMap = Maps.newHashMap();\n\t\tString tmpAlias;\n\t\tString tmpFiledNameWithoutAlias;\n\t\tString tmpEntityName;\n\t\tif (hasAlias) {\n\t\t\tfor (String field : estimateTransformFields) {\n\t\t\t\ttmpAlias = field.substring(0, 1);\n\t\t\t\ttmpFiledNameWithoutAlias = field.substring(2);\n\t\t\t\ttmpEntityName = alias2EntityNameBimap.get(tmpAlias);\n\t\t\t\tif (estimateResultMap.get(tmpEntityName) != null) {\n\t\t\t\t\testimateResultMap.get(tmpEntityName)\n\t\t\t\t\t\t\t.add(tmpFiledNameWithoutAlias);\n\t\t\t\t} else {\n\t\t\t\t\testimateResultMap.put(tmpEntityName,\n\t\t\t\t\t\t\tSets.newHashSet(tmpFiledNameWithoutAlias));\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\testimateResultMap.put(singleEntityName, estimateTransformFields);\n\t\t}\n\t\tlogger.info(\"estimateResultMap is:{}\", estimateResultMap);\n\t}",
"private static String adqlCharLiteral( String txt ) {\n return \"'\" + txt.replaceAll( \"'\", \"''\" ) + \"'\";\n }",
"public void setSql(String sql) {\n this.sql = sql;\n }",
"public String Analise(String SQL, String Value){\n SQLQuery result = session.createSQLQuery(SQL);\n Value = result.toString();\n return Value;\n}",
"String replaceOnException(String sql);",
"@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}",
"protected abstract String getEntityExistanceSQL(E entity);",
"@Mapper\npublic interface ModularMapper extends BaseMapper<ModularEntity>{\n @Select(\"select * from modular\")\n List<ModularEntity> selectModularAll();\n @Select(\"select * from modular where modular_name like CONCAT('%',#{modular_name},'%')\")\n List<ModularEntity> selectModular_name(String modular_name);\n}",
"public void setSql (String sql)\n\t{\n\t\tif (sql == null)\n\t\t\tthrow new IllegalArgumentException(\"No SQL\");\n\t\tm_sqlOriginal = sql;\n\t\tint index = m_sqlOriginal.indexOf(\"\\nFROM \");\n\t\tif (index != -1)\n\t\t\tm_sqlOriginal = m_sqlOriginal.replace(\"\\nFROM \", FROM);\n\t\tindex = m_sqlOriginal.indexOf(\"\\nWHERE \");\n\t\tif (index != -1)\n\t\t\tm_sqlOriginal = m_sqlOriginal.replace(\"\\nWHERE \", WHERE);\n\t\t//\n\t\tparse();\n\t}",
"abstract protected String buildSQL(BatchSQLEnum sql);",
"@Test\n public void testStringLiteralEscapedTick() throws Exception {\n String sql = \"SELECT 'O''Leary' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"O'Leary\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }",
"protected StringBuilder generateQuery() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" FROM \") \n .append(dao.getParameterClass(0).getName())\n .append(\" d WHERE (:incorrectEvent = '' OR d.incorrectEvent.id = :incorrectEvent) \")\n .append(\"AND (d.createDate BETWEEN :dateFrom AND :dateTo ) \")\n .append(\"AND ( ((:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName) \")\n .append(\" OR (:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName)) \")\n .append(\" OR (:search='' OR d.searchField LIKE :search) ) \");\n return sb;\n }",
"@Override\n\tpublic Map<String, String> toSqlMap() {\n\t\treturn null;\n\t}",
"@UseStringTemplate3StatementLocator\npublic interface CommandDao {\n @SqlUpdate(\"insert into event (id, created, created_by, content) values (:event.id, :event.created, :event.createdBy, :content)\")\n void storeEvent(@BindBean(\"event\") Event event, @Bind(\"content\") String json);\n\n @SqlQuery(\"select content from (select pk, content from event order by pk desc limit <max>) grr order by pk\")\n @Mapper(EventMapper.class)\n Collection<Event> lastEvents(@Define(\"max\") int count);\n\n @SqlQuery(\"select content from event where pk > (select pk from event where id = :id) order by pk limit <max>\")\n @Mapper(EventMapper.class)\n Collection<Event> since(@Bind(\"id\") String id, @Define(\"max\") int count);\n\n @SqlQuery(\"select count(1) from event where pk > (select pk from event where id = :id)\")\n long countSince(@Bind(\"id\") String id);\n}",
"@Test void testInterpretTable() {\n sql(\"select * from \\\"hr\\\".\\\"emps\\\" order by \\\"empid\\\"\")\n .returnsRows(\"[100, 10, Bill, 10000.0, 1000]\",\n \"[110, 10, Theodore, 11500.0, 250]\",\n \"[150, 10, Sebastian, 7000.0, null]\",\n \"[200, 20, Eric, 8000.0, 500]\");\n }",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"public interface SQLConverter {\n String convert(Statement statement, Object params, String mapperId);\n}",
"@Test\n public void testStringLiteralEscapedTick2() throws Exception {\n String sql = \"SELECT '''abc''' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"'abc'\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }",
"private static SqlScalars generateSqlForPerson(OptionsId options) {\n SqlScalars sqlScalars = new SqlScalars();\n // Make sure to set the alias for the files for the Transformation into the class\n sqlScalars.addToSql(\"SELECT DISTINCT p.id,p.name,\");\n sqlScalars.addToSql(\"p.first_name AS firstName,\");\n sqlScalars.addToSql(\"p.last_name AS lastName,\");\n sqlScalars.addToSql(\"p.birth_day AS birthDay,\");\n sqlScalars.addToSql(\"p.birth_place AS birthPlace,\");\n sqlScalars.addToSql(\"p.birth_name AS birthName,\");\n sqlScalars.addToSql(\"p.death_day AS deathDay,\");\n sqlScalars.addToSql(\"p.death_place AS deathPlace\");\n sqlScalars.addToSql(DataItemTools.addSqlDataItems(options.splitDataItems(), \"p\").toString());\n sqlScalars.addToSql(\"FROM person p\");\n\n if (options.getId() > 0L) {\n sqlScalars.addToSql(\"WHERE p.status\" + SQL_IGNORE_STATUS_SET);\n sqlScalars.addToSql(\"AND id=:id\");\n sqlScalars.addParameter(LITERAL_ID, options.getId());\n } else {\n if (MapUtils.isNotEmpty(options.splitJobs())) {\n sqlScalars.addToSql(\", cast_crew c\");\n }\n sqlScalars.addToSql(\"WHERE p.status\" + SQL_IGNORE_STATUS_SET);\n\n if (MapUtils.isNotEmpty(options.splitJobs())) {\n sqlScalars.addToSql(\"AND p.id=c.person_id\");\n sqlScalars.addToSql(\"AND c.job IN (:jobs)\");\n sqlScalars.addParameter(\"jobs\", options.getJobTypes());\n }\n\n // Add the search string\n sqlScalars.addToSql(options.getSearchString(false));\n // This will default to blank if there's no sort required\n sqlScalars.addToSql(options.getSortString());\n }\n\n sqlScalars.addScalar(LITERAL_ID, LongType.INSTANCE);\n sqlScalars.addScalar(LITERAL_NAME, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_FIRST_NAME, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_LAST_NAME, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_BIRTH_DAY, DateType.INSTANCE);\n sqlScalars.addScalar(LITERAL_BIRTH_PLACE, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_BIRTH_NAME, StringType.INSTANCE);\n sqlScalars.addScalar(LITERAL_DEATH_DAY, DateType.INSTANCE);\n sqlScalars.addScalar(LITERAL_DEATH_PLACE, StringType.INSTANCE);\n\n // add Scalars for additional data item columns\n DataItemTools.addDataItemScalars(sqlScalars, options.splitDataItems());\n\n return sqlScalars;\n }",
"private void constructExecuteSql() {\n getMetaData();\n // Validate that the primary keys are present in the underlying SQL\n StringBuilder orderBySql = new StringBuilder(super.getExecuteSql()).append(\"\\n order by \");\n switch (metaData.getDbType()) {\n case ORACLE:\n orderBySql.append(createOracleOrderedByClause ());\n break;\n case SQL_SERVER:\n orderBySql.append(createSqlServerOrderedByClause());\n break;\n case UNKNOWN:\n default:\n orderBySql.append(createUnknownDBOrderedByClause());\n }\n this.executeSql = orderBySql.toString();\n }",
"@Test\n public void testToStringWithSQL() throws SQLException {\n try (PreparedStatement stmt = this.proxy\n .prepareStatement(\"SELECT * FROM country WHERE lang = ? OR callingcode = ?\")) {\n stmt.setString(1, \"de\");\n stmt.setInt(2, 42);\n String sql = stmt.toString();\n assertEquals(\"SELECT * FROM country WHERE lang = 'de' OR callingcode = 42\", sql);\n LOG.info(\"sql = \\\"{}\\\"\", sql);\n }\n }",
"public String get_sql(OperationType name, HashMap<String,String> data) throws ConnectorConfigException{\n\t\treturn \"\";\n\t}",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public String getSql() {\r\n String[] splitSql = this.origSql.split(\"\\\\Q\" + IN_PARAM_ESC + \"\\\\E\");\r\n StringBuffer compSql = new StringBuffer(splitSql[0]);\r\n Integer key = null;\r\n String value = IN_PARAM_ESC;\r\n for (int i = 1; i < splitSql.length && this.inMaxSqlLength(compSql.length()); i++) {\r\n key = new Integer(i);\r\n value = IN_PARAM_ESC;\r\n if (this.paramMap.containsKey(key)) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n compSql.append(splitSql[i]);\r\n }\r\n key = new Integer(splitSql.length);\r\n value = this.origSql.lastIndexOf(IN_PARAM_ESC) == (this.origSql.length() - 1) ?\r\n IN_PARAM_ESC : \"\";\r\n if (this.paramMap.containsKey(key) && this.inMaxSqlLength(compSql.length())) {\r\n Object x = this.paramMap.get(key);\r\n value = getSqlString(x);\r\n }\r\n compSql.append(value);\r\n \r\n if (!this.inMaxSqlLength(compSql.length())) {\r\n compSql.delete(this.maxSqlLength, compSql.length());\r\n compSql.append(INCOMPLETE);\r\n }\r\n \r\n return compSql.toString();\r\n }",
"@Test\n public void testStringLiteralEscapedTick3() throws Exception {\n String sql = \"SELECT 'a''b''c' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"a'b'c\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }",
"java.lang.String getSqlCode();",
"private String buildQuery(String ... sql) {\n\t\tfinal StringBuffer sb = new StringBuffer();\n\t\t\n\t\tfor (String s : sql) {\n\t\t\tsb.append(ParsingUtil.QUERY + \" \" + s + \"\\n\");\n\t\t}\n\t\t\n\t\treturn sb.toString(); \n\t}",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"@Override\n\tpublic Map queryForMap(String sql) {\n\t\treturn this.baseDaoSupport.queryForMap(sql);\n\t}",
"public String convertStatement (String oraStatement);",
"public String convertStatement (String oraStatement);",
"public String toSQL(boolean fuzzySearch){\n return toSQL();\n }",
"public void setSql(String sql) {\n\t\tthis.sql = sql;\n\t}",
"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}",
"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 }",
"String getObjectCheckSql(String name);",
"@Test void testAs() {\n final String expected = \"SELECT `AS`\\n\"\n + \"FROM `T`\";\n sql(\"select as from t\").ok(expected);\n }",
"private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }",
"private String createFindAll() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"SELECT \");\n\t\tsb.append(\" * \");\n\t\tsb.append(\" FROM \");\n\t\tsb.append(type.getSimpleName());\n\t\treturn sb.toString();\n\t}",
"@Mapper\npublic interface RoleMapper extends BaseMapper<RoleEntity>{\n @Select(\"select * from role\")\n List<RoleEntity> selectAllRole();\n @Select(\"select * from role where role_name like CONCAT('%',#{role_name},'%')\")\n List<RoleEntity>selectRoleName(String role_name);\n @Select(\"select * from role where role_name = #{roleName}\")\n RoleEntity selectRoleOne(@Param(\"roleName\")String roleName);\n}",
"@Override\n\tpublic List<?> getListSQLDinamic(String sql) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Query createNativeQuery(String sqlString, String resultSetMapping) {\n\t\treturn null;\n\t}",
"@Test\n public void testStringLiteralEscapedTick4() throws Exception {\n String sql = \"SELECT \\\" \\\"\\\" \\\" FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \" \\\" \");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }",
"public interface NotationMapper {\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"<script>SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME FROM NOTATION \",\n \"<if test='type != \\\"\\\"'>WHERE TYPE = #{type}, </if>\",\n \"</script>\"})\n List<JSONObject> getNotationList(@Param(\"type\") String type);\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME \",\n \"FROM NOTATION WHERE LOCATE(#{title},TITLE) OR LOCATE(#{title},SUBTITLE)\"\n })\n List<JSONObject> fuzzyByTitle(@Param(\"title\")String title);\n\n @Insert({\"INSERT INTO NOTATION (TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME)\" +\n \"VALUES(#{title},#{subtitle},#{bio},#{notationUrl},#{bmgUrl},#{authorUrl},#{accTitle},#{accUrl},#{type},\" +\n \"#{resourceUrl},#{createTime})\"})\n void addNotation(JSONObject reqJson);\n}",
"@Override\n public String getPlaceholderValueString(Column col) {\n return super.getPlaceholderValueString(col) + \" AS \"\n + getTypeName(col);\n }",
"@Override\n\tprotected String sql() throws OperationException {\n\t\treturn sql.insert(tbObj, fieldValue);\n\t}",
"@Test\n public void testAliasedTableColumns()\n {\n assertEquals(\n runner.execute(\"SELECT * FROM orders AS t (a, b, c, d, e, f, g, h, i)\"),\n runner.execute(\"SELECT * FROM orders\"));\n }",
"protected String quoteIdentifiers(String s) {\n return databasePlatform.convertQuotedIdentifiers(s);\n }",
"private String getSQLValueFor(ADemoEntity e, Attribute<? extends IValue> a) {\n\t\t\n\t\tIValue v = e.getValueForAttribute(a);\n\t\t\n\t\tswitch (a.getValueSpace().getType()) {\n\t\t\tcase Continue:\n\t\t\tcase Integer:\n\t\t\t\treturn v.getStringValue();\n\t\t\tcase Nominal:\n\t\t\tcase Order:\n\t\t\tcase Range:\n\t\t\t\treturn \"'\"+v.getStringValue()+\"'\";\n\t\t\tcase Boolean:\n\t\t\t\treturn ((BooleanValue)v).getActualValue()?\"TRUE\":\"FALSE\";\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"unknown value type \"+a.getValueSpace().getType());\n\t\t}\n\t\n\t}",
"public String getInsertSqlForPreparedStatement(String table,\r\n OrderedMap mapping,\r\n Class type) throws DataLayerException {\r\n // Object[] args = {};\r\n // Object newobj = null;\r\n StringBuffer fields = new StringBuffer();\r\n StringBuffer values = new StringBuffer();\r\n StringBuffer sql = new StringBuffer(\"insert into \");\r\n sql.append(table);\r\n sql.append(\" (\");\r\n int paramCount = 0;\r\n\r\n try {\r\n PropertyDescriptor[] pds = BeanUtils.getPropertyDescriptors(type, mapping);\r\n if (mapping == null)\r\n throw new DataLayerException(\"Error creating Insert SQL. Mapping is null.\");\r\n\r\n Object temp = type.newInstance();\r\n if (!(temp instanceof Map || temp instanceof DynaActionForm)) {\r\n // Not a Map. Requires PropertyDescriptors.\r\n if (pds == null || pds.length == 0) {\r\n throw new DataLayerException(\r\n \"Error creating Insert SQL. Bean Descriptors are missing (className is \" + type.getName() + \").\");\r\n }\r\n boolean first = true;\r\n for (int i = 0; i < pds.length; i++) {\r\n String fieldName = pds[i].getName();\r\n Field fieldDef = (Field) (mapping.get(fieldName.toLowerCase()));\r\n if ((! fieldDef.getType().toLowerCase().equals(\"key\")) &&\r\n (fieldDef.getPattern() == null || fieldDef.getPattern().trim().equals(\"\"))) {\r\n if (!first) {\r\n fields.append(\", \");\r\n values.append(\", \");\r\n } else {\r\n first = false;\r\n } \r\n fields.append(pds[i].getName());\r\n values.append(\"?\");\r\n paramCount++;\r\n }\r\n }\r\n } else {\r\n log.debug(\"Bean is a Map (\" + type.getClass().getName() + \"). Field count=\" + mapping.size()); \r\n boolean first = true;\r\n Iterator it = mapping.iterator();\r\n while (it.hasNext()) {\r\n Field fieldDef = (Field)it.next();\r\n if ((! fieldDef.getType().toLowerCase().equals(\"key\")) &&\r\n (fieldDef.getPattern() == null || fieldDef.getPattern().trim().equals(\"\"))) {\r\n if (!first) {\r\n fields.append(\", \");\r\n values.append(\", \");\r\n } else {\r\n first = false;\r\n } \r\n fields.append(fieldDef.getName());\r\n values.append(\"?\");\r\n paramCount++;\r\n } else {\r\n log.debug(\"Skipping \" + fieldDef.getName() + \"... pattern=\" + fieldDef.getPattern() + \r\n \" type=\" + fieldDef.getType());\r\n }\r\n }\r\n }\r\n sql.append(fields.toString());\r\n sql.append(\") values (\");\r\n sql.append(values.toString());\r\n sql.append(\") \");\r\n logCore.debug(\"Insert SQL: \" + sql.toString() + \" SQL paramCount: \" + paramCount);\r\n return sql.toString();\r\n } catch (Exception e) {\r\n throw new DataLayerException(\"Failed in getInsertSqlGeneric()\", e);\r\n }\r\n }",
"@Override\n public List<BaseLog> query(String realname) {\n BaseLogExample example = new BaseLogExample();\n if(realname!=null){\n example.createCriteria().andRealnameLike(\"%\"+realname+\"%\");\n }\n List<BaseLog> list = baseLogMapper.selectByExample(example);\n return list;\n }",
"String getPostDeclareSql();",
"private String createInsertQuery() {\r\n StringBuilder query = new StringBuilder();\r\n query.append(\"insert into \").append(m_tableName)\r\n .append(\"(\").append(m_propertyNames[0]);\r\n for (int i = 1; i < m_propertyNames.length; i++) {\r\n query.append(\",\").append(m_propertyNames[i]);\r\n }\r\n query.append(\") values (?\");\r\n for (int i = 1; i < m_propertyNames.length; i++) {\r\n query.append(\",?\");\r\n }\r\n query.append(\")\");\r\n return query.toString();\r\n }",
"private static boolean isIgnoreSQL(String sql) {\n if (sql.length() == 0) {\n return true;\n }\n\n String lowerSQL = sql.toLowerCase();\n for (String ignoreSQL : ignoreSQLs) {\n if (lowerSQL.startsWith(ignoreSQL)) {\n return true;\n }\n }\n return false;\n }",
"public void createSQLQuery(String s, String returnAlias, Class<?> returnClass)\n throws HibException;",
"public String getFindByIdSql() {\r\n\t\treturn getSelectPrefix() + \" and XH=? \";\r\n\t}",
"@Mapper\npublic interface PersonMapper {\n\n @Select(\"select * from cjh_test_person where id = #{id}\")\n Person getMydomain(@Param(\"id\") int id);\n}",
"@Mapper\npublic interface SettingMapper {\n @Select(\"SELECT _key, _value FROM setting WHERE _key = #{key}\")\n public Setting findByKey(String key);\n\n @Insert(\"INSERT INTO setting(_key, _value) VALUES (#{key}, #{value)\")\n public void save(Setting setting);\n}",
"public List listMapBySql(String sql) throws Exception {\n\t\treturn null;\r\n\t}",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"@Select({\"<script>\",\n \"SELECT\",\n \"<foreach collection='columnNames' index='index' item='item' separator=','>\",\n \" ${item}\",\n \"</foreach>\",\n \"FROM ${tableName}\",\n \"WHERE ${primaryKeyName} = #{primaryKeyValue}\",\n \"</script>\"})\n Map selectByPrimaryKey(@Param(\"tableName\") String tableName, @Param(\"columnNames\") List<String> columnNames,\n @Param(\"primaryKeyName\") String primaryKeyName,\n @Param(\"primaryKeyValue\") Object primaryKeyValue);",
"String escapeFlatStorageColumn(String column);",
"@Mapper\npublic interface MusicMapper {\n\n //明星新歌推荐歌曲\n @Select(\"SELECT starPhoto,starName,starMusicName,starMusicAddress,starLyrics,starId FROM starmusic order by starDate DESC\")\n List<StarMusic> suggestStarMusic();\n\n //大众推荐歌曲\n @Select(\"SELECT worksDate,photo,u.userName userName,workName,workAddress,workLyrics FROM works w JOIN user u ON(w.userId = u.userId) order by w.worksDate DESC\")\n List<Works> suggestWorksMusic();\n\n //明星高分榜\n @Select(\"SELECT * FROM starmusic order by starScore\")\n List<StarMusic> listStarMusic();\n\n //附近的人查询\n @SelectProvider(type = SelectSQL.class,method =\"selectNearUser\" )\n List<User> selectNearUser(String address);\n\n //查询当前月份的最好大众歌曲\n @Select(\"SELECT * FROM works\\n\" +\n \"WHERE PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( worksDate, '%Y%m' ) ) =0 \" +\n \"ORDER BY good DESC\")\n List<Works> bestUserMusic();\n\n //历史最好大众音乐\n @Select(\"SELECT * FROM works order by good DESC\")\n List<Works> bestHistoryMusic();\n\n //查询歌曲信息\n @Select(\"SELECT starName,starMusicName,starLyrics,starPhoto,starMusicAddress from starmusic\")\n List<StarMusic> selectStarMusic();\n\n //查询个人动态\n @Select(\"SELECT userName,userPhoto,userSign,generalMusic,generDate from user JOIN general ON (userId = myId) WHERE userName =#{userName} order by generDate DESC\")\n List<PersonGeneral> selectUserGener(String userName);\n\n //根据发表的动态去作品表查找用户创作的歌曲\n @Select(\"SELECT * FROM works WHERE workName =#{generalMusic}\")\n List<Works> workMusic(String generalMusic);\n\n //根据输入的歌曲名查找歌曲\n @SelectProvider(type=SqlPrivde.class,method = \"getSql\")\n List<Works> seletMulit(String sech);\n\n //根据输入的歌曲名和歌唱者查找\n @SelectProvider(type=SqlPrivde.class,method = \"getSqlMW\")\n List<Works> seletMW(String myName,String WorkName );\n\n //查询用户作品的点赞数\n @Select(\"SELECT good FROM works WHERE workName=#{workName}\")\n Integer selectGood(String workName);\n\n}",
"@Test\n public void test4() throws Exception {\n String jpql = \"SELECT c FROM Course c where SQL('course_mapped ->> ''?'' LIKE ''%i%''', c.name) AND \" +\n \"SQL('json_array_length(course_mapped #> ''{levels}'') > 0')\";\n Query q = em.createQuery(jpql, Course.class);\n List<Course> courses = q.getResultList();\n Assert.assertEquals(1,courses.size());\n Assert.assertEquals(\"First one\", courses.get(0).getCourseMapped().getName());\n }",
"String getMetadataSelectClause();",
"protected String getSQL (Element sql) {\r\n\r\n //local variables\r\n\r\n String SQL = \"\";\r\n\r\n //code description\r\n \r\n NodeList textlist = sql.getChildNodes();\r\n for (int i = 0; i < textlist.getLength(); i++) {\r\n if (textlist.item(i).getNodeType() == Node.TEXT_NODE) {\r\n SQL += textlist.item(i).getNodeValue();\r\n }\r\n }\r\n return SQL;\r\n\r\n }",
"private static String processall(String sql2) {\n\t\tString sql = sql2.replace(\"and txnChannel='ALL'\", \"\").replace(\"and txntype='ALL'\", \"\")\r\n\t\t\t\t.replace(\"and txncode='ALL'\", \"\");\r\n\t\treturn sql;\r\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 }",
"public void test_findListBySqlMap() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findListBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t}",
"public interface Sqlable {\n\n Map<String, Object> getSqlMap();\n\n String getTableName();\n\n}",
"public static String getCmd(String sql) {\r\n\t\tString ret = \"\";\r\n\r\n\t\tchar ch;\r\n\t\tString word = \"\";\r\n\r\n\t\tfor (int x = 0; x < sql.length(); x++) {\r\n\t\t\tch = sql.charAt(x);\r\n\t\t\t// word = word + ch;\r\n\r\n\t\t\tif (ch == ' ') {\r\n\t\t\t\tx = sql.length() + 1;\r\n\t\t\t} else {\r\n\t\t\t\tword = word + ch;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tret = word;\r\n\r\n\t\treturn (ret);\r\n\t}",
"public abstract String createQuery();",
"private static String toSql(Object obj) {\n\t\tif(obj==null) {\n\t\t\treturn \"NULL\";\n\t\t}\n\t\tif(obj instanceof String) {\n\t\t\treturn \"'\"+obj+\"'\";\n\t\t}\n\t\treturn obj.toString();\n\t}",
"public interface BugPlatformMapper {\n\n\n @Select(\"SELECT js.pname as bugResolutionStatus, COUNT(js.pname) as bugNum FROM jiraissue ji INNER JOIN project pr ON pr.ID = ji.PROJECT LEFT JOIN issuestatus js ON ji.issuestatus = js.ID where pr.ID in (#{2}) and issuetype = 1 AND CREATED between #{0} and #{1} group by js.pname\")\n List<BugPlatformObject> getList(String startDate,String endDate,String project);\n}",
"private void setSql() {\n sql = sqlData.getSql();\n }"
]
| [
"0.63985527",
"0.62922615",
"0.60958004",
"0.59813684",
"0.59598416",
"0.5790311",
"0.5789723",
"0.57850826",
"0.57788",
"0.57668215",
"0.5766792",
"0.57657254",
"0.5739298",
"0.57270473",
"0.5726094",
"0.56846595",
"0.56693965",
"0.5668395",
"0.56654793",
"0.5664455",
"0.56480783",
"0.5629548",
"0.56256926",
"0.5618153",
"0.56073195",
"0.5584627",
"0.55840737",
"0.55826396",
"0.55824775",
"0.55791444",
"0.55675036",
"0.55616426",
"0.5561508",
"0.555729",
"0.55552596",
"0.5543408",
"0.5539002",
"0.55386865",
"0.552317",
"0.5519244",
"0.5484081",
"0.54823184",
"0.5477704",
"0.5470194",
"0.5454935",
"0.5441515",
"0.54334193",
"0.54160476",
"0.54062396",
"0.5402164",
"0.53920895",
"0.5392035",
"0.53879035",
"0.53862154",
"0.5375245",
"0.5375245",
"0.53676635",
"0.53675145",
"0.5366582",
"0.53629905",
"0.5360693",
"0.5359224",
"0.5357651",
"0.5355892",
"0.53536314",
"0.53529197",
"0.53495765",
"0.53427863",
"0.5341867",
"0.533314",
"0.53229165",
"0.531841",
"0.5299888",
"0.52981347",
"0.52869767",
"0.5281851",
"0.5279486",
"0.5267769",
"0.52654666",
"0.52615803",
"0.5259618",
"0.5258401",
"0.5254967",
"0.525142",
"0.52495646",
"0.5246072",
"0.52391356",
"0.52388704",
"0.52363306",
"0.5232709",
"0.52295727",
"0.5227485",
"0.522724",
"0.5225228",
"0.5224303",
"0.5208465",
"0.5205256",
"0.5203951",
"0.52014136",
"0.52000195"
]
| 0.5934831 | 5 |
TODO Autogenerated method stub | @Override
public String sqlSlice(long limit, long offset) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
this.doGet(req, resp);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
]
| 0.0 | -1 |
checking for last page if last page home screen will be launched | @Override
public void onClick(View v) {
int current = getItem(+1);
if (current < layouts.length) {
// move to next screen
viewPager.setCurrentItem(current);
} else {
if ((android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
&&(ContextCompat.checkSelfPermission(getApplicationContext(),
Manifest.permission.SEND_SMS)
!= PackageManager.PERMISSION_GRANTED)) {
requestMessageSendPermission();
}else {
launchHomeScreen();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isLastPage();",
"public boolean verifyHomePageDisplayed(){\r\n\t\tWebDriver driver = SeleniumDriver.getInstance().getWebDriver();\r\n\t\tWebElement body;\r\n\t\ttry{\r\n\t\t\tbody = driver.findElement(By.tagName(\"body\"));\r\n\t\t\tif(body.getAttribute(\"class\").contains(\"home page\")){\r\n\t\t\t\tmyAssert.setGblPassFailMessage(\"pass\", \"UpTake home page is displayed\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tmyAssert.setGblPassFailMessage(\"fail\", \"UpTake home page is not displayed\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t return true;\r\n\t}",
"private boolean isCurrent(){\n return (getPageTitle().size() > 0);\n }",
"boolean hasLandingPageView();",
"private void determineReachedLastSubPage() {\n // Assumes there's only one page with sub-pages.\n Integer configuredSubPageSize = Integer.valueOf(confUtils.getXmlMoConfCount(conf));\n this.reachedLastSubPage = (getIntValue(args.getFirst(PARAM_NAME_NEXT_SUB_PAGE_IDX), 0)\n + getIntValue(args.getFirst(PARAM_NAME_SECTION_TYPE_IDX), 0)) >= configuredSubPageSize;\n }",
"public boolean isFirstPage();",
"@Override\n\tpublic boolean goHomePage(PageContext context) {\n\t\treturn false;\n\t}",
"boolean hasPage();",
"boolean hasPage();",
"public void goBackToAppHome() {\n UiObject topNavigationBar = mDevice.findObject(new UiSelector().text(\"mytaxi demo\"));\n int backpressCounter = 0; //to avoid infinite loops\n while(!topNavigationBar.exists()) {\n mDevice.pressBack();\n backpressCounter++;\n if(backpressCounter>10)\n break;\n }\n }",
"public void verifyUserIsOnHomepage()\n {\n asserttextmessage(getTextFromElement(_welcomeTileText),expected,\"user on home page\");\n\n }",
"public boolean isHome() {\n return getHomePackageNames().contains(\n mActivityManager.getRunningTasks(1).get(0).topActivity.getPackageName());\n }",
"private boolean isConsumerHomePage() throws Exception {\n\n\t\tif (wh.isElementPresent(HomePageUI.verifyHomepage, 3) || \n\t\t\t\twh.isElementPresent(HomePageUI.verifyHomepage1, 3)) {\n\n\t\t\treturn true;\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isSetHomepage() {\n return this.homepage != null;\n }",
"public void gotoHome() // Wait for Home page or Verify Device page \n\t{\t\t\t\t \n\t\tWebDriverWait wait= new WebDriverWait(driver,90);\n\t\t\n\t\ttry\n\t\t{\n\t\t\twait.until(ExpectedConditions.visibilityOf(checker));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tAssert.fail(\" Page is taking too much time to load , stopping execution\");\n\t\t}\t\t\n\t}",
"@Test(priority = 1)\r\n\tpublic void testHomePage() {\r\n\t\tdriver.navigate().to(HomePage.URL);\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tHomePage.clickAnnouncementButton(driver);\r\n\t\tHomePage.clickCookiesButton(driver);\r\n\r\n\t\tHomePage.clickLogin(driver);\r\n\r\n\t\tString currentUrl = driver.getCurrentUrl();\r\n\t\tString expectedUrl = \"https://www.humanity.com/app/\";\r\n\t\tSoftAssert sa = new SoftAssert();\r\n\t\tsa.assertEquals(currentUrl, expectedUrl);\r\n\t\tsa.assertAll();\r\n\t}",
"private void backPage()\n {\n page--;\n open();\n }",
"private void returnHome(){\n if (Boolean.toString(UpdatedHomePage.updatedHomeStarted).equals(\"false\")) {\n startActivity(new Intent(FinalPlan.this, Home.class));\n } else {\n Intent intent = new Intent(this, UpdatedHomePage.class);\n Bundle extras = new Bundle();\n extras.putBoolean(\"filtered\", true);\n intent.putExtras(extras);\n startActivity(intent);\n }\n }",
"public boolean verifyPageLoad() {\n\t\tboolean result = lnkLoginButton.isDisplayed();\n\t\tLog.info(\"Home Page Loaded Successfully\");\n\t\treturn result;\n\t}",
"public boolean hasRequestedPage() {\n return getPageIdx() < getPageList().size();\n }",
"@Override\n public boolean canFinish() {\n IWizardPage page = getContainer().getCurrentPage();\n return super.canFinish() && page == getPages()[getPageCount()-1];\n }",
"public boolean isHomeLinkPresent() {\r\n\t\treturn isElementPresent(groupListSideBar.replace(\"Group List\", \"Home\"), SHORTWAIT);\r\n\t}",
"public boolean hasReachedLastSubPage() {\n return reachedLastSubPage;\n }",
"boolean hasPreviousPage();",
"public void gotoHome(){ application.gotoHome(); }",
"private void moveToLastPage() {\n while (!isLastPage()) {\n click(findElement(next_btn));\n }\n }",
"public boolean isFrontLoadLast() {\n return frontLoadLast;\n }",
"public boolean hasPage() {\n return pageBuilder_ != null || page_ != null;\n }",
"public void loadLastReadPage(){\n \t\t\tlastReadLoaded = false;//recalculate and jump to the last read page\n \t\t\tpageHasChanged = false;//navigating between pages causes the view to jump to top of page, this'll reset that\n \t\t\tloadPage(false, null);\n \t\t}",
"protected boolean isHomeRefreshable()\r\n/* 92: */ {\r\n/* 93:178 */ return false;\r\n/* 94: */ }",
"public void angelHomePage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"AngelHomePage > angelHomePage\", driver);\r\n\t\tswitchFrameToAngelContent();\r\n\t\tif(Element.verify(\"Logged in Message\", driver, \"XPATH\", \"//span[@class='pageTitleSpan' and text()='Home']\"))\r\n\t\t{\r\n\t\t\tResultUtil.report(\"PASS\", \"Successfully logged in\", driver);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tResultUtil.report(\"FAIL\", \"Login failed\", driver);\r\n\t\t}\t\t\r\n\t}",
"@Then(\"^User is redirect on home page$\")\n\tpublic void redirectToHomePage() throws Throwable {\n\t\tThread.sleep(2000);\n\t\tisElementPresent(driver, By.className(\"user-menu\"));\n\t}",
"public void setLastPage(int lastPage) {\n\t\tthis.lastPage = lastPage;\n\t}",
"@Then(\"user should land the Homepage\")\n\tpublic void user_should_land_the_homepage() {\n\t\tSystem.out.println(\"users lands on homepage\");\n\t\tdriver.close();\n\t \n\t}",
"public boolean isPageOpened() {\n\t\ttry {\n\t\t\tTechnicalComponents.waitTill(txtUpgradeAccount, \"visible\");\n\t\t\tif (driver.getCurrentUrl().contains(urlsuffix)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (FrameworkException e) {\n\t\t\tthrow new FrameworkException(\n\t\t\t\t\t\"Upgarde page Not Loaded within specified time.---\" + e.getClass() + \"---\" + e.getMessage());\n\t\t}\n\n\t}",
"protected boolean isHomeAsUpEnabled() {\n return true;\n }",
"public void redirectToHomePageNotLoggedIn() {\r\n\t\t\r\n\t\twebAppDriver.get(baseUrl);//+\"?optimizely_x8236533790=0\"\r\n\t\t/*try {\r\n\t\t\twebAppDriver.verifyElementTextContains(By.id(linkLogoutId), \"Logout\", true);\r\n\t\t\tloginAction.clickOnLogOut();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// this is just to do logout if customer is auto logged in during\r\n\t\t\t// reservation\r\n\t\t}\r\n\t\t*/\r\n\t}",
"private void shouldDisplayHomeUp() {\n boolean back = getSupportFragmentManager().getBackStackEntryCount() > 0;\n getSupportActionBar().setDisplayHomeAsUpEnabled(back);\n }",
"public void goHome() {\n shouldWork = false;\n }",
"private void launchHomeScreen(){\n\n prefManager.setFirstTimeLaunch(false);\n Intent i = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(i);\n }",
"public boolean getIsHome() {\n return isHome;\n }",
"int getCurrentPage();",
"public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}",
"private void nextScreen() {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, HomeActivity.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //check draw over app permission\n if (!Settings.canDrawOverlays(SplashScreenActivity.this)) {\n intent = new Intent(SplashScreenActivity.this, DrawOverAppActivity.class);\n }\n }\n startActivity(intent);\n }\n });\n }",
"public Object getLastPageIdentifier()\n {\n return firstWizardPage.getIdentifier();\n }",
"public void LoadedHomePage()\r\n {\r\n //Generating Alert Using Javascript Executor\r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"alert('Loaded Home Page');\");\r\n \r\n WaitTime(2000);\r\n driver.switchTo().alert().accept();\r\n driver.switchTo().defaultContent();\r\n }",
"@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}",
"String getOssHomepage();",
"private boolean isThereSuchPage (int number) {\n\t\tif (number > 0 && number <= this.getPages().length) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSystem.out.println(\"There isn't such page!\");\n\t\t\treturn false;\n\t\t}\n\t}",
"@When(\"I am on Home page\")\n public void homepage_i_am_on_home_page() {\n homePage = new HomePage(driver);\n homePage.check_page_title();\n }",
"public int getCurrentPage();",
"@Override\n\tpublic boolean hasPreviousPage() {\n\t\treturn false;\n\t}",
"public String getHomePage() {\r\n return this.homePage;\r\n }",
"public int getLastPage() {\n\t\treturn lastPage;\n\t}",
"@Override\n\tpublic void loadNextPage() {\n\t\tif(curr_content.isLastPage){\n\t\t\tPigAndroidUtil.showToast(mContext, \"以是最后一页:\", 3000);\n\t\t}else{\n\t\t\texchangeNext(m_bookFactory.getNextPageContent(next_content));\n\t\t}\n\t}",
"public boolean isPageRequested() {\n\n // If we're in add XML MO mode and have at least one future MO, a new page is not desired.\n if (wizard.isInAddXmlMoMode() && wizard.hasFutureManagedObjects()) {\n return false;\n }\n\n return getPageIdx() >= 0;\n }",
"boolean hasHasInstitutionHomePage();",
"public void goToHomePage() {\n\n driver.get(HOME_PAGE_URL);\n driver.manage().deleteAllCookies();\n driver.manage().window().maximize();\n wait.forLoading(10);\n }",
"private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public @BackPressResult int handleBackPress() {\n if (!mPostNativeAndPolicyPagesCreated) {\n abortFirstRunExperience();\n return BackPressResult.SUCCESS;\n }\n\n mFirstRunFlowSequencer.updateFirstRunProperties(mFreProperties);\n\n int position = mPager.getCurrentItem() - 1;\n while (position > 0 && !mPages.get(position).shouldShow()) {\n --position;\n }\n\n if (position < 0) {\n abortFirstRunExperience();\n } else {\n setCurrentItemForPager(position);\n }\n return BackPressResult.SUCCESS;\n }",
"public boolean hasPage() {\n return page_ != null;\n }",
"public void pressHomeButton() {\n System.out.println(\"TV is already on the home screen\\n\");\n }",
"@BeforeMethod (alwaysRun = true)\n\tpublic void checkHomeScreen() throws InterruptedException, IOException, ParserConfigurationException, SAXException{\n\t\tif (driver == null) {\n\t\t\ttry {\n\t\t\t\tdriver.removeApp(genMeth.getValueFromPropFile(\"appPackage\"));\n\t\t\t\tdriver.quit();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// swallow if fails\n\t\t\t}\n\t\t\tdriver = genMeth.setCapabilitiesAndroid(genMeth);\n\t\t\tgenMeth.cleanLoginAndroid( genMeth,droidData, droidData.userUnlimited_name );\n\t\t}\n\n\t\telse {\n\t\t\tboolean StartUpScreenDisplay = genMeth.checkIsElementVisible( By.name(droidData.Settings_Name));\n\n\t\t\tif (StartUpScreenDisplay != true) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdriver.removeApp(genMeth.getValueFromPropFile(\"appPackage\"));\n\t\t\t\t\tdriver.quit();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// swallow if fails\n\t\t\t\t}\n\n\t\t\t\tdriver = genMeth.setCapabilitiesAndroid(genMeth);\n\t\t\t\tgenMeth.cleanLoginAndroid( genMeth, droidData, droidData.userUnlimited_name);\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"public boolean isAt(){\n\t\tWaitExtensions.waitForPageToLoad(10);\n\t\treturn loginButton.isDisplayed();\n\t\t\n\t}",
"private void onBack() {\n\t\tIntent startMain = new Intent(Intent.ACTION_MAIN);\r\n\t\tstartMain.addCategory(Intent.CATEGORY_HOME);\r\n\t\tstartMain.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // //FLAG_ACTIVITY_NEW_TASK\r\n\t\tstartActivity(startMain);\r\n\t}",
"boolean hasPageNo();",
"boolean hasPageNo();",
"public void enterSiteAsFirstTimeVisitor(){\n if(!browser.browserDriver().browser().isDesktop()) {\n enterSiteWithCleanBrowser();\n if (browser.browserDriver().browser().isTablet() && ((AppiumDriver) browser.driver()).getOrientation() == ScreenOrientation.PORTRAIT) {\n ((AppiumDriver) browser.driver()).rotate(ScreenOrientation.LANDSCAPE);\n }\n } else {\n navigateToHome();\n }\n }",
"public boolean isHomeCollection();",
"public String getCurrentHome(){\r\n \tfor (DisplayResolveInfo info : mList) {\r\n \t\tif (true == info.bDefault) {\r\n \t\t\tmPm.clearPackagePreferredActivities(info.ri.activityInfo.packageName);\r\n\t\t\t\t\r\n\t\t\t\treturn info.ri.activityInfo.packageName;\r\n \t\t} \r\n \t} \t\r\n\t\treturn null;\r\n\t}",
"@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}",
"public void navigateToHomePage()\n\t {\n\t if(getAdvertisementbtn().isPresent())\n\t getAdvertisementbtn().click();\n\t }",
"public boolean isLastStep() {\r\n return this.isLastStep;\r\n }",
"public boolean isMostRecent();",
"void checkCurrentScreen();",
"@Override\r\n\t\tpublic int getCurrentpage() throws Exception\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}",
"void pindahKeHome(){\n SessionManager sessionManager = new SessionManager(PrintPreviewActivity.this);\n sessionManager.clearPenjualanOffline();\n\n\n //pindah ke home\n Intent homeActivity = new Intent(PrintPreviewActivity.this, MainActivity.class);\n homeActivity.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeActivity);\n this.finish();\n\n }",
"public boolean isLastFrame(){\r\n\t\t//to be implemented\r\n\t\treturn false;\r\n\t}",
"@When(\"^the user open Automation Home page$\")\r\n\tpublic void the_user_open_Automation_Home_page() throws Throwable {\n\t w.Homepage1();\r\n\t}",
"@Given(\"I am on Magalu HomePage\")\n\tpublic void i_am_on_the_homepage() {\n\t\tdriver.get(Homeurl);\n\t}",
"@Then(\"^homepage is visible$\")\n\tpublic void homepage_is_visible() throws Throwable {\n\t\tString verify = driver.findElement(By.xpath(\"//marquee[@class='heading3']\")).getText();\n\t\tAssert.assertEquals(verify, \"Welcome To Customer's Page of Guru99 Bank\", \"Error in loading!\");\n\t}",
"private void navBack() {\n Intent intent = new Intent(this, standard_home.class);\n startActivity(intent);\n }",
"@Test\n\tpublic void homepage()\n\t{\n\t//WebDriver driver = null;\n\t\t//Welcome_MurcuryTours wt=PageFactory.initElements(driver,Welcome_MurcuryTours.class);\n\t\tWelcome_MurcuryTours wt=PageFactory.initElements(driver, Welcome_MurcuryTours.class);\n\twt.signOn();\n\tdriver.navigate().back();\n\twt.register();\n\t\n\t}",
"private boolean isLastFrame() {\n\t\treturn false;\r\n\t}",
"public void userIsOnHomePage(){\n\n assertURL(\"\\\"https://demo.nopcommerce.com/\\\" \");\n }",
"@Override\n\tpublic void msgExitHome() {\n\t\t\n\t}",
"public void goBack() throws IOException { DashboardController.dbc.loadHomeScene(); }",
"public static int getHomeTabIndexByPageName(java.lang.String r7) {\n /*\n boolean r0 = android.text.TextUtils.isEmpty(r7)\n r1 = 0\n if (r0 == 0) goto L_0x0008\n return r1\n L_0x0008:\n boolean r0 = com.alimama.moon.ui.BottomNavActivity.sIsSwitchMidH5Tab\n r2 = -1\n r3 = 4\n r4 = 3\n r5 = 2\n r6 = 1\n if (r0 == 0) goto L_0x0050\n int r0 = r7.hashCode()\n switch(r0) {\n case -1074341483: goto L_0x0041;\n case -934521548: goto L_0x0037;\n case -121207376: goto L_0x002d;\n case 3351635: goto L_0x0023;\n case 110545371: goto L_0x0019;\n default: goto L_0x0018;\n }\n L_0x0018:\n goto L_0x004a\n L_0x0019:\n java.lang.String r0 = \"tools\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 1\n goto L_0x004a\n L_0x0023:\n java.lang.String r0 = \"mine\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 4\n goto L_0x004a\n L_0x002d:\n java.lang.String r0 = \"discovery\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 0\n goto L_0x004a\n L_0x0037:\n java.lang.String r0 = \"report\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 3\n goto L_0x004a\n L_0x0041:\n java.lang.String r0 = \"middle\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x004a\n r2 = 2\n L_0x004a:\n switch(r2) {\n case 0: goto L_0x0092;\n case 1: goto L_0x0091;\n case 2: goto L_0x008f;\n case 3: goto L_0x008d;\n case 4: goto L_0x004e;\n default: goto L_0x004d;\n }\n L_0x004d:\n goto L_0x0092\n L_0x004e:\n r1 = 4\n goto L_0x0092\n L_0x0050:\n int r0 = r7.hashCode()\n switch(r0) {\n case -1074341483: goto L_0x0080;\n case -934521548: goto L_0x0076;\n case -121207376: goto L_0x006c;\n case 3351635: goto L_0x0062;\n case 110545371: goto L_0x0058;\n default: goto L_0x0057;\n }\n L_0x0057:\n goto L_0x0089\n L_0x0058:\n java.lang.String r0 = \"tools\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 1\n goto L_0x0089\n L_0x0062:\n java.lang.String r0 = \"mine\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 4\n goto L_0x0089\n L_0x006c:\n java.lang.String r0 = \"discovery\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 0\n goto L_0x0089\n L_0x0076:\n java.lang.String r0 = \"report\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 3\n goto L_0x0089\n L_0x0080:\n java.lang.String r0 = \"middle\"\n boolean r7 = r7.equals(r0)\n if (r7 == 0) goto L_0x0089\n r2 = 2\n L_0x0089:\n switch(r2) {\n case 0: goto L_0x0092;\n case 1: goto L_0x0091;\n case 2: goto L_0x0092;\n case 3: goto L_0x008f;\n case 4: goto L_0x008d;\n default: goto L_0x008c;\n }\n L_0x008c:\n goto L_0x0092\n L_0x008d:\n r1 = 3\n goto L_0x0092\n L_0x008f:\n r1 = 2\n goto L_0x0092\n L_0x0091:\n r1 = 1\n L_0x0092:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.alimama.moon.features.home.HomeUtil.getHomeTabIndexByPageName(java.lang.String):int\");\n }",
"public boolean isHasMorePages() {\n\t\treturn (this.skipEntries + this.NUM_PER_PAGE - 1) < this.totalEntries;\n\t}",
"@Test\n public void userCanNotAccessHomePageWhenNotLoggedIn() {\n TestUtils.getHomePage(driver, appUrl);\n assertTrue(driver.getCurrentUrl().contains(LoginPage.LOGIN_PATH));\n LoginPage loginPage = new LoginPage(driver);\n assertTrue(loginPage.pageLoaded());\n }",
"int getLastItemOnPage();",
"public boolean isDashboardPagePresent() {\r\n\t\treturn isElementPresent(dashboardPage, SHORTWAIT);\r\n\t}",
"public boolean isSetNextPage() {\n return EncodingUtils.testBit(__isset_bitfield, __NEXTPAGE_ISSET_ID);\n }",
"boolean hasExpandedLandingPageView();",
"boolean hasLastAction();",
"public void closePage() {\n SelfieListEvent event = screenService.pop(SelfieListPresenter.class);\n if(event != null) {\n event.current = current;\n event.selfies = selfies;\n screenService.push(SelfieListPresenter.class, event);\n }\n mainActivity.getSupportActionBar().show();\n mainActivity.bottomBar.setVisibility(View.VISIBLE);\n }",
"private void waitForFirstPageToBeLoaded() {\n IdlingResource idlingResource = new ElapsedTimeIdlingResource(LATENCY_IN_MS + 1000);\n IdlingRegistry.getInstance().register(idlingResource);\n\n //Check that first item has been loaded\n onView(withItemText(\"POPULAR MOVIE #1 (1999)\")).check(matches(isDisplayed()));\n\n //Clean up\n IdlingRegistry.getInstance().unregister(idlingResource);\n }",
"public boolean hasPrevious() {\n return getPage() > 0;\n }",
"public void navigateToHomePage() {\n\t\n\t\t\tScreenShot screen = new ScreenShot();\n\n\t\t\t// Utilize the driver and invoke the chrome browser\n\t\t\tdriver.get(\" https://www.progressive.com/\");\n\t\t\tdriver.manage().window().maximize();\n\n\t\t\t// Wait for page to be loaded\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t\t// Take a Screenshot\n\t\t\tscreen.takeSnapShot(driver, \"Progressive Insurance HomePage\");\n\t\t\t\n\t\t\tclickAutoInsurance();\t\n\t\t\n\t\t}",
"@Given(\"^User is on Home Page$\")\r\n\tpublic void user_is_on_Home_Page() throws Throwable {\n\t\tsetBrowser();\r\n\t\tsetBrowserConfig();\r\n\t\tdriver.get(\"http://demowebshop.tricentis.com/\");\r\n\t}",
"@Override\n\tpublic void afterNavigateBack(WebDriver arg0) {\n\n\t}"
]
| [
"0.68936884",
"0.6370662",
"0.61900926",
"0.61793196",
"0.6128452",
"0.6119466",
"0.6019551",
"0.60136485",
"0.60136485",
"0.59946114",
"0.5918404",
"0.58473897",
"0.583685",
"0.5825322",
"0.5818142",
"0.5800526",
"0.57958215",
"0.57930875",
"0.5790322",
"0.57471156",
"0.57422644",
"0.5722066",
"0.5712615",
"0.57033825",
"0.56959355",
"0.5694085",
"0.56925553",
"0.5683773",
"0.5676763",
"0.5675552",
"0.5671242",
"0.56497264",
"0.563674",
"0.5634668",
"0.5632979",
"0.5626592",
"0.5600154",
"0.5592818",
"0.5568997",
"0.5549388",
"0.5534687",
"0.5528695",
"0.5525068",
"0.55235946",
"0.5517759",
"0.55166537",
"0.55142576",
"0.5511144",
"0.5510673",
"0.5509565",
"0.55056995",
"0.54947335",
"0.549211",
"0.546596",
"0.5458173",
"0.5428647",
"0.5407584",
"0.540027",
"0.53991264",
"0.5394675",
"0.53791463",
"0.5376684",
"0.5371451",
"0.53629273",
"0.53617626",
"0.53600967",
"0.53600967",
"0.5358348",
"0.5337137",
"0.5330228",
"0.532259",
"0.53179234",
"0.53111005",
"0.5306042",
"0.53001684",
"0.5292917",
"0.52833533",
"0.52743304",
"0.5270638",
"0.5264543",
"0.52573377",
"0.525447",
"0.5253053",
"0.52470446",
"0.524442",
"0.5243939",
"0.52413815",
"0.52354795",
"0.52323943",
"0.5230477",
"0.52285415",
"0.52230036",
"0.5208884",
"0.52078557",
"0.5199145",
"0.51882523",
"0.5185281",
"0.5179706",
"0.51785207",
"0.51738435",
"0.51677597"
]
| 0.0 | -1 |
setting textviews as per number of layouts in layouts array | private void addBottomDots(int currentPage) {
dots = new TextView[layouts.length];
//dots is textview array
int[] colorsActive = getResources().getIntArray(R.array.array_dot_active);
int[] colorsInactive = getResources().getIntArray(R.array.array_dot_inactive);
//dotslayout is linearlayout from welcome screen
dotsLayout.removeAllViews();
for (int i = 0; i < dots.length; i++) {
dots[i] = new TextView(this);
//setting bullet for every textview
dots[i].setText(Html.fromHtml("•"));
dots[i].setTextSize(35);
//different inactive colors for different pages(currentPage is which slide is displayed currently
dots[i].setTextColor(colorsInactive[currentPage]);
dotsLayout.addView(dots[i]);
}
if (dots.length > 0)
dots[currentPage].setTextColor(colorsActive[currentPage]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTxtViews(){\n \tupdateTextView(\"Phil Simms\", \"txtPatientName\");\n \tupdateTextView(\"Male\", \"txtPatientGender\");\n \tupdateTextView(\"24\", \"txtPatientAge\");\n \tupdateTextView(\"13\", \"txtPatientRoom\");\n \tupdateTextView(\"Melanoma\", \"txtPatientDiagnosis\");\n \tupdateTextView(\"165\", \"txtPatientWeight\");\n \tupdateTextView(\"10am: Gave tylenol for headache.\", \"txtPatientRecentActions\");\n \tupdateTextView(\"Beach\", \"txtPatientNotes\");\n }",
"private void setUpTextViews() {\n // Find views\n TextView userName0 = (TextView) findViewById(R.id.user_name_0);\n TextView userInfo0 = (TextView) findViewById(R.id.user_info_0);\n TextView userName1 = (TextView) findViewById(R.id.user_name_1);\n TextView userInfo1 = (TextView) findViewById(R.id.user_info_1);\n TextView userName2 = (TextView) findViewById(R.id.user_name_2);\n TextView userInfo2 = (TextView) findViewById(R.id.user_info_2);\n\n // Set text\n userName0.setText(mGroupMembers.get(0).getString(ParseConstants.KEY_FIRST_NAME));\n userInfo0.setText(mGroupMembers.get(0).getString(ParseConstants.KEY_AGE) +\n \" : : \" +\n (mGroupMembers.get(0).getString(ParseConstants.KEY_HOMETOWN)));\n\n userName1.setText(mGroupMembers.get(1).getString(ParseConstants.KEY_FIRST_NAME));\n userInfo1.setText(mGroupMembers.get(1).getString(ParseConstants.KEY_AGE) +\n \" : : \" +\n (mGroupMembers.get(1).getString(ParseConstants.KEY_HOMETOWN)));\n\n userName2.setText(mGroupMembers.get(2).getString(ParseConstants.KEY_FIRST_NAME));\n userInfo2.setText(mGroupMembers.get(2).getString(ParseConstants.KEY_AGE) +\n \" : : \" +\n (mGroupMembers.get(2).getString(ParseConstants.KEY_HOMETOWN)));\n }",
"private void buildTextLayouts(FontRenderContext frc, String fontName, int fontSize, String text, boolean bold, boolean italic) {\n AttributedString attrStr = makeAttributedString(\r\n fontName,\r\n fontSize,\r\n text,\r\n bold,\r\n italic);\r\n AttributedCharacterIterator paragraph = attrStr.getIterator();\r\n LineBreakMeasurer lineMeasurer = new LineBreakMeasurer(paragraph, frc);\r\n lineMeasurer.setPosition(paragraph.getBeginIndex());\r\n int end = paragraph.getEndIndex();\r\n while (lineMeasurer.getPosition() < end) {\r\n //compute line width to account for indents \t\r\n double lineWidth = pageWidth - 2 * margin; \r\n TextLayout l = lineMeasurer.nextLayout((float) lineWidth);\r\n textLayouts.add(l);\r\n }\r\n }",
"private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }",
"private void fillNamesLayout(FragmentActivity activity) {\n int nbOfWorkers = StoreWorkerModel.getInstance().getStoreWorkersNumber();\n int cellWidth = mScreenSize.x / (nbOfWorkers + 2);\n for (int i = 0; i < nbOfWorkers; i++) {\n TextView textView = new TextView(activity);\n String name = StoreWorkerModel.getInstance().getStoreWorker(i).getName();\n textView.setText(name);\n textView.setTextColor(Color.BLACK);\n textView.setLayoutParams(new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT, 1));\n textView.setGravity(Gravity.CENTER);\n textView.measure(0, 0);\n int width = textView.getMeasuredWidth();\n if (width >= cellWidth) {\n textView.setText(String.valueOf(name.charAt(0)));\n }\n mNamesLayout.addView(textView);\n }\n }",
"private void initBaseLayout() {\n if (topText != null) {\n TextView topicText = new TextView(mainContext);\n topicText.setText(topText);\n dimensionsContainer.setViewStyle(KEY_TOPIC_TEXT, topicText);\n topicText.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_topic));\n topicText.setClickable(true);\n topicText.setOnClickListener(generalClickListener);\n blankLayout.addView(topicText);\n }\n//Add topLayout\n //if (topLayout == null) {\n topLayout = new LinearLayout(mainContext);\n topLayout.setOrientation(LinearLayout.HORIZONTAL);\n topLayout.setLayoutParams(layoutParams_WC_WC);\n topLayout.setBackgroundColor(bgColor_Table);\n blankLayout.addView(topLayout);\n//Add numTop\n TextView numTop = new TextView(mainContext);\n numTop.setText(R.string.symbol_num);\n dimensionsContainer.setViewStyle(KEY_NUM_TOP, numTop);\n numTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_num_top));\n numTop.setClickable(true);\n numTop.setOnClickListener(generalClickListener);\n topLayout.addView(numTop);\n//Add nameTop\n TextView nameTop = new TextView(mainContext);\n nameTop.setText(nameTopTextResId);\n dimensionsContainer.setViewStyle(KEY_NAME_TOP, nameTop);\n nameTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_name_top));\n nameTop.setClickable(true);\n nameTop.setOnClickListener(generalClickListener);\n topLayout.addView(nameTop);\n\n\n\n\n\n\n//Add topHScrollView\n// if (layoutHandler.topHScrollView == null) {\n topHScrollView = new SyncedHorizontalScrollView(mainContext);\n topHScrollView.setLayoutParams(layoutParams_WC_MP);\n topHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor() !=\n null) //OverScrollColor\n {\n topHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor());\n }\n topLayout.addView(topHScrollView);\n\n//Add topScrollLayout\n // if(layoutHandler.topScrollLayout == null) {\n topScrollLayout = new LinearLayout(mainContext);\n topScrollLayout.setBackgroundColor(bgColor_Table);\n topHScrollView.addView(topScrollLayout);\n\n//Add bodyScrollView\n //if(layoutHandler.bodyScrollView == null) {\n bodyScrollView = new ScrollView(mainContext);\n bodyScrollView.setLayoutParams(layoutParams_MP_WC);\n bodyScrollView.setVerticalScrollBarEnabled(false);\n //bodyScrollView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n blankLayout.addView(bodyScrollView);\n//Add bodyLayout\n //if(layoutHandler.bodyLayout == null) {\n bodyLayout = new LinearLayout(mainContext);\n bodyLayout.setOrientation(LinearLayout.HORIZONTAL);\n bodyLayout.setLayoutParams(layoutParams_WC_WC);\n bodyScrollView.addView(bodyLayout);\n\n//Add bodyLeftLayout\n //if(layoutHandler.bodyLeftLayout == null) {\n bodyLeftLayout = new LinearLayout(mainContext);\n bodyLeftLayout.setOrientation(LinearLayout.VERTICAL);\n bodyLeftLayout.setLayoutParams(layoutParams_WC_WC);\n bodyLeftLayout.setBackgroundColor(bgColor_Table);\n bodyLayout.addView(bodyLeftLayout);\n\n//Add bodyHScrollView\n //if(layoutHandler.bodyHScrollView == null) {\n bodyHScrollView = new SyncedHorizontalScrollView(mainContext);\n bodyHScrollView.setLayoutParams(layoutParams_WC_WC);\n bodyHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor() !=\n null)//OverScrollColor\n {\n bodyHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor());\n }\n bodyLayout.addView(bodyHScrollView);\n\n//Add bodyRightLayout\n //if(layoutHandler.bodyRightLayout == null) {\n bodyRightLayout = new LinearLayout(mainContext);\n bodyRightLayout.setOrientation(LinearLayout.VERTICAL);\n bodyRightLayout.setBackgroundColor(bgColor_Table);\n bodyHScrollView.addView(bodyRightLayout);\n\n//Add Scroll Listeners\n\n ScrollManager scrollManager = new ScrollManager();\n scrollManager.setScrollDirection(ScrollManager.SCROLL_HORIZONTAL);\n scrollManager.addScrollClient(topHScrollView);\n scrollManager.addScrollClient(bodyHScrollView);\n\n// bodyScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// bodyHScrollView.getParent().requestDisallowInterceptTouchEvent(false);\n// return false;\n// }\n// });\n// bodyHScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// v.getParent().requestDisallowInterceptTouchEvent(true);\n// return false;\n// }\n// });\n\n //ScrollManager.disallowParentScroll(bodyHScrollView, 100);\n //ScrollManager.disallowChildScroll(bodyHScrollView, bodyLayout, 100);\n //bodyHScrollView.getWidth());\n //Dimensions.dipToPixels(mainContext, 800));\n// ScrollManager\n// .disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 200));\n //TODO: disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 50));\n\n }",
"@Override\r\n public int getCount() {\r\n return mTextViews.size();\r\n }",
"private void initViews() {\n removeAllViews();\n this.setOrientation(HORIZONTAL);\n this.setOnTouchListener(this);\n\n TextView textView;\n ImageView imageView;\n for (PickerItem pickerItem : items) {\n if (pickerItem.hasDrawable()) {\n imageView = new ImageView(getContext());\n imageView.setImageResource(pickerItem.getDrawable());\n imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);\n initStyle(imageView);\n this.addView(imageView);\n } else {\n if (pickerItem.getText() != null) {\n textView = new TextView(getContext());\n textView.setGravity(Gravity.CENTER);\n textView.setText(pickerItem.getText());\n initStyle(textView);\n this.addView(textView);\n }\n }\n }\n }",
"@Override\n\tpublic void findViews() {\n\t\tet1 = (TextView) findViewById(R.id.et1);\n\t\tet2 = (TextView) findViewById(R.id.et2);\n\t\tet3 = (TextView) findViewById(R.id.et3);\n\t\tet4 = (TextView) findViewById(R.id.et4);\n\t\tet5 = (TextView) findViewById(R.id.et5);\n\t\tet6 = (TextView) findViewById(R.id.et6);\n\t\tet7 = (TextView) findViewById(R.id.et7);\n\t\tet8 = (TextView) findViewById(R.id.et8);\n\t\tet9 = (TextView) findViewById(R.id.et9);\n\t\tet10 = (TextView) findViewById(R.id.et10);\n\t\tet11 = (TextView) findViewById(R.id.et11);\n\t\tet12 = (TextView) findViewById(R.id.et12);\n\t\tet13 = (TextView) findViewById(R.id.et13);\n\t\tet14 = (TextView) findViewById(R.id.et14);\n\t\ttv_total1 = findViewById(R.id.tv_total1);\n\t\ttv_total2 = findViewById(R.id.tv_total2);\n\t\tiv1 = findViewById(R.id.im1);\n\t\tiv2 = findViewById(R.id.im2);\n\t\tiv3 = findViewById(R.id.im3);\n\t\tiv4 = findViewById(R.id.im4);\n\t\tiv5 = findViewById(R.id.im5);\n\t\tiv6 = findViewById(R.id.im6);\n\t\tiv7 = findViewById(R.id.im7);\n\t\tiv8 = findViewById(R.id.im8);\n\t\tiv9 = findViewById(R.id.im9);\n\t\tiv10 = findViewById(R.id.im10);\n\t\tiv11 = findViewById(R.id.im11);\n\t\tiv12 = findViewById(R.id.im12);\n\t\tiv13 = findViewById(R.id.im13);\n\t\tiv14 = findViewById(R.id.im14);\n\t\ttv_title1 = (TextView) findViewById(R.id.tv_title1);\n\t\ttv_title2 = (TextView) findViewById(R.id.tv_title2);\n\t\ttv_title3 = (TextView) findViewById(R.id.tv_title3);\n\t\ttv_title4 = (TextView) findViewById(R.id.tv_title4);\n\t\ttv_title5 = (TextView) findViewById(R.id.tv_title5);\n\t\ttv_title6 = (TextView) findViewById(R.id.tv_title6);\n\t\ttv_title7 = (TextView) findViewById(R.id.tv_title7);\n\t\tll_progress = (LinearLayout) findViewById(R.id.ll_progress);\n\t\tll_progress.setVisibility(View.VISIBLE);\n\t}",
"private void drawStudentViews() {\n Dimensions dimsNum = dimensionsContainer.findDimensions(KEY_NUM_LEFT);\n Dimensions dimsName = dimensionsContainer.findDimensions(KEY_NAME_LEFT);\n Integer iPref = Integer.valueOf(PrefsManager.getInstance(mainContext).getPrefs()\n .getString(PrefsManager.PREFS_BLANK_NAME_FORMAT,\n \"0\"));\n String str;\n BlankTagHandler tagHandler;\n if ((studentList != null) && (!studentList.isEmpty())) {\n for (int i = 0; i < studentList.size(); i++) {\n //Add LayoutLeft\n LinearLayout layoutLeft = new LinearLayout(mainContext);\n layoutLeft.setOrientation(LinearLayout.HORIZONTAL);\n layoutLeft.setLayoutParams(layoutParams_WC_WC);\n bodyLeftLayout.addView(layoutLeft);\n //Add numBody\n TextView numBody = new TextView(mainContext);\n numBody.setText(String.valueOf(i + 1));\n dimsNum.setStyle(numBody);\n numBody.setTag(\n new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_num_body));\n numBody.setClickable(true);\n numBody.setOnClickListener(generalClickListener);\n layoutLeft.addView(numBody);\n //Add nameBody\n TextView nameBody = new TextView(mainContext);\n int formatId;\n if ((studentList.get(i).getMiddleName() == null)\n || ((studentList.get(i).getMiddleName().equals(\"\")))) {\n if (iPref == 0) { formatId = 4; } else formatId = 3;\n } else { formatId = iPref; }\n switch (formatId) {\n case 0:\n str = String.format(\"%s %c.%c.\",\n studentList.get(i).getLastName(),\n studentList.get(i).getFirstName().charAt(0),\n studentList.get(i).getMiddleName().charAt(0));\n break;\n case 1:\n str = String.format(\"%s %s %s\",\n studentList.get(i).getLastName(),\n studentList.get(i).getFirstName(),\n studentList.get(i).getMiddleName());\n break;\n case 2:\n str = String.format(\"%s %s %c.\", studentList.get(i).getLastName(),\n studentList.get(i).getFirstName(),\n studentList.get(i).getMiddleName().charAt(0));\n break;\n case 3:\n str = String.format(\"%s %s\", studentList.get(i).getLastName(),\n studentList.get(i).getFirstName());\n break;\n case 4:\n str = String.format(\"%s %c.\", studentList.get(i).getLastName(),\n studentList.get(i).getFirstName().charAt(0));\n break;\n default:\n str = \"err\";\n }\n nameBody.setText(str);\n dimsName.setStyle(nameBody);\n setClickableView(nameBody, dimsName.getBgColor());\n //nameBody.setMinHeight(Dimensions.dipToPixels(mainContext,48));\n //Add tagHandler\n tagHandler =\n new BlankTagHandler(BlankTagHandler.CeilType.STUDENT, R.id.blank_name_body);\n tagHandler.setStudentId(studentList.get(i).getId());\n tagHandler.setTextView(nameBody);\n nameBody.setTag(tagHandler);\n //DebugUtils.testStudentCols(nameBody);\n layoutLeft.addView(nameBody);\n\n }\n }\n//Add addRowCeil / Absent Row\n if (studentList == null || studentList.isEmpty() || (classList != null && !classList.isEmpty())\n || (studentList.isEmpty() && summaryEntryList != null &&\n !summaryEntryList.isEmpty())) {\n //Add LayoutLeft\n LinearLayout layoutLeft = new LinearLayout(mainContext);\n layoutLeft.setOrientation(LinearLayout.HORIZONTAL);\n layoutLeft.setLayoutParams(layoutParams_MP_WC);\n //layoutLeft.setX(dims.getViewWidth()+dims.getMarginsLeft()*2);\n layoutLeft.setGravity(Gravity.RIGHT);\n layoutLeft.setBackgroundColor(bgColor_Table);\n bodyLeftLayout.addView(layoutLeft);\n //Add nameBody\n TextView nameBody = new TextView(mainContext);\n //nameBody.setWidth(dims.getViewWidth());\n //nameBody.setGravity(Gravity.CENTER);\n\n Dimensions dimsAbsent = dimensionsContainer.findDimensions(KEY_ABSENT_CEIL);\n dimsAbsent.setStyle(nameBody);\n nameBody.setGravity(Gravity.CENTER);\n int width = 0;\n if (dimsName.getViewWidth() != null) width += dimsName.getViewWidth();\n if (dimsNum.getViewWidth() != null) width += dimsNum.getViewWidth();\n if (width != 0) {\n width += dimsNum.getMarginsLeft() + dimsNum.getMarginsRight();\n nameBody.setWidth(width);\n }\n if (studentList.isEmpty()) {\n nameBody.setText(R.string.symbol_row_add);\n tagHandler = new BlankTagHandler(BlankTagHandler.CeilType.ADD_ROW_CEIL,\n R.id.blank_absent_row);\n setClickableView(nameBody, dimsAbsent.getBgColor());\n } else {\n nameBody.setText(R.string.blank_absent_row);\n tagHandler =\n new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_absent_row);\n nameBody.setClickable(true);\n nameBody.setOnClickListener(generalClickListener);\n }\n tagHandler.setTextView(nameBody);\n nameBody.setTag(tagHandler);\n layoutLeft.addView(nameBody);\n }\n\n }",
"private void setupTextView() {\n painterTextViewMoves = findViewById(R.id.painterTextView1);\n painterTextViewTime = findViewById(R.id.painterTextView2);\n painterTextViewPoints = findViewById(R.id.painterTextView3);\n painterTextViewInstructions = findViewById(R.id.painterInstructionsView);\n }",
"private void setViews() {\n\n TextView currentApixu = findViewById(R.id.currentApixu);\n TextView currentOwm = findViewById(R.id.currentOwm);\n TextView currentWu = findViewById(R.id.currentWu);\n\n currentApixu.setText(feedValues[0]);\n currentOwm.setText(feedValues[1]);\n currentWu.setText(feedValues[2]);\n }",
"private void populateTextViews() {\n full_name_tv.setText(contact.getFullName());\n school_tv.setText(contact.getSchool());\n department_tv.setText(getDepartmentString());\n email.setText(contact.getEmail());\n number_tv.setText(contact.getNumber());\n }",
"private void initialiseBoard() {\n boardStringArr = new ArrayList<>(16);\n for (int i = 0; i < 16; i++) {\n boardStringArr.add(\"\");\n }\n int randFirstIndex = rand.nextInt(16);\n int randSecondIndex = (randFirstIndex + 5 )% 16;\n boardStringArr.set(randFirstIndex, \"2\");\n boardStringArr.set(randSecondIndex, \"2\");\n\n TextView te = (TextView) gvBoard.getChildAt(randFirstIndex);// !! not a correct way of initialising a view\n TextView te2 = (TextView) gvBoard.getChildAt(randSecondIndex);// !! not a correct way of initialising a view\n te.setText(\"2\");\n te2.setText(\"2\");\n }",
"private void initLayouts() {\n mRelativeLayout1WA = findViewById(R.id.history_layout_one_week_ago);\n mRelativeLayout6DA = findViewById(R.id.history_layout_six_days_ago);\n mRelativeLayout5DA = findViewById(R.id.history_layout_five_days_ago);\n mRelativeLayout4DA = findViewById(R.id.history_layout_four_days_ago);\n mRelativeLayout3DA = findViewById(R.id.history_layout_three_days_ago);\n mRelativeLayout2DA = findViewById(R.id.history_layout_two_days_ago);\n mRelativeLayoutY = findViewById(R.id.history_layout_yesterday);\n\n layoutsList.add(mRelativeLayoutY);\n layoutsList.add(mRelativeLayout2DA);\n layoutsList.add(mRelativeLayout3DA);\n layoutsList.add(mRelativeLayout4DA);\n layoutsList.add(mRelativeLayout5DA);\n layoutsList.add(mRelativeLayout6DA);\n layoutsList.add(mRelativeLayout1WA);\n\n }",
"public void createViews(){\n ArrayList<Words> wordsArrayList = new ArrayList<Words>();\n\n //Fill array with english word and hindi translation by creating new word objects\n for(int i = 0; i < defaultWords.size() && i < hindiTranslation.size(); i++){\n wordsArrayList.add(new Words(defaultWords.get(i), hindiTranslation.get(i)));\n }\n\n //ArrayAdapter and ListView used so that not a lot of memory is used to create all textviews when not needed\n //Update** Using WordAdapter which extends ArrayAdapter and only has 2 parameters\n\n WordAdapter adapter = new WordAdapter(this, wordsArrayList);\n\n ListView listView = (ListView) findViewById(R.id.translation_root_view);\n\n listView.setAdapter(adapter);\n\n\n }",
"private void setTextViews() {\n TextView textToggleFilters = (TextView) findViewById(R.id.text_totalExpenditure);\n textToggleFilters.setPaintFlags(textToggleFilters.getPaintFlags() | Paint.FAKE_BOLD_TEXT_FLAG);\n }",
"@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n Log.v(TAG, \"onLayout l = \" + l + \"; t = \" + t + \"; r = \" + r + \"; b = \" + b);\n int count = getChildCount();\n int x = l;\n int y = t;\n for(int i = 0; i < count; i++){\n View child = (View)getChildAt(i);\n child.layout(x, y, x + r, y + b);\n x = x + r;\n }\n }",
"private void createAndAddViews() {\n \t\t// Create the layout parameters for each field\n \t\tfinal LinearLayout.LayoutParams labelParams = new LinearLayout.LayoutParams(\n \t\t\t\t0, LayoutParams.WRAP_CONTENT, 0.3f);\n \t\tlabelParams.gravity = Gravity.RIGHT;\n \t\tlabelParams.setMargins(0, 25, 0, 0);\n \t\tfinal LinearLayout.LayoutParams valueParams = new LinearLayout.LayoutParams(\n \t\t\t\t0, LayoutParams.WRAP_CONTENT, 0.7f);\n \t\tvalueParams.gravity = Gravity.LEFT;\n \t\tvalueParams.setMargins(0, 25, 0, 0);\n \n \t\t// Add a layout and text views for each property\n \t\tfor (final StockProperty property : m_propertyList) {\n \t\t\tLog.d(TAG, \"Adding row for property: \" + property.getPropertyName());\n \n \t\t\t// Create a horizontal layout for the label and value\n \t\t\tfinal LinearLayout layout = new LinearLayout(this);\n \t\t\tlayout.setLayoutParams(new LinearLayout.LayoutParams(\n \t\t\t\t\tLayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));\n \n \t\t\t// Create a TextView for the label\n \t\t\tfinal TextView label = new TextView(this);\n \t\t\tlabel.setLayoutParams(labelParams);\n \t\t\tlabel.setText(property.getLabelText());\n \t\t\tlabel.setTextAppearance(this, android.R.style.TextAppearance_Medium);\n \t\t\tlayout.addView(label);\n \n \t\t\t// Configure and add the value TextView (created when the property\n \t\t\t// was constructed)\n \t\t\tfinal TextView value = property.getView();\n \t\t\tvalue.setLayoutParams(valueParams);\n \t\t\tvalue.setHint(\"None\");\n \t\t\tvalue.setTextAppearance(this, android.R.style.TextAppearance_Medium);\n \t\t\tvalue.setTypeface(null, Typeface.BOLD);\n \t\t\tlayout.addView(value);\n \n \t\t\t// Add the row to the main layout\n \t\t\tm_resultsLayout.addView(layout);\n \t\t}\n \t}",
"public void setUpFields() {\n //Assigning each of the warning to relevant TextViews\n warning1 = findViewById(R.id.tvWarning1);\n warning2 = findViewById(R.id.tvWarning2);\n warning3 = findViewById(R.id.tvWarning3);\n warning4 = findViewById(R.id.tvWarning4);\n warning5 = findViewById(R.id.tvWarning5);\n warning6 = findViewById(R.id.tvWarning6);\n warning7 = findViewById(R.id.tvWarning7);\n warning8 = findViewById(R.id.tvWarning8);\n }",
"private void setLayoutsFromMood() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n int mPosition = historicList.get(i).getPosition();\n if (mPosition > 4) {\n mPosition = 4;\n } else if (mPosition < 0) {\n mPosition = 0;\n }\n layout.setBackgroundColor(ContextCompat.getColor(this, historyListMood.get(mPosition).getBackgroundColor()));\n layout.setVisibility(View.VISIBLE);\n\n }\n\n\n }",
"private final Layout m8723a(int i, TextPaint textPaint) {\n Alignment alignment = Alignment.ALIGN_CENTER;\n TruncateAt truncateAt = TruncateAt.END;\n if (VERSION.SDK_INT >= 23) {\n String str = this.f7475e;\n Builder obtain = Builder.obtain(str, 0, str.length(), textPaint, i);\n C12932j.m33815a((Object) obtain, \"StaticLayout.Builder.obt…extPaint, availableWidth)\");\n StaticLayout build = obtain.setAlignment(alignment).setLineSpacing(0.0f, 1.0f).setIncludePad(false).setEllipsize(truncateAt).setEllipsizedWidth(i).setMaxLines(1).build();\n C12932j.m33815a((Object) build, \"layoutBuilder.setAlignme…\\n .build()\");\n return build;\n }\n String str2 = this.f7475e;\n StaticLayout staticLayout = new StaticLayout(str2, 0, str2.length(), textPaint, i, alignment, 1.0f, 0.0f, false, truncateAt, i);\n return staticLayout;\n }",
"public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n TextView textView;\n super.onLayout(z, i, i2, i3, i4);\n if (!(this.viewType == 1 || this.nameTextView.getLineCount() > 1 || (textView = this.captionTextView) == null)) {\n textView.getVisibility();\n }\n int measuredHeight = this.nameTextView.getMeasuredHeight() - AndroidUtilities.dp(22.0f);\n TextView textView2 = this.captionTextView;\n if (textView2 != null && textView2.getVisibility() == 0) {\n TextView textView3 = this.captionTextView;\n textView3.layout(textView3.getLeft(), this.captionTextView.getTop() + measuredHeight, this.captionTextView.getRight(), this.captionTextView.getBottom() + measuredHeight);\n measuredHeight += this.captionTextView.getMeasuredHeight() + AndroidUtilities.dp(3.0f);\n }\n TextView textView4 = this.dateTextView;\n textView4.layout(textView4.getLeft(), this.dateTextView.getTop() + measuredHeight, this.dateTextView.getRight(), this.dateTextView.getBottom() + measuredHeight);\n RLottieImageView rLottieImageView = this.statusImageView;\n rLottieImageView.layout(rLottieImageView.getLeft(), this.statusImageView.getTop() + measuredHeight, this.statusImageView.getRight(), measuredHeight + this.statusImageView.getBottom());\n LineProgressView lineProgressView = this.progressView;\n lineProgressView.layout(lineProgressView.getLeft(), (getMeasuredHeight() - this.progressView.getMeasuredHeight()) - (this.needDivider ? 1 : 0), this.progressView.getRight(), getMeasuredHeight() - (this.needDivider ? 1 : 0));\n }",
"@Override\n\tprotected void setupWidgets() {\n\t\tmHeaderText = (TextView) findViewById(R.id.textViewHeader);\n\t\tmBrandText = (TextView) findViewById(R.id.textViewBrand);\n\t\tmModelText = (TextView) findViewById(R.id.textViewModel);\n\t\tmColorText = (TextView) findViewById(R.id.textViewColor);\n\t\tmSeatsText = (TextView) findViewById(R.id.textViewSeats);\n\t\tmPlateText = (TextView) findViewById(R.id.textViewPlate);\n\t\tmFuelText = (TextView) findViewById(R.id.textViewFuel);\n\t\tmConsumptionText = (TextView) findViewById(R.id.textViewConsumption);\n\t}",
"private void setLayout(){\n Typeface typeface = ResourcesCompat.getFont(getActivity(), R.font.acumin);\n txtName.setTypeface(typeface);\n txtNickname.setTypeface(typeface);\n }",
"public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n i3 -= i;\n i4 -= i2;\n int dp = AndroidUtilities.m26dp(8.0f);\n int i5 = 0;\n ChatAttachAlert.this.attachPhotoRecyclerView.layout(0, dp, i3, ChatAttachAlert.this.attachPhotoRecyclerView.getMeasuredHeight() + dp);\n ChatAttachAlert.this.progressView.layout(0, dp, i3, ChatAttachAlert.this.progressView.getMeasuredHeight() + dp);\n ChatAttachAlert.this.lineView.layout(0, AndroidUtilities.m26dp(96.0f), i3, AndroidUtilities.m26dp(96.0f) + ChatAttachAlert.this.lineView.getMeasuredHeight());\n ChatAttachAlert.this.hintTextView.layout((i3 - ChatAttachAlert.this.hintTextView.getMeasuredWidth()) - AndroidUtilities.m26dp(5.0f), (i4 - ChatAttachAlert.this.hintTextView.getMeasuredHeight()) - AndroidUtilities.m26dp(5.0f), i3 - AndroidUtilities.m26dp(5.0f), i4 - AndroidUtilities.m26dp(5.0f));\n i = (i3 - ChatAttachAlert.this.mediaBanTooltip.getMeasuredWidth()) / 2;\n dp += (ChatAttachAlert.this.attachPhotoRecyclerView.getMeasuredHeight() - ChatAttachAlert.this.mediaBanTooltip.getMeasuredHeight()) / 2;\n ChatAttachAlert.this.mediaBanTooltip.layout(i, dp, ChatAttachAlert.this.mediaBanTooltip.getMeasuredWidth() + i, ChatAttachAlert.this.mediaBanTooltip.getMeasuredHeight() + dp);\n i3 = (i3 - AndroidUtilities.m26dp(360.0f)) / 3;\n dp = 0;\n while (i5 < 8) {\n if (ChatAttachAlert.this.views[i5] != null) {\n i = AndroidUtilities.m26dp((float) (((dp / 4) * 97) + 105));\n i2 = AndroidUtilities.m26dp(10.0f) + ((dp % 4) * (AndroidUtilities.m26dp(85.0f) + i3));\n ChatAttachAlert.this.views[i5].layout(i2, i, ChatAttachAlert.this.views[i5].getMeasuredWidth() + i2, ChatAttachAlert.this.views[i5].getMeasuredHeight() + i);\n dp++;\n }\n i5++;\n }\n }",
"public void initViews(){\n layout_health = (RelativeLayout) findViewById(R.id.layout_health);\n layout_msg = (RelativeLayout) findViewById(R.id.layout_msg);\n layout_usercenter = (RelativeLayout) findViewById(R.id.layout_usercenter);\n\n// img_home = (ImageView) findViewById(R.id.img_home);\n img_health = (ImageView) findViewById(R.id.img_health);\n img_msg = (ImageView) findViewById(R.id.img_msg);\n img_usercenter = (ImageView) findViewById(R.id.img_usercenter);\n\n// tv_home = (TextView) findViewById(R.id.tv_home);\n tv_health = (TextView) findViewById(R.id.tv_health);\n tv_msg = (TextView) findViewById(R.id.tv_msg);\n tv_usercenter = (TextView) findViewById(R.id.tv_usercenter);\n\n }",
"private void retrieveGridTxtViews() throws SecurityException,\n\t\t\tNoSuchFieldException, IllegalArgumentException,\n\t\t\tIllegalAccessException {\n\t\tClass<id> idClass = R.id.class;\n\t\tfor (int rowIndex = 0; rowIndex < WordZapConstants.GRID_NUMROWS; rowIndex++) {\n\t\t\tfor (int colIndex = 0; colIndex < WordZapConstants.GRID_NUMCOLS; colIndex++) {\n\t\t\t\tField txtViewField = idClass.getField(\"txtView\" + rowIndex\n\t\t\t\t\t\t+ colIndex);\n\t\t\t\tTextView aTxtView = (TextView) findViewById(txtViewField\n\t\t\t\t\t\t.getInt(null));\n\t\t\t\tthis.gridTxtViews[rowIndex][colIndex] = aTxtView;\n\t\t\t\taTxtView.setText(\"\");\n\t\t\t}\n\t\t}\n\n\t}",
"public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }",
"public void updateLayoutData() {\n\t\tint height;\n\t\tint width;\n\t\tif (isVisible() && !text.trim().equals(\"\")) {\n\t\t\tif (styleRanges == null) {\n\t\t\t\tPoint p = Util.getExtentInGC(getFont(), text);\n\t\t\t\twidth = p.x;\n\t\t\t\theight = p.y;\n\t\t\t} else {\n\t\t\t\tRectangle r = textLayout.getBounds();\n\t\t\t\twidth = r.width;\n\t\t\t\theight = r.height;\n\t\t\t}\n\t\t} else {\n\t\t\twidth = 0;\n\t\t\theight = 0;\n\t\t}\n\n\t\tif (isHorizontal()) {\n\t\t\tsetLayoutData(new ChartLayoutData(width, height));\n\t\t} else {\n\t\t\tsetLayoutData(new ChartLayoutData(height, width));\n\t\t}\n\t}",
"@Override\n public int getCount() {\n return texts.length;\n }",
"public void initView() {\n setEllipsize(TruncateAt.MARQUEE);\n setSingleLine(true);\n setMarqueeRepeatLimit(-1);\n setFocusable(true);\n setFocusableInTouchMode(false);\n }",
"private void instanciarTextButtons(){\n for (int buttons : textIds) {\n TextView btn = findViewById(buttons);\n ComponentesAuxiliares.definirFonte(this, btn);\n }\n }",
"public void TextView_Config(){\n textviewBaro=(TextView) findViewById(R.id.textviewGravity);\n textviewAcceleration=(TextView) findViewById(R.id.textviewAcceleration);\n textviewGyro=(TextView) findViewById(R.id.textviewGyro);\n display=(TextView)findViewById(R.id.textView1);\n }",
"@Override\r\n\tpublic void setupView() {\n\t\ttv = (TextView) findViewById(R.id.mjson_layout_text);\r\n\t}",
"@Override\r\n\tprotected void onLayout(boolean paramBoolean, int paramInt1, int paramInt2,\r\n\t\t\tint paramInt3, int paramInt4) {\n\t\tint j = paramInt3 - paramInt1;\r\n\t\tint k = paramInt4 - paramInt2;\r\n\t\tif (this.navBar != null) {\r\n\t\t\tint i = this.navBar.getMeasuredHeight();\r\n\t\t\tthis.navBar.layout(0, 0, j, i);\r\n\t\t\tthis.mainContent.layout(0, i, j, k);\r\n\t\t}\r\n\t\tif (this.spinnerView != null)\r\n\t\t\tthis.spinnerView.layout(0, 0, j, k);\r\n\t}",
"private void initViews() {\n charCounter = (TextView) findViewById(R.id.tv_char_counter);\n tweetInput = (EditText) findViewById(R.id.et_tweet_input);\n btnTweet = (Button) findViewById(R.id.btn_tweet);\n\n tweetInput.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n updateViews();\n }\n });\n }",
"public void InitLayout() {\n SetBackground(R.drawable.can_dfqc_ac_bg);\n this.mTvA = AddText(121, 173, 203, 25);\n this.mTvP = AddText(121, 212, KeyDef.RKEY_RADIO_6S, 25);\n this.mTvMode = AddText(121, Can.CAN_FLAT_RZC, 203, 25);\n this.mTvC = AddText(121, 295, 139, 25);\n this.mTvWind = AddText(121, KeyDef.RKEY_AVIN, 53, 25);\n initValue();\n }",
"abstract void setLayouts(@Nullable List<LayoutHelper> layouts);",
"private void initGridTxtViewListeners() {\n\t\tfor (int rowIndex = 0; rowIndex < gridTxtViews.length; rowIndex++) {\n\t\t\tfor (int colIndex = 0; colIndex < gridTxtViews[rowIndex].length; colIndex++) {\n\t\t\t\tgridTxtViews[rowIndex][colIndex]\n\t\t\t\t\t\t.setOnClickListener(new GridTextViewListener(this));\n\t\t\t}\n\t\t}\n\t}",
"public void mo26992a(TextView textView, int i) {\n if (this.f24563c == null && this.f24565e == null) {\n this.f24563c = new LinearLayout(this.f24561a);\n this.f24563c.setOrientation(0);\n this.f24562b.addView(this.f24563c, -1, -2);\n this.f24565e = new FrameLayout(this.f24561a);\n this.f24563c.addView(this.f24565e, -1, new LayoutParams(-2, -2));\n this.f24563c.addView(new C4236a(this.f24561a), new LinearLayout.LayoutParams(0, 0, 1.0f));\n if (this.f24562b.getEditText() != null) {\n mo26989a();\n }\n }\n if (mo26995a(i)) {\n this.f24565e.setVisibility(0);\n this.f24565e.addView(textView);\n this.f24566f++;\n } else {\n this.f24563c.addView(textView, i);\n }\n this.f24563c.setVisibility(0);\n this.f24564d++;\n }",
"private TableLayout createTableLayout(String [] rv, String [] cv,int rowCount, int columnCount) {\n TableLayout.LayoutParams tableLayoutParams = new TableLayout.LayoutParams();\n TableLayout tableLayout = new TableLayout(this);\n tableLayout.setBackgroundColor(Color.BLACK);\n\n // 2) create tableRow params\n TableRow.LayoutParams tableRowParams = new TableRow.LayoutParams();\n tableRowParams.setMargins(1, 1, 1, 1);\n tableRowParams.weight = 1;\n\n for (int i = 0; i < rowCount; i++) {\n // 3) create tableRow\n TableRow tableRow = new TableRow(this);\n tableRow.setBackgroundColor(Color.BLACK);\n\n for (int j= 0; j < columnCount; j++) {\n // 4) create textView\n TextView textView = new TextView(this);\n // textView.setText(String.valueOf(j));\n textView.setBackgroundColor(Color.WHITE);\n textView.setGravity(Gravity.CENTER);\n\n String s1 = Integer.toString(i);\n String s2 = Integer.toString(j);\n String s3 = s1 + s2;\n int id = Integer.parseInt(s3);\n Log.d(\"TAG\", \"-___>\" + id);\n if (i ==0 && j==0){\n textView.setText(\"Name\");\n } else if(i==0){\n Log.d(\"TAAG\", \"set Column Headers\");\n textView.setText(cv[j-1]);\n }else if( j==0){\n Log.d(\"TAAG\", \"Set Row Headers\");\n textView.setText(rv[i-1]);\n }else if(j==4) {\n textView.setText(\"\"+totalmarks.get(i));\n // check id=23\n } else if(j==3){\n textView.setText(\"\"+englishmarks[i]);\n }else if(j==2) {\n textView.setText(\"\"+sciencemarks[i]);\n } else if(j==1) {\n textView.setText(\"\"+mathsmarks[i]);\n } else{\n textView.setText(\"\" + id);\n }\n // 5) add textView to tableRow\n tableRow.addView(textView, tableRowParams);\n }\n // 6) add tableRow to tableLayout\n tableLayout.addView(tableRow, tableLayoutParams);\n }\n\n return tableLayout;\n }",
"private void prepareViews() {\n mTextViewHeader = (TextView) mHeaderView.findViewById(R.id.tv_text_header_enhanced_listview);\n mTextViewFooter = (TextView) mFooterView.findViewById(R.id.tv_text_footer_enhanced_listview);\n mTextViewTime = (TextView) mHeaderView.findViewById(R.id.tv_time_update_header);\n\n mArrowHeader = mHeaderView.findViewById(R.id.arrow_header);\n mArrowFooter = mFooterView.findViewById(R.id.arrow_footer);\n\n mPbHeader = mHeaderView.findViewById(R.id.pb_header_enhanced_listview);\n mPbFooter = mFooterView.findViewById(R.id.pb_footer_enhanced_listview);\n\n }",
"private void setupAllSpecialLayoutViews(){\n allSpecialLayoutViews = new ArrayList<>();\n allSpecialLayoutViews.add(radianSpecialLayout);\n allSpecialLayoutViews.add(sineSpecialLayout);\n allSpecialLayoutViews.add(cosineSpecialLayout);\n allSpecialLayoutViews.add(tangentSpecialLayout);\n allSpecialLayoutViews.add(radianDivBar);\n allSpecialLayoutViews.add(radianTextDenominator);\n allSpecialLayoutViews.add(sineDivBar);\n allSpecialLayoutViews.add(sineTextDenominator);\n allSpecialLayoutViews.add(cosineDivBar);\n allSpecialLayoutViews.add(cosineTextDenominator);\n allSpecialLayoutViews.add(tangentDivBar);\n allSpecialLayoutViews.add(tangentTextDenominator);\n }",
"private void setWidth() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n\n ViewGroup.LayoutParams params = layout.getLayoutParams();\n int position = historicList.get(i).position;\n if (position > 4) {\n position = 4;\n } else if (position < 0) {\n position = 0;\n }\n WidthScreen(position, params);\n }\n }",
"public void createSetUI(final LinearLayout linearLayout, final int setNum, Set set){\n final RelativeLayout relativeLayout=new RelativeLayout(this);\n RelativeLayout.LayoutParams params=new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams edittxtWeightParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n params.setMargins(0,5,0,0);\n relativeLayout.setLayoutParams(params);\n RelativeLayout.LayoutParams edittxtRepParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams lblxParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams lblSetsParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams btndelParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n\n EditText editTextWeight=new EditText(this);\n editTextWeight.setId(View.generateViewId());\n weightsIds.add(editTextWeight.getId());\n editTextWeight.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n EditText editTextRep=new EditText(this);\n editTextRep.setId(View.generateViewId());\n editTextRep.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n repsids.add(editTextRep.getId());\n TextView xdivider=new TextView(this);\n xdivider.setId(View.generateViewId());\n TextView setNumlbl=new TextView(this);\n setNumlbl.setId(View.generateViewId());\n Button btnDelSet=new Button(this);\n btnDelSet.setId(View.generateViewId());\n btnDelSet.setText(\"x\");\n btnDelSet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) { delSet(v); }});\n btnDelSet.setTextColor(Color.RED);\n btnDelSet.setHeight(80);\n btnDelSet.setWidth(80);\n btnDelSet.setBackgroundColor(Color.TRANSPARENT);\n editTextWeight.setHint(\"Weight\");\n editTextWeight.setHeight(125);\n editTextWeight.setWidth(350);\n editTextRep.setWidth(350);\n editTextRep.setHeight(125);\n setNumlbl.setTextSize(20);\n\n Typeface bold=Typeface.defaultFromStyle(Typeface.BOLD);\n setNumlbl.setTypeface(bold);\n editTextRep.setHint(\"Rep\");\n xdivider.setText(\"X\");\n setNumlbl.setText(\"Set \"+setNum);\n\n edittxtWeightParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n edittxtWeightParams.addRule(RelativeLayout.LEFT_OF, xdivider.getId());\n lblSetsParams.setMargins(10, 10, 10, 10);\n edittxtWeightParams.setMargins(10, 0, 10, 10);\n edittxtRepParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n edittxtRepParams.addRule(RelativeLayout.RIGHT_OF, xdivider.getId());\n edittxtRepParams.setMargins(10, 0, 10, 10);\n lblxParams.setMargins(10, 0, 10, 10);\n btndelParams.setMargins(5, 5,10,10);\n btndelParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n btndelParams.addRule(RelativeLayout.ALIGN_BASELINE, setNumlbl.getId());\n lblxParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n lblxParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n lblxParams.addRule(RelativeLayout.ALIGN_BASELINE, editTextRep.getId());\n editTextWeight.setLayoutParams(edittxtWeightParams);\n editTextRep.setLayoutParams(edittxtRepParams);\n setNumlbl.setLayoutParams(lblSetsParams);\n xdivider.setLayoutParams(lblxParams);\n btnDelSet.setLayoutParams(btndelParams);\n if (set!=null){\n editTextWeight.setText(set.getWeight()+\"\");\n editTextRep.setText(set.getReps()+\"\");\n }\n relativeLayout.addView(editTextWeight, edittxtWeightParams);\n relativeLayout.addView(editTextRep, edittxtRepParams);\n relativeLayout.addView(xdivider, lblxParams);\n relativeLayout.addView(setNumlbl, lblSetsParams);\n relativeLayout.addView(btnDelSet, btndelParams);\n\n View divider=new View(this);\n divider.setLayoutParams(new LinearLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, 1));\n divider.setBackgroundColor(Color.parseColor(\"#B3B3B3\"));\n linearLayout.addView(relativeLayout, params);\n linearLayout.addView(divider);\n setsViewList.add(relativeLayout);\n }",
"public void applyViewsLayoutParams(int i) {\n int dp = AndroidUtilities.displaySize.x - AndroidUtilities.dp(24.0f);\n ViewGroup viewGroup = this.leftView;\n if (viewGroup != null) {\n FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) viewGroup.getLayoutParams();\n if (layoutParams.width != dp) {\n layoutParams.width = dp;\n this.leftView.setLayoutParams(layoutParams);\n }\n this.leftView.setTranslationX((float) ((-dp) + i));\n }\n ViewGroup viewGroup2 = this.leftButtonsView;\n if (viewGroup2 != null) {\n viewGroup2.setTranslationX((float) ((-dp) + i));\n }\n ViewGroup viewGroup3 = this.centerView;\n if (viewGroup3 != null) {\n FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) viewGroup3.getLayoutParams();\n if (layoutParams2.width != dp) {\n layoutParams2.width = dp;\n this.centerView.setLayoutParams(layoutParams2);\n }\n this.centerView.setTranslationX((float) i);\n }\n ViewGroup viewGroup4 = this.centerButtonsView;\n if (viewGroup4 != null) {\n viewGroup4.setTranslationX((float) i);\n }\n ViewGroup viewGroup5 = this.rightView;\n if (viewGroup5 != null) {\n FrameLayout.LayoutParams layoutParams3 = (FrameLayout.LayoutParams) viewGroup5.getLayoutParams();\n if (layoutParams3.width != dp) {\n layoutParams3.width = dp;\n this.rightView.setLayoutParams(layoutParams3);\n }\n this.rightView.setTranslationX((float) (dp + i));\n }\n ViewGroup viewGroup6 = this.rightButtonsView;\n if (viewGroup6 != null) {\n viewGroup6.setTranslationX((float) (dp + i));\n }\n this.messageContainer.invalidate();\n }",
"public void setTxtViews(String ssid, String ip, String signal){\n ssidView.setText(ssid);\n ipView.setText(ip);\n signalView.setText(signal);\n }",
"public void setDataCount(TextView textView, int i) {\n textView.setText(Html.fromHtml(getContext().getString(R.string.activities_destination_record_count, new Object[]{Integer.valueOf(i)})));\n }",
"@Override\n protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n// int childLeft = getPaddingLeft();\n// int childRight = right - left - getPaddingRight();\n// int childTop = getPaddingTop();\n// int childBottom = bottom - top - getPaddingBottom();\n//\n// int tempLeftBottom = childTop + leftLabel.getMeasuredHeight();\n// leftLabel.item_personal_center_prefix(childLeft, childTop, childRight, tempLeftBottom);\n// childTop += leftLabel.getMeasuredHeight();\n//\n// int tempRightTop = childBottom - rightLebel.getMeasuredHeight();\n// rightLebel.item_personal_center_prefix(childLeft, tempRightTop, childRight, childBottom);\n// childBottom -= rightLebel.getMeasuredHeight();\n//\n//\n// inputEdit.item_personal_center_prefix(childLeft, childTop, childRight, childBottom);\n int childLeft = getPaddingLeft();\n int childTop = getPaddingTop();\n int childBottom = leftLabel.getMeasuredHeight();\n int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n int h = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n leftLabel.measure(w, h);\n inputEdit.measure(w, h);\n rightLebel.measure(w, h);\n divider.measure(w, h);\n\n int childRight = leftLabel.getMeasuredWidth();\n leftLabel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft += leftLabel.getMeasuredWidth();\n childRight = right - getPaddingRight() - rightLebel.getMeasuredWidth();\n childBottom = inputEdit.getMeasuredHeight();\n inputEdit.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = right - rightLebel.getMeasuredWidth() - getPaddingRight();\n childRight = right - getPaddingRight();\n childBottom = rightLebel.getMeasuredHeight();\n rightLebel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = getPaddingLeft();\n childRight= right - getPaddingRight();\n childTop = getPaddingTop() + inputEdit.getMeasuredHeight();\n childBottom = childTop + 1;\n divider.layout(childLeft, childTop + dividerPadding, childRight, childBottom);\n }",
"@Override\n\tprotected void InitResource() {\n\t\ttextViewNum1 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_1);\n\t\ttextViewNum2 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_2);\n\t\ttextViewNum3 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_3);\n\t\ttextViewNum4 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_4);\n\t\ttextViewNum5 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_5);\n\t\ttextViewNum6 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_6);\n\t\ttextViewNum7 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_7);\n\t\ttextViewNum8 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_8);\n\t\ttextViewNum9 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_9);\n\t\ttextViewNum0 = (TextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_num_0);\n\t\t\n\t\ttextViewTitle = (TextFitTextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_text_title);\n\t\ttextViewPassword = (TextFitTextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_text_data);\n\t\ttextViewCancel = (TextFitTextView)mRoot.findViewById(R.id.textView_menu_body_mode_engineautoshutdown_pw_low_cancel);\n\t\ttextViewCancel.setText(getString(ParentActivity.getResources().getString(string.Cancel), 16));\n\t\t\n\t\t\n\t\timgbtnBack = (ImageButton)mRoot.findViewById(R.id.imageButton_menu_body_mode_engineautoshutdown_pw_num_back);\n\t\timgbtnEnter = (ImageButton)mRoot.findViewById(R.id.imageButton_menu_body_mode_engineautoshutdown_pw_num_enter);\n\t\timgbtnCancel = (ImageButton)mRoot.findViewById(R.id.ImageButton_menu_body_mode_engineautoshutdown_pw_low_cancel);\n\n\t\tcheckDisplay = (CheckBox)mRoot.findViewById(R.id.checkBox_menu_body_mode_engineautoshutdown_pw_display);\n\t}",
"private void setViews4Display() {\n nameView.setFocusable(false);\n nameView.setClickable(false);\n nameView.setInputType(InputType.TYPE_NULL);\n\n ageView.setFocusable(false);\n ageView.setClickable(false);\n ageView.setInputType(InputType.TYPE_NULL);\n\n phoneView.setFocusable(false);\n phoneView.setClickable(false);\n phoneView.setInputType(InputType.TYPE_NULL);\n\n workView.setFocusable(false);\n workView.setClickable(false);\n workView.setInputType(InputType.TYPE_NULL);\n\n emailView.setFocusable(false);\n emailView.setClickable(false);\n emailView.setInputType(InputType.TYPE_NULL);\n\n save.setVisibility(View.GONE);\n\n if (nameView.getText().toString().equals(\"\"))\n nameView.setVisibility(View.GONE);\n if (ageView.getText().toString().equals(\"\"))\n ageView.setVisibility(View.GONE);\n if (emailView.getText().toString().equals(\"\"))\n emailView.setVisibility(View.GONE);\n if (workView.getText().toString().equals(\"\"))\n workView.setVisibility(View.GONE);\n if (phoneView.getText().toString().equals(\"\"))\n phoneView.setVisibility(View.GONE);\n\n // check if user have past activities\n int childCount = past_activities.getChildCount();\n if (childCount == 1)\n past_activities.setVisibility(View.GONE);\n }",
"private void init(){\n for(int i=0; i<MyRoomWriteActivity.myroomwritetag.size(); i++){\r\n if(i ==0){\r\n MyRoomWriteActivity.mr_write_tag1.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }else if(i ==1){\r\n MyRoomWriteActivity.mr_write_tag2.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }else if(i ==2){\r\n MyRoomWriteActivity.mr_write_tag3.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }else if(i ==3){\r\n MyRoomWriteActivity.mr_write_tag4.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }else if(i ==4){\r\n MyRoomWriteActivity.mr_write_tag5.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }\r\n\r\n }\r\n }",
"public void onGlobalLayout() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n llItems.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n } else {\n llItems.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n }\n int centerPosition = 0;\n\n // measure your views here\n int totalChildren = llItems.getChildCount();\n\n for (int i = 0; i < totalChildren - 1; i++) {\n ItemView firstItem = (ItemView) llItems.getChildAt(i);\n ItemView secondItem = (ItemView) llItems.getChildAt(i + 1);\n\n if (i == 0) {\n int paddingLeft = firstItem.getPaddingLeft();\n\n View radioButton = firstItem.findViewById(R.id.rb__choice);\n centerPosition = paddingLeft + radioButton.getWidth() / 2;\n }\n\n View lineView = inflater.inflate(R.layout.item_vertical_line, null);\n llLines.addView(lineView);\n lineView.setTag(\"LINE_\" + i);\n\n View line = lineView.findViewById(R.id.v__line);\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) line.getLayoutParams();\n\n int topSpace = 0;\n if (i == 0) {\n topSpace = firstItem.getHeight() / 2 + firstItem.rbChoice.getHeight() / 2;\n } else {\n topSpace = firstItem.rbChoice.getHeight();\n }\n\n params.setMargins(centerPosition - 1, topSpace, 0, 0);\n\n int height = firstItem.getHeight() + secondItem.getTopRadio() - firstItem.getBottomRadio();\n Log.i(\"TRUNGNTH\", \"Height: \" + height + \" secondItem.getTopRadio(): \" + secondItem.getTopRadio() + \" | firstItem.getBottomRadio(): \" + firstItem.getBottomRadio());\n params.height = height;\n line.setLayoutParams(params);\n }\n }",
"public void fillTheLayout() {\n for (int i = 0; i < ROW_COUNT; i++) {\n //these are horizontal linear layouts that will be part of the vertical linear layout, shown in XML\n LinearLayout sublinearLayout = new LinearLayout(this);\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.WRAP_CONTENT);\n layoutParams.weight = 1;\n\n sublinearLayout.setLayoutParams(layoutParams);\n //center align the contents\n sublinearLayout.setGravity(Gravity.CENTER);\n sublinearLayout.setPadding(PADDING, PADDING, PADDING, PADDING);\n\n for (int j = 0; j < COLUMN_COUNT; j++) {\n\n// Add the gifImageViews to the linear layout created above\n GifImageView gifImageView = new GifImageView(this);\n LinearLayout.LayoutParams imageViewlayoutParam = new LinearLayout.LayoutParams(\n ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.WRAP_CONTENT);\n imageViewlayoutParam.weight = 1;\n\n gifImageView.setLayoutParams(imageViewlayoutParam);\n //this padding helps in showing the white boundaries\n gifImageView.setPadding(PADDING, PADDING, PADDING, PADDING);\n //Similar to storing in row-major form, used that logic to set id's\n gifImageView.setId(i * COLUMN_COUNT + j);\n //main activity implements the onClick\n gifImageView.setOnClickListener(this);\n Block block = new Block(gifImageView);\n block.display();\n arrayList.add(block);\n sublinearLayout.addView(gifImageView);\n\n }\n linearLayout.addView(sublinearLayout);\n }\n //change grid's color, after initialising the layout\n changeColor();\n }",
"public static void setTextFonts(Context mContext, String[] fonts, String[] texts, TextView textViewItem) {\n\t\t\n\t\tString content = texts[0];\n\t\tTypeface content_font = Typefaces.get(mContext, fonts[0]);\n\t\t// set texts\n\t\tif(texts.length > 1) {\n\t\t\tint i = 0;\n\t\t\twhile(i < texts.length) {\n\t\t\t\tString text = texts[i];\n\t\t\t\tif(content.contains(\"{\" + (i-1) + \"}\")) {\n\t\t\t\t\tcontent = content.replace(\"{\" + (i-1) + \"}\", text);\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t// set fonts\n\t\tSpannableStringBuilder SS = new SpannableStringBuilder(content);\n\t\tint last_index = 0;\n\t\tchar[] last_array = null;\n\t\tif(texts.length > 1) {\n\t\t\tint index = 1;\n\t\t\twhile(index < texts.length) {\n\t\t\t\tString text = texts[index];\n\t\t\t\t\n\t\t\t\tint current_index = content.indexOf(text);\n\t\t\t\t\n\t\t\t\tchar[] charArrayCurrent = text.toCharArray();\n\t\t\t\tTypeface current_font = Typefaces.get(mContext, fonts[index]);\n\t\t\t\t\n\t\t\t\tif(last_index <= 0) {\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), 0, current_index, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", current_font), current_index, current_index + charArrayCurrent.length,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t} else {\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), last_index + last_array.length + 1, current_index,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t SS.setSpan (new CustomTypefaceSpan(\"\", current_font), current_index, current_index + charArrayCurrent.length,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t}\n\t\t\t\t\n\t\t last_index = current_index;\n\t\t last_array = charArrayCurrent;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tif(last_index + last_array.length < content.length()) {\n\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), last_index + last_array.length + 1, content.length(),Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t}\n\t\t}\n // set text\n textViewItem.setText(SS);\n\t\t\n\t}",
"public void initViews() {\n rb_greenTablet = findViewById(R.id.green_tablet);\n rb_blackTablet = findViewById(R.id.black_tablet);\n rb_fireTablet = findViewById(R.id.fire_tablet);\n }",
"public boolean onCustomLayout(View view, int i, int i2, int i3, int i4) {\n int i5 = i3 - i;\n i2 = i4 - i2;\n Object obj = i5 < i2 ? 1 : null;\n if (view == this.cameraPanel) {\n if (obj != null) {\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n this.cameraPanel.layout(0, i4 - AndroidUtilities.m26dp(196.0f), i5, i4 - AndroidUtilities.m26dp(96.0f));\n } else {\n this.cameraPanel.layout(0, i4 - AndroidUtilities.m26dp(100.0f), i5, i4);\n }\n } else if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n this.cameraPanel.layout(i3 - AndroidUtilities.m26dp(196.0f), 0, i3 - AndroidUtilities.m26dp(96.0f), i2);\n } else {\n this.cameraPanel.layout(i3 - AndroidUtilities.m26dp(100.0f), 0, i3, i2);\n }\n return true;\n }\n View view2 = this.counterTextView;\n if (view == view2) {\n if (obj != null) {\n i5 = (i5 - view2.getMeasuredWidth()) / 2;\n i4 -= AndroidUtilities.m26dp(154.0f);\n this.counterTextView.setRotation(0.0f);\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n i4 -= AndroidUtilities.m26dp(96.0f);\n }\n } else {\n i5 = i3 - AndroidUtilities.m26dp(154.0f);\n i4 = (i2 / 2) + (this.counterTextView.getMeasuredWidth() / 2);\n this.counterTextView.setRotation(-90.0f);\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n i5 -= AndroidUtilities.m26dp(96.0f);\n }\n }\n TextView textView = this.counterTextView;\n textView.layout(i5, i4, textView.getMeasuredWidth() + i5, this.counterTextView.getMeasuredHeight() + i4);\n return true;\n } else if (view != this.cameraPhotoRecyclerView) {\n return false;\n } else {\n if (obj != null) {\n i2 -= AndroidUtilities.m26dp(88.0f);\n view.layout(0, i2, view.getMeasuredWidth(), view.getMeasuredHeight() + i2);\n } else {\n i = (i + i5) - AndroidUtilities.m26dp(88.0f);\n view.layout(i, 0, view.getMeasuredWidth() + i, view.getMeasuredHeight());\n }\n return true;\n }\n }",
"private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }",
"private void fillTextViews(String title, String description,\n\t\t\tString directions) {\n\t\t// AS: first create the edit text objects\n\t\tEditText etTitle = (EditText) findViewById(R.id.etRecipeTitle);\n\t\tEditText etDescription = (EditText) findViewById(R.id.etRecipeDescription);\n\t\tEditText etDirections = (EditText) findViewById(R.id.etDirectionsList);\n\n\t\t// AS: then set the text views\n\t\tetTitle.setText(title);\n\t\tetDescription.setText(description);\n\t\tetDirections.setText(directions);\n\n\t\t// AS: save the original key listeners\n\t\ttitleListener = etTitle.getKeyListener();\n\t\tdescriptionListener = etDescription.getKeyListener();\n\t\tdirectionsListener = etDirections.getKeyListener();\n\n\t\t// AS: then set them to be uneditable\n\t\tetTitle.setKeyListener(null);\n\t\tetDescription.setKeyListener(null);\n\t\tetDirections.setKeyListener(null);\n\n\t}",
"@Override\n\tpublic void inflateViews() {\n\t\t\n\t\tappealOneLineEdit = (EditText) findViewById(R.id.appealOnelineEdit);\n\t\tappealOneLineEdit.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onOneLineEdited(s.toString());\n\t\t\t}\n\t\t});\n\t\tappealFaceEdit1 = (EditText) findViewById(R.id.appealFaceEdit1);\n\t\tappealFaceEdit1.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onFaceEdited(0, s.toString());\n\t\t\t}\n\t\t});\n\t\tappealFaceEdit2 = (EditText) findViewById(R.id.appealFaceEdit2);\n\t\tappealFaceEdit2.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onFaceEdited(1, s.toString());\n\t\t\t}\n\t\t});\n\t\tappealFaceEdit3 = (EditText) findViewById(R.id.appealFaceEdit3);\n\t\tappealFaceEdit3.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onFaceEdited(2, s.toString());\n\t\t\t}\n\t\t});\n\t\tappealHobbyEdit1 = (EditText) findViewById(R.id.appealHobbyEdit1);\n\t\tappealHobbyEdit1.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onHobbyEdited(0, s.toString());\n\t\t\t}\n\t\t});\n\t\tappealHobbyEdit2 = (EditText) findViewById(R.id.appealHobbyEdit2);\n\t\tappealHobbyEdit2.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onHobbyEdited(1, s.toString());\n\t\t\t}\n\t\t});\n\t\tappealHobbyEdit3 = (EditText) findViewById(R.id.appealHobbyEdit3);\n\t\tappealHobbyEdit3.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onHobbyEdited(2, s.toString());\n\t\t\t}\n\t\t});\n\t\tappealIdealTypeEdit1 = (EditText) findViewById(R.id.appealFavoriteEdit1);\n\t\tappealIdealTypeEdit1.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onIdealTypeEdited(0, s.toString());\n\t\t\t}\n\t\t});\n\t\tappealIdealTypeEdit2 = (EditText) findViewById(R.id.appealFavoriteEdit2);\n\t\tappealIdealTypeEdit2.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onIdealTypeEdited(1, s.toString());\n\t\t\t}\n\t\t});\n\t\tappealIdealTypeEdit3 = (EditText) findViewById(R.id.appealFavoriteEdit3);\n\t\tappealIdealTypeEdit3.addTextChangedListener(new SimpleTextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcallback.onIdealTypeEdited(2, s.toString());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}",
"private void setupAllViewsToSetTextColor(){\n allViewsToSetTextColor = new ArrayList<>();\n allViewsToSetTextColor.add(labelDegrees);\n allViewsToSetTextColor.add(entryDegrees);\n allViewsToSetTextColor.add(labelRadians);\n allViewsToSetTextColor.add(entryRadians);\n allViewsToSetTextColor.add(labelSine);\n allViewsToSetTextColor.add(sineRegularData);\n allViewsToSetTextColor.add(labelCosine);\n allViewsToSetTextColor.add(cosineRegularData);\n allViewsToSetTextColor.add(labelTangent);\n allViewsToSetTextColor.add(tangentRegularData);\n allViewsToSetTextColor.add(radianTextNumerator);\n allViewsToSetTextColor.add(radianTextDenominator);\n allViewsToSetTextColor.add(sineTextNumerator);\n allViewsToSetTextColor.add(sineTextDenominator);\n allViewsToSetTextColor.add(cosineTextNumerator);\n allViewsToSetTextColor.add(cosineTextDenominator);\n allViewsToSetTextColor.add(tangentTextNumerator);\n allViewsToSetTextColor.add(tangentTextDenominator);\n }",
"public static void setTextFonts2(Context mContext, String[] fonts, String[] texts, TextView textViewItem) {\n\n\t\tString content = texts[0];\n\t\tTypeface content_font = Typefaces.get(mContext, fonts[0]);\n\t\t// set texts\n\t\tif(texts.length > 1) {\n\t\t\tint i = 0;\n\t\t\twhile(i < texts.length) {\n\t\t\t\tString text = texts[i];\n\t\t\t\tif(content.contains(\"{\" + (i-1) + \"}\")) {\n\t\t\t\t\tcontent = content.replace(\"{\" + (i-1) + \"}\", text);\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t// set fonts\n\t\tSpannableStringBuilder SS = new SpannableStringBuilder(content);\n\t\tint last_index = 0;\n\t\tchar[] last_array = null;\n\t\tif(texts.length > 1) {\n\t\t\tint index = 1;\n\t\t\twhile(index < texts.length) {\n\t\t\t\tString text = texts[index];\n\n\t\t\t\tint current_index = content.indexOf(text);\n\n\t\t\t\tchar[] charArrayCurrent = text.toCharArray();\n\t\t\t\tTypeface current_font = Typefaces.get(mContext, fonts[index]);\n\n\t\t\t\tif(last_index <= 0) {\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), 0, current_index, Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", current_font), current_index, current_index + charArrayCurrent.length,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t} else {\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), last_index + last_array.length + 1, current_index,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", current_font), current_index, current_index + charArrayCurrent.length,Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t\t}\n\n\t\t\t\tlast_index = current_index;\n\t\t\t\tlast_array = charArrayCurrent;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\tif(last_index + last_array.length < content.length()) {\n\t\t\t\tSS.setSpan (new CustomTypefaceSpan(\"\", content_font), last_index + last_array.length + 1, content.length(),Spanned.SPAN_EXCLUSIVE_INCLUSIVE);\n\t\t\t}\n\t\t}\n\t\t// set text\n\t\ttextViewItem.setText(SS);\n\n\t}",
"@Override\n public void onGlobalLayout() {\n\n if (!isFirstLayout) {\n isFirstLayout = true;\n ListAdapter adapter=new MeAdapter(getActivity(),gv.getHeight()/2,resIds,names);\n gv.setAdapter(adapter);\n\n }\n }",
"private void set_autotext_adapters(){\n ArrayAdapter<String> amount_adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_dropdown_item_1line, amount_autos);\n amount_text = (AutoCompleteTextView)\n findViewById(R.id.add_group_transaction_amount);\n amount_text.setAdapter(amount_adapter);\n ArrayAdapter<String> memo_adapter = new ArrayAdapter<>(this,\n android.R.layout.simple_dropdown_item_1line, memo_autos);\n memo_text = (AutoCompleteTextView)\n findViewById(R.id.add_group_transaction_memo);\n memo_text.setAdapter(memo_adapter);\n }",
"private void initViews() {\n user_name = (LinearLayout)findViewById(R.id.user_name);\n user_photo = (LinearLayout)findViewById(R.id.user_photo);\n user_sex = (LinearLayout)findViewById(R.id.user_sex);\n user_notes = (LinearLayout)findViewById(R.id.user_notes);\n name = (TextView)findViewById(R.id.name);\n sex = (TextView)findViewById(R.id.sex);\n notes = (TextView)findViewById(R.id.notes);\n email = (TextView)findViewById(R.id.email);\n photo = (ImageView)findViewById(R.id.photo);\n }",
"public static void setProgressTextView(PrefKeyOrder prefKeyOrder, TextView textView, int i, SingleView singleView) {\n int i2 = C03068.$SwitchMap$com$luolai$droidrender$Constants$PrefKeyOrder[prefKeyOrder.ordinal()];\n if (i2 == 1) {\n textView.setText(textView.getResources().getString(C0354R.string.unit_screen_left, new Object[]{Float.valueOf(((float) i) / 100.0f)}));\n if (singleView != null) {\n singleView.mLeft = i;\n }\n } else if (i2 == 2) {\n textView.setText(textView.getResources().getString(C0354R.string.unit_screen_top, new Object[]{Float.valueOf(((float) i) / 100.0f)}));\n if (singleView != null) {\n singleView.mTop = i;\n }\n } else if (i2 == 3) {\n int i3 = i + 10;\n textView.setText(textView.getResources().getString(C0354R.string.unit_screen_width, new Object[]{Float.valueOf(((float) i3) / 100.0f)}));\n if (singleView != null) {\n singleView.mWidth = i3;\n }\n } else if (i2 == 4) {\n int i4 = i + 10;\n textView.setText(textView.getResources().getString(C0354R.string.unit_screen_height, new Object[]{Float.valueOf(((float) i4) / 100.0f)}));\n if (singleView != null) {\n singleView.mHeight = i4;\n }\n }\n }",
"private void initViews() {\n questionOne = findViewById(R.id.questionOneTV);\n questionTwo = findViewById(R.id.questionTwoTV);\n questionThree = findViewById(R.id.questionThreeTV);\n questionFour = findViewById(R.id.questionFourTV);\n questionFive = findViewById(R.id.questionFiveTV);\n questionSix = findViewById(R.id.questionSixTV);\n\n answerOne = findViewById(R.id.answerOneTIET);\n answerFour = findViewById(R.id.answerFourTIET);\n\n answerTwo = findViewById(R.id.answerTwoRG);\n answerTwoOptionA = findViewById(R.id.answerTwoRB1);\n answerTwoOptionB = findViewById(R.id.answerTwoRB2);\n answerTwoOptionC = findViewById(R.id.answerTwoRB3);\n answerTwoOptionD = findViewById(R.id.answerTwoRB4);\n\n answerThreeOptionA = findViewById(R.id.answerThreeCB1);\n answerThreeOptionB = findViewById(R.id.answerThreeCB2);\n answerThreeOptionC = findViewById(R.id.answerThreeCB3);\n answerThreeOptionD = findViewById(R.id.answerThreeCB4);\n\n answerFive = findViewById(R.id.answerFiveRG);\n answerFiveOptionA = findViewById(R.id.answerFiveRB1);\n answerFiveOptionB = findViewById(R.id.answerFiveRB2);\n answerFiveOptionC = findViewById(R.id.answerFiveRB3);\n answerFiveOptionD = findViewById(R.id.answerFiveRB4);\n\n answerSixOptionA = findViewById(R.id.answerSixCB1);\n answerSixOptionB = findViewById(R.id.answerSixCB2);\n answerSixOptionC = findViewById(R.id.answerSixCB3);\n answerSixOptionD = findViewById(R.id.answerSixCB4);\n\n submitButton = findViewById(R.id.submitButton);\n submitButton.setOnClickListener(this);\n\n }",
"private void displayDots(TextView[] dots) {\n for (int i = 0; i < dots.length; i++) {\n dotsLinearLayout.addView(dots[i]);\n }\n }",
"private void initViews() {\n nestedScrollView = (NestedScrollView) findViewById(R.id.nestedScrollView);\n nomeLogin = (TextInputEditText) findViewById(R.id.nomeLogin);\n emailLogin = (TextInputEditText) findViewById(R.id.emailLogin);\n senhaLogin = (TextInputEditText) findViewById(R.id.senhaLogin);\n senhaLoginConfirmar = (TextInputEditText) findViewById(R.id.senhaLoginConfirmar);\n btnCadastrar = (Button) findViewById(R.id.btnCadastrar);\n cadastrar = (TextView) findViewById(R.id.cadastrar);\n regEmail = (TextInputLayout) findViewById(R.id.regEmail);\n regNome = (TextInputLayout) findViewById(R.id.regNome);\n regSenha = (TextInputLayout) findViewById(R.id.regSenha);\n regSenhaConfirmar = (TextInputLayout) findViewById(R.id.regSenhaConfirmar);\n }",
"public void setupUI(View view) {\n if (!(view instanceof EditText)) {\n view.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n hideSoftKeyboard(MainActivity.this);\n return false;\n }\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n View innerView = ((ViewGroup) view).getChildAt(i);\n setupUI(innerView);\n }\n }\n }",
"public void updateUI() {\n\n TextView site1 = (TextView) findViewById(R.id.site1);\n TextView temp1 = (TextView) findViewById(R.id.temp1);\n TextView disc1 = (TextView) findViewById(R.id.discharge1);\n TextView height1 = (TextView) findViewById(R.id.height1);\n\n TextView site2 = (TextView) findViewById(R.id.site2);\n TextView temp2 = (TextView) findViewById(R.id.temp2);\n TextView disc2 = (TextView) findViewById(R.id.discharge2);\n TextView height2 = (TextView) findViewById(R.id.height2);\n\n TextView site3 = (TextView) findViewById(R.id.site3);\n TextView temp3 = (TextView) findViewById(R.id.temp3);\n TextView disc3 = (TextView) findViewById(R.id.discharge3);\n TextView height3 = (TextView) findViewById(R.id.height3);\n\n TextView site4 = (TextView) findViewById(R.id.site4);\n TextView temp4 = (TextView) findViewById(R.id.temp4);\n TextView disc4 = (TextView) findViewById(R.id.discharge4);\n TextView height4 = (TextView) findViewById(R.id.height4);\n\n TextView site5 = (TextView) findViewById(R.id.site5);\n TextView temp5 = (TextView) findViewById(R.id.temp5);\n TextView disc5 = (TextView) findViewById(R.id.discharge5);\n TextView height5 = (TextView) findViewById(R.id.height5);\n\n\n site1.setText(siteNames.get(0));\n tempIndex = 0;\n discIndex = 0;\n heightIndex = 0;\n\n if(!temps.isEmpty()) { //add this to all\n if (r.checkTemp(0)) {\n temp1.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp1.setVisibility(View.VISIBLE);\n }\n }\n\n if(!discharge.isEmpty()) {\n if (r.checkDisc(0)) {\n disc1.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc1.setVisibility(View.VISIBLE);\n\n }\n }\n\n if(!heights.isEmpty()){\n if(r.checkHeight(0)){\n height1.setText(\"Water Height: \" + heights.get(heightIndex++));\n height1.setVisibility(View.VISIBLE);\n }\n }\n\n\n\n site2.setText(siteNames.get(1));\n\n if(!temps.isEmpty()) {\n if (r.checkTemp(1)) {\n temp2.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp2.setVisibility(View.VISIBLE);\n }\n }\n if(!discharge.isEmpty()) {\n if (r.checkDisc(1)) {\n disc2.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc2.setVisibility(View.VISIBLE);\n }\n }\n\n if(!heights.isEmpty()){\n if(r.checkHeight(1)) {\n if (heights.size() >= 2) {\n height2.setText(\"Water Height: \" + heights.get(heightIndex++));\n height2.setVisibility(View.VISIBLE);\n }\n }\n }\n\n if(numSites >= 3){\n\n site3.setText(siteNames.get(2));\n if(!temps.isEmpty()) {\n if (r.checkTemp(2)) {\n temp3.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp3.setVisibility(View.VISIBLE);\n }\n }\n if(!discharge.isEmpty()) {\n if (r.checkDisc(2)) {\n if (discharge.size() >= 3) {\n disc3.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc3.setVisibility(View.VISIBLE);\n }\n }\n }\n if(!heights.isEmpty()){\n if(r.checkHeight(2)) {\n if (heights.size() >= 3) {\n height3.setText(\"Water Height: \" + heights.get(heightIndex++));\n }\n }\n }\n }\n\n if (numSites >= 4) {\n site4.setText(siteNames.get(3));\n site4.setVisibility(View.VISIBLE);\n\n if(!discharge.isEmpty()) {\n if (r.checkDisc(3)) {\n if (discharge.size() >= 4) {\n disc4.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc4.setVisibility(View.VISIBLE);\n }\n }\n }\n\n if(!heights.isEmpty()){\n\n if(r.checkHeight(3)) {\n if (heights.size() >= 4) {\n height4.setText(\"Water Height: \" + heights.get(heightIndex++));\n height4.setVisibility(View.VISIBLE);\n }\n }\n }\n if(!temps.isEmpty()) {\n if (r.checkTemp(3)) {\n\n temp4.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp4.setVisibility(View.VISIBLE);\n }\n }\n }\n\n if (numSites == 5) {\n site5.setText(siteNames.get(4));\n site5.setVisibility(View.VISIBLE);\n if (!discharge.isEmpty()) {\n if (r.checkDisc(4)) {\n if(discharge.size() >= 5) {\n disc5.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc5.setVisibility(View.VISIBLE);\n }\n }\n }\n if(!heights.isEmpty()){\n if(r.checkHeight(4)) {\n if (heights.size() >= 5) {\n height5.setText(\"Water Height: \" + heights.get(heightIndex++));\n height5.setVisibility(View.VISIBLE);\n }\n }\n }\n if (!temps.isEmpty()) {\n if (r.checkTemp(4)) {\n\n temp5.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp5.setVisibility(View.VISIBLE);\n }\n }\n }\n }",
"public void onLayout(boolean z, int i, int i2, int i3, int i4) {\n int i5;\n int i6;\n int i7;\n int childCount = getChildCount();\n int i8 = i3 - i;\n int i9 = i4 - i2;\n int paddingLeft = getPaddingLeft();\n int paddingTop = getPaddingTop();\n int paddingRight = getPaddingRight();\n int paddingBottom = getPaddingBottom();\n int scrollX = getScrollX();\n int i10 = paddingBottom;\n int i11 = 0;\n int i12 = paddingTop;\n int i13 = paddingLeft;\n int i14 = 0;\n while (true) {\n i5 = 8;\n if (i14 >= childCount) {\n break;\n }\n View childAt = getChildAt(i14);\n if (childAt.getVisibility() != 8) {\n LayoutParams layoutParams = (LayoutParams) childAt.getLayoutParams();\n if (layoutParams.isDecor) {\n int i15 = layoutParams.gravity & 7;\n int i16 = layoutParams.gravity & 112;\n if (i15 == 1) {\n i6 = Math.max((i8 - childAt.getMeasuredWidth()) / 2, i13);\n } else if (i15 == 3) {\n i6 = i13;\n i13 = childAt.getMeasuredWidth() + i13;\n } else if (i15 != 5) {\n i6 = i13;\n } else {\n i6 = (i8 - paddingRight) - childAt.getMeasuredWidth();\n paddingRight += childAt.getMeasuredWidth();\n }\n if (i16 == 16) {\n i7 = Math.max((i9 - childAt.getMeasuredHeight()) / 2, i12);\n } else if (i16 == 48) {\n i7 = i12;\n i12 = childAt.getMeasuredHeight() + i12;\n } else if (i16 != 80) {\n i7 = i12;\n } else {\n i7 = (i9 - i10) - childAt.getMeasuredHeight();\n i10 += childAt.getMeasuredHeight();\n }\n int i17 = i6 + scrollX;\n childAt.layout(i17, i7, childAt.getMeasuredWidth() + i17, i7 + childAt.getMeasuredHeight());\n i11++;\n }\n }\n i14++;\n }\n int i18 = (i8 - i13) - paddingRight;\n int i19 = 0;\n while (i19 < childCount) {\n View childAt2 = getChildAt(i19);\n if (childAt2.getVisibility() != i5) {\n LayoutParams layoutParams2 = (LayoutParams) childAt2.getLayoutParams();\n if (!layoutParams2.isDecor) {\n ItemInfo infoForChild = infoForChild(childAt2);\n if (infoForChild != null) {\n float f = (float) i18;\n int floor = ((int) Math.floor((double) ((infoForChild.offset * f) + (((float) getClientWidth()) * ((1.0f - this.mAdapter.getPageWidth(i19)) / 2.0f)) + 0.5f))) + i13;\n if (layoutParams2.needsMeasure) {\n layoutParams2.needsMeasure = false;\n childAt2.measure(MeasureSpec.makeMeasureSpec((int) (f * layoutParams2.widthFactor), UCCore.VERIFY_POLICY_QUICK), MeasureSpec.makeMeasureSpec((i9 - i12) - i10, UCCore.VERIFY_POLICY_QUICK));\n }\n childAt2.layout(floor, i12, childAt2.getMeasuredWidth() + floor, childAt2.getMeasuredHeight() + i12);\n }\n }\n }\n i19++;\n i5 = 8;\n }\n this.mTopPageBounds = i12;\n this.mBottomPageBounds = i9 - i10;\n this.mDecorChildCount = i11;\n scrollTo(getRate(), 0);\n if (this.mAdapter != null) {\n pageScrolled(getRate());\n }\n this.mFirstLayout = false;\n }",
"public void setupUI(View view) {\n if(!(view instanceof EditText)) {\n\n view.setOnTouchListener(new View.OnTouchListener() {\n\n public boolean onTouch(View v, MotionEvent event) {\n hideSoftKeyboard(SearchActivity.this);\n return false;\n }\n\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n\n View innerView = ((ViewGroup) view).getChildAt(i);\n\n setupUI(innerView);\n }\n }\n }",
"protected void setupUI(View view) {\n if (!(view instanceof EditText)) {\n view.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n hideKeyboard(v);\n return false;\n }\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n View innerView = ((ViewGroup) view).getChildAt(i);\n setupUI(innerView);\n }\n }\n }",
"@Override\n protected void onLayout(boolean b, int left, int top, int right, int bottom) {\n int childCount = this.getChildCount();\n for(int i = 0; i < childCount; i++) {\n View child = this.getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n child.layout(lp.x, lp.y, lp.x + child.getMeasuredWidth(), lp.y + child.getMeasuredHeight());\n }\n\n }",
"public void prepareSliderLayout(HashMap<String,Integer> file_maps){\n\n for(String name : file_maps.keySet()){\n TextSliderView mTextSliderView = new TextSliderView(this);\n mTextSliderView\n .description(name)\n .image(file_maps.get(name));\n\n mSliderLayout.addSlider(mTextSliderView);\n }\n }",
"private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tTextView text;\n\t\t\ttext = new TextView(mContext);\n\t\t\ttext.setPadding(2, 2, 2, 2);\n\t\t\tQuestion theCom = questions.get(questions.size() - 1 - position);\n\t\t\ttext.setText(theCom.getUser() + \" - \"+ (theCom.getDate().getMonth() + 1) +\"/\" + theCom.getDate().getDate() + \"/\" + theCom.getDate().getYear() + \"\\n\" + theCom.getComment());\n\t\t\tLinearLayout.LayoutParams items = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\ttext.setLayoutParams(items);\n\t\t\tGradientDrawable qgd = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] {0xFF004684, 0xFF00284D});\n\t\t\tqgd.setCornerRadius(0f);\n\t\t\t\n\t\t\ttext.setBackgroundDrawable(qgd);\n\t\t\tLinearLayout ans = new LinearLayout(mContext);\n\t\t\tans.setOrientation(LinearLayout.VERTICAL);\n\t\t\tans.addView(text, 0);\n\t\t\ttext.setTextSize(21);\n\t\t\tif (openQuestion == position){\n\t\t\t\t//GradientDrawable qgd2 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] {0xFF98BEE0, 0xFF418ACD});\n\t\t\t\tGradientDrawable qgd2 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] {0xFF004684, 0xFF00284D});\n\t\t\t\ttext.setBackgroundDrawable(qgd2);\n\t\t\t\ttext.setTextColor(0xFFFFFFFF);\n\t\t\t\tif (theCom.getAnswers().size() > 0){\n\t\t\t\t\t\n\t\t\t\t\tint ind = 0;\n\t\t\t\t\tfor(int i = 0; i <theCom.getAnswers().size(); i++){\n\t\t\t\t\t\tif (i > 0){ //Add a line between the items in the form of a view\n\t\t\t\t\t\t\tView theLine = new View(mContext);\n\t\t\t\t\t\t\tint pixels = (int) (1 * scale + 0.5f);\n\t\t\t\t\t\t\tLinearLayout.LayoutParams linPar = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, pixels);\n\t\t\t\t\t\t\ttheLine.setLayoutParams(linPar);\n\t\t\t\t\t\t\ttheLine.setBackgroundColor(Color.parseColor(\"#00284D\"));\n\t\t\t\t\t\t\tind++;\n\t\t\t\t\t\t\tans.addView(theLine, ind);//ind++ or 1\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tTextView anAns = new TextView(mContext);\n\t\t\t\t\t\tanAns.setText(theCom.getAnswers().get(i).getUser() + \" - \"+ (theCom.getAnswers().get(i).getDate().getMonth() + 1) +\"/\" + theCom.getAnswers().get(i).getDate().getDate() + \"/\" + theCom.getAnswers().get(i).getDate().getYear() + \"\\n\" + theCom.getAnswers().get(i).getComment());\n\t\t\t\t\t\tLinearLayout.LayoutParams ansPar = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\t\t\t\tansPar.setMargins(30, 0, 0, 0);\n\t\t\t\t\t\tanAns.setLayoutParams(ansPar);\n\t\t\t\t\t\tind++;\n\t\t\t\t\t\tanAns.setTextSize(21);\n\t\t\t\t\t\t//GradientDrawable qgd3 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] {0xFF98BEE0, 0xFF418ACD});\n\t\t\t\t\t\t//GradientDrawable qgd3 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] {0xFF004684, 0xFF00284D});\n\t\t\t\t\t\tanAns.setTextColor(0xFFFFFFFF);\n\t\t\t\t\t\t//anAns.setBackgroundDrawable(qgd3);\n\t\t\t\t\t\tans.addView(anAns, ind); //ind or 1\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tTextView anAns = new TextView(mContext);\n\t\t\t\t\tanAns.setText(\"no answers\");\n\t\t\t\t\tLinearLayout.LayoutParams ansPar = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\t\t\tansPar.setMargins(30, 0, 0, 0);\n\t\t\t\t\tanAns.setLayoutParams(ansPar);\n\t\t\t\t\tanAns.setTextSize(21);\n\t\t\t\t\tanAns.setTextColor(0xFFFFFFFF);\n\t\t\t\t\t//GradientDrawable qgd3 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] {0xFF004684, 0xFF00284D});\n\t\t\t\t\t//anAns.setBackgroundDrawable(qgd3);\n\t\t\t\t\tans.addView(anAns); //ind or 1\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (openQuestion == -1){\n\t\t\t\t\n\t\t\t\ttext.setTextColor(0xFFFFFFFF);\n\t\t\t} else {\n\t\t\t\tGradientDrawable qgd4 = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] {0x08004684, 0x8000284D});\n\t\t\t\ttext.setBackgroundDrawable(qgd4);\n\t\t\t\ttext.setTextColor(0x80FFFFFF);\n\t\t\t}\n\t\t\t\n\t\t\tAbsListView.LayoutParams params = new AbsListView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tans.setLayoutParams(params);\n\t\t\treturn ans;\n\t\t}",
"private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }",
"public void setupUI(View view) {\n if (!(view instanceof EditText)) {\n view.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n hideKeyboard(parent);\n return false;\n }\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n View innerView = ((ViewGroup) view).getChildAt(i);\n setupUI(innerView);\n }\n }\n }",
"public void setupUI(View view) {\n if (!(view instanceof EditText)) {\n view.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n hideKeyboard(parent);\n return false;\n }\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n View innerView = ((ViewGroup) view).getChildAt(i);\n setupUI(innerView);\n }\n }\n }",
"public void updateTextViews() {\n // Set the inputs according to the initial input from the entry.\n //TextView dateTextView = (TextView) findViewById(R.id.date_textview);\n //dateTextView.setText(DateUtils.formatDateTime(getApplicationContext(), mEntry.getStart(), DateUtils.FORMAT_SHOW_DATE));\n\n EditText dateEdit = (EditText) findViewById(R.id.date_text_edit);\n dateEdit.setText(DateUtils.formatDateTime(this, mEntry.getStart(), DateUtils.FORMAT_NUMERIC_DATE | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_ABBREV_ALL));\n\n EditText startTimeEdit = (EditText) findViewById(R.id.start_time_text_edit);\n startTimeEdit.setText(DateUtils.formatDateTime(this, mEntry.getStart(), DateUtils.FORMAT_SHOW_TIME));\n\n EditText endTimeEdit = (EditText) findViewById(R.id.end_time_text_edit);\n endTimeEdit.setText(DateUtils.formatDateTime(this, mEntry.getEnd(), DateUtils.FORMAT_SHOW_TIME));\n\n\n TextView descriptionView = (TextView) findViewById(R.id.description);\n descriptionView.setText(mEntry.getDescription());\n\n\n enableSendButtonIfPossible();\n }",
"public void setupUI(View view) {\n if(!(view instanceof EditText)) {\n\n view.setOnTouchListener(new View.OnTouchListener() {\n\n public boolean onTouch(View v, MotionEvent event) {\n hideSoftKeyboard(BaseActivity.this);\n return false;\n }\n\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n\n View innerView = ((ViewGroup) view).getChildAt(i);\n\n setupUI(innerView);\n }\n }\n }",
"private void initViews() {\n\n\t}",
"private void setQuestionView() {\n textView.setText(currentQuestion.getQuestion());\n buttonA.setText(currentQuestion.getOptA());\n buttonB.setText(currentQuestion.getOptB());\n buttonC.setText(currentQuestion.getOptC());\n numberText.setText(\"Question \" + (questionID + 1) + \" of \" + questionList.size());\n questionID++;\n }",
"public void setupUI(View view) {\n if (!(view instanceof EditText)) {\n view.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n hideSoftKeyboard(ChatActivity.this);\n return false;\n }\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n View innerView = ((ViewGroup) view).getChildAt(i);\n setupUI(innerView);\n }\n }\n }",
"private void initViews() {\n\t\tet_area = (EditText) findViewById(R.id.et_area);\r\n\t\tbtn_search = (Button) findViewById(R.id.btn_search);\r\n\t\tll_main = (LinearLayout) findViewById(R.id.ll_main);\r\n\t}",
"private void initViews() {\n\n }",
"private void assignViews() {\n mTextView = (TextView) findViewById(R.id.textViewForEnterEmail);\n mEdTxtEmail = (EditText) findViewById(R.id.edTxtEmailInForgotPass);\n mButton = (Button) findViewById(R.id.btnSubmit);\n }",
"private void initializeLayout(){\n String title = mStrInfo;\n String subtitle = mClientItem.clientName;\n mHomeToolbar.setGymRatToolbarTitle(title, subtitle);\n\n //initialize maids\n initializeMaid();\n\n //initialize bottom navigation\n initializeBottomNavigation();\n }",
"public void setupUI(View view) {\n if(!(view instanceof EditText)) {\n\n view.setOnTouchListener(new View.OnTouchListener() {\n\n public boolean onTouch(View v, MotionEvent event) {\n hideSoftKeyboard(getActivity());\n return false;\n }\n\n });\n }\n\n //If a layout container, iterate over children and seed recursion.\n if (view instanceof ViewGroup) {\n\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n\n View innerView = ((ViewGroup) view).getChildAt(i);\n\n setupUI(innerView);\n }\n }\n }",
"public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position,convertView,parent);\n\n // Convert the view as a TextView widget\n TextView tv = (TextView) view;\n\n //tv.setTextColor(Color.DKGRAY);\n\n // Set the layout parameters for TextView widget\n RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT\n );\n tv.setLayoutParams(lp);\n\n // Get the TextView LayoutParams\n RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)tv.getLayoutParams();\n\n // Set the width of TextView widget (item of GridView)\n /*\n IMPORTANT\n Adjust the TextView widget width depending\n on GridView width and number of columns.\n\n GridView width / Number of columns = TextView width.\n\n Also calculate the GridView padding, margins, vertical spacing\n and horizontal spacing.\n */\n\n\n Resources r = reports2.this.getResources();\n int px = (int) (TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_DIP, 100, r.getDisplayMetrics()));\n // tv.setLayoutParams(new GridView.LayoutParams((width/10)*6, 50));\n\n // if (position==0 || position==5) {\n // params.width = px/2; // getPixelsFromDPs(EpiloghEid.this,168);\n // tv.setLayoutParams(new GridView.LayoutParams((px*6), 100));\n // }else{\n params.width = px; // getPixelsFromDPs(EpiloghEid.this,168);\n // }\n\n\n // Set the TextView layout parameters\n tv.setLayoutParams(params);\n\n // Display TextView text in center position\n tv.setGravity(Gravity.CENTER);\n\n // Set the TextView text font family and text size\n tv.setTypeface(Typeface.SANS_SERIF, Typeface.NORMAL);\n tv.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 12);\n\n // Set the TextView text (GridView item text)\n tv.setText(values.get(position));\n\n // Set the TextView background color\n tv.setBackgroundColor(Color.parseColor(\"#d9d5dc\"));\n\n // Return the TextView widget as GridView item\n return tv;\n }",
"public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position,convertView,parent);\n\n // Convert the view as a TextView widget\n TextView tv = (TextView) view;\n\n //tv.setTextColor(Color.DKGRAY);\n\n // Set the layout parameters for TextView widget\n RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT\n );\n tv.setLayoutParams(lp);\n\n // Get the TextView LayoutParams\n RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)tv.getLayoutParams();\n\n // Set the width of TextView widget (item of GridView)\n /*\n IMPORTANT\n Adjust the TextView widget width depending\n on GridView width and number of columns.\n\n GridView width / Number of columns = TextView width.\n\n Also calculate the GridView padding, margins, vertical spacing\n and horizontal spacing.\n */\n\n\n Resources r = reports2.this.getResources();\n int px = (int) (TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_DIP, 100, r.getDisplayMetrics()));\n // tv.setLayoutParams(new GridView.LayoutParams((width/10)*6, 50));\n\n // if (position==0 || position==5) {\n // params.width = px/2; // getPixelsFromDPs(EpiloghEid.this,168);\n // tv.setLayoutParams(new GridView.LayoutParams((px*6), 100));\n // }else{\n params.width = px; // getPixelsFromDPs(EpiloghEid.this,168);\n // }\n\n\n // Set the TextView layout parameters\n tv.setLayoutParams(params);\n\n // Display TextView text in center position\n tv.setGravity(Gravity.CENTER);\n\n // Set the TextView text font family and text size\n tv.setTypeface(Typeface.SANS_SERIF, Typeface.NORMAL);\n tv.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 12);\n\n // Set the TextView text (GridView item text)\n tv.setText(values.get(position));\n\n // Set the TextView background color\n tv.setBackgroundColor(Color.parseColor(\"#d9d5dc\"));\n\n // Return the TextView widget as GridView item\n return tv;\n }",
"public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position,convertView,parent);\n\n // Convert the view as a TextView widget\n TextView tv = (TextView) view;\n\n //tv.setTextColor(Color.DKGRAY);\n\n // Set the layout parameters for TextView widget\n RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT\n );\n tv.setLayoutParams(lp);\n\n // Get the TextView LayoutParams\n RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)tv.getLayoutParams();\n\n // Set the width of TextView widget (item of GridView)\n /*\n IMPORTANT\n Adjust the TextView widget width depending\n on GridView width and number of columns.\n\n GridView width / Number of columns = TextView width.\n\n Also calculate the GridView padding, margins, vertical spacing\n and horizontal spacing.\n */\n\n\n Resources r = reports2.this.getResources();\n int px = (int) (TypedValue.applyDimension(\n TypedValue.COMPLEX_UNIT_DIP, 100, r.getDisplayMetrics()));\n // tv.setLayoutParams(new GridView.LayoutParams((width/10)*6, 50));\n\n // if (position==0 || position==5) {\n // params.width = px/2; // getPixelsFromDPs(EpiloghEid.this,168);\n // tv.setLayoutParams(new GridView.LayoutParams((px*6), 100));\n // }else{\n params.width = px; // getPixelsFromDPs(EpiloghEid.this,168);\n // }\n\n\n // Set the TextView layout parameters\n tv.setLayoutParams(params);\n\n // Display TextView text in center position\n tv.setGravity(Gravity.CENTER);\n\n // Set the TextView text font family and text size\n tv.setTypeface(Typeface.SANS_SERIF, Typeface.NORMAL);\n tv.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 12);\n\n // Set the TextView text (GridView item text)\n tv.setText(values.get(position));\n\n // Set the TextView background color\n tv.setBackgroundColor(Color.parseColor(\"#d9d5dc\"));\n\n // Return the TextView widget as GridView item\n return tv;\n }",
"public void fillText(View view){\n if(running==true){\n\n\n latestOp=false;\n for(int i = 0; i<9; i++)\n if(i==win&&idOfViews[i]==view.getId()) {\n score++;\n sec=sec+3;\n latestOp=true;\n }\n\n //Defining the score\n total++;\n scoret.setText(\" \"+score+\" /\"+total);\n\n //Setting the message about the latest one.\n resultT.setText(\"Missed\");\n if(latestOp==true)\n resultT.setText(\"Correct!\");\n\n\n //Calling a new screen\n newScreen();\n }\n\n\n }",
"private void setViews() {\n\n }",
"private void initQuestions() {\n questionList = Arrays.asList(getResources().getStringArray(R.array.questions));\n questionOne.setText(questionList.get(0));\n questionTwo.setText(questionList.get(1));\n questionThree.setText(questionList.get(2));\n questionFour.setText(questionList.get(3));\n questionFive.setText(questionList.get(4));\n questionSix.setText(questionList.get(5));\n\n List<String> optionsTwoList = Arrays.asList(getResources().getStringArray(R.array.qTwoOptions));\n answerTwoOptionA.setText(optionsTwoList.get(0));\n answerTwoOptionB.setText(optionsTwoList.get(1));\n answerTwoOptionC.setText(optionsTwoList.get(2));\n answerTwoOptionD.setText(optionsTwoList.get(3));\n\n List<String> optionsThreeList = Arrays.asList(getResources().getStringArray(R.array.qThreeOptions));\n answerThreeOptionA.setText(optionsThreeList.get(0));\n answerThreeOptionB.setText(optionsThreeList.get(1));\n answerThreeOptionC.setText(optionsThreeList.get(2));\n answerThreeOptionD.setText(optionsThreeList.get(3));\n\n List<String> optionsFiveList = Arrays.asList(getResources().getStringArray(R.array.qFiveOptions));\n answerFiveOptionA.setText(optionsFiveList.get(0));\n answerFiveOptionB.setText(optionsFiveList.get(1));\n answerFiveOptionC.setText(optionsFiveList.get(2));\n answerFiveOptionD.setText(optionsFiveList.get(3));\n\n List<String> optionsSixList = Arrays.asList(getResources().getStringArray(R.array.qSixOptions));\n answerSixOptionA.setText(optionsSixList.get(0));\n answerSixOptionB.setText(optionsSixList.get(1));\n answerSixOptionC.setText(optionsSixList.get(2));\n answerSixOptionD.setText(optionsSixList.get(3));\n\n }",
"private void setLayout(ColumnInfo[] layout)\n\t{\n\t\tthis.m_layout = layout;\n\t\tgetModel().setNoColumns(m_layout.length);\n\n\t\treturn;\n\t}",
"private void initViews(){\n tvName = findViewById(R.id.textViewLoggedUserName);\n recyclerViewUsers = findViewById(R.id.recyclerViewUsers);\n }",
"@Override\n public int getItemCount() {\n return textArray.length;\n }"
]
| [
"0.67078716",
"0.6232232",
"0.6161381",
"0.61510515",
"0.60925215",
"0.60306597",
"0.5929393",
"0.5920142",
"0.5911883",
"0.5891548",
"0.5890334",
"0.5886266",
"0.57453746",
"0.57361877",
"0.5728158",
"0.569485",
"0.56783557",
"0.56765604",
"0.5659014",
"0.56463367",
"0.5634884",
"0.56279755",
"0.5610155",
"0.5604708",
"0.55936706",
"0.5580136",
"0.555861",
"0.55449736",
"0.55388135",
"0.553822",
"0.55278313",
"0.552752",
"0.5523264",
"0.552228",
"0.55120367",
"0.5494166",
"0.5489576",
"0.54649657",
"0.5463075",
"0.5450075",
"0.54496706",
"0.5446945",
"0.5441168",
"0.543468",
"0.5413622",
"0.5381205",
"0.53741753",
"0.53731453",
"0.53514785",
"0.5351381",
"0.5346211",
"0.5345573",
"0.53438133",
"0.5337556",
"0.53372365",
"0.5336875",
"0.53366166",
"0.53304696",
"0.5323864",
"0.5317299",
"0.53107876",
"0.5310404",
"0.5307316",
"0.5304108",
"0.52930266",
"0.5289007",
"0.52882206",
"0.5279257",
"0.52781993",
"0.52518654",
"0.52470714",
"0.52352244",
"0.5232894",
"0.5232386",
"0.52318674",
"0.5227756",
"0.5227681",
"0.5225585",
"0.5225017",
"0.52213556",
"0.5210788",
"0.5210788",
"0.52104205",
"0.52096784",
"0.52095664",
"0.5209256",
"0.52047443",
"0.5200909",
"0.51987803",
"0.51979166",
"0.51973975",
"0.5196607",
"0.51940846",
"0.51940846",
"0.51940846",
"0.5193964",
"0.5190571",
"0.51905555",
"0.5189482",
"0.5188959",
"0.5187389"
]
| 0.0 | -1 |
Creates new form VAlumnosAsignaturas | public VPrincipal() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE tipo='agricultor' AND personalexterno.idMunicipio=municipios.idMunicipio\");\n tbl.alinearHeaderTable(AgendarA.tblAgricultor, headerColumnas);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n }",
"public FrmNuevoAlumno() {\n initComponents();\n obtenerCarreras();\n comboCarrera.setSelectedIndex(-1);\n obtenerDependencias();\n comboPlantel.setSelectedIndex(-1);\n mostrarAlumnos();\n deshabilitar();\n lblId.setVisible(false);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n a = crear.guardarAlumno();\n //en la base de datos envio un alumno a guardar\n basealumno.guardarAlumnoBD(a);\n //envio en la venta a limpiar los campos\n crear.limpiarCampos();\n crear.bloquearCampos();\n \n// System.out.println(\"objeto: \"+vca.getName());\n\n }",
"public Alumnos(String nombre, String apellido, Condicion condicion, Genero genero, Vector<Asignatura> asignaturas) {\n\t\t//super();\n\t\tthis.nombre = nombre;\n\t\tthis.apellido = apellido;\n\t\tthis.condicion = condicion;\n\t\tthis.genero = genero;\n\t\tthis.asignaturas = new Vector<Asignatura>(asignaturas);\n\t\tthis.calculadorNotaFinal();\t\t\n\t}",
"private void createTable(){\n Object[][] data = new Object[0][8];\n int i = 0;\n for (Grupo grupo : etapa.getGrupos()) {\n Object[][] dataAux = new Object[data.length+1][8];\n System.arraycopy(data, 0, dataAux, 0, data.length);\n dataAux[i++] = new Object[]{grupo.getNum(),grupo.getAtletas().size(),\"Registar Valores\",\"Selecionar Vencedores\", \"Selecionar Atletas\"};\n data = dataAux.clone();\n }\n\n //COLUMN HEADERS\n String columnHeaders[]={\"Numero do Grupo\",\"Número de Atletas\",\"\",\"\",\"\"};\n\n tableEventos.setModel(new DefaultTableModel(\n data,columnHeaders\n ));\n //SET CUSTOM RENDERER TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(3).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(4).setCellRenderer(new ButtonRenderer());\n\n //SET CUSTOM EDITOR TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(3).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(4).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n\n }",
"public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}",
"public String modificar() {\n\n\t\tLOG.info(\"accion crear alumno\");\n\t\tString view = VIEW_LISTADO;\n\t\tview = VIEW_FORM_ALTA;\n\t\tthis.alumnos.add(this.alumno);\n\t\treturn view;\n\t}",
"@Override\n\tpublic void agregar(Alumno alumno) {\n\t\tcomision.add(alumno);\n\t}",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"public ventanaCRUDEAlumos() {\n initComponents();\n \n this.setLocationRelativeTo(null);\n this.setTitle(\"Registrar Alumno\");\n }",
"public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }",
"public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }",
"private void registrar() {\n String nombre = txtNombre.getText();\n if (!nombre.trim().isEmpty()) {\n Alumno a = new Alumno();\n \n // cont++ , ++cont\n// contIds++;\n a.setNombre(nombre);\n a.setId(++contIds);\n \n listaAlumnos.add(a);\n\n lblCantidad.setText(\"Cantidad de nombres: \" + listaAlumnos.size());\n\n txtNombre.setText(null);\n txtNombre.requestFocus();\n // Actualiza la interfaz gráfica de la tabla\n tblNombres.updateUI();\n \n// int cont = 1;\n// System.out.println(\"------------------\");\n// System.out.println(\"Listado de alumnos\");\n// System.out.println(\"------------------\");\n// for (String nom : listaNombres) {\n// System.out.println(cont+\") \"+nom);\n// cont++;\n// }\n// System.out.println(\"------------------\");\n }\n }",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}",
"public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }",
"public void crearActividad (Actividad a) {\r\n String query = \"INSERT INTO actividad (identificacion_navegate, numero_matricula, fecha, hora, destino, eliminar) VALUES (\\\"\" \r\n + a.getIdentificacionNavegante()+ \"\\\", \" \r\n + a.getNumeroMatricula() + \", \\\"\" \r\n + a.getFecha() + \"\\\", \\\"\" \r\n + a.getHora() + \"\\\", \\\"\" \r\n + a.getDestino()+ \"\\\" ,false)\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad creada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public static void agregarAlumno(AlumnoVO alumno) throws SQLException, ClassNotFoundException {\n\t\tConnection con = Constante.getConexion();\n\t\tStatement sentencia = con.createStatement();\n\t\tsentencia.executeUpdate(\"INSERT INTO alumno (dni,nombre,apellido1,apellido2,telefono,fechaNacimiento) VALUES ('\" + alumno.getDni() + \"','\" + alumno.getNombre() + \"' ,'\"\n\t\t\t\t+ alumno.getApellido1() + \"','\" + alumno.getApellido2() + \"',\" + alumno.getTelefono() + \",'\"\n\t\t\t\t+ new Date(alumno.getFechaNacimiento().getTime()) + \"')\");\n\t\tsentencia.close();\n\t\tcon.close();\n//\t\t\n\t\t\n\t}",
"public DialogoAgregarMatACurso() {\n super();\n \n matricula = -1;\n idalumno = -1;\n \n initComponents();\n \n setearListeners();\n \n setearInicioDeClases();\n \n String sIdCurso = CursosagregarAlumnoCBCurso.getSelectedItem().toString();\n sIdCurso = sIdCurso.substring(0, sIdCurso.indexOf(\"-\"));\n int idCurso = Integer.valueOf(sIdCurso);\n setearGananciaProfesorRecargosYCuotas(idCurso);\n }",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}",
"public AnularReserva() {\n initComponents();\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n setIconifiable(true);\n String Titulos[]={\"IDRESERVA\",\"TIPO\",\"HORA\",\"ORIGEN\",\"DESTINO\",\"COSTO\",\"VEHICULO\"};\n datostabla.setColumnIdentifiers(Titulos);\n tbdatos.setModel(datostabla);\n //tbdatos.getColumnModel().getColumn(0).setMaxWidth(0);\n //tbdatos.getColumnModel().getColumn(0).setMinWidth(0);\n //tbdatos.getColumnModel().getColumn(0).setPreferredWidth(0);\n buscar(\"\");\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.form_alumnos);\n\t\tinitComponents();\n\n\t}",
"private void agregarDatoATable() {\n\t\tString nombre = textNombre.getText();\n\t\tint deporte = (int)spinnerDeporte.getValue();\n\t\tint musica = (int)spinnerMusica.getValue();\n\t\tint espectaculo = (int)spinnerEspectaculo.getValue();\n\t\tint ciencia = (int)spinnerCiencia.getValue();\n\t\t\n\t\t//Reseteo los inputs para los proximos datos\n\t\ttextNombre.setText(\"\");\n\t\tspinnerDeporte.setValue(1);\n\t\tspinnerMusica.setValue(1);\n\t\tspinnerEspectaculo.setValue(1);\n\t\tspinnerCiencia.setValue(1);\n\t\t\n\t\t//Agrego todos los datos al array\n\t\tdatos.add(new Persona(nombre,deporte,musica,espectaculo,ciencia));\n\t\t\n\t\t//Agrego los datos a la JTable\n\t\tmodel.addRow(new String[]{ nombre, String.valueOf(deporte), String.valueOf(musica),\n\t\t\t\tString.valueOf(espectaculo), String.valueOf(ciencia) });\n\t\ttable.setModel(model);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtIdAluno = new javax.swing.JTextField();\n txtNome = new javax.swing.JTextField();\n txtEmail = new javax.swing.JTextField();\n txtTelefone = new javax.swing.JTextField();\n cmdAdicionar = new javax.swing.JButton();\n cmdFechar = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblAlunos = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Cadastro de Alunos\");\n\n jLabel1.setText(\"Id do Aluno:\");\n\n jLabel2.setText(\"Nome:\");\n\n jLabel3.setText(\"E-mail:\");\n\n jLabel4.setText(\"Telefone:\");\n\n cmdAdicionar.setText(\"Adicionar\");\n cmdAdicionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdAdicionarActionPerformed(evt);\n }\n });\n\n cmdFechar.setText(\"Fechar\");\n cmdFechar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdFecharActionPerformed(evt);\n }\n });\n\n tblAlunos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Id Aluno\", \"Nome\", \"E-mail\", \"Telefone\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(tblAlunos);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(txtIdAluno, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 430, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(39, 39, 39)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20)\n .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(165, 165, 165)\n .addComponent(cmdAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14)\n .addComponent(cmdFechar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 630, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(17, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtIdAluno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmdAdicionar)\n .addComponent(cmdFechar))\n .addGap(45, 45, 45)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(16, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public AgregarAlumnoAdmin() {\n initComponents();\n }",
"@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"public void atualizarTabela() {\n\t\tJTAlocar.setModel(modelAlocar = new TableModelAlocar(ManipulacaoXml.getInstace().todasAlocacoes()));\n\t}",
"private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }",
"public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }",
"public void iniciarUI()\n\t{\n\t\tDefaultTableModel model = new DefaultTableModel(columnas, 1);\n\t\tpasabordos = new JTable(model);\n\n\t\tvuelos = new JComboBox();\n\t\tllenarVuelos();\n\t\t\n\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\tif(v!=null)\n\t\t{\n\t\t\tllenarPasabordos(v.getId());\n\t\t}\n\n\t}",
"public void agregarAlumno(Alumno alumno){\n listaAlumno.add(alumno);\n }",
"private void atualizarTabela() {\n if (cbLista.getSelectedIndex() == -1) {\n btnAddTarefa.setEnabled(false);\n btnAlterarTarefa.setEnabled(false);\n btnExcluirTarefa.setEnabled(false);\n } else {\n btnAddTarefa.setEnabled(true);\n btnAlterarTarefa.setEnabled(true);\n btnExcluirTarefa.setEnabled(true);\n }\n\n TarefaDAO tarefaDAO = new TarefaDAO();\n TarefaTableModel ttm = new TarefaTableModel();\n lista = ((Lista) cbLista.getSelectedItem());\n if (lista != null) {\n ttm.setLista(tarefaDAO.getTarefasByLista(lista));\n } else {\n ttm.setLista(new ArrayList<>());\n }\n tbTarefa.setModel(ttm);\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n txtNoControl = new javax.swing.JTextField();\n txtNombre = new javax.swing.JTextField();\n txtApaterno = new javax.swing.JTextField();\n txtAmaterno = new javax.swing.JTextField();\n btnGuardar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n btnNuevo = new javax.swing.JButton();\n comboCarrera = new javax.swing.JComboBox<>();\n btnEditar = new javax.swing.JButton();\n btnLimpiar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n comboPlantel = new javax.swing.JComboBox<>();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblConsultar = new javax.swing.JTable();\n comboBuscar = new javax.swing.JComboBox<>();\n txtBuscar = new javax.swing.JTextField();\n btnBuscar = new javax.swing.JButton();\n btnActualizar = new javax.swing.JButton();\n lblTotal = new javax.swing.JLabel();\n comboSexo = new javax.swing.JComboBox<>();\n lblId = new javax.swing.JLabel();\n btnEliminar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setTitle(\"Nuevo Alumno\");\n setFrameIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/alumno.png\"))); // NOI18N\n setPreferredSize(new java.awt.Dimension(964, 660));\n\n jPanel2.setBackground(new java.awt.Color(255, 153, 51));\n jPanel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"Nombre:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Apellido Paterno:\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Apellido Materno:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Sexo:\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"No. de Control:\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel8.setText(\"Carrera:\");\n\n txtNoControl.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtNoControlKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtNoControlKeyTyped(evt);\n }\n });\n\n txtNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNombreActionPerformed(evt);\n }\n });\n txtNombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtNombreKeyReleased(evt);\n }\n });\n\n txtApaterno.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtApaternoKeyReleased(evt);\n }\n });\n\n txtAmaterno.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtAmaternoKeyReleased(evt);\n }\n });\n\n btnGuardar.setText(\"Guardar\");\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n btnNuevo.setText(\"Nuevo\");\n btnNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNuevoActionPerformed(evt);\n }\n });\n\n comboCarrera.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboCarreraActionPerformed(evt);\n }\n });\n\n btnEditar.setText(\"Editar\");\n btnEditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEditarActionPerformed(evt);\n }\n });\n\n btnLimpiar.setText(\"Limpiar\");\n btnLimpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLimpiarActionPerformed(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel9.setText(\"Dependencia:\");\n\n comboPlantel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboPlantelActionPerformed(evt);\n }\n });\n\n tblConsultar.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null}\n },\n new String [] {\n \"idAlumno\", \"No. control\", \"Nombre\", \"Sexo\", \"Carrera\", \"Dependencia\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Object.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n true, false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tblConsultar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tblConsultarMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tblConsultar);\n if (tblConsultar.getColumnModel().getColumnCount() > 0) {\n tblConsultar.getColumnModel().getColumn(3).setResizable(false);\n }\n\n comboBuscar.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Buscar por No.Control:\", \"Buscar por Nombre:\", \"Buscar por Carrera:\" }));\n\n txtBuscar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtBuscarKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtBuscarKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtBuscarKeyTyped(evt);\n }\n });\n\n btnBuscar.setText(\"Buscar\");\n btnBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBuscarActionPerformed(evt);\n }\n });\n\n btnActualizar.setText(\"Actualizar\");\n btnActualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnActualizarActionPerformed(evt);\n }\n });\n\n lblTotal.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n lblTotal.setPreferredSize(new java.awt.Dimension(85, 14));\n\n comboSexo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Hombre\", \"Mujer\" }));\n comboSexo.setSelectedIndex(-1);\n comboSexo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n comboSexoActionPerformed(evt);\n }\n });\n\n btnEliminar.setText(\"Eliminar\");\n btnEliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEliminarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(btnNuevo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnActualizar, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(116, 116, 116)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtNoControl, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtApaterno, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(comboPlantel, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtAmaterno, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboCarrera, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboSexo, javax.swing.GroupLayout.PREFERRED_SIZE, 358, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(199, 199, 199)\n .addComponent(lblId, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 193, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 865, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(31, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNoControl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblId, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(4, 4, 4)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtApaterno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtAmaterno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboSexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboCarrera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(3, 3, 3)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboPlantel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnGuardar)\n .addComponent(btnCancelar)\n .addComponent(btnEditar)\n .addComponent(btnLimpiar)\n .addComponent(btnNuevo))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnActualizar)\n .addComponent(btnEliminar))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblTotal, javax.swing.GroupLayout.DEFAULT_SIZE, 8, Short.MAX_VALUE)\n .addGap(23, 23, 23))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public telaCadastro() {\n initComponents();\n populaTabela();\n }",
"public String insertAlum(Alumno alumno) //lo necesitaba\n {\n String regInsertado = \"Alumno: \";\n\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"CARNET\",alumno.getCarnet());\n contentValues.put(\"IDESCUELA\", alumno.getIdEscuela());\n contentValues.put(\"NOMESTUDIANTE\", alumno.getNombre());\n long contador = db.insert(\"ESTUDIANTE\",null,contentValues);\n db.close();\n\n if(contador > 0){\n regInsertado = regInsertado + contador;\n }else{\n regInsertado = \"Ya existe el alumno.\" + alumno.getCarnet();\n }\n return regInsertado;\n }",
"public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }",
"public void crearTabla() {\n\t\tthis.tabla= new String[palabras.length+1][4];\t\n\t}",
"private void apresentarListaNaTabela() {\n DefaultTableModel modelo = (DefaultTableModel) tblAlunos.getModel();\n modelo.setNumRows(0);\n for (Aluno item : bus.getLista()) {\n modelo.addRow(new Object[]{\n item.getIdAluno(),\n item.getNome(),\n item.getEmail(),\n item.getTelefone()\n });\n }\n }",
"private void iniciarVentana()\n {\n this.setVisible(true);\n //Centramos la ventana\n this.setLocationRelativeTo(null);\n //Colocamos icono a la ventana\n this.setIconImage(Principal.getLogo());\n //Agregamos Hint al campo de texto\n txt_Nombre.setUI(new Hint(\"Nombre del Archivo\"));\n //ocultamos los componentes de la barra de progreso general\n lblGeneral.setVisible(false);\n barraGeneral.setVisible(false);\n //ocultamos la barra de progreso de archivo\n barra.setVisible(false);\n //deshabiltamos el boton de ElimianrArchivo\n btnEliminarArchivo.setEnabled(false);\n //deshabilitamos el boton de enviar\n btnaceptar.setEnabled(false);\n //Creamos el modelo para la tabla\n modelo=new DefaultTableModel(new Object[][]{},new Object[]{\"nombre\",\"tipo\",\"peso\"})\n {\n //sobreescribimos metodo para prohibir la edicion de celdas\n @Override\n public boolean isCellEditable(int i, int i1) {\n return false;\n }\n \n };\n //Agregamos el modelo a la tabla\n tablaArchivos.setModel(modelo);\n //Quitamos el reordenamiento en la cabecera de la tabla\n tablaArchivos.getTableHeader().setReorderingAllowed(false);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblNombreNuevoAlumno = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n btnSalirAgregarAlumnoRegistro = new javax.swing.JButton();\n txtNombreNuevoAlumnoRegistro = new javax.swing.JTextField();\n txtApellidoNuevoAlumnoRegisto = new javax.swing.JTextField();\n txtEdadNuevoAlumnoRegisto = new javax.swing.JTextField();\n txtNumRegistroNuevoAlumnoRegistro = new javax.swing.JTextField();\n txtIDNuevoAlumnoRegistro = new javax.swing.JTextField();\n txtCarreraNuevoAlumnoRegistro = new javax.swing.JTextField();\n txtAnoCarreraNuevoAlumnoRegistro = new javax.swing.JTextField();\n txtPromedioGraduacionNuevoAlumnoRegistro = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtFacultadNuevoAlumnoRegistro = new javax.swing.JTextField();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Agregar alumno\");\n\n lblNombreNuevoAlumno.setText(\"Nombre\");\n\n jLabel2.setText(\"Apellido\");\n\n jLabel3.setText(\"Edad\");\n\n jLabel4.setText(\"Numero de Registro\");\n\n jLabel5.setText(\"ID\");\n\n jLabel6.setText(\"Carrera\");\n\n jLabel7.setText(\"ano de carrera\");\n\n jLabel8.setText(\"Promedio de graduacion\");\n\n btnSalirAgregarAlumnoRegistro.setText(\"jButton1\");\n\n txtNombreNuevoAlumnoRegistro.setText(\"jTextField1\");\n\n txtApellidoNuevoAlumnoRegisto.setText(\"jTextField2\");\n\n txtEdadNuevoAlumnoRegisto.setText(\"jTextField3\");\n\n txtNumRegistroNuevoAlumnoRegistro.setText(\"jTextField4\");\n\n txtIDNuevoAlumnoRegistro.setText(\"jTextField5\");\n\n txtCarreraNuevoAlumnoRegistro.setText(\"jTextField6\");\n\n txtAnoCarreraNuevoAlumnoRegistro.setText(\"jTextField7\");\n\n txtPromedioGraduacionNuevoAlumnoRegistro.setText(\"jTextField8\");\n\n jLabel9.setText(\"Facultad\");\n\n txtFacultadNuevoAlumnoRegistro.setText(\"jTextField9\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnSalirAgregarAlumnoRegistro)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(lblNombreNuevoAlumno)\n .addComponent(jLabel9))\n .addGap(61, 61, 61)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNombreNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtApellidoNuevoAlumnoRegisto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEdadNuevoAlumnoRegisto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNumRegistroNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtIDNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCarreraNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtAnoCarreraNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPromedioGraduacionNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFacultadNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(137, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblNombreNuevoAlumno)\n .addComponent(txtNombreNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(txtApellidoNuevoAlumnoRegisto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtEdadNuevoAlumnoRegisto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(txtNumRegistroNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtIDNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(44, 44, 44)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtCarreraNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtAnoCarreraNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txtPromedioGraduacionNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(txtFacultadNuevoAlumnoRegistro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(63, 63, 63)\n .addComponent(btnSalirAgregarAlumnoRegistro)\n .addContainerGap(27, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public void llenadoDeTablas() {\n \n DefaultTableModel modelo1 = new DefaultTableModel();\n modelo1 = new DefaultTableModel();\n modelo1.addColumn(\"ID Usuario\");\n modelo1.addColumn(\"NOMBRE\");\n UsuarioDAO asignaciondao = new UsuarioDAO();\n List<Usuario> asignaciones = asignaciondao.select();\n TablaPerfiles.setModel(modelo1);\n String[] dato = new String[2];\n for (int i = 0; i < asignaciones.size(); i++) {\n dato[0] = (Integer.toString(asignaciones.get(i).getId_usuario()));\n dato[1] = asignaciones.get(i).getNombre_usuario();\n\n modelo1.addRow(dato);\n }\n }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n private void añadirTarea() throws ParseException {\n TaskSQLiteHelper usdbh = new TaskSQLiteHelper(this, \"bdTareas\", null, 1);\n //Obtenemos referencia a la base de datos para poder modificarla.\n SQLiteDatabase db = usdbh.getWritableDatabase();\n\n //Abrimos la base de datos ALARMAS en modo escritura.\n TaskSQLiteHelper2 usdbh2 = new TaskSQLiteHelper2(this, \"bdAlarmas\", null, 1);\n //Obtenemos referencia a la base de datos para poder modificarla.\n SQLiteDatabase db2 = usdbh2.getWritableDatabase();\n\n if (etTitulo.getText().toString().trim().isEmpty() && etFechaLimite.getText().toString().trim().isEmpty()) {\n crearToast(\"Faltan campos por completar.\").show();\n etTitulo.setBackgroundTintList(getResources().getColorStateList(R.color.colorRedLight));\n etFechaLimite.setBackgroundTintList(getResources().getColorStateList(R.color.colorRedLight));\n } else {\n if (etTitulo.getText().toString().trim().isEmpty()) {\n crearToast(\"Introduce titulo para la tarea.\").show();\n etTitulo.setBackgroundTintList(getResources().getColorStateList(R.color.colorRedLight));\n } else {\n etTitulo.setBackgroundTintList(getResources().getColorStateList(R.color.colorGray));\n if (etFechaLimite.getText().toString().trim().isEmpty()) {\n crearToast(\"Introduce una fecha límite.\").show();\n etFechaLimite.setBackgroundTintList(getResources().getColorStateList(R.color.colorRedLight));\n } else {\n etTitulo.setBackgroundTintList(getResources().getColorStateList(R.color.colorGray));\n crearTarea();\n db.execSQL(\"INSERT INTO tareas(titulo, descripcion, fechaLimite, horaLimite, fechaCompleta, usarRecordatorio) \" +\n \"VALUES('\" + crearTarea().getTitulo() + \"', '\" + crearTarea().getDescripcion() + \"', '\" +\n crearTarea().getFecha() + \"', '\" + crearTarea().getHora() + \"', '\" + crearTarea().getFechaCompleta() + \"', '\" +\n ((crearTarea().isUsarRecordatorio() == false) ? 0 : 1) + \"');\");\n db.close();\n\n if (crearTarea().isUsarRecordatorio()) {\n db2.execSQL(\"INSERT INTO alarmas(titulo, minutos) VALUES('\" + crearTarea().getTitulo().trim() + \"', '\" + alarmService.getMinutes(gCalendar) + \"');\");\n db2.close();\n }\n\n crearToast(\"Tarea añadida correctamente.\").show();\n\n finish();\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n }\n }\n }\n }",
"public void adicionar() {\n String sql = \"insert into empresa(empresa, cnpj, endereco, telefone, email) values (?,?,?,?,?)\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpNome.getText());\n pst.setString(2, txtEmpCNPJ.getText());\n pst.setString(3, txtEmpEnd.getText());\n pst.setString(4, txtEmpTel.getText());\n pst.setString(5, txtEmpEmail.getText());\n // validacao dos campos obrigatorios\n if ((txtEmpNome.getText().isEmpty()) || (txtEmpCNPJ.getText().isEmpty())) {\n JOptionPane.showMessageDialog(null, \"Preencha todos os campos obrigatórios\");\n } else {\n //a linha abaixo atualiza a tabela usuarios com os dados do formulario\n // a esttrutura abaixo confirma a inserção na tabela\n int adicionado = pst.executeUpdate();\n if (adicionado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa adicionada com sucesso\");\n txtEmpNome.setText(null);\n txtEmpEnd.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }",
"private void inicializarVista() {\n this.vista.jtfNombreRol.setText(this.modelo.getRol().getDescripcion());\n this.vista.jbAgregar.setEnabled(false);\n this.vista.jbQuitar.setEnabled(false);\n this.vista.jtPermisosDisponibles.setModel(modelo.obtenerAccesosDispon());\n this.vista.jtPermisosSeleccionados.setModel(modelo.obtenerAccesoSelecc());\n Utilities.c_packColumn.packColumns(this.vista.jtPermisosDisponibles, 1);\n Utilities.c_packColumn.packColumns(this.vista.jtPermisosSeleccionados, 1);\n }",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"private void btntambahActionPerformed(java.awt.event.ActionEvent evt) {\n\tdiaTambahKelas.pack();\n\tdiaTambahKelas.setVisible(true);\n\trefreshTableKelas();\n//\tDate date = jdWaktu.getDate();\n//\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"YYYY-MM-dd\");\n//\tString strDate = dateFormat.format(date);\n//\tif (validateKelas()) {\n//\t int result = fungsi.executeUpdate(\"insert into kelas values ('\" + txtidkls.getText() + \"', '\" + txtkls.getText() + \"', '\" + txtpertemuan.getText() + \"', '\" + strDate + \"', '\" + txtRuang.getText() + \"')\");\n//\t if (result > 0) {\n//\t\trefreshTableKelas();\n//\t }\n//\t}\n\t\n }",
"public void crearAsistente(AsistenteDTO dto) throws SQLException {\n artFacade.crear(dto);\n }",
"private void insertar() {\n String nombre = edtNombre.getText().toString();\n String telefono = edtTelefono.getText().toString();\n String correo = edtCorreo.getText().toString();\n // Validaciones\n if (!esNombreValido(nombre)) {\n TextInputLayout mascaraCampoNombre = (TextInputLayout) findViewById(R.id.mcr_edt_nombre_empresa);\n mascaraCampoNombre.setError(\"Este campo no puede quedar vacío\");\n } else {\n mostrarProgreso(true);\n String[] columnasFiltro = {Configuracion.COLUMNA_EMPRESA_NOMBRE, Configuracion.COLUMNA_EMPRESA_TELEFONO\n , Configuracion.COLUMNA_EMPRESA_CORREO, Configuracion.COLUMNA_EMPRESA_STATUS};\n String[] valorFiltro = {nombre, telefono, correo, estado};\n Log.v(\"AGET-ESTADO\", \"ENVIADO: \" + estado);\n resultado = new ObtencionDeResultadoBcst(this, Configuracion.INTENT_EMPRESA_CLIENTE, columnasFiltro, valorFiltro, tabla, null, false);\n if (ID.isEmpty()) {\n resultado.execute(Configuracion.PETICION_EMPRESA_REGISTRO, tipoPeticion);\n } else {\n resultado.execute(Configuracion.PETICION_EMPRESA_MODIFICAR_ELIMINAR + ID, tipoPeticion);\n }\n }\n }",
"public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"private void cargarTabla() {\n\t\tObject[] fila = new Object[7];\r\n\t\tfila[1] = txtCedula.getText();\r\n\t\tfila[2] = txtFuncionario.getText();\r\n\t\tfila[3] = util.getDateToString(dcDesde.getDate());\r\n\t\tif (cbTipo.getSelectedIndex() == 1 || cbTipo.getSelectedIndex() == 2) {\r\n\t\t\tfila[4] = util.getDateToString(dcDesde.getDate());\r\n\t\t} else {\r\n\t\t\tfila[4] = util.getDateToString(dcHasta.getDate());\r\n\t\t}\r\n\t\tfila[5] = cbTipo.getSelectedItem();\r\n\t\tfila[6] = txtMotivo.getText().toUpperCase();\r\n\t\tthis.modelo.addRow(fila);\r\n\t\ttbJustificaciones.setModel(this.modelo);\r\n\t}",
"private void btnAtualizarTabelaActionPerformed(ActionEvent e) {\n }",
"public VentanaEmpleado()\n\t{\n\t\tinitComponents();\n\t\tm = ( DefaultTableModel ) tblEmpleado.getModel();\n\n\t\tcargarTablaDesdeBD();\n\t}",
"public crud_empleados() {\n initComponents();\n txt_usuario1.setEditable(false);\n Mostrar();\n \n\n\n }",
"@Override\r\n\tpublic void insertar() {\n\t\ttab_nivel_funcion_programa.insertar();\r\n\t\t\t\r\n\t\t\r\n\t}",
"private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames);\n jTable1.setModel(datos);\n }",
"private void atualizarTabuleiro() throws Exception {\n JogoVelha jogo;\n \n // Recebe dados do jogo\n jogo = remoteApi.getJogo(this.idJogo);\n // Atualizar tabuleiro com o jogo recebido\n jButton11.setText(String.valueOf(jogo.getCelula(1, 1)));\n jButton12.setText(String.valueOf(jogo.getCelula(1, 2)));\n jButton13.setText(String.valueOf(jogo.getCelula(1, 3)));\n jButton21.setText(String.valueOf(jogo.getCelula(2, 1)));\n jButton22.setText(String.valueOf(jogo.getCelula(2, 2)));\n jButton23.setText(String.valueOf(jogo.getCelula(2, 3)));\n jButton31.setText(String.valueOf(jogo.getCelula(3, 1)));\n jButton32.setText(String.valueOf(jogo.getCelula(3, 2)));\n jButton33.setText(String.valueOf(jogo.getCelula(3, 3)));\n }",
"public agregarArticulo(String user, String password, String vend, String codigoVend) {\n initComponents();\n usu = user;\n contra = password;\n\n try {\n model = new ConnectionTableDB(usu, contra, \"adv_facturacion\", \"SELECT tipo_producto from tipo_producto\", false);\n\n for (int i = 0; i < model.getRowCount(); i++) {\n tipo.addItem(String.valueOf(model.getValueAt(i, 0)));\n }\n //this.getContentPane().setBackground(Color.white);\n } catch (SQLException ex) {\n Logger.getLogger(agregarArticulo.class.getName()).log(Level.SEVERE, null, ex);\n }\n model.desconectar();\n }",
"public salle() {\n initComponents();\n model.addColumn(\"Id_sal\");\n model.addColumn(\"Nom_sal\");\n model.addColumn(\"capacité\");\n t1.setText(\"\" + entier());\n try {\n//2.Enregistrer le driver JDBC\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException e) {\n System.out.println(\"erreur du chargement du driver\" + e);\n }\n try {\n//3.connextion a la basse\n\n//String url=(\"jdbc:mysql://localhost:3306/gestion_emprunt2\",\"root\",\"\");\n Connection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/gestionconvo\", \"root\", \"\");\n//4creation d'un Statement\n\n Statement st = con.createStatement();\n\n//5.execution d'une requete (ResultSet)\n ResultSet Rs = st.executeQuery(\"Select * from salle\");\n while (Rs.next()) {\n model.addRow(new Object[]{Rs.getString(\"Id_sal\"), Rs.getString(\"Nom_sal\"), Rs.getString(\"capacité\")});\n }\n\n st.close();\n con.close();\n } catch (SQLException sql) {\n System.err.println(\"erreur lors de la connexion\" + sql);\n\n }\n tbl.setModel(model);\n }",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"@SuppressWarnings(\"null\")\n private void btn_CrearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_CrearActionPerformed\n // TODO add your handling code here:\n if (tf_ID.getText().equals(\"\") || tf_Descuento.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"No se puede insertar una clave vacia\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } else {\n Statement s = null;\n try {\n s = conexion.createStatement();\n } catch (SQLException se) {\n System.out.println(\"probando conexion de consulta\");\n }\n\n try {\n s.executeUpdate(\"INSERT INTO public.cupon (id_cupon, descuento) VALUES ('\" + tf_ID.getText() + \"', '\" + tf_Descuento.getText() + \"')\");\n JOptionPane.showMessageDialog(null, \"Se ha insertado correctamente\", \"Exito\", JOptionPane.INFORMATION_MESSAGE);\n //INCLUIR MODIFICAR LOS CUPONES ASOCIADOS AL SOCIO\n confirmacion(\"¿Deseas añadir mas cupones?\", \"Insertar Socio\");\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(null, se.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n tf_Descuento.setText(\"\");\n tf_ID.setText(\"\");\n }\n }\n }",
"private void agregarComponentes() {\n JButton botonEstudiante = new JButton(\"Estudiante\");\r\n JButton botonDocente = new JButton(\"Docente\");\r\n JButton botonEquipo = new JButton(\"Equipo\");\r\n\r\n botonEstudiante.addActionListener(new OyenteListaEstudiante(this));\r\n botonDocente.addActionListener(new OyenteListaDocente(this));\r\n botonEquipo.addActionListener(new OyenteListaEquipo(this));\r\n\r\n // crea objeto Box para manejar la colocación de areaConsulta y\r\n // botonEnviar en la GUI\r\n Box boxNorte = Box.createHorizontalBox();\r\n boxNorte.add(botonDocente);\r\n boxNorte.add(botonEstudiante);\r\n boxNorte.add(botonEquipo);\r\n\r\n // crea delegado de JTable para modeloTabla\r\n tablaDatosIngresdos = new JTable();\r\n add(boxNorte, BorderLayout.NORTH);\r\n\r\n add(new JScrollPane(tablaDatosIngresdos), BorderLayout.CENTER);\r\n\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n etiquetaTitulo = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaCuentas = new javax.swing.JTable();\n etiquetaLeyenda = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n etiquetaCodigo = new javax.swing.JLabel();\n campoCodigo = new javax.swing.JTextField();\n etiquetaDescripcion = new javax.swing.JLabel();\n campoDescripcion = new javax.swing.JTextField();\n comboCuentaTitulo = new javax.swing.JComboBox<>();\n etiquetaCuentaTitulo = new javax.swing.JLabel();\n botonAceptar = new javax.swing.JButton();\n etiquetaNivel = new javax.swing.JLabel();\n campoNivel = new javax.swing.JTextField();\n etiquetaTitulo2 = new javax.swing.JLabel();\n botonVolver = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n etiquetaTitulo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n etiquetaTitulo.setText(\"Crear una nueva Cuenta o Titulo\");\n\n tablaCuentas = new javax.swing.JTable() {\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tablaCuentas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Descripcion\", \"Tipo\", \"Nro Cuenta\"\n }\n ));\n jScrollPane1.setViewportView(tablaCuentas);\n\n etiquetaLeyenda.setText(\"Seleccione bajo que titulo se crea la nueva cuenta o titulo\");\n\n etiquetaCodigo.setText(\"Codigo:\");\n\n etiquetaDescripcion.setText(\"Descripcion:\");\n\n comboCuentaTitulo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Titulo\", \"Cuenta\" }));\n\n etiquetaCuentaTitulo.setText(\"Cuenta o Titulo:\");\n\n botonAceptar.setText(\"Aceptar\");\n\n etiquetaNivel.setText(\"Nivel:\");\n\n campoNivel.setEnabled(false);\n\n etiquetaTitulo2.setText(\"Datos de la nueva Cuenta\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(botonAceptar)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaCodigo)\n .addComponent(etiquetaDescripcion)\n .addComponent(etiquetaCuentaTitulo))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addComponent(etiquetaNivel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(etiquetaTitulo2)))\n .addContainerGap(38, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(etiquetaTitulo2)\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigo))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(etiquetaDescripcion)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(59, 59, 59)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCuentaTitulo)\n .addComponent(etiquetaNivel)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(61, 61, 61)\n .addComponent(botonAceptar)\n .addContainerGap(52, Short.MAX_VALUE))\n );\n\n botonVolver.setText(\"Volver\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaLeyenda)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(botonVolver))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(317, 317, 317)\n .addComponent(etiquetaTitulo)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(etiquetaTitulo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addComponent(etiquetaLeyenda)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonVolver)\n .addGap(67, 67, 67))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public void insertEstudio(){\n //Creamos el conector de bases de datos\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n\n //Metodo apra almacenar fecha en SQLite\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String date = sdf.format(new Date());\n\n ContentValues registro = new ContentValues(); // Instanciamos el objeto contenedor de valores.\n registro.put(\"fecha\", date); // Aqui asociamos los atributos de la tabla con los valores de los campos (Recuerda el campo de la tabla debe ser igual aqui)\n registro.put(\"co_actividad\", \"1\"); // Aqui asociamos los atributos de la tabla con los valores de los campos (Recuerda el campo de la tabla debe ser igual aqui)\n\n //Conectamos con la base datos insertamos.\n BasesDeDatos.insert(\"t_estudios\", null, registro);\n BasesDeDatos.close();\n\n }",
"public void fill_table()\n {\n Secante secante = new Secante(GraficaSecanteController.a, GraficaSecanteController.b, GraficaSecanteController.ep, FuncionController.e);\n list = secante.algoritmo();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tString nome = txtNome.getText();\n\t\t\t\t\tdouble nota1 = Integer.parseInt(txtNota1.getText());\n\t\t\t\t\tdouble nota2 = Integer.parseInt(txtNota2.getText());\n\t\t\t\t\tAluno a = new Aluno(nome, nota1, nota2);\n\t\t\t\t\t\t\t\t\n\t\t//INSERIR DADOS NO ARRAYLIST\n\t\t\t\t\talunos.add(a);\n\t\t\t\t\t\n\t\t//LIMPAR OS CAMPOS APOS CADASTRO / VOLTAR CURSOS PARA O CAMPO DO NOME\n\t\t\t\t\ttxtNome.setText(\"\");\n\t\t\t\t\ttxtNota1.setText(\"\");\n\t\t\t\t\ttxtNota2.setText(\"\");\n\t\t\t\t\ttxtNome.requestFocus();\n\t\t\t\t\t\n\t\t//ATUALIZAR DADOS DA TABELA DTM\n\t\t\t\t\tdtm.setRowCount(0);\n\t\t\t\t\tfor (int i=0; i<alunos.size(); i++) {\n\t\t\t\t\t\tdtm.addRow(new Object[] {\n\t\t\t\t\t\t\talunos.get(i).getNome(),\n\t\t\t\t\t\t\talunos.get(i).getNota1(),\n\t\t\t\t\t\t\talunos.get(i).getNota2(),\n\t\t\t\t\t\t\talunos.get(i).getMedia(),\n\t\t\t\t\t\t\talunos.get(i).getSituacao(),\n\t\t\t\t\t\t}); \n\t\t\t\t\t}\n\t\t//DEFINIR OS DADOS DA MINHA DTM\n\t\t\t\t\ttabela.setModel(dtm);\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public tabelAnggota() {\n initComponents();\n \n //membuat tablemodel\n model = new DefaultTableModel();\n //menambah tablemodel ke tabel\n jTable1.setModel(model);\n \n model.addColumn(\"ID Anggota\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Alamat\");\n model.addColumn(\"No HP\");\n model.addColumn(\"Tanggal Lahir\");\n model.addColumn(\"Tanggal Bergabung\");\n \n loadData();\n enaButtonSimpan();\n }",
"public Principal() {\n initComponents();\n setLocationRelativeTo(null);\n deshabilitarPermisos();\n String titulos[] = {\"Nº\", \"Fecha y Hora\", \"Actividad\"};\n modeloTabla.setColumnIdentifiers(titulos);\n this.tabla.setModel(modeloTabla);\n }",
"public void insertar2(String nombre, String apellido, String mail, String celular, String comuna,String profesor,String alumno,String clave) {\n db.execSQL(\"insert into \" + TABLE_NAME + \" values (null,'\" + nombre + \"','\" + apellido + \"','\" + mail + \"','\" + celular + \"','\" + comuna + \"',\" + profesor + \",0,0,0,0,\" + alumno + \",'\" + clave + \"')\");\n }",
"Vaisseau_abscisseLaPlusAGauche createVaisseau_abscisseLaPlusAGauche();",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String CREATE_USER_TABLE = \"CREATE TABLE \" + TABLE_NAME + \"(\"\n + COLUMN_ID + \" INTEGER PRIMARY KEY,\" + COLUMN_PEMASUKAN + \" TEXT,\"\n + COLUMN_PENGELUARAN + \" TEXT\" + \")\";\n db.execSQL(CREATE_USER_TABLE);\n }",
"@PutMapping(\"/anuncios/crear/{idAutor}\")\n public void createAnuncio(@PathVariable Long idAutor, @RequestBody Anuncio nuevoAnuncio) throws DataConsistencyException {\n anuncioService.crearAnuncio(idAutor, nuevoAnuncio);\n }",
"public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }",
"private void cargarColumnasTabla(){\n \n modeloTabla.addColumn(\"Nombre\");\n modeloTabla.addColumn(\"Telefono\");\n modeloTabla.addColumn(\"Direccion\");\n }",
"public void insertar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puedes dejar cuadros en blanco\");//C.P.M Verificamos si las casillas esta vacia si es asi lo notificamos\r\n } else {//C.P.M de lo contrario prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos las variabes al modelo \r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.insertar();//C.P.M Ejecutamos el metodo del modelo \r\n if (Error.equals(\"\")) {//C.P.M Si el modelo no regresa un error es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Se guardo exitosamente la configuracion\");//C.P.M notificamos a el usuario\r\n vista.dispose();//C.P.M y cerramos la vista\r\n } else {//C.P.M de lo contrario \r\n JOptionPane.showMessageDialog(null, Error);//C.P.M notificamos a el usuario el error\r\n }\r\n }\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n TablaInven = new javax.swing.JTable();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n cbMarca = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n cbPro = new javax.swing.JComboBox<>();\n jLabel5 = new javax.swing.JLabel();\n cbEstado = new javax.swing.JComboBox<>();\n jLabel6 = new javax.swing.JLabel();\n cbAlm = new javax.swing.JComboBox<>();\n jLabel7 = new javax.swing.JLabel();\n bxRam = new javax.swing.JComboBox<>();\n jLabel8 = new javax.swing.JLabel();\n txtmac = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n cbAcces = new javax.swing.JComboBox<>();\n jLabel10 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel1.setText(\"Equipos en el inventario\");\n\n TablaInven.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Numero\", \"Marca\", \"Procesador\", \"Estado\", \"Almacenamiento\", \"Ram\", \"Mac\", \"Accesorios\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n TablaInven.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n TablaInvenMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(TablaInven);\n\n jLabel2.setText(\"Numero del equipo\");\n\n jTextField1.setEnabled(false);\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Marca\");\n\n cbMarca.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione...\", \"LENOVO\", \"ACER\", \"HP\", \"MSI\", \"ASUS\", \"APPLE\" }));\n cbMarca.setEnabled(false);\n\n jLabel4.setText(\"Procesador\");\n\n cbPro.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione...\", \"AMD RAYZEN 5 3600\", \"AMD ATHLON\", \"AMD SEREA A PRO\", \"INTEL CORE 5 \", \"INTEL CORE 7\", \"INTEL CORE 9\" }));\n cbPro.setEnabled(false);\n\n jLabel5.setText(\"Estado\");\n\n cbEstado.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione...\", \"Activo\", \"Inactivo\" }));\n cbEstado.setEnabled(false);\n\n jLabel6.setText(\"Almacenamiento\");\n\n cbAlm.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione...\", \"250 GB\", \"500 GB\", \"1 TERA\", \"2 TERAS\" }));\n cbAlm.setEnabled(false);\n\n jLabel7.setText(\"Memoria Ram\");\n\n bxRam.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione...\", \"4 GB\", \"8 GB\", \"12 GB\", \"16 GB\", \"32 GB\", \"64 GB\" }));\n bxRam.setEnabled(false);\n\n jLabel8.setText(\"MAC\");\n\n txtmac.setEnabled(false);\n txtmac.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtmacActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Accesorios\");\n\n cbAcces.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione...\", \"Mouse\", \"Morral \", \"Guaya\", \"Cargador\", \"Todos\" }));\n cbAcces.setEnabled(false);\n cbAcces.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbAccesActionPerformed(evt);\n }\n });\n\n jLabel10.setText(\"Codigo\");\n\n jTextField3.setEnabled(false);\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Img/edit.png\"))); // NOI18N\n jButton1.setText(\"Editar\");\n jButton1.setBorderPainted(false);\n jButton1.setEnabled(false);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Img/b_usrcheck.png\"))); // NOI18N\n jButton2.setText(\"Nuevo\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Img/broom (1).png\"))); // NOI18N\n jButton3.setText(\"Limpiar\");\n jButton3.setBorderPainted(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Img/undo.gif\"))); // NOI18N\n jButton4.setText(\"Volver\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(214, 214, 214)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 632, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(122, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(52, 52, 52)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8)\n .addComponent(jLabel6))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cbAlm, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbPro, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField1)\n .addComponent(txtmac)\n .addComponent(jTextField3))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(bxRam, 0, 144, Short.MAX_VALUE)\n .addComponent(cbAcces, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(73, 73, 73)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cbMarca, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbEstado, 0, 146, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(26, 26, 26))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(cbPro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(cbAlm, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtmac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(cbAcces, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cbMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(cbEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(bxRam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(42, 42, 42))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addComponent(jButton2))\n .addComponent(jButton1))\n .addGap(18, 18, 18)\n .addComponent(jButton3)\n .addGap(18, 18, 18)\n .addComponent(jButton4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }",
"public final void nuevoAlumno(String nombre, String nif, LocalDate fecha) throws Exception {\r\n\r\n listaAlumnos.forEach((buscado) -> {\r\n if (!buscado.getNif().equals(nif)) {\r\n new Exception(\"NIF ya existe\");\r\n } else {\r\n listaAlumnos.add(new Alumno(nombre, nif, fecha));\r\n }\r\n });\r\n }",
"public Alumno(String nombre, String apellido) {\n this.nombre = nombre;\n this.apellido = apellido;\n this.pagames=0;\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(CREATE_TABLE);\n guardarUsuarios(db);\n\n }",
"public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }",
"private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"CPF\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Endereço\");\n cabecalho.add(\"E-mail\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Cliente cliente : new NCliente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(cliente.getId() + \"\");\n linha.add(cliente.getNome());\n linha.add(cliente.getCpf());\n linha.add(cliente.getTelefone());\n linha.add(cliente.getEndereco());\n linha.add(cliente.getEmail());\n linha.add(cliente.getData_nascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblClientes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }",
"@Override\n public void buttonClick(ClickEvent event) {\n try {\n boolean terminado = false;\n AlumnoDAO alumnoDAO = new AlumnoDAO();\n List<Alumno> listAlu = new ArrayList<>();\n listAlu.addAll(alumnoDAO.listaAlumnos());\n Iterator<Alumno> it = listAlu.iterator();\n\n if (!email_alumno.equals(\"\")) {\n if (!id_alumno.equals(\"\")) {\n if (password_alumno.equals(repassword_alumno)) {\n while ((it.hasNext() && terminado == false)) {\n Alumno a = it.next();\n if (a.getEmail().equals(email_alumno.getValue()) || a.getIdAlumno().equals(id_alumno)) {\n terminado = true;\n Notification.show(\"Campo email o identificador ya usado por otro usuario\", Notification.Type.WARNING_MESSAGE);\n }\n }\n } else {\n //Notification.show(\"No coincide los campos contraseña y repetir contraseña\", Notification.Type.WARNING_MESSAGE);\n }\n } else {\n Notification.show(\"Campo identificador vacio\", Notification.Type.WARNING_MESSAGE);\n }\n } else {\n Notification.show(\"Campo email vacio\", Notification.Type.WARNING_MESSAGE);\n }\n if (terminado == false) {\n Alumno a = new Alumno();\n a.setIdAlumno(id_alumno.getValue());\n a.setIdLugar((String) id_lugar_alumno.getValue());\n a.setNombre(nombre_alumno.getValue());\n a.setApellidos(apellidos_alumno.getValue());\n a.setEdad(edad_alumno.getValue());\n a.setCurso((String) curso_asig.getValue());\n a.setEmail(email_alumno.getValue());\n a.setPassword(password_alumno.getValue());\n Notification.show(\"Alumno modificado\", \"Se ha actualizado el \"\n + \"alumno en la base de datos\", Notification.Type.TRAY_NOTIFICATION);\n alumnoDAO.crear(a);\n getUI().getPage().setLocation(getUI().getPage().getLocation().getPath());\n }\n } catch (UnknownHostException ex) {\n Logger.getLogger(LoginView.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(LoginView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void tambahUang(Uang uang){\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_PEMASUKAN, uang.getPemasukan());\n values.put(COLUMN_PENGELUARAN, uang.getPengeluaran());\n\n db.insert(TABLE_NAME, null, values);\n db.close();\n }",
"public void lanzarListaAlumnos(View view){\n Intent i = new Intent(this, ListaAsignaturas.class);\n startActivity(i);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jtfNombre = new javax.swing.JTextField();\n jtfApellido = new javax.swing.JTextField();\n jtfIdentificacion = new javax.swing.JTextField();\n jtfSalario = new javax.swing.JTextField();\n jtfPension = new javax.swing.JTextField();\n jtfSalud = new javax.swing.JTextField();\n jtfBanco = new javax.swing.JTextField();\n jtfCuenta = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtbEmpleados = new javax.swing.JTable();\n jbtRegistrar = new javax.swing.JButton();\n jbtActualizar = new javax.swing.JButton();\n jLabel10 = new javax.swing.JLabel();\n jtfCargo = new javax.swing.JTextField();\n jbnLimpiar = new javax.swing.JButton();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Gestion Empleado\");\n\n jLabel2.setText(\"Nombre\");\n\n jLabel3.setText(\"Apellido\");\n\n jLabel4.setText(\"Identificacion\");\n\n jLabel5.setText(\"Salario Basico\");\n\n jLabel6.setText(\"Pension\");\n\n jLabel7.setText(\"Salud\");\n\n jLabel8.setText(\"Banco\");\n\n jLabel9.setText(\"Cuenta\");\n\n jtbEmpleados.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Identificacion\", \"Nombre\", \"Apellido\", \"Cargo\", \"Salario Basico\", \"Pension\", \"Salud\", \"Banco\", \"Cuenta\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jtbEmpleados.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jtbEmpleadosMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jtbEmpleados);\n\n jbtRegistrar.setText(\"Registrar\");\n jbtRegistrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtRegistrarActionPerformed(evt);\n }\n });\n\n jbtActualizar.setText(\"Actualizar\");\n jbtActualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtActualizarActionPerformed(evt);\n }\n });\n\n jLabel10.setText(\"Cargo\");\n\n jbnLimpiar.setText(\"Limpiar\");\n jbnLimpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbnLimpiarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jbnLimpiar)\n .addGap(18, 18, 18)\n .addComponent(jbtActualizar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jbtRegistrar))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jtfIdentificacion, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(22, 22, 22)\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel7)\n .addComponent(jLabel10)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jtfSalario, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)\n .addComponent(jtfBanco))\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jtfPension, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(jtfCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtfCargo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jtfSalud, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jtfApellido, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jtfIdentificacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jtfApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jtfPension, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(jtfSalud, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jtfSalario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel5))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtfCargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jtfBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9)\n .addComponent(jtfCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbtRegistrar)\n .addComponent(jbtActualizar)\n .addComponent(jbnLimpiar))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)\n .addContainerGap())\n );\n }",
"private void IniciarTabla(){\n \n // limpia los datos de los Label y los datos relacionados a la actualizacion de los datos e inhabilita y habilitar botones\nthis.jLabelId.setText(\"Id\");\nthis.jnombre.setText(\"\");\ngrabarCambios.setEnabled(false);\njBotonAgregar.setEnabled(true);\n\n DefaultTableModel dfm = new DefaultTableModel();\n tabla = this.jTabla;\n tabla.setModel(dfm);\n \n // agrega los datos al index de la tabla \n dfm.setColumnIdentifiers(new Object[]{\"id\",\"Comuna\",\"Estado\"});\n Conexion cn = new Conexion();\n rs = cn.SeleccionarTodosComunas();\n try{\n // se recorre rs donde estan los resultados de la busqueda de los datos de la tabla comuna\n while(rs.next()){\n String activo =\"\";\n if (rs.getInt(\"COM_ESTADO\")==1) {\n activo = \"activo\";\n } else {\n activo = \"no activo\";};\n // se agrega la fila con los datos de la columna \n dfm.addRow(new Object[]{rs.getInt(\"COM_ID\"),rs.getString(\"COM_NOMBRE\"),activo});\n }\n \n } catch(Exception e){\n System.out.println(\"Error Revisar funcion TableModel\" + e);\n }\n }",
"public TblActividadUbicacion() {\r\n }",
"public CadastroDeEmpresa() {\n initComponents();\n preencherTabela(\"select * from empresa order by id\");\n }",
"public Producto_Insertar() {\n initComponents();\n this.setLocationRelativeTo(null);\n setResizable(false);\n actualizarJTabale();\n }",
"public void addAppareil(Capteur capt) {\n Log.v(Constante.TAG, \"Fonction appelée -> addAppareil\");\n\n SQLiteDatabase db = this.getWritableDatabase();\n //Log.v(\"TEST\", \"SQLITE\");\n\n ContentValues values = new ContentValues();\n values.put(KEY_IDc, capt.getIdc());\n values.put(KEY_DESCRIPTION, capt.getNom());\n //values.put(KEY_ETATr, capt.getId());\n values.put(KEY_ETATd, capt.getEtat());\n //values.put(KEY_DEMANDE_TRAITEE, capt.getId());\n //values.put(KEY_PUISSc, capt.getId());\n values.put(KEY_PUISSa, capt.getConso());\n // Inserting Row\n db.insert(TABLE_LOGIN, null, values);\n //db.close(); // Closing database connection\n }",
"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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabelMatricula = new javax.swing.JLabel();\n jTextFieldAtividadesMatricula = new javax.swing.JTextField();\n jLabelNome = new javax.swing.JLabel();\n jTextFieldAtividadesNome = new javax.swing.JTextField();\n jComboBoxAtividadesTipo = new javax.swing.JComboBox<>();\n jLabelData = new javax.swing.JLabel();\n jLabelTipo = new javax.swing.JLabel();\n jTextFieldAtividadesData = new javax.swing.JFormattedTextField();\n jLabelLocal = new javax.swing.JLabel();\n jTextFieldAtividadesLocal = new javax.swing.JTextField();\n jLabelDescricao = new javax.swing.JLabel();\n jButtonAtividadesInserir = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaAtividadesDescricao = new javax.swing.JTextArea();\n jButtonLimpar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Inserir Atividades\");\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameActivated(evt);\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameOpened(evt);\n }\n });\n\n jLabelMatricula.setText(\"Matrícula:*\");\n\n jLabelNome.setText(\"Nome:*\");\n\n jComboBoxAtividadesTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecione\", \"Lazer\", \"Trabalho\", \"Escola\", \"Faculdade\", \"Física\" }));\n jComboBoxAtividadesTipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxAtividadesTipoActionPerformed(evt);\n }\n });\n\n jLabelData.setText(\"Data:*\");\n\n jLabelTipo.setText(\"Tipo: *\");\n\n try {\n jTextFieldAtividadesData.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabelLocal.setText(\"Local:*\");\n\n jLabelDescricao.setText(\"Descrição:\");\n\n jButtonAtividadesInserir.setText(\"Inserir\");\n jButtonAtividadesInserir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAtividadesInserirActionPerformed(evt);\n }\n });\n\n jTextAreaAtividadesDescricao.setColumns(20);\n jTextAreaAtividadesDescricao.setRows(5);\n jScrollPane1.setViewportView(jTextAreaAtividadesDescricao);\n\n jButtonLimpar.setText(\"Limpar\");\n jButtonLimpar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonLimparActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelMatricula)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabelNome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesNome))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonAtividadesInserir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonLimpar))\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelTipo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelData)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelLocal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldAtividadesNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNome))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMatricula)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelData)\n .addComponent(jLabelTipo)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelLocal)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAtividadesInserir)\n .addComponent(jButtonLimpar))\n .addGap(1, 1, 1))\n );\n\n pack();\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public void entregarVehiculo(Modelo modeloAAdjudicar) {\n\t\t\n\t}",
"public ControleVendas() {\n initComponents();\n DefaultTableModel modelo = (DefaultTableModel) tabelaVendas.getModel();\n tabelaVendas.setRowSorter(new TableRowSorter(modelo));\n atualizarTabela();\n }",
"private void createTableGuide(){\r\n //Se crean y definen las columnas de la Tabla\r\n TableColumn col_orden = new TableColumn(\"#\"); \r\n TableColumn col_guide = new TableColumn(\"Guia\");\r\n TableColumn stat_guia = new TableColumn(\"S\");\r\n \r\n //Se establece el ancho de cada columna\r\n this.objectWidth(col_orden , 26, 26); \r\n this.objectWidth(col_guide , 50, 50); \r\n this.objectWidth(stat_guia , 18, 18);\r\n\r\n col_guide.setCellFactory(TextFieldTableCell.forTableColumn()); \r\n\r\n stat_guia.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<log_Guide_rel_inv, Object>() {\r\n @Override\r\n public void updateItem(Object item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n ret = getItem().toString();\r\n\r\n setTextFill(isSelected() ? Color.WHITE :\r\n ret.equals(\"A\") ? Color.RED : \r\n ret.equals(\"P\") ? Color.GREEN : Color.BLUE);\r\n } else {\r\n ret = \"\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n //Se define la columna de la tabla con el nombre del atributo del objeto USUARIO correspondiente\r\n col_orden.setCellValueFactory( \r\n new PropertyValueFactory<>(\"numorden\") );\r\n col_guide.setCellValueFactory( \r\n new PropertyValueFactory<>(\"guias\") );\r\n stat_guia.setCellValueFactory( \r\n new PropertyValueFactory<>(\"stat_guia\") );\r\n \r\n //Se Asigna ordenadamente las columnas de la tabla\r\n tb_guias.getColumns().addAll(\r\n col_orden, col_guide, stat_guia\r\n ); \r\n \r\n //Se Asigna menu contextual \r\n tb_guias.setRowFactory((TableView<xy> tableView) -> {\r\n final TableRow<xy> row = new TableRow<>();\r\n final ContextMenu contextMenu = new ContextMenu();\r\n final MenuItem removeMenuItem = new MenuItem(\"Quitar de la Relación\");\r\n\r\n contextMenu.getItems().add(removeMenuItem);\r\n removeMenuItem.setOnAction((ActionEvent event) -> {\r\n switch (tipoOperacion){\r\n case 1:\r\n numFactCarga = numFactCarga - tb_guias.getItems().get(row.getIndex()).getNumfact();\r\n numClieCarga = numClieCarga - tb_guias.getItems().get(row.getIndex()).getNumclie();\r\n\r\n //tb_guias.getItems().remove(row.getItem());\r\n tb_guias.getItems().remove(tb_guias.getSelectionModel().getSelectedIndex());\r\n break;\r\n case 2:\r\n if ((tb_guias.getItems().get(tb_guias.getSelectionModel().getSelectedIndex()).getStat_guia() == null)){\r\n tb_guias.getItems().get(tb_guias.getSelectionModel().getSelectedIndex()).setStat_guia(\"A\");\r\n stat_guia.setVisible(false);\r\n stat_guia.setVisible(true);\r\n }\r\n break;\r\n }\r\n });\r\n\r\n // Set context menu on row, but use a binding to make it only show for non-empty rows:\r\n row.contextMenuProperty().bind(\r\n Bindings.when(row.emptyProperty())\r\n .then((ContextMenu)null)\r\n .otherwise(contextMenu)\r\n );\r\n return row ; \r\n });\r\n \r\n //Se define el comportamiento de las teclas ARRIBA y ABAJO en la tabla\r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //Si fue presionado la tecla ARRIBA o ABAJO\r\n if (ke.getCode().equals(KeyCode.UP) || ke.getCode().equals(KeyCode.DOWN)){ \r\n //Selecciona la FILA enfocada\r\n selectedRowGuide();\r\n }\r\n }\r\n };\r\n //Se Asigna el comportamiento para que se ejecute cuando se suelta una tecla\r\n tb_guias.setOnKeyReleased(eh); \r\n\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabela = new javax.swing.JTable();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n tfModelo = new javax.swing.JTextField();\n tfCor = new javax.swing.JTextField();\n tfValor = new javax.swing.JTextField();\n cbMarca = new javax.swing.JComboBox<>();\n btSalvar = new javax.swing.JButton();\n btDeletar = new javax.swing.JButton();\n btVoltar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n tfAno = new javax.swing.JTextField();\n btAddMarca = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Concesionaria Karchow - Cadastro de Carro\");\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n formMouseMoved(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n jLabel1.setText(\"Concesionaria Katchow\");\n\n jLabel2.setText(\"Cadastro de Carro\");\n\n tabela.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Codigo\", \"Descricao\", \"Cor\", \"Valor\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tabela.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jScrollPane1.setViewportView(tabela);\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n jLabel3.setText(\"Carros cadastrados\");\n\n jLabel4.setText(\"NOVO CARRO\");\n\n jLabel5.setText(\"Modelo\");\n\n jLabel6.setText(\"Cor\");\n\n jLabel7.setText(\"Marca\");\n\n jLabel8.setText(\"Valor\");\n\n cbMarca.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cbMarca.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbMarcaActionPerformed(evt);\n }\n });\n\n btSalvar.setText(\"Salvar ✔\");\n btSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btSalvarActionPerformed(evt);\n }\n });\n\n btDeletar.setText(\"Deletar ✖\");\n btDeletar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btDeletarActionPerformed(evt);\n }\n });\n\n btVoltar.setText(\"↩\");\n btVoltar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btVoltarActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Ano\");\n\n btAddMarca.setText(\"Adicionar Marca\");\n btAddMarca.setToolTipText(\"Adiciona uma nova Marca para Carros\");\n btAddMarca.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btAddMarcaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addGap(0, 216, Short.MAX_VALUE))\n .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tfModelo)\n .addComponent(cbMarca, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tfCor)\n .addComponent(tfValor)\n .addComponent(btSalvar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tfAno)\n .addComponent(btDeletar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btAddMarca, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(18, 18, 18))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btVoltar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 405, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 427, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 399, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(tfCor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(cbMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(tfValor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(tfAno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btSalvar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btDeletar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btAddMarca)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btVoltar)))))\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public Agregar_Alumnos(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(parent);\n c.conectar();\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n mAlumno = new Alumno(\"\", Alumno.DEFAULT_EDAD);\n // Se obtienen e inicializan las vistas.\n initVistas();\n }",
"public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }",
"private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }"
]
| [
"0.6455663",
"0.6391322",
"0.6318371",
"0.6271239",
"0.6241207",
"0.61530113",
"0.60419154",
"0.6034182",
"0.60077584",
"0.59945923",
"0.5990414",
"0.59236956",
"0.5923182",
"0.591916",
"0.5888955",
"0.58498603",
"0.5797535",
"0.57353723",
"0.5660679",
"0.56451446",
"0.5642973",
"0.56057495",
"0.5584149",
"0.5561353",
"0.55510235",
"0.55451095",
"0.55447334",
"0.55279815",
"0.5525532",
"0.55173105",
"0.54768294",
"0.54731554",
"0.54521894",
"0.5448853",
"0.543066",
"0.5426665",
"0.5421902",
"0.54178035",
"0.5415003",
"0.53947055",
"0.53873396",
"0.53849417",
"0.5380316",
"0.53750736",
"0.53504074",
"0.534602",
"0.5328852",
"0.53159434",
"0.53019464",
"0.52956194",
"0.52955514",
"0.5293711",
"0.5285269",
"0.528426",
"0.5280066",
"0.52793944",
"0.52773094",
"0.5265227",
"0.5259222",
"0.5243249",
"0.5242706",
"0.52275103",
"0.52257514",
"0.522",
"0.5219183",
"0.5212288",
"0.52103394",
"0.5207227",
"0.52069235",
"0.5205333",
"0.52042705",
"0.5202852",
"0.52014655",
"0.5197762",
"0.5182077",
"0.5171233",
"0.5170261",
"0.51695603",
"0.5167707",
"0.5158776",
"0.51583874",
"0.5158357",
"0.5156972",
"0.515534",
"0.51529634",
"0.51511556",
"0.5148877",
"0.51474386",
"0.5140197",
"0.51399064",
"0.51386714",
"0.5137454",
"0.5135898",
"0.5132916",
"0.5127734",
"0.5126012",
"0.5115714",
"0.51127875",
"0.51099855",
"0.510895",
"0.510625"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane3 = new javax.swing.JScrollPane();
tblPersonas = new javax.swing.JTable();
btnGuardar = new javax.swing.JButton();
btnCancelar = new javax.swing.JButton();
lblLista = new javax.swing.JLabel();
btnInscribir = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
lblPersona = new javax.swing.JLabel();
cmbPersona = new javax.swing.JComboBox();
cmbAsignatura = new javax.swing.JComboBox();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setAlwaysOnTop(true);
tblPersonas.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null},
{null, null, null},
{null, null, null},
{null, null, null}
},
new String [] {
"alumno", "asignatura", "maestro"
}
) {
boolean[] canEdit = new boolean [] {
false, false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jScrollPane3.setViewportView(tblPersonas);
btnGuardar.setText("Guardar y salir");
btnCancelar.setText("Cancelar");
lblLista.setText("Alumnos Inscritos");
btnInscribir.setText("Inscribir alumno ");
jLabel2.setText("Seleccione una asignatura:");
lblPersona.setText("Seleccione un alumno:");
cmbPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
cmbAsignatura.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane3)
.addGroup(layout.createSequentialGroup()
.addComponent(lblLista, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(lblPersona)
.addComponent(cmbPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 306, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(cmbAsignatura, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnInscribir, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(0, 0, Short.MAX_VALUE))))))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(lblPersona)
.addComponent(jLabel2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(cmbPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(cmbAsignatura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(btnInscribir))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btnGuardar)
.addComponent(btnCancelar))
.addGap(15, 15, 15)
.addComponent(lblLista)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"0.6944929",
"0.6942576",
"0.69355655",
"0.6931378",
"0.6927896",
"0.69248974",
"0.6924723",
"0.69116884",
"0.6910487",
"0.6892381",
"0.68921053",
"0.6890637",
"0.68896896",
"0.68881863",
"0.68826133",
"0.68815064",
"0.6881078",
"0.68771756",
"0.6875212",
"0.68744373",
"0.68711984",
"0.6858978",
"0.68558776",
"0.6855172",
"0.6854685",
"0.685434",
"0.68525875",
"0.6851834",
"0.6851834",
"0.684266",
"0.6836586",
"0.6836431",
"0.6828333",
"0.68276715",
"0.68262815",
"0.6823921",
"0.682295",
"0.68167603",
"0.68164384",
"0.6809564",
"0.68086857",
"0.6807804",
"0.6807734",
"0.68067646",
"0.6802192",
"0.67943805",
"0.67934304",
"0.6791657",
"0.6789546",
"0.6789006",
"0.67878324",
"0.67877173",
"0.6781847",
"0.6765398",
"0.6765197",
"0.6764246",
"0.6756036",
"0.6755023",
"0.6751404",
"0.67508715",
"0.6743043",
"0.67387456",
"0.6736752",
"0.67356426",
"0.6732893",
"0.6726715",
"0.6726464",
"0.67196447",
"0.67157453",
"0.6714399",
"0.67140275",
"0.6708251",
"0.6707117",
"0.670393",
"0.6700697",
"0.66995865",
"0.66989213",
"0.6697588",
"0.66939527",
"0.66908985",
"0.668935"
]
| 0.0 | -1 |
Map is an interface it accepts two object reference of any type it is in key/value format key MUST be unique value can be duplicated id, names | public static void main(String[] args) {
Map<Integer,String> map = new HashMap<>();
map.put(1, "Nancy");
map.put(2, "Mariam");
map.put(1, "Heaven");
// in case of duplicated key, the value will get updated So it will print 1=Heaven for lines 13 and 15
map.put(100, "Ramy"); //(key is not only numerical it can be any type)
System.out.println(map.get(2)); // it accepts the key and return the value of this key // "Mariam"
System.out.println(map);
System.out.println(map.get(50)); // it will return null as there is no key 50
//map.remove(1); // it removed the whole entry (key+value)
System.out.println(map.containsKey(2)); // true
System.out.println(map.containsValue("Nancy")); // false
for( Integer each: map.keySet()){
System.out.println(each + " - " + map.get(each));
// to get a certain key if we know only the value
if(map.get(each).equals("Heaven")){
System.out.println("This is our key " + each);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Map<String, Serializable> getEventKeyAndIdMap();",
"public interface Map<K,V> {\n\n int size();\n\n boolean isEmpty();\n\n boolean containsKey(Object key);\n\n boolean containsValue(Object value);\n\n V get(Object key);\n\n V put(K key, V value);\n\n void putAll(Map<? extends K, ? extends V > m);\n\n void clear();\n\n //views\n Set<K> keySet();\n\n Collection<V> values();\n\n Set<Map.Entry<K,V>> entrySet();\n\n interface Entry<K,V>{\n K getKey();\n\n V getValue();\n\n V setValue(V value);\n\n boolean equals(Object o);\n\n int hashCode();\n\n }\n\n boolean equals(Object o);\n\n int hashCode();\n\n}",
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\tMap<Integer,Employee> map = new HashMap<Integer, Employee>();\n\t\tMap<String, Employee> hashMap = new HashMap();\n\t\tMap<Employee, Integer> hashMap1 = new HashMap();\n\t\tfor (int i =1; i<=10; i++){\n\t\t\t\n\t\t\tmap.put(i, new Employee(i+3, \"Manish\"+(i+3)));\n\t\t}\n\t\tSystem.out.println(map);\n\t\t\n\t\tEmployee emp1 = new Employee(4, \"Manish3\");\n\t\t//Use of Contains\n\t\tSystem.out.println(map.containsValue(emp1)); \n\t\t\n\t\t//Key Set\n\t\tSystem.out.println(map.keySet());\n\t\t\n\t\t//retrieve entry set\n\t\tSystem.out.println(map.entrySet());\n\t\t\n\t\t//map.forEach(action);; TO DO- need to understand this method\n\t\t\n\n\t\t//Returns in sorted order when Key is natural (permitives or String or Enum)\n\t\thashMap.put(\"A\", new Employee(1, \"Manish\"));\n\t\thashMap.put(\"C\", new Employee(3, \"Gaurav\"));\n\t\thashMap.put(\"B\", new Employee(2, \"Vinay\"));\n\t\tSystem.out.println(hashMap);\n\t\t\n\t\t//maintains insertion order when key is Object type(dont have any natural order)\n\t\thashMap1.put(new Employee(1, \"Manish\"),1);\n\t\thashMap1.put(new Employee(3, \"Gaurav\"),3);\n\t\thashMap1.put(new Employee(2, \"Vinay\"),2);\n\t\tSystem.out.println(hashMap1);\n\t\tHashMap<Long, String> masterRoomPoolMapping = new HashMap<Long, String>();\n\t\tmasterRoomPoolMapping.put(new Long(123), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(124), \"Manish\");\n\t\tmasterRoomPoolMapping.put(new Long(125), \"Manish\");\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSet<Long> keySet = masterRoomPoolMapping.keySet();\n\t\tSet<Long> newKeySet = new HashSet<Long>();\n\t\tfor(Long key : keySet){\n\t\t\tnewKeySet.add(new Long(key));\n\t\t}\n\t\tSystem.out.println(\"newKeySet***************************************************\");\n\t\tif(newKeySet.contains(new Long(123)))\n\t\t\tnewKeySet.remove(new Long(123));\n\t\tfor(Long key : newKeySet){\n\t\t\tSystem.out.println(key);\n\t\t}\n\t\tSystem.out.println(\"keySet1***************************************************\");\n\t\tSet<Long> keySet1 = masterRoomPoolMapping.keySet();\n\t\tfor(Long key : keySet1){\n\t\t\tSystem.out.println(masterRoomPoolMapping.get(key));\n\t\t}\n\t\tSystem.out.println(\"***************************************************\");\n\t\tSystem.out.println(masterRoomPoolMapping);\n\t}",
"public interface Map<K, V>\n{\n // Adds the specified key-value pair to the map. Does nothing if the key already\n // exists in the map.\n void add(K key, V value);\n\n // Returns the value associated with the specified key, or null of that key doesn't\n // exist in the map\n V get(K key);\n\t\n // Removes the key-value pair with the specified key from the map. Does nothing if\n // the key doesn't exist in the map.\n void remove(K key);\n}",
"public interface EntityId {\r\n\r\n public static EntityId of(String entityName) {\r\n return Seid.of(entityName);\r\n }\r\n\r\n public static EntityId of(String propName, Object propValue) {\r\n return Seid.of(propName, propValue);\r\n }\r\n\r\n public static EntityId of(String propName1, Object propValue1, String propName2, Object propValue2) {\r\n return Seid.of(propName1, propValue1, propName2, propValue2);\r\n }\r\n\r\n public static EntityId of(String propName1, Object propValue1, String propName2, Object propValue2, String propName3, Object propValue3) {\r\n return Seid.of(propName1, propValue1, propName2, propValue2, propName3, propValue3);\r\n }\r\n\r\n public static EntityId of(Map<String, Object> nameValues) {\r\n return Seid.of(nameValues);\r\n }\r\n\r\n /**\r\n * Method entityName.\r\n * \r\n * @return String\r\n */\r\n String entityName();\r\n\r\n /**\r\n * Method get.\r\n * \r\n * @param propName\r\n * @return T\r\n * @throws NullPonterException\r\n * if the property is null and {@code T} is primitive type.\r\n */\r\n <T> T get(String propName);\r\n\r\n /**\r\n * Method get.\r\n * \r\n * @param clazz\r\n * @param propName\r\n * @return T\r\n */\r\n <T> T get(Class<T> clazz, String propName);\r\n\r\n /**\r\n * Method set.\r\n * \r\n * @param propName\r\n * @param propValue\r\n * @return\r\n */\r\n EntityId set(String propName, Object propValue);\r\n\r\n /**\r\n * \r\n * @param nameValues\r\n */\r\n void set(Map<String, Object> nameValues);\r\n\r\n /**\r\n * Method remove.\r\n * \r\n * @param propName\r\n * @return\r\n */\r\n Object remove(String propName);\r\n\r\n /**\r\n * \r\n * @param propNames\r\n */\r\n void removeAll(Collection<String> propNames);\r\n\r\n /**\r\n * \r\n * @param containsKey\r\n * @return\r\n */\r\n boolean containsKey(String propName);\r\n\r\n /**\r\n * Method keySet.\r\n * \r\n * @return Set<String>\r\n */\r\n Set<String> keySet();\r\n\r\n /**\r\n * \r\n * @return\r\n */\r\n Set<Map.Entry<String, Object>> entrySet();\r\n\r\n int size();\r\n\r\n /**\r\n * \r\n * @return\r\n */\r\n boolean isEmpty();\r\n\r\n /**\r\n */\r\n void clear();\r\n\r\n /**\r\n * \r\n * @return EntityId\r\n */\r\n EntityId copy();\r\n}",
"public interface IMyMap<Key,Value> {\n\n Value getValue(Key key);\n void put(Key key, Value value);\n int size();\n\n\n}",
"abstract Map<String, Integer> mapOfNamesToSalary();",
"public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}",
"public interface Map<K,T> {\n\t/**\n\t * Puts a value <code>elem</code> associated with the <code>key</code>\n\t * @param key The key associated to the value\n\t * @param elem The value to store\n\t */\n\tpublic void put(K key, T elem);\n\t\n\t/**\n\t * Returns the corresponding element associated to the <code>key</code>\n\t * @param key The key identifying an element\n\t * @return The element associated to the <code>key</code>. If there is no such element, returns null\n\t */\n\tpublic T get(K key);\n\t\n\t/**\n\t * Returns the number of elements in the map\n\t * @return the number of elements in the map\n\t */\n\tpublic int size();\n\t\n\t/**\n\t * Returns a collection of the keys in the map.\n\t * @return a collection of the keys in the map\n\t */\n\tpublic List<K> keys();\n\t\n\t/**\n\t * Returns a collection of the values in the map.\n\t * @return a collection of the values in the map.\n\t */\n\tpublic List<T> values();\n\n\t/**\n\t * Removes the element correspondong to the <code>key</code> from the map\n\t * @param key\n\t */\n public void remove(K key);\n}",
"@Test\n\tpublic void testIdentityHashMap() {\n\t\tInteger i1 = new Integer(10);\n\t\tInteger i2 = new Integer(10);\n\n\t\tHashMap m = new HashMap();\n\t\tm.put(i1, \"evyaan\");\n\t\tm.put(i2, \"varun\");\n\n\t\tassertEquals(\"{10=varun}\", m.toString());\n\n\t\tIdentityHashMap im = new IdentityHashMap();\n\t\tim.put(i1, \"evyaan\");\n\t\tim.put(i2, \"varun\");\n\n\t\t// System.out.println(im);\n\n\t}",
"public interface MapObjectType {\n}",
"Map<String, String> mo14888a();",
"MAP createMAP();",
"public interface ComplexKeyMap<K, V> extends Map<K, V> {\n\n}",
"public interface MultiMap extends Map {\n /**\n * Returns the set associated with the given key. If the key is not \n * in the map, returns an empty set. The set returned is modifiable and \n * backed by this multi-map: if values are added for the given key, \n * they will show up in the returned set. However, the returned set may \n * lose its connection to this multi-map if the multi-map's \n * <code>put</code> method is called or if all the values for the \n * given key are removed. \n */\n Object get(Object key);\n\n /**\n * Associates the given key with the given value, which must be a Set. \n * If the given set is empty, the key is removed from the map. \n *\n * @return the set previously associated with this key, or an empty \n * set if the key was not in the map\n *\n * @throws IllegalArgumentException if <code>value</code> is not a Set\n */\n Object put(Object key, Object value);\n\n /**\n * Adds the given value to the set associated with the given key. \n * If the key is not yet in the map, it is added.\n *\n * @return true if the MultiMap changed as a result of this call\n */\n boolean add(Object key, Object value);\n\n /**\n * Adds all elements of the given set to the set associated with the \n * given key. If the key is not yet in the map, it is added.\n *\n * @return true if the MultiMap changed as a result of this call\n */\n boolean addAll(Object key, Set values);\n\n /**\n * Removes the given value from the set associated with the given key. \n * Does nothing if the value is not in that set. If the set ends up \n * being empty, then the key is removed from the map.\n *\n * @return true if the MultiMap changed as a result of this call\n */\n boolean remove(Object key, Object value);\n\n /**\n * Removes all elements of the given set from the set associated with \n * the given key. If the associated set ends up being empty, then the \n * key is removed from the map. \n *\n * @return true if the MultiMap changed as a result of this call\n */\n boolean removeAll(Object key, Set values);\n\n static class EmptyMultiMap extends AbstractMap \n\t implements MultiMap {\n\tpublic Object get(Object key) {\n\t return Collections.EMPTY_SET;\n\t}\n\t\n\tpublic boolean add(Object key, Object value) {\n\t throw new UnsupportedOperationException();\n\t}\n\t\n\tpublic boolean addAll(Object key, Set values) {\n\t throw new UnsupportedOperationException();\n\t}\n\n\tpublic boolean remove(Object key, Object value) {\n\t throw new UnsupportedOperationException();\n\t}\n\n\tpublic boolean removeAll(Object key, Set values) {\n\t throw new UnsupportedOperationException();\n\t}\n\n\tpublic Set entrySet() {\n\t return Collections.EMPTY_SET;\n\t}\n }\n\n /**\n * An unmodifiable multi-map that maps all keys to the empty set.\n */\n public static final MultiMap EMPTY_MULTI_MAP = new EmptyMultiMap();\n}",
"public abstract void setData(Map<ID, T> data);",
"private Map<String, String> m15124a(Map<String, String> map) {\n String str;\n String str2;\n HashMap hashMap = new HashMap();\n if (map != null) {\n for (Entry entry : map.entrySet()) {\n Object key = entry.getKey();\n Object value = entry.getValue();\n if (!(key instanceof String) || !(value instanceof String)) {\n C7262l b = this.f13489a.mo23049b();\n StringBuilder sb = new StringBuilder();\n sb.append(\"Unexpected class type in trackEvent(); all keys and values passed as parameters must be String. Encountered \");\n sb.append(key.getClass().getCanonicalName());\n sb.append(\"/\");\n sb.append(value.getClass().getCanonicalName());\n sb.append(\"; will use toString() value instead, which may be unexpected...\");\n b.mo22913a(\"EventServiceImpl\", sb.toString());\n str = key.toString();\n str2 = value.toString();\n } else {\n str = (String) key;\n str2 = (String) value;\n }\n hashMap.put(str, str2);\n }\n }\n return hashMap;\n }",
"@Test\n public void whenAddTwoUsersWithTheSameNameAndBirthdayToHashMapThenGetOneElementAdded() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", birthday);\n\n Map<User, String> map = new HashMap<>();\n map.put(john, \"John Snow 1\");\n map.put(snow, \"John Snow 2\");\n System.out.println(map);\n\n assertThat(\"Map has two values.\", map.size(), is(1));\n }",
"@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n private static <T extends AbstractApiIdentifiableDTO> Map<Long, T> generateIdMap(List<T> idList) {\n Map<Long, T> results = new HashMap<>(idList.size());\n\n for (T idSingle : idList) {\n results.put(idSingle.getId(), idSingle);\n }\n\n return results;\n }",
"@Ignore\n @Test\n public void whenAddTwoUsersWithTheSameNameAndBirthdayToHashMapThenGetTwoElementsAdded() {\n Calendar birthday = Calendar.getInstance();\n birthday.set(1001, 12, 21);\n User john = new User(\"John Snow\", birthday);\n User snow = new User(\"John Snow\", birthday);\n\n Map<User, String> map = new HashMap<>();\n map.put(john, \"John Snow\");\n map.put(snow, \"John Snow\");\n System.out.println(map);\n\n assertThat(\"Map has two values.\", map.size(), is(2));\n }",
"public void createIDMap()\n {\n IDMap = new HashMap<>();\n idFile.open(\"idpassword.txt\");\n String line = idFile.getNextLine();\n\n\n\n while(line!=null) {\n String[] fields = line.split(\",\");\n IDMap.put(fields[0], fields[1]);\n\n line = idFile.getNextLine();\n\n }\n\n }",
"@SuppressWarnings(\"unchecked\")\n private static <T> Map<String, T> mapOf(Object... inputs) {\n Map<String, T> map = new HashMap<>();\n for (int i = 0; i < inputs.length; i += 2) {\n String key = (String) inputs[i];\n T value = (T) inputs[i + 1];\n map.put(key, value);\n }\n return map;\n }",
"public abstract void createMap();",
"public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }",
"private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}",
"public interface Map<K, V> {\n /** Returns the number of entries in the map. */\n public int size();\n\n /** Returns whether the map is empty or not. */\n public boolean isEmpty();\n\n /**\n * Puts a given key and value pair into the map, replaces the previous\n * one, if exits. And returns the old value, if exits, otherwise returns\n * null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V put(K key, V value) throws InvalidKeyException;\n\n /**\n * Gets the value by given key.\n * If the key cannot be found, return null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V get(K key) throws InvalidKeyException;\n\n /**\n * Removes the key-value pair by given key.\n * Returns the value if found the key, otherwise return null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V remove(K key) throws InvalidKeyException;\n\n /**\n * Returns iterable object containing all the keys in the map.\n */\n public Iterable<K> keys();\n\n /**\n * Returns iterable object containing all the values in the map.\n */\n public Iterable<V> values();\n\n /**\n * Returns iterable object containing all the entries in the map.\n */\n public Iterable<Entry<K, V>> entries();\n}",
"private static Map<String,List<Integer>> getProvisionIdMapStream(Map<String,List<Integer>> nameMapIdMap,Map<String,Integer> mapIdProbIdMap){\n return null;\n }",
"<K extends Object, V extends Object> Map<K, V> getMap(String mapName);",
"@Test\n public void test() throws IOException {\n mapper.insertFile(new HashMap<String,Object>(){\n {put(\"fileName\",\"黑侠\");}\n });\n// List<Map<String, Object>> byId = mapper.findById(14L);\n\n\n }",
"public static void test2(Map<Object,Object> map) \n\t{\n\t\tprint(map.getClass().getSimpleName()+\"~~~~~~~~~~~~\");\n\t\tmap.putAll(new CountingMapData(25));\n\t\t// Map has 'Set' behavior for keys:\n\t\tmap.putAll(new CountingMapData(25));\n\t\tprintKeys2(map);\n\t\t// Producing a collection of the values:\n\t\tprintnb(\"Values: \");\n\t\tprint(map.values());\n\t\tprint(map);\n\t\tprint(\"map.containsKey(11): \" + map.containsKey(11));\n\t\tprint(\"map.get(11): \" + map.get(11));\n\t\tprint(\"map.containsValue(\\\"F0\\\"): \" + map.containsValue(\"F0\"));\n\t\tObject key = map.keySet().iterator().next();\n\t\tprint(\"First key in map: \" + key);\n\t\tmap.remove(key);\n\t\tprintKeys2(map);\n\t\tmap.clear();\n\t\tprint(\"map.isEmpty(): \" + map.isEmpty());\n\t\tmap.putAll(new CountingMapData(25));\n\t\t// Operations on the Set change the Map:\n\t\tmap.keySet().removeAll(map.keySet());\n\t\tprint(\"map.isEmpty(): \" + map.isEmpty());\n\t}",
"public Object map(String key, Object input);",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"@Override\n public void record2Map(final Map<String, Integer> map) {\n }",
"public static void main(String[] args) \r\n {\n TreeMap<Employee, Integer> hashMap = new TreeMap<Employee, Integer>(); \r\n \r\n // Mapping string values to int keys \r\n hashMap.put(new Employee(10,\"uday\"), 10); \r\n hashMap.put(new Employee(11,\"uday\"), 11); \r\n hashMap.put(new Employee(12,\"uday\"), 12); \r\n hashMap.put(new Employee(13,\"uday\"), 13); \r\n \r\n for (Entry<Employee, Integer> e : hashMap.entrySet()) \r\n System.out.println(e.getKey().toString() + \" \" + e.getValue()); \r\n \r\n HashMap<String, Integer> map = new HashMap<>(); \r\n \r\n }",
"void setHashMap();",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}",
"void setMap(Map aMap);",
"private static <T extends AbstractApiIdentifiableDTO> Map<Long, List<T>> generateIdMapList(List<T> idList) {\n Map<Long, List<T>> results = new HashMap<>();\n\n for (T idSingle : idList) {\n Long sourceId = idSingle.getId();\n if (results.containsKey(sourceId)) {\n results.get(sourceId).add(idSingle);\n } else {\n // ID didn't exist so add a new list\n List<T> list = new ArrayList<>(1);\n list.add(idSingle);\n results.put(sourceId, list);\n }\n }\n\n return results;\n }",
"static Map instanceOfMap(int typeMap)\n {\n if(instanceOfMap==null)\n instanceOfMap = new Map(typeMap);\n return instanceOfMap;\n }",
"private Set<String> getNames(Map<String, String> map) {\r\n\t\tSet<String> set = new HashSet<>();\r\n\t\t\r\n\t\tmap.forEach((k,v) -> set.add(k));\r\n\t\t\r\n\t\treturn Collections.unmodifiableSet(set);\r\n\t}",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"public static Subject updateWithMap(HashMap<String, String> map) {\n if (map.containsKey(MAP_ITEM_ID)) {\n Subject subject = SubjectManipulator.createItem(map);\n SubjectManipulator.update(subject);\n return subject;\n } else if (map.containsKey(MAP_CUSTOMER_ID)) {\n Subject subject = SubjectManipulator.createCustomer(map);\n SubjectManipulator.update(subject);\n return subject;\n } else if (map.containsKey(MAP_CATEGORY_ID)) {\n Subject subject = SubjectManipulator.createCategory(map);\n SubjectManipulator.update(subject);\n return subject;\n } else {\n LOGGER.warning(\"The map you gave was not valid, please make sure you haven't edited the map_id fields.\");\n return null;\n }\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"public interface IgetCKXX {\n public Map<String,String> getCKXX(String idnum);\n}",
"public static void main(String[] args) {\n\t\tMap<String, List<String>> map = new HashMap<>();\n\t\tList<String> list = new ArrayList<>();\n\t\tmap.put(\"key1\", list);\n\t\tmap.get(\"key1\").add(\"value1\");\n\t\tmap.get(\"key1\").add(\"value2\");\n\t\t\n\n\t\t//(map.get(\"key1\").get(0)).isEqualTo(\"value1\");\n\t\t//(map.get(\"key1\").get(1)).isEqualTo(\"value2\");\n\t\t\n\t\tMap<String, String> map1 = Stream.of(new String[][] {\n\t\t\t { \"Hello\", \"World\" }, \n\t\t\t { \"John\", \"Doe\" }, \n\t\t\t}).collect(Collectors.toMap(data -> data[0], data -> data[1])); \n\t\t//Notice here the data type of key and value of the Map is same.\n\t\t//In order to make it more generic letís take the array of Objects and perform the same operation:\n\t\tMap<String, Integer> map2 = Stream.of(new Object[][] { \n\t\t { \"data1\", 1 }, \n\t\t { \"data2\", 2 }, \n\t\t}).collect(Collectors.toMap(data -> (String) data[0], data -> (Integer) data[1]));\n\t\t//Here, we create a map of the key as String and value as an Integer.\n\t}",
"public static void main(String[] args) {\n\t\tInteger u=new Integer(10);\n\t\tInteger u1=new Integer(10);\n\t\tIdentityHashMap<Integer,String> g=new IdentityHashMap();\n\t\tg.put(u, \"dhdanas\");\n;\n\t\tg.put(u1,\"dtttt\");\n\t\t\nSystem.out.println(g);\n}",
"private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\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 interface MATSimDataProvider {\r\n\tpublic Map<Id, ?> getMATSimData();\r\n}",
"public static void main(String[] args) {\n\t\tHashMap<Integer, Movil> moviles = new HashMap<Integer, Movil>();\r\n\t\t\r\n\t\t/*\r\n\t\t//Utilizando \"var\" como en C#\r\n\t\tvar movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tvar movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tvar movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\t\t*/\r\n\t\tMovil movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tMovil movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tMovil movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\r\n\t\tMovil movilBusqueda = new Movil(232, 6, \"Apple\", 4);\r\n\t\t\r\n\t\t//Añadimos los elementos a la colección\r\n\t\t/*\r\n\t\tmoviles.put(111, movilJuan);\r\n\t\tmoviles.put(232, movilMaria);\r\n\t\tmoviles.put(955, movilPedro);\r\n\t\t*/\r\n\t\tmoviles.put(movilJuan.getImei(), movilJuan);\r\n\t\tmoviles.put(movilMaria.getImei(), movilMaria);\r\n\t\tmoviles.put(movilPedro.getImei(), movilPedro);\r\n\t\t\r\n\t\t\r\n\t\t//Comprobamos is un elemento se encuentra en la colección por su valor\r\n\t\t//El método containsValue() requiere redefinir el método equals() de la clase Movil para saber que campo debe comparar para determinar que dos objetos sean iguales.\r\n\t\t//En caso de no hacerlo, los objetos se comparan utilizando sus Hashcodes (direcciones de memoria).\r\n\t\tif (moviles.containsValue(movilBusqueda)) {\r\n\t\t\tSystem.out.println(\"Encontrado\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No encontrado\");\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n String[] names= {\"Mehmet\", \"Asha\", \"Amina\", \"Omar\", \"Siyar\", \"Danny\"};\n \n Map<Integer, String> nameMap=new LinkedHashMap<>();\n \n int key=1;\n \n for(String name:names) {\n nameMap.put(key, name);\n key++;\n }\n System.out.println(nameMap);\n \n for(Map.Entry<Integer,String>entry:nameMap.entrySet()) {\n \t\tString mapValue=entry.getKey()+\" == \"+entry.getValue();\n \t\tSystem.out.println(mapValue);\n \t\t\n \t\t\n \t}\n \n Iterator<Entry<Integer, String>>it=nameMap.entrySet().iterator();\n\t\twhile(it.hasNext()) {\n\t\t\tMap.Entry entry=it.next();\n\t\t\tString valueFromMap=entry.getKey()+\" : \"+entry.getValue();\n\t\t\tSystem.out.println(valueFromMap);\n\t\t}\n\t\t\n\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();",
"public abstract Map<K, V> a();",
"@Esercizio(nro = \"1.15\", pag = 29, descrizione = \"01) Scrivere una interfaccia che estenda Lookup\" +\n \"02) in modo tale da dichiarare im metodi add() e remove().\" +\n \"03) Implementare questa interfaccia in una nuova classe. \")\npublic interface LookupMigliorata extends Lookup { //01) = LookupMigliorata extends Lookup ---> estendo l'interfaccia\n //02) in modo tale da dichiarare im metodi add() e remove().\n public void add(String nome, Object obj); // inserito 2 parametri perche si aggiunge il nome = chiave e l'oggetto = valore hashmap\n //public nei metodi dell'interfaccia è opzionale\n public Object remove(String nome); //per rimuovere basta la stringa chiave ma restituisce Object rimosso.\n\n\n}",
"@Override\n\tpublic Map<Long,FornameRequirements> getRequirementsMapByIds(List<Long> ids) {\n\t\tList<FornameRequirements> list=fornameRequirementsMapper.getRequirementsListByIds(ids);\n\t\tMap<Long,FornameRequirements> data=new HashMap<Long,FornameRequirements>();\n\t\tfor(FornameRequirements obj:list){\n\t\t\tdata.put(obj.getId(), obj);\n\t\t}\n\t\treturn data;\n\t}",
"public interface HospitaledInfoMapper {\r\n List<HospitaledInfo> listByPatientInfo(int id);\r\n int addEntry(HospitaledInfo hospitaledInfo);\r\n int updateEntry(HospitaledInfo hospitaledInfo);\r\n int deleteByIds(@Param(\"ids\") List<Integer> ids);\r\n}",
"@Override\r\n\tpublic void insert(Map<String, String> map) {\n\t\t\r\n\t}",
"@Override\n\tprotected void warpTheMap(Map<String, Object> map) {\n\t\tif(\"0\".equals(map.get(\"status\")+\"\")){\n\t\t\tmap.put(\"status\",\"已出\");\n\t\t}else{\n\t\t\tmap.put(\"status\",\"未出\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tInteger createUserId = Integer.valueOf(map.get(\"createUserid\").toString());\n\t\t\tmap.put(\"createUser\", ConstantFactory.me().getUserNameById(createUserId));\n\t\t} catch (Exception e) {\n\t\t\tmap.put(\"createUser\", \"\");\n\t\t}\n\t\ttry {\n\t\t\tInteger updateUserId = Integer.valueOf(map.get(\"updateUserid\").toString());\n\t\t\tmap.put(\"updateUser\", ConstantFactory.me().getUserNameById(updateUserId));\n\t\t} catch (Exception e) {\n\t\t\tmap.put(\"updateUser\", \"\");\n\t\t}\n\t}",
"private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\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 }",
"void add( Map< String, Object > paramMap );",
"void chooseMap(String username);",
"public static void main(String[] args)\n\t{\n\t\t\n\t\tHashMap<String, Integer> map=new HashMap<String, Integer>(); // creating hashmap\n\t\t\n\t\tmap.put(\"Vishal\",12276); // adding object\n\t\tmap.put(\"Rashmi\",12277);\n\t\tmap.put(\"Shubhangi\",12278);\n\t\tmap.put(null,12279); // allowed null key so give value\n\t\t\n\t//\tSystem.out.println(map.get(\"Rashmi\")); \n\t//\tSystem.out.println(map.get(null)); \n\t\t\n\t\tSet<String> set =map.keySet(); // fetching all the value of key\n\t\t\n\t\tfor(String s:set)\n\t\t{\n\t\t\tSystem.out.println(map.get(s)); // iterating key..\n\t\t}\n\t\t\n\t\tSystem.out.println(\"--------------------\");\n\t\t\n\t\tHashtable<String, String> map2 = new Hashtable<String, String>();\n\t\t\n\t\tmap2.put(\"Firstname\", \"Vishal\");\n\t\tmap2.put(\"Lastname\",\"Pandey\");\n\t\t//map2.put(null,\"test\"); // will not allowed null key so give null pointer exception error.\n\t\t\n\t\tSystem.out.println(map2.get(null));\n\t\t\n\n\t}",
"void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);",
"@RequestMapping(value = \"/findByUid\",method = RequestMethod.POST)\n public BaseResponse findByUid(@RequestBody Map map){\n return service.findByUid((Integer)map.get(\"userId\"));\n }",
"public static void mapUtil(HashMap<Integer, String> map)\n\t{\n\t\tmap.put(101, \"Shawn\");\n\t\tmap.put(123, \"Holly\");\n\t\tmap.put(346, \"Michael\");\n\t\tmap.put(45, \"Kelly\");\n\t\tmap.put(24, \"Kobe\");\n\t\t\n\t\tSystem.out.println(\"See all of the keys \" + map.keySet());\n\t\tSystem.out.println(\"See all of the key value pairs: \" + map);\n\t\tSystem.out.println(map.get(45));\n\t\t\n\t\tfor(int key : map.keySet())\n\t\t{\n\t\t\tSystem.out.println(\"[ KEY: \" + key + \". VALUE: \" + map.get(key) + \"]\");\n\t\t}\n\t\t\n\t\t\n\t}",
"void writeObject(Map<Object, Object> map);",
"@Test\n public void hashMapInitialised()\n {\n Map<Integer, String> strings = MapUtil.<Integer, String>hashMap().keyValue(1, \"Me\").keyValue(2, \"You\");\n // Is this really better than calling strings.put(..)?\n\n assertEquals(\"You\", strings.get(2));\n }",
"XClass getMapKey();",
"public interface Similarity {\n\n double Similarity(Map<String, Double> sourceMap, Map<String, Double> targetMap);\n}",
"public static void mapHashMap(Map<Integer, String> mapHashMap) {\n System.out.println(\"----------------------------- HashMap ----------------------------\");\n System.out.println(\"\\\"HashMap\\\" is unordered!\");\n mapHashMap.put(7, \"Cristiano Ronaldo\");\n mapHashMap.put(10, \"Leo Messi\");\n mapHashMap.put(8, \"Avi Nimni\");\n mapHashMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n // STEP 2 - set p3 name to \"Moshe\"\n System.out.println(\"Set the name of player number 8 to be \\\"Moshe\\\":\");\n mapHashMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n // STEP 3 - add p5 to the end of the list using using ADD method\n System.out.println(\"Add p5 to the end of the list using ADD method:\");\n System.out.println(\"Not an option!\");\n System.out.println();\n // STEP 4 - add p6 to position 3 the end of the list using ADD method\n System.out.println(\"Add p6 to position 3 the end of the list using ADD method:\");\n System.out.println(\"Not an option, you can wright over it!\");\n System.out.println();\n // STEP 5 - remove p2 from the list\n System.out.println(\"Remove p2 from the list and printing the list using a static method in a utility class:\");\n mapHashMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(mapHashMap);\n System.out.println();\n }",
"public Map<String, Object> getTagMap();",
"void getValues(long id, Map<String,Object> record);",
"public interface CallMap {\n public String Store();\n}",
"ProcessOperation<Map<String, Object>> map();",
"public interface MapP2P<K, V> {\n\n /** Adds key and value in associative array */\n boolean put(K key, V value);\n\n /** Gets from associative array particular value which associated with received key */\n V get(K key);\n\n /** Removes from associative array particular value which associated with received key */\n V remove(K key);\n\n /** Adds in current map other collection which implements interface MapP2P */\n boolean addAll(MapP2P<K, V> mapP2P);\n\n /** Returns information informing whether the given key is in the collection */\n boolean containsKey(K key);\n\n /** Returns information informing whether the given value is in the collection */\n boolean containsValue(Object value);\n\n /** Returns amount element which stored in the associative array */\n int size();\n\n /** Removes all elements (key-value) from collection */\n void clear();\n\n /** Returns set of nodes which contains key-value */\n Set<Node<K, V>> entrySet();\n\n /** Returns information about whether there are elements on the current associative array */\n boolean isEmpty();\n\n /** Interface for Node that contains key and value */\n interface Node<K, V> {\n /** Returns the key of current node */\n K getKey();\n /** Returns the value of current node */\n V getValue();\n }\n\n /** Performs the given action for each node in this map */\n default void forEach(BiConsumer<? super K, ? super V> action) {\n Objects.requireNonNull(action);\n for (Node<K, V> node : entrySet()) {\n action.accept(node.getKey(), node.getValue());\n }\n }\n\n}",
"public interface AttributeMap{\n\n /**\n * List of attribute names\n *\n * @return\n */\n public Set<String> getAttributeNames();\n\n /**\n * Does it contain the attributes of the specified name\n *\n * @param name\n * @return\n */\n public boolean containAttribute(String name);\n\n /**\n * Return the attribute value of the specified name\n *\n * @param name\n * @return\n */\n public String getAttribute(String name);\n\n}",
"public static void main(String[] args) {\n HashMap<Integer, String> Hm = new HashMap<Integer, String>();\n Hm.put(0, \"USA\");\n Hm.put(1, \"UK\");\n Hm.put(2, \"India\");\n Hm.put(3, \"Maldives\");\n \n Set sn=Hm.entrySet();\n Iterator i= sn.iterator(); \n while(i.hasNext()) {\n Map.Entry mp=(Map.Entry)i.next();\n System.out.println(mp.getKey());\n System.out.println(mp.getValue());\n }\n \n\t}",
"@Override\n public int hashCode() {\n return Objects.hash(name, type, id);\n }",
"public static HashMap<Long, User> userMapInit() {\n HashMap<Long, User> userMap = new HashMap<Long, User>();\n\n\n User user = UserFactory.getNewUser(\"firstName\", \"secondName\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"firstN1\", \"secondN1\", \"88005553535\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"first2\", \"second2\", \"890006662525\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"fir3\", \"sec3\", \"72563698562\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"firstN1\", \"secondN1\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"bbbbb\", \"nbvnbn\", \"72563698588\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"first2\", \"second2\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"bb\", \"nb\", \"72563698588\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"fir3\", \"sec3\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"firstN1\", \"secondN1\", \"88005553535\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n userMap.put(user.getId(), user);\n\n return userMap;\n }",
"public interface TestMapper {\n public List<Map<String, Object>> findTestInfo();\n}",
"public interface Map<K, V> {\n\n /**\n *\n * Returns the number of elements in this map (its cardinality).\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * </ol><br />\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> The number of elements in the map being represented\n * is returned as output. </li>\n * <li> The represented map has not been changed. </li>\n * </ol>\n *\n * @return The size of the set being represented\n *\n */\n\n int size ();\n\n /**\n *\n * Reports whether the given key has a value defined for it in this map.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An element k of type K has been supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied </li>\n * <li> The Map being represented has not been changed </li>\n * <li> The value true is returned as output if a value is\n * defined for the input key k, and false is returned\n * otherwise.\n * </li>\n * </ol>\n *\n * @param k A key whose inclusion in the Map is being queried\n * @return true if a value is defined for the key k, and false otherwise\n *\n */\n\n boolean defined(K k);\n \n /**\n *\n * Reports the value defined for a given key.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An element k of type K has been supplied as input. </li>\n * </ol><br />\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> The Map being represented has not been changed. </li>\n * <li> If a value is defined for the input key k then this\n * value is returned as output. An UndefinedException\n * is thrown, otherwise. </li>\n * </ol>\n *\n * @param k A key whose inclusion in the Map is being queried\n * @return The value associated with this key in this Map\n * @throws UndefinedException if no value is sssocated with this\n * key in this Map\n *\n */\n\n V get(K k) throws UndefinedException;\n\n /**\n *\n * Defines or changes the value associated with a given key.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> A key k of type K and value v of type V are supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> If this is a Bounded Map, there is no value already associated\n * with the input key k, and the size of this map is less than its\n * capacity, then the input value is associated (under this map)\n * to the input key k. If there is no value already associated\n * with the input key and the size of this Map is already equal to\n * its capacity, then an OverflowException is thrown and the\n * represented map is not changes. Finally, if there is already a\n * value associated with the input key k then this value is replaced\n * by the input value v.\n * </li>\n * <li> If this is an Unbounded Map and there is no value already\n * associated with the input key ke, then the input value v\n * is associated with the input key. If there is already a value\n * assocated with the input key k then this value is replaced\n * by the input value v.\n * </li>\n * </ol>\n *\n * @param k the key whose value is to be defined\n * @param v the value to be associated with the input key\n * @throws OverflowException if this is a Bounded Map, k does not already\n * have a value associated with it, and the Bounded Map’Set\n * size is already equal to its capacity\n *\n */\n\n void set(K k, V v) throws OverflowException;\n\n /**\n *\n * Removes the value associated with an input key (effectively causing\n * the mapping to be “undefined” at the input key, if a value\n * is already associated with the input key\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> A key k of type K is supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> If there is currently a value associated with the input key k\n * then this part of the mapping is removed, so that the\n * mapping is now “undefined” at k.\n * Otherwise the mapping is not changed.\n * </li>\n * </ol>\n *\n * @param k for which the mapping should now become “undefined”\n *\n */\n\n void unset(K k);\n\n\n /**\n *\n * Returns an iterator over the keys for which the mappins is defined.\n * The keys are returned in no particular order (unless this Map\n * is also an instance of some class that provides a guarantee).\n * <br />\n *\n * <p>\n * <strong>Preconditon:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An Iterator over the keys for which values are defined\n * is returned as output. </li>\n * <li> The Map being represented has not been changed. </li>\n * </ol>\n *\n * @return an iterator over the keys for which values are defined\n *\n */\n\n Iterator<K> iterator();\n\n}",
"public static void main(String[] args) throws IllegalAccessException, InvocationTargetException, InstantiationException {\n\r\n Map<String, Shape> shapeMap = new HashMap<>();\r\n\r\n shapeMap.put(\"Triangle\", new SimpleTriangle(3, 5, 5));\r\n shapeMap.put(\"Circle\", new SimpleCircle(5));\r\n\r\n for (Map.Entry<String, Shape> entry : shapeMap.entrySet()) {\r\n System.out.println(\"Key - \" + entry.getKey() + \" Value \" + entry.getValue());\r\n }\r\n\r\n //Write a Java program to count the number of key-value (size) mappings in a map\r\n\r\n int size = shapeMap.size();\r\n System.out.println(size);\r\n\r\n //Write a Java program to copy all of the mappings from the specified map to another map.\r\n\r\n Map<String, Shape> shapeMap1 = new HashMap<>();\r\n shapeMap1.put(\"Square7\", new SimpleSquare(7));\r\n shapeMap1.put(\"Square9\", new SimpleSquare(9));\r\n\r\n shapeMap.putAll(shapeMap1);\r\n\r\n System.out.println(shapeMap);\r\n\r\n //Write a Java program to check whether a map contains key-value mappings (empty) or not.Try to use .clear()\r\n\r\n shapeMap1.clear();\r\n System.out.println(shapeMap1.isEmpty());\r\n\r\n //Write a Java program to test if a map contains a mapping for the specified key.\r\n\r\n boolean what = shapeMap.containsKey(\"Square7\");\r\n System.out.println(what);\r\n\r\n //Write a Java program to test if a map contains a mapping for the specified value.\r\n\r\n boolean whatValue = shapeMap.containsValue(new SimpleSquare(7));\r\n System.out.println(whatValue);\r\n\r\n //Write a Java program to create a set view of the mappings contained in a map.\r\n\r\n\r\n //Tree Set\r\n\r\n Set<Employee> treeSet = new TreeSet<>();\r\n treeSet.add(new Employee(17_000, \"J\"));\r\n treeSet.add(new Employee(20_000, \"K\"));\r\n\r\n System.out.println(treeSet);\r\n\r\n final EmployeeAgeComparator ageComparator = new EmployeeAgeComparator();\r\n Set<Employee> treeSetByAge = new TreeSet<>(ageComparator);\r\n treeSetByAge.add(new Employee(22_000, 35, \"L\"));\r\n treeSetByAge.add(new Employee(78_000, 19, \"J\"));\r\n treeSetByAge.add(new Employee(93_000, 55, \"P\"));\r\n\r\n System.out.println(treeSetByAge);\r\n\r\n final EmployeeSalaryComparator salaryComparator = new EmployeeSalaryComparator();\r\n Set<Employee> treeSetBySalary = new TreeSet<>(salaryComparator);\r\n treeSetBySalary.add(new Employee(98_120, 59, \"LA\"));\r\n treeSetBySalary.add(new Employee(92_000, 79, \"AA\"));\r\n treeSetBySalary.add(new Employee(18_100, 44, \"AC\"));\r\n\r\n System.out.println(treeSetBySalary);\r\n\r\n System.out.println(\"==============================================\");\r\n\r\n Set<Employee> treeSetByName = new TreeSet<Employee>((o1, o2) -> o1.getName().compareTo(o2.getName()));\r\n\r\n treeSetByName.add(new Employee(98_120, 59, \"LA\"));\r\n treeSetByName.add(new Employee(92_000, 79, \"AA\"));\r\n treeSetByName.add(new Employee(18_100, 44, \"AC\"));\r\n\r\n System.out.println(treeSetByName);\r\n\r\n Employee newEmployee = null;\r\n final Constructor<?>[] constructorsEmp = Employee.class.getConstructors();\r\n for (Constructor constructor : constructorsEmp) {\r\n System.out.println(constructor.getParameterCount());\r\n if (constructor.getParameterCount() == 2) {\r\n newEmployee = (Employee) constructor.newInstance(66_000, \"From Reflection\");\r\n }\r\n }\r\n if(newEmployee != null){\r\n System.out.println(newEmployee);\r\n }\r\n\r\n }",
"private void linkedHashMap() {\n LinkedHashMap lhm = new LinkedHashMap();\n User e = new User(1, \"user\");\n\n lhm.put(e, \"Harshal\");\n lhm.put(new User(1, \"Employee\"), \"Harshal\");\n lhm.put(new User(1, \"user\"), \"Harshal\");\n lhm.put(e, \"Sumit\");\n\n System.out.println(lhm);\n lhm.putIfAbsent(new User(2,\"Harshal\"),\"Added new val\");\n lhm.putIfAbsent(new User(2,\"Harshal\"),\"Added new val\");\n\n lhm.keySet().removeIf(key->((User)key).equals(new User(2,\"Harshal\")));\n System.out.println(lhm);\n }",
"public static Subject createWithMap(HashMap<String, String> map) {\n if (map.containsKey(MAP_ITEM_ID)) {\n Subject subject = SubjectManipulator.createItem(map);\n SubjectManipulator.add(subject);\n return subject;\n } else if (map.containsKey(MAP_CUSTOMER_ID)) {\n Subject subject = SubjectManipulator.createCustomer(map);\n SubjectManipulator.add(subject);\n return subject;\n } else if (map.containsKey(MAP_CATEGORY_ID)) {\n Subject subject = SubjectManipulator.createCategory(map);\n SubjectManipulator.add(subject);\n return subject;\n } else {\n LOGGER.warning(\"The map you gave was not valid, please make sure you haven't edited the map_id fields.\");\n return null;\n }\n }",
"@Test\n public void test2 ()\n {\n MyMap m = new MyMap();\n m.put(\"a\", \"1\");\n m.put(\"b\", \"2\");\n m.put(\"a\", \"3\");\n assertEquals(2, m.size());\n assertEquals(\"3\", m.get(\"a\"));\n assertEquals(\"2\", m.get(\"b\"));\n assertNull(m.get(\"c\"));\n }",
"private HashMap name2() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"SIMA\");\n\t hm.put(\"middleName\", \"MISHRA\");\n\t hm.put(\"lastName\", \"ARADHANA\");\n\t hm.put(\"firstYearInOffice\", \"1981\");\n\t hm.put(\"lastYearInOffice\", \"1989\");\n\t return hm;\n\n\t }",
"public interface Mapper {\n /**\n * Map the provided input value to the new output value\n * @param key the key of the input value\n * @param input the actual input value\n * @return the value to store in the datastore\n */\n public Object map(String key, Object input);\n}",
"public abstract mapnik.Map createMap(Object recycleTag);",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof OrienteeringMap)) {\n return false;\n }\n return id != null && id.equals(((OrienteeringMap) o).id);\n }",
"public abstract void map(String key, String value) throws Exception;",
"private static void createTypeMap() {\n\n }",
"public static void main(String[] args) {\n\t\tHashMap<Integer,String> map=new HashMap<Integer,String>();//Creating HashMap \n\t\t map.put(1,\"Mango\"); //Put elements in Map \n\t\t map.put(2,\"Apple\"); \n\t\t map.put(3,\"Banana\"); \n\t\t map.put(4,\"Grapes\"); \n\t\t \n\t\t System.out.println(\"Iterating Hashmap...\"); \n\t\t for(Map.Entry m : map.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t System.out.println(\"*************no duplicate keys*********************\");\n\t\t \n\t\t HashMap<Integer,String> map1=new HashMap<Integer,String>();//Creating HashMap \n\t\t map1.put(1,\"Mango\"); //Put elements in Map \n\t\t map1.put(2,\"Apple\"); \n\t\t map1.put(3,\"Banana\"); \n\t\t map1.put(1,\"Grapes\"); //trying duplicate key \n\t\t \n\t\t System.out.println(\"Iterating Hashmap...\"); \n\t\t for(Map.Entry m : map1.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t System.out.println(\"**********adding elements********************\");\n\t\t \n\t\t HashMap<Integer,String> hm=new HashMap<Integer,String>(); \n\t\t System.out.println(\"Initial list of elements: \"+hm); \n\t\t hm.put(100,\"Amit\"); \n\t\t hm.put(101,\"Vijay\"); \n\t\t hm.put(102,\"Rahul\"); \n\t\t \n\t\t System.out.println(\"After invoking put() method \"); //{}\n\t\t for(Map.Entry m:hm.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t \n\t\t hm.putIfAbsent(103, \"Gaurav\"); \n\t\t System.out.println(\"After invoking putIfAbsent() method \"); \n\t\t for(Map.Entry m:hm.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t HashMap<Integer,String> map2=new HashMap<Integer,String>(); \n\t\t map2.put(104,\"Ravi\"); \n\t\t map2.putAll(hm); \n\t\t System.out.println(\"After invoking putAll() method \"); \n\t\t for(Map.Entry m:map2.entrySet()){ \n\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t } \n\t\t map2.remove(100);\n\t\t System.out.println(map2);\n\t\t map2.remove(102,\"Rahul\");\n\t\t System.out.println(map2);\n\t\t System.out.println(\"**********replace elements********************\");\n\t\t map2.replace(103, \"rupom\");\n\t\t System.out.println(map2);\n\t\t map2.replace(101, \"Vijay\", \"roy\");\n\t\t System.out.println(map2);\n\t\t \n\t\t\t \n\t\t \n\n\t\t \n\t\t \n\n\t}",
"@Mapper\npublic interface RecruitMapper {\n\n /**\n * 根据招募表主键ID查询\n * @param id\n * @return\n */\n public Recruit getRecruitById(String id);\n\n /**\n * 根据商家ID查询对应招募信息\n * @param owner\n * @return\n */\n public List<Recruit> getRecruitListByOwner(String owner);\n\n public int insertRecruit(Recruit recruit);\n\n public int updateRecruit(Recruit recruit);\n}",
"private IMapData<Integer, String> getLinkedHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\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 }",
"private void createHisMap(Customer customer)\n {\n hisMap= new HashMap<>();\n idFile.open(\"history.txt\");\n String line=idFile.getNextLine();\n String name = customer.getUsername();\n specificLine=-1;\n int i=0;\n while (line!=null)\n {\n int j=0;\n String[] fields = line.split(\",\");\n if(fields[0].equals(name))\n {\n specificLine=i;\n }\n\n String[] fields2 = fields[1].split(\"%\");\n\n\n while (j<fields2.length)\n {\n if(hisMap.get(fields[0])==null)\n {\n hisMap.put(fields[0],new ArrayList<>());\n hisMap.get(fields[0]).add(fields2[j]);\n\n }\n else\n {\n hisMap.get(fields[0]).add(fields2[j]);\n }\n j++;\n }\n\n line=idFile.getNextLine();\n i++;\n }\n if(specificLine== -1)\n specificLine=i;\n }",
"public interface Callback<T,P> {\n\n List<T> getData(P param);\n\n List<T> sorted(List<T> data,P param);\n\n default Map<String,T> toMap(List<T> data){\n return data.stream().collect(Collectors.toMap(o -> BeanUtil.getFieldValue(o,\"id\").toString(), v -> v));\n }\n\n}",
"abstract protected Map<String, T> lookup(List<String> values);",
"Boolean same(MapComp<K, V> m);"
]
| [
"0.66410875",
"0.62533844",
"0.61670077",
"0.6152668",
"0.6137119",
"0.6123941",
"0.6056824",
"0.6049086",
"0.60368264",
"0.6034137",
"0.59959674",
"0.5909715",
"0.5895819",
"0.58910674",
"0.5843088",
"0.5831584",
"0.5823394",
"0.5805509",
"0.5804997",
"0.580064",
"0.57994735",
"0.5790538",
"0.577598",
"0.5775674",
"0.5756648",
"0.5740198",
"0.57176155",
"0.5716624",
"0.5705416",
"0.5699266",
"0.56478834",
"0.5647853",
"0.56342787",
"0.5617783",
"0.56114626",
"0.5611275",
"0.559559",
"0.55947703",
"0.559458",
"0.55887705",
"0.5579388",
"0.5573955",
"0.556335",
"0.55543303",
"0.55507827",
"0.5544905",
"0.5544732",
"0.55412364",
"0.55400133",
"0.55357677",
"0.5522003",
"0.551783",
"0.55171394",
"0.55140495",
"0.5506658",
"0.5505395",
"0.5484593",
"0.5478235",
"0.5474076",
"0.5464757",
"0.54571265",
"0.5455108",
"0.5453694",
"0.5451127",
"0.54445153",
"0.5439997",
"0.54391044",
"0.5438481",
"0.54335797",
"0.5432659",
"0.5430742",
"0.54265106",
"0.5422605",
"0.5420105",
"0.54190844",
"0.54166293",
"0.5409678",
"0.54068047",
"0.54066837",
"0.54012585",
"0.5401112",
"0.54000556",
"0.53954387",
"0.53911614",
"0.53910303",
"0.53894377",
"0.5388789",
"0.53886455",
"0.5386936",
"0.5386481",
"0.538205",
"0.53802663",
"0.53790253",
"0.5377032",
"0.53734326",
"0.53718716",
"0.53615886",
"0.5358095",
"0.5356819",
"0.5353815",
"0.5352454"
]
| 0.0 | -1 |
function to draw the selector symbol in plane selection page | public void drawSelector(int x) {
int currentTime = millis() / 100;
noStroke();
if (currentTime % 13 == 0) {
fill(200, 200, 100, 30);
}
else if (currentTime % 13 == 1) {
fill(200, 200, 100, 40);
}
else if (currentTime % 13 == 2) {
fill(200, 200, 100, 50);
}
else if (currentTime % 13 == 3) {
fill(200, 200, 100, 60);
}
else if (currentTime % 13 == 4) {
fill(200, 200, 100, 70);
}
else if (currentTime % 13 == 5) {
fill(200, 200, 100, 80);
}
else if (currentTime % 13 == 6) {
fill(200, 200, 100, 90);
}
else if (currentTime % 13 == 7) {
fill(200, 200, 100, 100);
}
else if (currentTime % 13 == 8) {
fill(200, 200, 100, 110);
}
else if (currentTime % 13 == 9) {
fill(200, 200, 100, 120);
}
else if (currentTime % 13 == 10) {
fill(200, 200, 100, 130);
}
else if (currentTime % 13 == 11) {
fill(200, 200, 100, 140);
}
else if (currentTime % 13 == 12) {
fill(200, 200, 100, 150);
}
else {
fill(255, 200, 100);
}
switch(x){
case 1:
beginShape();
vertex(80, 330);
vertex(50, 360);
vertex(80, 350);
vertex(110, 360);
endShape();
break;
case 2:
beginShape();
vertex(370, 330);
vertex(340, 360);
vertex(370, 350);
vertex(400, 360);
endShape();
break;
case 3:
beginShape();
vertex(80, 600);
vertex(50, 630);
vertex(80, 620);
vertex(110, 630);
endShape();
break;
case 4:
beginShape();
vertex(370, 600);
vertex(340, 630);
vertex(370, 620);
vertex(400, 630);
endShape();
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void paintSelection(Graphics2D g);",
"public void draw(){\n\t\tif(!visible) return;\n\n\t\twinApp.pushStyle();\n\t\twinApp.style(G4P.g4pStyle);\n\t\tPoint pos = new Point(0,0);\n\t\tcalcAbsPosition(pos);\n\n\t\t// Draw selected option area\n\t\tif(border == 0)\n\t\t\twinApp.noStroke();\n\t\telse {\n\t\t\twinApp.strokeWeight(border);\n\t\t\twinApp.stroke(localColor.txfBorder);\n\t\t}\n\t\tif(opaque)\n\t\t\twinApp.fill(localColor.txfBack);\n\t\telse\n\t\t\twinApp.noFill();\n\t\twinApp.rect(pos.x, pos.y, width, height);\n\t\t\n\t\t// Draw selected text\n\t\twinApp.noStroke();\n\t\twinApp.fill(localColor.txfFont);\n\t\twinApp.textFont(localFont, localFont.getSize());\n\t\twinApp.text(text, pos.x + PADH, pos.y -PADV +(height - localFont.getSize())/2, width - 16, height);\n\n\t\t// draw drop down list\n\t\twinApp.fill(winApp.color(255,255));\n\t\tif(imgArrow != null)\n\t\t\twinApp.image(imgArrow, pos.x + width - imgArrow.width - 1, pos.y + (height - imgArrow.height)/2);\n\t\tif(expanded == true){\n\t\t\tGOption opt;\n\t\t\twinApp.noStroke();\n\t\t\twinApp.fill(localColor.txfBack);\n\t\t\twinApp.rect(pos.x,pos.y+height,width,nbrRowsToShow*height);\n\n\t\t\tfor(int i = 0; i < optGroup.size(); i++){\n\t\t\t\topt = optGroup.get(i);\n\t\t\t\tif(i >= startRow && i < startRow + nbrRowsToShow){\n\t\t\t\t\topt.visible = true;\n\t\t\t\t\topt.y = height * (i - startRow + 1);\n\t\t\t\t\topt.draw();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\topt.visible = false;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Draw box round list\n\t\t\tif(border != 0){\n\t\t\t\twinApp.strokeWeight(border);\n\t\t\t\twinApp.stroke(localColor.txfBorder);\n\t\t\t\twinApp.noFill();\n\t\t\t\twinApp.rect(pos.x,pos.y+height,width,nbrRowsToShow*height);\n\t\t\t}\n\t\t\tif(optGroup.size() > maxRows){\n\t\t\t\tslider.setVisible(true);\n\t\t\t\tslider.draw();\n\t\t\t}\n\t\t}\n\t\twinApp.popStyle();\n\t}",
"public void title(){\n textFont(select,30);\n fill(150);\n text(\"PLANE SELECT\",482,72);\n fill(0);\n text(\"PLANE SELECT\",480,70);\n}",
"void renderNameSelection() {\n //sets the right letters for buttons\n String[] names = {Character.toString(arr[0]), Character.toString(arr[1]), Character.toString(arr[2])};\n changeNames(names);\n selectedButton = menuItems[iH];\n selectedButton.buildSelecter();\n //renders the startscreen\n renderStartScreen();\n }",
"private void drawHelp(Graphics2D g2d) {\n Composite orig_comp = g2d.getComposite();\n g2d.setColor(RTColorManager.getColor(\"brush\", \"dim\")); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.8f)); g2d.fillRect(0,0,getWidth(),getHeight()); g2d.setComposite(orig_comp);\n int base_x = 5, base_y = Utils.txtH(g2d,\"0\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Key\", \"Normal\", \"Shift\", \"Ctrl\", \"Ctrl-Shift\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"E\", \"Expand Selection\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"1 - 9\", \"Select Degree\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"0\", \"Select Degree > 10\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"R\", \"Select Cut Vertices\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Q\", \"Invert Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"X\", \"Hide Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"M\", \"Toggle Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"G\", \"Grid Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Y\", \"Line Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"C\", \"Circle Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"T\", \"Group Nodes\", \"Align Horizontally\", \"Align Vertically\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"S\", \"Set/Clear Sticky Labels\", \"Subtract From\", \"Add To\", \"Intersect With\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"V\", \"Toggle Node Size\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"L\", \"Toggle Labels\", \"Toggle Edge Templates\", \"Toggle Node Legend\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"W\", \"Make One Hops Visible\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"N\", \"Add Note\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"A\", \"Pan Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Minus (-)\", \"Zoom Out\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Plus (+)\", \"Zoom In\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Cursor Keys\", \"Shift Selected Nodes\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"< >\", \"Rotate Selected Nodes\", \"15 Degs\", \"90 Degs\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"{ }\", \"Scale Selected Nodes\", \"More\", \"Even More\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F[2-5]\", \"Save Layout To Fx\", \"Restore\", \"Delete\", \"Restore\");\n }",
"@Override\n public void paintMenu(Graphics g) {\n if (visible) {\n g.drawImage(toDraw, xPos, yPos, null); \n \n if (selection >= 0) {\n g.setColor(Colors.getColor(Colors.selectedColor));\n g.fillRoundRect(xPos + wGap, selection * hItemBox + yPos + hGap, getWidth() - wGap, hItemBox, wGap, hGap);\n }\n \n if (!activated) {\n g.setColor(Colors.getColor(Colors.selectedColor));\n g.fillRoundRect(xPos, yPos, getWidth(), getHeight(), wGap, hGap);\n }\n }\n }",
"public void renderSelectedRegion() {\n textBuffer.renderInit();\n renderFlag = 2;\n Text text;\n root.getChildren().removeAll(renderPieces);\n renderPieces.clear();\n if (!reversed) {\n while ((text = textBuffer.getTextToRender()) != null) {\n addRenderPieces(text);\n }\n } else {\n while ((text = textBuffer.getPreToRender()) != null) {\n addRenderPieces(text);\n }\n }\n\n }",
"public void makeSwitcherBall(TPaintDropListItem paintSelectedItem);",
"public void updateSelection()\n {\n \trectForSelection.setRect(rettangoloX,rettangoloY,larghezza,altezza);\n \trectSelTopLeft.setRect(rettangoloX-3,rettangoloY-3,6,6);\n \trectSelBottomLeft.setRect(rettangoloX-3,rettangoloY+altezza-3,6,6);\n \trectSelTopRight.setRect(rettangoloX+larghezza-3,rettangoloY-3,6,6);\n \trectSelBottomRight.setRect(rettangoloX+larghezza-3,rettangoloY+altezza-3,6,6);\n }",
"public void drawSelected(Graphics2D g2) {\n\t\tfloat[] dashes = {1,1,1};\n \tBasicStroke stroke = new BasicStroke(2, BasicStroke.CAP_SQUARE, BasicStroke.CAP_SQUARE, 10, dashes, 10);\n \tg2.setColor(Color.RED);\n\t\tg2.draw(stroke.createStrokedShape(new Rectangle2D.Double(this.getX()-2,this.getY()-2,this.getDimension()+4,this.getDimension()/2 +4)));\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n state = \"select\";\r\n instruction.setText(\"Drag the rectangle to cover the whole shape which you want to select\");\r\n\r\n }",
"public void drawSelection(Graphics g, int screenX, int screenY, Case caseSelection, int selectionX, int selectionY) {\n\t\t\n\t}",
"public void selectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispSelected);\n\t}",
"public void paintSelected(Graphics g, int mode, double zx, double zy ){\n \r\n g.setXORMode(Color.WHITE);\r\n \r\n g.setColor(selectedBorderColor);\r\n if(mode == DrawingCanvas.EDIT_LEFT){\r\n paintSelectedBorder(g, (int)(x*zx) , (int)(y*zy), (int)zx, (int)(h*zy+zy));\r\n }\r\n else if(mode == DrawingCanvas.EDIT_RIGHT){\r\n //paintSelectedBorder(g, x + w - 3, y - 3, (int)(6/zx), h + 6);\r\n paintSelectedBorder(g, (int)((x+w)*zx) , (int)(y*zy), (int)zx, (int)(h*zy+zy));\r\n }\r\n else if(mode == DrawingCanvas.EDIT_UPPER){\r\n //paintSelectedBorder(g, x - 3, y - 3, w + 6, (int)(6/zy));\r\n paintSelectedBorder(g, (int)(x*zx) , (int)(y*zy), (int)((w+1)*zx), (int)(zy));\r\n }\r\n else if(mode == DrawingCanvas.EDIT_LOWER){\r\n //paintSelectedBorder(g, x - 3, y + h - 3, w + 6, (int)(6/zy));\r\n paintSelectedBorder(g, (int)(x*zx) , (int)((y+h)*zy), (int)((w+1)*zx), (int)(zy));\r\n }\r\n else if(mode == DrawingCanvas.EDIT_BODY){\r\n paintSelectedBorder(g, x + 5, y + 5, w - 10, h - 10);\r\n }\r\n \r\n }",
"@Override\n\t\t\t\tprotected void operationSelectRange(PlaneXY planeXY) {\n\t\t\t\t\t\n\t\t\t\t}",
"private void geselecteerdSymbool()\n {\n /**\n * selecteren van vak\n */\n vulKeuzeBordIn();\n GraphicsContext gc = canvasKeuzeveld[0][keuzeID].getGraphicsContext2D();\n tekenRechtHoek(gc, 0, 0, 30, 30, Color.RED);\n }",
"@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tBitmap bitmap = unselected;\n\t\tfor (int i = 0;i<dotcount;i++) {\n\t\t\tif(i==selectIndex){\n\t\t\t\tbitmap = selected;\n\t\t\t} else {\n\t\t\t\tbitmap = unselected;\n\t\t\t}\n\t\t\t//canvas.drawBitmap(bitmap, leftPadding+i*(dotWidth+marginPs), heigth/2, null);\n\t\t\trelateRect.left = leftPadding+i*(dotWidth+marginPs);\n\t\t\trelateRect.right = relateRect.left+dotWidth;\n\t\t\tcanvas.drawBitmap(bitmap, orRect, relateRect, null);\n\t\t}\n\t}",
"public void paintSelected(Graphics2D g2d)\n {\n if (isSelected)\n {\n \tg2d.setColor(Color.black);\n \tg2d.draw(rectForSelection);\n \tg2d.setColor(Color.white);\n \tg2d.fill(rectSelTopLeft);\n \tg2d.fill(rectSelBottomLeft);\n \tg2d.fill(rectSelTopRight);\n \tg2d.fill(rectSelBottomRight);\n \tg2d.setColor(Color.black);\n \tg2d.draw(rectSelTopLeft);\n \tg2d.draw(rectSelBottomLeft);\n \tg2d.draw(rectSelTopRight);\n \tg2d.draw(rectSelBottomRight);\n \t\n }\n }",
"@Override\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\tint x = arg0.getX() / 20;\n\t\tint y = arg0.getY() / 20;\n\t\tGraphics g = this.getGraphics();\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(x * 20, y * 20, 20, 20);\n\t\tg.setColor(Color.gray);\n\t\tg.drawRect(x * 20, y * 20, 20, 20);\n\t\t// System.out.println(\"x: \" + x + \" y: \" + y);\n\t\tthis.selected.add(y * 64 + x);\n\n\t}",
"private void btnSelectPlaneActionPerformed(java.awt.event.ActionEvent evt) {\n this.airplaneSelected = true;\n SelectAirplaneScreen select = new SelectAirplaneScreen(this.rightPanel, this.agency, this.index, this.f);\n \n this.rightPanel.add(\"SelectAirplaneScreen\", select);\n CardLayout layout = (CardLayout) this.rightPanel.getLayout();\n layout.next(this.rightPanel);\n\n }",
"public void render() {\r\n Color geneColor=null;\r\n\r\n if(isChanged) {\r\n this.removeChild(predRect);\r\n predRect = new PPath();\r\n\r\n if(type == SegmentInfo.TYPE_AUTO) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 10, 10));\r\n else if(type == SegmentInfo.TYPE_MANUAL) predRect.setPathTo(new RoundRectangle2D.Double(startx,0.0,endx - startx,(double)this.PREDICTION_RECT_HEIGHT, 0, 0));\r\n\r\n if(this.isSelected()) {\r\n if(this.sign < 0) geneColor = this.SELECTED_DOWN_COLOR;\r\n else geneColor = this.SELECTED_UP_COLOR;\r\n }\r\n else {\r\n if(this.sign < 0) geneColor = this.DOWN_COLOR;\r\n else geneColor = this.UP_COLOR;\r\n }\r\n\r\n predRect.setPaint(geneColor);\r\n this.addChild(predRect);\r\n isChanged=false;\r\n }\r\n }",
"protected void createSelection() {\r\n\t\tsel = new GraphSelection();\r\n\t}",
"private void selectPlane(H5CompoundDS ds,int d1, int d2, int first) {\r\n\t\tds.clearData();\r\n\t\tlong[] selected = ds.getSelectedDims();\r\n\t\tlong[] start = ds.getStartDims();\r\n\t\tlong[] stride = ds.getStride( );\r\n\t\t//long[] d = en.getDims( );\r\n\t\t//long[] m = en.getMaxDims( );\r\n\t\tint[] selectedIndex = ds.getSelectedIndex( );\r\n\t\tArrays.fill(start, 0);\r\n\t\tArrays.fill(stride, 1);\r\n\t\tselected[0] = 1;\r\n\t\tselected[1] = d1;\r\n\t\tselected[2] = d2;\r\n\t\tstart[0] = first;\r\n\t\tselectedIndex[0] = 1;\r\n\t\tselectedIndex[1] = 2;\r\n\t\tselectedIndex[2] = 0;\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawType = 2;\n\t\t\t}",
"private static void menuSelector(){\r\n\t\tint answer= getNumberAnswer();\r\n\t\tswitch (answer) {\r\n\t\tcase 0:\r\n\t\t\tshowShapeInfo(shapes[0]);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcreateShape();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Its Perimeter is equal to: \" +calcShapePerimeter(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Its Area is equal to: \" +calcShapeArea(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Provide integer to use for scaling shape: \");\r\n\t\t\tscaleShape(shapes[0], getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"That's not actually an option.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void mouseClicked(MouseEvent e) {\r\n if (e.getButton() == MouseEvent.BUTTON3) {\r\n rectangle = null;\r\n uncolorNodes(selectedIds);\r\n } else if (e.getButton() == MouseEvent.BUTTON1) {\r\n rectangle = new Rectangle(e.getPoint(), new Dimension(1, 1));\r\n colorSelectedNodes();\r\n }\r\n }",
"private void initSelectedAlgoVisuals()\r\n\t{\r\n\t String searchText = useKDTreeToSearch ? \"Using KDTree for Nearest Neighbour Search\" : \"Using Linear Search for Nearest Neighbour Search\";\r\n\t String hullText = useConcaveHull ? \"Using Concave Hull with digDecider=\"+ConcaveHull.decision : \"Using Convex Hull\";\r\n\t \r\n\t usedAlgorithms.addCodeLine(searchText, null, 0, null);\r\n\t usedAlgorithms.addCodeLine(hullText, null, 0, null);\r\n\t \r\n\t RectProperties rectProps = new RectProperties();\r\n\t rectProps.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t rectProps.set(AnimationPropertiesKeys.FILL_PROPERTY, new Color(100, 200, 100));\r\n\t rectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t\tusingRect = lang.newRect(new Offset(-5, -5, \"usedAlgorithmsSourceCode\", AnimalScript.DIRECTION_NW), new Offset(10, 5, \"usedAlgorithmsSourceCode\", AnimalScript.DIRECTION_SE), \"usingInfoBackground\", null, rectProps);\r\n\t}",
"public void drawSelection(int x, int y, int width, int height) {\n implementation.devDrawStrokeRectangle(x, y, width, height, Color.BLUE);\n }",
"@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n if(selected != null)currentPage.drawIsDroppable(g, selected);\n pa.draw(g, selected);\n g.setColor(Color.BLACK);\n \tg.drawLine(0, currentPage.getBounds().height, currentPage.getBounds().width, currentPage.getBounds().height);\n }",
"void graphSelectionChanged(Mode mode);",
"@Override\n protected final void setGraphics() {\n super.setGraphics();\n Graphics g = toDraw.getGraphics();\n g.setColor(Color.BLACK); \n \n for (int i = 0; i < choices.size(); i++) { \n g.drawString(choices.get(i).getValue(), wGap, (i + 1) * hItemBox);\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlp.drawType = 1;\n\t\t\t}",
"void shapeOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb1.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strShape[0]) { // if \"Line\" selected \r\n System.out.println(\"Line of menu Shape is selected.\");\r\n System.out.println(\"calling method line().\");\r\n ge.line(gra); // call method line() of class PaintTool\r\n System.out.println(\"method line of class PaintTool executed.\");\r\n } else if (selStr == strShape[1]) { // if \"Rectangle\" selected\r\n System.out.println(\"Rectangle of menu Shape is selected.\");\r\n System.out.println(\"calling method rectangle().\");\r\n ge.rectangle(gra); // call method rectangle() of class PaintTool\r\n System.out.println(\"method rectangle() executed.\");\r\n } else if (selStr == strShape[2]) { // if \"Oval\" selected\r\n System.out.println(\"Oval of menu Shape is selected.\");\r\n System.out.println(\"calling method oval().\");\r\n ge.oval(gra); // call method oval() of class PaintTool\r\n System.out.println(\"method oval() executed.\");\r\n }\r\n\r\n }",
"private void drawInteractions(Graphics2D g2d, RenderContext myrc) {\n Composite orig_comp = g2d.getComposite();\n // Draw the interaction\n switch (ui_inter) {\n case PANNING: g2d.setColor(RTColorManager.getColor(\"background\", \"default\")); g2d.fillRect(0,0,getWidth(),getHeight());\n\t g2d.drawImage(myrc.getBase(), m_x1 - m_x0, m_y1 - m_y0, null); \n g2d.setColor(RTColorManager.getColor(\"annotate\", \"cursor\")); int cx = getWidth()/2, cy = getHeight()/2; g2d.drawLine(cx-12,cy,cx+12,cy); g2d.drawLine(cx,cy-12,cx,cy+12);\n break;\n case GRID_LAYOUT:\n\tcase CIRCLE_LAYOUT:\n case SELECTING: int x0 = m_x0 < m_x1 ? m_x0 : m_x1, y0 = m_y0 < m_y1 ? m_y0 : m_y1,\n\t\t\t dx = (int) Math.abs(m_x1 - m_x0), dy = (int) Math.abs(m_y1 - m_y0);\n\t\t\t if (dx == 0) dx = 1; if (dy == 0) dy = 1;\n\t\t\t g2d.setColor(RTColorManager.getColor(\"select\", \"region\"));\n\t\t\t Shape shape;\n\t\t\t if (ui_inter == UI_INTERACTION.SELECTING || ui_inter == UI_INTERACTION.GRID_LAYOUT) {\n shape = new Rectangle2D.Double(x0,y0,dx,dy);\n\t\t\t } else {\n double radius = Math.sqrt(dx*dx+dy*dy);\n shape = new Ellipse2D.Double(m_x0-radius,m_y0-radius,2*radius,2*radius);\n }\n\t\t\t g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));\n\t\t\t g2d.fill(shape);\n\t\t\t g2d.setComposite(orig_comp);\n\t\t\t if (ui_inter == UI_INTERACTION.SELECTING) {\n String str = \"Selecting...\"; if (last_shft_down && last_ctrl_down) str += \" (Intersect)\";\n\t\t\t else if (last_shft_down ) str += \" (Remove From)\";\n\t\t\t\t\t\t\t else if ( last_ctrl_down) str += \" (Add To)\";\n g2d.drawString(str, x0, y0); \n } else g2d.drawString(\"Layout...\", x0, y0);\n\t\t\t g2d.draw(shape);\n\t\t\t break;\n case MOVING: g2d.drawString(\"Moving...\", 5, getHeight()-5); \n\t Set<String> moving_set_dup = moving_set;\n if (moving_set_dup != null && moving_set_dup.size() > 0) {\n\t\t\t AffineTransform orig = g2d.getTransform(); g2d.setColor(RTColorManager.getColor(\"linknode\", \"movenodes\"));\n\t\t\t g2d.translate(m_x1 - m_x0, m_y1 - m_y0);\n Iterator<String> it = moving_set_dup.iterator();\n\t\t\t while (it.hasNext()) {\n\t\t\t String str = it.next(); shape = myrc.node_to_geom.get(entity_to_sxy.get(str));\n\t\t\t if (shape != null) { g2d.draw(shape); }\n\t\t\t }\n\t\t\t g2d.setTransform(orig);\n\t\t \t }\n break;\n\tcase LINE_LAYOUT: g2d.setColor(RTColorManager.getColor(\"linknode\", \"layout\"));\n\t g2d.drawLine(m_x0, m_y0, m_x1, m_y1);\n\t\t\t break;\n\tcase NONE:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }",
"@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tGraphics2D g2 = (Graphics2D) g; \n\t\tg2.setColor(Color.lightGray);\n\t\tg2.fill(model.bg);\n\t\tg2.setColor(Color.darkGray);\n\t\tg2.fillPolygon(model.terrain);\n\t\tg2.setColor(Color.gray);\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tg2.draw(model.circles.get(i));\n\t\t}\n\t\tif (model.curCircleSel != -1) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.circles.get(model.curCircleSel));\n\t\t}\n\t\tg2.setColor(Color.RED);\n\t\tg2.fill(model.pad);\n\t\tif (curPadSel) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.pad);\n\t\t}\n\t}",
"private void drawMenu(final Terminal term)\n {\n\n /*\n * Clear the area for the menu.\n */\n for (int row = firstRow; row < lastRow; row++)\n {\n term.moveCursor(firstColumn, row);\n for (int col = firstColumn; col < lastColumn; col++)\n {\n term.putCharacter(SPACE);\n }\n }\n\n /*\n * Draw all the options\n */\n final int minWidth = minWidth();\n for (int i = 0; i < options.size(); i++)\n {\n LanternaUtil.termPrint(term, options.get(i).getText(), minWidth, i + firstRow);\n }\n term.flush();\n }",
"public void renderSelected(Graphics g) {\n\t\t\tif(dSelected==DEATH.RESTART){\n\t\t\t\tg.setColor(Color.RED);\n\t\t\t\tg.drawString(\"Restart Level\",GameSystem.ABSWIDTH/2+100,300);\n\t\t\t}\n\t\t\telse if(dSelected==DEATH.BACKTOMENU){\n\t\t\t\tg.setColor(Color.RED);\n\t\t\t\tg.drawString(\"Back to Menu\",GameSystem.ABSWIDTH/2+100,400);\n\t\t\t} \t\t\n\t}",
"abstract public void showSelection(Node[] nodes) ;",
"public void renderSelected(int x, int y, int width, int height)\n {\n int color = 0xffcccccc;\n\n this.drawHorizontalLine(x, x + width - 1, y, color);\n this.drawHorizontalLine(x, x + width - 1, y + height - 1, color);\n\n this.drawVerticalLine(x, y, y + height - 1, color);\n this.drawVerticalLine(x + width - 1, y, y + height - 1, color);\n }",
"public void drawSaveMenu() {\n implementation.devDrawSaveMenu();\n }",
"private void pressedSelect(MouseEvent e) {\r\n if (e.getModifiers() >= MouseEvent.BUTTON1_MASK) {\r\n /* Click on a node */\r\n if (graphX.nodesContains(e.getPoint())) {\r\n /* Resize the selected node */\r\n if (graphX.isOneNodeSelected() && !ctrlPressed\r\n && graphX.getSelectedNode().getResizeRectangle().contains(e.getPoint())) {\r\n NodeX nodeX = graphX.getSelectedNode();\r\n nodeX.setResize(true);\r\n nodeX.setState(true);\r\n nodeX.setRelativePosition(e.getPoint());\r\n }\r\n /* Click to resize a node */\r\n else if (graphX.getNode(e.getPoint()).getResizeRectangle().contains(e.getPoint()) && !ctrlPressed) {\r\n /* Put the node over the others */\r\n graphX.selectNode(e.getPoint());\r\n\r\n graphX.deselectAll();\r\n graphX.getNode(e.getPoint()).setResize(true);\r\n graphX.getNode(e.getPoint()).setState(true);\r\n graphX.getNode(e.getPoint()).setRelativePosition(e.getPoint());\r\n\r\n selectTool.setMultiple(false);\r\n selectTool.reset();\r\n }\r\n /* Click to move (select) a node or mode nodes */\r\n else {\r\n NodeX nodeX;\r\n if ((nodeX = graphX.getNode(e.getPoint())) != null) {\r\n if (ctrlPressed == false && nodeX.getState() == false) {\r\n graphX.deselectAll();\r\n }\r\n /* Deselect the node */\r\n if (ctrlPressed == true && nodeX.getState() == true) {\r\n graphX.deselectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n /* Select the node */\r\n else {\r\n // graphX.deselectEdges();\r\n graphX.selectNode(nodeX);\r\n graphX.selectEdgesFromNodes();\r\n }\r\n\r\n /* Set the relative position at the selected nodes */\r\n for (int i = 0; i < graphX.nodesNumber(); i++) {\r\n if (graphX.nodeAt(i).getState()) {\r\n moveingGraph = true;\r\n graphX.nodeAt(i).setRelativePositionTo(e.getPoint());\r\n }\r\n }\r\n for (int i = 0; i < graphX.edgesNumber(); i++) {\r\n if (graphX.edgeAt(i).getState()) {\r\n graphX.edgeAt(i).setRelativePositionsTo(e.getPoint());\r\n }\r\n }\r\n\r\n dragMultiple = false;\r\n }\r\n }\r\n }\r\n /* Click on an edge */\r\n else if ((graphX.edgesContains(e.getPoint(), graph instanceof GraphOriented)\r\n || graphX.overSplitPoints(e.getPoint()) || edgeFromLabel(e.getPoint()) != null)\r\n && ctrlPressed == false) {\r\n deleteWays();\r\n\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n if (edgeX != null) {\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } else {\r\n try {\r\n edgeX = edgeFromLabel(e.getPoint());\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n } catch (NullPointerException e1) {\r\n }\r\n }\r\n // /* Set the split point if pressed on it */\r\n // graphX.getSelectedEdge().selectSplitPoint(e.getPoint());\r\n }\r\n /* Click on background */\r\n else {\r\n selectTool.setMultiple(true);\r\n selectTool.setFirstPoint(e.getPoint());\r\n /* Deselect all the nodes and edges */\r\n if (ctrlPressed == false) {\r\n graphX.deselectAll();\r\n /* Delete the ways */\r\n deleteWays();\r\n }\r\n }\r\n } else if (e.getModifiers() >= MouseEvent.BUTTON3_MASK) {\r\n NodeX nodeX = graphX.getNode(e.getPoint());\r\n EdgeX edgeX = graphX.getEdge(e.getPoint());\r\n\r\n if (nodeX != null) {\r\n itemType = NODE;\r\n\r\n /* Select the node */\r\n graphX.deselectAll();\r\n nodeX.setState(true);\r\n\r\n nodePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n } else if (edgeX != null) {\r\n /* Select the edge */\r\n graphX.deselectAll();\r\n edgeX.setState(true);\r\n\r\n if (ctrlPressed) {\r\n edgeX.deleteSplitPoint(e.getPoint());\r\n } else {\r\n itemType = EDGE;\r\n edgePopupMenu.show(this, e.getPoint().x, e.getPoint().y);\r\n splitPointLocation = e.getPoint();\r\n }\r\n\r\n // System.out.println(edgePopupMenu);\r\n // if(ctrlPressed) {\r\n // edgeX.deleteSplitPoint(e.getPoint());\r\n // }\r\n // else {\r\n // edgeX.addSplitPoint(e.getPoint());\r\n // }\r\n }\r\n }\r\n }",
"private void renderMenu() {\n StdDraw.setCanvasSize(START_WIDTH * TILE_SIZE, START_HEIGHT * TILE_SIZE);\n Font font = new Font(\"Monaco\", Font.BOLD, 20);\n StdDraw.setFont(font);\n StdDraw.setXscale(0, START_WIDTH );\n StdDraw.setYscale(0, START_HEIGHT );\n StdDraw.clear(Color.BLACK);\n StdDraw.setPenColor(Color.WHITE);\n StdDraw.enableDoubleBuffering();\n StdDraw.text(START_WIDTH / 2, START_HEIGHT * 2 / 3, \"CS61B The Game\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 + 2, \"New Game (N)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2, \"Load Game (L)\");\n StdDraw.text(START_WIDTH / 2, START_HEIGHT / 2 - 2 , \"Quit (Q)\");\n StdDraw.show();\n }",
"public void updateSelection() {\n\t\t\n\t}",
"void selectpos()\n {\n \n }",
"public void draw(SpriteBatch batch) {\n// If there is no image (word button)\n if (texture == null) {\n\n// If any menu cursor...\n for (MenuCursor cursor : Main.cursors) {\n\n// Is over the button, change the colour to the \"selected\" version\n if (isCursorOver(cursor)) {\n layout.setText(Main.menuFont, string, selectedColor, 0, Align.center, false);\n break;\n\n// Is not over the button, change the colour to the \"unselected\" version\n } else {\n layout.setText(Main.menuFont, string, unselectedColor, 0, Align.center, false);\n }\n }\n\n// Draw the text\n Main.menuFont.draw(batch, layout, pos.x, pos.y);\n\n// If there is an image\n } else {\n\n// If there is no cursors\n if (Main.cursors.size() == 0) {\n\n// If previously selected draw regular texture\n if (prevSelect) {\n batch.draw(texture, buttonRect.x, buttonRect.y);\n\n// Otherwise, draw the selected texture\n } else {\n batch.draw(selectTexture, buttonRect.x, buttonRect.y);\n }\n\n// If there is a cursor\n } else {\n\n// Cycle through all cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor is over the button, draw the selected texture\n if (isCursorOver(cursor)) {\n batch.draw(selectTexture, buttonRect.x, buttonRect.y);\n prevSelect = false;\n break;\n\n// Otherwise, draw the regular texture, previously selected is now true\n } else {\n batch.draw(texture, buttonRect.x, buttonRect.y);\n prevSelect = true;\n }\n }\n }\n }\n }",
"@Override\r\n public void mousePressed(MouseEvent event) { // on left mouse press, draw shapes\r\n System.out.println(\"pressed\");\r\n\r\n switch (state) {\r\n case DRAWRECT: // for drawing rectangle\r\n RectangleNode rectangle = new RectangleNode(event.getX(), event.getY());\r\n shapes.add(rectangle);\r\n repaint();\r\n state = SELECT;\r\n break;\r\n case DRAWELLIPSE: // for drawing ellipse\r\n EllipseNode ellipse = new EllipseNode(event.getX(), event.getY());\r\n shapes.add(ellipse);\r\n repaint();\r\n state = SELECT;\r\n break;\r\n case DRAWEDGE: // for drawing edge start\r\n Edge edge = new Edge(event.getX(), event.getY(), event.getX(), event.getY());\r\n currentEdge = edge;\r\n shapes.add(edge);\r\n repaint();\r\n state = DRAWINGEDGE;\r\n break;\r\n case DRAWINGEDGE: // for drawing edge end\r\n repaint();\r\n currentEdge = null;\r\n state = SELECT;\r\n break;\r\n default: // select\r\n if (event.getButton() == MouseEvent.BUTTON1) { // if the left mouse button is clicked\r\n for (int i = 0; i < shapes.size(); i++) {\r\n if (shapes.get(i).isClicked(event.getX(), event.getY())) { // checks if the mouse click is in a shape\r\n System.out.println(\"selecting shit\");\r\n\r\n if (selectedElement != null) {\r\n selectedElement.setColor(Color.BLACK);\r\n repaint();\r\n selectedElement = null;\r\n }\r\n\r\n selectedElement = shapes.get(i);\r\n selectedElement.setColor(Color.BLUE);\r\n repaint();\r\n break;\r\n\r\n } else if (selectedElement != null) {\r\n System.out.println(\"deselecting shit\");\r\n selectedElement.setColor(Color.BLACK);\r\n repaint();\r\n selectedElement = null;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n\r\n if (event.getButton() == MouseEvent.BUTTON3 && selectedElement != null) { // on right mouse press shape is DELETED\r\n System.out.println(\"BUTTON TWO ASDFGHJKL;\");\r\n shapes.remove(selectedElement);\r\n selectedElement = null;\r\n repaint();\r\n }\r\n\r\n\r\n\r\n }",
"public void draw(){\n\t\tif(selected){\n\t\t\timg.draw(xpos,ypos,scale,Color.blue);\n\t\t}else{\n\t\t\timg.draw(xpos, ypos, scale);\n\t\t}\n\t}",
"public void drawLoadMenu(){\n implementation.devDrawLoadMenu();\n }",
"private void drawSelectedEntities(Graphics2D g2d, RenderContext myrc, Set<String> sel, Set<String> sticks, int txt_h) {\n\tStroke orig_stroke = g2d.getStroke(); g2d.setStroke(new BasicStroke(3.0f));\n\n\t// Draw the selected entities - outline the shape with red and draw labels if appropriate\n\tIterator<String> it = sel.iterator();\n\twhile (it.hasNext()) { \n\t String node = it.next(); String node_coord = entity_to_sxy.get(node);\n\t Shape shape = myrc.node_to_geom.get(node_coord);\n\t if (shape != null) {\n\t g2d.setColor(RTColorManager.getColor(\"linknode\", \"movenodes\")); g2d.draw(shape);\n\t if (myrc.node_lm != null && sel.size() < 100 && sticks.contains(node) == false) { \n\t // Bound it by 100... otherwise, it's going to be unreasonable\n\t myrc.node_lm.draw(g2d, node_coord, (int) shape.getBounds().getCenterX(), (int) shape.getBounds().getMaxY(), true);\n }\n }\n\t}\n\n\t// Draw the sticky labels\n\tit = sticks.iterator();\n\twhile (it.hasNext()) {\n\t String node = it.next(); String node_coord = entity_to_sxy.get(node);\n\t Shape shape = myrc.node_to_geom.get(node_coord);\n\t if (shape != null && myrc.node_lm != null) {\n\t myrc.node_lm.draw(g2d, node_coord, (int) shape.getBounds().getCenterX(), (int) shape.getBounds().getMaxY(), true);\n }\n\t}\n\tg2d.setStroke(orig_stroke);\n\n\t// Provide information on what's selected\n g2d.setColor(RTColorManager.getColor(\"label\", \"default\"));\n g2d.drawString(\"\" + sel.size() + \" Selected\", 5, txt_h);\n\n\tint x_off = Utils.txtW(g2d, \"\" + sel.size() + \" Selected\");\n\n // Print the mode string... doesn't really belong here...\n String str = \"| \" + mode();\n\tmodeColor(g2d);\n g2d.drawString(\"\" + str, 10 + x_off, txt_h);\n }",
"public void draw_cursor(){\n }",
"protected void selectRenderables(DrawContext dc)\n {\n ArrayList<GraticuleTile> tileList = getVisibleTiles(dc);\n if (tileList.size() > 0)\n {\n for (GraticuleTile gz : tileList)\n {\n // Select tile visible elements\n gz.selectRenderables(dc);\n }\n }\n }",
"public abstract Vector getDrawPosition(Rectangle selectionBox);",
"@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tgc.setFont(new Font(mainFrame.getDisplay(),\"楷体\",40,SWT.BOLD));\n\t\t\t\tgc.setAlpha(255);\n\t\t\t\tgc.setForeground(new Color(mainFrame.getDisplay(),255,255,255));\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t gc.drawString(\"设置选项\", 342, 285,true);\n\t\t\t\t\t changeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"帮助信息\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"关于游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"退出游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"经典模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"时间模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"冒险闯关\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"联网对战\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcanvas.redraw();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}",
"public void doCut()\n {\n bothToolClicked(map.selectedHexesIterator(), true);\n }",
"private void drawSelectOval(Canvas canvas) {\n canvas.save();\n if (mRectFSelectPointList.isEmpty()) {\n return;\n }\n for (int i = 0; i < mRectFSelectPointList.size(); i++) {\n mSelectOvalPaint.setStyle(Paint.Style.STROKE);\n mSelectOvalPaint.setStrokeWidth(mSelectOvalStrokeWidth);\n if (MATCH_STATUS_MATCH_FAILED == mMatchStatus) {\n mSelectOvalPaint.setColor(mSelectOvalStrokeErrorColor);\n } else {\n mSelectOvalPaint.setColor(mSelectOvalStrokeColor);\n }\n canvas.drawCircle(mRectFSelectPointList.get(i).centerX(), mRectFSelectPointList.get(i).centerY(),\n mSelectOvalRadius - mSelectOvalStrokeWidth / 2.0f, mSelectOvalPaint);\n\n mSelectOvalPaint.setStyle(Paint.Style.FILL);\n if (MATCH_STATUS_MATCH_FAILED == mMatchStatus) {\n mSelectOvalPaint.setColor(mSelectOvalSolidErrorColor);\n } else {\n mSelectOvalPaint.setColor(mSelectOvalSolidColor);\n }\n canvas.drawCircle(mRectFSelectPointList.get(i).centerX(), mRectFSelectPointList.get(i).centerY(),\n mSelectOvalRadius - mSelectOvalStrokeWidth, mSelectOvalPaint);\n }\n canvas.restore();\n }",
"abstract public char drawGadget(Vect position);",
"@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tselect();\n\t\te.consume();\n\t}",
"public void drawSelectedStyle(Graphics2D g2) {\n final int PADDING = 2;\n final Color selectColor = new Color(100, 100, 100);\n\n final BasicStroke dashed = new BasicStroke(1.0f, BasicStroke.CAP_BUTT,\n BasicStroke.JOIN_MITER, 10.0f, new float[] {2f}, 0.0f);\n\n final Rectangle inRectangle = new Rectangle(bounds.x + PADDING, bounds.y\n + PADDING, bounds.width - 2 * PADDING,\n bounds.height - 2 * PADDING);\n\n final Rectangle outRectangle = new Rectangle(bounds.x - PADDING, bounds.y\n - PADDING, bounds.width + 2 * PADDING,\n bounds.height + 2 * PADDING);\n\n g2.setStroke(dashed);\n g2.setColor(selectColor);\n\n g2.drawRect(inRectangle.x, inRectangle.y, inRectangle.width,\n inRectangle.height);\n g2.drawRect(outRectangle.x, outRectangle.y, outRectangle.width,\n outRectangle.height);\n }",
"private void determineMenuSelection(String filePath) throws IOException {\n\t\tBufferedImage currentImage = Utils.readInImage(filePath);\n\t\tArrayList<Rectangle> boxes = model.getTemplateBoxes();\n\t\tArrayList<Rectangle> used = new ArrayList<>();\n\t\tdetermineInitSelections(boxes, used, currentImage);\n\t\tfor(int i = 7; i < boxes.size(); i++) { // Start at i = 2 for initial selections\n\t\t\t\n\t\t\tif(!used.contains(boxes.get(i))) {\n\t\t\t\tboolean a = searchBlackPixels(boxes.get(i), currentImage);\n\t\t\t\tboolean b = searchBlackPixels(boxes.get(i + 5), currentImage);\n\t\t\t\tif(a) {\n\t\t\t\t\tmodel.getSelections()[i] = 'A';\n\t\t\t\t\tused.add(boxes.get(i));\n\t\t\t\t\tused.add(boxes.get(i + 5));\n\t\t\t\t} else if(b) {\n\t\t\t\t\tmodel.getSelections()[i] = 'B';\n\t\t\t\t\tused.add(boxes.get(i));\n\t\t\t\t\tused.add(boxes.get(i + 5));\n\t\t\t\t} else {\n\t\t\t\t\tmodel.getSelections()[i] = 'A';\n\t\t\t\t\tused.add(boxes.get(i));\n\t\t\t\t\tused.add(boxes.get(i + 5));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void drawButton(String s, int X, int Y, int margin, Graphics2D g2) {\n Color preColor=g2.getColor();\n // If the button data arrays doesn't already contain a button with the same name, then add it to the data arrays\n if(!buttonNames.contains(s.substring(0, 2))) {\n buttonNames.add(s.substring(0, 2));\n buttonBounds.add(new Rectangle(X, Y, 150, 50 - margin * 2));\n buttonVisibilities.add(true);\n }\n // Set the button visibility to true so it can be clicked\n buttonVisibilities.set(buttonNames.indexOf(s.substring(0, 2)), true);\n\n // Check if the latest mouse coordinates overlapped with the button's bounding box\n Rectangle r=new Rectangle(X, Y, 150, 50-margin*2);\n if(r.contains(mX, mY)) {\n // If the mouse isn't pressed, just show the hover color\n if(!mDown) g2.setColor(Color.LIGHT_GRAY);\n // If it is pressed, show the pressed color\n else g2.setColor(Color.GRAY);\n // Draw the actual background\n g2.fillRect((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight());\n }\n g2.setColor(Color.BLACK);\n // Draw the outline for the button\n g2.drawRect((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight());\n // Draw the button label\n drawCenteredString(s, X+75, Y+(50-margin*2)/2, STANDARD_FONT, g2);\n\n // Set the graphic's color to what is was before the calling of this method\n g2.setColor(preColor);\n }",
"public void beginSelecting() {\r\n selecting = true;\r\n minX = 0;\r\n maxX = 0;\r\n }",
"ZHDraweeView mo91981h();",
"private void generateTogglePen () {\n HBox toggleBox = new HBox();\n ToggleButton penToggle = new ToggleButton(); // Up is false\n createPenToggleString(penToggle);\n penToggle.selectedProperty().addListener(e -> togglePenStatus(penToggle));\n toggleBox.getChildren().addAll(new Text(myStringResources.getString(\"penToggle\")),\n penToggle);\n myDialogVBox.getChildren().add(toggleBox);\n }",
"public static int getDrawingTool(){ return selectedDrawingTool; }",
"@Override\r\n\t\t\t\tpublic void mouseClicked(final MouseEvent e) {\n\t\t\t\t\tSelectionNumeroCarteFidelite2.this.interfacePrecedente.setEnabled(true);\r\n\t\t\t\t\tSelectionNumeroCarteFidelite2.this.interfacePrecedente.setVisible(true);\r\n\t\t\t\t\tSelectionNumeroCarteFidelite2.this.dispose();\r\n\t\t\t\t}",
"private void paintCursor() {\r\n }",
"public void characterSelected(CharacterSelectionEvent e);",
"public void display2() { // for drag action -> color change\n stroke (255);\n fill(0,255,255);\n ellipse (location.x, location.y, diameter, diameter);\n }",
"public void selectionChanged(DrawingView view) {\n setupAttributes();\n }",
"public void selectAt(MouseEvent e) {\r\n \t\tactivateSelect();\r\n \t\tmouseListner.mousePressed(e);\r\n \t}",
"private void updateInfoBarOnClick() {\n\t\tif (!selectedList.isEmpty()) {\n\t\t\tStringBuilder label = new StringBuilder(\"Se selecciono: \");\n\t\t\tfor (Render<? extends MovableDrawing> selectedDrawing : selectedList) {\n\t\t\t\tlabel.append(selectedDrawing.getFigure().toString()).append(\", \");\n\t\t\t}\n\t\t\tlabel.setLength(label.length() - 2);\n\t\t\tstatusPane.updateStatus(label.toString());\n\t\t} else {\n\t\t\tstatusPane.updateStatus(\"Ninguna figura encontrada\");\n\t\t}\n\t}",
"public void mouseReleased(MouseEvent e) {\n int modifiers = e.getModifiers();\n Point point = e.getPoint();\n \n if (super.toolHandler == null) {\n return;\n } else if (!super.toolHandler.supportsTool(ToolBox.TOOL_RECTANGLE_SELECT)) {\n return;\n }\n \n if ((modifiers & MouseEvent.BUTTON1_MASK) != 0) {\n int x = Math.min(startPoint.x, point.x);\n int y = Math.min(startPoint.y, point.y);\n int width = Math.max(startPoint.x, point.x) - x;\n int height = Math.max(startPoint.y, point.y) - y;\n \n Rectangle r = new Rectangle(x,y,width,height);\n \n if (e.isControlDown()) {\n super.toolHandler.addShapeSelection(r);\n } else {\n super.toolHandler.shapeSelect(r);\n }\n }\n }",
"@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tclickPoint = e.getPoint();\r\n\t\t\t\tselectionBounds = null;\r\n//\t\t\t\tSystem.out.println(\"Bac dau\" + e.getPoint().toString());\r\n\t\t\t\tbacdauX = (int) e.getPoint().getX();\r\n\t\t\t\tbacdauY = (int) e.getPoint().getY();\r\n\t\t\t}",
"public void setSelection(Pair selection);",
"@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}",
"void onSelection( Event ev ) {\n Rectangle bounds = chevron.getBounds();\n Event event = new Event();\n event.detail = SWT.ARROW;\n if ( (parent.style & SWT.VERTICAL) != 0 ) {\n event.x = bounds.x + bounds.width;\n event.y = bounds.y;\n } else {\n event.x = bounds.x;\n event.y = bounds.y + bounds.height;\n }\n // postEvent (SWT.Selection, event);\n event.widget = this;\n for ( int i = 0; i < selectionListeners.size(); i++ ) {\n ((SelectionListener) selectionListeners.get( i ))\n .widgetSelected( new SelectionEvent( event ) );\n }\n \n }",
"public SelectSheetLayerPrintPanel() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n \r\n\r\n\t}",
"protected void drawButtons() {\n\t\tint spaceX = 50;\n\t\tint spaceY = 500;\t\n\t\t\n\t\tint aux = 1;\n\t\tfor(int i = 65; i < 91; i++) {\n\n\t\t\tLetterButton button = new LetterButton((char) i, (25 + spaceX ) * aux, spaceY);\n\t\t\taux++;\n\t\t\tif(aux == 14) {\n\t\t\t\tspaceY += 25 + 50;\n\t\t\t\taux = 1;\n\t\t\t}\n\t\t\tthis.add(button);\n\t\t}\n\t\t\n\t}",
"public void paintComponent(Graphics g)\n {\n\t\n\t\tg.drawImage(img1, 0, 0, 1000,800, this);\n\t\t\n\t\tg.setColor(textColor);\n\t\t\n\t\tg.drawOval(selectionOvalX, selectionOvalY, selectionOvalHeight, selectionOvalWidth);\n\t\t\n\t\tg.drawString(title, 50, 50);\n\t\t\n\t\tg.drawString(chooseName, 50, 90);\n\t\tg.drawString(retMain, 50, 130);\n\t\tg.drawString(start, 50, 150);\n\t\t\n\t\t//IMPORTANT: PLACEHOLDERS!!\n\t\t\n\t\t/*\n\t\tg.drawString(levelOne, 50, 100);\n\t\tg.drawString(levelTwo, 50, 120);\n\t\tg.drawString(levelThree, 50, 140);\n\t\tg.drawString(levelFour, 50, 160);\n\t\tg.drawString(exit, 50, 180);\n\t\t*/\n\t\t\n\t\t\n\t\t// IMPORTANT: keep note of these x and y positions, they correspond to the selection areas for getSelection\n\t\t//g.drawString(playGame, 50, 100);\n\t\t//g.drawString(highScores, 50, 120);\n\t\t//g.drawString(options, 50, 140);\n\t\t//g.drawString(exit, 50, 160);\n }",
"private void paintSelectingPart(int fromSample, int toSample) {\r\n\t\tGraphics g = getGraphics();\r\n\t\tif (g != null) {\r\n\t\t\tif (SELECT_ALL_CHANNELS || getChannelCount() == 1) {\r\n\t\t\t\t// assumes that above and below graphs is nothing\r\n\t\t\t\tg.setClip(getGraphBounds(ALL_CHANNELS));\r\n\t\t\t} else if (SELECT_LEFT) {\r\n\t\t\t\tg.setClip(getGraphBounds(0));\r\n\t\t\t} else if (SELECT_RIGHT) {\r\n\t\t\t\tg.setClip(getGraphBounds(1));\r\n\t\t\t}\r\n\t\t\tint pixelFrom = toPixelX(fromSample);\r\n\t\t\tint width = toPixelEndX(toSample) - pixelFrom + 1;\r\n\t\t\tg.clipRect(pixelFrom + pv.graphX, 0, width, pv.height);\r\n\t\t\tpaintGraphArea(g);\r\n\t\t\tg.dispose();\r\n\t\t}\r\n\t}",
"private void drawSelectedToolArea (IEditableByTool imageModel, Point<Integer> endPoint, int maxWidth, int maxHeight){\n List<Pixel> arrayList = new ArrayList<>();\n\n int minX = Math.max((startPoint.getX() < endPoint.getX()) ? startPoint.getX() : endPoint.getX(),0);\n int maxX = Math.min((startPoint.getX() > endPoint.getX()) ? startPoint.getX() : endPoint.getX(),maxWidth - 1);\n int minY = Math.max((startPoint.getY() < endPoint.getY()) ? startPoint.getY() : endPoint.getY(),0);\n int maxY = Math.min((startPoint.getY() > endPoint.getY()) ? startPoint.getY() : endPoint.getY(),maxHeight - 1);\n\n for(int i = minX; i <= maxX; i++){\n if (i % 5 == 0){\n arrayList.add(new Pixel(i, minY, paintColor));\n arrayList.add(new Pixel(i, maxY, paintColor));\n }\n\n }\n for(int j = minY + 1; j < maxY; j++){\n if (j % 5 == 0) {\n arrayList.add(new Pixel(minX, j, paintColor));\n arrayList.add(new Pixel(maxX, j, paintColor));\n }\n }\n\n imageModel.addToSelectOverlay(arrayList);\n\n }",
"public void mouseClicked(MouseEvent e)\n \t\t{\n \t\t\tif(cardIdSelected!=-1){\n \t\t\t\tif(!isRightSide(getFakePos(e.getX(), e.getY()).x)){\n \t\t\t\t\tlisteMissiles.add(getFakePos(e.getX(), e.getY()));\n \t\t\t\t\tcardIdSelected = -1;\n \t\t\t\t\trepaint();\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(isRightSide(getFakePos(e.getX(), e.getY()).x))\n \t\t\t\tFill(e.getX(), e.getY(),(e.getX()+1*caseDim.x),(e.getY()+1*caseDim.y));\n\n \t\t}",
"public void setOperation(Set<String> sel) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> new_sel = new HashSet<String>(), old_sel;\n if (last_shft_down && last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.retainAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else if (last_shft_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.removeAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else if ( last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.addAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else new_sel = sel;\n getRTParent().setSelectedEntities(new_sel);\n }",
"@Override\n protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {\n }",
"private void define_select_color(){\n\n TextView white_panel = (TextView) findViewById(R.id.palette_white);\n TextView black_panel = (TextView) findViewById(R.id.palette_black);\n TextView red_panel = (TextView) findViewById(R.id.palette_red);\n TextView blue_panel = (TextView) findViewById(R.id.palette_blue);\n\n white_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=WHITE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n black_panel.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n selected_color=BLACK;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n red_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = RED;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n blue_panel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selected_color = BLUE;\n canvasView.setPaintColor(getSelectedColor(selected_color));\n }\n });\n\n\n\n }",
"public void mouseClicked(MouseEvent e) {\n\t\t\tint x = e.getX();\n\t\t\tint y = e.getY();\n\n\t\t\t// selected area is highlighted by drawing a rectangle around it\n\t\t\t// areaLabel flashes the name of the area selected\n\t\t\tif ((x >= 230 && x <= 329) && (y >= 155 && y <= 295)) {\n\n\t\t\t\tsection = new Rectangle(230, 155, 99, 140);\n\t\t\t\trepaint();\n\t\t\t\tsectionLabel.setText(\"TOILET 1\");\n\n\t\t\t\tid = 1;\n\n\t\t\t} else if ((x >= 319 && x <= 480) && (y >= 225 && y <= 507)) {\n\t\t\t\tsection = new Rectangle(319, 225, 161, 282);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"BEDROOM 1\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 2;\n\n\t\t\t} else if ((x >= 478 && x <= 651) && (y >= 226 && y <= 437)) {\n\t\t\t\tsection = new Rectangle(478, 226, 173, 211);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"LIVING ROOM\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 3;\n\n\t\t\t} else if ((x >= 478 && x <= 686) && (y >= 450 && y <= 581)) {\n\t\t\t\tsection = new Rectangle(478, 450, 208, 131);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"DINING ROOM\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 4;\n\n\t\t\t} else if ((x >= 654 && x <= 779) && (y >= 227 && y <= 405)) {\n\t\t\t\tsection = new Rectangle(654, 227, 125, 178);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"KITCHEN\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 5;\n\n\t\t\t} else if ((x >= 776 && x <= 929) && (y >= 225 && y <= 404)) {\n\t\t\t\tsection = new Rectangle(776, 225, 153, 179);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"BEDROOM 2\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 6;\n\n\t\t\t} else if ((x >= 688 && x <= 782) && (y >= 460 && y <= 589)) {\n\t\t\t\tsection = new Rectangle(688, 460, 94, 129);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"TOILET 2\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 7;\n\t\t\t} else if ((x >= 929 && x <= 1094) && (y >= 226 && y <= 486)) {\n\t\t\t\tsection = new Rectangle(929, 224, 165, 262);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"MASTER BEDROOM\");\n\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 8;\n\n\t\t\t} else if ((x >= 958 && x <= 1095) && (y >= 489 && y <= 590)) {\n\t\t\t\tsection = new Rectangle(958, 489, 137, 101);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"TOILET 3\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 9;\n\n\t\t\t} else if ((x >= 346 && x <= 1095) && (y >= 138 && y <= 223)) {\n\t\t\t\tsection = new Rectangle(346, 138, 748, 85);\n\t\t\t\trepaint();\n\n\t\t\t\tsectionLabel.setText(\"BALCONY\");\n\t\t\t\tsectionLabel.revalidate();\n\n\t\t\t\tid = 10;\n\t\t\t} else {\n\t\t\t\tsection = null;\n\t\t\t\tsectionLabel.setText(\"\");\n\n\t\t\t\tid = 0;\n\t\t\t}\n\n\t\t}",
"private void sFCButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tfinal SelectColor sASelectColor=new SelectColor(mAnnotation.getFillColor());\n\t\tsASelectColor.setOKListener( new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tColor clr = sASelectColor.getColor();\n\t\t\t\tpreview.setFillColor(clr);\n\t\t\t\tpreviewPanel.repaint();\n\t\t\t}\n\t\t});\n\t\n\t\tsASelectColor.setSize(435, 420);\n\t\tsASelectColor.setVisible(true);\n\t\t//1 -> FillColor\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tinfomation.drawSet();\n\t\t\t}",
"void colorOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb2.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strColor[0]) { // if \"Black\" selected\r\n System.out.println(\"Black of menu Color is selected.\");\r\n System.out.println(\"calling method black().\");\r\n ge.black(gra); // call method black() of class PaintTool\r\n System.out.println(\"method black() executed.\");\r\n } else if (selStr == strColor[1]) { // if \"Red\" selected\r\n System.out.println(\"Red of menu Color is selected.\");\r\n System.out.println(\"calling method red().\");\r\n ge.red(gra); // call method red() of class PaintToll\r\n System.out.println(\"method red() executed.\");\r\n } else if (selStr == strColor[2]) { // if \"Green\" selected\r\n System.out.println(\"Green of menu Color is selected.\");\r\n System.out.println(\"calling method green().\");\r\n ge.green(gra); // call method green() of class PaintTool\r\n System.out.println(\"method green() executed.\");\r\n } else if (selStr == strColor[3]) { // if \"Blue\" selected\r\n System.out.println(\"Blue of menu Color is selected.\");\r\n System.out.println(\"calling method blue().\");\r\n ge.blue(gra); // call method blue() of class PaintToll\r\n System.out.println(\"method blue() executed.\");\r\n }\r\n }",
"@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif (selected != null) {\r\n\t\t\tselected.setBackground(null);\r\n\t\t\tselected.rename.setVisible(false);\r\n\t\t\tselected.name.setVisible(true);\r\n\t\t}\r\n\t\tallowAction = true;\r\n\t\tselected = this;\r\n\t\tselected.setBackground(Color.gray);\r\n\t\tSystem.out.println(\"Node: \" + selected.get_path());\t\t\r\n\r\n\t}",
"public void mouseClicked(MouseEvent event) {\n\t\tif (toSelectOrNot) {\n\t \t\tPoint p = event.getPoint();\n\t \t\tselectCmd.addToSet(dwg, p);\n\t \t\trepaint();\n\t\t}\n\t }",
"@Override\n\tvoid draw(Graphics g) {\n\t\tg.setColor(needsHighlight() ? selectColor : Color.GRAY);\n\t\tsetBbox(x, y, x2, y2);\n\t\tif (x < x2 && y < y2)\n\t\t\tg.fillRect(x, y, x2 - x, y2 - y);\n\t\telse if (x > x2 && y < y2)\n\t\t\tg.fillRect(x2, y, x - x2, y2 - y);\n\t\telse if (x < x2 && y > y2)\n\t\t\tg.fillRect(x, y2, x2 - x, y - y2);\n\t\telse\n\t\t\tg.fillRect(x2, y2, x - x2, y - y2);\n\t}",
"@Override\n public void paint(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n switch (type) {\n case TYPE_TEXT:\n Rectangle rect = new Rectangle(getLocalX(), getLocalY(), getRealWidth(), getRealHeight());\n PaintComp.paintText(g, getText(), rect, getFont(), this.getForeground(), getHorizontalAlignment(), getVerticalAlignment(), text_eNumeric, true);\n break;\n case TYPE_BANDA:\n super.paint(g);\n break;\n case TYPE_IMAGE:\n PaintComp.paintImage(g2, getText(), image_drawMode, getRealWidth(), getRealHeight(), getLocalX(), getLocalY(), true);\n break;\n }\n // add handlers\n if (selected) {\n lHandlers = new ArrayList<>();\n if (type != Types.TYPE_BANDA) {\n // colturi\n lHandlers.add(new EtiHandler(getLocalX() + getRealWidth(), getLocalY(), Cursor.NE_RESIZE_CURSOR));\n lHandlers.add(new EtiHandler(getLocalX(), getLocalY() + getRealHeight(), Cursor.SW_RESIZE_CURSOR));\n lHandlers.add(new EtiHandler(getLocalX(), getLocalY(), Cursor.NW_RESIZE_CURSOR));\n lHandlers.add(new EtiHandler(getLocalX() + getRealWidth(), getLocalY() + getRealHeight(), Cursor.SE_RESIZE_CURSOR));\n // mijloace\n lHandlers.add(new EtiHandler(getLocalX(), getLocalY() + getRealHeight() / 2, Cursor.W_RESIZE_CURSOR));\n lHandlers.add(new EtiHandler(getLocalX() + getRealWidth(), getLocalY() + getRealHeight() / 2, Cursor.E_RESIZE_CURSOR));\n lHandlers.add(new EtiHandler(getLocalX() + getRealWidth() / 2, getLocalY(), Cursor.N_RESIZE_CURSOR));\n lHandlers.add(new EtiHandler(getLocalX() + getRealWidth() / 2, getLocalY() + getRealHeight(), Cursor.S_RESIZE_CURSOR));\n }\n PaintComp.paintHandlers(g2, lHandlers);\n } else {\n lHandlers = new ArrayList<>();\n }\n\n }",
"@Override\n public void mouseReleased(MouseEvent e) {\n\n // 2D mode\n if (getChart().getView().is2D()) {\n View view = getChart().getView();\n applyMouse2DSelection(view);\n }\n }",
"public void rightRegionSelections() {\n setPositionSelcted(true);\n\n //setting gamescreen background as per region of position selected\n gameScreenBackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field_zones_rf_on);\n\n //changing position image sources as adjacent to half selected and far positons to empty backgrounds to position buttons\n rfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.rf_player_selected);\n twoBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.twob_player_selected);\n oneBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.oneb_player_selected);\n\n cfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.cf_player_half_selected);\n pTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.p_player_half_selected);\n cTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.c_player_half_selected);\n\n lfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.lf_player_unselected);\n ssTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.ss_player_unselected);\n threeBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.threeb_player_unselected);\n\n\n cfTextView.setSelected(false);\n pTextView.setSelected(false);\n cTextView.setSelected(false);\n\n lfTextView.setSelected(false);\n ssTextView.setSelected(false);\n threeBTextView.setSelected(false);\n\n if (rfTextView.isSelected()) {\n rfTextView.setSelected(true);\n oneBTextView.setSelected(false);\n oneBTextView.setSelected(false);\n\n } else if (twoBTextView.isSelected()) {\n twoBTextView.setSelected(true);\n oneBTextView.setSelected(false);\n\n } else if (oneBTextView.isSelected()) {\n oneBTextView.setSelected(true);\n }\n\n //setting top field points visibility as per positions selections\n rightFieldpoints.setVisibility(View.VISIBLE);\n leftFieldPoints.setVisibility(View.VISIBLE);\n centerFieldPoints.setVisibility(View.VISIBLE);\n\n //setting top field points as per selections\n rightFieldpoints.setText(\"+20\");\n leftFieldPoints.setText(\"+5\");\n centerFieldPoints.setText(\"+10\");\n\n //changing top field points text color as per selections\n rightFieldpoints.setTextColor(Color.parseColor(\"#ffffff\"));\n centerFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n leftFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n\n //swh is disable\n swhImageView.setSelected(false);\n swhImageView.setEnabled(true);\n\n //close guesses enabling\n closePlayButton.setAlpha((float)1);\n closePlayButton.setEnabled(true);\n\n }",
"public void fieldClicked(HexPoint point, boolean ctrl, boolean shift)\n {\n if (m_guiboard.areStonesDirty()) {\n m_guiboard.clearMarks();\n }\n \n if (ctrl) {\n \n if (!shift) {\n for (int i=0; i<m_selected_cells.size(); i++) {\n HexPoint p = m_selected_cells.get(i);\n m_guiboard.setSelected(p, false);\n }\n m_selected_cells.clear();\n \n m_guiboard.setSelected(point, true);\n m_selected_cells.add(point);\n } else {\n \n int found_at = -1;\n for (int i=0; i<m_selected_cells.size() && found_at == -1; i++) {\n if (m_selected_cells.get(i) == point) \n found_at = i;\n }\n \n if (found_at != -1) {\n m_guiboard.setSelected(point, false);\n m_selected_cells.remove(found_at);\n } else {\n m_guiboard.setSelected(point, true);\n m_selected_cells.add(point);\n }\n }\n \n m_guiboard.repaint();\n \n } else {\n \n String context = m_toolbar.getClickContext();\n if (context.equals(\"play\")) {\n if (m_guiboard.getColor(point) == HexColor.EMPTY) {\n humanMove(new Move(point, m_tomove));\n }\n } else if (context.equals(\"black\")) {\n if (m_guiboard.getColor(point) == HexColor.EMPTY) {\n addSetupMove(new Move(point, HexColor.BLACK));\n }\n } else if (context.equals(\"white\")) {\n if (m_guiboard.getColor(point) == HexColor.EMPTY) {\n addSetupMove(new Move(point, HexColor.WHITE));\n }\n }\n }\n }",
"public void displaySelectedFeatures(Set<FeatureId> IDs) {\n Style style;\n\n if (IDs.isEmpty()) {\n style = createDefaultStyle();\n\n } else {\n style = createSelectedStyle(IDs);\n }\n\n Layer layer = mapFrame.getMapContent().layers().get(0);\n ((FeatureLayer) layer).setStyle(style);\n mapFrame.getMapPane().repaint();\n}",
"public void dispatchDraw(Canvas canvas) {\n if (this.mSelectHei > 0) {\n canvas.save();\n canvas.clipPath(this.mSelectDrawablePath);\n if (this.mSelectDrawableBac != null) {\n this.mSelectDrawableBac.setBounds(this.mSelectDrawableRectBac);\n this.mSelectDrawableBac.draw(canvas);\n }\n if (this.mSelectDrawable != null) {\n this.mSelectDrawable.setBounds(this.mSelectDrawableRect);\n this.mSelectDrawable.draw(canvas);\n }\n canvas.restore();\n }\n super.dispatchDraw(canvas);\n }",
"private void selectMenu()\n\t{\n\t\t//clear the panel first\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"Select two rows to inspect data:\");\n\t\t\n\t\t//set up panel\n\t\tgetPanel1().setLayout(null);\n\t\tadd(getPanel1(),BorderLayout.CENTER);\n\t\t\n\t\t//add buttons to panel\n\t\tgetPanel1().add(getButton1());\n\t\tgetPanel1().add(getTopics1());\n\t\tgetPanel1().add(getTopics2());\n\t\tgetPanel1().add(label1);\n\t\t\n\t\t\n\t\t//manually set their position\n\t\tlabel1.setBounds(380,10,400,40);\n\t\tgetButton1().setBounds(430,350,230,60);\n\t\tgetTopics1().setBounds(430,80,230,60);\n\t\tgetTopics2().setBounds(430,215,230,60);\n\n\t\tlabel1.setFont(new Font(\"Serif\", Font.CENTER_BASELINE, 24));\t\n\t}",
"public void leftRegionSelections() {\n\n setPositionSelcted(true);\n\n //setting gamescreen background as per region of position selected\n gameScreenBackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field_zones_lf_on);\n\n/**\n **changing position image sources as selected reion positins to selected backrounds\n **adjacent to half selected and\n **far positons to empty backgrounds to position buttons\n **/\n\n lfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.lf_player_selected);\n threeBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.threeb_player_selected);\n ssTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.ss_player_selected);\n\n rfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.rf_player_unselected);\n twoBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.twob_player_unselected);\n oneBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.oneb_player_unselected);\n\n cfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.cf_player_half_selected);\n pTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.p_player_half_selected);\n cTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.c_player_half_selected);\n\n if (lfTextView.isSelected()) {\n lfTextView.setSelected(true);\n } else if (threeBTextView.isSelected()) {\n threeBTextView.setSelected(true);\n } else if (ssTextView.isSelected()) {\n ssTextView.setSelected(true);\n }\n\n rfTextView.setSelected(false);\n twoBTextView.setSelected(false);\n oneBTextView.setSelected(false);\n\n cfTextView.setSelected(false);\n pTextView.setSelected(false);\n cTextView.setSelected(false);\n\n rightFieldpoints.setVisibility(View.VISIBLE);\n leftFieldPoints.setVisibility(View.VISIBLE);\n centerFieldPoints.setVisibility(View.VISIBLE);\n\n rightFieldpoints.setText(\"+5\");\n leftFieldPoints.setText(\"+20\");\n centerFieldPoints.setText(\"+10\");\n\n rightFieldpoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n centerFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n leftFieldPoints.setTextColor(Color.parseColor(\"#ffffff\"));\n\n //swh is disable\n swhImageView.setSelected(false);\n swhImageView.setEnabled(true);\n\n //close guesses enabling\n closePlayButton.setAlpha((float)1);\n closePlayButton.setEnabled(true);\n\n }"
]
| [
"0.670185",
"0.66182995",
"0.6446747",
"0.6291031",
"0.6279142",
"0.62745106",
"0.6185351",
"0.6084823",
"0.60728085",
"0.60675615",
"0.6053217",
"0.6048486",
"0.6020682",
"0.60193163",
"0.6011292",
"0.58877367",
"0.5854761",
"0.5834943",
"0.5828598",
"0.5805072",
"0.5766715",
"0.57582414",
"0.575535",
"0.5748927",
"0.5729695",
"0.57260877",
"0.5685513",
"0.5681141",
"0.5655959",
"0.5646314",
"0.5638129",
"0.56322217",
"0.5630971",
"0.5627369",
"0.5615215",
"0.5614775",
"0.5612932",
"0.5603556",
"0.5597776",
"0.55933255",
"0.55907255",
"0.55877393",
"0.558629",
"0.5578481",
"0.5574317",
"0.55718976",
"0.55671334",
"0.55662316",
"0.5557301",
"0.5550123",
"0.5547014",
"0.5544469",
"0.5530532",
"0.55277294",
"0.55273986",
"0.5514509",
"0.5503295",
"0.5502875",
"0.5500144",
"0.54998547",
"0.5489404",
"0.5479645",
"0.54735",
"0.5469094",
"0.5466771",
"0.5465499",
"0.54651433",
"0.54566693",
"0.54528314",
"0.54446894",
"0.54436976",
"0.5443282",
"0.54429704",
"0.5438927",
"0.5434298",
"0.54329115",
"0.5432237",
"0.5428008",
"0.5427489",
"0.54262036",
"0.5423785",
"0.542351",
"0.5421032",
"0.5413106",
"0.5411096",
"0.541035",
"0.54091877",
"0.540347",
"0.5399783",
"0.53949475",
"0.53914356",
"0.5384731",
"0.5380535",
"0.5379917",
"0.5370962",
"0.5358208",
"0.53564286",
"0.53509927",
"0.53431153",
"0.5343004"
]
| 0.62228215 | 6 |
draw the left corner symbol for bomb | public void drawBomb(int x, int y) {
pushMatrix();
translate(x, y);
scale(0.4f);
smooth();
fill(200);
quad(10,21,53,21,53,55,10,55);
fill(150);
bezier(10,21,18,-4,45,-4,53,21);
beginShape();
vertex(3,65);
vertex(7,95);
vertex(22,81);
vertex(40,81);
vertex(54,95);
vertex(59,65);
vertex(49,60);
vertex(12,60);
endShape(CLOSE);
fill(200);
quad(10,55,53,55,42,77,20,77);
quad(22,81,40,81,40,77,22,77);
rect(29,65,3,30);
fill(150);
rect(29,58,3,7);
fill(220);
rect(10,45,43,10);
for(int i=0; i<=6; i++){
noStroke();
fill(206,12,12);
quad(13+6*i,46,16+6*i,46,13+6*i,55,10+6*i,55);
}
popMatrix();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void show(){\n fill(255);\n stroke(255);\n \n if (left){\n rect(0, y, size, brickLength);\n x = 0;\n }\n else{\n rect(width - size, y, size, brickLength);\n x = width - size;\n }\n }",
"@Override\r\n\tpublic void BuildArmLeft() {\n\t\tg.drawLine(60, 50, 40, 100);\r\n\t}",
"@Override\n\tpublic void buildArmLeft() {\n\t\tg.drawLine(60, 50, 30, 80);\n\t}",
"public void UIDrawing(Graphics g)\n {\n key.draw(g);\n bomb.draw(g);\n heart.setxPos(originalxPos);\n heart.setyPos(originalyPos);\n halfHeart.setxPos(originalxPos);\n halfHeart.setyPos(originalyPos);\n emptyHeart.setxPos(originalxPos);\n emptyHeart.setyPos(originalyPos);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30)); \n if(this.getKeys() < 10)\n {\n g.setColor(Color.BLACK);\n g.drawString(\": 0\" + this.getKeys(), 40 + 2, 100);\n g.drawString(\": 0\" + this.getKeys(), 40 - 2, 100);\n g.drawString(\": 0\" + this.getKeys(), 40, 100 + 2);\n g.drawString(\": 0\" + this.getKeys(), 40, 100 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": 0\"+ this.getKeys(), 40, 100);\n }\n else\n {\n g.setColor(Color.BLACK);\n g.drawString(\": \" + this.getKeys(), 40 + 2, 100);\n g.drawString(\": \" + this.getKeys(), 40 - 2, 100);\n g.drawString(\": \" + this.getKeys(), 40, 100 + 2);\n g.drawString(\": \" + this.getKeys(), 40, 100 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": \"+ this.getKeys(), 40, 100);\n }\n if(this.getBombs() < 10)\n {\n g.setColor(Color.BLACK);\n g.drawString(\": 0\" + this.getBombs(), 40 + 2, 150);\n g.drawString(\": 0\" + this.getBombs(), 40 - 2, 150);\n g.drawString(\": 0\" + this.getBombs(), 40, 150 + 2);\n g.drawString(\": 0\" + this.getBombs(), 40, 150 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": 0\"+ this.getBombs(), 40, 150);\n }\n else\n {\n g.setColor(Color.BLACK);\n g.drawString(\": \" + this.getBombs(), 40 + 2, 150);\n g.drawString(\": \" + this.getBombs(), 40 - 2, 150);\n g.drawString(\": \" + this.getBombs(), 40, 150 + 2);\n g.drawString(\": \" + this.getBombs(), 40, 150 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": \"+ this.getBombs(), 40, 150);\n }\n for(int i = 0; i < this.getMaxHp() / 2; i++)\n {\n emptyHeart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n emptyHeart.setyPos(originalyPos + 30);\n emptyHeart.setxPos(originalxPos + (35 * (i - 6)));\n }\n emptyHeart.draw(g);\n }\n for(int i = 0; i < this.getHealth() / 2; i++)\n {\n heart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n heart.setyPos(originalyPos + 30);\n heart.setxPos(originalxPos + (35 * (i - 6)));\n }\n heart.draw(g);\n if(i == this.getHealth()/2 - 0.5 && ((int)this.getHealth() % 2) != 0)\n {\n halfHeart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n halfHeart.setxPos(originalxPos + (35 * (i - 6)));\n halfHeart.setyPos(originalyPos + 30);\n }\n halfHeart.draw(g);\n }\n }\n }",
"public void draw()\n {\n Rectangle hatbox = new Rectangle(x, y, 20, 20);\n hatbox.fill();\n Rectangle brim = new Rectangle(x-10, y+20, 40, 0);\n brim.draw();\n Ellipse circle = new Ellipse (x, y+20, 20, 20);\n circle.draw();\n Ellipse circle2 = new Ellipse (x-10, y+40, 40, 40);\n circle2.draw();\n Ellipse circle3 = new Ellipse (x-20, y+80, 60, 60);\n circle3.draw();\n \n }",
"@Override\n public void draw( Graphics g )\n {\n g.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\n g.setColor( Color.BLUE );\n g.fillOval( baseX, baseY, myWidth, myHeight );\n g.setColor( Color.BLACK );\n g.drawString( card, baseX + 7, baseY + 20 ); }",
"public void drawLeftTriangle(){\n\t //This loop draws the left triangle. It also decrements the width to make the triangle more distinct.\n\t for(int j = 0; j < height; j++)\n\t {\n\t \tfor(int k = 0; k < width; k++)\n\t \t{\n\t\t\t System.out.print(appearance);\n\t\t\t \n\t\t\t System.out.print(\"\");\n\t\t\t}\n\t\t\twidth--;//Decreases width.\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t System.out.println(\"\");\n\t}",
"@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}",
"private void drawTopLeft1(Graphics g) {\r\n int pipX = 0;\r\n int pipY = 0;\r\n switch (state) {\r\n case 0:\r\n pipX = this.x + 4;\r\n pipY = this.y + 4;\r\n break;\r\n case 1:\r\n pipX = this.x - 12;\r\n pipY = this.y + 4;\r\n break;\r\n case 2:\r\n pipX = this.x - 12;\r\n pipY = this.y - 12;\r\n break;\r\n case 3:\r\n pipX = this.x + 4;\r\n pipY = this.y - 12;\r\n break;\r\n }\r\n g.fillOval(pipX, pipY, 8, 8);\r\n }",
"void drawMancalaShape(Graphics g, int x, int y, int width, int height, int stoneNum, String pitLabel);",
"private void showBomb() {\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (state[i][j] == 'X')\n stateGame[i][j] = 'X';\n }\n }\n }",
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.PINK);\r\n\t\tg.fillRect(getX(), getY(), getWidth(), getHeight());\r\n\t\t\r\n\t}",
"public void draw(){\r\n\r\n\t\t\t//frame of house\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(250,0);\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.move(0,300);\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.move(-250,0);\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\r\n\t\t\t//door\r\n\t\t\tpen.setColor(Color.blue);\r\n\t\t\tpen.setWidth(10);\r\n\t\t\tpen.move(50,0);\r\n\t\t\tpen.move(50,100);\r\n\t\t\tpen.move(-50,100);\r\n\t\t\tpen.move(-50,0);\r\n\t\t\tpen.move(0,0);\r\n\r\n\t\t\t//windows\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(-150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\r\n\t\t\t//extra\r\n\t\t\tpen.move(-45,120);\r\n\t\t\tpen.down();\r\n\t\t\tpen.setColor(Color.black);\r\n\t\t\tpen.drawString(\"This is a house\");\r\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.PINK);\n\t\tg.fillRect(getx(), gety(), getwidth(), getheight());\n\t}",
"public void med1() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 1\");\n win.setLocation(300, 10);\n win.setBackground(java.awt.Color.red);\n for(int y = -10; y < HEIGHT; y += 24) {\n for(int x = -10; x < WIDTH; x += 24) {\n octagon(x, y, g);\n }\n }\n }",
"public DrawGraphics() {\r\n box = new BouncingBox(200, 50, Color.RED);\r\n\tbox.setMovementVector(1,1);\r\n\r\n\tboxes = new ArrayList<BouncingBox>();\r\n\tboxes.add(new BouncingBox(35,40, Color.BLUE));\r\n\tboxes.get(0).setMovementVector(2,-1);\r\n\tboxes.add(new BouncingBox(120,80, Color.GREEN));\r\n\tboxes.get(1).setMovementVector(-1,2);\r\n\tboxes.add(new BouncingBox(500,80, Color.PINK));\r\n\tboxes.get(2).setMovementVector(-2,-2);\r\n }",
"public void draw(){\n\t\tSystem.out.println(\"You are drawing a CIRCLE\");\n\t}",
"public static void drawBorder(int length, char symbol){\n for (int i = 1; i <= length; i++){\n System.out.print(symbol);\n }\n System.out.println();\n }",
"@Override\r\n public void paint(Graphics g) {\r\n super.paint(g);\r\n Letter letter = new Letter(\"C\", getPosition());\r\n letter.paint(g);\r\n }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"public static void drawIncrustedLeftTriangle(final int x, final int y, final int size, final JHelpImage image)\n {\n final boolean drawMode = image.isDrawMode();\n\n if (!drawMode)\n {\n image.startDrawMode();\n }\n\n final int yy = y + (size >> 1);\n image.drawThickLine(x, yy, x + size, y, 2, 0xFF000000);\n image.drawThickLine(x, yy, x + size, y + size, 2, 0xFF808080);\n image.drawThickLine(x + size, y, x + size, y + size, 2, 0xFFFFFFFF);\n\n if (!drawMode)\n {\n image.endDrawMode();\n }\n }",
"protected void drawStartGame(){\n startBorder = new Rectangle(355, 525, 90, 50);\n startBorder.setFillColor(pink);\n startBorder.setFilled(true);\n\n startBox = new Rectangle(360, 530, 80, 40);\n startBox.setFillColor(Color.black);\n startBox.setFilled(true);\n\n startText = new GraphicsText(\"START\", 365, 555);\n startText.setFont(font);\n startText.setStrokeColor(new Color(88, 30, 220));\n\n canvas.add(startBorder);\n canvas.add(startBox);\n canvas.add(startText);\n }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(new Color(255, 0, 0));\r\n\t\tg.drawOval(mp1.getX(), mp1.getY(), 3*length, 3*length);\r\n\t\tg.setColor(new Color(0,0,255));\r\n\t\tg.drawOval(enenmy.getX(), enenmy.getY(), 3, 3);\r\n\t}",
"public void draw()\n\t{\n\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t\n\t\tfor (int i = 0; i < board_size; i++)\n\t\t{\n\t\t\tSystem.out.print(board_size - i + \" |\");\n\t\t\t\n\t\t\tfor (int j = 0; j < board_size; j++)\n\t\t\t{\n\t\t\t\tif (getPiece(i,j) == null) {System.out.print(\" |\");}\n\t\t\t\telse {System.out.print(\" \" + getPiece(i,j).getSymbol().toChar() + \" |\");}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\" A B C D E F G H \\n\");\n\t}",
"@Override\r\n public void paintComponent(Graphics g) {\r\n super.paintComponent(g); g.setColor(Color.ORANGE);\r\n if (drawCirc == 0) {\r\n \tg.fillOval(txtLft,txtTop,txtWidth,txtHeight);\r\n }\r\n }",
"abstract public char drawGadget(Vect position);",
"public void draw()\r\n {\r\n\tfinal GraphicsLibrary g = GraphicsLibrary.getInstance();\r\n\t_level.draw(g);\r\n\t_printText.draw(\"x\" + Mario.getTotalCoins(), 30, _height - 36, false);\r\n\t_printText.draw(\"C 000\", _width - 120, _height - 36, false);\r\n\t_printText.draw(Mario.getLives() + \"UP\", 240, _height - 36, false);\r\n\t_printText.draw(Mario.getPoints() + \"\", 400, _height - 36, false);\r\n\t_coin.draw();\r\n\t_1UP.draw();\r\n }",
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(this.color);\r\n\t\tg.fillOval((int)x, (int)y, side, side);\r\n\t\tg.setColor(this.color2);\r\n\t\tg.fillOval((int)x+5, (int)y+2, side/2, side/2);\r\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制五角形\");\n\t}",
"@Override\n public void paint(Graphics g) {\n if (flagged) {\n Font f = new Font(\"Times\", Font.PLAIN, 30);\n g.setFont(f);\n FontMetrics fm = g.getFontMetrics();\n int a = fm.getAscent();\n int h = fm.getHeight();\n int fl = fm.stringWidth(\"F\");\n g.setColor(new Color(170, 171, 167));\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n g.setColor(Color.WHITE);\n g.drawString(\"F\", size / 2 - fl / 2, size / 2 + a - h / 2);\n } else if (clicked) {\n //make the mines spots solid red squares\n if (mine) {\n g.setColor(Color.RED);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n } else {\n //if the spot has mines around it print the number in a specific color\n if (!numMines.equals(\"0\")) {\n Font f = new Font(\"Times\", Font.PLAIN, 30);\n g.setFont(f);\n FontMetrics fm = g.getFontMetrics();\n int a = fm.getAscent();\n int h = fm.getHeight();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n int w = fm.stringWidth(numMines);\n switch (numMines) {\n case \"1\":\n g.setColor(Color.BLACK);\n break;\n case \"2\":\n g.setColor(Color.BLUE);\n break;\n case \"3\":\n g.setColor(Color.RED);\n break;\n case \"4\":\n g.setColor(Color.GREEN);\n break;\n case \"5\":\n g.setColor(Color.ORANGE);\n break;\n case \"6\":\n g.setColor(Color.YELLOW);\n break;\n case \"7\":\n g.setColor(Color.CYAN);\n break;\n case \"8\":\n g.setColor(Color.PINK);\n break;\n default:\n break;\n }\n g.drawString(numMines, size / 2 - w / 2, size / 2 + a - h / 2);\n //if the spot has no mines around it leave it blank\n } else {\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n }\n }\n //if the spot was not clicked or flagged print the normal color\n } else {\n g.setColor(new Color(170, 171, 167));\n g.fillRect(1, 1, size - 2, size - 2);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n }\n }",
"public void draw(Graphics g) {\n\t\tg.setColor(col);\n\t\tg.fillRect(this.x, this.y, this.width, this.height);\n\t\tif((col.getRed()+col.getGreen()+col.getBlue())/3 > 127)\n\t\t\tg.setColor(Color.black);\n\t\telse\n\t\t\tg.setColor(Color.white);\n\t\tg.drawString(\"\" + this.symbol, this.x + this.width / 2 - 4, this.y\n\t\t\t\t+ this.height / 2 + 5);\n\t\tg.setColor(Color.black);\n\n\t}",
"public void draw(){\n\t\t int startRX = 100;\r\n\t\t int startRY = 100;\r\n\t\t int widthR = 300;\r\n\t\t int hightR = 300;\r\n\t\t \r\n\t\t \r\n\t\t // start points on Rectangle, from the startRX and startRY\r\n\t\t int x1 = 0;\r\n\t\t int y1 = 100;\r\n\t\t int x2 = 200;\r\n\t\t int y2 = hightR;\r\n\t\t \r\n //direction L - false or R - true\r\n\t\t \r\n\t\t boolean direction = true;\r\n\t\t \t\r\n\t\t\r\n\t\t //size of shape\r\n\t\t int dotD = 15;\r\n\t\t //distance between shapes\r\n\t int distance = 30;\r\n\t\t \r\n\t rect(startRX, startRY, widthR, hightR);\r\n\t \r\n\t drawStripesInRectangle ( startRX, startRY, widthR, hightR,\r\n\t \t\t x1, y1, x2, y2, dotD, distance, direction) ;\r\n\t\t \r\n\t\t super.draw();\r\n\t\t}",
"@Override\n public void draw(Graphics graphics){\n graphics.fillRect(referencePoint.getX() + width / 3, referencePoint.getY() + height / 3, width / 3, height / 3);\n }",
"@Override\n\tpublic void paint(Graphics g) {\n\t\n\t\tg.drawImage(desk,0,0,null);\n\t\tg.drawImage(ball,(int)x,(int)y,null);\n\t\t\n\t\t\n\t\tif(right)\n\t\t\tx+=10;\n\t\telse x-=10;\n\t\t\n\t\tif(x>856-40-30){ //856是窗口宽度,40是桌子边框的宽度,30是小球的直径\n right = false;\n }\n \n if(x<40){ //40是桌子边框的宽度\n right = true;\n }\n\t\t\n\t}",
"private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}",
"public char drawCell ()\n {\n final char ALIVE_SYMBOL = '\\u25A0';\n final char DEAD_SYMBOL = '\\u25A1';\n if (cellStatus)\n {\n return ALIVE_SYMBOL;\n }\n else\n {\n return DEAD_SYMBOL;\n }// end of if (cellStatus)\n }",
"@Override\r\n\tprotected void draw() {\n\t\tgoodCabbage = new Oval(center.x - CABBAGE_RADIUS, center.y\r\n\t\t\t\t- CABBAGE_RADIUS, 2 * CABBAGE_RADIUS, 2 * CABBAGE_RADIUS,\r\n\t\t\t\tColor.red, true);\r\n\t\twindow.add(goodCabbage);\r\n\t}",
"@Override\n public void paint(Graphics g) {\n g.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 200));\n\n g.setColor(Color.cyan);\n String GameName = \"BALLAND BAR\";\n int x_pos = 150;\n int y_pos = 300;\n int alpha = 8;\n for (int i = 0; i < GameName.length(); i++) {\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha * 0.1f));\n g.drawString(Character.toString(GameName.charAt(i)), x_pos, y_pos);\n x_pos += 150;\n // alpha -= 1;\n }\n\n g.setColor(Color.orange);\n GameName = \"GAME\";\n x_pos = 700;\n y_pos = 550;\n for (int i = 0; i < GameName.length(); i++) {\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha * 0.1f));\n g.drawString(Character.toString(GameName.charAt(i)), x_pos, y_pos);\n x_pos += 150;\n // alpha -= 1;\n }\n /*\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 7 * 0.1f));\n g.drawString(\"G\", 650, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 6 * 0.1f));\n g.drawString(\"A\", 800, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 5 * 0.1f));\n g.drawString(\"M\", 950, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 4 * 0.1f));\n g.drawString(\"E\", 1150, 300);\n\n g.setColor(Color.cyan);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 4 * 0.1f));\n g.drawString(\"N\", 650, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 5 * 0.1f));\n g.drawString(\"A\", 800, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 6 * 0.1f));\n g.drawString(\"M\", 950, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 7 * 0.1f));\n g.drawString(\"E\", 1150, 500);\n */\n }",
"public void draw() {\n if (numSides <= 6) {\n System.out.println(\"- - - - - -\");\n \n for (int i = numSides - 2; i < numSides; i++) {\n System.out.print(\" | \");\n for (int j = 0; j < this.value ; j++) {\n if (value == 1) {\n System.out.print(\" \");\n }\n if (i % 2 == 0) {\n System.out.print(\"*\");\n } else {\n System.out.print(\" \");\n }\n if (value == 1) {\n System.out.print(\" \");\n }\n }\n }\n System.out.println(\"\");\n System.out.println(\"- - - - - -\");\n } else {\n print();\n }\n }",
"public void drawBullet(){\n if (classOfObejct == 0){\n colorMode(RGB,255,255,255);\n noStroke();\n fill(255,100,30);\n ellipse(posX, posY, 6, 9);\n fill(255,153,51);\n ellipse(posX,posY, 4, 6);\n fill(255,255,100);\n ellipse(posX,posY, 2, 3);\n fill(255,255,200);\n ellipse(posX,posY, 1, 1);\n stroke(1);\n }\n else{\n colorMode(RGB,255,255,255);\n noStroke();\n fill(51,153,255);\n ellipse(posX, posY, 8, 8);\n fill(102,178,255);\n ellipse(posX,posY, 6, 6);\n fill(204,229,255);\n ellipse(posX,posY, 4, 4);\n fill(255,255,255);\n ellipse(posX,posY, 2, 2);\n stroke(1);\n }\n }",
"@Override\n public void draw(GraphicsContext gc, int sides){}",
"@Override\r\n\tpublic void BuildLegLeft() {\n\t\tg.drawLine(60, 100, 45, 150);\r\n\t}",
"void effacer() {\r\n Graphics g = this.zoneDessin.getGraphics();\r\n g.setColor(Color.gray);\r\n g.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n }",
"@Override\n\tpublic void buildLegLeft() {\n\t\tg.drawLine(60, 100, 40, 140);\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}",
"private void drawStartButton(int w,int h){\r\n g.setColor(Color.gray); \r\n g.fillRect(60,h-70,w-80,50);\r\n g.setColor(Color.black);\r\n g.drawRect(60,h-70,w-80,50); \r\n \r\n Font font=new Font(\"SanSerif\",Font.BOLD,50); \r\n g.setFont(font);\r\n g.drawString(\"Start Game\",120,h-25);\r\n }",
"@Override\r\n \tpublic void paintComponent(Graphics g) {\r\n \t\tsuper.paintComponent(g);\r\n \t\tdrawSnake(g);\r\n \t}",
"public void display()\n {\n if(corner == 1)\n {\n moveTo(new Location(0,0));\n setDirection(135);\n }\n else if(corner == 2)\n {\n moveTo(new Location(0,9));\n setDirection(225);\n }\n else if(corner == 3)\n {\n moveTo(new Location(9,9));\n setDirection(315);\n }\n else if(corner == 4)\n {\n moveTo(new Location(9,0));\n setDirection(45);\n }\n }",
"@Override\n\tpublic void paintLabel(Graphics g) {\n\t\tGraphics2D g2d = (Graphics2D) g;\n\t\tg2d.drawString(\"Oval\",x,y+65);\n\t}",
"@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\tg.fillOval(0,0, this.getWidth(),this.getHeight());\r\n }",
"private void drawXO(byte row, byte column, int sign, Graphics g) {\n\t\tif (sign == 0) {\n\t\t\tg.drawImage(o, fieldWidth / 6 + fieldWidth * column / 3,\n\t\t\t\t\tfieldWidth / 6 + fieldWidth * row / 3,\n\t\t\t\t\tGraphics.HCENTER | Graphics.VCENTER);\n\t\t} else if (sign == 1) {\n\t\t\tg.drawImage(x, fieldWidth / 6 + fieldWidth * column / 3,\n\t\t\t\t\tfieldWidth / 6 + fieldWidth * row / 3,\n\t\t\t\t\tGraphics.HCENTER | Graphics.VCENTER);\n\t\t}\n\t}",
"@Override\n\tpublic void paint(Graphics2D g) {\n\t\tg.setColor(Color.PINK);\n\t\tg.fillRect(x, y, width*GameBoard.PixelsPerL, height*GameBoard.PixelsPerL);\n\t}",
"@Override\r\n\tpublic String moveLeft() {\n\r\n\t\tif((0<x && x<=50) && (0<=y && y<=10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (40<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=10) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((40<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制三角形\");\t\n\t}",
"public void displayLeft(String text, int x, int y) {\n\t\tgc.setFont(vector); //set the font \n\t\tgc.setFill(Color.WHITE); //set the color of the text\n\t\tgc.fillText(text, x, y); //draw the text\n\t}",
"public void change_sword_pos() {\n\t\tif (!heroi.isArmado())\n\t\t\tlabirinto.setLabCell(espada.getX_coord(), espada.getY_coord(), 'E');\n\t}",
"static void drawCellID() { // draws a cross at each cell centre\n\t\tfloat xc,yc;\n\t\t//GeneralPath path = new GeneralPath();\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// Label Cell number\n\t\t\t\tTextRoi TROI = new TextRoi((int)xc, (int)yc, (\"\"+i),new Font(\"SansSerif\", Font.BOLD, 12));\n\t\t\t\tTROI.setNonScalable(false);\n\t\t\t\tOL.add(TROI);\n\t\t\t}\n\t\t}\n\t}",
"private void drawIconBorder(Graphics g) {\n }",
"private void drawCursor(int w,int h){\r\n int n;\r\n // determines which bomb sprite to use in the animation\r\n if((counter/5)%2==0){\r\n if((counter/5)%4==2){\r\n n=2;\r\n }\r\n else{\r\n n=0;\r\n }\r\n }\r\n else{\r\n n=1;\r\n } \r\n g.setColor(Color.white);\r\n // draws bombs and rectangles at specified cursor rows\r\n if(cursorRow==10){\r\n g.drawImage(bomb[n],15,h-60,null); \r\n }\r\n else if(cursorRow<4){\r\n g.drawImage(bomb[n],10,10+50*(cursorRow+1),null);\r\n g.drawRect(45,50*(cursorRow+1),w-55,50);\r\n }\r\n else{\r\n g.drawImage(bomb[n],10,275+40*(cursorRow-4),null); \r\n g.drawRect(45,270+40*(cursorRow-4),w-55,40);\r\n }\r\n \r\n }",
"public void draw(Graphics g){\n g.setColor (colour);\n g.fillOval (x,y,DIAMETER, DIAMETER);\n g.setColor (Color.black);\n g.drawString(name, x+5, y+30);\n g.setFont (new Font (\"Times New Roman\", Font.PLAIN, 16) );\n g.setColor (Color.black);\n g.drawString (Integer.toString(seatNum), x+13 ,y+18) ;\n \n \n \n \n \n \n }",
"public void draw(Graphics g){\n int x = (int) super.getLocation().getX();\n int y = (int) super.getLocation().getY();\n if(nunMissiles > 0) { //will draw battery as 'active'\n g.setColor(this.color);\n g.fillRect(x, y, 180, 50);\n } else { //if the battery is out of missiles, it will be a grey box\n g.setColor(new Color(131, 131, 131));\n g.drawRect(x, y, 180, 50);\n }\n //drawing the number of missiles the battery has\n String numMis =\"\"+ nunMissiles;\n g.setColor(Color.white);\n Font currentFont = g.getFont();\n Font newFont = currentFont.deriveFont(currentFont.getSize() + 5);\n g.setFont(newFont);\n g.drawString(numMis, x + 90, y + 25);\n }",
"private void drawBox(Graphics window, int hsBtoRGB, int x, int y) {\n\t\t\n\t}",
"@Override\r\n\tpublic void BuildArmRight() {\n\t\tg.drawLine(70, 50, 90, 100);\r\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制矩形\");\n\t\t\n\t}",
"public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }",
"protected void paintBorder(Graphics g) {\n super.paintComponent(g);\n\n\n g.setColor(country.getCont().getContColor());\n g.fillRoundRect(innerDiameter,innerDiameter,width-2*innerDiameter, height-2*innerDiameter,0,0);\n g.setColor(country.getOwner().getPlayerColor());\n g.fillOval(innerDiameter, innerDiameter, getSize().width-2*innerDiameter, getSize().height-2*innerDiameter);\n\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"default\", Font.BOLD, 14));\n\n g.drawString(\"\"+country.getArmy(),20,20);\n }",
"public void intakeGlyph(){\n ILM.setPower(1);\n IRM.setPower(1);\n }",
"public void drawPiece(Graphics g){\n if (current == null){\n return;\n }\n\n for (int y = 1; y < 21; y++){\n for (int x = 1; x < 13; x++){\n if (map[x][y]){\n g.setColor(colors[x][y]);\n g.fillRoundRect(26 * x - 13, 26 * (21 - y) - 13, 25, 25, 2, 2);\n }\n }\n }\n }",
"public void paintComponent(Graphics arg0) {\n\t\tsuper.paintComponent(arg0);\n\t\targ0.setColor(Color.BLACK); \n\t\tboard(arg0); \n\t\tdrawStone(arg0);\n\t}",
"public void goLeft() {\n\t\tx -= dx;\n\t\tbgBack.setDx(true);\n\t\tbgBack.move();\n\t\tif(x < 200) {\n\t\t\tif(!bgBack.getReachBegin()) {\n\t\t\t\tx = 200;\n\t\t\t\tbgFront.setDx(true);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x < 50) {\n\t\t\t\tx = 50;\n\t\t\t}\n\t\t}\n\n\t}",
"public void gripGlyph(){\n grabberRearLeft.setPosition(glyphClosePosBL);\n grabberFrontLeft.setPosition(glyphClosePosFL);\n grabberFrontRight.setPosition(glyphClosePosFR);\n grabberRearRight.setPosition(glyphClosePosBR);\n isGripped = true;\n }",
"private void drawBox(Graphics2D g)\n\t{\n\t\t// Resize values with magic numbers\n\t\tLine2D.Double line = new Line2D.Double();\n\t\tStroke drawingStroke = new BasicStroke(3, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);\t\t\n\t\tg.setStroke(drawingStroke);\n\t\tmidBoxWidth = super.getWidth() - 234;\n\t\tmidBoxHeight = super.getHeight() - 55;\n\t\tORIGIN_X = MID_BOX_X + AXIS_X_GAP;\n\t\tORIGIN_Y = MID_BOX_Y + midBoxHeight - AXIS_X_GAP;\n\n\t\t/**\n\t\t * Super hard coded for now \n\t\t */\n\n\t\t// White background\n\t\tRectangle2D middle = new Rectangle2D.Double(MID_BOX_X, MID_BOX_Y, midBoxWidth, midBoxHeight);\t\t\n\t\tg.setColor(Color.white);\n\t\tg.fill(middle);\n\t\t// Drawing borders\n\t\tg.setColor(Color.black);\n\t\t// Top\n\t\tline.setLine(MID_BOX_X, MID_BOX_Y, MID_BOX_X + midBoxWidth, MID_BOX_Y);\n\t\tg.draw(line);\n\t\t// Left\n\t\tline.setLine(MID_BOX_X, MID_BOX_Y, MID_BOX_X, MID_BOX_Y + midBoxHeight);\n\t\tg.draw(line);\n\t\t// Bottom\n\t\tline.setLine(MID_BOX_X, MID_BOX_Y + midBoxHeight, MID_BOX_X + midBoxWidth, MID_BOX_Y + midBoxHeight);\n\t\tg.draw(line);\n\t\t// Right\n\t\tline.setLine(MID_BOX_X + midBoxWidth, MID_BOX_Y, MID_BOX_X + midBoxWidth, MID_BOX_Y + midBoxHeight);\n\t\tg.draw(line);\n\n\t\t// Drawing Axes\n\t\tdrawingStroke = new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);\n\t\tg.setStroke(drawingStroke);\n\t\t// Y-axis\n\t\tline.setLine(MID_BOX_X + AXIS_X_GAP, MID_BOX_Y + AXIS_Y_GAP/2, MID_BOX_X + AXIS_X_GAP, MID_BOX_Y + midBoxHeight - AXIS_Y_GAP/2);\n\t\tg.draw(line);\t\n\n\t\t// Arrow Tip\n\t\tline.setLine(MID_BOX_X + AXIS_X_GAP, MID_BOX_Y + AXIS_Y_GAP/2, MID_BOX_X + AXIS_X_GAP + 10, MID_BOX_Y + AXIS_Y_GAP/2 + 15);\n\t\tg.draw(line);\t\t\t\n\t\tline.setLine(MID_BOX_X + AXIS_X_GAP, MID_BOX_Y + AXIS_Y_GAP/2, MID_BOX_X + AXIS_X_GAP - 10, MID_BOX_Y + AXIS_Y_GAP/2 + 15);\n\t\tg.draw(line);\t\n\n\t\t// X-axis\n\t\tline.setLine(MID_BOX_X + AXIS_Y_GAP/2, MID_BOX_Y + midBoxHeight - AXIS_X_GAP, MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2, MID_BOX_Y + midBoxHeight - AXIS_X_GAP);\n\t\tg.draw(line);\n\t\t// Arrow tip\n\t\tline.setLine(MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2, MID_BOX_Y + midBoxHeight - AXIS_X_GAP, MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2 - 15, MID_BOX_Y + midBoxHeight - AXIS_X_GAP + 10);\n\t\tg.draw(line);\t\t\t\n\t\tline.setLine(MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2, MID_BOX_Y + midBoxHeight - AXIS_X_GAP, MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2 - 15, MID_BOX_Y + midBoxHeight - AXIS_X_GAP - 10);\n\t\tg.draw(line);\t\n\n\t\tnew BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);\n\t\tg.setStroke(drawingStroke);\n\n\t\t// Axis labels\n\t\tg.setColor(Color.black);\n\t\tg.rotate(Math.toRadians(-90));\n\n\t\t// Magic numbers - even I don't know what they are but they somehow centres the text\n\t\tswitch (graph) {\n\t\tcase ARRIVAL: {\n\t\t\tg.drawString(\"Total arrivals per interval (cars)\", -midBoxHeight/2 - 80, MID_BOX_X + 16);\n\t\t\tbreak;\n\t\t}\n\t\tcase MAX_QUEUE_TIME: {\n\t\t\tg.drawString(\"Max Queue Time (seconds)\", -midBoxHeight/2 - 70, MID_BOX_X + 16);\n\t\t\tbreak;\n\t\t}\n\t\tcase AVG_QUEUE_TIME: {\n\t\t\tg.drawString(\"Average Queue Time (seconds)\", -midBoxHeight/2 - 80, MID_BOX_X + 16);\n\t\t\tbreak;\n\t\t}\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tg.rotate(Math.toRadians(90));\n\t\tg.drawString(\"Time Interval (minutes)\", MID_BOX_X + midBoxWidth/2 - 50, MID_BOX_Y + midBoxHeight - AXIS_Y_GAP/2 + 18);\n\t}",
"@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.setColor(Color.yellow);\r\n\t\tg.fillRect((int) getX(), (int) getY(), 5, 10);\r\n\t}",
"public void drawBomber(Graphics g){\n\t\t\tif (exists){\n\t\t\t\tif (!startredtimer){ //if everything is normal\n\t\t\t\t\t\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tg.fillOval(x,y+10,100,30);\n\t\t\t\t\tg.fillOval(x+25,y,50,20);\n\t\t\t\t}\n\t\t\t\telse{ //if it needs to be in red because it has recently been hit by something\n\t\t\t\t\t\n\t\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\tg.fillOval(x,y +10,100,30);\n\t\t\t\t\tg.fillOval(x+25,y,50,20);\n\t\t\t\t}\n\t\t\t\tg.setColor(Color.RED);\n\t\t\t\tg.drawRect(x,y-15,100,4);\n\t\t\t//\tg.drawRect(x,y-15,100,2);\n\t\t\t\tg.fillRect(x, y-15, health*25, 4); \n\t\t\t\t\n\t\t\t}\n\t\t\telse if(startboomtimer) { //if the plane has been destroyed and you want to draw it in red\n\t\t\t\tif (boomtimer<5) { g.drawImage(boom, x,y, 100, 100, null);}\n\t\t\t\telse if (boomtimer < 10) g.drawImage(boom, x + 38, y + 12, 50, 50, null);\n\t\t\t\telse if (boomtimer == 15) startboomtimer = false;\n\t\t\t\tboomtimer++;\n\t\t\t\t\n\t\t\t}\t\n\t\t\tif (dropping)b.drawBomb(g); //draws the bomb if the bomb is dropping only\n\n\t\t}",
"@Override\n\tpublic void buildArmRight() {\n\t\tg.drawLine(70, 50, 100, 80);\n\t}",
"private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }",
"public void drawLine() {\n for(int i=0; i < nCols; i++) {\n System.out.print(\"----\");\n }\n System.out.println(\"\");\n }",
"@Override\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.orange);\n\t\tg.fillRect(getX(), getY(), getW(), getH());\n\t}",
"void drawPitShape(Graphics g, int x, int y, int width, int height, int stoneNum, String pitLabel);",
"public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n\t\t\t//This if statement isolates all conditions in which a square would appear white\n\t\t\t//(and one condition which would make it red). \n if (revealed || (gameLost && ((mine && !flagged) || (!mine && flagged))))\n {\n setBackground(Color.WHITE);\n if (mine || flagged) //All conditions which would show a mine icon.\n {\t\t\t\t\t\t\t//Any flagged square that fit the first if statement must be a falsely flagged\n if (revealed)\t\t//non-mine after the game is lost, so it does fit this category.\n {\n setBackground(Color.RED); //Just for the specific mine that was clicked on to lose the game.\n }\n g.fillOval(SHIFT - 1, SHIFT - 1, \n SQUARE_SIZE - 2*SHIFT + 1, SQUARE_SIZE - 2*SHIFT + 1);\n g.drawLine(SQUARE_SIZE/2, 0, SQUARE_SIZE/2, SQUARE_SIZE);\n g.drawLine(0, SQUARE_SIZE/2, SQUARE_SIZE, SQUARE_SIZE/2);\n g.drawLine(SHIFT, SQUARE_SIZE - SHIFT - 1, SQUARE_SIZE - SHIFT - 1, SHIFT);\n g.drawLine(SHIFT, SHIFT, SQUARE_SIZE - SHIFT - 1, SQUARE_SIZE - SHIFT - 1);\n g.setColor(Color.WHITE);\n g.fillRect(GLARE_LOC, GLARE_LOC, GLARE_SIZE, GLARE_SIZE);\n if (flagged) //Just mistakenly flagged non-mines after the game is lost.\n {\n g.setColor(Color.RED);\n g.drawLine(0, 0, SQUARE_SIZE, SQUARE_SIZE);\n g.drawLine(1, 0, SQUARE_SIZE, SQUARE_SIZE - 1);\n g.drawLine(0, 1, SQUARE_SIZE - 1, SQUARE_SIZE);\n g.drawLine(0, SQUARE_SIZE - 1, SQUARE_SIZE - 1, 0);\n g.drawLine(1, SQUARE_SIZE - 1, SQUARE_SIZE - 1, 1);\n g.drawLine(0, SQUARE_SIZE - 2, SQUARE_SIZE - 2, 0);\n }\n }\n else //Revealed non-mines\n {\n if (adjacentMines != 0)\n {\n g.setColor(COLORS[adjacentMines - 1]);\n Font f = g.getFont();\n g.setFont(new Font(f.getName(), Font.BOLD, f.getSize()));\n g.drawString(\"\" + adjacentMines, \n \t\tSHIFT, SQUARE_SIZE - SHIFT);\n }\n }\n }\n else //Unrevealed\n {\n setBackground(Color.GREEN);\n if (flagged)\n {\n g.fillPolygon(FLAG_BASE_X, FLAG_BASE_Y, FLAG_BASE_X.length);\n g.drawLine(FLAG_BASE_X[2], FLAG_BASE_Y[2], \n \t\tFLAG_BASE_X[2], FLAG_BASE_Y[2] - POLE_LENGTH);\n g.setColor(Color.RED);\n g.fillPolygon(FLAG_X, FLAG_Y, FLAG_X.length);\n }\n }\n }",
"public void drawRightTriangle(){\n\t for(int i = 0; i < height; i++)\n\t {\n\t \tfor(int j = 0; j < width - 1; j++)\n\t \t{\n\t \t\tSystem.out.print(\" \");\n\t \t}\n\t \twidth--;\n\t \tfor(int k = height; k > width; k--)\n\t \t{\n\t \t\tSystem.out.print(appearance);\n\t \t}\n\t \tSystem.out.println(\"\");\n\t }\n\t}",
"@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}",
"@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\n\t\tint length = cont.getLength();\n\t\tint start = cont.getStart();\n\t\tint stop = cont.getStop();\n\n\t\tg.drawString(String.valueOf(length)+\"bp\",(int)(this.getSize().getWidth()/2),15); // tekend de lengte in baseparen in het midden van de panel\n\t\tg.fillRect(5,40,(int)(this.getSize().getWidth()-10),5);\n\n\t\tint stepSize = calculateStepSize(length);\n\t\tint first = (start - (start % stepSize)) + stepSize - 1;\t// de waarde van first is gelijk aan de positie in de sequentie van de\n\t\t// eerste nucleotide waarboven de eerste ruler lijn getekend word\n\n\t\tfor (int j = first; j < stop; j+= stepSize){\n\n\n\t\t\tint pos = (int) DrawingTools.calculateLetterPosition(this.getWidth(), length,Double.valueOf(j-start)); //schaald de posities in sequentie naar de breedte van de panel\n\t\t\tg.drawLine(pos,40,pos,30);\t\t\t\t\t\t\t\t// draws line on the ruler\n\t\t\tg.drawString(String.valueOf(j + 1) , pos, 30);\t\t// draws the nucleotide position(in sequence) above the line\n\n\t\t}\n\n\t\tint alpha = 127; // 50% transparent/\n\t\tColor myColour = new Color(255, 0, 0, alpha);\n\t\tg.setColor(myColour);\n\n\t\tif (x < x2){\n\t\t\tg.fillRect(x,0,x2-x,getHeight()); //selectie rechthoek\n\t\t}\n\t\telse{\n\t\t\tg.fillRect(x2,0,x-x2,getHeight()); //inverse rechthoek.\n\t\t}\n\t}",
"private void makeLeftBox() {\n\t\tgamePanel = new JPanel();\n\t\tgamePanel.setLayout(new BorderLayout());\n\t\tgamePanel.setBackground(Color.GRAY);\n\t\tgamePanel.setOpaque(true);\n\t\tleft = new JPanel();\n\t\tleft.setLayout(new GridLayout(1,1));\n\t\tleft.setBackground(Color.GRAY);\n\t\tbanner = new JLabel(\"Jeopardy\", SwingConstants.CENTER);\n\t\tbanner.setBorder(new EmptyBorder(10,10,10,10));\n\t\tbanner.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tbanner.setForeground(Color.GRAY);\n\t\tbanner.setBackground(lightRed);\n\t\tbanner.setFont(new Font(\"TimesRoman\", Font.BOLD, 30));\n\t\tbanner.setOpaque(true);\n\t\tmakeGameBoard();\n\t\t\n\t\tgamePanel.add(banner, BorderLayout.NORTH);\n\t\tgamePanel.add(board, BorderLayout.CENTER);\n\t\tleft.setOpaque(false);\n\t\tJPanel space = new JPanel();\n\t\tspace.setOpaque(false);\n\t\tgamePanel.add(space, BorderLayout.SOUTH);\n\t\tleft.add(gamePanel);\n\t\t\n\t}",
"public void leftOff() {\r\n\t\tsetLeftColor(0, 0, 0);\r\n\t}",
"public void drawHillBottoms() {\n batch.draw(hillBottom, hill1.getX(), hill1.getY()-6, hill1.getWidth(), 20);\n batch.draw(hillBottom, hill2.getX(), hill2.getY()-6, hill2.getWidth(), 20);\n batch.draw(hillBottom, hill3.getX(), hill3.getY()-6, hill3.getWidth(), 20);\n batch.draw(hillBottom, hill4.getX(), hill4.getY()-6, hill4.getWidth(), 20);\n }",
"public void drawInstructions(Graphics art)\n\t{\n\t\tart.setColor(Color.green);\n\t\tart.setFont(newFont3);\n\t\tart.drawString(\"The goal of this game is to pop 20 balloons as fast as you can.\", 100, 100);\n\t\tart.drawString(\"A timer will be counting to see how fast you are.\", 150, 200);\n\t\tart.drawString(\"Click on the balloon that matches the color of the ballon in the upper right corner.\",5,300);\n\t\tart.drawString(\"If you click on the right one, your score will go up.\", 100, 400);\n\t\tart.drawString(\"If you click on the wrong one, your score will go down.\", 100, 500);\n\t\tart.drawString(\"Press B to go back\", 300, 600);\n\t\t\n\t}",
"@Override\n\tpublic void draw(Graphics graphics) {\n\t\tgraphics.setColor(Color.black);\t\t\t\t\t\t\t\t\t//Farbe schwarz\n\t\tgraphics.drawRect(point.getX(),point.getY() , width, height);\t//malt ein leeren Rechteck\n\t}",
"@Override\n protected void paintBorder(Graphics g) {\n g.setColor(getForeground());\n g.drawRoundRect(0, 0, getWidth() - 1, getHeight() - 1, 15, 50);\n }",
"public void paint(Graphics gfx) {\r\n\t\tif (x== -5) {\r\n\t\t\tx = this.getWidth()/2;\r\n\t\t}\r\n\t\tif (y == -5) {\r\n\t\t\ty = this.getHeight()/2;\r\n\t\t}\r\n\t\tsuper.paint(gfx);\r\n\t\tSnake head = game.getSnake();\r\n\r\n\t\tgfx.setColor(Color.green);\r\n\t\tgfx.drawRect(head.x, head.y, head.width, head.height);\r\n\t\tSegment current = head.tailFirst;\r\n\t\twhile(current!=null) {\r\n\t\t\tgfx.drawRect(current.x, current.y, current.width, current.height);\r\n\t\t\tcurrent=current.next;\r\n\t\t}\r\n\t\tfor(Mushroom i : game.getMushrooms()) {\r\n\t\t\tgfx.drawImage(i.mushroomImage.getImage(), i.x, i.y, i.width, i.height , null);\r\n\r\n\t\t}\r\n\t}",
"public void draw(Graphics2D g2, int xPos, int yPos, int width, int height){\r\n int eyeD = width/10;\r\n if (this.isLeft){\r\n eye = new Arc2D.Double(xPos+width/4 ,yPos+height/3, eyeD, eyeD, 180, 180, Arc2D.PIE);\r\n eyeC = new Arc2D.Double(xPos+width/4-eyeD/2 ,yPos+height/3-eyeD/2, 2*eyeD, 2*eyeD, 180, 180, Arc2D.PIE);\r\n }\r\n else{\r\n eye = new Arc2D.Double(xPos+width*5/8 ,yPos+height/3, eyeD, eyeD, 180, 180, Arc2D.PIE);\r\n eyeC = new Arc2D.Double(xPos+width*5/8-eyeD/2 ,yPos+height/3-eyeD/2, 2*eyeD, 2*eyeD, 180, 180, Arc2D.PIE);\r\n }\r\n g2.setColor(color);\r\n g2.fill(eye);\r\n g2.setColor(Color.BLACK);\r\n g2.setStroke(new BasicStroke(2.0f));\r\n g2.draw(eye);\r\n g2.draw(eyeC);\r\n }",
"public void drawBorder(boolean blue)\n\t{\n\t\t// copied most of the following from http://forums.inside3d.com/viewtopic.php?t=1326\n\t\tif (blue)\n\t\t\tglColor3f(0, 0, 1); // blue\n\t\telse\n\t\t\tglColor3f(1, 0, 0); // red\n\n\t\tglLineWidth(2); // Set line width to 2\n\t\tglLineStipple(1, (short) 0xf0f0); // Repeat count, repeat pattern\n\t\tglEnable(GL_LINE_STIPPLE); // Turn stipple on\n\n\t\tglBegin(GL_LINE_LOOP);\n\t\tglVertex2d(x - BORDER, y - BORDER);\n\t\tglVertex2d(x + BORDER + width, y - BORDER);\n\t\tglVertex2d(x + BORDER + width, y + BORDER + height);\n\t\tglVertex2d(x - BORDER, y + BORDER + height);\n\t\tglEnd();\n\t\tif (action == 3)\n\t\t{\n\t\t\tglBegin(GL_LINE_LOOP);\n\t\t\tdouble endPoint = endPos;\n\t\t\tif (!downRight)\n\t\t\t\tendPoint = startPos;\n\t\t\t//System.out.println(\"StartPos, EndPos, endPoint: \" + startPos + \", \" + endPos + \", \" + endPoint);\n\t\t\tif (upDown)\n\t\t\t{\n\t\t\t\tglVertex2d(x - BORDER, endPoint - BORDER);\n\t\t\t\tglVertex2d(x + BORDER + width, endPoint - BORDER);\n\t\t\t\tglVertex2d(x + BORDER + width, endPoint + BORDER + height);\n\t\t\t\tglVertex2d(x - BORDER, endPoint + BORDER + height);\n\t\t\t} else\n\t\t\t{\n\t\t\t\tglVertex2d(endPoint - BORDER, y - BORDER);\n\t\t\t\tglVertex2d(endPoint + BORDER + width, y - BORDER);\n\t\t\t\tglVertex2d(endPoint + BORDER + width, y + BORDER + height);\n\t\t\t\tglVertex2d(endPoint - BORDER, y + BORDER + height);\n\t\t\t}\n\t\t\tglEnd();\n\t\t}\n\n\t\tglDisable(GL_LINE_LOOP); // Turn it back off\n\t\tglDisable(GL_LINE_STIPPLE); // Turn it back off\n\t\tglEnd();\n\t}",
"private void drawBox(Graphics2D g2d, int y, int wid, int hei) {\n g2d.setColor(Dark_Gray);\n Triangle triangle1 = new Triangle(new Point(wid / 3, y), new Point(2 * wid / 3, y), new Point(wid / 3, y + hei / 10));\n triangle1.fill(g2d);\n g2d.setColor(Light_Gray);\n Triangle triangle2 = new Triangle(new Point(2 * wid / 3, y + hei / 10), new Point(2 * wid / 3, y), new Point(wid / 3, y + hei / 10));\n triangle2.fill(g2d);\n Triangle triangle3 = new Triangle(new Point(wid / 3, y + hei / 10), new Point(wid / 3 + 8, y + hei / 10), new Point(wid / 3 + 8, y + hei / 10 - 8));\n triangle3.fill(g2d);\n g2d.setColor(Dark_Gray);\n Triangle triangle4 = new Triangle(new Point(2 * wid / 3, y), new Point(2 * wid / 3 - 8, y), new Point(2 * wid / 3 - 8, y + 8));\n triangle4.fill(g2d);\n g2d.setColor(Color.BLACK);\n g2d.fillRect(wid / 3 + 4, y + 4, wid / 3 - 8, hei / 10 - 8);\n }",
"public void paint(Graphics g) {\n\t\t\tif(!winning&&!losing){\n\t\t\t\t//System.out.println(\"IN PAINT\");\n\t\t\t\tsuper.paint(g);\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"sky.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t\tlevel.addLevel();\n\t\t\t\tString chosen= level.getLevel(Level);\n\t\t\t\tlimit= level.getTime(Level);\n\t\t\t\t//\tg.drawRect (50, 50, 100, 100);\n\t\t\t\t//System.out.println(chosen);\n\n\t\t\t\tfor(int i=0;i<chosen.length();i++){\n\t\t\t\t\tchar c = chosen.charAt(i);\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tif(c==' '){\n\t\t\t\t\t\tside+=20;//add up to the x-position \n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='#'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)//if it is the first time print out\n\t\t\t\t\t\t\twalls.add(new wall(side,upper));//add to the wall list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='$'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tboxes.add(new box(side, upper));\n\n\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='\\n'){\n\t\t\t\t\t\tside=0;\n\t\t\t\t\t\tupper+=20;\n\t\t\t\t\t}\n\t\t\t\t\telse if (c=='.'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tareas.add(new area(side, upper));//add to the areas list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='a'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\th= new player(side+velX,upper+velY);//change the position of the player\n\t\t\t\t\t\tg.drawRect (h.getX(), h.getY(), 20, 20);\n\t\t\t\t\t\tg.drawImage(h.getP(), h.getX(),h.getY(),20,20, null);//draw the player\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tnumber++;// the number of paint times add\n\t\t\t\tside=40;//reset the initial x position\n\t\t\t\tupper=80;//reset the initial y position\n\t\t\t\t//\t\t\tSystem.out.println(\"here\");\n\t\t\t\tfor(int i=0;i<walls.size();i++){\n\t\t\t\t\t//System.out.println(\"HERE\");\n\t\t\t\t\twall a= walls.get(i);\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"X: \"+a.getX());\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"Y: \"+a.getY());\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\t//g.drawRect(30, 30, 100, 100);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(), 20, 20,null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the boxes\n\t\t\t\t */\n\t\t\t\tfor(int i=0;i<boxes.size();i++){\n\t\t\t\t\tbox a= boxes.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the areas\n\t\t\t\t */\n\t\t\t\tfor(int i=0; i<areas.size();i++){\n\t\t\t\t\tarea a = areas.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(null, a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t//System.out.println(m.getTime());\n\t\t\t\tg.drawString (\"Steps: \" + steps, 300, 400);\n\t\t\t\tg.drawString (\"Remaining steps: \" + (limit-steps), 300, 420);//show the remaining steps \n\t\t\t}\n\t\t\telse if(losing){//change the screen if you lose\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"over.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\t\t\telse if(winning){//change the screen if you win\n \n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"win.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\n\n\t\t\n\n\n\t\t}",
"@Override\n public void draw(PApplet pApplet) {\n // Setzt die dicke der Aussenlinien auf 1px\n pApplet.strokeWeight(1);\n // Setz die Füllfarbe\n pApplet.fill(235);\n pApplet.rect(x, y, width, height);\n // Setz die Füllfarbe\n pApplet.fill(0);\n // Setzt das Verhalten der Methode pApplet.text()\n pApplet.textAlign(PConstants.CENTER, PConstants.CENTER);\n pApplet.text(text, x + width / 2, y + height / 2);\n }",
"public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}",
"public void border() {\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tmaze[x][0] = Block.WALL;\n\t\t\tmaze[x][height - 1] = Block.WALL;\n\t\t}\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tmaze[0][y] = Block.WALL;\n\t\t\tmaze[width - 1][y] = Block.WALL;\n\t\t}\n\t}",
"public static void firstDraw() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 1 + \" | \" + 2 + \" | \" + 3);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 4 + \" | \" + 5 + \" | \" + 6);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + 7 + \" | \" + 8 + \" | \" + 9);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println();\n\t}"
]
| [
"0.64256424",
"0.6301899",
"0.6293039",
"0.62904364",
"0.62876046",
"0.61546254",
"0.6145721",
"0.6138077",
"0.6040966",
"0.5997295",
"0.5961709",
"0.5960738",
"0.5953322",
"0.5944558",
"0.5940192",
"0.5938876",
"0.59349144",
"0.593122",
"0.5915651",
"0.5902867",
"0.5885883",
"0.5880008",
"0.58731544",
"0.5853575",
"0.5847902",
"0.5841993",
"0.5840393",
"0.5826273",
"0.5823619",
"0.5755334",
"0.57502866",
"0.5746439",
"0.57349044",
"0.5729853",
"0.5720838",
"0.5714216",
"0.57080376",
"0.57052916",
"0.5704711",
"0.5680406",
"0.5675074",
"0.5649271",
"0.5642993",
"0.5641069",
"0.56347644",
"0.5612206",
"0.56092453",
"0.56088275",
"0.5601053",
"0.55841154",
"0.5571936",
"0.55703986",
"0.5567752",
"0.5560599",
"0.55414224",
"0.55392164",
"0.553921",
"0.5535985",
"0.5528036",
"0.55257696",
"0.55225563",
"0.5520082",
"0.5516067",
"0.55159163",
"0.5515468",
"0.5504231",
"0.54919034",
"0.548765",
"0.54872847",
"0.54764676",
"0.5473604",
"0.5472242",
"0.54670984",
"0.5459065",
"0.5450526",
"0.54463065",
"0.54450834",
"0.5443305",
"0.5443049",
"0.5437576",
"0.54373544",
"0.54356885",
"0.5432099",
"0.54292274",
"0.54266846",
"0.5426604",
"0.541788",
"0.5415254",
"0.5414295",
"0.54141253",
"0.54111373",
"0.540779",
"0.5401138",
"0.53982526",
"0.5397888",
"0.5392788",
"0.5392417",
"0.539216",
"0.5391552",
"0.5386878"
]
| 0.6711963 | 0 |
draw the left corner symbol for health | public void drawHealth(int x, int y) {
pushMatrix();
translate(x, y);
scale(0.8f);
smooth();
noStroke();
fill(0);
beginShape();
vertex(52, 17);
bezierVertex(52, -5, 90, 5, 52, 40);
vertex(52, 17);
bezierVertex(52, -5, 10, 5, 52, 40);
endShape();
fill(255,0,0);
beginShape();
vertex(50, 15);
bezierVertex(50, -5, 90, 5, 50, 40);
vertex(50, 15);
bezierVertex(50, -5, 10, 5, 50, 40);
endShape();
popMatrix();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawHealthBar() {\n\t\td.setColor(Color.GREEN);\n\t\td.setFont(f1);\n\t\td.drawString(\"Health\", 387, 43);\n\t\td.setFont(f);\n\t\td.fillRect(227, 48, health * 100, 25);\n\t\td.setColor(Color.BLACK);\n\t\td.drawLine(327, 48, 327, 73);\n\t\td.drawLine(427, 48, 427, 73);\n\t\td.drawLine(527, 48, 527, 73);\n\t\td.drawRect(227, 48, 400, 25);\n\t}",
"public void drawHealthBar() {}",
"public void show(){\n fill(255);\n stroke(255);\n \n if (left){\n rect(0, y, size, brickLength);\n x = 0;\n }\n else{\n rect(width - size, y, size, brickLength);\n x = width - size;\n }\n }",
"@Override\n\tpublic void render(Graphics g) {\n\t\tg.setColor(Color.RED);\n\t\tg.drawRect((int) xPosition, (int) yPosition, width, height);\n\n\t\tif (health == 3) {\n\n\t\t\tg.setColor(Color.RED);\n\t\t\tg.fillRect((int) xPosition + 1, (int) yPosition + 1, width / 3, height - 2);\n\n\t\t\tg.setColor(Color.RED);\n\t\t\tg.fillRect((int) xPosition + width / 3, (int) yPosition + 1, width / 3, height - 2);\n\n\t\t\tg.setColor(Color.RED);\n\t\t\tg.fillRect((int) (xPosition + width) - (width / 3) - 2, (int) yPosition + 1, (width / 3) + 1, height - 2);\n\n\t\t} else if (health == 2) {\n\n\t\t\tg.setColor(Color.RED);\n\t\t\tg.fillRect((int) xPosition + 1, (int) yPosition + 1, width / 3, height - 2);\n\n\t\t\tg.setColor(Color.RED);\n\t\t\tg.fillRect((int) xPosition + width / 3, (int) yPosition + 1, width / 3, height - 2);\n\n\t\t} else if (health == 1) {\n\n\t\t\t// Flash health bar.\n\t\t\tif (healthFlashTimer <= healthFlashLength / 2) {\n\n\t\t\t\tg.setColor(Color.RED);\n\t\t\t\tg.fillRect((int) xPosition + 1, (int) yPosition + 1, width / 3, height - 2);\n\t\t\t} else {\n\n\t\t\t\tif (healthFlashTimer >= healthFlashLength)\n\t\t\t\t\thealthFlashTimer = 0;\n\t\t\t}\n\n\t\t\thealthFlashTimer++;\n\t\t}\n\t}",
"private void drawHealthPoints() {\n int i = 0;\n for (; i < Math.floor(gameWorld.getHero().getHealthPoints()); i++) {\n hudBatch.draw(heartFull, i * HEART_SIZE, VIRTUAL_HEIGHT - HEART_SIZE, HEART_SIZE, HEART_SIZE);\n }\n if (gameWorld.getHero().getHealthPoints() % 1 != 0) {\n hudBatch.draw(heartHalf, i++ * HEART_SIZE, VIRTUAL_HEIGHT - HEART_SIZE, HEART_SIZE, HEART_SIZE);\n }\n for (; i < gameWorld.getHero().getMaxHealthPoints(); i++) {\n hudBatch.draw(heartEmpty, i * HEART_SIZE, VIRTUAL_HEIGHT - HEART_SIZE, HEART_SIZE, HEART_SIZE);\n }\n }",
"public void draw()\n {\n Rectangle hatbox = new Rectangle(x, y, 20, 20);\n hatbox.fill();\n Rectangle brim = new Rectangle(x-10, y+20, 40, 0);\n brim.draw();\n Ellipse circle = new Ellipse (x, y+20, 20, 20);\n circle.draw();\n Ellipse circle2 = new Ellipse (x-10, y+40, 40, 40);\n circle2.draw();\n Ellipse circle3 = new Ellipse (x-20, y+80, 60, 60);\n circle3.draw();\n \n }",
"public void drawHealth(Graphics2D g2d) {\t\n\t\tg2d.setColor(new Color(0,0,0,200));\n\t\tint w = StagePanel.boardRectSize;\n\t\tint h = StagePanel.boardRectSize/6;\n\t\tint x = (int)getRectHitbox().getCenterX() - w/2;\n\t\tint y = (int)getRectHitbox().getCenterY() - parentGP.boardRect.getSize()/2;\n\t\t\n\t\tRectangle maxHealthShieldRect = new Rectangle(x, y, w, h);\n\t\tg2d.fill(maxHealthShieldRect);\n\t\tfloat unitHealthSize = (w*(1.0f/(maxHealth+maxShield)));\n\t\tRectangle maxHealthRect = new Rectangle(x,y, (int)(unitHealthSize * health), h);\n\t\tRectangle maxShieldRect = new Rectangle(x+(int)(unitHealthSize * health),y, (int)(unitHealthSize * shield), h);\n\t\tg2d.setColor(Commons.cHealth);\n\t\tg2d.fill(maxHealthRect);\n\t\tg2d.setColor(Commons.cShield);\n\t\tg2d.fill(maxShieldRect);\n\t\tg2d.setStroke(new BasicStroke(3)); \n\t\tg2d.setColor(Color.BLACK);\n\t\tg2d.draw(maxHealthShieldRect);\n\t\tif(parentGP.boardRect == StagePanel.curHoverBR || parentGP == StagePanel.curSelectedGP) {\n\t\t\tdrawHealthValues(g2d, x, y,StagePanel.boardRectSize/5);\n\t\t}\n\t}",
"@Override\n public void draw( Graphics g )\n {\n g.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\n g.setColor( Color.BLUE );\n g.fillOval( baseX, baseY, myWidth, myHeight );\n g.setColor( Color.BLACK );\n g.drawString( card, baseX + 7, baseY + 20 ); }",
"public void drawLeftTriangle(){\n\t //This loop draws the left triangle. It also decrements the width to make the triangle more distinct.\n\t for(int j = 0; j < height; j++)\n\t {\n\t \tfor(int k = 0; k < width; k++)\n\t \t{\n\t\t\t System.out.print(appearance);\n\t\t\t \n\t\t\t System.out.print(\"\");\n\t\t\t}\n\t\t\twidth--;//Decreases width.\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t System.out.println(\"\");\n\t}",
"@Override\n protected void paintForeground(Graphics2D g) {\n g.setColor(Color.MAGENTA);\n g.setFont(new Font(\"Calibri\", Font.BOLD,20));\n g.drawString(\"Villain Carnage\",5,30);\n g.setFont(new Font(\"Calibri\", Font.BOLD, 15));\n g.drawString((\"Level 1\"),20,60);\n \n \n \n //g.drawImage(ballIcon, 2,2, this);\n \n g.drawString(\"Ball Count :\" + villain.getBallCount(), 20,120 );\n \n //g.drawImage(heartIcon, 20,40, this);\n g.drawString(\"Lives left : \" + villain.getLives(),20,150);\n \n // Sets all the appropriate GUI components for this level, including ball count and \n // lives count which will be incremented/decremented as the player collides with it's\n // respective object\n \n }",
"@Override\n public void paint(Graphics g) {\n super.paint(g);\n\n // Drawing bar filling according to actual left health \n g.setColor(this.barColor);\n int health = (int) Math.floor((double) this.barWidth / (double) max * (double) value);\n g.fillRect(10, 18, health, 23);\n\n // Drawing bar contours... Just graphics\n g.setColor(this.barBorderColor);\n g.drawRect(10, 18, this.barWidth, this.barHeight);\n\n // Drawing text information of the remaining life\n g.drawImage(healthTrapeze, 240, 41, null);\n g.setColor(Color.white);\n String remainingLife = String.format(\"%1$\" + 10 + \"s\", this.value + \"/\" + this.max + \" HP\");\n g.drawString(remainingLife, 251, 53);\n\n // Drawing hearts whose numbers is = number of remaining lifes\n if (this.lives > 6) {\n g.drawImage(heartIcon, 10, 50, null);\n g.setColor(Color.WHITE);\n g.drawString(\"X\" + this.lives, 50, 70);\n return;\n }\n for (int i = 0; i < this.lives; i++) {\n g.drawImage(heartIcon, 10 + i * 40, 50, null);\n }\n }",
"public void draw(Graphics g){\n int x = (int) super.getLocation().getX();\n int y = (int) super.getLocation().getY();\n if(nunMissiles > 0) { //will draw battery as 'active'\n g.setColor(this.color);\n g.fillRect(x, y, 180, 50);\n } else { //if the battery is out of missiles, it will be a grey box\n g.setColor(new Color(131, 131, 131));\n g.drawRect(x, y, 180, 50);\n }\n //drawing the number of missiles the battery has\n String numMis =\"\"+ nunMissiles;\n g.setColor(Color.white);\n Font currentFont = g.getFont();\n Font newFont = currentFont.deriveFont(currentFont.getSize() + 5);\n g.setFont(newFont);\n g.drawString(numMis, x + 90, y + 25);\n }",
"@Override\n\tpublic void paintLabel(Graphics g) {\n\t\tGraphics2D g2d = (Graphics2D) g;\n\t\tg2d.drawString(\"Oval\",x,y+65);\n\t}",
"private void showHealthLevel()\n {\n showText(\"Health Level: \" + healthLevel, 120, 25);\n }",
"public String getHealthBar() {\n String healthBar = \"|\";\n for (int i=0; i<40; i++) {\n if (i < 40*hp/maxHp) {\n healthBar += \"\\u2588\";\n } else {\n healthBar += \" \";\n }\n }\n return healthBar + \"|\";\n }",
"public void draw()\r\n {\r\n\tfinal GraphicsLibrary g = GraphicsLibrary.getInstance();\r\n\t_level.draw(g);\r\n\t_printText.draw(\"x\" + Mario.getTotalCoins(), 30, _height - 36, false);\r\n\t_printText.draw(\"C 000\", _width - 120, _height - 36, false);\r\n\t_printText.draw(Mario.getLives() + \"UP\", 240, _height - 36, false);\r\n\t_printText.draw(Mario.getPoints() + \"\", 400, _height - 36, false);\r\n\t_coin.draw();\r\n\t_1UP.draw();\r\n }",
"@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(new Color(255, 0, 0));\r\n\t\tg.drawOval(mp1.getX(), mp1.getY(), 3*length, 3*length);\r\n\t\tg.setColor(new Color(0,0,255));\r\n\t\tg.drawOval(enenmy.getX(), enenmy.getY(), 3, 3);\r\n\t}",
"@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}",
"@Override\n public void drawOn(DrawSurface d) {\n String scoreString = \"Level Name: \" + this.levelName;\n d.setColor(Color.BLACK);\n d.drawText((GameLevel.BOARD_WIDTH / 2) + DISTANCE_FROM_THE_CENTER_X,\n HEIGHT_OF_TEXT, scoreString, FONT_SIZE);\n }",
"void drawDeath() {\n background(255, 255, 255);\n fill(0);\n textSize(75);\n textAlign(CENTER);\n text(\"You Died!\", 1024, 100);\n text(\"Kills= \"+ playerScore, 1024,200);\n text(\"Restart Program to try again.\", 1024, 300);\n\n}",
"@Override\r\n public void paint(Graphics g) {\r\n super.paint(g);\r\n Letter letter = new Letter(\"C\", getPosition());\r\n letter.paint(g);\r\n }",
"public void draw(){\r\n\r\n\t\t\t//frame of house\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(250,0);\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.move(0,300);\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.move(-250,0);\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\r\n\t\t\t//door\r\n\t\t\tpen.setColor(Color.blue);\r\n\t\t\tpen.setWidth(10);\r\n\t\t\tpen.move(50,0);\r\n\t\t\tpen.move(50,100);\r\n\t\t\tpen.move(-50,100);\r\n\t\t\tpen.move(-50,0);\r\n\t\t\tpen.move(0,0);\r\n\r\n\t\t\t//windows\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(-150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\r\n\t\t\t//extra\r\n\t\t\tpen.move(-45,120);\r\n\t\t\tpen.down();\r\n\t\t\tpen.setColor(Color.black);\r\n\t\t\tpen.drawString(\"This is a house\");\r\n\t}",
"@Override\n public void paint(Graphics g) {\n g.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 200));\n\n g.setColor(Color.cyan);\n String GameName = \"BALLAND BAR\";\n int x_pos = 150;\n int y_pos = 300;\n int alpha = 8;\n for (int i = 0; i < GameName.length(); i++) {\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha * 0.1f));\n g.drawString(Character.toString(GameName.charAt(i)), x_pos, y_pos);\n x_pos += 150;\n // alpha -= 1;\n }\n\n g.setColor(Color.orange);\n GameName = \"GAME\";\n x_pos = 700;\n y_pos = 550;\n for (int i = 0; i < GameName.length(); i++) {\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha * 0.1f));\n g.drawString(Character.toString(GameName.charAt(i)), x_pos, y_pos);\n x_pos += 150;\n // alpha -= 1;\n }\n /*\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 7 * 0.1f));\n g.drawString(\"G\", 650, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 6 * 0.1f));\n g.drawString(\"A\", 800, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 5 * 0.1f));\n g.drawString(\"M\", 950, 300);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 4 * 0.1f));\n g.drawString(\"E\", 1150, 300);\n\n g.setColor(Color.cyan);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 4 * 0.1f));\n g.drawString(\"N\", 650, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 5 * 0.1f));\n g.drawString(\"A\", 800, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 6 * 0.1f));\n g.drawString(\"M\", 950, 500);\n\n ((Graphics2D) g).setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 7 * 0.1f));\n g.drawString(\"E\", 1150, 500);\n */\n }",
"@Override\n\tpublic void buildLegLeft() {\n\t\tg.drawLine(60, 100, 40, 140);\n\t}",
"@Override\r\n\tpublic void BuildArmLeft() {\n\t\tg.drawLine(60, 50, 40, 100);\r\n\t}",
"@Override\n\tpublic void buildArmLeft() {\n\t\tg.drawLine(60, 50, 30, 80);\n\t}",
"public void paint(Graphics g)\r\n {\r\n \r\n super.paint(g);\r\n g.drawImage(backgroundImage, 0, 0, null); //Draws Background image in background of panel\r\n \r\n if(mode == 0)\r\n {\r\n g.setColor(Color.magenta); \r\n g.setFont(new Font(\"Copperplate Gothic Bold\", Font.BOLD, 50));\r\n g.drawString(\"Yeet Fighter\",37,300); //Draws Title in magenta in font specified\r\n \r\n \r\n g.setColor(Color.gray);\r\n g.setFont(new Font(\"Impact\", Font.ITALIC, 20));\r\n g.drawString(\"Press any key to start\",700,550); //Draws prompt to start specification in gray in font specified\r\n }\r\n else if(mode == 1)\r\n {\r\n\r\n g.setColor(Color.white);\r\n g.fillRect(0,yMin, 1000, 10); //rectangle platform is drawn\r\n Color healthbar1 = new Color(255-(int)((dFs[0].getHealth()/totalH) * 255),(int)((dFs[0].getHealth()/totalH) * 255),0);\r\n g.setColor(healthbar1); \r\n g.fillRect(10,10,(int)((dFs[0].getHealth()/totalH) * 465),10); // health bar is drawn with color in spectrum of red through green based on red fighter health\r\n Color healthbar2 = new Color(255-(int)((dFs[1].getHealth()/totalH) * 255),(int)((dFs[1].getHealth()/totalH) * 255),0);\r\n g.setColor(healthbar2);\r\n g.fillRect(480+(465-(int)((dFs[1].getHealth()/totalH) * 465)),10,(int)((dFs[1].getHealth()/totalH) * 465),10); \r\n // health bar is drawn with color in spectrum of red through green based on red fighter health with x coordinates so that health bar moves away from center\r\n\r\n g.setColor(Color.red);\r\n \r\n \r\n if(dFs[0].getAttacking() == 2)\r\n {\r\n g.setColor(new Color(150, 0, 0)); //the fighter is drawn darker if they are in cooldown\r\n }else\r\n {\r\n g.setColor(new Color(255, 0, 0));\r\n }\r\n\r\n g.fillRect((int)dFs[0].getPos()[0],(int)dFs[0].getPos()[1],dFs[0].getSize(),dFs[0].getSize()); //red fighter is drawn\r\n //sets color of fighter to darker color if attack is in cooldown method else in norml state\r\n\r\n if(dFs[0].getAttacking() == 1)\r\n {\r\n g.setColor(Color.red);\r\n \r\n int[] i = new int[4];\r\n i = attackHitBox(dFs[0]);\r\n\r\n g.fillRect(i[0],i[1],i[2],i[3]); //draws the attack onto the screen\r\n }\r\n\r\n if(dFs[0].getBlocking() != 0)\r\n {\r\n if(dFs[0].getBlocking() == 1)\r\n {\r\n g.setColor(new Color(255, 255, 255)); //draws a white box if blocking\r\n }else\r\n {\r\n g.setColor(new Color(150, 150, 150)); //draws a gray box if in cooldown\r\n }\r\n g.fillRect((int) (dFs[0].getPos()[0] + 10) ,(int) (dFs[0].getPos()[1] + 10), dFs[0].getSize() -20 , dFs[0].getSize() - 20); \r\n //draws square used to indicate blocking on fighter that is blocking and in color based on whether block is in active state\r\n }\r\n\r\n\r\n if(dFs[1].getAttacking() == 2)\r\n {\r\n g.setColor(new Color(0, 150, 150));\r\n }else\r\n {\r\n g.setColor(new Color(0, 255, 255));\r\n }\r\n\r\n g.fillRect((int)dFs[1].getPos()[0],(int)dFs[1].getPos()[1],dFs[1].getSize(),dFs[1].getSize()); //blue fighter is drawn\r\n //sets color of fighter to darker color if attack is in cooldown method else in norml state\r\n\r\n if(dFs[1].getAttacking() == 1)\r\n {\r\n g.setColor(new Color(0, 255, 255));\r\n \r\n int[] i = new int[4];\r\n i = attackHitBox(dFs[1]);\r\n\r\n g.fillRect(i[0],i[1],i[2],i[3]);\r\n }\r\n\r\n if(dFs[1].getBlocking() != 0)\r\n {\r\n if(dFs[1].getBlocking() == 1)\r\n {\r\n g.setColor(new Color(255, 255, 255));\r\n }else\r\n {\r\n g.setColor(new Color(150, 150, 150));\r\n }\r\n g.fillRect((int) (dFs[1].getPos()[0] + 10) ,(int) (dFs[1].getPos()[1] + 10), dFs[1].getSize() -20 , dFs[1].getSize() - 20);\r\n //draws square used to indicate blocking on fighter that is blocking and in color based on whether block is in active state\r\n }\r\n\r\n\r\n\r\n\r\n }else if(mode == 2)\r\n {\r\n \r\n g.setFont(new Font(\"Agency FB\", Font.BOLD, 30)); \r\n g.setColor(Color.white);\r\n g.drawString(\"Developed By Joseph Rother & Akshan Sameullah\",200,570); //draws author label with color white and specified font\r\n \r\n if(dFs[0].getHealth() > 0)\r\n {\r\n g.setFont(new Font(\"Agency FB\", Font.BOLD, 190));\r\n g.setColor(Color.red);\r\n g.drawString(\"Red\",500,200);\r\n g.drawString(\"Wins\",500,400); //Draws Red Wins in specified font and in red if Red wins\r\n \r\n \r\n }else\r\n {\r\n \r\n \r\n g.setColor(Color.cyan);\r\n g.setFont(new Font(\"Agency FB\", Font.BOLD, 190));\r\n g.drawString(\"Blue\",500,200);\r\n g.drawString(\"Wins\",500,400); //Draws Blue Wins in specified font if red health is 0\r\n \r\n \r\n }\r\n Graphics2D g2 = (Graphics2D) g;\r\n AffineTransform at = new AffineTransform();\r\n at.setToRotation(Math.toRadians(270), 440, 380);\r\n g2.setTransform(at);\r\n g2.setColor(Color.magenta);\r\n g2.setFont(new Font(\"Magneto\", Font.BOLD, 170));\r\n g2.drawString(\"Game\",250,80);\r\n g2.drawString(\"Over\",300,250); //draws game over in vertical position in font specified and in pink (same color as title)\r\n }\r\n \r\n g.dispose();\r\n }",
"@Override\r\n\tpublic void BuildLegLeft() {\n\t\tg.drawLine(60, 100, 45, 150);\r\n\t}",
"private void drawPowerSwitch(int x, int y) {\n \t\tStdDraw.setPenColor(StdDraw.WHITE);\n \t\tStdDraw.filledSquare(x + 0.5, y + 0.5, 0.5);\n \t\tStdDraw.setPenColor(StdDraw.RED);\n \t\tStdDraw.setPenRadius(.007);\n \t\tStdDraw.arc(x + 0.5, y + 0.5, 0.45, 120, 60);\n \t\tStdDraw.line(x + 0.5, y + 0.5, x + 0.5, y + 0.95);\n \t\tStdDraw.setPenRadius();\n \t}",
"public void UIDrawing(Graphics g)\n {\n key.draw(g);\n bomb.draw(g);\n heart.setxPos(originalxPos);\n heart.setyPos(originalyPos);\n halfHeart.setxPos(originalxPos);\n halfHeart.setyPos(originalyPos);\n emptyHeart.setxPos(originalxPos);\n emptyHeart.setyPos(originalyPos);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30)); \n if(this.getKeys() < 10)\n {\n g.setColor(Color.BLACK);\n g.drawString(\": 0\" + this.getKeys(), 40 + 2, 100);\n g.drawString(\": 0\" + this.getKeys(), 40 - 2, 100);\n g.drawString(\": 0\" + this.getKeys(), 40, 100 + 2);\n g.drawString(\": 0\" + this.getKeys(), 40, 100 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": 0\"+ this.getKeys(), 40, 100);\n }\n else\n {\n g.setColor(Color.BLACK);\n g.drawString(\": \" + this.getKeys(), 40 + 2, 100);\n g.drawString(\": \" + this.getKeys(), 40 - 2, 100);\n g.drawString(\": \" + this.getKeys(), 40, 100 + 2);\n g.drawString(\": \" + this.getKeys(), 40, 100 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": \"+ this.getKeys(), 40, 100);\n }\n if(this.getBombs() < 10)\n {\n g.setColor(Color.BLACK);\n g.drawString(\": 0\" + this.getBombs(), 40 + 2, 150);\n g.drawString(\": 0\" + this.getBombs(), 40 - 2, 150);\n g.drawString(\": 0\" + this.getBombs(), 40, 150 + 2);\n g.drawString(\": 0\" + this.getBombs(), 40, 150 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": 0\"+ this.getBombs(), 40, 150);\n }\n else\n {\n g.setColor(Color.BLACK);\n g.drawString(\": \" + this.getBombs(), 40 + 2, 150);\n g.drawString(\": \" + this.getBombs(), 40 - 2, 150);\n g.drawString(\": \" + this.getBombs(), 40, 150 + 2);\n g.drawString(\": \" + this.getBombs(), 40, 150 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": \"+ this.getBombs(), 40, 150);\n }\n for(int i = 0; i < this.getMaxHp() / 2; i++)\n {\n emptyHeart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n emptyHeart.setyPos(originalyPos + 30);\n emptyHeart.setxPos(originalxPos + (35 * (i - 6)));\n }\n emptyHeart.draw(g);\n }\n for(int i = 0; i < this.getHealth() / 2; i++)\n {\n heart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n heart.setyPos(originalyPos + 30);\n heart.setxPos(originalxPos + (35 * (i - 6)));\n }\n heart.draw(g);\n if(i == this.getHealth()/2 - 0.5 && ((int)this.getHealth() % 2) != 0)\n {\n halfHeart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n halfHeart.setxPos(originalxPos + (35 * (i - 6)));\n halfHeart.setyPos(originalyPos + 30);\n }\n halfHeart.draw(g);\n }\n }\n }",
"public void drawHealthBar(Graphics2D g2, int xOffset, int yOffset) {\n g2.setColor(Color.RED);\r\n g2.drawLine((int) position.x + healthBarOffsetX + xOffset,\r\n (int) position.y + healthBarOffsetY + yOffset, (int) position.x\r\n + healthBarOffsetX + xOffset + healthBarLength,\r\n (int) position.y + healthBarOffsetY + yOffset);\r\n g2.setColor(Color.GREEN);\r\n g2.drawLine((int) position.x + healthBarOffsetX + xOffset,\r\n (int) position.y + healthBarOffsetY + yOffset, (int) position.x\r\n + healthBarOffsetX + xOffset + healthBarLength\r\n * (int) (health / maxhealth), (int) position.y\r\n + healthBarOffsetY + yOffset);\r\n\r\n }",
"@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\tg.fillOval(0,0, this.getWidth(),this.getHeight());\r\n }",
"@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tint size, x, y;\n\t\tif (this.getHeight() < this.getWidth()) {\n\t\t\tsize = (int) (this.getHeight() / 1.5);\n\t\t} else {\n\t\t\tsize = (int) (this.getWidth() / 1.5);\n\t\t}\n\t\tx = (int) ((this.getWidth() / 2.0) - size / 2.0);\n\t\ty = (int) ((this.getHeight() / 2.0) - size / 2.0);\n\t\tint eyesize = (int) (size / 8.0);\n\t\tint eyex = (int) (x + size * 0.3 - eyesize / 2.0);\n\t\tint eyey = (int) (y + size * 0.4 - eyesize / 2.0);\n\t\tint eyex2 = (int) (x + size * 0.7 - eyesize / 2.0);\n\t\tint[] xpoints = {x, x + size, (int) (x + size / 2.0)};\n\t\tint[] ypoints = {(int) (y + size / 5.0), (int) (y + size / 5.0),\n\t\t\t\t(int) (y - size / 10.0)};\n\t\tPolygon hat = new Polygon(xpoints, ypoints, 3);\n\t\t\n\t\tif (zustand >0) {\n\t\t\tg.setColor(Color.GREEN);\n\t\t\tg.fillOval(x, y, size, size);\n\t\t\tg.setColor(Color.BLACK);\n\t\t\tg.fillOval(eyex, eyey, eyesize, eyesize);\n\t\t\tg.fillOval(eyex2, eyey, eyesize, eyesize);\n\t\t\tg.fillPolygon(hat);\n\t\t\tg.fillArc((int) (x + size / 5.0), (int) (y + size * 0.5),\n\t\t\t\t\t(int) (size * 0.6), (int) (size * 0.4), 0, -180);\n\t\t} else if (zustand == 0) {\n\t\t\tg.setColor(Color.YELLOW);\n\t\t\tg.fillOval(x, y, size, size);\n\t\t\tg.setColor(Color.BLACK);\n\t\t\tg.fillOval(eyex, eyey, eyesize, eyesize);\n\t\t\tg.fillOval(eyex2, eyey, eyesize, eyesize);\n\t\t\tg.fillPolygon(hat);\n\t\t\tg.fillRect(eyex, (int) (y + size * 0.75), eyex2 + eyesize - eyex,\n\t\t\t\t\t(int) (eyesize / 2.0));\n\t\t} else {\n\t\t\tg.setColor(Color.RED);\n\t\t\tg.fillOval(x, y, size, size);\n\t\t\tg.setColor(Color.BLACK);\n\t\t\tg.fillOval(eyex, eyey, eyesize, eyesize);\n\t\t\tg.fillOval(eyex2, eyey, eyesize, eyesize);\n\t\t\tg.fillPolygon(hat);\n\t\t\tg.fillArc((int) (x + size / 5.0), (int) (y + size * 0.6),\n\t\t\t\t\t(int) (size * 0.6), (int) (size * 0.4), 0, 180);\n\t\t}\n\t}",
"public void paint(Graphics g) {\n\t\t\tif(!winning&&!losing){\n\t\t\t\t//System.out.println(\"IN PAINT\");\n\t\t\t\tsuper.paint(g);\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"sky.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t\tlevel.addLevel();\n\t\t\t\tString chosen= level.getLevel(Level);\n\t\t\t\tlimit= level.getTime(Level);\n\t\t\t\t//\tg.drawRect (50, 50, 100, 100);\n\t\t\t\t//System.out.println(chosen);\n\n\t\t\t\tfor(int i=0;i<chosen.length();i++){\n\t\t\t\t\tchar c = chosen.charAt(i);\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tif(c==' '){\n\t\t\t\t\t\tside+=20;//add up to the x-position \n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='#'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)//if it is the first time print out\n\t\t\t\t\t\t\twalls.add(new wall(side,upper));//add to the wall list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='$'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tboxes.add(new box(side, upper));\n\n\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='\\n'){\n\t\t\t\t\t\tside=0;\n\t\t\t\t\t\tupper+=20;\n\t\t\t\t\t}\n\t\t\t\t\telse if (c=='.'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tareas.add(new area(side, upper));//add to the areas list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='a'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\th= new player(side+velX,upper+velY);//change the position of the player\n\t\t\t\t\t\tg.drawRect (h.getX(), h.getY(), 20, 20);\n\t\t\t\t\t\tg.drawImage(h.getP(), h.getX(),h.getY(),20,20, null);//draw the player\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tnumber++;// the number of paint times add\n\t\t\t\tside=40;//reset the initial x position\n\t\t\t\tupper=80;//reset the initial y position\n\t\t\t\t//\t\t\tSystem.out.println(\"here\");\n\t\t\t\tfor(int i=0;i<walls.size();i++){\n\t\t\t\t\t//System.out.println(\"HERE\");\n\t\t\t\t\twall a= walls.get(i);\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"X: \"+a.getX());\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"Y: \"+a.getY());\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\t//g.drawRect(30, 30, 100, 100);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(), 20, 20,null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the boxes\n\t\t\t\t */\n\t\t\t\tfor(int i=0;i<boxes.size();i++){\n\t\t\t\t\tbox a= boxes.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the areas\n\t\t\t\t */\n\t\t\t\tfor(int i=0; i<areas.size();i++){\n\t\t\t\t\tarea a = areas.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(null, a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t//System.out.println(m.getTime());\n\t\t\t\tg.drawString (\"Steps: \" + steps, 300, 400);\n\t\t\t\tg.drawString (\"Remaining steps: \" + (limit-steps), 300, 420);//show the remaining steps \n\t\t\t}\n\t\t\telse if(losing){//change the screen if you lose\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"over.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\t\t\telse if(winning){//change the screen if you win\n \n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"win.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\n\n\t\t\n\n\n\t\t}",
"@Override\r\n public void drawOn(DrawSurface d) {\r\n d.setColor(Color.black);\r\n d.drawText(100, 10, \"Lives: \" + lives, 10);\r\n }",
"private void drawStartButton(int w,int h){\r\n g.setColor(Color.gray); \r\n g.fillRect(60,h-70,w-80,50);\r\n g.setColor(Color.black);\r\n g.drawRect(60,h-70,w-80,50); \r\n \r\n Font font=new Font(\"SanSerif\",Font.BOLD,50); \r\n g.setFont(font);\r\n g.drawString(\"Start Game\",120,h-25);\r\n }",
"public void draw() {\n StdDraw.clear();\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setXscale(-drawLength * 0.1, drawLength * 1.2);\n StdDraw.setYscale(-drawLength * 0.65, drawLength * 0.65);\n StdDraw.line(0, 0, drawLength, 0);\n StdDraw.text(-drawLength * 0.05, 0, \"0\");\n StdDraw.text(drawLength * 1.1, 0, Integer.toString(size()));\n }",
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(this.color);\r\n\t\tg.fillOval((int)x, (int)y, side, side);\r\n\t\tg.setColor(this.color2);\r\n\t\tg.fillOval((int)x+5, (int)y+2, side/2, side/2);\r\n\t}",
"@Override\n protected void paintForeground(Graphics2D g) {\n\n int fontSize = 40;\n\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, fontSize));\n g.setColor(Color.black);\n g.drawString(\"Points:\" + rat.getFoodCount(), 0, 40);\n\n }",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制五角形\");\n\t}",
"@Override\n public void drawHealth() {\n System.out.println(\"I'm a hospital object \");\n }",
"public void draw(Graphics g, boolean gameover) { \r\n int healthPos= Main.WIDTH / 2+4;\r\n if (!gameover){\r\n g.setColor(Color.WHITE);\r\n g.fillRect(healthPos-3,(Main.HEIGHT /8) -51,6,37);\r\n if (this.playerNum==1){\r\n g.fillRect(healthPos-this.healthplace*3-5,(Main.HEIGHT /8) -47, (this.healthplace*3)+2, 29);\r\n g.setColor(Color.RED);\r\n g.fillRect(healthPos-this.healthplace*3-3, (Main.HEIGHT / 8) - 45, (this.healthplace*3), 25);\r\n g.setColor(Color.GREEN);\r\n g.fillRect(healthPos-this.health*3-3, (Main.HEIGHT / 8) - 45, (this.health*3), 25);\r\n }\r\n else{\r\n g.fillRect(healthPos+3,(Main.HEIGHT /8) -47, (this.healthplace*3)+2, 29);\r\n g.setColor(Color.RED);\r\n g.fillRect(healthPos+3, (Main.HEIGHT / 8) - 45, (this.healthplace*3), 25);\r\n g.setColor(Color.GREEN);\r\n g.fillRect(healthPos+3, (Main.HEIGHT / 8) - 45, (this.health*3), 25);\r\n }\r\n }\r\n \r\n g.drawImage(Main.sprites[getState()], this.positionX, this.positionY, this);\r\n\r\n }",
"protected void initCrossHairs() {\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n BitmapText ch = new BitmapText(guiFont, false);\n ch.setSize(guiFont.getCharSet().getRenderedSize() * 2);\n ch.setText(\"+\"); // crosshairs\n ch.setLocalTranslation( // center\n settings.getWidth() / 2 - ch.getLineWidth()/2, settings.getHeight() / 2 + ch.getLineHeight()/2, 0);\n guiNode.attachChild(ch);\n }",
"public void draw(Graphics g) {\n\t\tg.setColor(col);\n\t\tg.fillRect(this.x, this.y, this.width, this.height);\n\t\tif((col.getRed()+col.getGreen()+col.getBlue())/3 > 127)\n\t\t\tg.setColor(Color.black);\n\t\telse\n\t\t\tg.setColor(Color.white);\n\t\tg.drawString(\"\" + this.symbol, this.x + this.width / 2 - 4, this.y\n\t\t\t\t+ this.height / 2 + 5);\n\t\tg.setColor(Color.black);\n\n\t}",
"public int showPen () {\n myPenDown = true;\n return 1;\n }",
"@Override\n\tprotected void draw() {\n\t\tif(p != null) {\n\t\t\tp.pushStyle();\n\t\t\tp.noStroke();\n\t\t\tp.textAlign(PApplet.CENTER,PApplet.CENTER);\n\t\t\tp.textSize(12);\n\t\t\tif(this.isPressed) {\n\t\t\t\tp.fill(122, 138, 153);\n\t\t\t\tp.rect(x,y,width,height);\n\t\t\t\tp.fill(181, 206, 228);\n\t\t\t\tp.rect(x+2,y+2,width-4,height-4);\n\t\t\t\tp.fill(Color.BLACK.getRGB());\n\t\t\t\tp.text(text, x, y,width,height);\n\t\t\t}else {\n\t\t\t\tif(this.isHovered) {\n\t\t\t\t\tthis.p.fill(122, 138, 153);\n\t\t\t\t\tthis.p.rect(x, y, width, height);\n\t\t\t\t\tsetGradient(x+2,y+2,width-5,height-5,new Color(255,255,255),new Color(190, 211, 231));\n\t\t\t\t\tthis.p.fill(Color.BLACK.getRGB());\n\t\t\t\t\tthis.p.text(text, x, y,width,height);\n\t\t\t\t}else {\n\t\t\t\t\tthis.p.fill(122, 138, 153);\n\t\t\t\t\tthis.p.rect(x, y, width, height);\n\t\t\t\t\tsetGradient(x+1,y+1,width-3,height-3,new Color(255,255,255),new Color(190, 211, 231));\n\t\t\t\t\tthis.p.fill(Color.BLACK.getRGB());\n\t\t\t\t\tthis.p.text(text, x, y,width,height);\n\t\t\t\t}\n\t\t\t}\n\t\t\tp.popStyle();\n\t\t}\n\t}",
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.PINK);\r\n\t\tg.fillRect(getX(), getY(), getWidth(), getHeight());\r\n\t\t\r\n\t}",
"public void paintComponent(Graphics g)\n {\n super.paintComponent(g);\n g.setColor(Color.YELLOW);\n g.fillOval(0, 0, H-1, H-1);\n g.setColor(Color.BLACK);\n g.drawOval(0, 0, H-1, H-1);\n if (gameLost) //Frowny face\n {\n g.drawArc(H/4, 3*H/5, H/2, H/2, SMILE_START, SMILE_LENGTH);\n Font f = g.getFont();\n g.setFont(new Font(f.getName(), f.getStyle(), 2*f.getSize()/3));\n g.drawString(\"x\", H/4 - 1, H/4 + DEAD_EYE_SIZE);\n g.drawString(\"x\", 3*H/4 - DEAD_EYE_SIZE + 1, H/4 + DEAD_EYE_SIZE);\n g.setFont(f);\n }\n else //Smiley face\n {\n g.drawArc(H/4, H/4, H/2, H/2, -SMILE_START, -SMILE_LENGTH);\n if (gameWon) //with sunglasses\n {\n g.fillOval(H/4 - 1, H/4, GLASSES_WIDTH, GLASSES_HEIGHT);\n g.fillOval(3*H/4 - GLASSES_WIDTH + 1, H/4, GLASSES_WIDTH, GLASSES_HEIGHT);\n g.drawLine(H/4 - 1, H/4 + GLASSES_HEIGHT/2, 1, H/4);\n g.drawLine(3*H/4 + 1, H/4 + GLASSES_HEIGHT/2, H-2, H/4);\n }\n else //without sunglasses\n {\n g.fillOval(H/4, H/4, EYE_SIZE, EYE_SIZE);\n g.fillOval(3*H/4 - EYE_SIZE, H/4, EYE_SIZE, EYE_SIZE);\n }\n }\n }",
"public void intakeGlyph(){\n ILM.setPower(1);\n IRM.setPower(1);\n }",
"@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }",
"public void displayLeft(String text, int x, int y) {\n\t\tgc.setFont(vector); //set the font \n\t\tgc.setFill(Color.WHITE); //set the color of the text\n\t\tgc.fillText(text, x, y); //draw the text\n\t}",
"public char drawCell ()\n {\n final char ALIVE_SYMBOL = '\\u25A0';\n final char DEAD_SYMBOL = '\\u25A1';\n if (cellStatus)\n {\n return ALIVE_SYMBOL;\n }\n else\n {\n return DEAD_SYMBOL;\n }// end of if (cellStatus)\n }",
"public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}",
"@Override\r\n\tpublic void render(Graphics g) {\r\n\t\tg.setFont(menuFont);\r\n\t\tg.setColor(Color.WHITE);\r\n\t\t\r\n\t\tg.drawString(\"START GAME\",(game.getWidht()-164)/2,(game.getHeight()-56)/2);\t\t\r\n\t\tg.drawString(\"HIGH SCORES\",(game.getWidht()-174)/2,(game.getHeight()+18)/2);\r\n\t\tg.drawString(\"EXIT\",(game.getWidht()-58)/2,(game.getHeight()+94)/2);\r\n\t}",
"@Override\n public void paint(Graphics g) {\n if (flagged) {\n Font f = new Font(\"Times\", Font.PLAIN, 30);\n g.setFont(f);\n FontMetrics fm = g.getFontMetrics();\n int a = fm.getAscent();\n int h = fm.getHeight();\n int fl = fm.stringWidth(\"F\");\n g.setColor(new Color(170, 171, 167));\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n g.setColor(Color.WHITE);\n g.drawString(\"F\", size / 2 - fl / 2, size / 2 + a - h / 2);\n } else if (clicked) {\n //make the mines spots solid red squares\n if (mine) {\n g.setColor(Color.RED);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n } else {\n //if the spot has mines around it print the number in a specific color\n if (!numMines.equals(\"0\")) {\n Font f = new Font(\"Times\", Font.PLAIN, 30);\n g.setFont(f);\n FontMetrics fm = g.getFontMetrics();\n int a = fm.getAscent();\n int h = fm.getHeight();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n int w = fm.stringWidth(numMines);\n switch (numMines) {\n case \"1\":\n g.setColor(Color.BLACK);\n break;\n case \"2\":\n g.setColor(Color.BLUE);\n break;\n case \"3\":\n g.setColor(Color.RED);\n break;\n case \"4\":\n g.setColor(Color.GREEN);\n break;\n case \"5\":\n g.setColor(Color.ORANGE);\n break;\n case \"6\":\n g.setColor(Color.YELLOW);\n break;\n case \"7\":\n g.setColor(Color.CYAN);\n break;\n case \"8\":\n g.setColor(Color.PINK);\n break;\n default:\n break;\n }\n g.drawString(numMines, size / 2 - w / 2, size / 2 + a - h / 2);\n //if the spot has no mines around it leave it blank\n } else {\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, size, size);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n }\n }\n //if the spot was not clicked or flagged print the normal color\n } else {\n g.setColor(new Color(170, 171, 167));\n g.fillRect(1, 1, size - 2, size - 2);\n g.setColor(Color.BLACK);\n g.drawRect(0, 0, size, size);\n }\n }",
"@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.setColor(Color.yellow);\r\n\t\tg.fillRect((int) getX(), (int) getY(), 5, 10);\r\n\t}",
"@Override\r\n public void paintComponent(Graphics g) {\r\n super.paintComponent(g); g.setColor(Color.ORANGE);\r\n if (drawCirc == 0) {\r\n \tg.fillOval(txtLft,txtTop,txtWidth,txtHeight);\r\n }\r\n }",
"public void draw(Graphics g){\n g.setColor (colour);\n g.fillOval (x,y,DIAMETER, DIAMETER);\n g.setColor (Color.black);\n g.drawString(name, x+5, y+30);\n g.setFont (new Font (\"Times New Roman\", Font.PLAIN, 16) );\n g.setColor (Color.black);\n g.drawString (Integer.toString(seatNum), x+13 ,y+18) ;\n \n \n \n \n \n \n }",
"public void drawAngleIndicator(){\n\t\tfloat bottomLineHyp = 60;\n\t\tfloat topLineHyp = 100;\n\t\t\n\t\tfloat bottomXCoord = (float) ((Math.cos(Math.toRadians(angle) ) ) * bottomLineHyp);\n\t\tfloat bottomYCoord = (float) ((Math.sin(Math.toRadians(angle) ) ) * bottomLineHyp);\n\t\t\n\t\tfloat bottomX = Player.getxPlayerLoc() + ((Player.getPlayerImage().getWidth() * Player.getPlayerScale()) / 2 ) + bottomXCoord;\n\t\tfloat bottomY = Player.getyPlayerLoc() + ((Player.getPlayerImage().getHeight() * Player.getPlayerScale()) / 2 ) + bottomYCoord ;\n\t\t\n\t\tfloat topXCoord = (float) ((Math.cos(Math.toRadians(angle) ) ) * topLineHyp);\n\t\tfloat topYCoord = (float) ((Math.sin(Math.toRadians(angle) ) ) * topLineHyp);\n\t\t\n\t\tfloat topX = Player.getxPlayerLoc() + ((Player.getPlayerImage().getWidth() * Player.getPlayerScale() ) / 2 ) + topXCoord;\n\t\tfloat topY = Player.getyPlayerLoc() + ((Player.getPlayerImage().getHeight() * Player.getPlayerScale() ) / 2 ) + topYCoord;\n\t\t\n\t\tShapeRenderer shape = new ShapeRenderer();\n\t\tshape.setColor(Color.BLACK);\n\t\tshape.begin(ShapeType.Line);\n\t\tshape.line(bottomX, bottomY, topX, topY);\n\t\tshape.end();\n\t}",
"@Override\n public String toString() {\n if ((!isOccupied()) && (getLevel()==0)) {\n return \"-- --\";\n }\n else if ((isOccupied()) && (getLevel()==0)) {\n return getColor().abbrev()+\"- --\";\n }\n else if ((!isOccupied()) && (getLevel()>0) && (!isDomed())) {\n return \"-- \"+getLevel()+\"-\";\n }\n else if ((!isOccupied()) && (getLevel()>0) && (isDomed())) {\n return \"-- \"+getLevel()+\"*\";\n }\n else if (isOccupied() && getLevel()>0 && (isDomed())) {\n return getColor().abbrev()+\"- \"+getLevel()+\"*\";\n }\n else if (isOccupied() && getLevel()>0 && (!isDomed())) {\n return getColor().abbrev()+\"- \"+getLevel()+\"-\";\n }\n else return \"err\";\n }",
"@Override\n public void paintComponent(Graphics g) {\n loadScore();\n stage = Board.getStage();\n super.paintComponent(g);\n Font font = loadFont();\n ArrayList<Image> tankList = new ArrayList<>(\n Arrays.asList(imageInstance.getTankBasic(),\n imageInstance.getTankFast(),\n imageInstance.getTankPower(),\n imageInstance.getTankArmor()));\n\n // Display High totalScore\n g.setFont(font);\n g.setColor(Color.WHITE);\n g.drawString(\"STAGE \" + String.valueOf(stage), 230 + SHIFT, 200);\n\n g.setColor(Color.RED);\n g.drawString(\"1-PLAYER\", 235 + SHIFT, 240);\n\n g.setColor(Color.orange);\n g.drawString(\"Total points\", 180 + SHIFT, 270);\n\n g.setColor(Color.orange);\n g.drawString(String.valueOf(totalScore), 385 + SHIFT, 272);\n\n for (int i = 0; i < 4; i++) {\n g.drawImage(tankList.get(i), 380 + SHIFT, 290 + (i * 45), this);\n g.drawImage(imageInstance.getArrow(), 350 + SHIFT, 300 + (i * 45),\n this);\n }\n for (int i = 0; i < 4; i++) {\n g.setColor(Color.WHITE);\n g.drawString(String.valueOf(tankScoreList[i]), 185 + SHIFT,\n 312 + (i * 45));\n g.drawString(\"PTS\", 250 + SHIFT, 312 + (i * 45));\n }\n\n for (int i = 0; i < 4; i++) {\n g.setColor(Color.WHITE);\n g.drawString(String.valueOf(tankNumList[i]), 320 + SHIFT,\n 312 + (i * 45));\n }\n\n // total underline\n g.drawLine(270, 480, 500, 480);\n\n g.drawString(\"TOTAL killed\", 200 + SHIFT, 500);\n g.drawString(String.valueOf(totalTankNum), 400 + SHIFT, 500);\n g.setFont(font);\n g.setColor(Color.WHITE);\n }",
"public void render(Graphics g){\r\n g.setColor(Color.gray);\r\n g.fillRect(15,15,200,32);\r\n g.setColor(new Color((int)redValue,(int)greenValue,0));\r\n g.fillRect(15,15,(int)health * 2,32);\r\n g.setColor(Color.white);\r\n g.drawRect(15,15,200,32);\r\n g.drawString(\"Score: \" + score, 220, 24);\r\n g.drawString(\"Level: \" + level, 220, 44);\r\n }",
"public String paint(int wight, int height) {\n StringBuilder screen = new StringBuilder();\n String ln = System.lineSeparator();\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < wight; j++) {\n if ((i + j) % 2 == 0) {\n screen.append(\"X\");\n } else {\n screen.append(\" \");\n }\n }\n screen.append(ln);\n }\n return screen.toString();\n }",
"@Override\r\n\tpublic void paint(Graphics g) {\n\t\tswitch(this.getAngle()){\r\n\t\tcase 0 :\r\n\t\t\tg.fillRect(this.getX()+(this.getTaille()/4), this.getY(), this.getTaille()/2, this.getTaille());\r\n\t\t\tbreak;\r\n\t\tcase 90:\r\n\t\t\tg.fillRect(this.getX(), this.getY()+(this.getTaille()/4), this.getTaille(), this.getTaille()/2);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void med1() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 1\");\n win.setLocation(300, 10);\n win.setBackground(java.awt.Color.red);\n for(int y = -10; y < HEIGHT; y += 24) {\n for(int x = -10; x < WIDTH; x += 24) {\n octagon(x, y, g);\n }\n }\n }",
"public void draw() {\n if (numSides <= 6) {\n System.out.println(\"- - - - - -\");\n \n for (int i = numSides - 2; i < numSides; i++) {\n System.out.print(\" | \");\n for (int j = 0; j < this.value ; j++) {\n if (value == 1) {\n System.out.print(\" \");\n }\n if (i % 2 == 0) {\n System.out.print(\"*\");\n } else {\n System.out.print(\" \");\n }\n if (value == 1) {\n System.out.print(\" \");\n }\n }\n }\n System.out.println(\"\");\n System.out.println(\"- - - - - -\");\n } else {\n print();\n }\n }",
"protected void paintComponent(Graphics g){\n g.drawOval(110,110,50,50);\n }",
"void drawMancalaShape(Graphics g, int x, int y, int width, int height, int stoneNum, String pitLabel);",
"public void addHealthLevel(int points)\n {\n healthLevel = healthLevel + points;\n showHealthLevel();\n if (healthLevel < 0) \n {\n Greenfoot.playSound(\"game-over.wav\");\n Greenfoot.stop();\n }\n }",
"private void drawBubbleStatus(Graphics g, int x, int y) throws IOException{\n\t\t ImageIcon bg;\n\t\t bg = new ImageIcon(ImageIO.read(new File(relativePath + \"bubbleStatus.png\")));\n\t\t bg.paintIcon(this, g, x, y);\n\t }",
"public void hp(Graphics g) {\n\t\tw = g.getFontMetrics().stringWidth(\"HP: \" + player.hp); //Get the width of the rendered text\n\t\tg.setColor(Color.white); //Set the colour for the text\n\t\tg.setFont(f); //Set the font for the text\n\t\tg.drawString(\"HP: \" + player.hp, WIDTH-w-25, 25); //Draw \"HP: #\" in the top right corner of the screen\n\t}",
"public void draw(Graphics g){\n\n g.setColor(Color.red);\n g.drawLine(x1,y1,x2,y2);\n g.drawLine(x2,y2,x3,y3);\n g.drawLine(x3,y3,x1,y1);\n g.setFont(new Font(\"Courier\", Font.BOLD, 12));\n DecimalFormat fmt = new DecimalFormat(\"0.##\"); \n g.setColor(Color.blue);\n g.drawString(fmt.format(perimeter()) + \" \" + name,x1+2 , y1 -2);\n \n }",
"public void drawDragon(Graphics g)\n {\n g.setColor(c); // Watermelon Dragon.\n g.fillRect(x, y , size * 25, size * 25); //Draw Head\n g.fillRect(bodyX, bodyY, bodyWidth, bodyHeight); //Draw Body\n g.fillRect(x+size * 25, (y + size*25) + size * 50, size * 10, size * 50); //Draw Leg #1\n g.fillRect(x+size * 25+ size*60-size*10, (y + size*25) + size * 50, size * 10, size * 50); //Draw Leg #2//Draw Health bar\n /*if(health > 30)\n {\n g.setColor(Color.YELLOW);\n g.fillRect(x, y - 50, size * 60, size*50/6);\n }*/\n \n }",
"private void drawLeftColoumnText(SettingsClass s){\r\n Font font=new Font(\"SanSerif\",Font.BOLD,40);\r\n g.setColor(Color.black);\r\n g.setFont(font);\r\n\r\n g.drawString(\"Players\",50,40+50*1);\r\n g.drawString(\"Match Point\",50,40+50*2);\r\n g.drawString(\"Time Limit\",50,40+50*3);\r\n g.drawString(\"Sudden Death\",50,40+50*4);\r\n \r\n // draws player numbers\r\n font=new Font(\"SanSerif\",Font.BOLD,30);\r\n g.setColor(Color.black);\r\n g.setFont(font);\r\n for(int i=0;i<s.getNumPlayers();i++){\r\n String text=\"Player \"+(char)(i+1+'0');\r\n g.drawString(text,50,300+40*i); \r\n }\r\n }",
"@Override\r\n\tprotected void draw() {\n\t\tgoodCabbage = new Oval(center.x - CABBAGE_RADIUS, center.y\r\n\t\t\t\t- CABBAGE_RADIUS, 2 * CABBAGE_RADIUS, 2 * CABBAGE_RADIUS,\r\n\t\t\t\tColor.red, true);\r\n\t\twindow.add(goodCabbage);\r\n\t}",
"public void display() {\n float dRadial = reactionRadialMax - reactionRadial;\n if(dRadial != 0){\n noStroke();\n reactionRadial += abs(dRadial) * radialEasing;\n fill(255,255,255,150-reactionRadial*(255/reactionRadialMax));\n ellipse(location.x, location.y, reactionRadial, reactionRadial);\n }\n \n // grow text from point of origin\n float dText = textSizeMax - textSize;\n if(dText != 0){\n noStroke();\n textSize += abs(dText) * surfaceEasing;\n textSize(textSize);\n }\n \n // draw agent (point)\n fill(255);\n pushMatrix();\n translate(location.x, location.y);\n float r = 3;\n ellipse(0, 0, r, r);\n popMatrix();\n noFill(); \n \n // draw text \n textSize(txtSize);\n float lifeline = map(leftToLive, 0, lifespan, 25, 255);\n if(mouseOver()){\n stroke(229,28,35);\n fill(229,28,35);\n }\n else {\n stroke(255);\n fill(255);\n }\n \n text(word, location.x, location.y);\n \n // draw connections to neighboars\n gaze();\n }",
"@Override\n\tpublic void paintComponent(Graphics g){\n\t\tsuper.paintComponent(g);\n\t\tg.setColor(indicateColor);\n\t\tg.fillOval(0, 0, checkerSize, checkerSize);\t\n\t\t\n\t}",
"@Override\r\n\tpublic void BuildHead() {\n g.drawRoundRect(0, 0, 50, 20, 30, 30);\r\n\t}",
"@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }",
"private void drawHeart2 (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n \n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n System.out.println(\"Aqui\");\n \n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\t//tBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }",
"public void paintComponent(Graphics g){\n\t\t\n\t\tBufferedImage image = this.background;\n\t\tif(this.num == 2){\n\t\t\timage = this.grassBackground;\n\t\t}\n\t\t\n\t\t//first paint the background image\n\t\tg.drawImage(image, 0, 0, 640, 480, this);\n\t\t//then draw the foreground\n\t\tthis.foreground.paintComponent(g);\n\t\t//and last draw the player\n\t\tthis.player.paintComponent(g);\n\t\t\n\t\t//temporary index that initialized as 0 every time\n\t\tint i = 0;\n\t\tint x = 600;\t//the starting position of the health\n\t\t//paint the health on the right upper corner of the screen\n\t\twhile(i < this.player.getHealth()){\n\t\t\tg.drawImage(this.health, x, 0, 38, 38, this);\n\t\t\ti++;\t//change the index\n\t\t\tx -= 40;\t//change the x position the heart is drawn\n\t\t\t\t\t\t//make a little distance between each heart\n\t\t}\n\t}",
"public void drawLevelNumber(int lvl){\n Graphics2D g2d = (Graphics2D) infoCanvas.getGraphics();\n g2d.setColor(Color.BLACK);\n g2d.fillRect(infoCanvas.getWidth() / 3 + 4, infoCanvas.getHeight() / 10 + 6, infoCanvas.getWidth() / 3 - 8, infoCanvas.getHeight() / 10 - 8);\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, infoCanvas.getHeight() / 12);\n g2d.setFont(f);\n g2d.setColor(Color.GREEN);\n int startX = infoCanvas.getWidth() / 3 + 4;\n int startY = infoCanvas.getHeight() / 10 + 10;\n int stringX = startX + (infoCanvas.getWidth() / 3 - 8)/3 * 2;\n g2d.drawString(String.valueOf(lvl), stringX, startY + infoCanvas.getHeight() / 10 - 18);\n }",
"public void draw() {\n p.pushMatrix(); // save old visual style for other sprites\n p.translate(pos.x, pos.y); \n if (localpen) p.image(pen.get(0,0,p.width,p.height),p.width/2-pos.x, p.height/2-pos.y);\n if (visible) {\n // locked left-right rotation\n if (((direction%360<=270) & (direction%360>=90)) & rotationStyle==rotationStyle_leftRight) p.scale(-1.0f,1.0f);\n if (rotationStyle==rotationStyle_allAround) p.rotate(p.radians(-direction));\n if (ghostEffect > 0) {\n int calculatedAlpha = (int)p.map(ghostEffect,100,0,0,255);\n \n int[] alpha = new int[costumes.get(costumeNumber).width*costumes.get(costumeNumber).height];\n for (int i=0; i<alpha.length; i++) {\n // only fade non-zero pixels; 0 is full-transparency\n if (costumes.get(costumeNumber).pixels[i]!=0) alpha[i]=calculatedAlpha;\n }\n costumes.get(costumeNumber).mask(alpha);\n }\n p.image(costumes.get(costumeNumber), 0, 0, costumes.get(costumeNumber).width*(size/100),\n costumes.get(costumeNumber).height*(size/100));\n }\n p.popMatrix(); // restore default visual style\n }",
"public void display() {\n shadow.display();\r\n strokeWeight(strokeWeight);\r\n fill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }",
"public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}",
"private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }",
"public void render(Graphics g) {\n\t\tg.setColor(Color.MAGENTA);\n\t\tg.fillRect(x, y, 50, 50);\n\t\t\n\t\tg.setColor(Color.white);\n\t\tg.drawRect(x, y, 50, 50);\n\t\t\n\t\tg.setColor(Color.gray);\n\t\tg.fillRect(x, y - 10, 50, 2);\n\t\t\n\t\tg.setColor(Color.red);\n\t\tg.fillRect(x, y - 10, bossHealth, 2);\n\t}",
"private void drawHeart (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n\n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\t\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\tsceneBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\tsceneBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }",
"public static void drawBorder(int length, char symbol){\n for (int i = 1; i <= length; i++){\n System.out.print(symbol);\n }\n System.out.println();\n }",
"@Override\n public void draw(Graphics graphics){\n graphics.fillRect(referencePoint.getX() + width / 3, referencePoint.getY() + height / 3, width / 3, height / 3);\n }",
"private void showDraw() {\n StdDraw.show(0);\n // reset the pen radius\n StdDraw.setPenRadius();\n }",
"@Override\n public void draw(GraphicsContext gc, int sides){}",
"abstract public char drawGadget(Vect position);",
"@Override\n protected void buildGraphics() {\n GArc rightWing = new GArc(100, 100, -60, 120);\n rightWing.setColor(Color.magenta);\n rightWing.setFilled(true);\n rightWing.setFillColor(Color.magenta);\n // position in format (cx - r, cy - r) for arc\n getGraphics().add(rightWing, (-15 - 50), (0 - 50));\n\n GArc leftWing = new GArc(100, 100, 120, 120);\n leftWing.setColor(Color.magenta);\n leftWing.setFilled(true);\n leftWing.setFillColor(Color.magenta);\n getGraphics().add(leftWing, (-15 - 50), (0 - 50));\n\n GOval rightWingDot = new GOval(-3, -15, 30, 30);\n rightWingDot.setColor(Color.blue);\n rightWingDot.setFilled(true);\n rightWingDot.setFillColor(Color.blue);\n getGraphics().add(rightWingDot);\n\n GOval rightWingDot2 = new GOval(7, -5, 10, 10);\n rightWingDot2.setColor(Color.cyan);\n rightWingDot2.setFilled(true);\n rightWingDot2.setFillColor(Color.cyan);\n getGraphics().add(rightWingDot2);\n\n GLine rightWingLine = new GLine(-15, 0, 35, 0);\n rightWingLine.setColor(Color.green);\n getGraphics().add(rightWingLine);\n\n GOval leftWingDot = new GOval(-57, -15, 30, 30);\n leftWingDot.setColor(Color.blue);\n leftWingDot.setFilled(true);\n leftWingDot.setFillColor(Color.blue);\n getGraphics().add(leftWingDot);\n\n GOval leftWingDot2 = new GOval(-47, -5, 10, 10);\n leftWingDot2.setColor(Color.cyan);\n leftWingDot2.setFilled(true);\n leftWingDot2.setFillColor(Color.cyan);\n getGraphics().add(leftWingDot2);\n\n GLine leftWingLine = new GLine(-15, 0, -65, 0);\n leftWingLine.setColor(Color.green);\n getGraphics().add(leftWingLine);\n\n GOval body = new GOval(-20, -30, 10, 60);\n body.setColor(Color.black);\n body.setFilled(true);\n body.setFillColor(Color.black);\n getGraphics().add(body);\n\n GOval head = new GOval(-23, -43, 16, 16);\n head.setColor(Color.black);\n head.setFilled(true);\n head.setFillColor(Color.black);\n getGraphics().add(head);\n }",
"@Override\r\n \tpublic void paintComponent(Graphics g) {\r\n \t\tsuper.paintComponent(g);\r\n \t\tdrawSnake(g);\r\n \t}",
"@Override\r\n public void paint (Graphics g)\r\n {\r\n super.repaint();\r\n g.setFont(new java.awt.Font(\"Brush Script MT\", Font.BOLD, 80));\r\n g.drawImage (hauntedHouse.getImage(), 0, 0, 1024, 590, null);\r\n g.setColor(Color.white);\r\n g.drawString(\"EduGames\", 360, 550 - count*2);\r\n g.drawString(\"Created and designed by\", 130, 640 - count*2);\r\n g.drawString(\"Jessica and Hannah\", 220, 730- count*2);\r\n g.drawString(\"Instructions - Hannah\", -1140+count*2, 150);\r\n g.drawString(\"Levels Menu - Jessica\", -1140+count*2, 250);\r\n g.drawString(\"High Scores - Hannah\", -1140+count*2, 350);\r\n g.drawString(\"Goodbye Screen - Hannah\", -1190+count*2, 450);\r\n g.drawString(\"Level 1 - Jessica\", 250, -1980 + count*2);\r\n g.drawString(\"Level 2 - Jessica\", 250, -1890 + count*2);\r\n g.drawString(\"Level 3 - Hannah\", 230, -1800 + count*2);\r\n g.drawString(\"Splashscreen - Jessica\", 3300 - count*2,90 );\r\n g.drawString(\"Character Graphics - Jessica and Hannah\", 3300 - count*2, 190);\r\n g.drawString(\"Background Graphics - Hannah and Jessica\", 3300- count*2, 290 );\r\n g.drawString(\"Introduction Animation - Jessica\", 3300- count *2, 390);\r\n g.drawString(\"Ending Animation - Hannah\", 3300 - count*2, 490);\r\n }",
"@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tGraphics2D ga = (Graphics2D) g; \n\t\t\tif (currentColor == color) {\n\t\t\t\tShape check = factory.getShape(ShapeFactory.CHECK);\n\t\t\t\tcheck.setPosition(new Point2D.Double(point.getX() + getPreferredSize().width/2 - 7, point.getY()+ 25));\n\t\t\t\tga.setColor(currentColor);\n\t\t\t\tcheck.draw(ga);\n\t\t\t}\n\t\t}",
"@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint x = (width - icon.getIconWidth()) / 2;\n\t\t\tint y = icon.getIconHeight() / 2;\n\t\t\tg.setColor(Color.darkGray);\n\t\t\tg.fillRect(0, 0, width, height);\n\t\t\ticon.paintIcon(this, g, x, y);\n\t\t}",
"public void paintComponent( Graphics g )\n\t\t{\n\t\t\tsuper.paintComponent( g );\n\t\t\t\n\t\t\tg.drawRect(0, 0, 29, 29); // draw square\n\t\t\tg.drawString( mark, 11, 20); // draw mark\n\t\t}",
"private void addHealthBar(){\n Drawable d = new TextureRegionDrawable(new TextureRegion(new Texture(Gdx.files.internal(\"imgs/heart.png\"))));\r\n Image healthLabel = new Image(d);\r\n healthLabel.setWidth(40);\r\n healthLabel.setHeight(40);\r\n healthLabel.setPosition(690,stage.getHeight()-75);\r\n stage.addActor(healthLabel);\r\n //===================End of Replace the label live with some m_offImage=======================\r\n\r\n Pixmap pixmap = new Pixmap(100, 20, Pixmap.Format.RGBA8888);\r\n pixmap.setColor(Color.RED);\r\n pixmap.fill();\r\n TextureRegionDrawable drawable = new TextureRegionDrawable(new TextureRegion(new Texture(pixmap)));\r\n pixmap.dispose();\r\n ProgressBar.ProgressBarStyle progressBarStyle = new ProgressBar.ProgressBarStyle();\r\n progressBarStyle.background = drawable;\r\n\r\n pixmap = new Pixmap(0, 20, Pixmap.Format.RGBA8888);\r\n pixmap.setColor(Color.GREEN);\r\n pixmap.fill();\r\n drawable = new TextureRegionDrawable(new TextureRegion(new Texture(pixmap)));\r\n pixmap.dispose();\r\n\r\n progressBarStyle.knob = drawable;\r\n\r\n pixmap = new Pixmap(100, 20, Pixmap.Format.RGBA8888);\r\n pixmap.setColor(Color.GREEN);\r\n pixmap.fill();\r\n drawable = new TextureRegionDrawable(new TextureRegion(new Texture(pixmap)));\r\n pixmap.dispose();\r\n\r\n progressBarStyle.knobBefore = drawable;\r\n\r\n healthBar = new ProgressBar(0.0f, 1.0f, 0.01f, false, progressBarStyle);\r\n\r\n healthBar.setValue(1.0f);\r\n healthBar.setAnimateDuration(0.025f);\r\n healthBar.setBounds(10, 10, 200, 20);\r\n healthBar.setFillParent(true);\r\n healthBar.setPosition(750,stage.getHeight()-65);\r\n\r\n //return healthBar;\r\n stage.addActor(healthBar);\r\n }"
]
| [
"0.69064796",
"0.68619597",
"0.63501084",
"0.62178534",
"0.61723804",
"0.61698824",
"0.61633646",
"0.6119969",
"0.6055063",
"0.60530984",
"0.60394275",
"0.60376066",
"0.60193574",
"0.60098666",
"0.59936243",
"0.59910667",
"0.59891963",
"0.5978666",
"0.5978268",
"0.59425133",
"0.59275436",
"0.5898274",
"0.5864886",
"0.5841232",
"0.5831967",
"0.5811977",
"0.5808846",
"0.5804604",
"0.5788871",
"0.5783746",
"0.5782813",
"0.5782245",
"0.57654846",
"0.57629037",
"0.57381034",
"0.5735457",
"0.5734187",
"0.5729552",
"0.5694171",
"0.56913596",
"0.5688016",
"0.5680497",
"0.5666732",
"0.5653729",
"0.56259996",
"0.5606362",
"0.56056845",
"0.5605575",
"0.55992466",
"0.5599203",
"0.55884445",
"0.5585957",
"0.5580859",
"0.5577957",
"0.55776244",
"0.556481",
"0.5563407",
"0.5562147",
"0.55548775",
"0.55538493",
"0.5553471",
"0.5545724",
"0.55444336",
"0.5538311",
"0.55361533",
"0.5531421",
"0.5525144",
"0.55071723",
"0.550278",
"0.55024123",
"0.5499823",
"0.5499531",
"0.5496367",
"0.5488142",
"0.547791",
"0.5473533",
"0.54692584",
"0.54638857",
"0.5463151",
"0.5459283",
"0.545721",
"0.54545546",
"0.54545355",
"0.54540455",
"0.5449934",
"0.5449102",
"0.5445892",
"0.54434353",
"0.54352677",
"0.54338163",
"0.5432375",
"0.54191065",
"0.541712",
"0.5417088",
"0.5415558",
"0.5413133",
"0.54097426",
"0.54068995",
"0.5406698",
"0.540324"
]
| 0.62799346 | 3 |
define the key press effect | public void keyPressed() {
if (keyCode == ENTER){
if (2 == currentPage) {
currentPage = 3;
}
if (1 == currentPage) {
tmpframecount = frameCount;
currentPage = 2;
}
else if (0 == currentPage) {
currentPage = 1;
}
}
if (key == 'z' || key == 'Z') shoot = true;
if (key == 'x' || key == 'X') useBomb = true;
if (key == 'r' ||key == 'R') restart = true;
if (currentPage == 1){
if (keyCode == 49) flightType = 1;
if (keyCode == 50) flightType = 2;
if (keyCode == 51) flightType = 3;
if (keyCode == 52) flightType = 4;
}
if (keyCode == UP) {
up = true;
changeFlightType(0);
}
if (keyCode == DOWN) {
down = true;
changeFlightType(1);
}
if (keyCode == LEFT) {
left = true;
changeFlightType(2);
}
if (keyCode == RIGHT) {
right = true;
changeFlightType(3);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void keyPress(int key);",
"@Override\n public void keyboardAction( KeyEvent ke )\n {\n \n }",
"public void keyPressed() { \n\t\twantsFrameBreak = true;\n\t\t//key = e.getKeyChar();\n\t\tkeyPressed = true;\n\t\tif (System.nanoTime() - acted > .033e9f) {\n\t\t\t_keyPressed();\n\t\t}\n\t}",
"public void keyPressed(KeyEvent e) {}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void keyPressed( KeyEvent e ) { }",
"protected void keyPressedImpl()\n {\n if (key == 'g') {\n trigger = true;\n triggerCount = 1;\n }\n else if (key == 'h') {\n trigger = !trigger;\n }\n }",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"void keyPressed(int keycode);",
"public abstract void keyPressed(int key);",
"@Override\n public void keyPressed(KeyEvent e) {\n\n\n }",
"public abstract void keyPressed(int k);",
"public void onKeyPress(Widget sender, char keyCode, int modifiers) {\n }",
"public void keyPressed(KeyEvent e) {\n \n }",
"public void keyPressed(KeyEvent e) {\n \n }",
"public void keyPressed(KeyEvent e) {\n \n }",
"void keyPressed(int keyCode);",
"@Override\r\n\tpublic void keyPressed(KeyEvent keyPressed)\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n public void keyPressed(KeyEvent e) {\n \n \n }",
"public void keyPressed(KeyEvent e) { }",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void keyPressed(KeyEvent e) {\n keyPressed[e.getKeyCode()] = true;\n updateFlags();\n }",
"@Override\n\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\n\t\t}",
"public void keyPressed(KeyEvent e)\r\n {\r\n if (e.getKeyCode() == KeyEvent.VK_SPACE)\r\n {\r\n onMenu = true;\r\n init();\r\n }\r\n\r\n if (e.getKeyCode() == KeyEvent.VK_UP)\r\n {\r\n if (delay > 0)\r\n delay--;\r\n }\r\n\r\n if (e.getKeyCode() == KeyEvent.VK_DOWN)\r\n {\r\n delay++;\r\n }\r\n\r\n if (e.getKeyCode() == KeyEvent.VK_P)\r\n {\r\n if (paused)\r\n {\r\n paused = false;\r\n }\r\n else\r\n {\r\n paused = true;\r\n repaint();\r\n }\r\n }\r\n if (e.getKeyCode() == KeyEvent.VK_R)\r\n {\r\n repaint();\r\n }\r\n }",
"@Override\r\n public void keyPressed(KeyEvent e) {\n \r\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n public void keyPressed(KeyEvent ke) {\n }",
"@Override\n\tpublic void keyPressed() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\tpublic void keyPressed(KeyEvent evt) {\n\t\t\n\t}",
"void handleKey(int keyCode, char keyChar, boolean press) {\r\n //keyCode.get == MouseEvent.c;\r\n //java.awt.event.MouseEvent e = null;\r\n // System.out.println(\"so \" + e.getClickCount());\r\n if (keyCode > 0) {\r\n setVal(button, press);\r\n }\r\n\r\n /*switch (keyCode) {\r\n\r\n // PLAYER_1\r\n case MOUSE_EVENT_MASK:\r\n setVal(button, 0, press);\r\n break;\r\n // PLAYER_2\r\n /*case VK_M:\r\n setVal(button, 1, press);\r\n break;\r\n // PLAYER_3\r\n case VK_LEFT:\r\n setVal(button, 2, press);\r\n break;\r\n // PLAYER_4\r\n case VK_NUMPAD3:\r\n setVal(button, 3, press);\r\n break;*/\r\n //default:\r\n //}\r\n }",
"public void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"public void keyPressed() {\n\t ackEvent();\n if (key == ' ') {\n pauseTic = !pauseTic;\n EventQueue.getInstance().togglePause();\n }\n if (key == '.') {\n EventQueue.getInstance().beginEvents();\n } else if (key == '\\n') {\n if (pauseTic) { //only let this run if the display is paused\n StringManager.getInstance().ticAllOneCycle();\n }\n }else KeyMap.getInstance().run(key);\n }",
"@Override\r\n\tpublic void keyPressed() {\n\t\tl.key();\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\r\n\t}",
"public void hitKey() {\n }",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t}",
"public void keyPressed() {\r\n \t\tkeys[keyCode] = true;\r\n \t}",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n public void keyPressed(KeyEvent e) {}",
"@Override\n public void keyPressed(KeyEvent e) {\n\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n\n }",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}",
"@Override\r\n public void keyPressed(KeyEvent e) {\r\n // set true to every key pressed\r\n keys[e.getKeyCode()] = true;\r\n }",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\r\n\t}",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\r\n\t}",
"@Override\n public void onKeyPressed(KeyEvent event) {\n }",
"@Override\r\n public void keyPressed(KeyEvent e) {\r\n\r\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n }",
"@Override\n\t\t\t\tpublic void keyPressed(KeyEvent arg0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent arg0)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}"
]
| [
"0.7431145",
"0.73274845",
"0.72530025",
"0.7240209",
"0.7227289",
"0.7227289",
"0.7227289",
"0.72199816",
"0.72143036",
"0.7209433",
"0.7200855",
"0.71916133",
"0.71905667",
"0.7187355",
"0.71773094",
"0.71621096",
"0.71621096",
"0.71621096",
"0.71536905",
"0.7145128",
"0.7130633",
"0.71232885",
"0.7114826",
"0.71109825",
"0.710734",
"0.71037567",
"0.70948154",
"0.7093756",
"0.7081618",
"0.7080009",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.7058151",
"0.70489204",
"0.70461184",
"0.7045714",
"0.7045714",
"0.7045714",
"0.7045714",
"0.70443505",
"0.70443505",
"0.70443505",
"0.70443505",
"0.70443505",
"0.70443505",
"0.70443505",
"0.704033",
"0.7033674",
"0.70334554",
"0.70334554",
"0.70334554",
"0.70334554",
"0.7031865",
"0.70277625",
"0.70245755",
"0.70225036",
"0.70225036",
"0.70225036",
"0.70225036",
"0.70225036",
"0.70225036",
"0.70225036",
"0.70225036",
"0.70188016",
"0.701854",
"0.701854",
"0.7017834",
"0.70084465",
"0.70084465",
"0.70084465",
"0.70084465",
"0.70077825",
"0.69965047",
"0.69965047",
"0.69928825",
"0.69917303",
"0.6989842",
"0.6989779",
"0.6989717",
"0.6988131",
"0.6988131",
"0.6988131",
"0.6988131",
"0.6988131",
"0.6988131",
"0.6988131",
"0.6988131"
]
| 0.0 | -1 |
define the effects of releasing the key | public void keyReleased() {
if (key == 'z' || key == 'Z') shoot = false;
if (keyCode == UP) up = false;
if (keyCode == DOWN) down = false;
if (keyCode == LEFT) left = false;
if (keyCode == RIGHT) right = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void keyReleased() {\t\t\r\n \t\t\r\n \t\tkeys[keyCode] = false;\r\n \t}",
"public void keyReleased (KeyEvent e)\r\n {\r\n \tkeyPressed = false;\r\n \tkeyReleased = true;\r\n \tkey = 0;\r\n }",
"@Override\n\tpublic void keyReleased(int k) {\n\n\t}",
"public void keyReleased(KeyEvent e) \r\n {\r\n \tkeyUser = 0;\r\n }",
"@Override\n public void keyReleased(KeyEvent e) {\n\n keyPressed[e.getKeyCode()] = false;\n\n updateFlags();\n\n }",
"@Override\n \t\t\tpublic void keyReleased(KeyEvent arg0) {\n \t\t\t\t\n \t\t\t}",
"public void keyReleased(KeyEvent e)\n {\n \n }",
"public void keyReleased(KeyEvent e) {}",
"public void keyReleased(KeyEvent e) {}",
"public void keyReleased(KeyEvent e) {}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\n\t\t}",
"public void keyReleased (KeyEvent e){}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void keyReleased(KeyEvent arg0) {}",
"public void keyReleased(KeyEvent ke){}",
"public void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0)\n\t\t\t{\n\t\t\t\t\n\t\t\t}",
"public void keyReleased(KeyEvent e){}",
"public void setKeyReleased(int keyCode){\n this.keys[keyCode] = false;\n\n }",
"@Override\r\n\tpublic void keyReleased(int key, char c)\r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t}",
"@Override\n\tpublic void onKeyRelease(KeyEvent e) {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0)\n\t{\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t}",
"@Override\n\t\t\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\tcdx = 0;\r\n\t}",
"@Override\r\n public void keyReleased(KeyEvent e) {\n keys[e.getKeyCode()] = false;\r\n // if(e.getKeyCode()==KeyEvent.VK_SPACE)\r\n // System.out.println(\"libero\");\r\n }",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent arg0) {\n\n\t}",
"public void keyReleased(KeyEvent e)\t\n\t{\n\t}",
"public void keyReleased(KeyEvent e) \r\n\t{\n\t}",
"public void keyReleased(KeyEvent e) {\n\t}",
"public void keyReleased(KeyEvent e) {\n\r\n\t}",
"public void keyReleased(java.awt.event.KeyEvent evt) {\n\t\t\t\t}",
"public void keyReleased(java.awt.event.KeyEvent evt) {\n\t\t\t\t}",
"public void keyReleased(java.awt.event.KeyEvent evt) {\n\t\t\t\t}",
"public void keyReleased(java.awt.event.KeyEvent evt) {\n\t\t\t\t}",
"public void keyReleased(java.awt.event.KeyEvent evt) {\n\t\t\t\t}",
"public void keyReleased(KeyEvent e) {\n\t\t\t\t}",
"public void keyReleased(KeyEvent e) {\n\t\t\t\t}",
"public void keyReleased(KeyEvent e) {\n\t\t\t\t}",
"@Override\r\n\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void keyReleased(java.awt.event.KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n public void keyReleased(KeyEvent e) {\r\n switchKey(e.getKeyCode(), false);\r\n }",
"public void keyReleased(KeyEvent e) {\n\t\t\r\n\t}",
"@Override\n\tpublic void keyReleased(KeyEvent e) { \n\t}",
"public void keyReleased(final KeyEvent e) {\n\n }",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t}",
"public void keyReleased(KeyEvent e) {\n\n\t}",
"public void keyReleased(KeyEvent e) {\n\n\t}",
"public void keyReleased(KeyEvent e) {\n\n\t}",
"@Override\r\n\t\tpublic void keyReleased(KeyEvent e) {\n\t\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\t\r\n\t}"
]
| [
"0.77526414",
"0.76809126",
"0.7576806",
"0.75205904",
"0.75167197",
"0.75092983",
"0.745369",
"0.7452832",
"0.7452832",
"0.7452832",
"0.74423796",
"0.74423796",
"0.74423796",
"0.74423796",
"0.74423796",
"0.74423796",
"0.74423796",
"0.74379396",
"0.7437179",
"0.74369746",
"0.74369746",
"0.74369746",
"0.74369746",
"0.74369746",
"0.74335486",
"0.74284005",
"0.7425509",
"0.7425509",
"0.74218935",
"0.74181974",
"0.74176663",
"0.7414609",
"0.7409742",
"0.7404121",
"0.73847574",
"0.73847574",
"0.7375972",
"0.7359836",
"0.73438746",
"0.73438746",
"0.73438746",
"0.73438746",
"0.73438746",
"0.73438746",
"0.73438746",
"0.73438746",
"0.73438746",
"0.73438746",
"0.73095286",
"0.7308514",
"0.7308514",
"0.7308514",
"0.7308514",
"0.7308514",
"0.7308514",
"0.7308514",
"0.7308514",
"0.7308514",
"0.7298337",
"0.7297184",
"0.72946364",
"0.72946364",
"0.72946364",
"0.72946364",
"0.72946364",
"0.72946364",
"0.7280241",
"0.72770506",
"0.7276525",
"0.7276525",
"0.7276525",
"0.7276525",
"0.7276525",
"0.72765046",
"0.7276237",
"0.7276026",
"0.7270644",
"0.7267294",
"0.7267294",
"0.7267294",
"0.7267294",
"0.7267294",
"0.7259116",
"0.7259116",
"0.7259116",
"0.7256482",
"0.7243687",
"0.7241401",
"0.7235421",
"0.72282803",
"0.72226477",
"0.72210866",
"0.7218669",
"0.72177964",
"0.72177964",
"0.72177964",
"0.72176075",
"0.72080666",
"0.72080666",
"0.72080666",
"0.72080666"
]
| 0.0 | -1 |
define the effects while choosing to move the selector | public void changeFlightType(int x) {
if (currentPage != 1) return;
if (0 == x) {
if (flightType == 3) flightType = 1;
if (flightType == 4) flightType = 2;
}
if (1 == x) {
if (flightType == 1) flightType = 3;
if (flightType == 2) flightType = 4;
}
if (2 == x) {
if (flightType == 2) flightType = 1;
if (flightType == 4) flightType = 3;
}
if (3 == x) {
if (flightType == 1) flightType = 2;
if (flightType == 3) flightType = 4;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void selectOrMove(ME_ENUM me_enum, MouseEvent me) {\n if (me.getButton() != MouseEvent.BUTTON1 && ui_inter != UI_INTERACTION.SELECTING && ui_inter != UI_INTERACTION.MOVING) return;\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n switch (me_enum) {\n case PRESSED: Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n\n\t\t // Figure what's under the mouse\n Set<String> under_mouse = underMouse(me);\n\n // If what's under the mouse is already selected, then cause it to be moving\n\t\t if (Utils.overlap(sel,under_mouse)) { ui_inter = UI_INTERACTION.MOVING; \n\t\t moving_set = sel; }\n else if (under_mouse.size() > 0 && \n\t\t (last_shft_down || last_ctrl_down)) { setOperation(under_mouse); }\n\t\t else if (under_mouse.size() > 0) { ui_inter = UI_INTERACTION.MOVING; \n\t\t getRTParent().setSelectedEntities(under_mouse);\n\t\t moving_set = under_mouse; }\n\t\t else { ui_inter = UI_INTERACTION.SELECTING; }\n\n\t\t initializeDragVars(me);\n\n\t\t repaint();\n\t\t break;\n case DRAGGED: updateDragVars(me, ui_inter == UI_INTERACTION.MOVING); repaint(); break;\n\tcase RELEASED: updateDragVars(me, ui_inter == UI_INTERACTION.MOVING);\n boolean no_move = false;\n\t\t if (ui_inter == UI_INTERACTION.MOVING) {\n double dx = m_wx1 - m_wx0, dy = m_wy1 - m_wy0;\n if (dx != 0 || dy != 0) {\n Iterator<String> it = moving_set.iterator();\n while (it.hasNext()) {\n String entity = it.next();\n Point2D pt = entity_to_wxy.get(entity);\n entity_to_wxy.put(entity, new Point2D.Double(pt.getX() + dx, pt.getY() + dy));\n transform(entity);\n }\n getRTComponent().render();\n } else no_move = true;\n\t\t } \n if (ui_inter == UI_INTERACTION.SELECTING || no_move) {\n int x0 = m_x0 < m_x1 ? m_x0 : m_x1, y0 = m_y0 < m_y1 ? m_y0 : m_y1,\n\t\t\t dx = (int) Math.abs(m_x1 - m_x0), dy = (int) Math.abs(m_y1 - m_y0);\n\t\t\t if (dx == 0) dx = 1; if (dy == 0) dy = 1;\n\t\t\t Rectangle2D rect = new Rectangle2D.Double(x0,y0,dx,dy);\n\n\t\t Set<String> new_sel = new HashSet<String>();\n\t\t Iterator<String> it = myrc.node_to_geom.keySet().iterator();\n\t\t\t while (it.hasNext()) {\n\t\t\t String node = it.next(); Shape shape = myrc.node_to_geom.get(node);\n\t\t\t if (rect.intersects(shape.getBounds())) new_sel.addAll(myrc.node_coord_set.get(node));\n\t\t\t }\n setOperation(new_sel);\n\t\t }\n ui_inter = UI_INTERACTION.NONE;\n\t\t repaint(); break;\n case CLICKED: setOperation(underMouse(me));\n repaint(); break;\n\tcase MOVED:\n\t\tbreak;\n\tcase WHEEL:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }\n }",
"private void initializeSelectors() {\n\t\tpathSelector = new PathEffectSelector();\n\t\tscaleSelector = new ScaleEffectSelector();\n\t\trotationSelector = new RotationEffectSelector();\n\t\timageSelector = new ImageAnimationEffectSelector();\n\t}",
"private void actionSwitchMove()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleMovable)\r\n\t\t{\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchMoveOn();\r\n\r\n\t\t\t//---- Turn off sample selection mode\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t}",
"public void effect() {\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n state = \"select\";\r\n instruction.setText(\"Drag the rectangle to cover the whole shape which you want to select\");\r\n\r\n }",
"void setPositionEffect(PositionEffect inPositionEffect);",
"private void activeDrawEffects() {\n }",
"void applyEffects();",
"private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}",
"PositionEffect getPositionEffect();",
"public void highlight(){\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\t//if(!clicked){\t\n\t\t\t\t\n\t\t\t\tfirsttime=true;\n\t\t\t\tclicked=true;\n\t\t\t\tif(piece!=null){\n\t\t\t\t\txyMovment=piece.xyPossibleMovments(xPosition, yPosition);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"void selectpos()\n {\n \n }",
"@Override\n\tpublic void setStates(){\n\t\tfor(Entry<String, GUIComponentSelector> lightEntry : lightSelectors.entrySet()){\n\t\t\tlightEntry.getValue().selectorState = vehicle.variablesOn.contains(lightEntry.getKey()) ? 1 : 0;\n\t\t}\n\t\t\n\t\t//Set the states of the magneto selectors.\n\t\tif(vehicle.definition.motorized.hasSingleEngineControl){\n\t\t\tmagnetoSelectors.get((byte)-1).visible = !vehicle.engines.isEmpty();\n\t\t\tfor(PartEngine engine : vehicle.engines.values()){\n\t\t\t\tmagnetoSelectors.get((byte)-1).selectorState = engine.state.magnetoOn ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Entry<Byte, GUIComponentSelector> magnetoEntry : magnetoSelectors.entrySet()){\n\t\t\t\tif(vehicle.engines.containsKey(magnetoEntry.getKey())){\n\t\t\t\t\tmagnetoEntry.getValue().selectorState = vehicle.engines.get(magnetoEntry.getKey()).state.magnetoOn ? 1 : 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set the states of the starter selectors.\n\t\tif(vehicle.definition.motorized.hasSingleEngineControl){\n\t\t\tfor(PartEngine engine : vehicle.engines.values()){\n\t\t\t\tstarterSelectors.get(ENGINE_SINGLE_SELECTOR_INDEX).selectorState = engine.state.magnetoOn ? (engine.state.esOn ? 2 : 1) : 0;\n\t\t\t\tstarterSelectors.get(ENGINE_SINGLE_SELECTOR_INDEX).visible = !engine.definition.engine.disableAutomaticStarter;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}else{\n\t\t\tfor(Entry<Byte, GUIComponentSelector> starterEntry : starterSelectors.entrySet()){\n\t\t\t\tif(vehicle.engines.containsKey(starterEntry.getKey())){\n\t\t\t\t\tPartEngine engine = vehicle.engines.get(starterEntry.getKey());\n\t\t\t\t\tstarterEntry.getValue().selectorState = engine.state.magnetoOn ? (engine.state.esOn ? 2 : 1) : 0;\n\t\t\t\t\tstarterEntry.getValue().visible = !engine.definition.engine.disableAutomaticStarter;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//For every tick we have one of the trim selectors pressed, do the corresponding trim action.\n\t\tif(selectedTrimSelector != null){\n\t\t\tif(inClockPeriod(3, 1)){\n\t\t\t\tif(!appliedTrimThisRender){\n\t\t\t\t\tselectedTrimSelector.selectorState = selectedTrimSelector.selectorState == 0 ? 1 : 0; \n\t\t\t\t\tInterfacePacket.sendToServer(new PacketVehicleControlDigital(vehicle, selectedTrimType, selectedTrimDirection));\n\t\t\t\t\tappliedTrimThisRender = true;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tappliedTrimThisRender = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If we have reverse thrust, set the selector state.\n\t\tif(reverseSelector != null){\n\t\t\tif(vehicle.definition.motorized.isBlimp){\n\t\t\t\treverseSelector.selectorState = 0;\n\t\t\t\tfor(PartEngine engine : vehicle.engines.values()){\n\t\t\t\t\tif(engine.currentGear < 0){\n\t\t\t\t\t\treverseSelector.selectorState = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treverseSelector.selectorState = vehicle.reverseThrust ? 1 : 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If we have autopilot, set the selector state.\n\t\tif(autopilotSelector != null){\n\t\t\tautopilotSelector.selectorState = vehicle.autopilot ? 1 : 0;\n\t\t}\n\t\t\n\t\t//If we have gear, set the selector state.\n\t\tif(gearSelector != null){\n\t\t\tif(vehicle.variablesOn.contains(EntityVehicleF_Physics.GEAR_VARIABLE)){\n\t\t\t\tgearSelector.selectorState = vehicle.gearMovementTime == vehicle.definition.motorized.gearSequenceDuration ? 2 : 3;\n\t\t\t}else{\n\t\t\t\tgearSelector.selectorState = vehicle.gearMovementTime == 0 ? 0 : 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If we have a hitch, set the selector state.\n\t\tif(trailerSelector != null){\n\t\t\tSwitchEntry switchDef = trailerSwitchDefs.get(0);\n\t\t\tif(switchDef.connectionGroup.hookup){\n\t\t\t\ttrailerSelector.selectorState = switchDef.entityOn.towedByConnection != null ? 0 : 1;\n\t\t\t}else{\n\t\t\t\ttrailerSelector.selectorState = 1;\n\t\t\t\tfor(TrailerConnection connection : switchDef.entityOn.getTowingConnections()){\n\t\t\t\t\tif(connection.hitchGroupIndex == switchDef.connectionGroupIndex){\n\t\t\t\t\t\ttrailerSelector.selectorState = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set the beaconBox text color depending on if we have an active beacon.\n\t\tif(beaconBox != null){\n\t\t\tbeaconBox.fontColor = vehicle.selectedBeacon != null ? ColorRGB.GREEN : ColorRGB.RED;\n\t\t}\n\t\t\n\t\t//Iterate through custom selectors and set their states.\n\t\tfor(GUIComponentSelector customSelector : customSelectors){\n\t\t\tcustomSelector.selectorState = vehicle.variablesOn.contains(customSelector.text) ? 1 : 0;\n\t\t}\n\t}",
"@Override\n\tpublic void ontick(Player p) {\n\t\tp.pos = move; // port to move vector\n\t\t\n\t\tfor(Effect ef:p.effects){\n\t\t\tef.ttl = 1;\n\t\t}\n\t}",
"@Override\n public void effect() {\n\n }",
"private void AnnulerEffect() {\n panImg.setImg(lstImg.getSelectImg(), lstImg.getSelectTitle());\n panImg.repaint();\n }",
"public void setOperation(Set<String> sel) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return;\n Set<String> new_sel = new HashSet<String>(), old_sel;\n if (last_shft_down && last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.retainAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else if (last_shft_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.removeAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else if ( last_ctrl_down) { old_sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n old_sel.addAll(sel);\n\t\t\t\t\t\t new_sel = old_sel;\n } else new_sel = sel;\n getRTParent().setSelectedEntities(new_sel);\n }",
"@Override\n\tprotected void enterEffect() {\n\t\t\n\t}",
"@Override\n public void moverRaton(MouseEvent e) {}",
"public void addEffects() {\r\n\t\tfor (BlinkingButton effect : parameterLocation) {\r\n\t\t\t//Effects that are visible - should be added the the panel\r\n\t\t\tif (effect.isVisible()) {\r\n\t\t\t\tmainPanel.add(effect);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void chooseSprite() {\n switch(direction){\n case 0:\n sprite=Sprite.python_down;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_down,Sprite.python_down_1,Sprite.python_down_2,Sprite.python_down_3,animate,40);\n break;\n case 1:\n sprite=Sprite.python_right;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_right,Sprite.python_right_1,Sprite.python_right_2,animate,40);\n break;\n case 2:\n sprite=Sprite.python_up;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_up,Sprite.python_up_1,Sprite.python_up_2,animate,40);\n break;\n case 3:\n sprite=Sprite.python_left;\n if(moving)\n sprite=Sprite.movingSprite(Sprite.python_left,Sprite.python_left_1,Sprite.python_left_2,animate,40);\n break;\n\n\n }\n\n }",
"private void select() {\n\t\tif (selected.equals(mealSelect) && !eating) {\n\t\t\tmakeMeal();\n\t\t} else if (selected.equals(snackSelect) && !eating) {\n\t\t\tmakeSnack();\n\t\t} else if (selected.equals(medicineSelect) && !eating){\n\t\t\tmakeMedicine();\n\t\t} else if (selected.equals(playSelect) && !eating){\n\t\t\tmakePlay();\n\t\t}\n\t\t\n\t}",
"void effect(Entity e, BoardPosition bp);",
"protected void addSlidingActions(Set<Action> actions, StdActionCompiler ac, double scrollArrowSize, double scrollThick, Widget w, State state){\n Drag[] drags = null;\n //If there are scroll (drags/drops) actions possible\n if((drags = w.scrollDrags(scrollArrowSize,scrollThick)) != null){\n //For each possible drag, create an action and add it to the derived actions\n for (Drag drag : drags){\n //Create a slide action with the Action Compiler, and add it to the set of derived actions\n actions.add(ac.slideFromTo(\n new AbsolutePosition(Point.from(drag.getFromX(),drag.getFromY())),\n new AbsolutePosition(Point.from(drag.getToX(),drag.getToY()))\n ));\n\n }\n }\n }",
"public Event choose(Player p) {\n \tfor (Effect effect : effects) {\n\t\t\teffect.applyEffect(p);\n\t\t}\n \treturn next;\n }",
"Effect getMoveEName();",
"public void makeSwitcherBall(TPaintDropListItem paintSelectedItem);",
"public void move() {\r\n\t\tif(torretas.size() == 0){\r\n\t\t\tagregarExplosiones();\r\n\t\t}\r\n\t\tif(System.currentTimeMillis() - init > delay && !control[0])\r\n\t\t\tif(puedeMoverse()){\r\n\t\t\t\tif(random){\r\n\t\t\t\t\tint select = -1;\r\n\t\t\t\t\tboolean move = false;\r\n\t\t\t\t\twhile(!move){\r\n\t\t\t\t\t\tselect = rn.nextInt(4);\r\n\t\t\t\t\t\tif(select == 0 || select == 3){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(select == 2 && hayTorretas(x + defaultWidth/2 + 190, x+defaultWidth)){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(select == 1 && hayTorretas(x, x+defaultWidth/2 - 190)){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\r\n\t\t\t\t\tint auxX = x;\r\n\t\t\t\t\tint auxY = y;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(select == 0){\r\n\t\t\t\t\t\tmoves[0] = moves[1] = true;\r\n\t\t\t\t\t\tx = -237;\r\n\t\t\t\t\t\ty = -defaultHeight;\r\n\t\t\t\t\t\tvelocidad = 4;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 1){\r\n\t\t\t\t\t\tmoves[2] = moves[3] = true;\r\n\t\t\t\t\t\tx = 800;\r\n\t\t\t\t\t\ty = 0;\r\n\t\t\t\t\t\tvelocidad = 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 2){\r\n\t\t\t\t\t\tmoves[4] = moves[5] = true;\r\n\t\t\t\t\t\tx = - defaultWidth;\r\n\t\t\t\t\t\ty = 0;\r\n\t\t\t\t\t\tvelocidad = 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 3){\r\n\t\t\t\t\t\tmoves[6] = moves[7] = true;\r\n\t\t\t\t\t\tx = -237;\r\n\t\t\t\t\t\ty = 800;\r\n\t\t\t\t\t\tvelocidad = 5;\r\n\t\t\t\t\t\treproductor.addSound(alarm, false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tactualizarTorretas(x-auxX, y-auxY);\r\n\t\t\t\t\t\r\n\t\t\t\t\trandom = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de arriba a abajo\r\n\t\t\t\tif(!moves[2] && !moves[3] && !moves[4] && !moves[5] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[0] && y + defaultHeight < 500){\r\n\t\t\t\t\ty +=velocidad;\r\n\t\t\t\t\tactualizarTorretas(0, +velocidad);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[0] = false;\r\n\t\t\t\t\tif(y + defaultHeight > -100 && moves[1]){\r\n\t\t\t\t\t\ty-=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(0, -velocidad);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tmoves[1] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de derecha a izquierda\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[4] && !moves[5] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[2] && x > 250){\t\r\n\t\t\t\t\tx-=velocidad;\r\n\t\t\t\t\tactualizarTorretas(-velocidad,0);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[2] = false;\r\n\t\t\t\t\tif(x < 900 && moves[3]){\r\n\t\t\t\t\t\tx+=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(velocidad,0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[3] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de izquierda a derecha\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[2] && !moves[3] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[4] && x + defaultWidth < 550){\r\n\t\t\t\t\t\r\n\t\t\t\t\tx+=velocidad;\r\n\t\t\t\t\tactualizarTorretas(velocidad,0);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[4] = false;\r\n\t\t\t\t\tif(x + defaultWidth > -100 && moves[5]){\r\n\t\t\t\t\t\tx-=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(-velocidad,0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[5] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de abajo a arriba\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[2] && !moves[3] && !moves[4] && !moves[5])\r\n\t\t\t\tif(moves[6] && y > 250){\r\n\t\t\t\t\ty-=velocidad;\r\n\t\t\t\t\tactualizarTorretas(0,-velocidad);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[6] = false;\r\n\t\t\t\t\tif(y < 700 && moves[7]){\r\n\t\t\t\t\t\ty+=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(0,velocidad);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[7] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tsetMove();\r\n\t}",
"public void toSelectingAction() {\n }",
"public void addMouseMotionListener(SelectAction selectAction) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tgc.setFont(new Font(mainFrame.getDisplay(),\"楷体\",40,SWT.BOLD));\n\t\t\t\tgc.setAlpha(255);\n\t\t\t\tgc.setForeground(new Color(mainFrame.getDisplay(),255,255,255));\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t gc.drawString(\"设置选项\", 342, 285,true);\n\t\t\t\t\t changeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"帮助信息\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"关于游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"退出游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"经典模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"时间模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"冒险闯关\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"联网对战\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcanvas.redraw();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}",
"private void makeMove(){\r\n\t\tif(cornerColorIs(GREEN)){\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(GREEN);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(RED);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tif(()) {\r\n//\t\t if(cornerColorIs(GREEN)) {\r\n//\t\t move();\r\n//\t\t paintCorner(GREEN);\r\n//\t\t } else {\r\n//\t\t move();\r\n//\t\t paintCorner(RED);\r\n//\t\t }\r\n//\t\t}noBeepersPresent\r\n\t}",
"private void doMoveIfPossible() {\r\n if (selected != null) {\r\n if (picked != null) {\r\n if (picked.doMove(selected.getX(), selected.getY())) {\r\n client1.write(ClientMessages.Move, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n client2.write(ClientMessages.Move, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n }\r\n if (picked.doCapture(selected.getX(), selected.getY())) {\r\n client1.write(ClientMessages.Capture, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n client2.write(ClientMessages.Capture, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n }\r\n CastlingMove castl;\r\n if (picked.getClass() == King.class && ((King) picked).doCastling(castl = getCastlingMove())) {\r\n client1.write(ClientMessages.Castling, castl.getRook().getPositionInArray(), castl.getRookX(), selected.getX());\r\n client2.write(ClientMessages.Castling, castl.getRook().getPositionInArray(), castl.getRookX(), selected.getX());\r\n }\r\n }\r\n }\r\n }",
"public void mousePressed(MouseEvent event) { \n\t\t\t\t\n\t\tswitch(imgName) // Exécute une action différente en fonction du nom du bouton\n\t\t{\n\t\t\tcase \"endTurn\":\n\t\t\t\tGUI.getPlayer().setRoundCompleted(true);\n\t\t\t\tbreak;\n\t\t\tcase \"roads\":\n\t\t\t\tif(GUI.getPlayer().getNbRoad() > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!this.isSelected) \n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\t\tBoardView.setAction(6);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t\t\tBoardView.setAction(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"bonusTools\":\n\t\t\tcase \"bonusDefense\":\n\t\t\t\tif(GUI.getPlayer().getDiceBonus() == 5)\n\t\t\t\t{\n\t\t\t\t\tif(imgName == \"bonusTools\")\n\t\t\t\t\t\tGUI.getPlayer().setNbBonus(0, GUI.getPlayer().getNbBonus(0) + 1);\n\t\t\t\t\telse\n\t\t\t\t\t\tGUI.getPlayer().setNbBonus(1, GUI.getPlayer().getNbBonus(1) + 1);\n\t\t\t\t\t\n\t\t\t\t\tGUI.getPlayer().setDiceBonus(0);\n\t\t\t\t}\n\t\t\t\telse if(GUI.getPlayer().getNbBonus((imgName == \"bonusTools\") ? 0 : 1) > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!this.isSelected) \n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(true);\n\t\t\t\t\t\tif(imgName == \"bonusTools\")\n\t\t\t\t\t\t\tBoardView.setAction(7);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tBoardView.setAction(8);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t\t\tBoardView.setAction(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"hand\":\n\t\t\t\tif(!this.isSelected) \n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\tGUI.getDrawHandView().display();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(GUI.getPlayer().getActions().size() >= GUI.getPlayer().getNbActionsAllowed() && !GameManager.devMode)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tif(!this.isSelected)\n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\t\n\t\t\t\t\tswitch(imgName)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase \"tile\":\n\t\t\t\t\t\t\tGUI.getDrawTileView().display();\n\t\t\t\t\t\t\tBoardView.setAction(1);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"road\":\n\t\t\t\t\t\t\tGUI.getPlayer().setNbRoad(GUI.getPlayer().getNbRoad() + 1);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"monster\":\n\t\t\t\t\t\t\tBoardView.setAction(3);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(3);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"architect\":\n\t\t\t\t\t\t\tBoardView.setAction(4);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(4);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"goal\":\n\t\t\t\t\t\t\tGUI.getDrawGoalView().display();\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(5);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!GameManager.devMode)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(GUI.getPlayer().getDiceBonus() != 3)\n\t\t\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(GUI.getPlayer().getActions().size() > 1)\n\t\t\t\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthis.setSelected(false);\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public void moveToSelected() {\n if (selectionX != -1) {\n // This short circuits but if it's not multiplayer the second statement will do nothing\n if (map.moveEntity(map.getCurrentTurnHero(), selectionX, selectionY) && multiplayerGameManager\n .hookPlayerMove(selectionX, selectionY)) {\n map.updateVisibilityArray();\n visionChanged = true;\n // See if this hero has moved on a position that meets any movement objectives\n gameState.updateMovementGoal(selectionX, selectionY);\n }\n }\n\n if (map.getCurrentTurnHero().getActionPoints() < 2) {\n nextTurn();\n }\n }",
"@Override\n protected Action selectAction(State state, Set<Action> actions){\n //Call the preSelectAction method from the DefaultProtocol so that, if necessary,\n //unwanted processes are killed and SUT is put into foreground.\n Action retAction = preSelectAction(state, actions);\n if (retAction == null)\n //if no preSelected actions are needed, then implement your own strategy\n retAction = RandomActionSelector.selectAction(actions);\n return retAction;\n }",
"@Override\n protected void setUpPerformAction(ListenerIdentifier id)\n {\n super.setUpPerformAction(id);\n\n int selectionMask = canIDCauseSelection(id);\n\n if (isSelectionFlagSet(selectionMask,\n CogToolLID.CAUSES_WIDGET_SELECTION))\n {\n delayedWidgetSelection.setActive(true);\n }\n\n if (id == FrameEditorLID.Reorder) {\n delayedRepainting.requestRepaint(SHAPE_CHANGE_REPAINT);\n }\n }",
"@Override\n\t\tpublic void update() {\n\t\t\tif(!Mouse.isDragging) return;\n\t\t\t\n\t\t\tfor(Editable editable : ServiceLocator.getService(EditorSystem.class).getSelectedEditables()){\n\t\t\t\teditable.getEntity().getComponent(Transform.class).setPosition(Mouse.worldCoordinates.copy());//.sub(SelectionTypeState.mouseClickWorldPosition).add(SelectionTypeState.colliderPositions.get(cnt)));\n\t\t\t}\n\t\t}",
"protected abstract boolean takeAction (Shape selected, int x, int y);",
"private void select()\n\t{\n\t\tSoundPlayer.playClip(\"select.wav\");\n\t if(currentChoice == 0)\n\t\t{\n\t\t\tsuper.isFadingOut = true;\n\t\t\tSoundPlayer.animVolume(-40.0F);\n\t\t}\n\t\tif(currentChoice == 1)\n\t\t{\n\t\t\tbottomFadeOut = true;\n\t\t\t//gsm.setState(GameStateManager.CONTROLSTATE);\n\t\t}\n\t\tif(currentChoice == 2)\n\t\t{\n\t\t\tbottomFadeOut = true;\n\t\t\t//gsm.setState(GameStateManager.CREDITSTATE);\n\t\t}\n\t\tif(currentChoice == 3)\n\t\t{\n\t\t\tnew Timer().schedule(new TimerTask()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tSystem.exit(0);\t\t\n\t\t\t\t}\n\t\t\t}, 500);\n\t\t}\n\t}",
"private void applyEffect(Event.Effect effect) {\n\t\tint change = (int) effect.getValue();\n\t\t\n\t\tswitch(effect.getType()) {\t\t\n\t\tcase INCREASE_MONEY:\n\t\t\tplayer.setMoney(player.getMoney() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_MONEY:\n\t\t\tplayer.setMoney(player.getMoney() - change);\n\t\t\tbreak;\n\t\tcase INCREASE_AGENTS:\n\t\t\tplayer.setAgentNumber(player.getAgentNumber() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_AGENTS:\n\t\t\tplayer.setAgentNumber(player.getAgentNumber() - change);\n\t\t\tbreak;\n\t\tcase INCREASE_AGENT_SKILL:\n\t\t\tplayer.setAgentSkill(player.getAgentSkill() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_AGENT_SKILL:\n\t\t\tplayer.setAgentSkill(player.getAgentSkill() - change);\t\t\t\n\t\t\tbreak;\n\t\tcase INCREASE_MEDIA_REACH:\n\t\t\tplayer.setMediaReach(player.getMediaReach() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_MEDIA_REACH:\n\t\t\tplayer.setMediaReach(player.getMediaReach() - change);\t\t\t\n\t\t\tbreak;\n\t\tcase INCREASE_MEDIA_INFLUENCE:\n\t\t\tplayer.setMediaPerception(player.getMediaPerception() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_MEDIA_INFLUENCE:\n\t\t\tplayer.setMediaPerception(player.getMediaPerception() - change);\t\t\t\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// TODO handle error\n\t\t}\n\t\t\n\t}",
"void setMover(Mover mover);",
"public void setEffect(String effect){\n this.effect = effect;\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tObject target = e.getSource();\n\t\tif (target == b1) {\n\t\t\ttry {\n\t\t\t\tif (rb1.isSelected()) {\n\t\t\t\t\tthis.f = new Flavor(t1.getText(), Integer.parseInt(t2\n\t\t\t\t\t\t\t.getText()));\n\t\t\t\t\tthis.flag = 0;\n\t\t\t\t}\n\t\t\t\tif (rb2.isSelected()) {\n\t\t\t\t\tthis.d = new Decorator(t1.getText(), Integer.parseInt(t2\n\t\t\t\t\t\t\t.getText()));\n\t\t\t\t\tthis.flag = 1;\n\t\t\t\t}\n\t\t\t} catch (Exception e1) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Please enter vaild information!\", \"WARNING\",\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\t}\n\n\t\t}\n\n\t\tif (target == b2) {\n\t\t\tt1.setText(\"\");\n\t\t\tt2.setText(\"\");\n\t\t}\n\n\t\tif (target == rb1) {\n\t\t\trb1.setSelected(true);\n\t\t\trb2.setSelected(false);\n\t\t}\n\n\t\tif (target == rb2) {\n\t\t\trb1.setSelected(false);\n\t\t\trb2.setSelected(true);\n\t\t}\n\t}",
"public void lightMove() {\n movePawn.setStyle(\"-fx-background-color: YELLOW;\"\n + \"-fx-background-radius: 30;\"\n + \"-fx-border-radius: 30;\"\n + \"-fx-border-color: 363507;\");\n buildPawn.setStyle(\"-fx-background-color: null\");\n stopPawn.setStyle(\"-fx-background-color: null\");\n }",
"public void leftRegionSelections() {\n\n setPositionSelcted(true);\n\n //setting gamescreen background as per region of position selected\n gameScreenBackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field_zones_lf_on);\n\n/**\n **changing position image sources as selected reion positins to selected backrounds\n **adjacent to half selected and\n **far positons to empty backgrounds to position buttons\n **/\n\n lfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.lf_player_selected);\n threeBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.threeb_player_selected);\n ssTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.ss_player_selected);\n\n rfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.rf_player_unselected);\n twoBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.twob_player_unselected);\n oneBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.oneb_player_unselected);\n\n cfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.cf_player_half_selected);\n pTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.p_player_half_selected);\n cTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.c_player_half_selected);\n\n if (lfTextView.isSelected()) {\n lfTextView.setSelected(true);\n } else if (threeBTextView.isSelected()) {\n threeBTextView.setSelected(true);\n } else if (ssTextView.isSelected()) {\n ssTextView.setSelected(true);\n }\n\n rfTextView.setSelected(false);\n twoBTextView.setSelected(false);\n oneBTextView.setSelected(false);\n\n cfTextView.setSelected(false);\n pTextView.setSelected(false);\n cTextView.setSelected(false);\n\n rightFieldpoints.setVisibility(View.VISIBLE);\n leftFieldPoints.setVisibility(View.VISIBLE);\n centerFieldPoints.setVisibility(View.VISIBLE);\n\n rightFieldpoints.setText(\"+5\");\n leftFieldPoints.setText(\"+20\");\n centerFieldPoints.setText(\"+10\");\n\n rightFieldpoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n centerFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n leftFieldPoints.setTextColor(Color.parseColor(\"#ffffff\"));\n\n //swh is disable\n swhImageView.setSelected(false);\n swhImageView.setEnabled(true);\n\n //close guesses enabling\n closePlayButton.setAlpha((float)1);\n closePlayButton.setEnabled(true);\n\n }",
"public void actionPerformed(ActionEvent event) {\r\n if (event.getActionCommand().equals(\"Undo\")) {\r\n panel.clearLastShape();\r\n } else if (event.getActionCommand().equals(\"Redo\")) {\r\n panel.redoLastShape();\r\n } else if (event.getActionCommand().equals(\"Circle\")) {\r\n panel.setShape(0); //sending 0 for Circle\r\n } else if (event.getActionCommand().equals(\"Box\")) {\r\n panel.setShape(1); //sending 1 for box\r\n }\r\n\r\n\r\n }",
"public void dropDown(){\n\t\tPoint test_location = new Point(pieceOrigin);\n\t\ttest_location.y += 1;\n\t\tif(!collides(test_location, currentPiece))\n\t\t\tpieceOrigin.y += 1;\n\t\telse\n\t\t\tgossipGirl();\n\t\trepaint();\n\t}",
"@Override\r\n public void onAction(String name, boolean isPressed, float tpf)\r\n {\n mainPanel.addTransition(new DirectTransition(panel1, panel2));\r\n }",
"@Override\n\tpublic void Update(float dt) {\n\t\tif (mouse.buttonDown()) {\n\t\t\ttarget.reposition(mouse.getPosition());\n\t\t\ttship.setPosition(mouse.getPosition().replicate().add(offset));\n\t\t}\n\t\teffectHandler.update(dt);\n\t\tif (!effectHandler.effectsRunning() && Keyboard.isKeyDown(GLFW.GLFW_KEY_A)) {\n\t\t\teffectHandler.addScript(origin, action, false);\n\t\t}\n\t\tif (!effectHandler.effectsRunning() && Keyboard.isKeyDown(GLFW.GLFW_KEY_D)) {\n\t\t\teffectHandler.addScript(origin, action, true);\n\t\t}\n\t\tif (buttonToggle && !Keyboard.isKeyDown(GLFW.GLFW_KEY_SPACE)) {\n\t\t\tbuttonToggle = false;\n\t\t}\n\t\tif (!buttonToggle && Keyboard.isKeyDown(GLFW.GLFW_KEY_SPACE)) {\n\t\t\tbuttonToggle = true;\n\t\t\tif (WeaponCheck.checkArc(origin, tship, weapon)) {\n\t\t\t\tSystem.out.println(\"in arc\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"out of arc\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent evt){\r\n\t\tMain client = Starter.getClient();\r\n\t\tif(!client.isInMenus() && \r\n\t\t\t\t!client.isMouselookActive() && \r\n\t\t\t\tclient.getActiveCam().equals(Main.CAM_MODE.FLY) &&\r\n\t\t\t\tclient.getWorkingScenario() != null && \r\n\t\t\t\tclient.getWorkingScenario().isEditingMode()){//if mouse look == false && activeCam == CAM_MODE.FLY && !inMenues && editMode\r\n\t\t\tScenarioBuilderScreenController.selecting = true;\r\n\t\t\tCollisionResults results = new CollisionResults();\r\n\t\t\tInputManager inputManager = client.getInputManager();\r\n\t\t\tVector2f click2d = inputManager.getCursorPosition();\r\n\t\t\t\r\n\t\t\tCamera cam = client.getCamera();\r\n\t\t\tVector3f click3d = cam.getWorldCoordinates(new Vector2f(click2d.x, click2d.y), 0f).clone();\r\n\t\t\tVector3f dir = cam.getWorldCoordinates(new Vector2f(click2d.x, click2d.y), 1f).subtractLocal(click3d).normalizeLocal();\r\n\t\t\tRay ray = new Ray(click3d, dir);\r\n\t\t\t\r\n\t\t\tNode entityNode = client.getWorkingScenario().getEntityNode();\r\n\t\t\tentityNode.collideWith(ray, results);\r\n\t\t\r\n \tif(results.size() > 0){\r\n \t\tCollisionResult closest = results.getClosestCollision();\r\n \t\tString selected = closest.getGeometry().getName();\r\n \t\tScenario scenario = client.getWorkingScenario();\r\n \t\tEntity selectedEntity = scenario.getEntity(selected);//get selected entity from scene\r\n \t\tif(selectedEntity != null){\r\n \t\t\tif(!client.isCTRLDown()){\r\n \t\t\t\tscenario.selectEntity(selectedEntity);\r\n \t\t\t\tthis.selectedEntity = selectedEntity;\r\n \t\t\t}\r\n \t\t\telse{\r\n \t\t\t\tscenario.deselectEntity(selectedEntity);\r\n \t\t\t\tthis.selectedEntity = null;\r\n \t\t\t}\r\n \t\t}\r\n \t\tnotifyObservers();\r\n \t}\r\n\t\t\tScenarioBuilderScreenController.selecting = false;\r\n\t\t}\r\n\t}",
"@Override\n public void setNewAction(Mossa.Action action) {\n jumpMove.setDisable(false);\n Platform.runLater(() -> {\n submitAction.setDisable(true);\n\n });\n switch (action) {\n case BUILD:\n lightBuild();\n if (!inTurno) {\n lightMyPawns();\n inTurno = true;\n firstAction = true;\n } else {\n c = table.getTableCell(table.getXYPawn(getID(), currentPawn, true),\n table.getXYPawn(getID(), currentPawn, false));\n firstAction = false;\n lightAvailable(c, bt[table.getXYPawn(getID(), currentPawn, true)][table.getXYPawn(getID(), currentPawn, false)]);\n\n }\n currentMove = new Mossa();\n currentMove.setAction(action);\n\n break;\n case MOVE:\n lightMove();\n currentMove = new Mossa();\n currentMove.setAction(action);\n if (!inTurno) {\n effetto = true;\n lightMyPawns();\n inTurno = true;\n firstAction = true;\n } else {\n firstAction = false;\n c = table.getTableCell(table.getXYPawn(getID(), currentPawn, true),\n table.getXYPawn(getID(), currentPawn, false));\n lightAvailable(c, bt[table.getXYPawn(getID(), currentPawn, true)][table.getXYPawn(getID(), currentPawn, false)]);//prima era true\n\n }\n }\n }",
"public void actionPerformed(ActionEvent e) {\n gui.activateTerrains(false);\n\n if (gui.getGUIState() == GUIState.MOVESHEEPFROM) {\n gui.activateTerrains(true);\n gui.setGUIState(GUIState.MOVESHEEPSELECTION);\n gui.activateSheepSelection(true, terrain);\n gui.getLAction2().setText(\"Seleziona quale ovino si vuole muovere\");\n } else if (gui.getGUIState() == GUIState.KILLSHEEP) {\n gui.setGUIState(GUIState.KILLSHEEPSELECTION);\n gui.activateSheepSelection(true, terrain);\n gui.getLAction2().setText(\"Seleziona quale ovino vuoi abbatere\");\n } else if (gui.getGUIState() == GUIState.JOINSHEEPS) {\n gui.setGUIState(GUIState.KILLSHEEPSELECTION);\n gui.sendJoinSheeps(terrain);\n } else if (gui.getGUIState() == GUIState.MOVESHEEPTO) {\n gui.activateDropDown(false);\n gui.setGUIState(GUIState.WAITINGFOROTHERPLAYER);\n gui.sendMoveSheep(terrain);\n }\n\n }",
"private static void loadQuestEffects(Objective o, String thisLine)\n\t\t\tthrows IOException {\n\t\tString nextLine = thisLine;\n\t\tMatcher m;\n\t\t// Find any effects\n\t\tdo {\n\t\t\tPattern effectPattern = Pattern.compile(\"<effect\");\n\t\t\tif ((m = effectPattern.matcher(nextLine)).find()) {\n\t\t\t\t// Find the location\n\t\t\t\tm = propertyExtractor(\"loc\", \"\\\\w+\").matcher(nextLine);\n\t\t\t\tString loc = \"end\";\n\t\t\t\tif (m.find()) {\n\t\t\t\t\tloc = m.group(1);\n\t\t\t\t}\n\t\t\t\t// Create a function that adds the effect in the create place\n\t\t\t\tConsumer<Consumer<World>> addEffect = null;\n\t\t\t\tif (loc.equals(\"end\")) {\n\t\t\t\t\taddEffect = (ccw -> o.addEndEffect(ccw));\n\t\t\t\t} else if (loc.equals(\"start\")) {\n\t\t\t\t\taddEffect = (ccw -> o.addStartEffect(ccw));\n\t\t\t\t} else {\n\t\t\t\t\tlogError(\"Unknown effect location: \" + loc, 2);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\twhile (!(nextLine = getNextLine()).matches(\n\t\t\t\t\t\t\"\\\\s*</effect>\\\\s*\")) {\n\t\t\t\t\t// Find all effects\n\t\t\t\t\tPattern setStatePattern = Pattern.compile(\n\t\t\t\t\t\t\t\"setState\\\\((\\\\d+),(\\\\d+)\\\\)\");\n\t\t\t\t\tm = setStatePattern.matcher(nextLine);\n\t\t\t\t\tif (m.find()) {\n\t\t\t\t\t\tint npcID = Integer.parseInt(m.group(1));\n\t\t\t\t\t\tint newState = Integer.parseInt(m.group(2));\n\n\t\t\t\t\t\taddEffect.accept(cw -> {\n\t\t\t\t\t\t\tif (cw != null && cw.getMap() != null) {\n\t\t\t\t\t\t\t\tNPC npc = cw.getMap().getNPC(npcID);\n\t\t\t\t\t\t\t\tif (npc != null) {\n\t\t\t\t\t\t\t\t\tnpc.setStoryState(newState);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tPattern addObjectPattern = Pattern.compile(\n\t\t\t\t\t\t\t\"addObject\\\\(([\\\\w_]+),(\\\\d+),(\\\\d+),(\\\\d+),(\\\\d+)\\\\)\");\n\t\t\t\t\tm = addObjectPattern.matcher(nextLine);\n\t\t\t\t\tif (m.find()) {\n\t\t\t\t\t\tString itemType = m.group(1).toUpperCase();\n\t\t\t\t\t\tint x = Integer.parseInt(m.group(2));\n\t\t\t\t\t\tint y = Integer.parseInt(m.group(3));\n\t\t\t\t\t\tint lockID = Integer.parseInt(m.group(4));\n\t\t\t\t\t\tint npcID = Integer.parseInt(m.group(5));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tItemType it = ItemType.valueOf(itemType);\n\t\t\t\t\t\t\taddEffect.accept(cw -> {\n\t\t\t\t\t\t\t\tWorldObject wo = ObjectMaker.makeFromType(it,\n\t\t\t\t\t\t\t\t\t\tnew Point(x, y), lockID, npcID);\n\t\t\t\t\t\t\t\tcw.addObject(wo);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\t\tlogError(\"Unknown item type: \" + itemType, 2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tPattern useObjectPattern = Pattern.compile(\n\t\t\t\t\t\t\t\"use\\\\(([\\\\w_]+),(\\\\d+)\\\\)\");\n\t\t\t\t\tm = useObjectPattern.matcher(nextLine);\n\t\t\t\t\tif (m.find()) {\n\t\t\t\t\t\tString itemType = m.group(1).toUpperCase();\n\t\t\t\t\t\tint quant = Integer.parseInt(m.group(2));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tItemType it = ItemType.valueOf(itemType);\n\t\t\t\t\t\t\taddEffect.accept(cw -> {\n\t\t\t\t\t\t\t\tif (cw != null && cw.getMap() != null\n\t\t\t\t\t\t\t\t\t\t&& cw.getMap().getPlayer() != null) {\n\t\t\t\t\t\t\t\t\tPlayer p = (Player) cw.getMap().getPlayer();\n\t\t\t\t\t\t\t\t\tp.use(it, quant);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\t\tlogError(\"Unknown item type: \" + itemType, 2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tPattern worldConvPattern = Pattern.compile(\"worldConv\\\\((\\\\d+)\\\\)\");\n\t\t\t\t\tm = worldConvPattern.matcher(nextLine);\n\t\t\t\t\tif (m.find()) {\n\t\t\t\t\t\tint convID = Integer.parseInt(m.group(1));\n\t\t\t\t\t\taddEffect.accept(cw -> cw.showWorldConversation(convID));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while ((nextLine = getNextLine()) != null\n\t\t\t\t&& !nextLine.matches(\"\\\\s*</objective>\\\\s*\"));\n\n\t}",
"public void updateSelection()\n {\n \trectForSelection.setRect(rettangoloX,rettangoloY,larghezza,altezza);\n \trectSelTopLeft.setRect(rettangoloX-3,rettangoloY-3,6,6);\n \trectSelBottomLeft.setRect(rettangoloX-3,rettangoloY+altezza-3,6,6);\n \trectSelTopRight.setRect(rettangoloX+larghezza-3,rettangoloY-3,6,6);\n \trectSelBottomRight.setRect(rettangoloX+larghezza-3,rettangoloY+altezza-3,6,6);\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent evt){\r\n\t\t//TODO if scenario => is editing && is moving\r\n\t\t//TODO get selected entity\r\n\t\t//TODO if selected entity != null\r\n\t\t//TODO scale selected entity by scaleFactor\r\n\t}",
"@Override\n\t\t\t\tpublic void onActionMove(float x, float y) {\n\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onActionMove(float x, float y) {\n\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onActionMove(float x, float y) {\n\n\t\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n caterpillar.move();\n \n if (caterpillar.getShapeX() < 39) {\n caterpillar.setDirection(0);\n caterpillar.decrease_section(sections);\n }\n else if (caterpillar.getShapeX() > getWidth() - 41) {\n caterpillar.setDirection(180);\n caterpillar.decrease_section(sections);\n }\n else if (caterpillar.getShapeY() < 39) {\n caterpillar.setDirection(90);\n caterpillar.decrease_section(sections);\n }\n else if (caterpillar.getShapeY() > getHeight() - 61) {\n caterpillar.setDirection(270);\n caterpillar.decrease_section(sections);\n }\n \n for (Section section : sections) {\n section.move();\n }\n for (int i = 0; i < sections.size(); i++) {\n if (i == 0) {\n sections.get(i).setFollowX(caterpillar.getShapeX());\n sections.get(i).setFollowY(caterpillar.getShapeY());\n }\n else {\n sections.get(i).setFollowX(sections.get(i - 1).getShapeX());\n sections.get(i).setFollowY(sections.get(i - 1).getShapeY());\n }\n }\n \n enemy.setSpeed(rand.nextInt(19));\n enemy.move();\n for (int i = 0; i < block_num; i++) {\n while(enemy.collision_detection(poizon.get(i)) || enemy.collision_detection(apple)) {\n enemy.setSpeed(rand.nextInt(19));\n enemy.move();\n }\n }\n enemy_2.setSpeed(rand.nextInt(19));\n enemy_2.move();\n for (int i = 0; i < block_num; i++) {\n while(enemy_2.collision_detection(poizon.get(i)) || enemy_2.collision_detection(apple)) {\n enemy_2.setSpeed(rand.nextInt(19));\n enemy_2.move();\n }\n }\n \n if (apple.collision_detection(caterpillar)) {\n Section newSection = new Section(sections.get(sections.size() - 1).getShapeX(),\n sections.get(sections.size() - 1).getShapeY(), 20, 0,\n sections.get(sections.size() - 1).getShapeX(),\n sections.get(sections.size() - 1).getShapeY());\n this.add(newSection, BorderLayout.CENTER);\n this.setVisible(true);\n sections.add(newSection);\n }\n\n for (MoveShape poizonApple : poizon) {\n if (poizonApple.collision_detection(caterpillar))\n caterpillar.decrease_section(sections);\n }\n \n if (enemy.collision_detection(caterpillar)) {\n caterpillar.dying();\n }\n for (Section section : sections) {\n if (enemy.collision_detection(section)) {\n caterpillar.dying();\n }\n }\n\n if (enemy_2.collision_detection(caterpillar)) {\n caterpillar.dying();\n }\n for (Section section : sections) {\n if (enemy_2.collision_detection(section)) {\n caterpillar.dying();\n }\n }\n time_add += speed;\n if (time_add % 10000 == 0) {\n caterpillar.decrease_section(sections);\n }\n repaint();\n if (sections.size() == 0) {\n caterpillar.dying();\n }\n }",
"@FXML\n\tprivate void desligarLuz(){\n\t boxEntity.setEffect(new Lighting()); \n\t\t\n\t\t\n\t\t\n\t}",
"public void setActionMoveCursor(GralUserAction action){ actionMoveCursor = action; }",
"private void selectedGeometryClassActions() {\n\n\t\tClass<? extends Geometry> targetClass;\n\t\ttargetClass = getTargetClass();\n\t\tdispatchEvent(targetClass);\n\t}",
"private void courseEffects() {\n\t\t\n\t}",
"void setTarget(IWfnTransitionAndPlace elem);",
"private void modifyTextActions() {\n\n\t\tfinal String text = this.comboTargetLayer.getText();\n\t\tif (text.length() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// if it was modified by the selection of one item it was handled by\n\t\t// selectedTargetLayerActions\n\t\tif (this.comboTargetLayer.getSelectionIndex() != -1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (text.equals(this.currentNewLayerName)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// check the new name with the layer list.\n\t\tif (this.comboTargetLayer.indexOf(text) != -1) {\n\t\t\tInfoMessage msg = new InfoMessage(Messages.ResultLayerComposite__duplicated_layer_name,\n\t\t\t\t\t\tInfoMessage.Type.ERROR);\n\t\t\tthis.setMessage(msg);\n\n\t\t\treturn;\n\t\t}\n\t\t// boolean used to control the back write of the result layer name\n\t\tmodifyNewLayerName = true;\n\t\t// if the new name is correct, notifies to all listeners,\n\t\t// saves the current name and sets Geometry as default for the new layer\n\t\tsetCurrentTarget(text);\n\t\tsetGeometryComboEnabled(true);\n\t\tint index = comboGeometryList.getSelectionIndex();\n\t\tif (index == -1) {\n\n\t\t\tthis.comboGeometryList.select(this.comboGeometryList.indexOf(Geometry.class.getSimpleName()));\n\t\t}\n\n\t\tdispatchEvent(text);\n\t\tmodifyNewLayerName = false;\n\t}",
"public void mover() {\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\r\n ArrayList<Integer> shape_index = new ArrayList<Integer>();\r\n if(selected_shape.length()==0){\r\n instruction.setText(\"Please select an object before cutting operation\");\r\n }else{\r\n switch(selected_shape){\r\n case \"rec\":\r\n int begin_index = selected_object.get(0);\r\n if(rec_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n rec_points.remove(begin_index);\r\n }\r\n }else{\r\n rec_points.clear();\r\n }\r\n\r\n rec_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"rec\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n int cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n case \"squ\":\r\n begin_index = selected_object.get(0);\r\n if(squ_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n squ_points.remove(begin_index);\r\n }\r\n }else{\r\n squ_points.clear();\r\n }\r\n squ_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"squ\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n case \"ell\":\r\n begin_index = selected_object.get(0);\r\n if(ell_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n ell_points.remove(begin_index);\r\n }\r\n }else{\r\n ell_points.clear();\r\n }\r\n ell_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"ell\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n case \"cir\":\r\n begin_index = selected_object.get(0);\r\n if(cir_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n cir_points.remove(begin_index);\r\n }\r\n }else{\r\n cir_points.clear();\r\n }\r\n cir_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"cir\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n case \"str\":\r\n begin_index = selected_object.get(0);\r\n if(str_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n str_points.remove(begin_index);\r\n }\r\n }else{\r\n str_points.clear();\r\n }\r\n str_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"str\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n }\r\n }\r\n\r\n\r\n //repaint all shapes\r\n\r\n g.setColor(Color.WHITE);\r\n g.fillRect(0,0,1200, 800);\r\n canvas.repaint();\r\n System.out.println(progress_stack);\r\n System.out.println(rec_points);\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n\r\n canvas.repaint();\r\n }",
"public void rightRegionSelections() {\n setPositionSelcted(true);\n\n //setting gamescreen background as per region of position selected\n gameScreenBackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field_zones_rf_on);\n\n //changing position image sources as adjacent to half selected and far positons to empty backgrounds to position buttons\n rfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.rf_player_selected);\n twoBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.twob_player_selected);\n oneBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.oneb_player_selected);\n\n cfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.cf_player_half_selected);\n pTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.p_player_half_selected);\n cTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.c_player_half_selected);\n\n lfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.lf_player_unselected);\n ssTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.ss_player_unselected);\n threeBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.threeb_player_unselected);\n\n\n cfTextView.setSelected(false);\n pTextView.setSelected(false);\n cTextView.setSelected(false);\n\n lfTextView.setSelected(false);\n ssTextView.setSelected(false);\n threeBTextView.setSelected(false);\n\n if (rfTextView.isSelected()) {\n rfTextView.setSelected(true);\n oneBTextView.setSelected(false);\n oneBTextView.setSelected(false);\n\n } else if (twoBTextView.isSelected()) {\n twoBTextView.setSelected(true);\n oneBTextView.setSelected(false);\n\n } else if (oneBTextView.isSelected()) {\n oneBTextView.setSelected(true);\n }\n\n //setting top field points visibility as per positions selections\n rightFieldpoints.setVisibility(View.VISIBLE);\n leftFieldPoints.setVisibility(View.VISIBLE);\n centerFieldPoints.setVisibility(View.VISIBLE);\n\n //setting top field points as per selections\n rightFieldpoints.setText(\"+20\");\n leftFieldPoints.setText(\"+5\");\n centerFieldPoints.setText(\"+10\");\n\n //changing top field points text color as per selections\n rightFieldpoints.setTextColor(Color.parseColor(\"#ffffff\"));\n centerFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n leftFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n\n //swh is disable\n swhImageView.setSelected(false);\n swhImageView.setEnabled(true);\n\n //close guesses enabling\n closePlayButton.setAlpha((float)1);\n closePlayButton.setEnabled(true);\n\n }",
"@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}",
"public void reSurrect(){\n\t\tcanvas = Canvas.getInstance();\n\t\tfor(int i = 0; i < myEffects.size(); i++){\n\t\t\tmyEffects.get(i).reSurrect();\n\t\t}\n\t}",
"private void ageInputSelectionActionPerform() {\n\t\tif (ageInputSelection.isSelected()) {\n\t\t\tagePanel.remove(intuitive);\n\t\t\tagePanel.remove(selfTaught);\n\t\t\tagePanel.remove(trained);\n\t\t\tagePanel.remove(ageRoll);\n\t\t\tagePanel.add(ageInput);\n\t\t\tagePanel.setPreferredSize(new Dimension(2400, 120));\n\t\t\treference.validate();\n\t\t\treference.repaint();\n\t\t}\n\t\tageInput.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tagePanel.add(ageLabel);\n\t\t\t\tagePanel.remove(ageInputSelection);\n\t\t\t\tagePanel.remove(ageRollSelection);\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t}",
"public void place(){\n\t\tplace((float) Math.floor(Main.mouseSelector.x)+0.5f,(float) Math.floor(Main.mouseSelector.y)+0.5f);\r\n\t}",
"public void beginSelecting() {\r\n selecting = true;\r\n minX = 0;\r\n maxX = 0;\r\n }",
"@Override\n public void update() {\n if (changedState) {\n selectedPosY = selection * hItemBox + yPos + hItemBox;\n selectedPosX = xPos; \n changedState = false;\n }\n }",
"@Override\n\tpublic int effect() {\n\t\treturn 0 ;\n\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif(\"colorButton\".equals(e.getActionCommand())){//使颜色按钮\r\n\t\t\t\tString ct = tt.resultTextPane.getSelectedText();\r\n\t\t\t\tif(ct != null&&!\"\".equals(ct.trim())){//判断是否已经选取了文字\r\n\t\t\t\t\tFontColor fc = new FontColor(\"0\",this.tt);\r\n\t\t\t\t\tfc.setResizable(false);\r\n\t\t\t\t\tfc.setTitle(\"颜色编辑器\");\r\n\t\t\t\t\tint end = tt.resultTextPane.getSelectionEnd();\r\n\t\t\t\t\tint begin = tt.resultTextPane.getSelectionStart();\r\n\t\t\t\t\tMap<Integer,Integer> map = tt.numberIndex;\r\n\t\t\t\t\tfc.setBegin(map.get(begin));//选中区域的开始位置\r\n\t\t\t\t\tfc.setEnd(map.get(end));//选中区域的结束位置\r\n\t\t\t\t\tfc.setBounds(250, 200, 255, 265);\r\n\t\t\t\t\t\r\n\t\t\t\t\tDimension d=fc.getSize();\r\n\t\t\t\t\tPoint loc = basePanel.getLocationOnScreen();\r\n\t\t \tloc.translate(d.width/3,0);\r\n\t\t \tfc.setLocation(loc);\r\n\t\t \t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfc.setModal(true);\r\n\t\t\t\t\tfc.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {//没有选取文字\r\n\t\t\t\t\t\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"请选择要编辑的文字\",\"提示\",1);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(\"linkButton\".equals(e.getActionCommand())){//是超链接按钮\r\n\t\t\t\tString ct = tt.resultTextPane.getSelectedText();\r\n\t\t\t\tif(ct != null&&!\"\".equals(ct.trim())){//判断是否已经选取了文字\r\n\t\t\t\t\tint end = tt.resultTextPane.getSelectionEnd();\r\n\t\t\t\t\tint begin = tt.resultTextPane.getSelectionStart();\r\n\t\t\t\t\tMap<Integer,Integer> map = tt.numberIndex;\r\n\t\r\n\t\t\t\t\tUnderLine ul = new UnderLine(map.get(begin),map.get(end),tt);\r\n\t\t\t\t\tul.setResizable(false);\r\n\t\t\t\t\tul.setTitle(\"超链接编辑\");\r\n\t\t\t\t\tul.setContentPane(ul.getTotalPanel());\r\n\t\t\t\t\tul.setBounds(250, 200, 255, 265);\r\n\t\t\t\t\t\r\n\t\t\t\t\tDimension d=ul.getSize();\r\n\t\t\t\t\tPoint loc = basePanel.getLocationOnScreen();\r\n\t\t \tloc.translate(d.width/3,0);\r\n\t\t \tul.setLocation(loc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tul.setModal(true);\r\n\t\t\t\t\tul.setVisible(true);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {//没有选择编辑的文字\r\n\t\t\t\t\t\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"请选择要编辑的文字\",\"提示\",1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(\"icoButton\".equals(e.getActionCommand())){//点击了图片选择按钮\r\n//\t\t\t\tSystem.out.println(resultTextPane.get);\r\n\t\t\t\t\r\n\t\t\t\tint end = tt.resultTextPane.getSelectionEnd();\r\n\t\t\t\tint begin = tt.resultTextPane.getSelectionStart();\r\n\t\t\t\tMap<Integer,Integer> map = tt.numberIndex;\r\n\t\t\t\t\r\n\t\t\t\tIco ico = new Ico(tt,map.get(begin));\r\n\t\t\t\tico.setTitle(\"图标编辑\");\r\n\t\t\t\tico.setResizable(false);\r\n\t\t\t\tico.setContentPane(ico.getTotalPanel());\r\n\t\t\t\tico.setBounds(250, 200, 255, 265);\r\n\r\n\t\t\t\tDimension d=ico.getSize();\r\n\t\t\t\tPoint loc = basePanel.getLocationOnScreen();\r\n\t \tloc.translate(d.width/3,0);\r\n\t \tico.setLocation(loc);\r\n\t \t\r\n\t \tico.setModal(true);\r\n\t\t\t\tico.setVisible(true);\r\n\t\t\t}\r\n\r\n\t\t}",
"private void helperSwitchMoveOn()\r\n\t{\r\n\t\tFormMainMouse.isSampleMovable = true;\r\n\r\n\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_MOVE_ACTIVE);\r\n\r\n\t\tmainFormLink.getComponentToolbar().getComponentButtonMove().setIcon(iconButton);\r\n\t}",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"protected void applyEffects()\n\t{\n\t\tfor(int i = 0; i < effects.length; i++)\n\t\t{\n\t\t\tif(effects[i] != null)\n\t\t\t{\n\t\t\t\teffects[i].applyEffect();\n\t\t\t}\n\t\t}\n\t}",
"public void select(int x, int y)\n\t{\n\t\tif(!this.used[x][y])\n\t\t{\n\t\t\tthis.cur.move(x, y);\n\t\t\tthis.moved = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.selected = true;\n\t\t\tthis.cur = piece[x][y];\n\t\t}\n\t\t//drawState();\n\t}",
"private void addAdditionalEffects()\n {\n // make them fly so they do not fall from suspension\n FLYING flying = new FLYING(p, duration + 10, targetID);\n Ollivanders2API.getPlayers().playerEffects.addEffect(flying);\n additionalEffects.add(O2EffectType.FLYING);\n\n // add an immbolize effect with a duration slightly longer than this one so that they cannot move while suspended\n IMMOBILIZE immbobilize = new IMMOBILIZE(p, duration + 10, targetID);\n Ollivanders2API.getPlayers().playerEffects.addEffect(immbobilize);\n additionalEffects.add(O2EffectType.IMMOBILIZE);\n }",
"@Override\n\tprotected void hover(){\n\t\tgvh.log.i(TAG, \"Drone hovering\");\n\t\tsetControlInput(0, 0, 0, 0);\n\t}",
"private void editMenu(){\n String editSelection;\n\n TransformerSuperClass transformer = new SlideLeft();\n\n do {\n printEditMenu();\n\n editSelection = scanner.nextLine();\n editSelection = editSelection.toUpperCase();\n\n\n switch (editSelection) {\n case \"FH\":\n //Flip horizontal\n transformer = new FlipHorizontal();\n footage.transform(transformer);\n break;\n case \"FV\":\n //Flip vertical\n transformer = new FlipVertical();\n footage.transform(transformer);\n break;\n case \"SL\":\n //Slide left\n transformer = new SlideLeft();\n footage.transform(transformer);\n if(numberRight > 0) {\n numberRight -= 1;\n }\n else{\n numberLeft += 1;\n }\n break;\n case \"SR\":\n //Slide right\n transformer = new SlideRight();\n footage.transform(transformer);\n if(numberLeft > 0){\n numberLeft -= 1;\n }\n else{\n numberRight += 1;\n }\n break;\n case \"SU\":\n //Slide up\n transformer = new SlideUp();\n footage.transform(transformer);\n if(numberDown > 0){\n numberDown -= 1;\n }else{\n numberUp += 1;\n }\n break;\n case \"SD\":\n //Slide down\n transformer = new SlideDown();\n footage.transform(transformer);\n if(numberUp > 0){\n numberUp -= 1;\n }else{\n numberDown += 1;\n }\n break;\n case \"R\":\n //Repeat last operation\n footage.transform(transformer);\n //Check what the class of transformer is and see whether or not we need to change the numbers moved variables.\n if(SlideLeft.class.isInstance(transformer)){\n if(numberRight > 0) {\n numberRight -= 1;\n }\n else{\n numberLeft += 1;\n }\n }\n else if(SlideRight.class.isInstance(transformer)){\n if(numberLeft > 0){\n numberLeft -= 1;\n }\n else{\n numberRight += 1;\n }\n }\n else if(SlideUp.class.isInstance(transformer)){\n if(numberDown > 0){\n numberDown -= 1;\n }else{\n numberUp += 1;\n }\n }\n else if(SlideDown.class.isInstance(transformer)){\n if(numberUp > 0){\n numberUp -= 1;\n }else{\n numberDown += 1;\n }\n }\n break;\n }\n }while(!editSelection.equals(\"Q\"));\n\n }",
"@Override\r\n protected void chooseSprite() {\r\n switch(_direction) {\r\n case 0:\r\n case 1:\r\n if(_moving)\r\n _sprite = Sprite.movingSprite(Sprite.stupid_right1, Sprite.stupid_right2, Sprite.stupid_right3, _animate, 60);\r\n else\r\n _sprite = Sprite.stupid1;\r\n break;\r\n case 2:\r\n case 3:\r\n if(_moving)\r\n _sprite = Sprite.movingSprite(Sprite.stupid1, Sprite.stupid2, Sprite.stupid3, _animate, 60);\r\n else\r\n _sprite = Sprite.stupid1;\r\n break;\r\n }\r\n }",
"private void setEvents() {\n \n // On drag detected event (the start of a drag and drop)\n this.setOnDragDetected( e-> {\n if(this.dragEnabled) {\n Dragboard db;\n \n // if on board transfer mode is move, if from the pieces box, copy\n if(this.isOnBoard) { db = startDragAndDrop(TransferMode.MOVE); }\n else { db = startDragAndDrop(TransferMode.COPY); }\n \n ClipboardContent content = new ClipboardContent();\n content.putString(toString());\n db.setContent(content);\n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) { System.out.print(\"Drag started on \"); }\n this.startFullDrag();\n }\n e.consume();\n });\n \n // Mouse dragover event handler (for accepting a drag and drop)\n this.setOnDragOver(new EventHandler<DragEvent>() {\n @Override\n public void handle(DragEvent event) {\n if(dropEnabled) {\n Dragboard db = event.getDragboard();\n if (db.hasString()) {\n event.acceptTransferModes(TransferMode.COPY_OR_MOVE);\n }\n event.consume();\n }\n }\n });\n \n // Drag over entered event ( mouse is dragging over this)\n this.setOnDragEntered(e -> {\n if(dropEnabled) {\n\n // setting color to \"highlight\" square mouse is over\n Color c = Color.MAGENTA;\n setBorderColor(c);\n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) { System.out.print(\"Drag entered \");}\n }\n });\n\n // Drag over exited event ( mouse is no longer dragging over this)\n this.setOnDragExited(e -> {\n if(dropEnabled) {\n\n // reseting to stored color value (mouse drag no longer over)\n setBorderColor(this.borderColor);\n e.consume();\n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) { System.out.print(\"Drag exited \"); }\n }\n });\n \n // Drag over dropped event (the drag and drop event is completed)\n this.setOnDragDropped(e -> {\n Dragboard db = e.getDragboard();\n boolean success = false;\n int toPieceIndex = pieceIndex; // saving previous piece\n if(db.hasString() && this.dropEnabled) {\n \n //TODO check with controller for valid position\n \n boolean moved = false;\n \n String rawInfo = db.getString();\n String[] info = rawInfo.split(\" \");\n this.playerColor = Color.web(info[5]);\n isVisible = (info[6].substring(0, 4).equals(\"true\"));\n int fromPieceIndex = Integer.parseInt(info[0]);\n int fromRow = StrategoView.translate(Integer.parseInt(info[1]));\n int fromCol = StrategoView.translate(Integer.parseInt(info[2]));\n int toRow = StrategoView.translate(row);\n int toCol = StrategoView.translate(col);\n // getting whether the moved piece came from the board (true) or the pieces box (false)\n boolean fromBoard = (info[4].substring(0, 4).equals(\"true\"));\n if(fromBoard) {\n \n // requesting movement from controller\n if(Piece.isMoveValid(fromRow, fromCol, toRow, toCol, PieceView.convertPieceIndexToType(fromPieceIndex))) {\n // piece will move\n //this.show();\n //controller.getPosition(fromRow, fromCol);\n \n }\n moved = controller.movePiece(fromRow, fromCol, toRow, toCol);\n \n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) {\n if(!moved) {\n System.out.println(\"Not moved (from controller)\");\n }\n System.out.printf(\"From Piece index: %d \", fromPieceIndex);\n System.out.printf(\"To Piece index: %d \", toPieceIndex);\n }\n \n \n }else { // Not from board (placed during setup)\n moved = true;\n this.pieceIndex = fromPieceIndex;\n update();\n if(toPieceIndex != pieceIndex){ // if pieced placed is not the same piece already there\n StrategoView.updateLabels(pieceIndex, -1); // decrement count of new piece\n \n if(toPieceIndex >= 0) { // If position on board was occupied by another piece\n StrategoView.updateLabels(toPieceIndex, 1); // increment count of old piece\n }\n }\n // Changing border color value (drag over exit event will actually set the border color)\n this.borderColor = Color.web(info[3]);\n\n }\n if(moved) {\n success = true;\n }\n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) {\n System.out.print(\"Drag ended on \");\n System.out.printf(\"String: %s %s %s\\n\", info[0], info[1], info[2]);\n System.out.printf(\"Dropped on row %d and col %d\\n\", row, col);\n }\n \n }\n e.setDropCompleted(success);\n \n e.consume();\n \n });\n }",
"protected boolean select(int x, int y) {\r\n\t\tanchor = new Point (x, y);\r\n\t\t\t\r\n\t\t// pieces are returned in order of Z coordinate\r\n\t\tShape s = model.getBoard().findShape(anchor.x, anchor.y);\r\n\t\tif (s == null) { return false; }\r\n\t\t\r\n\t\t// no longer in the board since we are moving it around...\r\n\t\tmodel.getBoard().remove(s);\r\n\t\tmodel.setSelected(s);\r\n\t\tpanel.paintBackground(s);\r\n\t\toriginalx = s.getX();\r\n\t\toriginaly = s.getY();\r\n\t\t\r\n\t\t// set drawer to highlight\r\n\t\tShapeDrawer sd = s.getDrawer();\r\n\t\tsd.setState(ShapeDrawer.StateSelected);\r\n\t\t\t\r\n\t\t// set anchor for smooth moving\r\n\t\tdeltaX = anchor.x - originalx;\r\n\t\tdeltaY = anchor.y - originaly;\r\n\t\t\r\n\t\t// paint will happen once moves. This redraws state to prepare for paint\r\n\t\tpanel.redraw();\r\n\t\treturn true;\r\n\t}",
"private void drawInteractions(Graphics2D g2d, RenderContext myrc) {\n Composite orig_comp = g2d.getComposite();\n // Draw the interaction\n switch (ui_inter) {\n case PANNING: g2d.setColor(RTColorManager.getColor(\"background\", \"default\")); g2d.fillRect(0,0,getWidth(),getHeight());\n\t g2d.drawImage(myrc.getBase(), m_x1 - m_x0, m_y1 - m_y0, null); \n g2d.setColor(RTColorManager.getColor(\"annotate\", \"cursor\")); int cx = getWidth()/2, cy = getHeight()/2; g2d.drawLine(cx-12,cy,cx+12,cy); g2d.drawLine(cx,cy-12,cx,cy+12);\n break;\n case GRID_LAYOUT:\n\tcase CIRCLE_LAYOUT:\n case SELECTING: int x0 = m_x0 < m_x1 ? m_x0 : m_x1, y0 = m_y0 < m_y1 ? m_y0 : m_y1,\n\t\t\t dx = (int) Math.abs(m_x1 - m_x0), dy = (int) Math.abs(m_y1 - m_y0);\n\t\t\t if (dx == 0) dx = 1; if (dy == 0) dy = 1;\n\t\t\t g2d.setColor(RTColorManager.getColor(\"select\", \"region\"));\n\t\t\t Shape shape;\n\t\t\t if (ui_inter == UI_INTERACTION.SELECTING || ui_inter == UI_INTERACTION.GRID_LAYOUT) {\n shape = new Rectangle2D.Double(x0,y0,dx,dy);\n\t\t\t } else {\n double radius = Math.sqrt(dx*dx+dy*dy);\n shape = new Ellipse2D.Double(m_x0-radius,m_y0-radius,2*radius,2*radius);\n }\n\t\t\t g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));\n\t\t\t g2d.fill(shape);\n\t\t\t g2d.setComposite(orig_comp);\n\t\t\t if (ui_inter == UI_INTERACTION.SELECTING) {\n String str = \"Selecting...\"; if (last_shft_down && last_ctrl_down) str += \" (Intersect)\";\n\t\t\t else if (last_shft_down ) str += \" (Remove From)\";\n\t\t\t\t\t\t\t else if ( last_ctrl_down) str += \" (Add To)\";\n g2d.drawString(str, x0, y0); \n } else g2d.drawString(\"Layout...\", x0, y0);\n\t\t\t g2d.draw(shape);\n\t\t\t break;\n case MOVING: g2d.drawString(\"Moving...\", 5, getHeight()-5); \n\t Set<String> moving_set_dup = moving_set;\n if (moving_set_dup != null && moving_set_dup.size() > 0) {\n\t\t\t AffineTransform orig = g2d.getTransform(); g2d.setColor(RTColorManager.getColor(\"linknode\", \"movenodes\"));\n\t\t\t g2d.translate(m_x1 - m_x0, m_y1 - m_y0);\n Iterator<String> it = moving_set_dup.iterator();\n\t\t\t while (it.hasNext()) {\n\t\t\t String str = it.next(); shape = myrc.node_to_geom.get(entity_to_sxy.get(str));\n\t\t\t if (shape != null) { g2d.draw(shape); }\n\t\t\t }\n\t\t\t g2d.setTransform(orig);\n\t\t \t }\n break;\n\tcase LINE_LAYOUT: g2d.setColor(RTColorManager.getColor(\"linknode\", \"layout\"));\n\t g2d.drawLine(m_x0, m_y0, m_x1, m_y1);\n\t\t\t break;\n\tcase NONE:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }",
"public abstract void setEffects(Tank t);",
"private void movementPhase() {\n ClickObserver.getInstance().setCreatureFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n TheCupGUI.update();\n Board.removeCovers();\n }\n });\n for (Player p : playerList) {\n \tplayer = p;\n player.flipAllUp();\n\t ClickObserver.getInstance().setActivePlayer(player);\n\t ClickObserver.getInstance().setCreatureFlag(\"Movement: SelectMovers\");\n\t InfoPanel.uncover(player.getName());\n\t if (p.getHexesWithPiece().size() > 0) {\n\t \tClickObserver.getInstance().setClickedTerrain(p.getHexesWithPiece().get(0));\n\t }\n\t pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n \t GUI.getHelpText().setText(\"Movement Phase: \" + player.getName()\n + \", Move your armies\");\n \t Game.getRackGui().setOwner(player);\n }\n });\n\t \n\t while (isPaused) {\n \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t }\n\t InfoPanel.cover(player.getName());\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n ClickObserver.getInstance().setCreatureFlag(\"\");\n }",
"void addEffect(Effect effect, boolean temp) {\n/* 1782 */ if (this.isTransition && this.surfaced) {\n/* */ \n/* 1784 */ getCaveTile().addEffect(effect, temp);\n/* */ \n/* */ return;\n/* */ } \n/* 1788 */ if (!temp) {\n/* */ \n/* 1790 */ if (this.effects == null)\n/* 1791 */ this.effects = new HashSet<>(); \n/* 1792 */ this.effects.add(effect);\n/* */ } \n/* */ \n/* 1795 */ if (this.watchers != null)\n/* */ {\n/* 1797 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();) {\n/* 1798 */ ((VirtualZone)it.next()).addEffect(effect, temp);\n/* */ }\n/* */ }\n/* 1801 */ effect.setSurfaced(this.surfaced);\n/* */ \n/* */ try {\n/* 1804 */ effect.save();\n/* */ }\n/* 1806 */ catch (IOException iox) {\n/* */ \n/* 1808 */ logger.log(Level.INFO, iox.getMessage(), iox);\n/* */ } \n/* */ }",
"public void perform(GameState state) {\n\n selectCrop(state);\n\n// returnBack(state); // add back in for command lines\n }",
"public void mouseMoved(MouseEvent e) {\r\n\t\tif(Game.gameState != Game.STATE.Battle) changeScreens();\r\n\t\tint mx = e.getX();\r\n\t\tint my = e.getY();\r\n\t\tif(Game.gameState == Game.STATE.Paused) {\r\n\t\t\tif(pauseState == PauseState.Regular) {\r\n\t\t\t\t//player progress\r\n\t\t\t\tif(mouseOver(mx, my, 500, 261, 278, 64)) {\r\n\t\t\t\t\toption1 = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toption1 = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//allies\r\n\t\t\t\tif(mouseOver(mx, my, 500, 348, 278, 64)) {\r\n\t\t\t\t\toption2 = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toption2 = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//items\r\n\t\t\t\tif(mouseOver(mx, my, 500, 435, 278, 64)) {\r\n\t\t\t\t\toption3 = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toption3 = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//attire\r\n\t\t\t\tif(mouseOver(mx, my, 500, 522, 278, 64)) {\r\n\t\t\t\t\toption5 = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toption5 = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//x out\r\n\t\t\t\tif(mouseOver(mx, my, 820, 88, 33, 34)) {\r\n\t\t\t\t\toption4 = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toption4 = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(!option1 && !option2 && !option3 && !option4 && !option5) {\r\n\t\t\t\t\tnone = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tnone = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(pauseState == PauseState.ItemScreen) {\r\n\t\t\t\tif(mouseOver(mx, my, 112, 78, 36, 36)) {\r\n\t\t\t\t\tbackToRegFromItem = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tbackToRegFromItem = false;\r\n\t\t\t\t}\r\n\t\t\t\tint yItemP = 198;\r\n\t\t\t\t//System.out.println(Game.itemPouch.getItemAmnt());\r\n\t\t\t\tfor(int i = 0; i < Game.itemPouch.getItemAmnt(); i++) {\r\n\t\t\t\t\tif(mouseOver(mx, my, 164, yItemP, 320, 78)) {\r\n\t\t\t\t\t\toverItem = true;\r\n\t\t\t\t\t\toverItemY = yItemP;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\toverItem = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tyItemP += 82;\r\n\t\t\t\t}\r\n\t\t\t\tint num = (overItemY - 198) / 82;\r\n\t\t\t\tcurItemOver = Game.itemPouch.getItem(num);\r\n\t\t\t}\r\n\t\t\telse if(pauseState == PauseState.ItemUse) {\r\n\t\t\t\tif(mouseOver(mx, my, 516, 496, 114, 38)) {\r\n\t\t\t\t\toverYes = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toverYes = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(mouseOver(mx, my, 650, 496, 114, 38)) {\r\n\t\t\t\t\toverNo = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toverNo = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(pauseState == PauseState.ProgressScreen) {\r\n\t\t\t\tif(mouseOver(mx, my, 53, 82, 36, 36)) {\r\n\t\t\t\t\tgoBackFromProg = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgoBackFromProg = false;\r\n\t\t\t\t}\r\n\t\t\t\tif(mouseOver(mx, my, 142, 429, 96, 67)) {\r\n\t\t\t\t\toverHealth = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toverHealth = false;\r\n\t\t\t\t}\r\n\t\t\t\tif(mouseOver(mx, my, 142, 499, 96, 67)) {\r\n\t\t\t\t\toverAlly = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toverAlly = false;\r\n\t\t\t\t}\r\n\t\t\t\tif(mouseOver(mx, my, 142, 569, 96, 67)) {\r\n\t\t\t\t\toverPummel = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toverPummel = false;\r\n\t\t\t\t}\r\n\t\t\t\tif(mouseOver(mx, my, 142, 639, 96, 67)) {\r\n\t\t\t\t\toverLaser = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toverLaser = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(pauseState == PauseState.AllyScreen) {\r\n\t\t\t\tif(mouseOver(mx, my, 53, 82, 36, 36)) {\r\n\t\t\t\t\tgoBackFromAlly = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgoBackFromAlly = false;\r\n\t\t\t\t}\r\n\t\t\t\tint xAlly = 182;\r\n\t\t\t\tfor(int i = 0; i < Game.allies.allies.size(); i++) {\r\n\t\t\t\t\tif(mouseOver(mx, my, xAlly, 300, 208, 208)) {\r\n\t\t\t\t\t\toverAnAlly = true;\r\n\t\t\t\t\t\txValForDrawingAlly = xAlly;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\toverAnAlly = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\txAlly += 232;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(pauseState == PauseState.AttireScreen) {\r\n\t\t\t\tif(mouseOver(mx, my, 53, 82, 36, 36)) {\r\n\t\t\t\t\tgoBackFromAttire = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgoBackFromAttire = false;\r\n\t\t\t\t}\r\n\t\t\t\tint xAttire = 182;\r\n\t\t\t\tfor(int i = 0; i < Game.costumePouch.costumes.size(); i++) {\r\n\t\t\t\t\tif(mouseOver(mx, my, xAttire, 300, 208, 208)) {\r\n\t\t\t\t\t\toverAnOutfit = true;\r\n\t\t\t\t\t\txValForDrawingAttire = xAttire;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\toverAnOutfit = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\txAttire += 232;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(Game.gameState == Game.STATE.Battle) {\r\n\t\t\tif(Battle.itemSelected) {\r\n\t\t\t\tif(itemSelect == false) {\r\n\t\t\t\t\tif(mouseOver(mx, my, 430, 78, 36, 36)) {\r\n\t\t\t\t\t\tbackToRegFromItem = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tbackToRegFromItem = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tint yItemP = 198;\r\n\t\t\t\t\t//System.out.println(Game.itemPouch.getItemAmnt());\r\n\t\t\t\t\tfor(int i = 0; i < Game.itemPouch.getItemAmnt(); i++) {\r\n\t\t\t\t\t\tif(mouseOver(mx, my, 482, yItemP, 320, 78)) {\r\n\t\t\t\t\t\t\toverItem = true;\r\n\t\t\t\t\t\t\toverItemY = yItemP;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\toverItem = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tyItemP += 82;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tint num = (yItemP - 198) / 82;\r\n\t\t\t\t\tcurItemOver = Game.itemPouch.getItem(num);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif(mouseOver(mx, my, 516, 496, 114, 38)) {\r\n\t\t\t\t\t\toverYes = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\toverYes = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(mouseOver(mx, my, 650, 496, 114, 38)) {\r\n\t\t\t\t\t\toverNo = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\toverNo = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(Battle.allySelected) {\r\n\t\t\t\tif(mouseOver(mx, my, 53, 82, 36, 36)) {\r\n\t\t\t\t\tgoBackFromAlly = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgoBackFromAlly = false;\r\n\t\t\t\t}\r\n\t\t\t\tint xAlly = 182;\r\n\t\t\t\t//System.out.println(Game.itemPouch.getItemAmnt());\r\n\t\t\t\tfor(int i = 0; i < Game.allies.allies.size(); i++) {\r\n\t\t\t\t\tif(mouseOver(mx, my, xAlly, 300, 208, 208)) {\r\n\t\t\t\t\t\toverAnAlly = true;\r\n\t\t\t\t\t\txValForDrawingAlly = xAlly;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\toverAnAlly = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\txAlly += 232;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(Game.gameState == Game.STATE.PostBattle) {\r\n\t\t\tif(ExperienceBar.levelUp != true && Battle.expToBeAdded == 0) {\r\n\t\t\t\tif(mouseOver(mx, my, 483, 716, 278, 64)) {\r\n\t\t\t\t\toverNext = true;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\toverNext = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(mouseOver(mx, my, 142, 429, 96, 67)) {\r\n\t\t\t\toverHealth = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\toverHealth = false;\r\n\t\t\t}\r\n\t\t\tif(mouseOver(mx, my, 142, 499, 96, 67)) {\r\n\t\t\t\toverAlly = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\toverAlly = false;\r\n\t\t\t}\r\n\t\t\tif(mouseOver(mx, my, 142, 569, 96, 67)) {\r\n\t\t\t\toverPummel = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\toverPummel = false;\r\n\t\t\t}\r\n\t\t\tif(mouseOver(mx, my, 142, 639, 96, 67)) {\r\n\t\t\t\toverLaser = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\toverLaser = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public void switchBetweenEditAndDeleteAction(boolean selected) {\n\t\tif (selected == true) {\n\t\t\tanimalShiftEditPanel.setShiftEditPanelToEdit();\n\t\t} else {\n\t\t\tanimalShiftEditPanel.setShiftEditPanelToDelete();\n\t\t}\n\t}",
"public void centerRegionSelections() {\n setPositionSelcted(true);\n\n //setting gamescreen background as per region of position selected\n gameScreenBackground.setImageResource(com.ryansplayllc.ryansplay.R.drawable.baseball_field_zones_cf_on);\n\n/**\n **changing position image sources as selected reion positins to selected backrounds\n **adjacent to half selected and\n **far positons to empty backgrounds to position buttons\n **/\n rfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.rf_player_half_selected);\n twoBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.twob_player_half_selected);\n oneBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.oneb_player_half_selected);\n\n cfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.cf_player_selected);\n pTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.p_player_selected);\n cTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.c_player_selected);\n\n lfTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.lf_player_half_selected);\n ssTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.ss_player_half_selected);\n threeBTextView.setBackgroundResource(com.ryansplayllc.ryansplay.R.drawable.threeb_player_half_selected);\n\n\n if (cfTextView.isSelected()) {\n cfTextView.setSelected(true);\n } else if (pTextView.isSelected()) {\n pTextView.setSelected(true);\n } else if (cTextView.isSelected()) {\n cTextView.setSelected(true);\n }\n\n\n rfTextView.setSelected(false);\n twoBTextView.setSelected(false);\n oneBTextView.setSelected(false);\n\n lfTextView.setSelected(false);\n ssTextView.setSelected(false);\n threeBTextView.setSelected(false);\n\n\n rightFieldpoints.setVisibility(View.VISIBLE);\n leftFieldPoints.setVisibility(View.VISIBLE);\n centerFieldPoints.setVisibility(View.VISIBLE);\n\n\n rightFieldpoints.setText(\"+10\");\n leftFieldPoints.setText(\"+10\");\n centerFieldPoints.setText(\"+20\");\n\n rightFieldpoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n centerFieldPoints.setTextColor(Color.parseColor(\"#ffffff\"));\n leftFieldPoints.setTextColor(Color.parseColor(\"#b5c3ae\"));\n\n //swh is disable\n swhImageView.setSelected(false);\n swhImageView.setEnabled(true);\n\n //close guesses enabling\n closePlayButton.setAlpha((float)1);\n closePlayButton.setEnabled(true);\n\n\n }",
"private void abilitySelection() {\n\t\tabilityInput.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tphysicalAbilityPanel.removeAll();\n\n\t\t\t\tmentalAbilityPanel.removeAll();\n\n\t\t\t\tabilitySelectionPanel.add(lowFantasy);\n\t\t\t\tabilitySelectionPanel.add(standardFantasy);\n\t\t\t\tabilitySelectionPanel.add(highFantasy);\n\t\t\t\tabilitySelectionPanel.add(epicFantasy);\n\t\t\t\tabilitySelectionPanel.add(fantasyPointsLabel);\n\t\t\t\tisInputting = true;\n\t\t\t\tisRolling = false;\n\t\t\t\tabilitySelectionPanel.setPreferredSize(new Dimension(2400, 220));\n\n\t\t\t\tfantasySelection();\n\n\t\t\t\tphysicalAbilityPanel.add(strengthLabel);\n\t\t\t\tphysicalAbilityPanel.add(strengthSpinner);\n\t\t\t\tphysicalAbilityPanel.add(strengthModifierLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryStrengthLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryStrengthInput);\n\t\t\t\tphysicalAbilityPanel.add(temporaryStrengthModifierLabel);\n\n\t\t\t\tphysicalAbilityPanel.add(dexterityLabel);\n\t\t\t\tphysicalAbilityPanel.add(dexteritySpinner);\n\t\t\t\tphysicalAbilityPanel.add(dexterityModifierLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryDexterityLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryDexterityInput);\n\t\t\t\tphysicalAbilityPanel.add(temporaryDexterityModifierLabel);\n\n\t\t\t\tphysicalAbilityPanel.add(constitutionLabel);\n\t\t\t\tphysicalAbilityPanel.add(constitutionSpinner);\n\t\t\t\tphysicalAbilityPanel.add(constitutionModifierLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryConstitutionLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryConstitutionInput);\n\t\t\t\tphysicalAbilityPanel.add(temporaryConstitutionModifierLabel);\n\n\t\t\t\tmentalAbilityPanel.add(intelligenceLabel);\n\t\t\t\tmentalAbilityPanel.add(intelligenceSpinner);\n\t\t\t\tmentalAbilityPanel.add(intelligenceModifierLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryIntelligenceLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryIntelligenceInput);\n\t\t\t\tmentalAbilityPanel.add(temporaryIntelligenceModifierLabel);\n\n\t\t\t\tmentalAbilityPanel.add(wisdomLabel);\n\t\t\t\tmentalAbilityPanel.add(wisdomSpinner);\n\t\t\t\tmentalAbilityPanel.add(wisdomModifierLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryWisdomLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryWisdomInput);\n\t\t\t\tmentalAbilityPanel.add(temporaryWisdomModifierLabel);\n\n\t\t\t\tmentalAbilityPanel.add(charismaLabel);\n\t\t\t\tmentalAbilityPanel.add(charismaSpinner);\n\t\t\t\tmentalAbilityPanel.add(charismaModifierLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryCharismaLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryCharismaInput);\n\t\t\t\tmentalAbilityPanel.add(temporaryCharismaModifierLabel);\n\n\t\t\t\treference.add(saveAbility);\n\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\tabilityRoll.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tabilitySelectionPanel.remove(lowFantasy);\n\t\t\t\tabilitySelectionPanel.remove(standardFantasy);\n\t\t\t\tabilitySelectionPanel.remove(highFantasy);\n\t\t\t\tabilitySelectionPanel.remove(epicFantasy);\n\t\t\t\tabilitySelectionPanel.remove(fantasyPointsLabel);\n\t\t\t\treference.remove(saveAbility);\n\t\t\t\tisInputting = false;\n\t\t\t\tisRolling = true;\n\t\t\t\tabilitySelectionPanel.setPreferredSize(new Dimension(2400, 120));\n\n\t\t\t\tphysicalAbilityPanel.removeAll();\n\t\t\t\tmentalAbilityPanel.removeAll();\n\n\t\t\t\tphysicalAbilityPanel.add(strengthLabel);\n\t\t\t\tphysicalAbilityPanel.add(strengthRoll);\n\t\t\t\tphysicalAbilityPanel.add(strengthModifierLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryStrengthLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryStrengthInput);\n\t\t\t\tphysicalAbilityPanel.add(temporaryStrengthModifierLabel);\n\n\t\t\t\tphysicalAbilityPanel.add(dexterityLabel);\n\t\t\t\tphysicalAbilityPanel.add(dexterityRoll);\n\t\t\t\tphysicalAbilityPanel.add(dexterityModifierLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryDexterityLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryDexterityInput);\n\t\t\t\tphysicalAbilityPanel.add(temporaryDexterityModifierLabel);\n\n\t\t\t\tphysicalAbilityPanel.add(constitutionLabel);\n\t\t\t\tphysicalAbilityPanel.add(constitutionRoll);\n\t\t\t\tphysicalAbilityPanel.add(constitutionModifierLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryConstitutionLabel);\n\t\t\t\tphysicalAbilityPanel.add(temporaryConstitutionInput);\n\t\t\t\tphysicalAbilityPanel.add(temporaryConstitutionModifierLabel);\n\n\t\t\t\tmentalAbilityPanel.add(intelligenceLabel);\n\t\t\t\tmentalAbilityPanel.add(intelligenceRoll);\n\t\t\t\tmentalAbilityPanel.add(intelligenceModifierLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryIntelligenceLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryIntelligenceInput);\n\t\t\t\tmentalAbilityPanel.add(temporaryIntelligenceModifierLabel);\n\n\t\t\t\tmentalAbilityPanel.add(wisdomLabel);\n\t\t\t\tmentalAbilityPanel.add(wisdomRoll);\n\t\t\t\tmentalAbilityPanel.add(wisdomModifierLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryWisdomLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryWisdomInput);\n\t\t\t\tmentalAbilityPanel.add(temporaryWisdomModifierLabel);\n\n\t\t\t\tmentalAbilityPanel.add(charismaLabel);\n\t\t\t\tmentalAbilityPanel.add(charismaRoll);\n\t\t\t\tmentalAbilityPanel.add(charismaModifierLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryCharismaLabel);\n\t\t\t\tmentalAbilityPanel.add(temporaryCharismaInput);\n\t\t\t\tmentalAbilityPanel.add(temporaryCharismaModifierLabel);\n\n\t\t\t\tabilityRoll();\n\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t}",
"public void act() \n {\n // Add your action code here.\n /*\n if ( pixelsMoved >= 20 )\n {\n moving = false;\n pixelsMoved = 0;\n }\n */\n if ( moving )\n {\n move(1);\n pixelsMoved++;\n \n if ( pixelsMoved >= 20 )\n {\n setMoving( false );\n }\n }\n }",
"@Subscribe\n public void onMouseMovesStage(MouseMovesStageStateChangeEvent event) {\n String icon = event.isEnabled() ? \"move_hand_on.png\" : \"move_hand.png\";\n centerAndDragMenuItem_.setIcon(IconLoader.getIcon(\n \"/org/micromanager/icons/\" + icon));\n centerAndDragMenuItem_.setSelected(event.isEnabled());\n }",
"public void fltMotors(){\n\t\tsynchStop(MMXCOMMAND_FLOAT);\n\t}",
"private void drawActions() {\n\t\tif (state.getSelectedEntity() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tAction [] actions = state.isSelectedFront() ? state.getSelectedEntity().getActions() : state.getSelectedEntity().getSwapActions();\n\t\tfor (int i = 0; i < actions.length; i++) {\n\t\t\tactions[i].render(batch, 500 + 25 * i, 800);\n\n\t\t\t// Do we draw the cursor here?\n\t\t\tif (state.getActionCursorPos() == i) {\n\t\t\t\tcursor.setPosition(500 + 25 * i, 900);\n\t\t\t\tcursor.draw(batch);\n\t\t\t}\n\t\t}\n\t}",
"protected void genericMouse(ME_ENUM me_enum, MouseEvent me) {\n// System.err.println(\"\" + me_enum);\n boolean op_in_effect = false;\n if (ui_inter == UI_INTERACTION.NONE && me_enum == ME_ENUM.PRESSED) {\n op_in_effect = true;\n if (me.getButton() == MouseEvent.BUTTON2 || pan_mode) { panOrZoom(me_enum, me); \n } else if (me.getButton() == MouseEvent.BUTTON1 && grid_mode) { gridLayout(me_enum, me);\n } else if (me.getButton() == MouseEvent.BUTTON1 && line_mode) { lineLayout(me_enum, me);\n } else if (me.getButton() == MouseEvent.BUTTON1 && circ_mode) { circleLayout(me_enum, me);\n } else { selectOrMove(me_enum,me);\n }\n } else if (ui_inter == UI_INTERACTION.NONE && me_enum == ME_ENUM.CLICKED && me.getButton() == MouseEvent.BUTTON2) { panOrZoom(me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.NONE && me_enum == ME_ENUM.CLICKED && me.getButton() == MouseEvent.BUTTON1) { selectOrMove(me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.PANNING) { panOrZoom (me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.SELECTING) { selectOrMove(me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.MOVING) { selectOrMove(me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.GRID_LAYOUT) { gridLayout (me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.LINE_LAYOUT) { lineLayout (me_enum,me); op_in_effect = true;\n } else if (ui_inter == UI_INTERACTION.CIRCLE_LAYOUT) { circleLayout(me_enum,me); op_in_effect = true;\n }\n // Capture mouse positions\n m_x = me.getX(); m_y = me.getY(); m_wx = sxToWx(m_x); m_wy = syToWy(m_y);\n // Inform the application of the entity under the mouse\n getRTParent().setEntitiesUnderMouse(underMouse(me));\n // If no operation is in effect, find the closest node and draw the labels\n RenderContext myrc = (RenderContext) rc;\n if (op_in_effect == false && myrc != null && myrc.draw_node_labels == false) {\n String new_dyn_labeler = underMouseSimple(me);\n if (dyn_labeler != null) {\n if (dyn_labeler.equals(new_dyn_labeler) == false) { dyn_labeler = new_dyn_labeler; repaint(); }\n } else if (new_dyn_labeler != null) { dyn_labeler = new_dyn_labeler; repaint(); }\n } else if (dyn_labeler != null) { dyn_labeler = null; repaint(); }\n }"
]
| [
"0.6222429",
"0.59629196",
"0.5946307",
"0.59150904",
"0.59075844",
"0.58312625",
"0.58072996",
"0.5734986",
"0.56763643",
"0.56643134",
"0.5660334",
"0.5549288",
"0.5538617",
"0.5529067",
"0.5508363",
"0.55078757",
"0.5486664",
"0.54476583",
"0.5440742",
"0.54391116",
"0.5421426",
"0.5418955",
"0.540456",
"0.5404395",
"0.5402922",
"0.5396738",
"0.5367662",
"0.5366775",
"0.5363589",
"0.53428334",
"0.5326797",
"0.532172",
"0.5303037",
"0.5302342",
"0.5301603",
"0.5290963",
"0.52675974",
"0.525068",
"0.5241452",
"0.5236623",
"0.5232164",
"0.52070427",
"0.5200566",
"0.5196523",
"0.5195139",
"0.51937735",
"0.519249",
"0.518393",
"0.5179408",
"0.51636595",
"0.51607853",
"0.5154515",
"0.5152201",
"0.5151617",
"0.5146506",
"0.5145684",
"0.5139581",
"0.5139581",
"0.5139581",
"0.5136005",
"0.5132838",
"0.5130203",
"0.5124876",
"0.51233596",
"0.51221013",
"0.5119102",
"0.51190937",
"0.5117464",
"0.5101555",
"0.50815094",
"0.50724906",
"0.5067298",
"0.50658953",
"0.5058264",
"0.5056266",
"0.5052586",
"0.5047788",
"0.50441587",
"0.50391036",
"0.5037286",
"0.50297403",
"0.50242454",
"0.50175333",
"0.5016455",
"0.5015226",
"0.50146234",
"0.5014289",
"0.50099957",
"0.50089",
"0.5000345",
"0.49898145",
"0.49883613",
"0.49862632",
"0.49861467",
"0.49812776",
"0.49811336",
"0.49806595",
"0.49803454",
"0.4979801",
"0.49764857",
"0.49745244"
]
| 0.0 | -1 |
part of plane design | public void interface1(){
noStroke();
fill(10,100);//light gray
rect(0,60,600,590);
fill(220);//gray
noStroke();
beginShape();
vertex(365,40);
vertex(600,40);
vertex(600,80);
vertex(365,80);
vertex(345,60);
endShape(CLOSE);
fill(19,70,100,100);//dark blue
rect(0,110,600,215);
rect(0,380,600,215);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Plane getPlane();",
"public void leerPlanesDietas();",
"public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}",
"public void draw_plane(Graphics g, int log_num, int i);",
"public void mark_plane(Graphics g, int log_num, int x, int y, int h);",
"public CheckPlane( Vector p, Vector n, Vector o )\n\t{\n\t\tsuper(p,n,new Color());\n\t\tsetOrientation(o);\n\t\tsetColor( new Color(0.01,0.01,0.01), new Color(0.99,0.99,0.99) );\n\t}",
"private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }",
"public String getPlaneName() {\n return PlaneName;\n }",
"long getPlaneSize();",
"public static void main( String args[] )\n {\n JFrame f = new JFrame(\"Test for AltAzController\");\n f.setBounds(0,0,200,200);\n AltAzController controller = new AltAzController();\n// controller.setVirtualScreenSize( 2, 2 );\n f.getContentPane().add( controller );\n f.setVisible( true );\n\n\n JFrame window = new JFrame(\"Test for AltAzController\");\n window.setBounds(20,20,500,500);\n ThreeD_JPanel test = new ThreeD_JPanel();\n window.getContentPane().add( test );\n window.setVisible( true );\n\n controller.addControlledPanel( test );\n IThreeD_Object objs[] = new IThreeD_Object[6];\n Vector3D pts[] = new Vector3D[6];\n pts[0] = new Vector3D( -1, 1, 0 );\n pts[1] = new Vector3D( 1, 1, 0 );\n pts[2] = new Vector3D( 1, 1, 1 );\n pts[3] = new Vector3D( 1, 1, 0 );\n pts[4] = new Vector3D( 1, -1, 0 );\n pts[5] = new Vector3D( -1, -1, 0 );\n objs[0] = new Polyline( pts, Color.CYAN );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 1, 0, 0 );\n objs[1] = new Polyline( pts, Color.RED );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 0, 1, 0 );\n objs[2] = new Polyline( pts, Color.GREEN );\n\n pts = new Vector3D[2];\n pts[0] = new Vector3D( 0, 0, 0 );\n pts[1] = new Vector3D( 0, 0, 1 );\n objs[3] = new Polyline( pts, Color.BLUE );\n\n Vector3D center = new Vector3D( -1, -1, 1 );\n Vector3D x_vec = new Vector3D( -1, 1, 0 );\n Vector3D y_vec = new Vector3D( 0, 0, 1 );\n float width = 3;\n float height = 2;\n Color[][] colors = { { Color.RED, Color.GREEN, Color.BLUE },\n { Color.YELLOW, Color.CYAN, Color.MAGENTA },\n { Color.ORANGE, Color.GRAY, Color.WHITE } };\n\n ImageRectangle1 im_rect = new ImageRectangle1( center,\n x_vec,\n y_vec,\n width,\n height,\n colors );\n objs[4] = im_rect;\n\n\n center = new Vector3D( 1, 1, 1 );\n y_vec = new Vector3D( 1, 1, 0 );\n x_vec = new Vector3D( 1, -1, 0 );\n width = 2;\n height = 4;\n Color[][] colors_2 = { { Color.RED, Color.GREEN, Color.BLUE },\n { Color.YELLOW, Color.CYAN, Color.MAGENTA } };\n\n ImageRectangle1 im_rect_2 = new ImageRectangle1( center,\n x_vec,\n y_vec,\n width,\n height,\n colors_2 );\n objs[5] = im_rect_2;\n\n\n test.setObjects( \"SAMPLE_OBJECTS\", objs );\n\n controller.apply( true );\n }",
"boolean hasPlaneValue();",
"public double getPlaneX()\n {\n return planeX;\n }",
"godot.wire.Wire.Plane getPlaneValue();",
"PlaneSubset(final Plane plane) {\n this.plane = plane;\n }",
"public static vtkPlaneCollection computeClippingPlane(Canvas canvas, Point pressPosition, Point releasePosition)\n\t{\n\t\tvtkRenderer render = canvas.GetRenderer();\n\t\tvtkPlaneCollection planes = new vtkPlaneCollection();\n\t\tvtkPlane plane = null;\n\t\tdouble[] p1;\n\t\tdouble[] p2;\n\t\tdouble[] p3;\n\n\t\t/**\n\t\t * These are the two points in the screen that define the different clipping planes\n\t\t */\n\t\tint[][] pos1 =\n\t\t{\n\t\t\t{\n\t\t\t\tpressPosition.x, pressPosition.y\n\t\t\t}, // Left plane\n\n\t\t\t{\n\t\t\t\treleasePosition.x, pressPosition.y\n\t\t\t}, // Top plane\n\n\t\t\t{\n\t\t\t\treleasePosition.x, releasePosition.y\n\t\t\t}, // Right plane\n\n\t\t\t{\n\t\t\t\tpressPosition.x, releasePosition.y\n\t\t\t} // Bottom plane\n\n\t\t};\n\t\tint[][] pos2 =\n\t\t{\n\t\t\t{\n\t\t\t\tpressPosition.x, releasePosition.y\n\t\t\t},\n\t\t\t{\n\t\t\t\tpressPosition.x, pressPosition.y\n\t\t\t},\n\t\t\t{\n\t\t\t\treleasePosition.x, pressPosition.y\n\t\t\t},\n\t\t\t{\n\t\t\t\treleasePosition.x, releasePosition.y\n\t\t\t}\n\t\t};\n\n\t\tfor (int i = 0; i < 4; ++i)\n\t\t{\n\t\t\tplane = new vtkPlane();\n\t\t\trender.SetDisplayPoint(pos1[i][0], pos1[i][1], 0.);\n\t\t\trender.DisplayToWorld();\n\t\t\tp1 = render.GetWorldPoint();\n\t\t\trender.SetDisplayPoint(pos1[i][0], pos1[i][1], 1.);\n\t\t\trender.DisplayToWorld();\n\t\t\tp2 = render.GetWorldPoint();\n\t\t\trender.SetDisplayPoint(pos2[i][0], pos2[i][1], 1.);\n\t\t\trender.DisplayToWorld();\n\t\t\tp3 = render.GetWorldPoint();\n\n\t\t\t// Compute two vectors of the plane\n\t\t\tVector3d v1 = new Vector3d();\n\t\t\tVector3d v2 = new Vector3d();\n\t\t\tVector3d n = new Vector3d();\n\n\t\t\tv1.set(p2);\n\t\t\tv2.set(p1);\n\t\t\tn.set(p3);\n\t\t\tv1.sub(v2);\n\t\t\tv2.sub(n);\n\n\t\t\t// Compute cross product (the normal of the plane) between p1 and p2\n\t\t\tn.cross(v1, v2);\n\t\t\tn.normalize();\n\n\t\t\tplane.SetNormal(n.x, n.y, n.z);\n\t\t\tplane.SetOrigin(p1);\n\t\t\tplanes.AddItem(plane);\n\t\t}\n\t\t\n\t\treturn planes;\n\t}",
"public void setPlanes(ArrayList planes) {\n this.planes = planes;\n }",
"@java.lang.Override\n public boolean hasPlaneValue() {\n return typeCase_ == 10;\n }",
"public void toCollectionPlane()\r\n {\r\n System.out.println(\"toCollectionPlane\");\r\n setManual(false);\r\n if (motorJ1.getCurrentPosition() > initialCollectionPosJ1)\r\n {\r\n j1Power = -J1_POWER;\r\n }\r\n else if (motorJ1.getCurrentPosition() < initialCollectionPosJ1)\r\n {\r\n j1Power = J1_POWER;\r\n }\r\n\r\n if (motorJ2.getCurrentPosition() > initialCollectionPosJ2)\r\n {\r\n j2Power = -J2_POWER;\r\n }\r\n else if (motorJ2.getCurrentPosition() < initialCollectionPosJ2)\r\n {\r\n j2Power = J2_POWER;\r\n }\r\n\r\n if (motorJ3.getCurrentPosition() > initialCollectionPosJ3)\r\n {\r\n j3Power = -UP_POWER_J3;\r\n }\r\n else if (motorJ3.getCurrentPosition() < initialCollectionPosJ3)\r\n {\r\n j3Power = UP_POWER_J3;\r\n }\r\n toPosition(j1Power, j2Power, j3Power, initialCollectionPosJ1, initialCollectionPosJ2, initialCollectionPosJ3);\r\n setIsCollectionPlane(true);\r\n j1Power = 0;\r\n j2Power = 0;\r\n j3Power = 0;\r\n }",
"@java.lang.Override\n public boolean hasPlaneValue() {\n return typeCase_ == 10;\n }",
"Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }",
"public Plane(Point spawnPoint, boolean flyingHorizontally, Level parentLevel){\n // Initialize the variables for the plane\n this.flyingHorizontally = flyingHorizontally;\n this.drawOps = new DrawOptions();\n this.planeImage = new Image(\"res/images/airsupport.png\");\n this.parentLevel = parentLevel;\n this.isFinished = false;\n this.bombs = new ArrayList<>();\n\n // Initialize the timekeeper that will control when a bomb should be dropped\n // '1' is added to the RNG here as the upper bound is not inclusive\n int initialDropTime = ThreadLocalRandom.current().nextInt(DROP_TIME_LOWER_BOUND,DROP_TIME_UPPER_BOUND + 1);\n this.bombDropper = new Timekeeper(initialDropTime);\n this.justDropped = false;\n // The Plane can either fly horizontally or vertically, which is specified in its constructor\n if (flyingHorizontally){\n // Set the plane facing to the right, at the leftmost point of the window and at the correct\n // height given by the spawn position\n this.currPos = new Point(0, spawnPoint.y);\n this.drawOps.setRotation(Math.PI/2);\n this.flyingHorizontally = true;\n }\n else {\n // Set the plane facing downward, at the top of the window and at the correct\n // x co-ordinate given by the spawn position\n this.currPos = new Point(spawnPoint.x, 0);\n this.drawOps.setRotation(Math.PI);\n this.flyingHorizontally = false;\n }\n }",
"public Plane[] getPlane_List() {\r\n\t\treturn Plane_List;\r\n\t}",
"Builder(final Plane plane) {\n this.plane = plane;\n }",
"@Test\n public void Constructor_test() \n {\n // ============ Equivalence Partitions Tests ==============\n\n // TC01: creating the Plane: x + y + z = 1 with the constructor\n\t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC02: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // =============== Boundary Values Tests ==================\n \n // TC03: creating the Plane: z = 0 with the constructor\n \t // that get 3 Point3D that contain in the Plane\n try \n {\n new Plane(new Point3D(1,0,0), new Point3D(0,1,0), new Point3D(2,3,0));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n \n // TC04: creating the Plane: x + y + z = 1 with the constructor\n \t // that get Point3D that contain in the Plane and Vector- the normal of the Plane.\n try \n {\n new Plane(new Point3D(1,0,0), new Vector(0,0,1));\n } \n catch (IllegalArgumentException e) \n {\n fail(\"Failed constructing a correct Plane\");\n }\n }",
"private HyperplaneSubsets() {\n }",
"public PaperAirplane (int x, int y)\n\t{\n\t\tsuper (x, y);\t//Superclass called to set x and y\n\t\t\n\t\txPoints = new int [3];\t//sets xPoints to have 3 elements\n\t\tyPoints = new int [3];\t//sets yPoints to have 3 elements\n\t\t\n\t\t//Using the getX_Pos () set in the superclass, the following sets the\n\t\t//xDimensions.\n\t\txDimension1 = getX_Pos () - 23;\n\t\txDimension2 = getX_Pos () - 18;\n\t\txDimension3 = getX_Pos () + 22;\n\t\t\n\t\t//Using the getY_Pos () set in the superclass, the following sets the\n\t\t//yDimensions.\n\t\tyDimension1 = getY_Pos() - 2;\n\t\tyDimension2 = getY_Pos() - 17;\n\t\tyDimension3 = getY_Pos() + 5;\n\t\t\n\t\t//The following sets the same dimensions from above, but these never\n\t\t//change and can be used for reconstruction\n\t\trXD1 = getX_Pos () - 23;\n\t\trXD2 = getX_Pos () - 18;\n\t\trXD3 = getX_Pos () + 22;\n\t\trYD1 = getY_Pos() - 2;\n\t\trYD2 = getY_Pos() - 17;\n\t\trYD3 = getY_Pos() + 5;\n\t}",
"protected final void resetClipPlanes()\n {\n // set the point for each plane to the viewer position\n Vector3d loc = myPosition.getLocation();\n myLeftClip.setPoint(loc);\n myRightClip.setPoint(loc);\n myBottomClip.setPoint(loc);\n myTopClip.setPoint(loc);\n myRightClip.setNormal(myPosition.getRight().rotate(myPosition.getUp(), Math.PI - myHalfFOVx));\n myLeftClip.setNormal(myPosition.getRight().rotate(myPosition.getUp(), myHalfFOVx));\n myBottomClip.setNormal(myPosition.getUp().rotate(myPosition.getRight(), -myHalfFOVy));\n // Increase the top clip a bit to account for zoomed in with terrain.\n myTopClip.setNormal(myPosition.getUp().rotate(myPosition.getRight(), myHalfFOVy - Math.PI + ourTopClipIncreaseAngle));\n }",
"public Plane(double a, double b, double c, double d) {\n this.a = a;\n this.b = b;\n this.c = c;\n this.d = d;\n }",
"static Vector4d computePlane(Vector3d a, Vector3d b, Vector3d c)\n\t{\n\t\tVector4d plane = new Vector4d();\n\t\t\n\t\tVector3d ab = new Vector3d();\n\t\tab.sub(b, a);\n\t\t\n\t\tVector3d ac = new Vector3d();\n\t\tac.sub(c, a);\n\t\t\n\t\tVector3d n = new Vector3d();\n\t\tn.cross(ab, ac);\n\t\tn.normalize();\n\t\t\n\t\tplane.set(n);\n\t\tplane.w = - a.dot(n);\n\t\t\n\t\treturn plane;\n\t}",
"public Plane(Point origin, Vector normal) {\n\t\tthis(origin, normal, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}",
"private float[] calculatePlaneTransform(double[] point, double normal[],\n float[] openGlTdepth) {\n // Vector aligned to gravity.\n float[] openGlUp = new float[]{0, 1, 0, 0};\n float[] depthTOpenGl = new float[16];\n Matrix.invertM(depthTOpenGl, 0, openGlTdepth, 0);\n\n float[] depthUp = new float[4];\n Matrix.multiplyMV(depthUp, 0, depthTOpenGl, 0, openGlUp, 0);\n\n // Create the plane matrix transform in depth frame from a point,\n // the plane normal and the up vector.\n float[] depthTplane = matrixFromPointNormalUp(point, normal, depthUp);\n float[] openGlTplane = new float[16];\n Matrix.multiplyMM(openGlTplane, 0, openGlTdepth, 0, depthTplane, 0);\n\n return openGlTplane;\n }",
"public AdsbPlane(int icao) {\r\n\t\tmIcao = icao;\r\n\t\tmCprs[0] = new CprRec();\r\n\t\tmCprs[1] = new CprRec();\r\n\t}",
"@Override\n \t\t\t\tpublic void doModelPerspective() {\n \n \t\t\t\t}",
"public static void test10(World w){\n\t\tUtilities.generateGeometry2(w.points ,w.pivots, \"Front.png\", \"Side.png\", 1900, 2500, 0, 0, 1/7.0);\r\n\t\t\r\n\t}",
"@Override\n \t\t\t\tpublic void doWorldPerspective() {\n \n \t\t\t\t}",
"public Plane(Point origin, Vector normal, Color c) {\n\t\tthis.origin = origin;\n\t\tthis.normal = normal;\n\n\t\tthis.c = c;\n\t}",
"private Plane(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public void setPlanes(List<Plan> planes) {\n\t\tthis.planes = planes;\n\t}",
"public static void main(String[] args) {\n\t\tJFrame myFrame = new JFrame(\"Plane Control\");\n\t\tmyFrame.setSize(650, 600);\n\t\tmyFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// Creating widgets\n\t\tJSlider jsCentreStick = new JSlider(JSlider.HORIZONTAL, 0, 10, 5); // min\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// max\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// parameters\n\t\tJSlider jsThrottle = new JSlider(JSlider.VERTICAL, 0, 10, 0);\n\t\tJButton jbReset = new JButton(\"Reset\");\n\t\tJTextArea jtArea = new JTextArea();\n\n\t\t// Automatically scrolls down\n\t\tDefaultCaret caret = (DefaultCaret) jtArea.getCaret();\n\t\tcaret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);\n\t\tJScrollPane scroll = new JScrollPane(jtArea);\n\t\tmyFrame.setLayout(new GridLayout(2, 1));\n\t\tmyFrame.add(scroll);\n\n\t\t// Creates panel, sets layout and adds widgets to south panel\n\t\tJPanel jpSouth = new JPanel();\n\t\tjpSouth.setLayout(new BorderLayout());\n\t\tjpSouth.add(jsCentreStick, BorderLayout.NORTH);\n\t\tjpSouth.add(jsThrottle, BorderLayout.CENTER);\n\t\tjpSouth.add(jbReset, BorderLayout.SOUTH);\n\n\t\t// adds panel to frame\n\t\tmyFrame.add(jpSouth);\n\n\t\t// Creates an aeroplane and the initial x and y value is from the\n\t\t// throttle and centrestick\n\t\tAeroplane plane = new Aeroplane(0, jsCentreStick.getValue(),\n\t\t\t\tjsThrottle.getValue(), 0, 0);\n\n\t\t// Creates an inner class\n\t\tjsCentreStick.addChangeListener(new ChangeListener() {\n\t\t\t/*\n\t\t\t * updates planes x value with the centresticks value on the GUI\n\t\t\t */\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tplane.setX(jsCentreStick.getValue());\n\t\t\t}\n\t\t});\n\t\t// Creates an inner class\n\t\tjsThrottle.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\t/*\n\t\t\t\t * updates planes speed value with the throttle value on the GUI\n\t\t\t\t */\n\t\t\t\tplane.setSpeed(jsThrottle.getValue());\n\t\t\t}\n\t\t});\n\t\t// allows the user to see the GUI\n\t\tmyFrame.setVisible(true);\n\n\t\twhile (plane.onRunway()) {\n\t\t\ttry {\n\t\t\t\t// print message of plane details\n\t\t\t\tjtArea.append(\"Seconds: \" + plane.getCurrentTime() + \" \\n\"\n\t\t\t\t\t\t+ \"X: \" + plane.getX() + \" Y: \" + plane.getY()\n\t\t\t\t\t\t+ \" Speed: \" + plane.getSpeed() + \" Elevation: \"\n\t\t\t\t\t\t+ plane.updateElevation() + \"\\n\");\n\t\t\t\t// 1 second pause and adds 1 second\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tplane.setCurrentTime(plane.getCurrentTime() + 1);\n\t\t\t\t// checks if plane's elevation is greater than 4 and x value is\n\t\t\t\t// 5\n\t\t\t\tif (plane.getElevation() > 4 && plane.getX() == 5) {\n\t\t\t\t\tjtArea.append(\"Plane has taken off! \\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t\t// checks if the plane is not on the runway\n\t\tif (!plane.onRunway()) {\n\t\t\tjtArea.append(\"Take off failed!\");\n\t\t}\n\n\t}",
"public void createPlane(Group planeGroup, String id, float latitude, float longitude, float angle, PhongMaterial material, double scale) {\n // Load geometry\n ObjModelImporter planeImporter = new ObjModelImporter();\n try {\n URL modelUrl = getClass().getResource(\"/flightlive/res/Plane/plane.obj\");\n planeImporter.read(modelUrl);\n } catch(ImportException e) {\n System.err.println(e.getMessage());\n }\n MeshView[] planeMeshViews = planeImporter.getImport();\n\n // Setting the material\n for (MeshView mv : planeMeshViews)\n mv.setMaterial(material);\n\n Fx3DGroup planeScale = new Fx3DGroup(planeMeshViews);\n Fx3DGroup planeOffset = new Fx3DGroup(planeScale);\n Fx3DGroup plane = new Fx3DGroup(planeOffset);\n\n Point3D position = geoCoordTo3dCoord(latitude, longitude);\n // Transformations on the object\n planeScale.set3DScale(0.015);\n planeOffset.set3DTranslate(0, -0.01, 0);\n planeOffset.set3DRotate(0, 180 + angle, 0);\n\n plane.set3DTranslate(position.getX(),position.getY(),position.getZ());\n plane.set3DRotate(\n -java.lang.Math.toDegrees(java.lang.Math.asin(position.getY())) - 90,\n java.lang.Math.toDegrees(java.lang.Math.atan2(position.getX(), position.getZ())),\n 0);\n plane.set3DScale(scale);\n plane.setId(id);\n\n planeGroup.getChildren().add(plane);\n }",
"public AABB a(World paramaqu, BlockPosition paramdt, Block parambec, float paramFloat, EnumDirection paramej)\r\n/* 147: */ {\r\n/* 148:175 */ if ((parambec.getType() == this) || (parambec.getType().getMaterial() == Material.air)) {\r\n/* 149:176 */ return null;\r\n/* 150: */ }\r\n/* 151:178 */ AABB localbrt = parambec.getType().a(paramaqu, paramdt, parambec);\r\n/* 152:180 */ if (localbrt == null) {\r\n/* 153:181 */ return null;\r\n/* 154: */ }\r\n/* 155:184 */ double d1 = localbrt.minX;\r\n/* 156:185 */ double d2 = localbrt.minY;\r\n/* 157:186 */ double d3 = localbrt.minZ;\r\n/* 158:187 */ double d4 = localbrt.maxX;\r\n/* 159:188 */ double d5 = localbrt.maxY;\r\n/* 160:189 */ double d6 = localbrt.maxZ;\r\n/* 161:192 */ if (paramej.g() < 0) {\r\n/* 162:193 */ d1 -= paramej.g() * paramFloat;\r\n/* 163: */ } else {\r\n/* 164:195 */ d4 -= paramej.g() * paramFloat;\r\n/* 165: */ }\r\n/* 166:197 */ if (paramej.h() < 0) {\r\n/* 167:198 */ d2 -= paramej.h() * paramFloat;\r\n/* 168: */ } else {\r\n/* 169:200 */ d5 -= paramej.h() * paramFloat;\r\n/* 170: */ }\r\n/* 171:202 */ if (paramej.i() < 0) {\r\n/* 172:203 */ d3 -= paramej.i() * paramFloat;\r\n/* 173: */ } else {\r\n/* 174:205 */ d6 -= paramej.i() * paramFloat;\r\n/* 175: */ }\r\n/* 176:207 */ return new AABB(d1, d2, d3, d4, d5, d6);\r\n/* 177: */ }",
"@Override\n public void buildWorldObject() {\n setPoint(new Point3d());\n\n List<Point2d> pointList = new ArrayList<Point2d>();\n\n for (int i = 0; i < way.getNodesCount(); i++) {\n Node node = way.getNode(i);\n pointList.add(perspective.calcPoint(node));\n }\n\n list = pointList;\n\n roadWidth = (float) DEFAULT_ROAD_WIDTH;\n\n roadWidth = getRoadWidth();\n\n TextureData texture = getTexture();\n\n Material m = MaterialFactory.createTextureMaterial(texture.getFile());\n\n ModelFactory modelBuilder = ModelFactory.modelBuilder();\n\n int mi = modelBuilder.addMaterial(m);\n\n MeshFactory meshWalls = modelBuilder.addMesh(\"road\");\n\n meshWalls.materialID = mi;\n meshWalls.hasTexture = true;\n\n if (list.size() > 1) {\n\n FaceFactory leftBorder = meshWalls.addFace(FaceType.QUAD_STRIP);\n FaceFactory leftPart = meshWalls.addFace(FaceType.QUAD_STRIP);\n FaceFactory rightBorder = meshWalls.addFace(FaceType.QUAD_STRIP);\n FaceFactory rightPart = meshWalls.addFace(FaceType.QUAD_STRIP);\n\n Vector3d flatSurface = new Vector3d(0, 1, 0);\n\n int flatNormalI = meshWalls.addNormal(flatSurface);\n\n Point2d beginPoint = list.get(0);\n for (int i = 1; i < list.size(); i++) {\n Point2d endPoint = list.get(i);\n\n double x = endPoint.x - beginPoint.x;\n double y = endPoint.y - beginPoint.y;\n // calc lenght of road segment\n double mod = Math.sqrt(x * x + y * y);\n\n double distance = beginPoint.distance(endPoint);\n\n // calc orthogonal for road segment\n double orthX = x * cos90 + y * sin90;\n double orthY = -x * sin90 + y * cos90;\n\n // calc vector for road width;\n double normX = roadWidth / 2 * orthX / mod;\n double normY = roadWidth / 2 * orthY / mod;\n // calc vector for border width;\n double borderX = normX + 0.2 * orthX / mod;\n double borderY = normY + 0.2 * orthY / mod;\n\n double uEnd = distance / texture.getLenght();\n\n // left border\n int tcb1 = meshWalls.addTextCoord(new TextCoord(0, 0.99999d));\n // left part of road\n int tcb2 = meshWalls.addTextCoord(new TextCoord(0, 1 - 0.10d));\n // Middle part of road\n int tcb3 = meshWalls.addTextCoord(new TextCoord(0, 0.00001d));\n // right part of road\n int tcb4 = meshWalls.addTextCoord(new TextCoord(0, 1 - 0.10d));\n // right border\n int tcb5 = meshWalls.addTextCoord(new TextCoord(0, 0.99999d));\n\n // left border\n int tce1 = meshWalls.addTextCoord(new TextCoord(uEnd, 0.99999d));\n // left part of road\n int tce2 = meshWalls.addTextCoord(new TextCoord(uEnd, 1 - 0.10d));\n // Middle part of road\n int tce3 = meshWalls.addTextCoord(new TextCoord(uEnd, 0.00001d));\n // right part of road\n int tce4 = meshWalls.addTextCoord(new TextCoord(uEnd, 1 - 0.10d));\n // right border\n int tce5 = meshWalls.addTextCoord(new TextCoord(uEnd, 0.99999d));\n\n // left border\n int wbi1 = meshWalls.addVertex(new Point3d(beginPoint.x + borderX, 0.0d, -(beginPoint.y + borderY)));\n // left part of road\n int wbi2 = meshWalls.addVertex(new Point3d(beginPoint.x + normX, 0.1d, -(beginPoint.y + normY)));\n // middle part of road\n int wbi3 = meshWalls.addVertex(new Point3d(beginPoint.x, 0.15d, -beginPoint.y));\n // right part of road\n int wbi4 = meshWalls.addVertex(new Point3d(beginPoint.x - normX, 0.1d, -(beginPoint.y - normY)));\n // right border\n int wbi5 = meshWalls.addVertex(new Point3d(beginPoint.x - borderX, 0.0d, -(beginPoint.y - borderY)));\n\n // left border\n int wei1 = meshWalls.addVertex(new Point3d(endPoint.x + borderX, 0.0d, -(endPoint.y + borderY)));\n // left part of road\n int wei2 = meshWalls.addVertex(new Point3d(endPoint.x + normX, 0.1d, -(endPoint.y + normY)));\n // middle part of road\n int wei3 = meshWalls.addVertex(new Point3d(endPoint.x, 0.15d, -endPoint.y));\n // right part of road\n int wei4 = meshWalls.addVertex(new Point3d(endPoint.x - normX, 0.1d, -(endPoint.y - normY)));\n // right border\n int wei5 = meshWalls.addVertex(new Point3d(endPoint.x - borderX, 0.0d, -(endPoint.y - borderY)));\n\n leftBorder.addVert(wbi1, tcb1, flatNormalI);\n leftBorder.addVert(wbi2, tcb2, flatNormalI);\n leftBorder.addVert(wei1, tce1, flatNormalI);\n leftBorder.addVert(wei2, tce2, flatNormalI);\n\n leftPart.addVert(wbi2, tcb2, flatNormalI);\n leftPart.addVert(wbi3, tcb3, flatNormalI);\n leftPart.addVert(wei2, tce2, flatNormalI);\n leftPart.addVert(wei3, tce3, flatNormalI);\n\n rightBorder.addVert(wbi3, tcb3, flatNormalI);\n rightBorder.addVert(wbi4, tcb4, flatNormalI);\n rightBorder.addVert(wei3, tce3, flatNormalI);\n rightBorder.addVert(wei4, tce4, flatNormalI);\n\n rightPart.addVert(wbi4, tcb4, flatNormalI);\n rightPart.addVert(wbi5, tcb5, flatNormalI);\n rightPart.addVert(wei4, tce4, flatNormalI);\n rightPart.addVert(wei5, tce5, flatNormalI);\n\n beginPoint = endPoint;\n }\n }\n\n model = modelBuilder.toModel();\n model.setUseLight(true);\n model.setUseTexture(true);\n\n buildModel = true;\n }",
"@java.lang.Override\n public godot.wire.Wire.Plane getPlaneValue() {\n if (typeCase_ == 10) {\n return (godot.wire.Wire.Plane) type_;\n }\n return godot.wire.Wire.Plane.getDefaultInstance();\n }",
"void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}",
"@SuppressWarnings(\"unused\")\r\n private void JCATsegmentVisceralFat2D01() {\r\n \r\n // get the VOI for the external boundary of the abdomen\r\n VOIVector vois = abdomenImage.getVOIs();\r\n if(vois.size() != 1) {\r\n System.err.println(\"segmentVisceralFat2D() Error, did not get 1 VOI\");\r\n return;\r\n }\r\n\r\n // abdomenImage has one VOI, lets get it\r\n VOI theVOI = vois.get(0);\r\n \r\n // find the center-of-mass of the contour\r\n VOIContour maxContour = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals = new int [maxContour.size()];\r\n int[] yVals = new int [maxContour.size()];\r\n int[] zVals = new int [maxContour.size()];\r\n maxContour.exportArrays(xVals, yVals, zVals);\r\n \r\n int xcm = 0, ycm = 0, zcm = 0;\r\n for (int idx = 0; idx < maxContour.size(); idx++) {\r\n xcm += xVals[idx];\r\n ycm += yVals[idx];\r\n zcm += zVals[idx];\r\n }\r\n \r\n xcm /= maxContour.size();\r\n ycm /= maxContour.size();\r\n zcm /= maxContour.size();\r\n \r\n ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm +\" Zcm: \" +zcm+\"\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n // This point should be inside the abdomen\r\n // walk right until you find the external border of the abdomen\r\n \r\n // update the volumeBitSet to match the closed abdomenImage\r\n short[] srcSliceBuffer = new short[sliceSize];\r\n short[] profile = new short[xDim];\r\n try {\r\n abdomenImage.exportData(0, sliceSize, sliceBuffer);\r\n srcImage.exportData(0, sliceSize, srcSliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"Error exporting data\");\r\n return;\r\n }\r\n\r\n int x = xcm;\r\n int elementCount = 0;\r\n int yOffset = ycm * xDim;\r\n while (x < xDim && sliceBuffer[x + yOffset] == abdomenTissueLabel) {\r\n profile[elementCount] = srcSliceBuffer[x + yOffset];\r\n x++;\r\n elementCount++;\r\n } // end while(...)\r\n \r\n // profile has an intensity profile of the pixels along the ray from the \r\n // contour CM to the external skin boundary. \r\n \r\n \r\n }",
"@java.lang.Override\n public godot.wire.Wire.Plane getPlaneValue() {\n if (planeValueBuilder_ == null) {\n if (typeCase_ == 10) {\n return (godot.wire.Wire.Plane) type_;\n }\n return godot.wire.Wire.Plane.getDefaultInstance();\n } else {\n if (typeCase_ == 10) {\n return planeValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Plane.getDefaultInstance();\n }\n }",
"public Airplane(){\n\t\tsuper(106, 111);\n\t\tspeed = Math.random() + 2.0;\n\t}",
"private void createLayers() {\n mAktieCubeLayers[kUp] = new AktieCubeLayer(AktieCubeLayer.kAxisY);\n mAktieCubeLayers[kDown] = new AktieCubeLayer(AktieCubeLayer.kAxisY);\n mAktieCubeLayers[kLeft] = new AktieCubeLayer(AktieCubeLayer.kAxisX);\n mAktieCubeLayers[kRight] = new AktieCubeLayer(AktieCubeLayer.kAxisX);\n mAktieCubeLayers[kFront] = new AktieCubeLayer(AktieCubeLayer.kAxisZ);\n mAktieCubeLayers[kBack] = new AktieCubeLayer(AktieCubeLayer.kAxisZ);\n mAktieCubeLayers[kMiddle] = new AktieCubeLayer(AktieCubeLayer.kAxisX);\n mAktieCubeLayers[kEquator] = new AktieCubeLayer(AktieCubeLayer.kAxisY);\n mAktieCubeLayers[kSide] = new AktieCubeLayer(AktieCubeLayer.kAxisZ);\n }",
"public void draw() {\n PImage grid = loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/tile.png\");\n for(int i = 0 ; i < 10 ; i++){\n for(int j = 0 ; j < 6 ; j++){\n image(grid, i*grid.width, j*grid.height);\n if(gridPlane.get(List.of(i, j)).getOwner() != null){\n if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Red\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red3.png\"), i*grid.width, j*grid.height);\n }\n }else if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Green\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green3.png\"), i*grid.width, j*grid.height);\n }\n }\n }\n }\n }\n if(this.finish == true){\n System.exit(0);\n }\n }",
"public static void main(String[] args) {\n\t\tplanes.initialize();\n\t\tplanes.percent();\n\t}",
"@java.lang.Override\n public godot.wire.Wire.PlaneOrBuilder getPlaneValueOrBuilder() {\n if (typeCase_ == 10) {\n return (godot.wire.Wire.Plane) type_;\n }\n return godot.wire.Wire.Plane.getDefaultInstance();\n }",
"public Plane(double in, boolean isD) {\n\t\tisFlying = isD;\n\t\tinQ = in;\n\t}",
"private void generatePrism() {\n\t\tdouble halfAltitude = Math.sin(Math.PI / 3); // The cross-section is an equilateral triangle with sides of length 2 units. The altitude is the height of the triangle with one edge horizontal\n\t\tverts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)};\n\t\tverts[0].setElements(new double[] {-1, -halfAltitude, -1});\n\t\tverts[1].setElements(new double[] {0, halfAltitude, -1});\n\t\tverts[2].setElements(new double[] {1, -halfAltitude, -1});\n\t\t// Use the same triangle of vertices but offset by 2 units along the z-axis\n\t\tverts[3].setElements(verts[0]);\n\t\tverts[4].setElements(verts[1]);\n\t\tverts[5].setElements(verts[2]);\n\t\tverts[3].setElement(2, 1);\n\t\tverts[4].setElement(2, 1);\n\t\tverts[5].setElement(2, 1);\n\t\t\n\t\tfaces = new int[][] {{0, 1, 2}, {0, 5, 3}, {0, 2, 5}, {0, 3, 4}, {0, 4, 1}, {1, 4, 5}, {1, 5, 2}, {3, 5, 4}};\n\t}",
"public void\n doExtraInformation(Ray inRay, double inT, \n GeometryIntersectionInformation outData) {\n outData.p = lastInfo.p;\n\n switch ( lastPlane ) {\n case 1:\n outData.n.x = 0;\n outData.n.y = 0;\n outData.n.z = 1;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = 1-(outData.p.x / size.x - 0.5);\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 2:\n outData.n.x = 0;\n outData.n.y = 0;\n outData.n.z = -1;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = outData.p.x / size.x - 0.5;\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 3:\n outData.n.x = 0;\n outData.n.z = 0;\n outData.n.y = 1;\n outData.u = 1-(outData.p.x / size.x - 0.5);\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = -1;\n outData.t.y = 0;\n outData.t.z = 0;\n break;\n case 4:\n outData.n.x = 0;\n outData.n.z = 0;\n outData.n.y = -1;\n outData.u = outData.p.x / size.x - 0.5;\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 1;\n outData.t.y = 0;\n outData.t.z = 0;\n break;\n case 5:\n outData.n.x = 1;\n outData.n.y = 0;\n outData.n.z = 0;\n outData.u = outData.p.y / size.y - 0.5;\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 0;\n outData.t.y = 1;\n outData.t.z = 0;\n break;\n case 6:\n outData.n.x = -1;\n outData.n.y = 0;\n outData.n.z = 0;\n outData.u = 1-(outData.p.y / size.y - 0.5);\n outData.v = outData.p.z / size.z - 0.5;\n outData.t.x = 0;\n outData.t.y = -1;\n outData.t.z = 0;\n break;\n default:\n outData.u = 0;\n outData.v = 0;\n break;\n }\n }",
"@java.lang.Override\n public godot.wire.Wire.PlaneOrBuilder getPlaneValueOrBuilder() {\n if ((typeCase_ == 10) && (planeValueBuilder_ != null)) {\n return planeValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 10) {\n return (godot.wire.Wire.Plane) type_;\n }\n return godot.wire.Wire.Plane.getDefaultInstance();\n }\n }",
"public static void main(String[] args) {\n\t\tAirplane a = new Airplane(\"\",1.12f,\"\",1,1,\"\",\"\");\r\n\t\t\r\n\t\t//no flexibility with our current design\r\n\t}",
"public void PerspektivischeProjektion(){\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /*\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /*Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2]) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n //Entfernung vom 'Center of projection' zur 'Projectoin plane'\n double d=5;\n\n /*\n * Transformiert x|y|z Koordinaten in x|y Koordinaten\n * mithilfer der perspektivischen Projektion\n */\n\n A[0]=A[0]/((A[2]+d)/d);\n A[1]=A[1]/((A[2]+d)/d);\n B[0]=B[0]/((B[2]+d)/d);\n B[1]=B[1]/((B[2]+d)/d);\n C[0]=C[0]/((C[2]+d)/d);\n C[1]=C[1]/((C[2]+d)/d);\n D[0]=D[0]/((D[2]+d)/d);\n D[1]=D[1]/((D[2]+d)/d);\n\n\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax=A[0];\n ay=A[1];\n bx=B[0];\n by=B[1];\n cx=C[0];\n cy=C[1];\n dx=D[0];\n dy=D[1];\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }",
"public VisuCoordinateTranslator() {\r\n limitedDirections = new HashMap<String, Integer>();\r\n limitedCoordinates = new HashMap<String, Shape>();\r\n limitedGroundCoordinates = new HashMap<String, Float[]>();\r\n Float c[] = {22f, 2f, 8.5f, -1.7f, 0f};\r\n limitedDirections.put(\"Status_GWP01\", 0);\r\n ArrayList a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n StraightShape ss = new StraightShape(a);\r\n limitedCoordinates.put(\"0.1.0\", ss);\r\n\r\n\r\n c = new Float[]{-0.97f, 0.88f, 0f, -0.1f, 1f};\r\n limitedDirections.put(\"Status_ETKa1\", 1);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"1.1.0\", ss);\r\n\r\n limitedDirections.put(\"Status_ETKa2\", 1);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa1\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa2\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n\r\n\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n ArrayList<ArrayList<Float>> arrayOval = new ArrayList<ArrayList<Float>>();\r\n c = new Float[]{6.3f, -2f, 7.3f, -14.38f, 0f};//straight_1\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, -4.8f, 7.3f, -14.38f, 0f};//straight_2\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.072f, 0.0695f, 2.826f, -5.424f, -17.2f, 7.3f, 1f};//circular_3\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-4.8f, -2f, 7.3f, -19.715f, 0f};//straight_4\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, 6.3f, 7.3f, -19.715f, 0f};//straight_5\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.038f, 0.1032f, 2.833f, 6.567f, -17.2f, 7.3f, 1f};//circular_6\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.1302f, 0.0114f, 2.8202f, -2.0298f, -17.2f, 7.3f, 1f};//circular_7\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n \r\n c = new Float[]{0.41f, 0.48f, 0.6f, 0.67f, 0.78f, 0.92f};//partitions\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n\r\n OvalShape os = new OvalShape(arrayOval);\r\n\r\n for (int i = 2; i < 11; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n limitedCoordinates.put(\"1.\" + i + \".\" + j, os);\r\n limitedCoordinates.put(\"2.\" + i + \".\" + j, ss);\r\n }\r\n }\r\n\r\n \r\n \r\n c = new Float[]{2.0785f, -1.8972f};\r\n limitedGroundCoordinates.put(\"0.1.0\", c);\r\n c = new Float[]{-6.3859f,-0.4682f};\r\n limitedGroundCoordinates.put(\"1.1.0\", c);\r\n }",
"private void prepare()\n {\n addObject(new TempoLimite(), 432, 207);\n addObject(new NumeroVidas(), 395, 278);\n\n Cliqueparajogar clique = new Cliqueparajogar();\n addObject(clique, getWidth()/2, getHeight()/2);\n\n Som som = new Som();\n addObject(som, getWidth() - 37, getHeight()-57);\n \n umMin ummin = new umMin();\n addObject(ummin,630,206);\n\n doisMin doismin = new doisMin();\n addObject(doismin,670,206);\n \n tresMin tresmin = new tresMin();\n addObject(tresmin,710,206);\n \n quatroMin quatromin = new quatroMin();\n addObject(quatromin,750,206);\n \n cincoMin cincomin = new cincoMin();\n addObject(cincomin,790,206);\n \n umaVida umavida = new umaVida();\n addObject(umavida,630,280);\n \n duasVidas duasvidas = new duasVidas();\n addObject(duasvidas,670,280);\n \n tresVidas tresvidas = new tresVidas();\n addObject(tresvidas,710,280);\n \n quatroVidas quatrovidas = new quatroVidas();\n addObject(quatrovidas,750,280);\n \n cincoVidas cincovidas = new cincoVidas();\n addObject(cincovidas,790,280);\n \n voltaratras voltar = new voltaratras();\n addObject(voltar, getWidth() -37, 428);\n }",
"public Plane(Point a, Point b, Point c) {\n\t\tthis(a, b, c, new Color((int) (Math.random() * 256),\n\t\t\t\t(int) (Math.random() * 256), (int) (Math.random() * 256)));\n\t}",
"protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }",
"public Plane3(Plane3 p) {\n this.a = p.a; this.b = p.b; this.c = p.c; this.v = p.v; this.d = p.d;\n }",
"private void selectPlane(H5CompoundDS ds,int d1, int d2, int first) {\r\n\t\tds.clearData();\r\n\t\tlong[] selected = ds.getSelectedDims();\r\n\t\tlong[] start = ds.getStartDims();\r\n\t\tlong[] stride = ds.getStride( );\r\n\t\t//long[] d = en.getDims( );\r\n\t\t//long[] m = en.getMaxDims( );\r\n\t\tint[] selectedIndex = ds.getSelectedIndex( );\r\n\t\tArrays.fill(start, 0);\r\n\t\tArrays.fill(stride, 1);\r\n\t\tselected[0] = 1;\r\n\t\tselected[1] = d1;\r\n\t\tselected[2] = d2;\r\n\t\tstart[0] = first;\r\n\t\tselectedIndex[0] = 1;\r\n\t\tselectedIndex[1] = 2;\r\n\t\tselectedIndex[2] = 0;\r\n\t}",
"public OMETIFFPlane[][] getPlaneInfo() {\n \t\t\treturn info;\n \t\t}",
"public Pj3dPlane Pj3dPlane(int x, int z)\r\n\t{\r\n \tPj3dPlane plane = new Pj3dPlane(this, x, z);\r\n\t\treturn plane;\r\n\t}",
"public void displayInfo(){\n\t\tint planeNum=0;\n\t\t\n\t\tfor(int i=0; i<planes.size(); i++){\t// loop to know the number of planes\n\t\t\tif(planes.get(i)!=null){\n\t\t\t\tplaneNum++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tPlane[] infoBoard = new Plane[planeNum];\t// create the array that will collect all the planes\n\t\t\n\t\tint j=0;\n\t\tfor(int i=0; i<planes.size(); i++){\t\t// put the planes in the array\n\t\t\tif(planes.get(i)!=null){\n\t\t\t\tinfoBoard[j] = planes.get(i);\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\tString[][] grid = new String[17][infoBoard.length + 1];\t// new matrix\n\t\t\n\t\t//característiques a mostrar fixes\n\t\tgrid[0][0] = \"Id..................\";\n\t\tgrid[1][0] = \"License plate.......\";\n\t\tgrid[2][0] = \"Brand...............\";\n\t\tgrid[3][0] = \"Model...............\";\n\t\tgrid[4][0] = \"Capacity............\";\n\t\tgrid[5][0] = \"Type................\";\n\t\tgrid[6][0] = \"X...................\";\n\t\tgrid[7][0] = \"Y...................\";\n\t\tgrid[8][0] = \"Height..............\";\n\t\tgrid[9][0] = \"Speed...............\";\n\t\tgrid[10][0] = \"Landing gear........\";\n\t\tgrid[11][0] = \"Engine..............\";\n\t\tgrid[12][0] = \"Crew................\";\n\t\tgrid[13][0] = \"Passengers..........\";\n\t\tgrid[14][0] = \"Missiles............\";\n\t\tgrid[15][0] = \"Origin..............\";\n\t\tgrid[16][0] = \"Destination.........\";\n\t\t\n\t\t// loop to fill the plane's data\n\t\tfor(int i=0; i<infoBoard.length; i++){\n\t\t\tPlane selection = infoBoard[i]; \t// each turn will fill the data of one plane\n\t\t\t\n\t\t\tint id= i + 1;\n\t\t\t// with the getters, the information is collected\n\t\t\tgrid[0][id] = String.valueOf(id);\n\t\t\t\n\t\t\tif(selection.isEncrypted()==false){\n\t\t\t\t\n\t\t\t\tgrid[1][id] = selection.getLicensePlate();\n\t\t\t\tgrid[2][id] = selection.getBrand();\n\t\t\t\tgrid[3][id] = selection.getModel();\n\t\t\t\tgrid[4][id] = String.valueOf(selection.getCapacity());\n\t\t\t\t\n\t\t\t\tif(selection.getClass().equals(\"CommercialPlane\")){\n\t\t\t\t\tgrid[5][id] = \"Commercial\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[5][id] = \"Military\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[6][id]=String.valueOf(selection.getCoordinates().getX());\n\t\t\t\tgrid[7][id]=String.valueOf(selection.getCoordinates().getY());\n\t\t\t\tgrid[8][id]=String.valueOf(selection.getHeight());\n\t\t\t\tgrid[9][id]=String.valueOf(selection.getSpeed());\n\t\t\t\t\n\t\t\t\tif(selection.isLandingGear()==true){\n\t\t\t\t\tgrid[10][id] = \"On\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[10][id] = \"Off\";\n\t\t\t\t}\n\t\t\t\tif(selection.isEngine()==true){\n\t\t\t\t\tgrid[11][id] = \"On\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[11][id] = \"Off\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[12][id] = String.valueOf(selection.getSpeed());\n\t\t\t\t\n\t\t\t\tif(selection instanceof CommercialPlane){\n\t\t\t\t\tgrid[13][id] = String.valueOf(selection.getPassengers());\n\t\t\t\t}else{\n\t\t\t\t\tgrid[13][id] = \"No\";\n\t\t\t\t}\n\t\t\t\tif(selection instanceof CommercialPlane){\n\t\t\t\t\tgrid[14][id] = \"No\";\n\t\t\t\t}else{\n\t\t\t\t\tgrid[14][id] = String.valueOf(selection.getMissiles());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgrid[15][id]=String.valueOf(selection.getOrigin());\n\t\t\t\tgrid[16][id]=String.valueOf(selection.getDestination());\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tgrid[1][id] = \"ENCRYPTED\";\n\t\t\t\tgrid[2][id] = \"\";\n\t\t\t\tgrid[3][id] = \"\";\n\t\t\t\tgrid[4][id] = \"\";\n\t\t\t\tgrid[5][id] = \"\";\n\t\t\t\tgrid[6][id] = \"\";\n\t\t\t\tgrid[7][id] = \"\";\n\t\t\t\tgrid[8][id] = \"\";\n\t\t\t\tgrid[9][id] = \"\";\n\t\t\t\tgrid[10][id] = \"\";\n\t\t\t\tgrid[11][id] = \"\";\n\t\t\t\tgrid[12][id] = \"\";\n\t\t\t\tgrid[13][id] = \"\";\n\t\t\t\tgrid[14][id] = \"\";\n\t\t\t\tgrid[15][id] = \"\";\n\t\t\t\tgrid[16][id] = \"\";\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// each piece of data has to be in a 10 character string\n\t\tString unit = \" \";\n\t\tint stringLength = 11;\n\t\t\n\t\tfor(int a=0; a<grid.length; a++){\n\t\t\tfor(int b=1; b<grid[a].length; b++){\n\t\t\t\tint realLength = grid[a][b].length(); // current length of the string\n\t\t\t\tint spaces = stringLength - realLength;\t// spaces to fill until the 10th character\n\t\t\t\tString pack = \"\";\n\t\t\t\t\n\t\t\t\tfor(int c=0; c<=spaces; c++){\n\t\t\t\t\tpack = pack + unit;\n\t\t\t\t}\n\t\t\t\tgrid[a][b] = grid[a][b]+ pack;\t// add spaces\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// show information\n\t\tfor(int x=0; x<grid.length; x++){\n\t\t\tfor(int y=0; y<grid[x].length; y++){\n\t\t\t\tSystem.out.print(grid[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}",
"public TransformDesign() {\n tLayerPool = new TransformLayerPool();\n }",
"@Override\n public List<FreeSpace3D> segmentSpace(Box box){\n ArrayList<FreeSpace3D> newFreeSpace3DS = new ArrayList<>();\n ArrayList<Surface> newSurfaces = new ArrayList();\n if(box.getZBottom() > position.getZ())\n {\n //the bottom of physical box is a separating plane\n FreeSpace3D fs = new FreeSpace3D(width, depth, box.getZBottom() - position.getZ(), position, this.pallet, supportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n\n if(box.getZTop() < getZTop())\n {\n // the top of the physical box is a separating plane\n // determine the intersecting area\n PositionedRectangle intersectingArea = box.getTop().getHorizontalIntersection(this.getPositionedBottom());\n Surface sf = new Surface(intersectingArea);\n FreeSpace3D fs = new FreeSpace3D(width, depth,position.getZ() + height - box.getZTop(),\n new Vector3D(position.getX(), position.getY(),box.getZTop()), this.pallet, sf);\n newFreeSpace3DS.add(fs);\n }\n\n if(box.getXLeft() > getXLeft())\n {\n //the left side of physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(box.getXLeft() - getXLeft(), depth, position));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(box.getXLeft() - getXLeft(), depth, height, position, this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getXRight() < getXRight())\n {\n // the right of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(getXRight() - box.getXRight(), depth, new Vector3D(box.getXRight(), position.getY(), position.getZ())));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(getXRight() - box.getXRight(), depth,\n height, new Vector3D(box.getXRight(), position.getY(), position.getZ()), this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getYFront() > getYFront())\n {\n // the front of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(width, box.getYFront() - getYFront(), position));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(width, box.getYFront() - getYFront(), height, position, this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n if(box.getYBack() < getYBack())\n {\n // the back of the physical box is a separating plane\n ArrayList<Surface> remainingSupportingSurfaces = updateSurfaces(new PositionedRectangle(width, getYBack() - box.getYBack(), new Vector3D(position.getX(), box.getYBack(), position.getZ())));\n if(!remainingSupportingSurfaces.isEmpty()){\n FreeSpace3D fs = new FreeSpace3D(width, getYBack() - box.getYBack(),\n height, new Vector3D(position.getX(), box.getYBack(), position.getZ()), this.pallet, remainingSupportingSurfaces);\n newFreeSpace3DS.add(fs);\n }\n }\n\n return newFreeSpace3DS;\n }",
"public abstract double getSurfacearea();",
"public static void main(String[] args) {\n\t\tint x1=1, y1=1, z1=1;\n\t\tint x2=8, y2=-7, z2=1;\n\t\t//Points describing the plane\n\t\tint x3=3, y3=9, z3=0;\n\t\tint x4=-1, y4=3, z4=0;\n\t\tint x5=4, y5=5, z5=0;\n\t\t//No intersection with this co-ords\n\t\tintersect(x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4,x5,y5,z5);\n\t}",
"public void create(final ArrayList<Vertice> _vertices, final int _plane){\n\t\tsetup();\n\t\tThread t = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\tdefaultGroup = new Group(\"default\");\n\t\t\t\tdefaultSegment = new Segment();\n\n\t\t\t\tgroups.clear();\n\t\t\t\tsegments.clear();\n\t\t\t\t// adding default variables to the global data table creating the\n\t\t\t\t// default group\n\t\t\t\tgroups.put(\"default\", defaultGroup);\n\n\t\t\t\tGroup currentGroup = defaultGroup;\n\n\t\t\t\t// creating the default model segment\n\t\t\t\tsegments.add(defaultSegment);\n\n\t\t\t\tcurrentGroup.segments.add(defaultSegment);\n\n\t\t\t\tSegment currentModelSegment = defaultSegment;\n\n\t\t\t\t// this factor will determine which plan the vector will be projected to.\n\t\t\t\tfloat[] fac = new float[]{(_plane == 2)?0:1, (_plane == 1)?0:1, (_plane == 0)?0:1};\n\n\t\t\t\tfor(Vertice vertice: _vertices){\n\t\t\t\t\tVertice tmpvOrig = new Vertice(vertice);\n\t\t\t\t\tmodelVertices.add(tmpvOrig);\n\t\t\t\t\ttmpvOrig.index = modelVertices.indexOf(tmpvOrig);\n\t\t\t\t\tVertice tmpvPrj = new Vertice(vertice.x() * fac[0], vertice.y() * fac[1], vertice.z() * fac[2]);\n\t\t\t\t\ttmpvPrj.isPickable = false;\n\t\t\t\t\tmodelVertices.add(tmpvPrj);\n\t\t\t\t\ttmpvPrj.index = modelVertices.indexOf(tmpvPrj);\n\n\t\t\t\t\tFace f = new Face();\n\t\t\t\t\tf.indexType = LINE;\n\n\t\t\t\t\t// we have to add a 1 here because obj files start their indices with 1 and not with 0\n\t\t\t\t\tf.vertexIndices.add(tmpvOrig.index + 1);\n\t\t\t\t\tf.vertexIndices.add(tmpvPrj.index + 1);\n\n\t\t\t\t\tcurrentModelSegment.faces.add(f);\n\t\t\t\t}\n\t\t\t\tupdateSegments();\n\t\t\t\trefreshGeometry();\n\t\t\t\tmyContainer.dataEvent(\"fileparsed\");\n\n\t\t\t}\n\t\t};\n\t\tt.start();\n\t}",
"private static void setPlane(){\n // your code goes there\n LinearRegression linG;\n linG = new LinearRegression(2,2000);\n\n for(double i = 0; i < 1000; i+=1)\n {\n double[] pt1, pt2;\n pt1 = new double[2];\n pt2 = new double[2];\n\n pt1[0] = i;\n pt2[0] = 2.0*i;\n\n pt1[1] = 2.0*i;\n pt2[1] = i;\n\n linG.addSample(pt1,5.0*i);\n linG.addSample(pt2,4.0*i);\n }\n \n\n System.out.println(\"Current hypothesis :\" + linG.currentHypothesis());\n System.out.println(\"Current cost :\" + linG.currentCost());\n\n for(int i = 1; i <= 10; i++)\n {\n linG.gradientDescent(0.000000003,1000);\n\n System.out.println(\"Current hypothesis :\" + linG.currentHypothesis());\n System.out.println(\"Current cost :\" + linG.currentCost());\n }\n\t}",
"static float[] makeSwell(float x, float y, float z,\n float scale, float pt_size, float f0, float f1,\n float[] vx, float[] vy, float[] vz, int[] numv) {\n \n float d, xd, yd;\n float x0, y0, x1, y1, x2, y2, x3, y3, x4, y4;\n float sscale = 0.75f * scale;\n \n float[] mbarb = new float[4];\n mbarb[0] = x;\n mbarb[1] = y;\n \n float swell_height = (float) Math.sqrt(f0 * f0 + f1 * f1);\n \n int lenv = vx.length;\n int nv = numv[0];\n \n //determine the initial (minimum) length of the flag pole\n if (swell_height >= 0.1f) {\n // normalize direction\n x0 = f0 / swell_height;\n y0 = f1 / swell_height;\n \n float start_arrow = 0.9f * sscale;\n float end_arrow = 1.9f * sscale;\n float arrow_head = 0.3f * sscale;\n x1 = (x + x0 * start_arrow);\n y1 = (y + y0 * start_arrow);\n x2 = (x + x0 * end_arrow);\n y2 = (y + y0 * end_arrow);\n \n // draw arrow shaft\n vx[nv] = x1;\n vy[nv] = y1;\n vz[nv] = z;\n nv++;\n vx[nv] = x2;\n vy[nv] = y2;\n vz[nv] = z;\n nv++;\n \n mbarb[2] = x2;\n mbarb[3] = y2;\n \n xd = x2 - x1;\n yd = y2 - y1;\n \n x3 = x2 - 0.3f * (xd - yd);\n y3 = y2 - 0.3f * (yd + xd);\n x4 = x2 - 0.3f * (xd + yd);\n y4 = y2 - 0.3f * (yd - xd);\n \n // draw arrow head\n vx[nv] = x2;\n vy[nv] = y2;\n vz[nv] = z;\n nv++;\n vx[nv] = x3;\n vy[nv] = y3;\n vz[nv] = z;\n nv++;\n \n vx[nv] = x2;\n vy[nv] = y2;\n vz[nv] = z;\n nv++;\n vx[nv] = x4;\n vy[nv] = y4;\n vz[nv] = z;\n nv++;\n \n int shi = (int) (10.0f * (swell_height + 0.5f));\n float shf = 0.1f * shi;\n String sh_string = Float.toString(shf);\n int point = sh_string.indexOf('.');\n sh_string = sh_string.substring(0, point + 2);\n double[] start = {x, y - 0.25 * sscale, 0.0};\n double[] base = {0.5 * sscale, 0.0, 0.0};\n double[] up = {0.0, 0.5 * sscale, 0.0};\n VisADLineArray array =\n PlotText.render_label(sh_string, start, base, up, true);\n int nl = array.vertexCount;\n int k = 0;\n for (int i=0; i<nl; i++) {\n vx[nv] = array.coordinates[k++];\n vy[nv] = array.coordinates[k++];\n vz[nv] = array.coordinates[k++];\n nv++;\n }\n }\n else { // if (swell_height < 0.1)\n \n // wind < 2.5 kts. Plot a circle\n float rad = (0.7f * pt_size);\n \n // draw 8 segment circle, center = (x, y), radius = rad\n // 1st segment\n vx[nv] = x - rad;\n vy[nv] = y;\n vz[nv] = z;\n nv++;\n vx[nv] = x - 0.7f * rad;\n vy[nv] = y + 0.7f * rad;\n vz[nv] = z;\n nv++;\n // 2nd segment\n vx[nv] = x - 0.7f * rad;\n vy[nv] = y + 0.7f * rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x;\n vy[nv] = y + rad;\n vz[nv] = z;\n nv++;\n // 3rd segment\n vx[nv] = x;\n vy[nv] = y + rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x + 0.7f * rad;\n vy[nv] = y + 0.7f * rad;\n vz[nv] = z;\n nv++;\n // 4th segment\n vx[nv] = x + 0.7f * rad;\n vy[nv] = y + 0.7f * rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x + rad;\n vy[nv] = y;\n vz[nv] = z;\n nv++;\n // 5th segment\n vx[nv] = x + rad;\n vy[nv] = y;\n vz[nv] = z;\n nv++;\n vx[nv] = x + 0.7f * rad;\n vy[nv] = y - 0.7f * rad;\n vz[nv] = z;\n nv++;\n // 6th segment\n vx[nv] = x + 0.7f * rad;\n vy[nv] = y - 0.7f * rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x;\n vy[nv] = y - rad;\n vz[nv] = z;\n nv++;\n // 7th segment\n vx[nv] = x;\n vy[nv] = y - rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x - 0.7f * rad;\n vy[nv] = y - 0.7f * rad;\n vz[nv] = z;\n nv++;\n // 8th segment\n vx[nv] = x - 0.7f * rad;\n vy[nv] = y - 0.7f * rad;\n vz[nv] = z;\n nv++;\n vx[nv] = x - rad;\n vy[nv] = y;\n vz[nv] = z;\n nv++;\n // System.out.println(\"circle \" + x + \" \" + y + \"\" + rad);\n mbarb[2] = x;\n mbarb[3] = y;\n }\n \n numv[0] = nv;\n return mbarb;\n }",
"public Airplane (){\n \n }",
"public static void setScene() {\n\n Shape ground = new Plane(vec3(0.0, -1.0, 0.0), vec3(0, 1, -0.2), new Diffuse(new Vec3(1,1,1), white));\n \n /* Shape globe1 = new Sphere(vec3(0.0, 2, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe2 = new Sphere(vec3(2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n Shape globe3 = new Sphere(vec3(-2, 0, -6.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.5, 0.5, 0.5)));\n*/\n Shape globe1T = new Sphere(vec3(0.0, 2, -2.0), 0.3, new Diffuse(new Vec3(1,1,1), white));\n // Shape globe2T = new Sphere(vec3(-0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1),yellow));\n // Shape globe3T = new Sphere(vec3(0.5, -2, -3.0), 0.5, new Diffuse(new Vec3(1,1,1), yellow));\n\n \n \n Shape globe4 = new Sphere(vec3(0.0, 2, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe5 = new Sphere(vec3(2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n Shape globe6 = new Sphere(vec3(-2, 0, -4.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.3, 0.3, 0.3)));\n \n Shape globe7 = new Sphere(vec3(0.0, 2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe8 = new Sphere(vec3(2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe9 = new Sphere(vec3(-2, 0, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n Shape globe7D = new Sphere(vec3(0.0, -2, -8.0), 0.5, new Diffuse(new Vec3(1,1,1), new Vec3(0.7, 0.7, 0.7)));\n\n Shape globeC = new Sphere(vec3(0.0, 0.0, -6.0), 1.0, new Diffuse(new Vec3(1,1,1), red));\n \n ArrayList<Shape> shapes = new ArrayList<>();\n shapes.add(bg);\n shapes.add(ground);\n shapes.add(globe1T);\n // shapes.add(globe2T);\n // shapes.add(globe3T);\n //shapes.add(globe4);\n //shapes.add(globe5);\n shapes.add(globe7);\n shapes.add(globe8);\n shapes.add(globe9);\n shapes.add(globe7D);\n shapes.add(globeC);\n gr = new Group(shapes);\n /////////////////////////////--------------------------------------\n \n \n }",
"public static LayerDefinition createLayer(boolean isRightHand) {\n MeshDefinition meshdefinition = new MeshDefinition();\n PartDefinition partdefinition = meshdefinition.getRoot();\n\n // Main arm parts\n /** mainarm is supposed to be a first person representation of the player's actual arm */\n partdefinition.addOrReplaceChild(\"mainarm\", CubeListBuilder.create().texOffs( 0, 16).addBox(-3F, 0F, -8F, 6, 6, 10).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"armorright\", CubeListBuilder.create().texOffs( 42, 0).addBox(1F, -1F, -9F, 3, 5, 8).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"armorleft\", CubeListBuilder.create().texOffs( 42, 0).addBox(-4F, -1F, -9F, 3, 5, 8).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"wristtopright\", CubeListBuilder.create().texOffs( 0, 11).addBox(1F, 1F, 2F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"wristtopleft\", CubeListBuilder.create().texOffs( 0, 11).addBox(-2F, 1F, 2F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"wristbottomright\", CubeListBuilder.create().texOffs( 0, 11).addBox(1F, 3F, 2F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"wristbottomleft\", CubeListBuilder.create().texOffs( 0, 11).addBox(-2F, 3F, 2F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"fingerguard\", CubeListBuilder.create().texOffs( 28, 9).addBox(-3F, -2F, 8.1F, 5, 2, 2).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"crystalholder\", CubeListBuilder.create().texOffs( 48, 13).addBox(-2F, -1F, -3F, 4, 4, 4).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"crystal\", CubeListBuilder.create().texOffs( 32, 27).addBox(-1F, -2F, -2F, 2, 2, 2).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0F, 0F));\n\n // Hand Parts ---------------------------------------------------------------------------------------------------\n PartDefinition palmPartDef = partdefinition.addOrReplaceChild(\"palm\", CubeListBuilder.create().texOffs( 18, 0).addBox(isRightHand? -4F : -3F, -1F, 5F, 7, 4, 5).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0F, 0F));\n\n // Thumb\n PartDefinition thumb1PartDef = palmPartDef.addOrReplaceChild(\"thumb1\", CubeListBuilder.create().texOffs( 16, 9).addBox(-.5F, -1F, 0F, 1, 2, 4).mirror(isRightHand), PartPose.offsetAndRotation(isRightHand ? -4F : 4F, 1.5F, 8F, 0F, isRightHand? -0.4014257F : 0.4014257F, 0F));\n thumb1PartDef.addOrReplaceChild(\"thumb2\", CubeListBuilder.create().texOffs( 10, 0).addBox(-.5F, -.5F, 0F, 1, 1, 3).mirror(isRightHand), PartPose.offsetAndRotation(0, 0, 4F, 0F, 0F, 0F));\n\n // Index finger\n PartDefinition index1PartDef = palmPartDef.addOrReplaceChild(\"index1\", CubeListBuilder.create().texOffs(34, 13).addBox(-.5F, -.5F, 0F, 1, 1, 5).mirror(isRightHand), PartPose.offsetAndRotation(isRightHand? -3.5F : 3.5F, -1.5F, 10F, 0.2617994F, 0F, 0F));\n index1PartDef.addOrReplaceChild(\"index2\", CubeListBuilder.create().texOffs( 34, 13).addBox(-.5F, -.5F, 0F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(0, 0, 5F, -0.2617994F * 2, 0F, 0F));\n\n // Middle finger\n PartDefinition middlefinger1PartDef = palmPartDef.addOrReplaceChild(\"middlefinger1\", CubeListBuilder.create().texOffs( 34, 13).addBox(-.5F, -.5F, 0F, 1, 1, 6).mirror(isRightHand), PartPose.offsetAndRotation(isRightHand? -1.5F : 1.5F, -1.5F, 10F, 0.2617994F, 0F, 0F));\n middlefinger1PartDef.addOrReplaceChild(\"middlefinger2\", CubeListBuilder.create().texOffs( 34, 13).addBox(-.5F, -.5F, 0F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(0, 0, 6F, -0.3444116F, 0F, 0F));\n\n // Ring finger\n PartDefinition ringfinger1PartDef = palmPartDef.addOrReplaceChild(\"ringfinger1\", CubeListBuilder.create().texOffs( 34, 13).addBox(-.5F, -.5F, 0F, 1, 1, 5).mirror(isRightHand), PartPose.offsetAndRotation(isRightHand? 0.5F : -0.5F, -1.5F, 10F, 0.2617994F, 0F, 0F));\n ringfinger1PartDef.addOrReplaceChild(\"ringfinger2\", CubeListBuilder.create().texOffs( 34, 13).addBox(-.5F, -.5F, 0F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(0, 0, 5F, -0.2617994F, 0F, 0F));\n\n // Pinky\n PartDefinition pinky1PartDef = palmPartDef.addOrReplaceChild(\"pinky1\", CubeListBuilder.create().texOffs( 34, 13).addBox(-.5F, -.5F, 0F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(isRightHand? 2.5F : -2.5F, -1.5F, 10F, 0.2617994F, 0F, 0F));\n pinky1PartDef.addOrReplaceChild(\"pinky2\", CubeListBuilder.create().texOffs( 34, 13).addBox(-.5F, -.5F, 0F, 1, 1, 4).mirror(isRightHand), PartPose.offsetAndRotation(0, 0, 4F, -0.4537856F, 0F, 0F));\n\n /** FINISH me below *--------------------*/\n // Left supports\n partdefinition.addOrReplaceChild(\"supportbaseleft\", CubeListBuilder.create().texOffs( 47, 21).addBox(-4.4F, -0.6666667F, -5.4F, 3, 3, 5).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"supportleftfront\", CubeListBuilder.create().texOffs( 49, 23).addBox(isRightHand? -4.333333F : -3.333333F, 0.3333333F, 4.666667F, 1, 2, 3).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"supportleft1\", CubeListBuilder.create().texOffs( 54, 27).addBox(-2.2F, -0.4F, -6.066667F, 4, 1, 1).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2722714F, 1.066978F, 0F));\n partdefinition.addOrReplaceChild(\"supportleft2\", CubeListBuilder.create().texOffs( 52, 21).addBox(-6F, 0.4666667F, 2.5F, 2, 2, 1).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, -0.6329727F, 0F));\n partdefinition.addOrReplaceChild(\"supportleft3\", CubeListBuilder.create().texOffs(52, 21).addBox(-6.5F, 1F, -0.5F, 1, 1, 5).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"supportleft4\", CubeListBuilder.create().texOffs(52, 21).addBox(-7.9F, 0.4666667F, 1.7F, 2, 2, 1).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0.3688462F, 0F));\n partdefinition.addOrReplaceChild(\"supportleft5\", CubeListBuilder.create().texOffs(54, 27).addBox(-0.8666667F, 1F, isRightHand? 7F : 6.333333F, 4, 1, 1).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F,0F, -0.7714355F, 0F));\n\n // Right supports\n partdefinition.addOrReplaceChild(\"supportbaseright\", CubeListBuilder.create().texOffs( 47, 21).addBox(1.433333F, -0.6666667F, -5.4F, 3, 3, 5).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2617994F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"supportrightfront\", CubeListBuilder.create().texOffs( 49, 23).addBox(isRightHand? 2.3F : 3.3F, 0.3333333F, 4.666667F, 1, 2, 3).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"supportright1\", CubeListBuilder.create().texOffs( 54, 27).addBox(-1.8F, -0.8F, -6.066667F, 4, 1, 1).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0.2722714F, -1.066972F, 0F));\n partdefinition.addOrReplaceChild(\"supportright2\", CubeListBuilder.create().texOffs( 52, 21).addBox(4F, 0.4666667F, 2.5F, 2, 2, 1).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0.6329786F, 0F));\n partdefinition.addOrReplaceChild(\"supportright3\", CubeListBuilder.create().texOffs( 52, 21).addBox(5.1F, 1F, -0.8333333F, 1, 1, 5).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0F, 0F));\n partdefinition.addOrReplaceChild(\"supportright4\", CubeListBuilder.create().texOffs( 52, 21).addBox(5.633333F, 0.4666667F, 1.7F, 2, 2, 1).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, -0.3688404F, 0F));\n partdefinition.addOrReplaceChild(\"supportright5\", CubeListBuilder.create().texOffs( 54, 27).addBox(-2.866667F, 1F, isRightHand? 6.333333F : 7F, 4, 1, 1).mirror(isRightHand), PartPose.offsetAndRotation(0F, 0F, 0F, 0F, 0.7714355F, 0F));\n\n return LayerDefinition.create(meshdefinition, 64, 32);\n }",
"@Test\n public void bonusTMoveCamera2() {\n Scene scene = new Scene(\"Test scene\");\n scene.setCamera(new Camera(new Point3D(3100, -3100, -2600), new Vector(-2, 2, 2), new Vector(-1, -2, 1)));\n scene.setDistance(600);\n scene.setBackground(Color.BLACK);\n scene.setAmbientLight(new AmbientLight(new Color(java.awt.Color.WHITE), 0.15));\n\n scene.addGeometries( //\n new Plane(new Material(0.4, 0.1, 60, 0, 0), new Color(java.awt.Color.DARK_GRAY),\n new Point3D(0, 400, 100), new Vector(0, -1, 0)),\n new Polygon(Color.BLACK, new Material(0.2, 0.3, 200, 0.5, 0),\n new Point3D(-1, -300, 500), new Point3D(-1, -140, 500), new Point3D(1, -140, 500), new Point3D(1, -300, 500)),\n new Sphere(new Color(java.awt.Color.yellow), new Material(0.2, 0.2, 200, 0, 0.6), // )\n 80, new Point3D(-1, -120, 500)),\n new Polygon(Color.BLACK, new Material(0.2, 0.2, 200, 0.9, 0),\n new Point3D(-150, -150, 1999), new Point3D(-150, 200, 1999), new Point3D(150, 200, 1999), new Point3D(150, -150, 1999)),\n new Sphere(new Color(800, 0, 0), new Material(0.3, 0.5, 200, 0.2, 0), // )\n 140, new Point3D(300, 260, 600)),\n new Sphere(new Color(0, 0, 200), new Material(0.25, 0.25, 20, 0, 0.25), // )\n 140, new Point3D(-260, 260, 0)),\n new Sphere(new Color(400, 20, 20), new Material(0.2, 0.5, 200, 0, 0.3), // )\n 100, new Point3D(-600, 300, 1300)),\n new Triangle(new Color(100, 300, 100), new Material(0.25, 0.5, 100, 0.25, 0),\n new Point3D(-100, 400, 150), new Point3D(100, 400, 350), new Point3D(0, 200, 250)));\n\n scene.addLights(new SpotLight(new Color(700, 400, 400), //no. 1\n new Point3D(0, 0, -1500), 1, 4E-5, 2E-7, new Vector(0, 0, 1)).setRadius(15),\n new PointLight(new Color(200, 400, 200), new Point3D(0.001, -100, 499), 1, 4E-5, 2E-7).setRadius(15),//no.2\n new PointLight(new Color(200, 200, 400), new Point3D(0.001, -50, 1000), 1, 4E-5, 2E-7).setRadius(25));//no.3\n\n ImageWriter imageWriter = new ImageWriter(\"The magical room moving camera to right - soft shadow 5\", 200, 200, 1000, 1000);\n Render render = new Render(imageWriter, scene).setSuperSampling(400).setMultithreading(3).setDebugPrint();\n\n render.renderImage();\n render.writeToImage();\n }",
"@Test\n void getNormal() {\n Plane pl = new Plane(new Point3D(-1,2,1), new Point3D(0,-3,2), new Point3D(1,1,-4)\n );\n\n assertEquals(new Vector(26,7,9).normalize(),\n pl.getNormal(),\n \"Bad normal to trinagle\");\n\n }",
"public static void main(String[] args) {\n// Vector v1 = new Vector(new double[]{0, 0, 1});\n// Vector v2 = new Vector(new double[]{1, 0, 0});\n// System.out.println(v1.dot(v2));\n System.setProperty(\"sun.java2d.opengl\", \"true\");\n \n // Make World\n //WorldSpace world = new StreetWorldSpace();\n WorldSpace world = new TestWorldSpace();\n //WorldSpace world = new BigAssPolygonSpace();\n \n // Make Frame\n JFrame frame = new JFrame();\n \n // Get effective screen size\n Dimension screenSize = getScreenDimension(frame);\n\n // Set Camera View dimensions\n int width = 730;\n int height = width;\n \n // Make Camera\n Polygon[] polygons = world.getPolygons();\n Camera camera = new Camera(polygons, width, height, frame.getGraphicsConfiguration());\n image = camera.observe();\n \n // Make Camera Control Panel\n// int controlPanelHeight = 100;\n// CameraControlPanel cameraControlPanel = new CameraControlPanel(camera);\n// cameraControlPanel.setPreferredSize(new Dimension(width, controlPanelHeight));\n// cameraControlPanel.setBorder(BorderFactory.createCompoundBorder(new LineBorder(Color.BLACK, 2, false), new EmptyBorder(10, 10, 10, 10)));\n \n // Make Camera View Component\n CameraViewComponent cameraViewComponent = new CameraViewComponent(camera);\n cameraViewComponent.updateImage(image);\n cameraViewComponent.updateData(camera.getData());\n cameraViewComponent.setPreferredSize(new Dimension(width, height));\n\n // Make Camera Panel\n JPanel cameraPanel = new JPanel();\n cameraPanel.setLayout(new BoxLayout(cameraPanel, BoxLayout.Y_AXIS));\n cameraPanel.setPreferredSize(new Dimension(width, height));// + controlPanelHeight));\n cameraPanel.add(cameraViewComponent);\n //cameraPanel.add(cameraControlPanel);\n\n // Make Camera Data Panel\n //CameraDataPanel cameraDataPanel = new CameraDataPanel(camera);\n \n // Make Master Panel\n JPanel masterPanel = new JPanel();\n masterPanel.add(cameraPanel);\n //masterPanel.add(cameraDataPanel);\n \n frame.add(masterPanel);\n frame.pack();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n\n // Make keyboard listener\n KeyListener kl = new KeyListener();\n \n // Time\n int lastTenthOfASecond = 0;\n double lastMilliSecond = 0;\n double currentMilliSecond = System.currentTimeMillis();\n double averageFrameRate = 0;\n double currentFrameRate = 0;\n long totalTime = 0;\n long totalFrames = 0;\n \n // Redraw camera view upon keyboard input\n while(true) { \n int currentTenthOfASecond = (int)((currentMilliSecond%1000)/100);\n if (currentMilliSecond/100 > lastMilliSecond/100) {\n boolean cameraMoved = false;\n if (kl.isWPressed()) {\n camera.move(FORWARD); \n cameraMoved = true;\n }\n if (kl.isSPressed()) {\n camera.move(BACKWARD); \n cameraMoved = true;\n }\n if (kl.isAPressed()) {\n camera.move(LEFT); \n cameraMoved = true;\n }\n if (kl.isDPressed()) {\n camera.move(RIGHT); \n cameraMoved = true;\n }\n if (kl.isSpacePressed()) {\n camera.move(UP); \n cameraMoved = true;\n }\n if (kl.isShiftPressed()) {\n camera.move(DOWN); \n cameraMoved = true;\n }\n if (cameraViewComponent.wasUpdated()) {\n cameraMoved = true;\n }\n// if (cameraControlPanel.getWasCameraChanged() || cameraViewComponent.wasUpdated()) {\n// cameraMoved = true;\n// }\n if (cameraMoved) {\n image = camera.observe();\n cameraViewComponent.updateImage(image);\n //cameraDataPanel.update();\n //cameraControlPanel.update(); \n totalFrames++;\n totalTime += currentMilliSecond-lastMilliSecond + 1;\n averageFrameRate = (totalFrames)/(totalTime/1000.0); \n currentFrameRate = (1000.0/(currentMilliSecond-lastMilliSecond));\n \n }\n }\n if (currentTenthOfASecond > lastTenthOfASecond) {\n \n String[] cameraData = camera.getData();\n String[] frameData = {\n \"Average Framerate: \" + String.format(\"%.2f\", averageFrameRate), \n \"Current Framerate: \" + String.format(\"%.2f\",currentFrameRate)\n };\n String[] data = new String[cameraData.length + frameData.length ];\n System.arraycopy(cameraData, 0, data, 0, cameraData.length);\n System.arraycopy(frameData, 0, data, cameraData.length, frameData.length);\n cameraViewComponent.updateData(data);\n } \n lastTenthOfASecond = currentTenthOfASecond;\n lastMilliSecond = currentMilliSecond;\n currentMilliSecond = System.currentTimeMillis(); \n }\n }",
"godot.wire.Wire.PlaneOrBuilder getPlaneValueOrBuilder();",
"public void changeAngle (int horizontalSpeed)\n\t{\n\t\t//The following makes the PaperAirplane face as far right as it can\n\t\t//(but it still faces downward slightly).\n\t\tif (horizontalSpeed >= 5)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 23;\n\t\t\txDimension2 = getX_Pos () - 18;\n\t\t\txDimension3 = getX_Pos () + 22;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 2;\n\t\t\tyDimension2 = getY_Pos () - 17;\n\t\t\tyDimension3 = getY_Pos () + 5;\n\t\t}\n\t\t//When the horizontal speed progresses from 5 to 0, the plane faces\n\t\t//further downward, which is shown by the if statements below. Likewise,\n\t\t//as the horizontal speed progresses from 0 to 5, the plane faces\n\t\t//further right.\n\t\telse if (horizontalSpeed == 4)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 20;\n\t\t\txDimension2 = getX_Pos () - 12;\n\t\t\txDimension3 = getX_Pos () + 20;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 7;\n\t\t\tyDimension2 = getY_Pos () - 19;\n\t\t\tyDimension3 = getY_Pos () + 11;\n\t\t}\n\t\telse if (horizontalSpeed == 3)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 15;\n\t\t\txDimension2 = getX_Pos () - 5;\n\t\t\txDimension3 = getX_Pos () + 14;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 12;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 13;\n\t\t}\n\t\telse if (horizontalSpeed == 2)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 10;\n\t\t\txDimension2 = getX_Pos () + 2;\n\t\t\txDimension3 = getX_Pos () + 12;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 17;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 18;\n\t\t}\n\t\telse if (horizontalSpeed == 1)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 10;\n\t\t\txDimension2 = getX_Pos () + 4;\n\t\t\txDimension3 = getX_Pos () + 6;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 18;\n\t\t\tyDimension2 = getY_Pos () - 20;\n\t\t\tyDimension3 = getY_Pos () + 20;\n\t\t}\n\t\t//The following makes the plane face straight down.\n\t\telse if (horizontalSpeed == 0)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 7;\n\t\t\txDimension2 = getX_Pos ();\n\t\t\txDimension3 = getX_Pos () + 7;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 20;\n\t\t\tyDimension2 = getY_Pos () + 24;\n\t\t\tyDimension3 = getY_Pos () - 20;\n\t\t}\n\t\t//When the horizontal speed progresses from -5 to 0, the plane faces\n\t\t//further downward, which is shown by the if statements below. Likewise,\n\t\t//as the horizontal speed progresses from 0 to -5, the plane faces\n\t\t//further left.\n\t\telse if (horizontalSpeed == -1)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 10;\n\t\t\txDimension2 = getX_Pos () - 4;\n\t\t\txDimension3 = getX_Pos () - 6;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 18;\n\t\t\tyDimension2 = getY_Pos () - 20;\n\t\t\tyDimension3 = getY_Pos () + 20;\n\t\t}\n\t\telse if (horizontalSpeed == -2)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 10;\n\t\t\txDimension2 = getX_Pos () - 2;\n\t\t\txDimension3 = getX_Pos () - 12;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 17;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 18;\n\t\t}\n\t\telse if (horizontalSpeed == -3)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 15;\n\t\t\txDimension2 = getX_Pos () + 5;\n\t\t\txDimension3 = getX_Pos () - 14;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 12;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 13;\n\t\t}\n\t\telse if (horizontalSpeed == -4)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 20;\n\t\t\txDimension2 = getX_Pos () + 12;\n\t\t\txDimension3 = getX_Pos () - 20;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 7;\n\t\t\tyDimension2 = getY_Pos () - 19;\n\t\t\tyDimension3 = getY_Pos () + 11;\n\t\t}\n\t\t//The following makes the PaperAirplane face as far left as it can\n\t\t//(but it still faces downward slightly).\n\t\telse if (horizontalSpeed <= -5)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 23;\n\t\t\txDimension2 = getX_Pos () + 18;\n\t\t\txDimension3 = getX_Pos () - 22;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 2;\n\t\t\tyDimension2 = getY_Pos () - 17;\n\t\t\tyDimension3 = getY_Pos () + 5;\n\t\t}\n\t}",
"@Test\n public void getNormal_test() \n {\n\t // ============ Equivalence Partitions Tests ==============\n\t // TC01\n\t Plane pln= new Plane(new Point3D(1,0,0), new Vector(1,1,1));\n\t assertEquals(pln.getNormal(new Point3D(0,1,0)), new Vector(0.5773502691896258, 0.5773502691896258, 0.5773502691896258));\n }",
"private void createSwitches() {\n \t\tswitches = new Point[4];\n \t\tswitches[0] = new Point(centreMin, centreMin);\n \t\tswitches[1] = new Point(centreMin, centreMax-1);\n \t\tswitches[2] = new Point(centreMax-1, centreMin);\n \t\tswitches[3] = new Point(centreMax-1, centreMax-1);\n \t}",
"public static DeformableMesh3D createRectangleMesh(double width, double height, double depth, double segment_size){\n ArrayList<double[]> pts = new ArrayList<double[]>();\n ArrayList<int[]> connections = new ArrayList<int[]>();\n ArrayList<int[]> triangles = new ArrayList<int[]>();\n //For the complete length there will be n+1 nodes\n int nx = (int)(width/segment_size + 0.5) + 1;\n int ny = (int)(height/segment_size+0.5) + 1;\n int nz = (int)(depth/segment_size+0.5) + 1;\n double actual_w = (nx-1)*segment_size;\n double actual_h = (ny-1)*segment_size;\n double actual_z = (nz-1)*segment_size;\n\n int dex;\n\n //top face x-y @ actual_z/2\n int top_starting_dex = pts.size();\n for(int i = 0; i<nx; i++){\n for(int j = 0; j<ny; j++){\n dex = top_starting_dex + i*ny + j;\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n j*segment_size - actual_h/2,\n actual_z/2\n });\n\n //create a connection\n if(i>0){\n connections.add(new int[]{\n dex,\n dex - ny\n });\n }\n\n if(j>0){\n connections.add(new int[]{\n dex,\n dex-1\n });\n }\n }\n }\n\n for(int i = 1; i<nx; i++){\n for(int j = 1; j<ny; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n (j-0.5)*segment_size - actual_h/2,\n actual_z/2\n });\n //first\n int a_dex = top_starting_dex + (i-1)*ny + (j-1);\n connections.add(new int[]{dex,a_dex});\n int b_dex = top_starting_dex + (i)*ny + (j-1);\n connections.add(new int[]{dex,b_dex});\n int c_dex = top_starting_dex + (i)*ny + (j);\n connections.add(new int[]{dex,c_dex});\n int d_dex = top_starting_dex + (i-1)*ny + (j);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, a_dex, b_dex});\n triangles.add(new int[]{dex, b_dex, c_dex});\n triangles.add(new int[]{dex, c_dex, d_dex});\n triangles.add(new int[]{dex, d_dex, a_dex});\n\n }\n }\n\n\n //bottom face x-y @ -actual_z/2\n int bottom_starting_dex = pts.size();\n for(int i = 0; i<nx; i++){\n for(int j = 0; j<ny; j++){\n\n dex = bottom_starting_dex + i*ny + j;\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n j*segment_size - actual_h/2,\n -actual_z/2\n });\n\n //create a connection\n if(i>0){\n connections.add(new int[]{\n dex,\n dex - ny\n });\n }\n\n if(j>0){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n //bottom face\n for(int i = 1; i<nx; i++){\n for(int j = 1; j<ny; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n (j-0.5)*segment_size - actual_h/2,\n -actual_z/2\n });\n //first\n int a_dex = bottom_starting_dex + (i-1)*ny + (j-1);\n connections.add(new int[]{dex,a_dex});\n int b_dex = bottom_starting_dex + (i)*ny + (j-1);\n connections.add(new int[]{dex,b_dex});\n int c_dex = bottom_starting_dex + (i)*ny + (j);\n connections.add(new int[]{dex,c_dex});\n int d_dex = bottom_starting_dex + (i-1)*ny + (j);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n\n //left face y-z @ -actual_x/2\n int left_starting_dex = pts.size();\n for(int i = 0; i<ny; i++){\n for(int j = 1; j<nz-1; j++){\n dex = left_starting_dex + i*(nz-2) + (j-1);\n pts.add(new double[]{\n -actual_w/2,\n i*segment_size - actual_h/2,\n j*segment_size - actual_z/2\n });\n\n //creates a connection\n if(i>0){\n //previous row\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n //previous column\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n }\n }\n\n\n //left face connections\n for(int i = 0; i<ny; i++){\n connections.add(new int[]{\n top_starting_dex + i,\n left_starting_dex + i*(nz-2) + (nz-3)\n });\n\n connections.add(new int[]{\n bottom_starting_dex + i,\n left_starting_dex + i*(nz-2)\n });\n\n }\n\n //left face triangles\n for(int i = 1; i<ny; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = left_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = left_starting_dex + (i)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = left_starting_dex + (i)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = left_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n //left face merging triangles\n for(int i = 1; i<ny; i++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = bottom_starting_dex + i-1;\n int b_dex = bottom_starting_dex + i;\n int c_dex = left_starting_dex + i*(nz-2);\n int d_dex = left_starting_dex + (i-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n dex = pts.size();\n\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = top_starting_dex + i;\n b_dex = top_starting_dex + i-1;\n c_dex = left_starting_dex + (i-1)*(nz-2) + (nz-3);\n d_dex = left_starting_dex + (i)*(nz-2) + (nz-3);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //right face y-z @ actual_x/2\n int right_starting_dex = pts.size();\n for(int i = 0; i<ny; i++){\n for(int j = 1; j<nz-1; j++){\n dex = right_starting_dex + i*(nz-2) + (j-1);\n pts.add(new double[]{\n actual_w/2,\n i*segment_size - actual_h/2,\n j*segment_size - actual_z/2\n });\n\n //creates a connection\n if(i>0){\n //previous row\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n //previous column\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n }\n }\n\n for(int i = 0; i<ny; i++){\n connections.add(new int[]{\n top_starting_dex + i + ny*(nx-1),\n right_starting_dex + i*(nz-2) + (nz-3)\n });\n\n connections.add(new int[]{\n bottom_starting_dex + i + ny*(nx-1),\n right_starting_dex + i*(nz-2)\n });\n\n }\n\n //right face triangles\n for(int i = 1; i<ny; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = right_starting_dex + (i)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = right_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = right_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = right_starting_dex + (i)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n //right face merging triangles\n for(int i = 1; i<ny; i++){\n /*\n connections.add(new int[]{\n top_starting_dex + i,\n left_starting_dex + i*(nz-2) + (nz-3)\n });\n */\n dex = pts.size();\n\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = bottom_starting_dex + i + ny*(nx-1);\n int b_dex = bottom_starting_dex + i-1 + ny*(nx-1);\n int c_dex = right_starting_dex + (i-1)*(nz-2);\n int d_dex = right_starting_dex + (i)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n dex = pts.size();\n\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = top_starting_dex + i-1 + ny*(nx-1);\n b_dex = top_starting_dex + i + ny*(nx-1);\n c_dex = right_starting_dex + (i)*(nz-2) + (nz-3);\n d_dex = right_starting_dex + (i-1)*(nz-2) + (nz-3);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n\n //front face x-z @ -actual_y/2\n int front_starting_dex = pts.size();\n for(int i = 1; i<nx-1; i++){\n for(int j = 1; j<nz-1; j++){\n dex = front_starting_dex + (i-1)*(nz-2) + (j-1);\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n -actual_h/2,\n j*segment_size - actual_z/2\n });\n\n if(i>1){\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n\n //connect to top and bottom.\n for(int i = 1; i<nx-1; i++){\n connections.add(new int[]{\n front_starting_dex + (i-1)*(nz - 2),\n bottom_starting_dex + i*ny\n });\n\n connections.add(new int[]{\n front_starting_dex + (i-1)*(nz - 2) + (nz-3),\n top_starting_dex + i*ny\n });\n\n }\n\n //connect to left and right\n for(int j = 1; j<nz-1; j++){\n connections.add(new int[]{\n front_starting_dex + (j-1),\n left_starting_dex + j - 1\n });\n\n connections.add(new int[]{\n front_starting_dex + (j-1) + (nz-2)*(nx-3),\n right_starting_dex + j - 1\n });\n }\n\n //front face triangles\n for(int i = 2; i<nx-1; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = front_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = front_starting_dex + (i-2)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = front_starting_dex + (i-2)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = front_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n //front face triangles merging to top/bottom sans corners.\n for(int i = 2; i<nx-1; i++){\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = front_starting_dex + (i-2)*(nz - 2);\n int b_dex = front_starting_dex + (i-1)*(nz - 2);\n int c_dex = bottom_starting_dex + i*ny;\n int d_dex = bottom_starting_dex + (i-1)*ny;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = front_starting_dex + (i-1)*(nz - 2) + (nz-3);\n b_dex = front_starting_dex + (i-2)*(nz - 2) + (nz-3);\n c_dex = top_starting_dex + (i-1)*ny;\n d_dex = top_starting_dex + i*ny;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //front face triangles merging to left and right sans corners.\n for(int j = 2; j<nz-1; j++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n -actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n int a_dex = front_starting_dex + (j-1);\n int b_dex = front_starting_dex + (j-2);\n int c_dex = left_starting_dex + j - 2;\n int d_dex = left_starting_dex + j - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n a_dex = front_starting_dex + (j-2) + (nz-2)*(nx-3);\n b_dex = front_starting_dex + (j-1) + (nz-2)*(nx-3);\n c_dex = right_starting_dex + j - 1;\n d_dex = right_starting_dex + j - 2;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n //front triangles four corners.\n for(int j = 1; j<nz; j+=nz-2){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n -actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n\n\n int a_dex, b_dex, c_dex, d_dex;\n\n if(j==1){\n a_dex = front_starting_dex;\n b_dex = bottom_starting_dex + ny;\n c_dex = bottom_starting_dex;\n d_dex = left_starting_dex;\n } else{\n a_dex = front_starting_dex + nz-3;\n b_dex = left_starting_dex + nz-3;\n c_dex = top_starting_dex;\n d_dex = top_starting_dex + ny;\n }\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n\n if(j==1){\n a_dex = front_starting_dex + (nx-3)*(nz - 2);\n b_dex = right_starting_dex;\n c_dex = bottom_starting_dex + (nx-1)*(ny);\n d_dex = bottom_starting_dex + (nx-2)*(ny);\n } else{\n a_dex = front_starting_dex + (nx-2)*(nz - 2) -1;\n b_dex = top_starting_dex + (nx-2)*(ny);\n c_dex = top_starting_dex + (nx-1)*(ny);\n d_dex = right_starting_dex + nz-3;\n }\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n\n //back plane\n int back_starting_dex = pts.size();\n for(int i = 1; i<nx-1; i++){\n for(int j = 1; j<nz-1; j++){\n dex = back_starting_dex + (i-1)*(nz-2) + (j-1);\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n actual_h/2,\n j*segment_size - actual_z/2\n });\n\n if(i>1){\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n\n\n //connect to top and bottom.\n for(int i = 1; i<nx-1; i++){\n connections.add(new int[]{\n back_starting_dex + (i-1)*(nz - 2),\n bottom_starting_dex + i*ny + ny-1\n });\n\n connections.add(new int[]{\n back_starting_dex + (i-1)*(nz - 2) + (nz-3),\n top_starting_dex + i*ny + ny-1\n });\n\n }\n\n\n //connect to left and right\n for(int j = 1; j<nz-1; j++){\n connections.add(new int[]{\n back_starting_dex + (j-1),\n left_starting_dex + j - 1 + (ny-1)*(nz-2)\n });\n\n connections.add(new int[]{\n back_starting_dex + (j-1) + (nz-2)*(nx-3),\n right_starting_dex + j - 1 + (ny-1)*(nz-2)\n });\n }\n\n //back face triangles\n for(int i = 2; i<nx-1; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = back_starting_dex + (i-2)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = back_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = back_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = back_starting_dex + (i-2)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n //back face triangles merging to top/bottom sans corners.\n for(int i = 2; i<nx-1; i++){\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = back_starting_dex + (i-1)*(nz - 2);\n int b_dex = back_starting_dex + (i-2)*(nz - 2);\n int c_dex = bottom_starting_dex + (i-1)*ny + ny - 1;\n int d_dex = bottom_starting_dex + (i)*ny + ny - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = back_starting_dex + (i-2)*(nz - 2) + (nz-3);\n b_dex = back_starting_dex + (i-1)*(nz - 2) + (nz-3);\n c_dex = top_starting_dex + (i)*ny + ny - 1;\n d_dex = top_starting_dex + (i-1)*ny + ny - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //back face triangles merging to left and right sans corners.\n for(int j = 2; j<nz-1; j++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n int a_dex = back_starting_dex + (j-2);\n int b_dex = back_starting_dex + (j-1);\n int c_dex = left_starting_dex + j - 1 + (ny-1)*(nz-2);\n int d_dex = left_starting_dex + j - 2 + (ny-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n a_dex = back_starting_dex + (j-1) + (nz-2)*(nx-3);\n b_dex = back_starting_dex + (j-2) + (nz-2)*(nx-3);\n c_dex = right_starting_dex + j - 2+ (ny-1)*(nz-2);\n d_dex = right_starting_dex + j - 1+ (ny-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n //back triangles four corners.\n for(int j = 1; j<nz; j+=nz-2){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n\n\n int a_dex, b_dex, c_dex, d_dex;\n\n if(j==1){\n a_dex = back_starting_dex;\n b_dex = left_starting_dex + (ny-1)*(nz-2);\n c_dex = bottom_starting_dex + ny -1;\n d_dex = bottom_starting_dex + 2*ny - 1;\n } else{\n a_dex = back_starting_dex + nz-3;\n b_dex = top_starting_dex + 2*ny - 1;\n c_dex = top_starting_dex + ny - 1;\n d_dex = left_starting_dex + (ny)*(nz-2) - 1 ;\n }\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n\n if(j==1){\n a_dex = back_starting_dex + (nx-3)*(nz - 2);\n b_dex = bottom_starting_dex + (nx-1)*(ny) - 1;\n c_dex = bottom_starting_dex + (nx)*(ny) - 1;\n d_dex = right_starting_dex + (nz-2)*(ny-1);\n } else{\n a_dex = back_starting_dex + (nx-2)*(nz - 2) -1;\n b_dex = right_starting_dex + (nz-2)*(ny-1) + nz - 3;\n c_dex = top_starting_dex + (nx)*(ny) -1;\n d_dex = top_starting_dex + (nx-1)*(ny) -1;\n }\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n final DeformableMesh3D mesh = new DeformableMesh3D(pts, connections, triangles);\n\n return mesh;\n }",
"@Override\n protected void beforeDraw(UI ui, PGraphics pg) {\n pointLight(0, 0, 40, model.cx, model.cy, LengthUnit.FOOT.toMillimetres(-20L));\n pointLight(0, 0, 50, model.cx, model.yMax + LengthUnit.FOOT.toMillimetres(10L), model.cz);\n pointLight(0, 0, 20, model.cx, model.yMin - LengthUnit.FOOT.toMillimetres(10L), model.cz);\n //hint(ENABLE_DEPTH_TEST);\n }",
"public void findBoundary(boolean useDestinations)\r\n\t{\n\tdouble maxSpacing = res/5.0;\r\n\tif(maxSpacing<1) maxSpacing = 1;\r\n\t\r\n\t//First make sure point sampling is dense enough:\t\r\n\tVector<Int2d> surfaceT = new Vector<Int2d>();\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tsurfaceT.add(p);\r\n\t\tInt2d p2 = surface.get((it+1)%sl);\r\n\t\tdouble pdist = p2.distance(p);\r\n\t\tif(pdist > maxSpacing)\r\n\t\t\t{\r\n\t\t\t// populate this line segment with points\r\n\t\t\tint extraPoints = (int)(pdist/maxSpacing); // - 2 cause we already have 2 points\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<extraPoints; i++)\r\n\t\t\t\t{\r\n\t\t\t\tInt2d pN = new Int2d(p);\r\n\t\t\t\tInt2d diff = new Int2d();\r\n\t\t\t\tdiff.sub(p2,p);\r\n\t\t\t\tpN.scaleAdd((double)(i+1.)/(extraPoints+1.),diff,pN);\r\n\t\t\t\tsurfaceT.add(pN);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t//System.out.println(\"got here2.1\");\r\n\tsurface = surfaceT;\r\n\tcanvas1.surface = surface;\r\n\tsl = surfaceT.size();\r\n\t\t\r\n\t//System.out.println(sl);\r\n\t\r\n\t\t\t\t\r\n\tfor(int it=0; it<sl; it++)\r\n\t\t{\r\n\t\tInt2d p = surface.get(it);\r\n\t\tint i = (int)(p.x/res);\r\n\t\tint j = (int)(p.y/res);\r\n\t\tboolean extraWide = false;\r\n\t\tboolean extraHigh = false;\t\t\r\n\t\t\r\n\t\tif((p.y % res) == 0)\r\n\t\t\t{\r\n\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\textraHigh = true;\r\n\t\t\t}\r\n\t\tif((p.x % res) == 0)\r\n\t\t\t{\r\n\t\t\textraWide = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\tint len = 4;\r\n\t\tif(extraWide && extraHigh) len = 9;\r\n\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\r\n\t\tInt2d[] pi = new Int2d[len];\r\n\t\tint[] ic = new int[len];\r\n\t\tint[] jc = new int[len];\r\n\t\t\r\n\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\r\n\t\tfor(int c=0; c<len; c++)\r\n\t\t\t{\r\n\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t{\r\n\t\t\t\tif(!useDestinations)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t//else phi[ic[c]][jc[c]] = -phiStart;\r\n\t\t\t\t// Way suggested in paper, but this looks bad with interpolation\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(\"got here2.2\");\r\n\t\t\r\n\tif(useDestinations) //Use destinations\r\n\t\t{\t\t\r\n\t\t// Sets destination point distances accordingly\r\n\t\t\r\n\t\tint dl = destinations.size();\r\n\t\tfor(int it=0; it<dl; it++)\r\n\t\t\t{\r\n\t\t\tInt2d p = destinations.get(it);\r\n\t\t\tint i = (int)(p.x/res);\r\n\t\t\tint j = (int)(p.y/res);\r\n\t\t\tboolean extraWide = false;\r\n\t\t\tboolean extraHigh = false;\t\t\r\n\t\t\t\r\n\t\t\tif((p.y % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t//System.out.println(\"Extra high at i,j = \" + i + \", \" + j);\r\n\t\t\t\textraHigh = true;\r\n\t\t\t\t}\r\n\t\t\tif((p.x % res) == 0)\r\n\t\t\t\t{\r\n\t\t\t\textraWide = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\tint len = 4;\r\n\t\t\tif(extraWide && extraHigh) len = 9;\r\n\t\t\telse if(extraWide || extraHigh) len = 6;\r\n\t\t\t\r\n\t\t\tInt2d[] pi = new Int2d[len];\r\n\t\t\tint[] ic = new int[len];\r\n\t\t\tint[] jc = new int[len];\r\n\t\t\t\r\n\t\t\tgenerateStencil(i,j,extraWide,extraHigh,ic,jc,pi,len);\r\n\t\t\t\r\n\t\t\tfor(int c=0; c<len; c++)\r\n\t\t\t\t{\r\n\t\t\t\tif(withinBounds(ic[c],jc[c]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(!boundary.contains(pi[c])) boundary.add(pi[c]);\r\n\t\t\t\t\tInt2d piX = new Int2d(res*pi[c].x,res*pi[c].y);\r\n\t\t\t\t\tdouble dCur = piX.distance(p);\r\n\t\t\t\t\tint sign = 1;\r\n\t\t\t\t\tif(poly.contains(res*pi[c].x,res*pi[c].y)) sign = -1;\r\n\t\t\t\t\t//if(ic[c] == 10 && jc[c] == 10) System.out.println(\"sign = \" + sign);\r\n\t\t\t\t\tif(dCur<Math.abs(phi[ic[c]][jc[c]]))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tphi[ic[c]][jc[c]] = sign*dCur;\r\n\t\t\t\t\t\t//System.out.println(sign*dCur);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\tint bl = boundary.size();\r\n\t/*\r\n\tfor(int k=0; k<bl; k++)\r\n\t\t{\r\n\t\tSystem.out.println(boundary.get(k).x + \", \" + boundary.get(k).y + \": element \" + k);\r\n\t\t}\r\n\t\t*/\r\n\t\t\t\r\n\tfor(int i=0; i<bl; i++)\r\n\t\t{\r\n\t\tInt2d pi = boundary.get(i);\r\n\t\tpi.phi = phi[pi.x][pi.y];\r\n\t\t}\r\n\t}",
"public abstract void constructHull();",
"private void arretes_fW(){\n\t\tthis.cube[4] = this.cube[1]; \n\t\tthis.cube[1] = this.cube[3];\n\t\tthis.cube[3] = this.cube[7];\n\t\tthis.cube[7] = this.cube[5];\n\t\tthis.cube[5] = this.cube[4];\n\t}",
"void mo21067a(Surface surface);",
"private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}",
"@Override\n public void setup() {\n strokeWeight(1);\n smooth();\n textMode(SHAPE);\n origin = new PVector(width / 2, height / 2,0);\n size = 2000;\n zoom = 1.5f;\n rX = -0.51f;\n rY = -0.65f;\n arm = new Arm(this);\n ik = new InverseK(arm.getL());\n angles = new double[]{0,0,0};\n }",
"public int getPlanesLanded() {\r\n return planesLanded;\r\n }",
"public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }",
"ZHDraweeView mo91981h();",
"@Override\n\tpublic void acreage() {\n\t\tSystem.out.println(\"梯形的面积\"+getAcreage());\n\t}",
"@SuppressWarnings(\"unused\")\r\n private void findAbdomenVOI() {\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 39; angle < 45; angle += 3) {\r\n int x, y, yOffset;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n scaleFactor = Math.tan(angleRad);\r\n x = xDim;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x > xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x--;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n x = xcm;\r\n y = 0;\r\n yOffset = y * xDim;\r\n while (y < ycm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n y++;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n x = 0;\r\n y = ycm;\r\n yOffset = y * xDim;\r\n while (x < xcm && sliceBuffer[yOffset + x] != abdomenTissueLabel) {\r\n x++;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 225 && angle <= 315) {\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n x = xcm;\r\n y = yDim;\r\n yOffset = y * xDim;\r\n while (y < yDim && sliceBuffer[yOffset + x] == abdomenTissueLabel) {\r\n y--;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n }\r\n } // end for (angle = 0; ...\r\n \r\n int[] x1 = new int[xValsAbdomenVOI.size()];\r\n int[] y1 = new int[xValsAbdomenVOI.size()];\r\n int[] z1 = new int[xValsAbdomenVOI.size()];\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n x1[idx] = xValsAbdomenVOI.get(idx);\r\n y1[idx] = xValsAbdomenVOI.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n\r\n\r\n }",
"public Plane<?> currentTakeOfPlane() {\r\n\r\n for(int n = 0; n < runways.size(); n++ ) {\r\n\r\n if(runways.get(position).isEmpty()) {\r\n\r\n position = (position + 1) % runways.size();\r\n }\r\n else {\r\n return runways.get(position).peekRunway();\r\n }\r\n }\r\n\r\n return null;\r\n }",
"public InhomogeneousPlanarImagingSurface(\n\t\t\tVector3D pointOnPlane, Vector3D u, Vector3D v, Vector3D n,\n\t\t\tVector3D objectPosition, Vector3D imagePosition,\n\t\t\tParameterCalculationMethod parameterCalculation,\n\t\t\tdouble parameterValue\n\t\t)\n\t{\n\t\t// copy the parameters that can simply be copied\n\t\tthis.pointOnPlane = pointOnPlane;\n\t\tsetUVN(u, v, n);\n\t\t\n\t\t// now calculate everything else, following the Mathematica notebook \"gCLAsMapping.nb\"\n\t\t\n\t\t// calculate the parameters of the object and image position in the uvn coordinates (pointOnPlane is origin)\n\t\tVector3D o = Vector3D.difference(objectPosition, pointOnPlane).toBasis(uHat, vHat, nHat);\n\t\tVector3D i = Vector3D.difference(imagePosition, pointOnPlane).toBasis(uHat, vHat, nHat);\n\t\t\n\t\tswitch(parameterCalculation)\n\t\t{\n\t\tcase SET_ETA:\n\t\t\teta = parameterValue;\n\t\t\t\n\t\t\t// the focal length\n\t\t\tf = i.z*o.z/(o.z*eta - i.z);\n\t\t\t\n\t\t\t// the coordinates of the lens centre\n\t\t\tuCOverF = (i.x*o.z*eta - i.z*o.x)/i.z*o.z;\n\t\t\tvCOverF = (i.y*o.z*eta - i.z*o.y)/i.z*o.z;\n\t\t\t\n\t\t\tbreak;\n\t\tcase SET_F:\n\t\tdefault:\n\t\t\tf = parameterValue;\n\t\t\t\n\t\t\t// the other parameters\n\t\t\tuCOverF = (i.x*o.z/f + i.x - o.x)/o.z;\n\t\t\tvCOverF = (i.y*o.z/f + i.y - o.y)/o.z;\n\t\t\teta = (i.z*o.z/f + i.z )/o.z;\n\t\t}\n\t}",
"public abstract float surfaceArea();",
"public CameraSubsystem() {\n\t\t// TODO Auto-generated constructor stub\t\t\n\t\tnetworkTableValues.put(\"area\", (double) 0);\n\t\tnetworkTableValues.put(\"centerX\", (double) 0);\n\t\tnetworkTableValues.put(\"centerY\", (double) 0);\n\t\tnetworkTableValues.put(\"width\", (double) 0);\n\t\tnetworkTableValues.put(\"height\", (double) 0);\n\t\t\n\t\tcoordinates.put(\"p1x\", (double) 0);\n\t\tcoordinates.put(\"p1y\", (double) 0);\n\t\tcoordinates.put(\"p2x\", (double) 0);\n\t\tcoordinates.put(\"p2y\", (double) 0);\n\t\tcoordinates.put(\"p3x\", (double) 0);\n\t\tcoordinates.put(\"p3y\", (double) 0);\n\t\tcoordinates.put(\"p4x\", (double) 0);\n\t\tcoordinates.put(\"p4y\", (double) 0);\n\n\t\t\n\t}",
"public SplitPolicyGeneralizedHyperplane() {\n }"
]
| [
"0.7458217",
"0.67433023",
"0.6703278",
"0.6664471",
"0.64960194",
"0.6410442",
"0.6360973",
"0.6301713",
"0.62957543",
"0.62930524",
"0.62626255",
"0.62254256",
"0.61761945",
"0.6164339",
"0.61585516",
"0.61160743",
"0.6114436",
"0.6093147",
"0.6071039",
"0.60472673",
"0.6024125",
"0.6002295",
"0.599581",
"0.5982044",
"0.5979994",
"0.5978969",
"0.5973425",
"0.59607846",
"0.58929783",
"0.5890319",
"0.5885805",
"0.58783543",
"0.58718234",
"0.5865678",
"0.5845484",
"0.5832179",
"0.5831089",
"0.5830569",
"0.581168",
"0.58004886",
"0.57743454",
"0.5763544",
"0.5758979",
"0.5729251",
"0.57187444",
"0.57098323",
"0.56974417",
"0.5696119",
"0.56862724",
"0.5684637",
"0.56680745",
"0.5667699",
"0.5664212",
"0.56495005",
"0.5637591",
"0.5620109",
"0.560463",
"0.56041896",
"0.55988586",
"0.5584189",
"0.5581336",
"0.5579568",
"0.55763835",
"0.55763805",
"0.5573691",
"0.5525558",
"0.55227417",
"0.55225",
"0.55186623",
"0.5515649",
"0.5512806",
"0.5504783",
"0.5491246",
"0.54821146",
"0.54800534",
"0.54793936",
"0.54676765",
"0.5462392",
"0.5460327",
"0.5458735",
"0.5454963",
"0.54427063",
"0.5441792",
"0.5440511",
"0.5437444",
"0.5426493",
"0.54262936",
"0.54232174",
"0.5419707",
"0.5414753",
"0.5400149",
"0.5396559",
"0.5387121",
"0.53859454",
"0.5385913",
"0.53823096",
"0.5380048",
"0.5379428",
"0.53729707",
"0.5362983",
"0.5356435"
]
| 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.